⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 misc.php

📁 国外php开源电子商店,国外php开源电子商店
💻 PHP
字号:
<?php/*    [UCenter] (C)2001-2008 Comsenz Inc.    This is NOT a freeware, use is subject to license terms    $Id: misc.php 12126 2008-01-11 09:40:32Z heyond $*/!defined('IN_UC') && exit('Access Denied');define('UC_ARRAY_SEP_1', 'UC_ARRAY_SEP_1');define('UC_ARRAY_SEP_2', 'UC_ARRAY_SEP_2');class miscmodel {    var $db;    var $base;    function miscmodel(&$base) {        $this->base = $base;        $this->db = $base->db;    }    function get_apps($col = '*', $where = '') {        $arr = $this->db->fetch_all("SELECT $col FROM ".UC_DBTABLEPRE."applications".($where ? ' WHERE '.$where : ''));        return $arr;    }    function delete_apps($appids) {    }    function update_app($appid, $name, $url, $authkey, $charset, $dbcharset) {    }    //private    function alter_app_table($appid, $operation = 'ADD') {    }    function get_host_by_url($url) {    }    function check_url($url) {    }    function check_ip($url) {    }    function test_api($url, $ip = '') {    }    function dfopen($url, $limit = 0, $post = '', $cookie = '', $bysocket = FALSE, $ip = '', $timeout = 15, $block = TRUE) {    }    function array2string($arr) {        $s = $sep = '';        if($arr && is_array($arr)) {            foreach($arr as $k=>$v) {                $s .= $sep.$k.UC_ARRAY_SEP_1.$v;                $sep = UC_ARRAY_SEP_2;            }        }        return $s;    }    function string2array($s) {        $arr = explode(UC_ARRAY_SEP_2, $s);        $arr2 = array();        foreach($arr as $k=>$v) {            list($key, $val) = explode(UC_ARRAY_SEP_1, $v);            $arr2[$key] = $val;        }        return $arr2;    }}?>

⌨️ 快捷键说明

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