| Current Path : /var/www/html/ajay/phpwebsite-1.8.x/mod/webpage/ |
| Current File : /var/www/html/ajay/phpwebsite-1.8.x/mod/webpage/index.php |
<?php
/**
* WARNING: This module has been deprecated. It will no longer be
* maintained by phpwebsite and no further bug/security patches will
* be released. It will be removed from the phpWebsite distribution
* at some point in the future.
*
* @deprecated since phpwebsite 1.8.0
* @version $Id$
* @author Matthew McNaney <mcnaney at gmail dot com>
*/
if (!defined('PHPWS_SOURCE_DIR')) {
include '../../core/conf/404.html';
exit();
}
Deprecate::moduleWarning('webpage');
if (isset($_REQUEST['wp_user'])) {
PHPWS_Core::initModClass('webpage', 'User.php');
Webpage_User::main();
} elseif (isset($_REQUEST['wp_admin'])) {
PHPWS_Core::initModClass('webpage', 'Admin.php');
Webpage_Admin::main();
} elseif (isset($_REQUEST['id'])) {
PHPWS_Core::initModClass('webpage', 'User.php');
Webpage_User::main('view');
} elseif (Current_User::allow('webpage')) {
PHPWS_Core::initModClass('webpage', 'Admin.php');
Webpage_Admin::main();
} else {
PHPWS_Core::errorPage('404');
}
?>