Esempio n. 1
0
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
include_once "includes/sp-load.php";
if ($_GET['sec'] == 'my-profile' || $_POST['sec'] == 'updatemyprofile') {
    isLoggedIn();
} else {
    checkAdminLoggedIn();
}
include_once SP_CTRLPATH . "/user.ctrl.php";
include_once SP_CTRLPATH . "/website.ctrl.php";
include_once SP_CTRLPATH . "/keyword.ctrl.php";
$controller = new UserController();
$controller->view->menu = 'users';
$controller->layout = 'ajax';
$controller->spTextPanel = $controller->getLanguageTexts('panel', $_SESSION['lang_code']);
$controller->set('spTextPanel', $controller->spTextPanel);
$controller->spTextUser = $controller->getLanguageTexts('user', $_SESSION['lang_code']);
$controller->set('spTextUser', $controller->spTextUser);
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    switch ($_POST['sec']) {
        case "create":
            $controller->createUser($_POST);
            break;
        case "update":
            $controller->updateUser($_POST);
            break;
        case "updatemyprofile":
            $controller->updateMyProfile($_POST);
            break;
        case "activateall":
            if (!empty($_POST['ids'])) {
Esempio n. 2
0
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/
include_once "includes/sp-load.php";
if (isLoggedIn() && $_GET['sec'] != 'logout') {
    redirectUrl(SP_WEBPATH . "/");
}
include_once SP_CTRLPATH . "/user.ctrl.php";
$controller = new UserController();
$controller->view->menu = 'login';
$controller->set('spTitle', 'Seo Panel: Login section');
$controller->set('spDescription', 'Login to Seo Panel and utilise seo tools and plugins to increase the perfomance of your site.');
$controller->set('spKeywords', 'Seo Panel Login section');
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    switch ($_POST['sec']) {
        case "login":
            $controller->login();
            break;
        case "requestpass":
            $controller->set('spTitle', 'Seo panel forgot password');
            $controller->requestPassword($_POST['email']);
            break;
        default:
            $controller->index();
            break;
    }
Esempio n. 3
0
<?php

include_once "includes/sp-load.php";
if (isLoggedIn()) {
    redirectUrl(SP_WEBPATH . "/");
}
include_once SP_CTRLPATH . "/user.ctrl.php";
$controller = new UserController();
$controller->view->menu = 'register';
$controller->set('spTitle', 'Seo Tools: User Registration');
$controller->set('spDescription', 'Seo Tools: User Registration');
$controller->set('spKeywords', 'Seo tools User Registration');
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    switch ($_POST['sec']) {
        case "register":
            $controller->startRegistration();
            break;
    }
} else {
    switch ($_GET['sec']) {
        case "confirm":
            $controller->confirmUser($_GET['cfm']);
            break;
        default:
            $controller->register();
            break;
    }
}