configuration.php
来自「this the oscommerce 3.0 aplha 4」· PHP 代码 · 共 66 行
PHP
66 行
<?php/* $Id: $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2007 osCommerce This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 (1991) as published by the Free Software Foundation.*/ class osC_Configuration_Admin { function getGroupTitle($id) { global $osC_Database; $Qcg = $osC_Database->query('select configuration_group_title from :table_configuration_group where configuration_group_id = :configuration_group_id'); $Qcg->bindTable(':table_configuration_group', TABLE_CONFIGURATION_GROUP); $Qcg->bindInt(':configuration_group_id', $id); $Qcg->execute(); $result = $Qcg->value('configuration_group_title'); $Qcg->freeResult(); return $result; } function getData($id) { global $osC_Database; $Qcfg = $osC_Database->query('select * from :table_configuration where configuration_id = :configuration_id'); $Qcfg->bindTable(':table_configuration', TABLE_CONFIGURATION); $Qcfg->bindInt(':configuration_id', $id); $Qcfg->execute(); $result = $Qcfg->toArray(); $Qcfg->freeResult(); return $result; } function save($id, $value) { global $osC_Database; $Qupdate = $osC_Database->query('update :table_configuration set configuration_value = :configuration_value, last_modified = now() where configuration_id = :configuration_id'); $Qupdate->bindTable(':table_configuration', TABLE_CONFIGURATION); $Qupdate->bindValue(':configuration_value', $value); $Qupdate->bindInt(':configuration_id', $id); $Qupdate->setLogging($_SESSION['module'], $id); $Qupdate->execute(); if ( $Qupdate->affectedRows() ) { osC_Cache::clear('configuration'); return true; } return false; } }?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?