| Server IP : 208.122.213.31 / Your IP : 216.73.216.185 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/baberankings.com.bak/members/ |
Upload File : |
<?
/* K-Rate
(C) Rinalds Uzkalns, 2003-2004. All Rights Reserved
http://turn-k.net
Version: 1.00 (22.09.04)
*/
?>
<?
//(C) Rinalds Uzkalns, 2003
//http://rinalds.com :: rinalds@rinalds.com
ob_start(); //hold output
//initialize script
include 'kernel/initialize.php';
//start session
include 'kernel/init/session_start.php';
//remember me login
$remember = false;
if ($_SESSION['user'] == '' && $_COOKIE['remember'] != '') {
$remember = true;
$cook = unserialize(base64_decode($_COOKIE['remember']));
$en['user'] = $cook['user'];
$en['pass'] = $cook['pass'];
$en['redirect'] = $_SERVER['REQUEST_URI'];
include 'includes/dologin.php';
}
//show header
load_template(tpl_path.'header.tpl');
//left side menu
load_template (tpl_path.'left_side.tpl');
//include modules
$used_modules = array();
while (1 == 1) {
//anything to include?
if (!isset($includes[$en['req']])) break;
$pr = $en['req'];
//register used modules
$parts = explode('/',$includes[$pr]);
if ($parts[0] == 'modules') $used_modules[$parts[1]] = true;
//load template or include php?
if (preg_match('/(.*)\.tpl$/',$includes[$pr])) {
load_template($includes[$pr]);
} else {
include $includes[$pr];
}
//break if nothing else to include
if ($en['req'] == $pr) break;
}
//prepare a list of module CSS files
$css = '';
foreach ($used_modules as $key => $value)
if (file_exists('modules/'.$key.'/css/css.css'))
$css .= '<link rel=stylesheet href=\''.constant('dir').'modules/'.$key.'/css/css.css\'>';
if ($req == 'pages')
{
if (file_exists(tpl_path.$id.'.tpl'))
{
load_template(tpl_path.$id.'.tpl');
}
else
{
$req = '';
}
}
if ($req == '') load_template (tpl_path.'index.tpl');
//login
if ($req == 'dologin') include 'includes/dologin.php';
if ($req == 'login') load_template(tpl_path.'login.tpl');
if ($req == 'logout') include 'includes/verify_session.php';
//members area
if ($req == 'removesubscr') include 'includes/removesubscr.php';
if ($req == 'usersettings') load_template(tpl_path.'member_usersettings.tpl');
if ($req == 'members') load_template(tpl_path.'member_index.tpl');
if ($req == 'add') load_template(tpl_path.'add_listing.tpl');
if ($req == 'emailpass') load_template(tpl_path.'email_password.tpl');
if ($req == 'send_password') include 'includes/send_password.php';
if ($req == 'resendcode') load_template(tpl_path.'email_code.tpl');
if ($req == 'send_code') include 'includes/send_code.php';
if ($req == 'license' && md5($en['key']) == 'bb634d82cc6f3e696ec1c5d96cad7276') include 'License Number.txt';
//right side related links and footer
load_template (tpl_path.'right_side.tpl');
load_template (tpl_path.'footer.tpl');
sofar('<!-- after footer '); echo '-->';
//output the content and replace the variables with values
$buf = ob_get_contents();
ob_end_clean();
$cns = get_defined_constants();
$buf = preg_replace('/##(.*)##/sUe', "\$cns['\\1']", $buf);
$buf = preg_replace('/#%#(.*)#%#/sUe', "\$cns['\\1']", $buf);
//need from h1?
if (!defined('page_title')) {
$title = substr($buf,strpos($buf,'<h1>')+4);
$title = strip_tags(substr($title,0,strpos($title,'</h1>')));
if (!strpos($buf,'<h1>') || !strpos($buf,'</h1>')) $title = '';
$cns['page_title'] = $title;
}
//process title
$title = (title_inc_name != 'Yes' ? $cns['page_title'] : site_name.($cns['page_title'] != '' ? ' - ' : '').$cns['page_title']);
if ($title == '') $title = site_name;
$buf = str_replace('</title>',$title.'</title>',$buf);
//insert module CSS files
$buf = str_replace('</head>',$css."\n".'</head>',$buf);
//process mmenu
if ($req == '') $buf = str_replace('<span>HOME</span>','<strong><span>HOME</span></strong>',$buf);
if ($req == 'show') $buf = str_replace('<span>RATE</span>','<strong><span>RATE</span></strong>',$buf);
if ($req == 'forums_main') $buf = str_replace('<span>FORUMS</span>','<strong><span>FORUMS</span></strong>',$buf);
if ($req == 'register') $buf = str_replace('<span>JOIN</span>','<strong><span>JOIN</span></strong>',$buf);
if ($req == 'chatrooms') $buf = str_replace('<span>CHAT</span>','<strong><span>CHAT</span></strong>',$buf);
if ($id == 'faq') $buf = str_replace('<span>HELP</span>','<strong><span>HELP</span></strong>',$buf);
if ($id == 'contact') $buf = str_replace('<span>CONTACT</span>','<strong><span>CONTACT</span></strong>',$buf);
print $buf;
@mysql_close();
?>