banner.php

来自「this the oscommerce 3.0 aplha 4」· PHP 代码 · 共 48 行

PHP
48
字号
<?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_Services_banner_Admin {    var $title,        $description,        $uninstallable = true,        $depends,        $precedes;    function osC_Services_banner_Admin() {      global $osC_Language;      $osC_Language->loadIniFile('modules/services/banner.php');      $this->title = $osC_Language->get('services_banner_title');      $this->description = $osC_Language->get('services_banner_description');    }    function install() {      global $osC_Database;      $osC_Database->simpleQuery("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) VALUES ('Display Duplicate Banners', 'SERVICE_BANNER_SHOW_DUPLICATE', '-1', 'Show duplicate banners in the same banner group on the same page?', '6', '0', 'osc_cfg_use_get_boolean_value', 'osc_cfg_set_boolean_value(array(1, -1))', now())");    }    function remove() {      global $osC_Database;      $osC_Database->simpleQuery("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");    }    function keys() {      return array('SERVICE_BANNER_SHOW_DUPLICATE');    }  }?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?