(date('Y-m-d')))))); } public function returnDay($addDay){ return date('D', strtotime(date("Y-m-d", strtotime('+'.$addDay.' days', strtotime(date('Y-m-d')))))); } public function returnDayCaps($addDay){ return date('l', strtotime(date("Y-m-d", strtotime('+'.$addDay.' days', strtotime(date('Y-m-d')))))); } public function returnDateFullFormate($addDay){ $currDate = date("Y-m-d", strtotime('+'.$addDay.' days', strtotime(date('Y-m-d')))); $date = explode("-", $currDate); return date('jS M, Y', mktime(0, 0, 0, $date[1], $date[2], $date[0])); } public function returnYMDFormate($addDay){ return date("Y-m-d", strtotime('+'.$addDay.' days', strtotime(date('Y-m-d')))); } } ?> llowed Html Tags * * @param mixed $input * @return string */ public function RealStringStripTags($input, $tag = "") { $this->data = mysql_real_escape_string(trim(strip_tags($input, $tag))); return $this->data; } /** * A constant function for MySql Real Escape Strings * * @param mixed $input * @return string */ public function RealString($input) { $this->data = mysql_real_escape_string(trim($input)); return $this->data; } public function sendMail($to, $from, $subject, $message) { $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "From: '".$from."'" . "\r\n"; return @mail($to, $subject, $message, $headers); } /** * A function for add subscriber for newsletter. * * @param mixed $email */ public function ConvertDate($dateStr) { $date = explode("-", $dateStr); return date('jS F, Y', mktime(0, 0, 0, $date[1], $date[2], $date[0])); } public function ConvertDateHalfMonth($dateStr) { $date = explode("-", $dateStr); return date('jS M, Y', mktime(0, 0, 0, $date[1], $date[2], $date[0])); } function EncryptClientId($id) { $enc = substr(md5($id), 0, 20).dechex($id); return $enc; } function DecryptClientId($id) { $md5_8 = substr($id, 0, 20); $real_id = hexdec(substr($id, 20)); $dec = ($md5_8==substr(md5($real_id), 0, 20)) ? $real_id : 0; return $dec; } function Encode($data) { for ($i = 0; $i < strlen($data); $i++) { $a = ($a + 1) % 256; $j = ($j + $counter[$a]) % 256; $temp = $counter[$a]; $counter[$a] = $counter[$j]; $counter[$j] = $temp; $k = $counter[(($counter[$a] + $counter[$j]) % 256)]; $Zcipher = ord(substr($data, $i, 1)) ^ $k; $Zcrypt .= chr($Zcipher); } return $Zcrypt; } function hex2bin($hexdata) { for ($i=0;$iGetColumnType($table, $key); if(!$colType) { return false; } /** * determine if we need to encase the value in single quotes */ if(is_null($value)) { $sql .= "NULL,"; } elseif(substr_count(MYSQL_TYPES_NUMERIC, "$colType ")) { $sql .= "$value,"; } elseif(substr_count(MYSQL_TYPES_DATE, "$colType ")) { $value = $this->SqlDateFormat($value, $colType); $sql .= "'$value',"; } elseif(substr_count(MYSQL_TYPES_STRING, "$colType ")) { if($this->autoSlashes) { $value = addslashes($value); } $sql .= "'$value',"; } } $sql = rtrim($sql, ','); if(!empty($condition)) { $sql .= " WHERE $condition"; } /** * update values */ return $this->Update($sql); } /** * executes the SQL commands from an external file. * * @param mixed $file */ function executeFile($file) { if(!file_exists($file)) { $this->lastError = "The file $file does not exist."; return false; } $str = file_get_contents($file); if(!$str) { $this->lastError = "Unable to read the contents of $file."; return false; } $this->last_query = $str; /** * split all the query's into an array */ $sql = explode(';', $str); foreach($sql as $query) { if(!empty($query)) { $r = mysql_query($query); if(!$r) { $this->lastError = mysql_error(); return false; } } } return true; } /** * Gets information about a particular column using the mysql_fetch_field * function. * Returns an array with the field info or false if there is an error. * * @param mixed $table * @param mixed $column * @return string */ function GetColumnType($table, $column) { $r = mysql_query("SELECT $column FROM $table"); if(!$r) { $this->last_error = mysql_error(); return false; } $ret = mysql_field_type($r, 0); if(!$ret) { $this->lastError = "Unable to get column information on $table.$column."; mysql_free_result($r); return false; } mysql_free_result($r); return $ret; } /** * Returns the date in a format for input into the database. You can pass * this function a timestamp value such as time() or a string value * such as '04/14/2003 5:13 AM'. * * @param int $value * @return string */ function SqlDateFormat($value) { if(gettype($value) == 'string') { $value = strtotime($value); } return date('Y-m-d H:i:s', $value); } /** * A fuction to get total number of rows. * * @param mixed $sql * @return int */ public function NumRows($sql) { $this->lastQuery = $sql; $r = mysql_query($sql); if(!$r) { $this->lastError = mysql_error(); return false; } $this->rowCount = mysql_num_rows($r); return $this->rowCount; } } ?> (date('Y-m-d')))))); } public function returnDay($addDay){ return date('D', strtotime(date("Y-m-d", strtotime('+'.$addDay.' days', strtotime(date('Y-m-d')))))); } public function returnDayCaps($addDay){ return date('l', strtotime(date("Y-m-d", strtotime('+'.$addDay.' days', strtotime(date('Y-m-d')))))); } public function returnDateFullFormate($addDay){ $currDate = date("Y-m-d", strtotime('+'.$addDay.' days', strtotime(date('Y-m-d')))); $date = explode("-", $currDate); return date('jS M, Y', mktime(0, 0, 0, $date[1], $date[2], $date[0])); } public function returnYMDFormate($addDay){ return date("Y-m-d", strtotime('+'.$addDay.' days', strtotime(date('Y-m-d')))); } } ?> llowed Html Tags * * @param mixed $input * @return string */ public function RealStringStripTags($input, $tag = "") { $this->data = mysql_real_escape_string(trim(strip_tags($input, $tag))); return $this->data; } /** * A constant function for MySql Real Escape Strings * * @param mixed $input * @return string */ public function RealString($input) { $this->data = mysql_real_escape_string(trim($input)); return $this->data; } public function sendMail($to, $from, $subject, $message) { $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "From: '".$from."'" . "\r\n"; return @mail($to, $subject, $message, $headers); } /** * A function for add subscriber for newsletter. * * @param mixed $email */ public function ConvertDate($dateStr) { $date = explode("-", $dateStr); return date('jS F, Y', mktime(0, 0, 0, $date[1], $date[2], $date[0])); } public function ConvertDateHalfMonth($dateStr) { $date = explode("-", $dateStr); return date('jS M, Y', mktime(0, 0, 0, $date[1], $date[2], $date[0])); } function EncryptClientId($id) { $enc = substr(md5($id), 0, 20).dechex($id); return $enc; } function DecryptClientId($id) { $md5_8 = substr($id, 0, 20); $real_id = hexdec(substr($id, 20)); $dec = ($md5_8==substr(md5($real_id), 0, 20)) ? $real_id : 0; return $dec; } function Encode($data) { for ($i = 0; $i < strlen($data); $i++) { $a = ($a + 1) % 256; $j = ($j + $counter[$a]) % 256; $temp = $counter[$a]; $counter[$a] = $counter[$j]; $counter[$j] = $temp; $k = $counter[(($counter[$a] + $counter[$j]) % 256)]; $Zcipher = ord(substr($data, $i, 1)) ^ $k; $Zcrypt .= chr($Zcipher); } return $Zcrypt; } function hex2bin($hexdata) { for ($i=0;$iGetColumnType($table, $key); if(!$colType) { return false; } /** * determine if we need to encase the value in single quotes */ if(is_null($value)) { $sql .= "NULL,"; } elseif(substr_count(MYSQL_TYPES_NUMERIC, "$colType ")) { $sql .= "$value,"; } elseif(sub
( ! ) Fatal error: Class 'News' not found in C:\Websites\tensports\website\htdocs\tsport\include\head.php on line 7
Call Stack
#TimeMemoryFunctionLocation
10.0014154760{main}( )..\videos.php:0
20.0071410056include_once( 'C:\Websites\tensports\website\htdocs\tsport\include\head.php' )..\videos.php:3