• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP pathos_permissions_check函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中pathos_permissions_check函数的典型用法代码示例。如果您正苦于以下问题:PHP pathos_permissions_check函数的具体用法?PHP pathos_permissions_check怎么用?PHP pathos_permissions_check使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了pathos_permissions_check函数的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: show

 function show($view, $loc = null, $title = "")
 {
     global $db;
     if (!defined("SYS_USERS")) {
         require_once BASE . "subsystems/users.php";
     }
     $boards = $db->selectObjects("bb_board", "location_data='" . serialize($loc) . "'");
     $iloc = pathos_core_makeLocation($loc->mod, $loc->src);
     for ($i = 0; $i < count($boards); $i++) {
         $iloc->int = "b" . $boards[$i]->id;
         $boards[$i]->permissions = array("edit_board" => pathos_permissions_check("edit_board", $iloc), "delete_board" => pathos_permissions_check("delete_board", $iloc));
         if ($boards[$i]->last_post_id != 0) {
             $lp = $db->selectObject("bb_post", "id=" . $boards[$i]->last_post_id);
             $lp->poster = pathos_users_getUserById($lp->poster);
             $boards[$i]->last_post = $lp;
         } else {
             $boards[$i]->last_post = null;
         }
     }
     $template = new template("bbmodule", $view, $loc);
     $template->assign("moduletitle", $title);
     $template->assign("boards", $boards);
     $template->register_permissions(array("administrate", "configure", "create_board", "edit_board", "delete_board"), $loc);
     $template->output();
 }
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:25,代码来源:class.php


示例2: exit

# Free Software Foundation, Inc.,
# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: edit.php,v 1.5 2005/03/11 15:18:37 filetreefrog Exp $
##################################################
if (!defined("PATHOS")) {
    exit("");
}
$item = null;
if (isset($_GET['id'])) {
    $item = $db->selectObject("imagemanageritem", "id=" . $_GET['id']);
    $loc = unserialize($item->location_data);
}
if ($item == null && pathos_permissions_check("post", $loc) || $item != null && pathos_permissions_check("edit", $loc)) {
    $form = imagemanageritem::form($item);
    $form->location($loc);
    $form->meta("action", "save");
    $template = new template("imagemanagermodule", "_form_edit", $loc);
    $directory = BASE . "files/imagemanagermodule/" . $loc->src;
    if (!isset($item->id) && !is_really_writable($directory)) {
        $template->assign("dir_not_writable", 1);
        $form->controls['submit']->disabled = 1;
    } else {
        $template->assign("dir_not_writable", 0);
    }
    $template->assign("form_html", $form->toHTML());
    $template->assign("is_edit", isset($_GET['id']));
    $template->output();
} else {
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:edit.php


示例3: exit

# for more details.
#
# You should have received a copy of the GNU
# General Public License along with Exponent; if
# not, write to:
#
# Free Software Foundation, Inc.,
# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: delete.php,v 1.5 2005/02/19 00:32:29 filetreefrog Exp $
##################################################
if (!defined('PATHOS')) {
    exit('');
}
$item = $db->selectObject('file', 'id=' . $_GET['id']);
if ($item) {
    $loc = unserialize($item->location_data);
    $iloc = pathos_core_makeLocation($loc->mod, $loc->src, $item->id);
    if (pathos_permissions_check('delete', $loc) || pathos_permissions_check('delete', $iloc)) {
        $db->delete('file', 'id=' . $item->id);
        unlink(BASE . "files/" . $item->filename);
        pathos_template_clear();
        pathos_flow_redirect();
    } else {
        echo SITE_403_HTML;
    }
} else {
    echo SITE_404_HTML;
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:delete.php


示例4: exit

# will be useful, but WITHOUT ANY WARRANTY;
# without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE.  See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU
# General Public License along with Exponent; if
# not, write to:
#
# Free Software Foundation, Inc.,
# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: rank_switch.php,v 1.2 2005/02/19 16:53:34 filetreefrog Exp $
##################################################
if (!defined("PATHOS")) {
    exit("");
}
if (pathos_permissions_check("manage", $loc)) {
    $action_a = $db->selectObject("article", "location_data='" . serialize($loc) . "' AND category_id=" . $_GET['category_id'] . " AND rank=" . $_GET['a']);
    $action_b = $db->selectObject("article", "location_data='" . serialize($loc) . "' AND category_id=" . $_GET['category_id'] . " AND rank=" . $_GET['b']);
    $action_a->rank = $_GET['b'];
    $action_b->rank = $_GET['a'];
    $db->updateObject($action_a, "article");
    $db->updateObject($action_b, "article");
    pathos_flow_redirect();
} else {
    echo SITE_403_HTML;
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:rank_switch.php


示例5: exit

# for more details.
#
# You should have received a copy of the GNU
# General Public License along with Exponent; if
# not, write to:
#
# Free Software Foundation, Inc.,
# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: delete.php,v 1.5 2005/02/19 00:32:33 filetreefrog Exp $
##################################################
//GREP:HARDCODEDTEXT
if (!defined("PATHOS")) {
    exit("");
}
$item = $db->selectObject("imagemanageritem", "id=" . $_GET['id']);
if ($item != null) {
    $loc = unserialize($item->location_data);
    if (pathos_permissions_check("delete", $loc)) {
        $file = $db->selectObject("file", "id=" . $item->file_id);
        $db->delete("file", "id=" . $file->id);
        $db->delete("imagemanageritem", "id=" . $item->id);
        pathos_flow_redirect();
    } else {
        echo SITE_403_HTML;
    }
} else {
    echo SITE_404_HTML;
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:delete.php


示例6: exit

# You should have received a copy of the GNU
# General Public License along with Exponent; if
# not, write to:
#
# Free Software Foundation, Inc.,
# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: finish_install_extension.php,v 1.7 2005/04/18 15:33:33 filetreefrog Exp $
##################################################
// Part of the Extensions category
if (!defined('PATHOS')) {
    exit('');
}
if (pathos_permissions_check('extensions', pathos_core_makeLocation('administrationmodule'))) {
    $template = new template('administrationmodule', '_upload_finalSummary', $loc);
    $sessid = session_id();
    if (!file_exists(BASE . "extensionuploads/{$sessid}") || !is_dir(BASE . "extensionuploads/{$sessid}")) {
        $template->assign('nofiles', 1);
    } else {
        if (!defined('SYS_FILES')) {
            require_once BASE . 'subsystems/files.php';
        }
        $success = array();
        foreach (array_keys(pathos_files_listFlat(BASE . "extensionuploads/{$sessid}", true, null, array(), BASE . "extensionuploads/{$sessid}")) as $file) {
            if ($file != '/archive.tar' && $file != '/archive.tar.gz' && $file != 'archive.tar.bz2' && $file != '/archive.zip') {
                pathos_files_makeDirectory(dirname($file));
                $success[$file] = copy(BASE . "extensionuploads/{$sessid}" . $file, BASE . substr($file, 1));
                if (basename($file) == 'views_c') {
                    chmod(BASE . substr($file, 1), 0777);
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:finish_install_extension.php


示例7: form

 function form($object)
 {
     pathos_lang_loadDictionary('modules', 'inboxmodule');
     pathos_lang_loadDictionary('standard', 'core');
     if (!defined('SYS_FORMS')) {
         require_once BASE . 'subsystems/forms.php';
     }
     pathos_forms_initialize();
     $form = new form();
     $users = array();
     $groups = array();
     global $db, $user;
     if (!defined('SYS_USERS')) {
         require_once BASE . 'subsystems/users.php';
     }
     if (pathos_permissions_check('contact_all', pathos_core_makeLocation('inboxmodule'))) {
         foreach (pathos_users_getAllUsers() as $u) {
             $users[$u->id] = $u->firstname . ' ' . $u->lastname . ' (' . $u->username . ')';
         }
     } else {
         foreach (pathos_users_getGroupsForUser($user, 1, 0) as $g) {
             foreach (pathos_users_getUsersInGroup($g) as $u) {
                 $users[$u->id] = $u->firstname . ' ' . $u->lastname . ' (' . $u->username . ')';
             }
         }
     }
     // Process other uses who the current user has blocked, and remove them from the list
     // Process other users who have blocked the current user, and remove them from the list.
     foreach ($db->selectObjects('inbox_contactbanned', 'owner=' . $user->id . ' OR user_id=' . $user->id) as $blocked) {
         if ($blocked->user_id == $user->id) {
             // Blocked by someone else.  Remove the owner (user who blocked us)
             unset($users[$blocked->owner]);
         } else {
             if ($blocked->owner == $user->id) {
                 // We blocked the user, remove the blocked user_id
                 unset($users[$blocked->user_id]);
             }
         }
     }
     uasort($users, 'strnatcmp');
     $groups = array();
     foreach ($db->selectObjects('inbox_contactlist', 'owner=' . $user->id) as $g) {
         $groups['list_' . $g->id] = $g->name . ' ' . TR_INBOXMODULE_PERSONALLIST;
     }
     if (pathos_permissions_check('contact_all', pathos_core_makeLocation('inboxmodule'))) {
         foreach (pathos_users_getAllGroups(1, 0) as $g) {
             $groups['group_' . $g->id] = $g->name . ' ' . TR_INBOXMODULE_SYSGROUP;
         }
     } else {
         foreach (pathos_users_getGroupsForUser($user, 1, 0) as $g) {
             $groups['group_' . $g->id] = $g->name . ' ' . TR_INBOXMODULE_SYSGROUP;
         }
     }
     uasort($groups, 'strnatcmp');
     $recipient_caption = TR_INBOXMODULE_RECIPIENT;
     $group_recipient_caption = TR_INBOXMODULE_GROUPRECIPIENT;
     $btn = new buttongroupcontrol(TR_INBOXMODULE_SEND, '', TR_CORE_CANCEL);
     $object->group_recipient = array();
     if ($object == null || !isset($object->recipient)) {
         $object->subject = '';
         $object->body = '';
         $object->recipient = array();
         if (!count($users) && !count($groups)) {
             $btn->disabled = true;
         }
     } else {
         if (!defined('SYS_USERS')) {
             require_once BASE . 'subsystems/users.php';
         }
         $u = pathos_users_getUserById($object->recipient);
         $form->register(null, '', new htmlcontrol(sprintf(TR_INBOXMODULE_REPLYTO, $u->firstname . ' ' . $u->lastname . ' (' . $u->username . ')')));
         $form->meta('replyto', $object->recipient);
         $object->recipient = array();
         unset($users[$u->id]);
         $recipient_caption = TR_INBOXMODULE_COPYTO;
         $group_recipient_caption = TR_INBOXMODULE_GROUPCOPYTO;
     }
     if (count($users)) {
         $form->register('recipients', $recipient_caption, new listbuildercontrol($object->recipient, $users));
     }
     if (count($groups)) {
         $form->register('group_recipients', $group_recipient_caption, new listbuildercontrol($object->group_recipient, $groups));
     }
     if (!count($groups) && !count($users)) {
         $form->register(null, '', new htmlcontrol('<div class="error">' . TR_INBOXMODULE_NOCONTACTSWARNING . '</div>'));
     }
     $form->register('subject', TR_INBOXMODULE_SUBJECT, new textcontrol($object->subject));
     $form->register('body', TR_INBOXMODULE_MESSAGE, new htmleditorcontrol($object->body));
     $form->register('submit', '', $btn);
     return $form;
 }
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:91,代码来源:privatemessage.php


示例8: exit

# for more details.
#
# You should have received a copy of the GNU
# General Public License along with Exponent; if
# not, write to:
#
# Free Software Foundation, Inc.,
# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: stepstone_delete.php,v 1.4 2005/02/23 23:51:17 filetreefrog Exp $
##################################################
if (!defined('PATHOS')) {
    exit('');
}
$stepstone = null;
if (isset($_GET['id'])) {
    $stepstone = $db->selectObject('codemap_stepstone', 'id=' . $_GET['id']);
}
if ($stepstone) {
    $loc = unserialize($stepstone->location_data);
    if (pathos_permissions_check('manage_steps', $loc)) {
        $db->delete('codemap_stepstone', 'id=' . $stepstone->id);
        pathos_flow_redirect();
    } else {
        echo SITE_403_HTML;
    }
} else {
    echo SITE_404_HTML;
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:stepstone_delete.php


示例9: exit

# will be useful, but WITHOUT ANY WARRANTY;
# without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE.  See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU
# General Public License along with Exponent; if
# not, write to:
#
# Free Software Foundation, Inc.,
# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: delete_record.php,v 1.2 2005/02/19 00:32:32 filetreefrog Exp $
##################################################
if (!defined("PATHOS")) {
    exit("");
}
$f = $db->selectObject("formbuilder_form", "id=" . $_GET['form_id']);
if ($f) {
    if (pathos_permissions_check("deletedata", unserialize($f->location_data))) {
        $db->delete("formbuilder_" . $f->table_name, "id=" . $_GET['id']);
        pathos_flow_redirect();
    } else {
        echo SITE_403_HTML;
    }
} else {
    echo SITE_404_HTML;
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:delete_record.php


示例10: exit

# General Public License along with Exponent; if
# not, write to:
#
# Free Software Foundation, Inc.,
# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: gmgr_savemembers.php,v 1.7 2005/02/19 00:32:28 filetreefrog Exp $
##################################################
// Part of the User Management category
if (!defined('PATHOS')) {
    exit('');
}
$memb = $db->selectObject('groupmembership', 'member_id=' . $user->id . ' AND group_id=' . $_GET['id'] . ' AND is_admin=1');
if (pathos_permissions_check('user_management', pathos_core_makeLocation('administrationmodule')) || $memb) {
    $group = $db->selectObject('group', 'id=' . $_POST['id']);
    if ($group) {
        $db->delete('groupmembership', 'group_id=' . $group->id);
        $memb = null;
        $memb->group_id = $group->id;
        if ($_POST['membdata'] != "") {
            foreach (explode(',', $_POST['membdata']) as $str) {
                $str = explode(':', $str);
                $memb->member_id = $str[0];
                $memb->is_admin = $str[1];
                $db->insertObject($memb, 'groupmembership');
            }
        }
        pathos_permissions_triggerRefresh();
        pathos_flow_redirect();
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:gmgr_savemembers.php


示例11: exit

# will be useful, but WITHOUT ANY WARRANTY;
# without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE.  See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU
# General Public License along with Exponent; if
# not, write to:
#
# Free Software Foundation, Inc.,
# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: af_delete.php,v 1.5 2005/02/19 00:32:29 filetreefrog Exp $
##################################################
if (!defined('PATHOS')) {
    exit('');
}
if (pathos_permissions_check('manage_af', $loc)) {
    $af = $db->selectObject('banner_affiliate', 'id=' . $_GET['id']);
    if ($af) {
        $db->delete('banner_affiliate', 'id=' . $_GET['id']);
        pathos_flow_redirect();
    } else {
        echo SITE_404_HTML;
    }
} else {
    echo SITE_403_HTML;
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:af_delete.php


示例12: exit

# PURPOSE.  See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU
# General Public License along with Exponent; if
# not, write to:
#
# Free Software Foundation, Inc.,
# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: orphanedcontent_delete.php,v 1.7 2005/02/19 00:32:28 filetreefrog Exp $
##################################################
if (!defined('PATHOS')) {
    exit('');
}
// Part of the Database category
if (pathos_permissions_check('database', pathos_core_makeLocation('administrationmodule'))) {
    $src = urldecode($_GET['delsrc']);
    $mod = new $_GET['mod']();
    if ($mod->hasContent()) {
        // may not need the check, but it doesn't hurt
        $mod->deleteIn(pathos_core_makeLocation($_GET['mod'], $_GET['delsrc']));
    }
    $db->delete('locationref', "module='" . $_GET['mod'] . "' AND source='{$src}' AND refcount=0");
    $db->delete('sectionref', "module='" . $_GET['mod'] . "' AND source='{$src}' AND refcount=0");
    pathos_flow_redirect();
} else {
    echo SITE_403_HTML;
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:orphanedcontent_delete.php


示例13: exit

# You should have received a copy of the GNU
# General Public License along with Exponent; if
# not, write to:
#
# Free Software Foundation, Inc.,
# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: manage.php,v 1.9 2005/04/18 15:22:30 filetreefrog Exp $
##################################################
if (!defined("PATHOS")) {
    exit("");
}
$mloc = pathos_core_makeLocation($_GET['orig_module'], $loc->src, $loc->int);
if (pathos_permissions_check('manage_categories', $mloc)) {
    pathos_flow_set(SYS_FLOW_PROTECTED, SYS_FLOW_ACTION);
    $categories = $db->selectObjects("category", "location_data='" . serialize($mloc) . "'");
    if (pathos_template_getModuleViewFile($mloc->mod, "_cat_manageCategories", false) == TEMPLATE_FALLBACK_VIEW) {
        $template = new template("categories", "_cat_manageCategories", $loc);
    } else {
        $template = new template($mloc->mod, "_cat_manageCategories", $loc);
    }
    if (!defined('SYS_SORTING')) {
        require_once BASE . 'subsystems/sorting.php';
    }
    usort($categories, "pathos_sorting_byRankAscending");
    $template->assign("origmodule", $_GET['orig_module']);
    $template->assign("categories", $categories);
    $template->output();
} else {
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:manage.php


示例14: array

$db_data = null;
$fields = array();
$captions = array();
foreach ($controls as $c) {
    $ctl = unserialize($c->data);
    $control_type = get_class($ctl);
    $def = call_user_func(array($control_type, "getFieldDefinition"));
    if ($def != null) {
        $value = call_user_func(array($control_type, 'parseData'), $c->name, $_POST, true);
        $varname = $c->name;
        $db_data->{$varname} = $value;
        $fields[$c->name] = call_user_func(array($control_type, 'templateFormat'), $value, $ctl);
        $captions[$c->name] = $c->caption;
    }
}
if (!isset($_POST['data_id']) || isset($_POST['data_id']) && pathos_permissions_check("editdata", unserialize($f->location_data))) {
    if ($f->is_saved == 1) {
        if (isset($_POST['data_id'])) {
            //if this is an edit we remove the record and insert a new one.
            $olddata = $db->selectObject('formbuilder_' . $f->table_name, 'id=' . $_POST['data_id']);
            $db_data->ip = $olddata->ip;
            $db_data->user_id = $olddata->user_id;
            $db_data->timestamp = $olddata->timestamp;
            $db->delete('formbuilder_' . $f->table_name, 'id=' . $_POST['data_id']);
        } else {
            $db_data->ip = $_SERVER['REMOTE_ADDR'];
            if (pathos_sessions_loggedIn()) {
                $db_data->user_id = $user->id;
            } else {
                $db_data->user_id = 0;
            }
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:submit_form.php


示例15: exit

# You should have received a copy of the GNU
# General Public License along with Exponent; if
# not, write to:
#
# Free Software Foundation, Inc.,
# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: htmlarea_saveconfig.php,v 1.5 2005/02/19 00:32:28 filetreefrog Exp $
##################################################
// Part of the HTMLArea category
if (!defined('PATHOS')) {
    exit('');
}
if (pathos_permissions_check('htmlarea', pathos_core_makeLocation('administrationmodule'))) {
    $config = null;
    if (isset($_POST['id'])) {
        $config = $db->selectObject('htmlareatoolbar', 'id=' . $_POST['id']);
    }
    $config->name = $_POST['config_name'];
    $config->data = array();
    foreach (explode(':', $_POST['config']) as $line) {
        $line = trim($line);
        if ($line != '') {
            $i = count($config->data);
            $config->data[] = array();
            foreach (explode(';', $line) as $icon) {
                $config->data[$i][] = $icon;
                // MAY need to strip off ed
            }
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:htmlarea_saveconfig.php


示例16: exit

# General Public License along with Exponent; if
# not, write to:
#
# Free Software Foundation, Inc.,
# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: delete_control.php,v 1.3 2005/02/19 00:32:32 filetreefrog Exp $
##################################################
if (!defined("PATHOS")) {
    exit("");
}
$ctl = null;
if (isset($_GET['id'])) {
    $ctl = $db->selectObject("formbuilder_control", "id=" . $_GET['id']);
}
if ($ctl) {
    $f = $db->selectObject("formbuilder_form", "id=" . $ctl->form_id);
    if (pathos_permissions_check("editform", unserialize($f->location_data))) {
        $db->delete("formbuilder_control", "id=" . $ctl->id);
        $db->decrement("formbuilder_control", "rank", 1, "form_id=" . $ctl->form_id . " AND rank > " . $ctl->rank);
        $f = $db->selectObject("formbuilder_form", "id=" . $ctl->form_id);
        formbuilder_form::updateTable($f);
        pathos_flow_redirect();
    } else {
        echo SITE_403_HTML;
    }
} else {
    echo SITE_404_HTML;
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:delete_control.php


示例17: exit

# You should have received a copy of the GNU
# General Public License along with Exponent; if
# not, write to:
#
# Free Software Foundation, Inc.,
# 59 Temple Place,
# Suite 330,
# Boston, MA 02111-1307  USA
#
# $Id: admin_editmimetype.php,v 1.7 2005/04/18 15:49:02 filetreefrog Exp $
##################################################
// Part of the Administration Control Panel : Files Subsystem category
if (!defined('PATHOS')) {
    exit('');
}
if (pathos_permissions_check('files_subsystem', pathos_core_makeLocation('administrationmodule'))) {
    $type = null;
    if (isset($_GET['type'])) {
        $type = $db->selectObject('mimetype', "mimetype='" . $_GET['type'] . "'");
    }
    if (!defined('SYS_FORMS')) {
        require_once BASE . 'subsystems/forms.php';
    }
    pathos_forms_initialize();
    $form = mimetype::form($type);
    $form->meta('module', 'filemanager');
    $form->meta('action', 'admin_savemimetype');
    $template = new template('filemanager', '_form_editmimetype', $loc);
    $template->assign('form_html', $form->toHTML());
    $template->assign('is_edit', isset($type->id) ? 1 : 0);
    $template->output();
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:admin_editmimetype.php



注:本文中的pathos_permissions_check函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP pathos_sessions_set函数代码示例发布时间:2022-05-15
下一篇:
PHP pathos_lang_loadDictionary函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap