Changeset 3262:d7ae7e24da60
- Timestamp:
- 07/02/16 10:12:25 (8 years ago)
- Branch:
- default
- Location:
- inc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.dc.page.php
r3256 r3262 1007 1007 } 1008 1008 1009 public static function getVF($file) 1010 { 1011 return $GLOBALS['core']->adminurl->get('load.var.file',array('vf' => $file)); 1012 } 1013 1009 1014 public static function setXFrameOptions($origin = null) 1010 1015 { -
inc/admin/prepend.php
r3109 r3262 208 208 209 209 $core->adminurl->registercopy('load.plugin.file','admin.home',array('pf' => 'dummy.css')); 210 $core->adminurl->registercopy('load.var.file','admin.home',array('vf' => 'dummy.json')); 210 211 211 212 if ($core->auth->userID() && $core->blog !== null) -
inc/core/class.dc.blog.php
r3134 r3262 138 138 { 139 139 $ret = $this->getQmarkURL().'pf='.$pf; 140 if ($strip_host) { 141 $ret = html::stripHostURL($ret); 142 } 143 return $ret; 144 } 145 146 /** 147 Returns public URL of specified var file. 148 */ 149 public function getVF($vf, $strip_host=true) 150 { 151 $ret = $this->getQmarkURL().'vf='.$vf; 140 152 if ($strip_host) { 141 153 $ret = html::stripHostURL($ret); -
inc/load_var_file.php
r3260 r3262 62 62 } 63 63 64 $allow_types = array('png','jpg','jpeg','gif','css','js','swf','svg','html' );64 $allow_types = array('png','jpg','jpeg','gif','css','js','swf','svg','html','xml','json','txt'); 65 65 66 66 $vf = path::clean($_GET['vf']);
Note: See TracChangeset
for help on using the changeset viewer.