Namespaces | Enumerations | Functions | Variables

INSTALL/install.php File Reference

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 ()
 saveConfigurationSettings ()
 checkDatabaseAccess ()
 importDatabase ()
 checkLocationAccess ($path)
 CheckPrerequisites ()
 saveHtaccess ()

Variables

global $sourceFolder = 'cms'
global $scriptPath = substr($scriptPathWithFolder , 0, strrpos($scriptPathWithFolder , '/'))
global $URL_REWRITE = 'false'
 $installFolder = '.'
 $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)

Enumeration Type Documentation

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 26 of file install.php.


Function Documentation

checkDatabaseAccess (  ) 

Definition at line 242 of file install.php.

checkLocationAccess ( path  ) 

Checks whether the file or folder at the given path is writable or not.

Parameters:
$path the full path of the file on the local server
Returns:
an integer code, which will be the combination of the following :
Return values:
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 408 of file install.php.

checkOpenidCurl (  ) 

Checks if Curl is enabled. This is needed for OpenID

Returns:
string Empty value if successful. If fails, returns with the error message string

Definition at line 141 of file install.php.

CheckPrerequisites (  ) 

Checks prerequisites.

Returns:
string A string with a report of the problems, if any.

Definition at line 435 of file install.php.

importDatabase (  ) 

Definition at line 302 of file install.php.

installCMS (  ) 

Install the CMS

Returns:
array A list of steps that were carried out, with a field against each step indicating whether it succeeded or failed.

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 last.

Required for fixing index values after unsettings

Definition at line 92 of file install.php.

saveConfigurationSettings (  ) 

Save configuration settings submitted from the form.

Returns:
bool Boolean value indicating whether the method was successful.

Definition at line 164 of file install.php.

saveHtaccess (  ) 

Save .htaccess

Definition at line 510 of file install.php.


Variable Documentation

$cmsFolder = "../$sourceFolder"

Definition at line 18 of file install.php.

$installFolder = '.'

Definition at line 16 of file install.php.

$installPageNumber = 2

Definition at line 29 of file install.php.

$prerequisiteText = CheckPrerequisites()

Definition at line 30 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 20 of file install.php.

$sourceFolder = 'cms'

Definition at line 12 of file install.php.

$templateFolder = "$cmsFolder/templates/crystalx"

Definition at line 19 of file install.php.

$URL_REWRITE = 'false'

Definition at line 14 of file install.php.

if ($installPageNumber==1) else if ($installPageNumber==2) else if($installPageNumber==3)

Definition at line 44 of file install.php.