Esempio n. 1
0
             $fin_day = "0{$fin_day}";
         }
         if (strlen($fin_month) == 1) {
             $fin_month = "0{$fin_month}";
         }
         $date_finval = "{$fin_year}-{$fin_month}-{$fin_day} {$fin_hour}:{$fin_min}:00";
     }
     if ($date_finval < $date_debval) {
         $date_finval = $date_debval;
     }
     $temp_new = mktime(substr($date_debval, 11, 2), substr($date_debval, 14, 2), 0, substr($date_debval, 5, 2), substr($date_debval, 8, 2), substr($date_debval, 0, 4));
     $temp = time();
     if ($temp > $temp_new) {
         postStory("pub_immediate", $qid, $uid, $author, $subject, $hometext, $bodytext, $topic, $notes, $catid, $ihome, $members, $Mmembers, $date_debval, $date_finval, $epur);
     } else {
         postStory("pub_automated", $qid, $uid, $author, $subject, $hometext, $bodytext, $topic, $notes, $catid, $ihome, $members, $Mmembers, $date_debval, $date_finval, $epur);
     }
     break;
 case "DeleteStory":
     deleteStory($qid);
     Header("Location: admin.php?op=submissions");
     break;
 case "EditStory":
     editStory($sid);
     break;
 case "ChangeStory":
     if (!$date_finval) {
         if (strlen($fin_day) == 1) {
             $fin_day = "0{$fin_day}";
         }
         if (strlen($fin_month) == 1) {
Esempio n. 2
0
     SelectCategory($cat);
     break;
 case "AddCategory":
     AddCategory();
     break;
 case "SaveCategory":
     SaveCategory($title);
     break;
 case "DisplayStory":
     displayStory($qid);
     break;
 case "PreviewAgain":
     previewStory($automated, $year, $day, $month, $hour, $min, $qid, $uid, $author, $subject, $hometext, $bodytext, $topic, $notes, $catid, $ihome, $alanguage, $acomm, $pollTitle, $optionText, $assotop);
     break;
 case "PostStory":
     postStory($automated, $year, $day, $month, $hour, $min, $qid, $uid, $author, $subject, $hometext, $bodytext, $topic, $notes, $catid, $ihome, $alanguage, $acomm, $pollTitle, $optionText, $assotop);
     break;
 case "EditStory":
     editStory($sid);
     break;
 case "RemoveStory":
     removeStory($sid, $ok);
     break;
 case "ChangeStory":
     changeStory($sid, $subject, $hometext, $bodytext, $topic, $notes, $catid, $ihome, $alanguage, $acomm, $assotop);
     break;
 case "DeleteStory":
     deleteStory($qid);
     break;
 case "adminStory":
     adminStory($sid);