/** * routing * * @since 1.2.1 * @deprecated 2.0.0 * * @package Redaxscript * @category Center * @author Henry Ruhs */ function routing() { /* check token */ if ($_POST && $_POST['token'] != TOKEN) { notification(l('error_occurred'), l('token_incorrect'), l('home'), ROOT); return; } /* call default post */ $post_list = array('comment', 'login', 'password_reset', 'registration', 'reminder', 'search'); foreach ($post_list as $value) { if ($_POST[$value . '_post'] && function_exists($value . '_post')) { call_user_func($value . '_post'); return; } } /* general routing */ switch (FIRST_PARAMETER) { case 'admin': if (LOGGED_IN == TOKEN) { admin_routing(); } else { notification(l('error_occurred'), l('access_no'), l('login'), 'login'); } return; case 'login': login_form(); return; case 'logout': if (LOGGED_IN == TOKEN) { logout(); } else { notification(l('error_occurred'), l('access_no'), l('login'), 'login'); } return; case 'password_reset': if (s('reminder') == 1 && FIRST_SUB_PARAMETER && THIRD_PARAMETER) { password_reset_form(); } else { notification(l('error_occurred'), l('access_no'), l('home'), ROOT); } return; case 'registration': if (s('registration')) { registration_form(); } else { notification(l('error_occurred'), l('access_no'), l('home'), ROOT); } return; case 'reminder': if (s('reminder') == 1) { reminder_form(); } else { notification(l('error_occurred'), l('access_no'), l('home'), ROOT); } return; default: contents(); return; } }
function login() { global $vars, $day, $month, $year, $phpc_script; $html = tag('div'); //Check password and username if (isset($vars['username'])) { $user = $vars['username']; $password = $vars['password']; if (login_user($user, $password)) { $string = "{$phpc_script}?"; $arguments = array(); if (!empty($vars['lastaction'])) { $arguments[] = "action={$vars['lastaction']}"; } if (!empty($vars['year'])) { $arguments[] = "year={$year}"; } if (!empty($vars['month'])) { $arguments[] = "month={$month}"; } if (!empty($vars['day'])) { $arguments[] = "day={$day}"; } redirect($string . implode('&', $arguments)); return tag('h2', _('Logged in.')); } $html->add(tag('h2', _('Sorry, Invalid Login'))); } $html->add(login_form()); return $html; }
function actionAdmin($sName = '') { $GLOBALS['iAdminPage'] = 1; require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php'; $sUri = $this->_oConfig->getUri(); check_logged(); if (!@isAdmin()) { send_headers_page_changed(); login_form("", 1); exit; } //--- Process actions ---// $mixedResultSettings = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $mixedResultSettings = $this->setSettings($_POST); } //--- Process actions ---// $aDetailsBox = $this->getDetailsForm(BX_PMT_ADMINISTRATOR_ID); $aPendingOrdersBox = $this->getOrdersBlock(BX_PMT_ORDERS_TYPE_PENDING, BX_PMT_ADMINISTRATOR_ID); $aProcessedOrdersBox = $this->getOrdersBlock(BX_PMT_ORDERS_TYPE_PROCESSED, BX_PMT_ADMINISTRATOR_ID); $aSubscriptionOrdersBox = $this->getOrdersBlock(BX_PMT_ORDERS_TYPE_SUBSCRIPTION, BX_PMT_ADMINISTRATOR_ID); $sContent = ''; $sContent .= $this->_oTemplate->getJsCode('orders', true); $sContent .= DesignBoxAdmin(_t($this->_sLangsPrefix . 'bcpt_settings'), $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $this->getSettingsForm($mixedResultSettings)))); $sContent .= DesignBoxAdmin(_t($this->_sLangsPrefix . 'bcpt_details'), $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $aDetailsBox[0]))); $sContent .= DesignBoxAdmin(_t($this->_sLangsPrefix . 'bcpt_pending_orders'), $aPendingOrdersBox[0]); $sContent .= DesignBoxAdmin(_t($this->_sLangsPrefix . 'bcpt_processed_orders'), $aProcessedOrdersBox[0]); $sContent .= DesignBoxAdmin(_t($this->_sLangsPrefix . 'bcpt_subscription_orders'), $aSubscriptionOrdersBox[0]); $sContent .= $this->getMoreWindow(); $sContent .= $this->getManualOrderWindow(); $this->_oTemplate->addAdminJs(array('orders.js', '_orders.js')); $this->_oTemplate->addAdminCss(array('orders.css', '_orders.css')); $aParams = array('title' => array('page' => _t($this->_sLangsPrefix . 'pcpt_administration')), 'content' => array('page_main_code' => $sContent)); $this->_oTemplate->getPageCodeAdmin($aParams); }
function login() { global $vars, $phpc_script; $html = tag('div'); //Check password and username if (isset($vars['username'])) { $user = $vars['username']; if (!isset($vars['password'])) { message(__("No password specified.")); } else { $password = $vars['password']; if (login_user($user, $password)) { $url = $phpc_script; if (!empty($vars['lasturl'])) { $url .= '?' . urldecode($vars['lasturl']); } redirect($url); return tag('h2', __('Logged in.')); } $html->add(tag('h2', __('Sorry, Invalid Login'))); } } $html->add(login_form()); return $html; }
function reg_form() { $config = get_config(); $disable_acct = parse_bool($config, "disable_account_creation"); page_head("Register"); start_table(); echo "<tr><td>"; echo "<h3>Create an account</h3>"; create_account_form(0, "download.php"); echo "</td><td>"; echo "<h3>If you already have an account, log in</h3>"; login_form("download.php"); echo "</td></tr>"; end_table(); page_tail(); }
function actionAuth() { $oRequest = OAuth2\Request::createFromGlobals(); $oResponse = new OAuth2\Response(); // validate the authorize request if (!$this->_oServer->validateAuthorizeRequest($oRequest, $oResponse)) { $o = json_decode($oResponse->getResponseBody()); $this->_oTemplate->pageError($o->error_description); } if (!isLogged()) { $_REQUEST['relocate'] = BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'auth/?client_id=' . bx_get('client_id') . '&response_type=' . bx_get('response_type') . '&state=' . bx_get('state') . '&redirect_uri=' . bx_get('redirect_uri'); login_form('', 0, false, 'disable_external_auth no_join_text'); return; } if (empty($_POST)) { $this->_oTemplate->pageAuth($this->_oDb->getClientTitle(bx_get('client_id'))); } $this->_oServer->handleAuthorizeRequest($oRequest, $oResponse, (bool) bx_get('confirm'), getLoggedId()); $oResponse->send(); }
function skin_ClientPage_Default() { global $adm_pass; global $adm_login; global $conf_skin; //////////////////////////////////// // Create the top banner and menu // //////////////////////////////////// $anotherTopBanner = anotherTopBanner("DTC"); $anotherLanguageSelection = anotherLanguageSelection(); $lang_sel = skin($conf_skin, $anotherLanguageSelection, _("Language")); if ($adm_login != "" && isset($adm_login) && $adm_pass != "" && isset($adm_pass)) { // Fetch all the user informations, Print a nice error message if failure. $admin = fetchAdmin($adm_login, $adm_pass); if (($error = $admin["err"]) != 0) { $mesg = $admin["mesg"]; $login_txt = _("Error") . " {$error} " . _("fetching admin: ") . "<font color=\"red\">{$mesg}</font><br>"; $login_txt .= login_form(); $login_skined = skin($conf_skin, $login_txt, _("Client panel:") . " " . _("Login")); $mypage = layout_login_and_languages($login_skined, $lang_sel); } else { // Draw the html forms $HTML_admin_edit_data = drawAdminTools($admin); $mypage = $HTML_admin_edit_data; } } else { $login_txt = login_form(); $login_skined = skin($conf_skin, $login_txt, _("Client panel:") . " " . _("Login")); $mypage = layout_login_and_languages($login_skined, $lang_sel); } // Output the result ! if (!isset($anotherHilight)) { $anotherHilight = ""; } echo anotherPage("Client:", "", $anotherHilight, makePreloads(), $anotherTopBanner, "", $mypage, anotherFooter("")); }
function skin_ClientPage() { global $adm_pass; global $adm_login; global $conf_skin; global $page_metacontent; global $meta; global $confirm_javascript; global $java_script; global $skinCssString; global $console; //////////////////////////////////// // Create the top banner and menu // //////////////////////////////////// $anotherTopBanner = anotherTopBanner("DTC"); $anotherLanguageSelection = anotherLanguageSelection(); $lang_sel = skin($conf_skin, $anotherLanguageSelection, _("Language")); if ($adm_login != "" && isset($adm_login) && $adm_pass != "" && isset($adm_pass)) { // Fetch all the user informations, Print a nice error message if failure. $admin = fetchAdmin($adm_login, $adm_pass); if (($error = $admin["err"]) != 0) { $mesg = $admin["mesg"]; $login_txt = _("Error") . " {$error} " . _("fetching admin: ") . "<font color=\"red\">{$mesg}</font><br>"; $login_txt .= login_form(); $login_skined = skin($conf_skin, $login_txt, _("Client panel:") . " " . _("Login")); $mypage = layout_login_and_languages($login_skined, $lang_sel); } else { // Draw the html forms $HTML_admin_edit_data = '<div class="box_wnb_content_container">' . drawAdminTools($admin) . '</div>'; $mypage = $HTML_admin_edit_data; } } else { $login_txt = login_form(); $mypage = skin($conf_skin, $login_txt, _("Client panel:") . " " . _("Login")); } echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n<html>\n<head>\n<title>DTC: Client: " . $_SERVER['SERVER_NAME'] . "</title>\n{$page_metacontent}\n{$meta}\n</head>\n<body id=\"page\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n\t <div id=\"outerwrapper\">\n <div id=\"wrapper\">\n\n" . makePreloads() . "\n{$confirm_javascript}\n{$java_script}\n<link rel=\"stylesheet\" href=\"gfx/skin/bwoup/skin.css\" type=\"text/css\">\n{$skinCssString}\n\n" . anotherTopBanner("DTC", "yes") . "<div id=\"usernavbarreplacement\"></div>\n<div id=\"content\"><div class=\"box_wnb_content_container\">" . $mypage . "</div></div>\n<div id=\"footer\">" . anotherFooter("Footer content<br><br>") . "</div>\n </div>\n</div>\n</body>\n</html>"; }
function member_auth($member = 0, $error_handle = true, $bAjx = false) { global $site; switch ($member) { case 0: $mem = 'member'; $login_page = BX_DOL_URL_ROOT . "member.php"; $iRole = BX_DOL_ROLE_MEMBER; break; case 1: $mem = 'admin'; $login_page = BX_DOL_URL_ADMIN . "index.php"; $iRole = BX_DOL_ROLE_ADMIN; break; } if (empty($_COOKIE['memberID']) || !isset($_COOKIE['memberPassword'])) { if ($error_handle) { $text = _t("_LOGIN_REQUIRED_AE1"); if ($member == 0) { $text .= "<br />" . _t("_LOGIN_REQUIRED_AE2", $site['images'], BX_DOL_URL_ROOT, $site['title']); } $bAjxMode = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) and $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') ? true : false; if ($member = 1 && $bAjx == true) { $bAjxMode = true; } login_form($text, $member, $bAjxMode); } return false; } return check_login(process_pass_data($_COOKIE['memberID']), process_pass_data($_COOKIE['memberPassword']), $iRole, $error_handle); }
function actionAdmin($sName = '') { $GLOBALS['iAdminPage'] = 1; require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php'; $sUri = $this->_oConfig->getUri(); check_logged(); if (!@isAdmin()) { send_headers_page_changed(); login_form("", 1); exit; } //--- Process actions ---// $mixedResultSettings = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $mixedResultSettings = $this->setSettings($_POST); } if (isset($_POST[$sUri . '-publish'])) { $this->_actPublish($_POST[$sUri . '-ids'], true); } else { if (isset($_POST[$sUri . '-unpublish'])) { $this->_actPublish($_POST[$sUri . '-ids'], false); } else { if (isset($_POST[$sUri . '-featured'])) { $this->_actFeatured($_POST[$sUri . '-ids'], true); } else { if (isset($_POST[$sUri . '-unfeatured'])) { $this->_actFeatured($_POST[$sUri . '-ids'], false); } else { if (isset($_POST[$sUri . '-delete'])) { $this->_actDelete($_POST[$sUri . '-ids']); } } } } } //--- Process actions ---// //--- Get New/Edit form ---// $sPostForm = ''; if (!empty($sName)) { $sPostForm = $this->serviceEditBlock(process_db_input($sName, BX_TAGS_STRIP)); } else { if (isset($_POST['id'])) { $sPostForm = $this->serviceEditBlock((int) $_POST['id']); } else { $sPostForm = $this->servicePostBlock(); } } //--- Get New/Edit form ---// $sFilterValue = ''; if (isset($_GET[$sUri . '-filter'])) { $sFilterValue = process_db_input($_GET[$sUri . '-filter'], BX_TAGS_STRIP); } $sContent = DesignBoxAdmin(_t('_' . $sUri . '_bcaption_settings'), $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $this->getSettingsForm($mixedResultSettings)))); $sContent .= DesignBoxAdmin(_t('_' . $sUri . '_bcaption_post'), $sPostForm); $sContent .= DesignBoxAdmin(_t('_' . $sUri . '_bcaption_all'), $this->serviceAdminBlock(0, 0, $sFilterValue)); $aParams = array('title' => array('page' => _t('_' . $sUri . '_pcaption_admin')), 'content' => array('page_main_code' => $sContent)); $this->_oTemplate->getPageCodeAdmin($aParams); }
/* 회원관리 (로그인) 2001.06 by Jungjoon Oh */ require "mem-lib.php"; require "db-lib.php"; if (!$url) { $url = $home_url; } if ($logout == 1) { logout($url); } elseif ($id && $passwd) { login($id, $passwd, $url); } else { login_form($url); } exit; function logout($url) { /* 쿠키 삭제 */ setcookie("MemberID", "", time() - 3600); print_alert("로그아웃되었습니다. ", "url|{$url}"); exit; } function login($id, $passwd, $url) { $dbh = dbconnect(); $query = "select mem_id,mem_pw from member_data where mem_id='{$id}'"; $sth = dbquery($dbh, $query); if (!$sth) {
<?php /** * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ * CC-BY License - http://creativecommons.org/licenses/by/3.0/ */ require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php'; bx_import('Module', $aModule); global $_page; global $_page_cont; $iIndex = 9; $_page['name_index'] = $iIndex; $_page['header'] = _t('_bx_pageac'); if (!@isAdmin()) { send_headers_page_changed(); login_form("", 1); exit; } $oModule = new BxPageACModule($aModule); $_page_cont[$iIndex]['page_main_code'] = $oModule->_oTemplate->getTabs(); PageCodeAdmin();
$iRecipientID = getId($vRecipientID); if ($iRecipientID) { $sOutputHtml = get_member_thumbnail($iRecipientID, 'none'); } break; } // try to define the callback function name ; if (isset($_GET['callback_function']) and in_array($_GET['callback_function'], $aCallbackFunctions)) { if (method_exists($oMailBox, $_GET['callback_function'])) { $sOutputHtml = $oMailBox->{$_GET['callback_function']}(); } } header('Content-Type: text/html; charset=utf-8'); echo $sOutputHtml; exit; } // ** prepare to output page in normal mode ; $sPageTitle = _t('_Mailbox'); $_page['name_index'] = 7; $_page['header'] = $sPageTitle; $_page['header_text'] = $sPageTitle; $_page['js_name'] = $oMailBox->getJs(); $_page['css_name'] = $oMailBox->getCss(); $aVars = array('BaseUri' => BX_DOL_URL_ROOT); $GLOBALS['oTopMenu']->setCustomSubActions($aVars, 'Mailbox', false); if (!$aMailBoxSettings['member_id']) { login_form(_t("_LOGIN_OBSOLETE"), 0, false); } $_ni = $_page['name_index']; $_page_cont[$_ni]['page_main_code'] = $oMailBox->getCode(); PageCode();
if (!session_start()) { // If the session couldn't start, present an error header("Location: error.php"); exit; } // Check to see if the user has already logged in $loggedIn = empty($_SESSION['loggedin']) ? false : $_SESSION['loggedin']; if ($loggedIn) { header("Location: home.php"); exit; } $action = empty($_POST['action']) ? '' : $_POST['action']; if ($action == "do_login") { handle_login(); } else { login_form(); } function handle_login() { $username = $_POST['username']; $password = $_POST['password']; require_once 'db.conf'; $mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname); if ($mysqli->connect_error) { $error = 'Error: ' . $mysqli->connect_errno . ' ' . $mysqli->connect_error; require "login_form.php"; exit; } $username = $mysqli->real_escape_string($username); $password = $mysqli->real_escape_string($password); $query = "SELECT * FROM users WHERE username = '******' AND password = '******'";
$dp = opendir($dir); while ($subdir = readdir($dp)) { if ($subdir != '.' && $subdir != '..' && is_dir($dir . "/" . $subdir)) { $action_file = $dir . "/" . $subdir . "/" . $action . ".php"; if (file_exists($action_file)) { require_once $action_file; $html .= $action(); } } } //or show login form } else { if (@$_GET['auth'] == 'login') { //Login data is correct if (check_login()) { $_SESSION['user'] = @$_POST['user']; header("location: /engine.php?action=start"); //or isn't correct } else { $html .= login_form("<span style='color:red'>Ошибка в логине или пароле!</span><br/>"); } } else { //Перебрасываем на форму входа в систему //echo generate_hash("", ""); $html .= login_form(); } } //Add footer $html .= template_get('footer'); //Show HTML flow echo $html;
$_page['css_name'] = array('member_panel.css', 'categories.css', 'alert.css'); $_page['extra_js'] = "<script type=\"text/javascript\">urlIconLoading = \"" . getTemplateIcon('loading.gif') . "\";\n\t\$(document).ready( function() {\n\t\t\n\t\tvar sSendUrl = '" . $site['url'] . "alerts.php';\n\t\t\n\t\t\$('input', '#alertsMenu').click(function(){\n\t\t\tvar sQuery = \$('input', '#alertsMenu').serialize();\n\t\t\t\$.post(sSendUrl, sQuery, function(data) {\n\t\t\t\t\$('#alertsView').html(data);\n\t\t\t}\n\t\t);\n\t\t\n\t} );})\n\t</script>"; $_page['header'] = _t("_My Account"); // --------------- GET/POST actions $member['ID'] = process_pass_data(empty($_POST['ID']) ? '' : $_POST['ID']); $member['Password'] = process_pass_data(empty($_POST['Password']) ? '' : $_POST['Password']); $bAjxMode = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) and $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') ? true : false; if (!(isset($_POST['ID']) && $_POST['ID'] && isset($_POST['Password']) && $_POST['Password']) && (!empty($_COOKIE['memberID']) && $_COOKIE['memberID'] && $_COOKIE['memberPassword'])) { if (!($logged['member'] = member_auth(0, false))) { login_form(_t("_LOGIN_OBSOLETE"), 0, $bAjxMode); } } else { if (!isset($_POST['ID']) && !isset($_POST['Password'])) { // this is dynamic page - send headers to not cache this page send_headers_page_changed(); login_form('', 0, $bAjxMode); } else { require_once BX_DIRECTORY_PATH_CLASSES . 'BxDolAlerts.php'; $oZ = new BxDolAlerts('profile', 'before_login', 0, 0, array('login' => $member['ID'], 'password' => $member['Password'], 'ip' => getVisitorIP())); $oZ->alert(); $member['ID'] = getID($member['ID']); // Ajaxy check if ($bAjxMode) { echo check_password($member['ID'], $member['Password'], BX_DOL_ROLE_MEMBER, false) ? 'OK' : 'Fail'; exit; } // Check if ID and Password are correct (addslashes already inside) if (check_password($member['ID'], $member['Password'])) { $p_arr = bx_login($member['ID'], (bool) $_POST['rememberMe']); //Storing IP Address if (getParam('enable_member_store_ip') == 'on') {
function member_auth($member = 0, $error_handle = true, $bAjx = false) { global $site; global $dir; global $tab; global $logged; switch ($member) { case 0: $mem = 'member'; $table = 'Profiles'; $login_page = "{$site['url']}member.php"; break; case 1: $mem = 'admin'; $table = 'Admins'; $login_page = "{$site['url_admin']}index.php"; break; case 2: $mem = 'aff'; $table = 'aff'; $login_page = "{$site['url_aff']}index.php"; break; // // case 3: $mem = 'moderator'; $table = 'moderators'; $login_page = "{$site['url']}moderators/index.php"; break; } if (!$_COOKIE[$mem . "ID"] || !$_COOKIE[$mem . "Password"]) { if ($error_handle) { $text = _t("_LOGIN_REQUIRED_AE1"); if (!$member) { $text .= "<br />" . _t("_LOGIN_REQUIRED_AE2", $site['images'], $site['url'], $site['title']); } $bAjxMode = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) and $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') ? true : false; if ($member = 1 && $bAjx == true) { $bAjxMode = true; } login_form($text, $member, $bAjxMode); } return false; } return check_login($_COOKIE[$mem . 'ID'], $_COOKIE[$mem . 'Password'], $table, $error_handle); }
Welcome back, <b><?php echo $_POST['ID']; ?> </b>. Logging you in... <script language="Javascript">location.href='<?php echo $_SERVER[PHP_SELF]; ?> ';</script> <?php exit; } } if (!$_COOKIE['moderatorID'] || !$_COOKIE['moderatorPassword']) { send_headers_page_changed(); // Display log in form if user is not logged in. login_form('', 3); } $logged['moderator'] = member_auth(3); $_page['header'] = 'Moderator Panel'; TopCodeAdmin(); // Get number of total registered members. $total_members = db_arr('SELECT COUNT(*) FROM `Profiles`;'); $total_members = $total_members[0]; // $status_arr[0] = "Unconfirmed"; $status_arr[1] = "Approval"; $status_arr[2] = "Active"; $status_arr[3] = "Rejected"; $status_arr[4] = "Suspended"; ContentBlockHead("Total registered members"); ?>
function process_login() { global $label; $session_duration = ini_get("session.gc_maxlifetime"); if ($session_duration == '') { $session_duration = 60 * 20; } $now = gmdate("Y-m-d H:i:s"); $sql = "UPDATE `users` SET `logout_date`='{$now}' WHERE UNIX_TIMESTAMP(DATE_SUB('{$now}', INTERVAL {$session_duration} SECOND)) > UNIX_TIMESTAMP(last_request_time) AND (`logout_date` ='0000-00-00 00:00:00')"; mysql_query($sql) or die($sql . mysql_error()); if (!is_logged_in() || $_SESSION['MDS_Domain'] != "ADVERTISER") { ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title><?php echo $label["advertiser_loginform_title"]; ?> </title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <p> </p> <p> <center><img alt="" src="<?php echo SITE_LOGO_URL; ?> "/> <br> </p> <p> </p> <table width="80%" cellpadding=5 border=1 style="border-collapse: collapse; border-style:solid; border-color:#E8E8E8"> <tr> <td width="50%" valign="top" ><center><h3><?php echo $label["advertiser_section_heading"]; ?> </h3></center> <?php login_form(); ?> </td> <?php if (USE_AJAX == 'SIMPLE') { ?> <td valign=top> <center> <h3><?php echo $label["advertiser_section_newusr"]; if (USE_AJAX == 'SIMPLE') { $order_page = 'order_pixels.php'; } else { $order_page = 'select.php'; } ?> </h3> <a class="big_link" href="<?php echo $order_page; ?> "><?php echo $label["adv_login_new_link"]; ?> </a> <br><br><?php echo $label["advertiser_go_buy_now"]; ?> <h3 ></h3></center> </td> <?php } ?> </tr> </table> <?php echo_copyright(); ?> <!-- This software is free on the condition that you do not remove any copyright messages as part of the license. If you want to remove these, please see http://www.milliondollarscript.com/remove.html --> <body> </body> </html> <?php die; } else { // update last_request_time $now = gmdate("Y-m-d H:i:s"); $sql = "UPDATE `users` SET `last_request_time`='{$now}', logout_date='0' WHERE `Username`='" . $_SESSION['MDS_Username'] . "'"; mysql_query($sql) or die($sql . mysql_error()); } }
function actionAdmin() { $GLOBALS['iAdminPage'] = 1; require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php'; $sUri = $this->_oConfig->getUri(); check_logged(); if (!@isAdmin()) { send_headers_page_changed(); login_form("", 1); exit; } //--- Process actions ---// $mixedResultSettings = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $mixedResultSettings = $this->setSettings($_POST); } //--- Process actions ---// $sContent = DesignBoxAdmin(_t('_' . $sUri . '_bcaption_settings'), $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $this->getSettingsForm($mixedResultSettings)))); $aParams = array('title' => array('page' => _t('_membership_pcaption_admin')), 'content' => array('page_main_code' => $sContent)); $this->_oTemplate->getPageCodeAdmin($aParams); }
function actionAdmin() { $GLOBALS['iAdminPage'] = 1; require_once BX_DIRECTORY_PATH_INC . 'admin_design.inc.php'; check_logged(); if (!@isAdmin()) { send_headers_page_changed(); login_form("", 1); exit; } //--- Process actions ---// $mixedResultSettings = ''; if (isset($_POST['save']) && isset($_POST['cat'])) { $mixedResultSettings = $this->setSettings($_POST); } if (isset($_POST['feedback-approve'])) { $this->_actPublish($_POST['feedback-ids'], true); } else { if (isset($_POST['feedback-reject'])) { $this->_actPublish($_POST['feedback-ids'], false); } else { if (isset($_POST['feedback-delete'])) { $this->_actDelete($_POST['feedback-ids']); } } } //--- Process actions ---// $sFilterValue = ''; if (isset($_GET['feedback-filter'])) { $sFilterValue = process_db_input($_GET['feedback-filter'], BX_TAGS_STRIP); } $sContent = DesignBoxAdmin(_t('_feedback_bcaption_settings'), $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $this->getSettingsForm($mixedResultSettings)))); $sContent .= DesignBoxAdmin(_t('_feedback_bcaption_view_admin'), $this->serviceAdminBlock(0, 0, $sFilterValue)); $aParams = array('title' => array('page' => _t('_feedback_pcaption_admin')), 'content' => array('page_main_code' => $sContent)); $this->_oTemplate->getPageCodeAdmin($aParams); }
print phamm_print_message('error', _("Generic Error: ") . ldap_error($connect)); } } } // Logout if (isset($_GET["exit"])) { $log->phamm_log($_SESSION["phamm"]["pn"], $_SESSION["login"]["username"], 'logout', 1); $login->logout(); phamm_print_message('message', _("Bye!")); refresh('main.php', $force_meta = false, REFRESH_TIME); echo $page_exit; exit; } // Not logged if (!$login->login_check()) { $login_form = login_form(); echo $login_form; echo $page_exit; exit; } elseif ($login->login_check()) { // Bind $r_bind = $login->bind_try($connect, $_SESSION["login"]["dn"], $_SESSION["login"]["password"]); // When user or postmaster change password must exit if (!$r_bind) { refresh('main.php?exit=1', $force_meta = false, REFRESH_TIME); } if (!isset($_SESSION["phamm"]["pn"])) { $_SESSION["phamm"]["pn"] = DEFAULT_PLUGIN; } // Set some variables $pn = phamm_set_var('pn');
// along with BOINC. If not, see <http://www.gnu.org/licenses/>. require_once "../inc/db.inc"; require_once "../inc/util.inc"; require_once "../inc/account.inc"; check_get_args(array("next_url")); $next_url = sanitize_local_url(get_str('next_url', true)); $next_url = urldecode($next_url); $u = "login_form.php?next_url=" . $next_url; redirect_to_secure_url($u); $user = get_logged_in_user(false); if ($user) { page_head("Already logged in"); row2("You are logged in as {$user->name}", ". <a href=\"logout.php?" . url_tokens($user->authenticator) . "\">Log out</a>"); page_tail(); exit; } page_head(tra("Log in")); if (0) { echo ' <a href="openid_login.php?openid_identifier=https://www.google.com/accounts/o8/id"><img src=img/google-button.png></a> <a href="openid_login.php?openid_identifier=http://yahoo.com"><img src=img/yahoo-button.png></a> <br> '; } login_form($next_url); $config = get_config(); if (!parse_bool($config, "disable_account_creation") && !parse_bool($config, "no_web_account_creation")) { echo tra("or %1create an account%2.", "<a href=\"create_account_form.php?next_url={$next_url}\">", "</a>"); } echo "\n <script type=\"text/javascript\">\n document.f.email_addr.focus();\n </script>\n"; page_tail();
$admin = 'yes'; xhtml_output(''); exit; } } elseif (isset($_REQUEST['status']) && $_REQUEST['status'] == 'logout') { // Initialize session variables $_SESSION['admin_login'] = 0; $_SESSION['user_name'] = 0; $_SESSION['user_pass'] = 0; if (isset($_SESSION['admin_login']) && $_SESSION['admin_login'] != '') { $session_on_off = 'on'; } else { $session_on_off = 'off'; } $contents = login_form(); $admin = 'yes'; xhtml_output(''); } else { // Initialize session variables $_SESSION['admin_login'] = 0; $_SESSION['user_name'] = 0; $_SESSION['user_pass'] = 0; if (isset($_SESSION['admin_login']) && $_SESSION['admin_login'] != '') { $session_on_off = 'on'; } else { $session_on_off = 'off'; } $contents = login_form(); $admin = 'yes'; xhtml_output(''); }
display_signup_form($_REQUEST['FirstName'], $_REQUEST['LastName'], $_REQUEST['CompName'], $_REQUEST['Username'], $_REQUEST['Password'], $_REQUEST['Password2'], $_REQUEST['Email'], $_REQUEST['Newsletter'], $_REQUEST['Notification1'], $_REQUEST['Notification2'], $_REQUEST['lang']); } else { } ?> </td> <td valign=top> <h2><?php echo $label['confirm_login']; ?> </h2> <h3><?php echo $label['confirm_member']; ?> </h3> <?php echo login_form(false, 'confirm_order.php'); ?> </td> </tr> </table> <p> </p> <?php } else { // The user is singed in $has_packages = banner_get_packages($BID); require "header.php"; ?> <p>
html_header("TA Login"); ?> <DIV class=header> <A HREF="#"><IMG style="margin:10px; width:500px; height:100px;" src="img/logo.png"></A> </DIV> <?php session_start(); if (isset($_GET['year'])) { $_SESSION['year'] = $_GET['year']; $_SESSION['season'] = $_GET['season']; $_SESSION['season_name'] = $_GET['sname']; } if (!isset($_POST['submit'])) { login_form(""); } else { $username = $_POST['user']; $password = $_POST['pass']; $username = trim($username); if (empty($username)) { try_again("Please enter a username.", $username); } else { if (empty($password)) { try_again("Please enter a password.", $username); } else { try { //open db $db = new PDO(DB_PATH, DB_LOGIN, DB_PW); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "select count(*) from login where username = '******' and password = '******'";
function logout() { setcookie("loggedon", 0, 0, "/"); login_form(); }
<?php require 'values.php'; require 'functions.php'; html_header("Staff Login"); ?> <body > <DIV class=header> <A HREF="#"><IMG style="width:500px; height:100px; margin:15px;" src="img/logo.png"></A> </DIV> <?php if (!isset($_POST['submit'])) { login_form("", "", "staff"); } else { $username = $_POST['user']; $password = $_POST['pass']; $username = trim($username); if (empty($username)) { try_again("Please enter a username.", $username, "staff"); } else { if (empty($password)) { try_again("Please enter a password.", $username, "staff"); } else { try { //open db $db = new PDO(DB_PATH, DB_LOGIN, DB_PW); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "select count(*) from login_staff where username = '******' and password = '******'";
<html> <head> <meta charset="UTF-8"> <title>BLOGGERT</title> <link rel="stylesheet" href="blog.css" /> </head> <body> <div class="logo"> <img src="logoblog.png" alt="" /> </div> <div id="main"> <div id="login"> <?php echo login_form(); //from included functions.php ?> </div> <h1>Rowntrees Randoms</h1> <div id="blog"> <?php echo $out; ?> </div> </div> <SCRIPT type="text/javascript"> /*
include_once XOOPS_ROOT_PATH . "/common/class/xoopsModule.php"; include_once XOOPS_ROOT_PATH . "/common/class/xoopsDB.php"; include_once XOOPS_ROOT_PATH . "/common/class/textsanitizer.php"; $xoopsModule = new xoopsModule(); $xoopsDB = new xoopsDB(); $xoopsModuleConfig = get_xoopsModulesConfig(); if (empty($xoopsModuleConfig)) { $xoopsModuleConfig = mkXoopsModuleConfig($modversion); } if ($_REQUEST['op'] == "login_chk") { login_chk($_POST['login_id'], $_POST['login_pass']); header("location:" . XOOPS_URL . "/index.php"); } elseif ($_REQUEST['op'] == "logout") { logout(); } $module_login = isAdmin() ? "<a href='" . XOOPS_URL . "/admin/index.php'>後台管理</a> | <a href='" . XOOPS_URL . "/common/setup.php'>偏好設定</a>" : login_form(); $module_title = empty($xoopsModuleConfig['fp_title']) ? $modversion['name'] : $xoopsModuleConfig['fp_title']; $module_url = XOOPS_URL; //判斷是否為管理員 function isAdmin() { if ($_SESSION['login_id'] == ADMIN_ID and $_SESSION['login_pass'] == ADMIN_PASSWD) { return true; } return false; } //登出按鈕 function logout_button($interface_menu = array()) { if (!empty($_SESSION['login_id'])) { $interface_menu["登出"] = "index.php?op=logout";