예제 #1
0
     if ($soption == 'full') {
         $depth = '-1';
     }
     if ($soption == 'level' && $depth == '') {
         $depth = '2';
     }
     if (!isset($in)) {
         $in = '';
     }
     if (!isset($out)) {
         $out = '';
     }
     if (!isset($use_pref)) {
         $use_pref = 0;
     }
     $message = editsite($site_id, $url, $title, $short_desc, $depth, $in, $out, $domainlv, $cat, $smap_url, $authent, $use_pref, $prior_level);
     showsites($message);
     break;
 case 5:
     deletesite($site_id);
     if ($del_related == '1') {
         delRelated($site_id);
         break;
     }
     showsites($message);
     break;
 case add_cat:
     if (!isset($parent)) {
         $parent = "";
     }
     addcatform($parent);
예제 #2
0
파일: admin.php 프로젝트: vijaydamale/Test
     showsites();
     break;
 case edit_site:
     editsiteform($site_id);
     break;
 case 4:
     if (!isset($domaincb)) {
         $domaincb = 0;
     }
     if (!isset($cat)) {
         $cat = "";
     }
     if ($soption == 'full') {
         $depth = -1;
     }
     $message = editsite($site_id, $url, $title, $short_desc, $depth, $in, $out, $domaincb, $cat);
     showsites($message);
     break;
 case 5:
     deletesite($site_id);
     showsites();
     break;
 case add_cat:
     if (!isset($parent)) {
         $parent = "";
     }
     addcatform($parent);
     break;
 case 7:
     if (!isset($parent)) {
         $parent = "";