0byt3m1n1
Path:
/
home1
/
aserty
/
www
/
qct
/
[
Home
]
File: connclicks.php.bak
<?php // Enter your database information here DEFINE ('QCTDBName', 'DatabaseNameHere'); DEFINE ('QCTDBUser', 'DatabaseUsernameHere'); DEFINE ('QCTDBPass', 'DatabasePasswordHere'); DEFINE ('QCTDBHost', 'localhost'); ########################################################################## ## Quality Click Tracking ## ## Version 2 Released 10/26/2010 ## ## ---------------------- ## ## By Sonja Ray Tropical Web Works ## ## (http://www.isoldwhat.com) ## ## ## ## You may NOT sell or redistribute this script without permission ## ## ## ## Copyright (c) 2010 TropicalWebWorks.com - All Rights Reserved ## ## This script is made available "as is" and ## ## no warrantees are express or implied ## ########################################################################## // Don't touch anything below this line $tablename = 'ClickThrusPHPBay'; // date_default_timezone_set('America/Phoenix'); if ($clickconex = @mysql_connect (QCTDBHost, QCTDBUser, QCTDBPass)) { if (!mysql_select_db (QCTDBName)) { // die("Error selecting database. Please check your database username and password: " . mysql_error()); } else { // $myquery = " SET time_zone = '-7:00' "; // $query = mysql_query($myquery, $clickconex) or trigger_error('Bad myquery: '.mysql_error()); } } else { // die("Error connecting to database. Please check your MySQL server. " . mysql_error()); } // SET GLOBAL time_zone = timezone; // $myquery = " SET GLOBAL time_zone = SYSTEM "; // $query = mysql_query($myquery) or trigger_error('Bad myquery: '.mysql_error()); // // $myquery = " SET time_zone = SYSTEM "; // $query = mysql_query($myquery) or trigger_error('Bad myquery: '.mysql_error()); function QCTescape($data) { global $clickconex; if (ini_get('magic_quotes_gpc')) { $data = stripslashes($data); } return mysql_real_escape_string(trim($data), $clickconex); } require_once('config.php'); ?>