public function get_site() { include_once ROOT_PATH . 'lib/class/publishconfig.class.php'; $publish_server = new publishconfig(); return $publish_server->get_site(); }
public function show_site() { include_once ROOT_PATH . 'lib/class/publishconfig.class.php'; $publish = new publishconfig(); $sites = $publish->get_site('id,site_name'); $ret = array(); if (is_array($sites) && count($sites) > 0) { foreach ($sites as $k => $v) { $ret[$v['id']] = $v; } } return $ret; }