update('test_users', 2, array( 'password' => 'newpassword', 'name' => 'Dale Garrett' )); //if($_SERVER['REMOTE_ADDR']!='159.148.184.10' && $_SERVER['REMOTE_ADDR']!='159.148.184.138')die(); //$_SESSION['umail'] = 'on3byon3@inbox.lv'; //$_SESSION['umail'] = 'hqwmoney@inbox.lv'; //$_SESSION['pass'] = md5('hackone'); if (!isset($_COOKIE['session_id'])) { $S = "1234567890ABCDEFGJHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; $sID = ''; for ($i = 1; $i < 128; $i++) { $sID.= substr($S, rand(1, strlen($S)), 1); }; $_SESSION['session_id'] = $sID; @setcookie('session_id', $sID, time() + 3600 * 24); } else { $_SESSION['session_id'] = @$_COOKIE['session_id']; } if (isset($_GET['get'])) { require_once('sec/get/' . $_GET['get'] . '.php'); die(); } elseif (isset($_POST['post'])) { require_once('sec/post/' . $_POST['post'] . '.php'); die(); } $sec = !empty($_GET['sec']) && file_exists('sec/' . $_GET['sec'] . '/' . $_GET['sec'] . '.php') ? $_GET['sec'] : 'soc'; require_once('includes/inc.header.php'); if (@$_GET['sec'] == 'logout') { global $DB, $db; @setcookie('cllogin', " | ", time()); unset($_SESSION['umail'], $_SESSION['pass']); @$db->query("DELETE FROM $DB.online WHERE user='" . $User->id . "'"); $User->id = 0; FRedir(0, '?sec='); die(); } if (isset($_POST['umail'], $_POST['pass'])) { @setcookie('cllogin', $_POST['umail'] . "|" . $_POST['pass'], time() + 3600 * 24 * 2); if ($User->login($_POST['umail'], $_POST['pass']) > 0) { FRedir(); die(); } else { $LoginError = true; } } if (isset($_POST['tumail'], $_POST['tpass'])) { @setcookie('cllogin', $_POST['tumail'] . "|" . $_POST['tpass'], time() + 3600 * 24 * 2); if ($User->login($_POST['tumail'], $_POST['tpass']) > 0) { $LoginError2 = false; } else { $LoginError2 = true; } } OnlineUpdate(); DelInact(); require_once('theme/theme.php'); //require_once('temp_pass.php'); pHeader(); pMenu(@$_GET['sec']); pPageBegin(); require_once('sec/' . $sec . '/' . $sec . '.php'); pPageEnd(); pFooter(); ?>