Namespaces | Functions | Variables

cms/admin.lib.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.


Functions

 globalSettingsForm ()
 showOption (num)
 websiteInfoSettingsForm ()
 templateSettingsForm ()
 registrationsSettingsForm ()
 securitySettingsForm ()
 admin ($pageid, $userid)
 managementForm ($type)
 updateGlobalSettings ()
 admin_checkFunctionPerms ()
 admin_checkAdminUser ()
 admin_checkAdminPerms ()
 admin_changePermRank ($module="")
 admin_editProfileForm ()
 groupManagementForm ($currentUserId, $modifiableGroups, &$pagePath)

Variables

</style >< scripttype="text/javascript"> total = 4
window onload

Function Documentation

admin ( pageid,
userid 
)

Definition at line 316 of file admin.lib.php.

admin_changePermRank ( module = ""  ) 

Definition at line 811 of file admin.lib.php.

admin_checkAdminPerms (  ) 

Definition at line 760 of file admin.lib.php.

admin_checkAdminUser (  ) 

Definition at line 738 of file admin.lib.php.

admin_checkFunctionPerms (  ) 

Definition at line 616 of file admin.lib.php.

admin_editProfileForm (  ) 

Definition at line 828 of file admin.lib.php.

globalSettingsForm (  ) 

First check if there is a "valid" user with verifyemail true having the admin permission. If there is not, then make an enabled user with email=admin.org and generate a password for him, and echo (or return or show) the email and password. If there is, and the current userId does not have permission for admin, return getContent(0,0,0,false);

Then check if there is coressponding row in permlist for every module class action. Also vice-versa check if there is function for every permsission in database. Also check for page level permissions.

Then check if the uploads directory is writable. If not give error.

Then allow to change all perm_ranks.

function admin($userId) { }

Definition at line 60 of file admin.lib.php.

groupManagementForm ( currentUserId,
modifiableGroups,
&$  pagePath 
)

Parse any get variables, do necessary validation and stuff, so that we needn't check inside every if

Definition at line 833 of file admin.lib.php.

managementForm ( type  ) 

Definition at line 530 of file admin.lib.php.

registrationsSettingsForm (  ) 

Definition at line 179 of file admin.lib.php.

securitySettingsForm (  ) 

Definition at line 218 of file admin.lib.php.

showOption ( num   ) 

Definition at line 71 of file admin.lib.php.

templateSettingsForm (  ) 

Definition at line 129 of file admin.lib.php.

updateGlobalSettings (  ) 

Definition at line 560 of file admin.lib.php.

websiteInfoSettingsForm (  ) 

Definition at line 99 of file admin.lib.php.


Variable Documentation

window onload
Initial value:
"showOption(4);"><Button>Security and Maintainence</Button></td>
        </tr>
        </table>
        </div>
globalform

Definition at line 76 of file admin.lib.php.

</style><scripttype="text/javascript"> total = 4

Definition at line 70 of file admin.lib.php.