예제 #1
0
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   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";
checkLoggedIn();
isHavingWebsite();
include_once SP_CTRLPATH . "/seoplugins.ctrl.php";
$controller = new SeoPluginsController();
$controller->view->menu = 'seoplugins';
$controller->set('spTitle', 'Seo Panel: Provides latest seo plugins to increase and track the performace your websites');
$controller->set('spDescription', 'Its an open source software and also you can develop your own seo plugins for seo panel. Download new seo plugins and install into your seo panel software and increase your site perfomance.');
$controller->set('spKeywords', 'seo panel plugins,latest seo plugins,download seo plugins,install seo plugins,develop seo plugins');
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    switch ($_POST['sec']) {
        default:
            $controller->manageSeoPlugins($_POST, 'post');
            break;
    }
} else {
    switch ($_GET['sec']) {
        case "show":
            $controller->showSeoPlugins();
            break;
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   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";
checkAdminLoggedIn();
include_once SP_CTRLPATH . "/seoplugins.ctrl.php";
$controller = new SeoPluginsController();
$controller->set('spTextPanel', $controller->getLanguageTexts('panel', $_SESSION['lang_code']));
$controller->spTextPlugin = $controller->getLanguageTexts('plugin', $_SESSION['lang_code']);
$controller->set('spTextPlugin', $controller->spTextPlugin);
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    switch ($_POST['sec']) {
        case "update":
            $controller->updateSeoPlugin($_POST);
            break;
    }
} else {
    switch ($_GET['sec']) {
        case "changestatus":
            $status = empty($_GET['status']) ? 1 : 0;
            $controller->changeStatus($_GET['seoplugin_id'], $status);
            $controller->listSeoPlugins();
예제 #3
0
 function startRegistration()
 {
     $_POST = sanitizeData($_POST);
     $this->set('post', $_POST);
     $userInfo = $_POST;
     $subscriptionActive = false;
     $errMsg['userName'] = formatErrorMsg($this->validate->checkUname($userInfo['userName']));
     $errMsg['password'] = formatErrorMsg($this->validate->checkPasswords($userInfo['password'], $userInfo['confirmPassword']));
     $errMsg['firstName'] = formatErrorMsg($this->validate->checkBlank($userInfo['firstName']));
     $errMsg['lastName'] = formatErrorMsg($this->validate->checkBlank($userInfo['lastName']));
     $errMsg['email'] = formatErrorMsg($this->validate->checkEmail($userInfo['email']));
     $errMsg['code'] = formatErrorMsg($this->validate->checkCaptcha($userInfo['code']));
     $errMsg['utype_id'] = formatErrorMsg($this->validate->checkNumber($userInfo['utype_id']));
     // if payment plugin installed check whether valid payment gateway found
     $seopluginCtrler = new SeoPluginsController();
     if ($seopluginCtrler->isPluginActive("Subscription")) {
         $subscriptionActive = true;
         $errMsg['pg_id'] = formatErrorMsg($this->validate->checkNumber($userInfo['pg_id']));
     }
     if (!$this->validate->flagErr) {
         if (!$this->__checkUserName($userInfo['userName'])) {
             if (!$this->__checkEmail($userInfo['email'])) {
                 $utypeId = intval($userInfo['utype_id']);
                 $sql = "insert into users\r\n\t\t\t\t\t(utype_id,username,password,first_name,last_name,email,created,status) \r\n\t\t\t\t\tvalues ({$utypeId},'" . addslashes($userInfo['userName']) . "','" . md5($userInfo['password']) . "',\r\n\t\t\t\t\t'" . addslashes($userInfo['firstName']) . "','" . addslashes($userInfo['lastName']) . "',\r\n\t\t\t\t\t'" . addslashes($userInfo['email']) . "',UNIX_TIMESTAMP(),1)";
                 $this->db->query($sql);
                 // get user id created
                 $userId = $this->db->getMaxId('users');
                 // check whether subscription is active
                 if ($subscriptionActive and $userId) {
                     $utypeCtrler = new UserTypeController();
                     $utypeInfo = $utypeCtrler->__getUserTypeInfo($utypeId);
                     // if it is paid subscription, proceed with payment
                     if ($utypeInfo['price'] > 0) {
                         $paymentPluginId = intval($userInfo['pg_id']);
                         @Session::setSession('payment_plugin_id', $paymentPluginId);
                         $quantity = intval($userInfo['quantity']);
                         $pluginCtrler = $seopluginCtrler->createPluginObject("Subscription");
                         $paymentForm = $pluginCtrler->pgCtrler->getPaymentForm($paymentPluginId, $userId, $utypeInfo, $quantity);
                         $this->set('paymentForm', $paymentForm);
                     }
                 }
                 $this->render('common/registerconfirm');
                 return True;
             } else {
                 $errMsg['email'] = formatErrorMsg($_SESSION['text']['login']['emailexist']);
             }
         } else {
             $errMsg['userName'] = formatErrorMsg($_SESSION['text']['login']['usernameexist']);
         }
     }
     $this->set('errMsg', $errMsg);
     $this->register();
 }
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   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";
checkAdminLoggedIn();
include_once SP_CTRLPATH . "/seoplugins.ctrl.php";
$controller = new SeoPluginsController();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    switch ($_POST['sec']) {
        case "update":
            $controller->updateSeoPlugin($_POST);
            break;
    }
} else {
    switch ($_GET['sec']) {
        case "changestatus":
            $status = empty($_GET['status']) ? 1 : 0;
            $controller->changeStatus($_GET['seoplugin_id'], $status);
            $controller->listSeoPlugins();
            break;
        case "edit":
            $controller->editSeoPlugin($_GET);
예제 #5
0
 *   sendtogeo@gmail.com   												   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   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";
include_once SP_CTRLPATH . "/seoplugins.ctrl.php";
$seopluginCtrler = new SeoPluginsController();
if ($seopluginCtrler->isPluginActive("Subscription")) {
    // verify the payment plugin id and invoice id in the session
    if (!empty($_SESSION['payment_plugin_id']) && !empty($_SESSION['invoice_id'])) {
        $pluginCtrler = $seopluginCtrler->createPluginObject("Subscription");
        $pluginCtrler->pgCtrler->processTransaction($_SESSION['payment_plugin_id'], $_SESSION['invoice_id'], $_GET, $_POST);
    } else {
        echo "Valid invoice id not found!";
    }
} else {
    echo "Not authorized to access this page!";
}