Example #1
0
    if (iDEBUG) {
        $msg = nl2br($e);
    } else {
        $msg = $e->getMessage();
    }
    Page::$messages[] = array('type' => 'attention', 'message' => $msg);
    Page::message();
}
if (!$authstatus && !isset($_REQUEST['regDo'])) {
    //registering order
    if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'placeorder') {
        //temprary saving order data
        $temp = TempOrder::getInstance();
        setcookie('temporderid', $temp->Create(array('data' => serialize($_POST))));
    }
    Page::setup('Registration form');
    Page::RegForm();
} elseif (!isset($_REQUEST['regDo'])) {
    if (@$_REQUEST['action'] == 'placeorder') {
        //placing order
        $temp = TempOrder::getInstance();
        setcookie('temporderid', $temp->Create(array('data' => serialize($_POST))));
        header("Location: /index.php");
        //Page::UserOrderPlaced();
    } else {
        Page::$messages[] = array('type' => 'attention', 'message' => 'You are already registered!');
        Page::message();
    }
    Page::RegForm();
} else {
    //saving new user
Example #2
0
 /**
  * 
  * @see Page
  * @see Page::setup()
  * @see CI_Router
  * @see CI_Router::_parse_routes()
  * @access public
  */
 public function _parse_routes()
 {
     require_once APPPATH . '/libraries/Page.php';
     Page::setup($this->uri->segments);
     parent::_parse_routes();
 }
Example #3
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., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 */
require_once 'core.php';
Page::init('order');
if (!is_numeric(@$_REQUEST['id'])) {
    Page::setup('Products list');
    Page::ListProducts();
    //show list of products
} else {
    Page::setup("Order product #" . $_REQUEST['id']);
    Page::OrderPkg($_REQUEST['id']);
}
/*	
} elseif(!isset($_REQUEST['username']) || !isset($_REQUEST['password']) || strlen($_REQUEST['username']) < 2 || strlen($_REQUEST['password']) < 2){
	setcookie('pkgid', $_REQUEST['id']);
	$xtpl->parse('main');
	$xtpl->out('main');
} else {
	$auth = new Auth(trim($_REQUEST['username']), trim($_REQUEST['password']));
	$xtpl->restart("themes/simpla/login.tpl");
	if(!$auth->check_auth()){
		$xtpl->parse('main.info');
		$xtpl->parse('main');
		$xtpl->out('main');
		exit;
Example #4
0
            Page::PersonalSettings();
            break;
        case 'sendmessage':
            Page::setup(Lang::$langarray['sendmessage']);
            Page::SendMessage();
            break;
        case 'editcustomer':
            Page::setup(Lang::$langarray['editcustomer']);
            Page::EditCustomer($_REQUEST['customerid']);
            break;
        case 'editpreset':
            Page::setup(Lang::$langarray['editpreset']);
            Page::EditPreset($_REQUEST['presetid']);
            break;
        case 'editservergroup':
            Page::setup(Lang::$langarray['editserversgroup']);
            Page::EditServerGroup($_REQUEST['id']);
            break;
    }
} elseif ($action == '' && $object != '' && $auth->check_auth() && $auth->get_rights() == 'Active') {
    Page::init('user');
    //Show user's object
    switch ($object) {
        case 'editprofile':
            Page::UserProfile();
            break;
        case 'orderpkg':
            Page::UserOrderPkg(@$_REQUEST['pkgid']);
            break;
        case 'manageorders':
            Page::UserManageOrders();