Jump to content

papaquest

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

papaquest's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. sorry, yes i have but nothing this large before. i have tried running with joomla which works fine. dont know if this helps but this is what i get when i try admin status http://localhost/files/admin Parse error: syntax error, unexpected T_DEFAULT in D:\xampp\htdocs\files\admin\index.php on line 734.
  2. this is what im getting from localhost when i try to test it. the script was given to me by a friend,with no information on if it actually works.
  3. hi first of let me say im completely new to this, ok im running xammp on localhost on win xp,and i have trouble with scripts not showing up this is what im getting at the moment. # ############################################################ ### Templates define('C_TEMP','default'); // Template name define('C_FROMM','noreply@your_site.com'); // "Email From" for forgot password define('C_LASTREG','10');// Last C_LASTREG registered users define('C_APAGE','10');// Count of users on default in admin page define('C_CPAGE','5');// Search page links number 12345... ### Profiles automatic allows define('C_CHECK_REGISTER','0'); /* '0' - Automatically allow all profiles to database '1' - Add profiles after confirm from user email '2' - Add profiles after admin checking '3' - Add profiles after confirm from user email and after admin checking */ define('C_REG_DAYS','7'); // Number of days for waiting user mail autorization (If C_CHECK_REGISTER '2' and '4') define('C_UPDATE_ALLOW','1'); // Allow profile after update? 0 - Don`t allow - send for admin check, 1 - allow define('C_REMOVE_ALLOW','1'); /* '0' - Disable remove profile for user '1' - Remove profile after admin check (Show profile while admin don`t checked) '2' - Remove profile after admin check (Don`t show profile while admin don`t checked) '3' - Automatically remove profile from database */ define('C_SHOW_LANG','2'); // Show other languages??? /* 0 - Don`t show - use only default language 1 - Don`t show - use user browser language 2 - Show languages only if language don`t selected by user - else don`t show // Recommended 3 - Always show languages */ define('C_MULTLANG_DEF','1'); // Default language for multilanguage (C_SHOW_LANG = 2 or 3) work /* 0 - Use language from default file 1 - detect user language from browser and use it (use default language if language no detect, or have`nt this language dir) */ ### Firstname biggest and smaller length, and requirements define('C_FIRSTNB','16'); // Max chars in firstname(no more 16) define('C_FIRSTNS','2'); // Min chars in firstname ### Lastname biggest and smaller length, and requirements define('C_LASTNB','30'); // Max chars in lastname(no more 30) define('C_LASTNS','2'); // Min chars in lastname ### Biggest and smaller ages define('C_AGES','14'); // Age from! define('C_AGEB','60'); // Age to! ### Password largest and smaller length define('C_PASSB','16'); // Max chars in password(no more 16) define('C_PASSS','2'); // Min chars in password ### Other require questions! define('C_FIRSTNR','1'); // Firstname require? Recommended set to '1' define('C_LASTNR','1'); // Lastname require? Recommended set to '1' define('C_BIRTHR','1'); // Birthday require? Recommended set to '1' define('C_GENDR','1'); // Gender require? Recommended set to '1' define('C_CNTRR','1'); // Country require? define('C_CITYR','0'); // City require? define('C_PURPR','1'); // Purpose require? Recommended set to '1' define('C_MARSR','0'); // Marital status require? define('C_HOBBR','0'); // Hobby require? define('C_WGHTR','0'); // Require weight? define('C_HGHTR','0'); // Require height? define('C_CHILDR','0'); // Children require? define('C_HAIRR','0'); // Hair color require? define('C_EYER','0'); // Eyes color require? define('C_ETNR','0'); // Etnicity require? define('C_RELR','0'); // Religion require? define('C_SMOKER','0'); // Smoke require? define('C_DRINKR','0'); // Drink require? define('C_EDUCR','0'); // Education require? define('C_JOBR','0'); // Job require? define('C_PHOTOR','0'); // Photo require? define('C_PHONER','0'); // Phone require? define('C_HDYFUR','0'); // "How did you find us?" require? define('C_SETNR','0'); // Seeking for etnicity require? define('C_SGENDR','0'); // Seeking for gender require? define('C_SRELR','0'); // Seeking for religion require? define('C_SAGER','0'); // age require seek from define('C_SWGHTR','0'); // Require seek weight? define('C_SHGHTR','0'); // Require seek height? define('C_AGR','1'); // Agreement is require? // Show in view profile? [view.php] define('C_HOROSH','1'); // Show horoscope? define('C_EMAILSH','0'); // Show email? - Not recommended - set to 0 define('C_URLSH','1'); // Show webpage? define('C_ICQSH','1'); // Show icq? define('C_AIMSH','1'); // Show AIM? define('C_PHONESH','1'); // Show phone number? define('C_REGDATE','1'); // Show register date? define('C_ACCDATE','1'); // Show update info date? define('C_MAILSH','1'); // Show "mail to user" link? ### City largest length define('C_CITYB','32'); // No more 32 ### Hobby largest word size and length, and require define('C_HOBBW','40'); define('C_HOBBB','255'); ### Description largest word size and length define('C_DESCW','40'); define('C_DESCB','2000'); ### Max image size (kb), image width and height define('C_MAXSZ','100'); define('C_MAXWD','600'); define('C_MAXHG','600'); define('C_IMG_ERR','1'); ### AntiHack checks - recommend set to '1' for secure reasons define('C_HACK1', '1'); // Check for numeric select define('C_HACK2', '1'); // Check for numeric select for normal value define('C_HACK3', '0'); // Check for image weight and height (set to 0 if give Warning: 'open_basedir restriction in effect') ### Members features define('C_FEEDBACK','0'); // Feedback only for members? define('C_FEEDBACK_MAIL','1'); // Can registered user specify another email for reply in send feedback? define('C_SEARCH','0'); //Search only for members? define('C_VIEW','0'); //View users only for members? define('C_MAIL','1'); //Mail to users only for members? define('C_ANOTHER_MAIL','1'); // Can registered user specify another email for reply in send mail? ### Login define('C_ID','2'); // Login by ID? /* 0 - Login by username [Only for Platinum version] 1 - Login by ID 2 - Login by email */ ### Don`t change anything below ### Other - DON`T change for secure reasons!!! define('C_MUST','1'); // Must be login! define('C_SESS','0'); // Don`t working if cookies disabled! define('C_UNICM','1'); // Use unique email for each user? Very recommended set it to 1 - Don`t change ?> Warning: include_once(Z:/home/www.test.net/www/AzDGDatingLite/languages/default/default.php) [function.include-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\date\include\security.inc.php on line 32 Warning: include_once() [function.include]: Failed opening 'Z:/home/www.test.net/www/AzDGDatingLite/languages/default/default.php' for inclusion (include_path='.:\xampp\php\PEAR') in D:\xampp\htdocs\date\include\security.inc.php on line 32 Warning: include_once(Z:/home/www.test.net/www/AzDGDatingLite/languages/default/default_.php) [function.include-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\date\include\security.inc.php on line 33 Warning: include_once() [function.include]: Failed opening 'Z:/home/www.test.net/www/AzDGDatingLite/languages/default/default_.php' for inclusion (include_path='.:\xampp\php\PEAR') in D:\xampp\htdocs\date\include\security.inc.php on line 33 # ############################################################ @mysql_connect(C_HOST, C_USER, C_PASS) or die($w[113]); @mysql_select_db(C_BASE) or die($w[114]); function printm($tmp,$v=NULL) { global $stime,$w; if (($v==1)||($v==NULL)) $e=C_EBOT; else $e=C_SBOT; echo C_ETOP.$tmp.$e; include_once C_PATH.'/templates/'.C_TEMP.'/footer.php'; die; } function mes($tmp) { echo C_ETOP.$tmp.C_SBOT; } function smes($tmp) { echo $tmp; } function sprintm($tmp) { global $w; echo ' '.$tmp.' '; include_once C_PATH.'/templates/'.C_TEMP.'/sfooter.php'; die; } function code_gen() { $passgen = preg_replace("/(.)/e","chr(rand(ord('a'),ord('z')))",str_repeat('.',10)); $passgen=md5($passgen); return $passgen; } function not_empty($var1,$var2,$var3) { if(!empty($var1)) echo $var1; elseif(!empty($var2)) echo $var2; elseif(!empty($var3)) echo $var3; else echo 'Unknown Error'; } function pages($from,$step,$count,$param,$colspan) { $str='';global $w; if ($step < $count) { $str=''.$w[115]; $mesdisp = $step;$max = $count; $from = ($from > $count) ? $count : $from; $from = ( floor( $from / $mesdisp ) ) * $mesdisp; if ((C_CPAGE % 2) == 1) $pc = (int)((C_CPAGE - 1) / 2); else $pc = (int)(C_CPAGE / 2); if ($from > $mesdisp * $pc) $str.= "1 "; if ($from > $mesdisp * ($pc + 1)) $str.= " . . . "; for ($nCont=$pc; $nCont >= 1; $nCont--) if ($from >= $mesdisp * $nCont) { $tmpStart = $from - $mesdisp * $nCont; $tmpPage = $tmpStart / $mesdisp + 1; $str.= "".$tmpPage." "; } $tmpPage = $from / $mesdisp + 1;$str.= " [".$tmpPage."] "; $tmpMaxPages = (int)(($max - 1) / $mesdisp) * $mesdisp; for ($nCont=1; $nCont <= $pc; $nCont++) if ($from + $mesdisp * $nCont <= $tmpMaxPages) { $tmpStart = $from + $mesdisp * $nCont; $tmpPage = $tmpStart / $mesdisp + 1; $str.= "".$tmpPage." ";} if (($from + $mesdisp * ($pc + 1)) < $tmpMaxPages) $str.= " . . . "; if (($from + $mesdisp * $pc) < $tmpMaxPages) { $tmpPage = $tmpMaxPages / $mesdisp + 1; $str.= "".$tmpPage." "; } $str.=""; } return $str; } function horo($m,$d) { // Return number of horoscope switch($m) { case "1":$d > 19 ? $h = 2 : $h = 1;break; case "2":$d > 18 ? $h = 3 : $h = 2;break; case "3":$d > 20 ? $h = 4 : $h = 3;break; case "4":$d > 19 ? $h = 5 : $h = 4;break; case "5":$d > 20 ? $h = 6 : $h = 5;break; case "6":$d > 20 ? $h = 7 : $h = 6;break; case "7":$d > 22 ? $h = 8 : $h = 7;break; case "8":$d > 22 ? $h = 9 : $h = 8;break; case "9":$d > 22 ? $h = 10 : $h = 9;break; case "10":$d > 22 ? $h = 11 : $h = 10;break; case "11":$d > 21 ? $h = 12 : $h = 11;break; case "12":$d > 21 ? $h = 1 : $h = 12;break; default:$h = 0;break; } return $h; } function cb($ss) {$ss = htmlspecialchars(stripslashes($ss)); $ss = str_replace("\r\n"," ","$ss"); $ss = str_replace("\\","","$ss"); $ss = str_replace("'","’","$ss"); $ss = str_replace('"',""","$ss"); $ss = trim($ss); return $ss; } function cbmail($ss) {$ss = htmlspecialchars(stripslashes($ss)); $ss = str_replace("\\","","$ss"); $ss = str_replace("'","’","$ss"); $ss = str_replace('"',""","$ss"); $ss = trim($ss); return $ss; } function tb($ss) { $ss = str_replace(" ","\r\n","$ss"); $ss = str_replace("’","'","$ss"); $ss = str_replace('"','"',"$ss"); $ss = str_replace("<","<","$ss"); $ss = str_replace(">",">","$ss"); return $ss; } function search_results($from,$step,$count) { global $w;$str=$w[116].' '; $m=(($from+$step)>$count) ? $count : ($from+$step); $str.=$from.' - '.$m.' ['.$w[117].' '.$count.']'; return $str; } function template($text,$vars) { $msg = preg_replace("/{(\w+)}/e", "\$vars['\\1']", $text); return $msg; } function security($var,$error) { unset($s);unset($m);global $stime,$w,$l; if( ($var)&& ((!isset($_SESSION['s']))||(!isset($_SESSION['m']))||(!isset($_SESSION['o']))||(!is_numeric($_SESSION['m']))||($_SESSION['o'] != md5(agent()))||($_SESSION['s'] != md5(ip())))) { session_destroy();unset($s);unset($m); include_once C_PATH.'/templates/'.C_TEMP.'/header.php'; printm($error);} } function ssecurity($var,$error) { unset($s);unset($m);global $stime,$w,$l; if(($var)&&((!isset($_SESSION['s']))||(!isset($_SESSION['m']))||(!isset($_SESSION['o']))||(!is_numeric($_SESSION['m']))||($_SESSION['o']) != md5(agent())||($_SESSION['s']) != md5(ip()))) { session_destroy();unset($s);unset($m); include_once C_PATH.'/templates/'.C_TEMP.'/sheader.php'; sprintm($error);} } function admin_security($error) { unset($s);unset($m);unset($adminlogin);unset($adminpass);unset($adminip);global $stime,$w,$l,$x; if((!isset($_SESSION['adminlogin']))||(!isset($_SESSION['adminpass']))||(!isset($_SESSION['adminip']))||($_SESSION['adminip'] != md5(ip()))||($_SESSION['adminlogin'] != md5(C_ADMINL))||($_SESSION['adminpass'] != md5(C_ADMINP))) { session_destroy();unset($adminlogin);unset($adminpass);unset($adminip); include_once C_PATH.'/templates/'.C_TEMP.'/header.php'; printm($error);} } function login($num) { global $w; switch ($num) { case '2':return $w[60];break; default:return $w[172];break; // By default login by ID } } function crm($m,$s) { $mc='';for ($i=0; $i < strlen($m); $i++) { $mc .= "&#".ord(substr($m,$i)).";";} $mc = "".$mc.""; return $mc;} function c_email($email) { if (ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'. '@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email)) { return 1;} else { return 0;} } function pregtrim($str) { return preg_replace("/[^\x20-\xFF]/","",@strval($str)); } function checkurl($urll) { $urll=trim(pregtrim($urll)); if (strlen($urll)==0) return 1; if (!preg_match("~^(??:https?|ftp|telnet)://(?:[a-z0-9_-]{1,32}"."(?::[a-z0-9_-]{1,32})?@)?)?(??:[a-z0-9-]{1,128}\.)+(?:com|net|"."org|mil|edu|arpa|gov|biz|info|aero|inc|name|[a-z]{2})|(?!0)(??"."!0[^.]|255)[0-9]{1,3}\.){3}(?!0|255)[0-9]{1,3})(?:/[a-z0-9.,_@%&"."?+=\~/-]*)?(?:#[^ '\"&<>]*)?$~i",$urll,$ok)) return -1; if (!strstr($urll,"://")) $urll="http://".$urll; $urll=preg_replace("~^[a-z]+~ie","strtolower('\\0')",$urll); return $urll; } function mysql2data($sqldata,$b=NULL) { global $wmm; $sqldata=str_replace(' ','-',$sqldata); $val = explode('-', $sqldata); if($b==NULL) { $data= substr($wmm[intval($val[1])],0,3).' '.$val[2].' '.$val[0]; } else { $bd=$val[0].$val[1].$val[2];$dat=date("Ymd",time()); $data=intval(($dat - $bd) / 10000); } return $data; } function ip() { if (getenv('HTTP_X_FORWARDED_FOR')) $ip = getenv('HTTP_X_FORWARDED_FOR'); elseif(getenv('REMOTE_ADDR')) $ip = getenv('REMOTE_ADDR'); else $ip = getenv('HTTP_CLIENT_IP'); $error='';$not_detect='0.0.0.0'; $ipnum=explode('.', $ip); if (sizeof($ipnum) == '4') { for($i=0;$i<4;$i++) { if ($ipnum[$i] != intval($ipnum[$i]) || $ipnum[$i] > 255 || $ipnum[$i] < 0) $error='1'; } } else $error='1'; $real_ip = ($error) ? $not_detect : $ip; return $real_ip; } function agent() { $agent = (getenv('HTTP_USER_AGENT')) ? getenv('HTTP_USER_AGENT') : 'Unknown'; return $agent; } function sendmail($from,$to,$sub,$mes,$type) { switch ($type) { case 'html':$h='text/html';break; case "text":$h="text/plain";break; default:$h="text/plain";break;} $head="MIME-Version: 1.0\r\nContent-Type: ".$h."; charset=".C_CHARSET."\r\nFrom: ".$from."\r\nReply-To: ".$from."\r\nX-Mailer: ".C_SNAME; @mail($to,$sub,$mes,$head); } function int2ip($i) { $d[0]=(int)($i/256/256/256); $d[1]=(int)(($i-$d[0]*256*256*256)/256/256); $d[2]=(int)(($i-$d[0]*256*256*256-$d[1]*256*256)/256); $d[3]=$i-$d[0]*256*256*256-$d[1]*256*256-$d[2]*256; return "$d[0].$d[1].$d[2].$d[3]"; } function online_users() { $sec = 300; mysql_query("DELETE FROM ".C_MYSQL_ONLINE_USERS." WHERE (time < DATE_SUB(NOW(), INTERVAL ".$sec." SECOND) AND NOW() > ".$sec.") or time > NOW()") or die("Delete Error ".mysql_error()); unset($m); if((isset($_SESSION["m"]))&&(is_numeric($_SESSION["m"]))) { mysql_query("INSERT INTO ".C_MYSQL_ONLINE_USERS." VALUES (NOW(),".$_SESSION['m'].")") or die("Write Error ".mysql_error()); } $result = mysql_query("SELECT count(DISTINCT user) as total FROM ".C_MYSQL_ONLINE_USERS) or die("Read Error ".mysql_error()); $trows = mysql_fetch_array($result); $total = $trows['total']; return $total; } function online_quests() { $sec = 300;unset($m); mysql_query("DELETE FROM ".C_MYSQL_ONLINE_QUESTS." WHERE (time < DATE_SUB(NOW(), INTERVAL ".$sec." SECOND) AND NOW() > ".$sec.") or time > NOW()") or die("Delete Error ".mysql_error()); if(!isset($_SESSION['m'])) { mysql_query("INSERT INTO ".C_MYSQL_ONLINE_QUESTS." VALUES (NOW(),INET_ATON('".ip()."'))") or die("Write Error ".mysql_error()); } $result = mysql_query("SELECT count(DISTINCT ip) as total FROM ".C_MYSQL_ONLINE_QUESTS) or die("Read Error ".mysql_error()); $trows = mysql_fetch_array($result); $total = $trows['total']; return $total; } if (isset($_POST)) {while(list($name,$value) = each($_POST)) {$$name = $value;};}; if (isset($_GET)) {while(list($name,$value) = each($_GET)) {$$name = $value;};}; // Don`t working from 2.0.5 function filename() {return $_ENV['PHP_SELF'];} function s() {return $SID = C_SESS ? SID : '';} ?> Warning: include_once(templates/C_TEMP/config.php) [function.include-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\date\index.php on line 18 Warning: include_once() [function.include]: Failed opening 'templates/C_TEMP/config.php' for inclusion (include_path='.:\xampp\php\PEAR') in D:\xampp\htdocs\date\index.php on line 18 Warning: include_once(templates/C_TEMP/header.php) [function.include-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\date\index.php on line 19 Warning: include_once() [function.include]: Failed opening 'templates/C_TEMP/header.php' for inclusion (include_path='.:\xampp\php\PEAR') in D:\xampp\htdocs\date\index.php on line 19 Fatal error: Call to undefined function printm() in D:\xampp\htdocs\date\index.php on line 20 any help greatly appreciated ,as i say im totally new to this so be gentle thankyou [attachment deleted by admin]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.