Namespaces |
namespace | pragyan |
| Widget Framework for Pragyan CMS (c) 2010 Pragyan Team http://www.gnu.org/licenses/ GNU Public License For more details, see README Add support for File Upload/Download via the widget's configurations Reload Widgets ,Get Widget Instances. see bottom.
|
Enumerations |
enum | __PRAGYAN_CMS |
| Very important variable for detecting direct script access to any other .php file.
More...
|
enum | CMS_TITLE |
| Some of the previously defined global settings variables are converted into constants.
More...
|
enum | DEF_TEMPLATE |
| Default template name.
More...
|
enum | UPLOAD_SIZE_LIMIT |
| Upload size limit for the CMS. All the modules use this constant as the upload limit.
More...
|
enum | SEND_MAIL_ON_REGISTRATION |
| Whether to send a mail when a new user registers.
More...
|
enum | CMS_EMAIL |
| Email address to be used by CMS when sending mails to users.
More...
|
enum | ACTIVATE_USER_ON_REG |
| Whether to activate the user on registration.
More...
|
enum | TEMPLATE |
| Gets the page-specific template for that requested page.
More...
|
Variables |
| $cmsFolder = "cms" |
| Folder containing all library files.
|
| $moduleFolder = "modules" |
| Folder containing all the modules.
|
| $templateFolder = "templates" |
| Folder containing all the modules.
|
| $uploadFolder = "uploads" |
| Folder containing the upload files, temporary files and session files.
|
| $widgetFolder = "widgets" |
| Folder containing all the widgets.
|
| $debugSet = "off" |
| Initial value of debug enabler, will get overridden by the config value.
|
| $sourceFolder = "/".$cmsFolder |
| Complete location of the source folder.
|
| $PAGELASTUPDATED = "" |
| Can be used to update the last updated time.
|
| $ERRORSTRING = "" |
| Defined here. Will get appended by displayerror() in common.lib.php.
|
| $INFOSTRING = "" |
| Defined here. Will get appended by displayinfo() in common.lib.php.
|
| $WARNINGSTRING = "" |
| Defined here. Will get appended by displaywarning() in common.lib.php.
|
| $STARTSCRIPTS = "" |
| Will contain a string containing all that has to be executed on window load.
|
| $urlRequestRoot = substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')) |
| Root of the request - that path to cms base.
|
| $TEMPLATEBROWSERPATH = "" |
| Full path to template folder as seen from the browser (defined in template.lib.php).
|
| $TEMPLATECODEPATH = "" |
| Full path to template folder as seen by httpd while parsing (defined in template.lib.php).
|
| $SITEDESCRIPTION = "" |
| Site description to be used in the HTML <meta> tag.
|
| $SITEKEYWORDS = "" |
| Site keywords to be used in the HTML <meta> tag.
|
| $LOGINFORM = "" |
| Login form to be used in template.
|
| $DEBUGINFO = "" |
| Debugging information.
|
| $cookieSupported = false |
| is cookie supported by the client's browser ?
|
| $ICONS = "" |
| Stores all the icons locations along with.
|
| $ICONS_SRC = "" |
| Stores all the icons locations without the.
|
| $WIDGETS = array() |
| Variables for storing widgets.
|
| $onlineSiteUrl = "home" |
| For example, if hosted on pragyan.org/10, $onlineSiteUrl = http://pragyan.org/10/home.
|
| if (!defined("ADMIN_USERID")) |
| If config.inc.php doesn't exists, assume CMS hasn't been installed.
|
| $dbase |
| Defined here to set its access as global to the project.
|
| $userId = firstTimeGetUserId() |
else | $pageFullPath = "home" |
else | $action = "view" |
| $globals = getGlobalSettings() |
| Get all the global settings from the database and convert into variables.
|
if($openid_enabled=='true') | $rewriteEngineEnabled = $url_rewrite |
| Check the status of URL rewriting taken from database.
|
| $FOOTER = $cms_footer |
| $pageId = parseUrlReal($pageFullPath, $pageIdArray) |
| Include all the required libraries.
|
if(URLSecurityCheck($_GET)) if(isset($_GET['fileget'])) | $permission = getPermissions($userId, $pageId, $action) |
| The URL may contain some harmful GET variables, so filter and block such URLs.
|
else | $TITLE = CMS_TITLE |
| $CONTENT = getContent($pageId, $action, $userId, $permission) |
| Gets the content according to the user's permissions.
|
| $INHERITEDINFO = inheritedinfo($pageIdArray) |
| Gets the inherited code (if any) from the parent page.
|
| $BREADCRUMB = breadcrumbs($pageIdArray," » ") |
| Gets the breadcrumb.
|
| $MENUBAR = getMenu($userId, $pageIdArray) |
| Gets the menubar consisting of the child pages from the current location upto a certain depth.
|
| $ACTIONBARMODULE = getActionbarModule($userId, $pageId) |
| Gets the list of allowed actions for the current module on the page.
|