function page() { global $user; ?> <header id="header-extra"> <!-- <div id="logo-group"> <span id="logo"> <img src="/images/logo.png" alt="Mango"> </span> </div> --> <span id="extra-page-header-space"> <span class="hidden-mobile hiddex-xs">Need an account?</span> <a href="/pages/user/requestAccess.php" class="btn btn-danger">Request Access</a> </span> </header> <div id="main" role="main"> <!-- MAIN CONTENT --> <div id="content" class="container"> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-7 col-lg-8 hidden-xs hidden-sm"> <h1 class="txt-color-red login-header-big">Mango <small>Newspaper Management Made Easy</small> </h1> <!-- <div class="hero"> <div class="pull-left login-desc-box-l"> <h4 class="paragraph-header">It's Okay to be Smart. Experience the simplicity of SmartAdmin, everywhere you go!</h4> </div> <img src="/images/iphoneview.png" class="pull-right display-image" alt="" style="width:210px"> </div> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <h5 class="about-heading">About SmartAdmin - Are you up to date?</h5> <p> Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa. </p> </div> <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <h5 class="about-heading">Not just your average template!</h5> <p> Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi voluptatem accusantium! </p> </div> </div> --> </div> <div class="col-xs-12 col-sm-12 col-md-5 col-lg-4"> <div class="well"> <?php userForm(); ?> </div> </div> </div> </div> </div> <?php }
$userdata['password'] = $newuserpass; $_SESSION['user'] = md5($newuserpass); $passw_changed = true; } else { $savedetails = false; $userdata['password'] = NULL; sysMsg(MSG00032); userForm($userdata); } } } if ($savedetails == true) { saveUser($userdata); getUsersList('0', '0', '10'); } } else { sysMsg(MSG00033); } } elseif (isset($_GET['action'])) { $action = cleanGet($_GET['action']); if ($action == 'add') { userForm('add'); } } else { getUsersList('0', '0', '10'); } } //END ---> GET ADMIN ACTION FROM GET AND CALL FUNCTION if ($inv_view == false) { include_once 'admin_template/footer.php'; }
$userdata['password'] = NULL; sysMsg(MSG00181); userForm($userdata); } } } if ($savedetails == true) { saveUser($userdata); $showindex = true; } } else { sysMsg(MSG00033); } } elseif (isset($_GET['user']) && $_GET['user'] == 'hidehelp' && $userid != 0) { disableUserHelp($userid); $showindex = true; } elseif (isset($_GET['user']) && $_GET['user'] == 'showhelp' && $userid != 0) { enableUserHelp($userid); $showindex = true; } elseif (isset($_GET['user']) && $_GET['user'] == 'edit' && $userid != 0) { $showindex = false; $userdata['id'] = $userid; userForm($userdata); } if ($showindex == true && $userid != 0) { showUserInfo($userid); } //START FUNCTIONS if (!isset($_GET['preview'])) { include_once 'admin_template/footer.php'; }
public function userForm() { userForm(); }