芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/breadwinnerv2/application/hooks/Myapp.php
load->database(); $query = $ci->db->query("SELECT * FROM app_system WHERE id=1 LIMIT 1"); $row = $query->row_array(); $this->lang->load($row["lang"], $row["lang"]); $this->config->set_item('ctitle', $row["cname"]); $this->config->set_item('address', $row["address"]); $this->config->set_item('city', $row["city"]); $this->config->set_item('region', $row["region"]); $this->config->set_item('country', $row["country"]); $this->config->set_item('postbox', $row["postbox"]); $this->config->set_item('phone', $row["phone"]); $this->config->set_item('email', $row["email"]); $this->config->set_item('tax', $row["tax"]); $this->config->set_item('taxno', $row["taxid"]); $this->config->set_item('currency', $row["currency"]); $this->config->set_item('format_curr', $row["currency_format"]); $this->config->set_item('prefix', $row["prefix"]); // $this->config->set_item('date_f',$row["dfomat"]); $this->config->set_item('tzone', $row["zone"]); $this->config->set_item('logo', $row["logo"]); switch ($row['dformat']) { case 1: $this->config->set_item('date', date("d-m-Y")); $this->config->set_item('dformat', "d-m-Y"); $this->config->set_item('dformat2', "dd-mm-yyyy"); break; case 2: $this->config->set_item('date', date("Y-m-d")); $this->config->set_item('dformat', "Y-m-d"); $this->config->set_item('dformat2', "yyyy-mm-dd"); break; case 3: $this->config->set_item('date', date("m-d-Y")); $this->config->set_item('dformat', "m-d-Y"); $this->config->set_item('dformat2', "mm-dd-yyyy"); break; } date_default_timezone_set($row["zone"]); } } ?>