- Timestamp:
- May 28, 2008 4:15:25 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/module_maker/skel/admin.php
r295 r336 10 10 11 11 $auth->requireLogin(); 12 // $auth->requireAccessClearance(ZONE_ADMIN_%NAME_UPPER%);13 12 $app->sslOn(); 14 13 … … 71 70 72 71 case 'add' : 73 // $auth->requireAccessClearance(ZONE_ADMIN_%NAME_UPPER%_FUNC_ADD);74 72 // Initialize variables for the form template. 75 73 $frm =& addRecordForm(); … … 79 77 80 78 case 'edit' : 81 // $auth->requireAccessClearance(ZONE_ADMIN_%NAME_UPPER%_FUNC_EDIT);82 79 // Initialize variables for the form template. 83 80 $frm =& editRecordForm(getFormData('%PRIMARY_KEY%')); … … 87 84 88 85 case 'del' : 89 // $auth->requireAccessClearance(ZONE_ADMIN_%NAME_UPPER%_FUNC_DELETE);90 86 deleteRecord(getFormData('%PRIMARY_KEY%'));%ADMIN_UPLOAD_DEL% 91 87 if ($app->validBoomerangURL('%NAME_PLURAL%')) { … … 98 94 99 95 case 'insert' : 100 // $auth->requireAccessClearance(ZONE_ADMIN_%NAME_UPPER%_FUNC_ADD);101 96 if (getFormdata('cancel', false)) { 102 97 if ($app->validBoomerangURL('%NAME_PLURAL%')) { … … 128 123 129 124 case 'update' : 130 // $auth->requireAccessClearance(ZONE_ADMIN_%NAME_UPPER%_FUNC_EDIT);131 125 if (getFormdata('reset', false)) { 132 126 $app->raiseMsg(_("Saved values have been reloaded."), MSG_NOTICE, __FILE__, __LINE__); … … 170 164 171 165 case _("Save rank") : 172 // $auth->requireAccessClearance(ZONE_ADMIN_PROGRAMS_FUNC_REORDER);173 166 updateRank(getFormData('rank')); 174 167 $app->dieURL($_SERVER['PHP_SELF']); … … 176 169 177 170 default : 178 // $auth->requireAccessClearance(ZONE_ADMIN_%NAME_UPPER%_FUNC_LIST, _("Permission to view %NAME_PLURAL% list denied."));179 171 $list =& getCachedList(); 180 172 $main_template = '%ADMIN_LIST_TEMPLATE%'; … … 182 174 } 183 175 184 /******************************************************************** **********185 * TEMPLATE INITIALIZATION 186 *****************************************************************************/176 /******************************************************************** 177 * OUTPUT 178 ********************************************************************/ 187 179 188 180 include 'header.ihtml';
Note: See TracChangeset
for help on using the changeset viewer.