".mysql_error()); $row = mysql_fetch_assoc($res); if($column=="0") return $row; return $row[$column]; } // MySQL Fetch Assoc function fetchAssoc($sql) { global $link; $res = mysql_query ($sql,$link); if(!$res) die("Specified query failed, MySQL returned:
".mysql_error()); while($row=mysql_fetch_assoc($res)) $arr[ ]=$row; return $arr; } // MySQL Fetch Num function fetchNum($sql) { global $link; $res = mysql_query ($sql,$link); if(!$res) die("Specified query failed, MySQL returned:
".mysql_error()); $row = mysql_num_rows($res); return $row; } // MySQL Insert Record function recInsert($table,$keys,$values) { global $link; $sql = "INSERT INTO `$table` ($keys) VALUES ($values);"; $res = mysql_query ($sql,$link); if(!$res) die("Specified query failed, MySQL returned:
".mysql_error()); return $res; } // MySQL Update Record function recUpdate($table,$set,$where) { global $link; $sql = "UPDATE `$table` SET $set WHERE $where;"; $res = mysql_query ($sql,$link); if(!$res) die("Specified query failed, MySQL returned:
".mysql_error()); return $res; } // MySQL Delete Record function recDelete($table,$where) { global $link; $sql = "DELETE FROM `$table` WHERE $where;"; $res = mysql_query ($sql,$link); if(!$res) die("Specified query failed, MySQL returned:
".mysql_error()); return $res; } // Format Number function function FormatNumber($number) { if(strlen($number)==1) return "00000".$number; if(strlen($number)==2) return "0000".$number; if(strlen($number)==3) return "000".$number; if(strlen($number)==4) return "00".$number; if(strlen($number)==5) return "0".$number; } // Check Login function CheckLogin() { if($_SESSION['name']!="yes") die('You are not logged in system, please login to gain access.'); } // Check Login function SetAccess($trig) { $parts = explode("|",$_SESSION['level']); if($parts[$trig]!=$trig) die('Your user level doesnt allow you to access this area.'); } // Random Integer function RandomInt($size) { $feed = "0123456789abcdefghijklmnopqrstuvwxyz"; for ($i=0; $i < $size; $i++) { $rand_str .= substr($feed, rand(0, strlen($feed)-1), 1); } return $rand_str; } // Get Browser function GetBrowser() { $browser = array ("MSIE","OPERA","MOZILLA","NETSCAPE","FIREFOX","SAFARI"); $info[browser] = "OTHER"; foreach ($browser as $parent) { if ( ($s = strpos(strtoupper($_SERVER['HTTP_USER_AGENT']), $parent)) !== FALSE ) { $f = $s + strlen($parent); $version = substr($_SERVER['HTTP_USER_AGENT'], $f, 5); $version = preg_replace('/[^0-9,.]/','',$version); $info[browser] = $parent; $info[version] = $version; } } return $info; } // Get edit data $time_limit = fetchRow("SELECT * FROM `app_settings` WHERE `sNAME`='wait_seconds'",'sVALUE'); $time_paid = fetchRow("SELECT * FROM `app_settings` WHERE `sNAME`='pay_per_click'",'sVALUE'); $time_reclick = fetchRow("SELECT * FROM `app_settings` WHERE `sNAME`='reclick_timelimit'",'sVALUE'); $checkout_limit = fetchRow("SELECT * FROM `app_settings` WHERE `sNAME`='checkout_minimum'",'sVALUE'); ?>
 

     
 
 
 

 

Subscribe

 

         


   
 

 
   
Copyright 2009 © Pension Acronafplia. All rights reserved.
                      Designed By Focusgreece