Go to the source code of this file.
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_SETUP |
Functions | |
installCMS () | |
checkOpenidCurl () | |
loadConfigurationSettings () | |
saveConfigurationFile () | |
checkDatabaseAccess () | |
importDatabase () | |
checkLocationAccess ($path) | |
CheckPrerequisites () | |
saveHtaccess () | |
Variables | |
global | $sourceFolder = 'cms' |
global | $scriptPath = substr($scriptPathWithFolder , 0, strrpos($scriptPathWithFolder , '/')) |
global | $URL_REWRITE = 'false' |
$installFolder = '.' | |
$userConfigs = array() | |
$cmsFolder = "../$sourceFolder" | |
$templateFolder = "$cmsFolder/templates/crystalx" | |
$scriptPathWithFolder = substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/')) | |
$installPageNumber = 2 | |
$prerequisiteText = CheckPrerequisites() | |
if($installPageNumber==1) else if($installPageNumber==2) else | if ($installPageNumber==3) |
enum __PRAGYAN_CMS |
Very important variable for detecting direct script access to any other .php file.
Definition at line 10 of file install.php.
enum CMS_SETUP |
Definition at line 27 of file install.php.
checkDatabaseAccess | ( | ) |
Definition at line 258 of file install.php.
checkLocationAccess | ( | $ | path | ) |
Checks whether the file or folder at the given path is writable or not.
$path | the full path of the file on the local server |
1 | Requested path is a file | |
2 | Requested path is a folder | |
4 | Requested path exists and writable | |
8 | Requested path exists but NOT writable | |
16 | Requested path doesn't exist | |
5 | File, exists and writable | |
9 | File, exists but NOT writable | |
6 | Folder, exists and writable | |
10 | Folder, exists but NOT writable | |
16 | Path doesn't exist |
Definition at line 424 of file install.php.
checkOpenidCurl | ( | ) |
Checks if Curl is enabled. This is needed for OpenID
Definition at line 144 of file install.php.
CheckPrerequisites | ( | ) |
Checks prerequisites.
Definition at line 451 of file install.php.
importDatabase | ( | ) |
Definition at line 318 of file install.php.
installCMS | ( | ) |
Install the CMS
If OPEN ID not required, skip checkOpenidCurl.
Required for fixing index values after unsettings
If URL Rewrite is disabled, then skip the saveHtaccess installation step. It will be on second last.
Required for fixing index values after unsettings
Definition at line 93 of file install.php.
loadConfigurationSettings | ( | ) |
Save configuration settings submitted from the form.
Definition at line 167 of file install.php.
saveConfigurationFile | ( | ) |
Definition at line 233 of file install.php.
saveHtaccess | ( | ) |
Save .htaccess
Definition at line 542 of file install.php.
$cmsFolder = "../$sourceFolder" |
Definition at line 19 of file install.php.
$installFolder = '.' |
Definition at line 16 of file install.php.
$installPageNumber = 2 |
Definition at line 30 of file install.php.
$prerequisiteText = CheckPrerequisites() |
Definition at line 31 of file install.php.
$scriptPath = substr($scriptPathWithFolder , 0, strrpos($scriptPathWithFolder , '/')) |
Definition at line 13 of file install.php.
$scriptPathWithFolder = substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/')) |
Definition at line 21 of file install.php.
$sourceFolder = 'cms' |
Definition at line 12 of file install.php.
$templateFolder = "$cmsFolder/templates/crystalx" |
Definition at line 20 of file install.php.
$URL_REWRITE = 'false' |
Definition at line 14 of file install.php.
$userConfigs = array() |
Definition at line 18 of file install.php.
Definition at line 45 of file install.php.