TA的每日心情 | 怒 2020-10-2 23:00 |
---|
签到天数: 10 天 [LV.3]偶尔看看II
|
ctl.product.php-
- class ctl_product extends shopPage{
-
- var $_call = 'call';
- var $type = 'goods';
- var $seoTag = array
- ('shopname','brand','goods_name','goods_cat','goods_intro','goods_brief','brand_kw','goods_kw','goods_pr
- ice','update_time','goods_bn');
- function ctl_product(){
- parent::shopPage();
- $this->title = $this->system->getConf('site.goods_title');
- $this->keywords = $this->system->getConf('site.goods_meta_key_words');
- $this->desc = $this->system->getConf('site.goods_meta_desc');
- }
- function call(){
- $args = func_get_args();
- $action = array_shift($args);
- //echo $args."||".var_dump($this);
- //echo 1111;
- var_dump($args);
- var_dump(get_class_methods($this));
- if(method_exists($this,$action)){
- return call_user_func_array(array(&$this,$action),$args);//可以执行一些 系统自带的函
- 数 我们找下有没可利用的
- }
-
- pageFactory.php
- public function _set_compile( $key, &$content )//就调用这个函数 可以直接写出shell
- {
- if ( !$this->force_compile )
- {
- file_put_contents( $this->compile_dir.$key.".php", $content );
- }
- }
复制代码 Exp
By:Cond0r |
|