Changeset 336 for trunk/bin


Ignore:
Timestamp:
May 28, 2008 4:15:25 AM (16 years ago)
Author:
quinn
Message:

Minor bugfixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/module_maker/skel/admin.php

    r295 r336  
    1010
    1111$auth->requireLogin();
    12 // $auth->requireAccessClearance(ZONE_ADMIN_%NAME_UPPER%);
    1312$app->sslOn();
    1413
     
    7170
    7271case 'add' :
    73 //     $auth->requireAccessClearance(ZONE_ADMIN_%NAME_UPPER%_FUNC_ADD);
    7472    // Initialize variables for the form template.
    7573    $frm =& addRecordForm();
     
    7977
    8078case 'edit' :
    81 //     $auth->requireAccessClearance(ZONE_ADMIN_%NAME_UPPER%_FUNC_EDIT);
    8279    // Initialize variables for the form template.
    8380    $frm =& editRecordForm(getFormData('%PRIMARY_KEY%'));
     
    8784
    8885case 'del' :
    89 //     $auth->requireAccessClearance(ZONE_ADMIN_%NAME_UPPER%_FUNC_DELETE);
    9086    deleteRecord(getFormData('%PRIMARY_KEY%'));%ADMIN_UPLOAD_DEL%
    9187    if ($app->validBoomerangURL('%NAME_PLURAL%')) {
     
    9894
    9995case 'insert' :
    100 //     $auth->requireAccessClearance(ZONE_ADMIN_%NAME_UPPER%_FUNC_ADD);
    10196    if (getFormdata('cancel', false)) {
    10297        if ($app->validBoomerangURL('%NAME_PLURAL%')) {
     
    128123
    129124case 'update' :
    130 //     $auth->requireAccessClearance(ZONE_ADMIN_%NAME_UPPER%_FUNC_EDIT);
    131125    if (getFormdata('reset', false)) {
    132126        $app->raiseMsg(_("Saved values have been reloaded."), MSG_NOTICE, __FILE__, __LINE__);
     
    170164
    171165case _("Save rank") :
    172 //     $auth->requireAccessClearance(ZONE_ADMIN_PROGRAMS_FUNC_REORDER);
    173166    updateRank(getFormData('rank'));
    174167    $app->dieURL($_SERVER['PHP_SELF']);
     
    176169
    177170default :
    178 //     $auth->requireAccessClearance(ZONE_ADMIN_%NAME_UPPER%_FUNC_LIST, _("Permission to view %NAME_PLURAL% list denied."));
    179171    $list =& getCachedList();
    180172    $main_template = '%ADMIN_LIST_TEMPLATE%';
     
    182174}
    183175
    184 /******************************************************************************
    185  * TEMPLATE INITIALIZATION
    186  *****************************************************************************/
     176/********************************************************************
     177* OUTPUT
     178********************************************************************/
    187179
    188180include 'header.ihtml';
Note: See TracChangeset for help on using the changeset viewer.