예제 #1
0
 function doAjaxRemove()
 {
     $data = am4Request::get("data");
     parse_str($data, $vars);
     if (!empty($vars['post']) && is_array($vars['post'])) {
         foreach ($vars['post'] as $v) {
             $ps = new am4_Settings_Post_Meta();
             $ps->loadFromArray(array())->setPostId($v)->save();
         }
     }
 }
예제 #2
0
파일: menu.php 프로젝트: grlf/eyedock
 function doAjaxBrowse()
 {
     $dirOrig = am4Request::get('dir', ABSPATH);
     $dirOrig = is_dir($dirOrig) ? $dirOrig : ABSPATH;
     $selected = am4Request::get('selected', false);
     $dir = $selected ? dirname($dirOrig) : $dirOrig;
     $dir = realpath($dir);
     if (!is_dir($dir)) {
         $dir = ABSPATH;
     }
     $dirList = $this->getDirList($dir);
     if ($selected) {
         foreach ($dirList as $k => $dirDescription) {
             if ($dirDescription['path'] == $dirOrig) {
                 $dirList[$k]['selected'] = true;
                 break;
             }
         }
     }
     $currentDir = $this->getCurrentDir($dir);
     $prevDir = $this->getPrevDir($dir);
     $result = array('dirList' => $dirList, 'currentDir' => $currentDir, 'prevDir' => $prevDir, 'separator' => DIRECTORY_SEPARATOR);
     aMemberJson::init($result)->send();
 }
예제 #3
0
 function doSave()
 {
     $options = get_magic_quotes_gpc() ? stripslashes_deep(am4Request::get('options')) : am4Request::get('options');
     if (($errors = $this->validate($options)) !== true) {
         $this->doIndex($options, $errors);
     } else {
         $this->saveForm($options);
         $this->doIndex();
     }
 }
예제 #4
0
 function doAjaxRemove()
 {
     $data = am4Request::get("data");
     parse_str($data, $vars);
     if ($vars['post'] && is_array($vars['post'])) {
         foreach ($vars['post'] as $v) {
             update_post_meta($v, AM4_POST_META, array());
         }
     }
 }