示例#1
0
     if (empty($url)) {
         $url = $title;
     }
     edit_content($title, $tag, $url, $content, $oldfile, $destination, $description, $dateTime, $quote, $revertPost, $publishDraft, $category, 'quote');
 } else {
     if ($proper && !empty($title) && !empty($tag) && !empty($content) && !empty($audio)) {
         if (empty($url)) {
             $url = $title;
         }
         edit_content($title, $tag, $url, $content, $oldfile, $destination, $description, $dateTime, $audio, $revertPost, $publishDraft, $category, 'audio');
     } else {
         if ($proper && !empty($title) && !empty($tag) && !empty($content) && !empty($is_post)) {
             if (empty($url)) {
                 $url = $title;
             }
             edit_content($title, $tag, $url, $content, $oldfile, $destination, $description, $dateTime, null, $revertPost, $publishDraft, $category, 'post');
         } else {
             $message['error'] = '';
             if (empty($title)) {
                 $message['error'] .= '<li>Title field is required.</li>';
             }
             if (empty($tag)) {
                 $message['error'] .= '<li>Tag field is required.</li>';
             }
             if (empty($content)) {
                 $message['error'] .= '<li>Content field is required.</li>';
             }
             if (!$proper) {
                 $message['error'] .= '<li>CSRF Token not correct.</li>';
             }
             if (!empty($is_image)) {
示例#2
0
         $strrm = guilang($strrm, $__lang);
     }
 }
 @ob_end_clean();
 //print_r($strraw);
 ob_start();
 #carefully selected global order of execution for each core client
 #this is a seperated feature
 if (isset($_cfg['global']['ent_decode'])) {
     if ($_cfg['global']['ent_decode'] == "before_make_object" or $_cfg['global']['ent_decode'] == "on") {
         $strraw[0] = html_entity_decode($strraw[0]);
     }
 }
 #end
 if (function_exists("edit_content")) {
     $strraw[0] = edit_content($strraw[0], $_cfg['global']['default_request_folder']);
 }
 if (function_exists("edit_template")) {
     $strraw[1] = edit_template($strraw[1], $_cfg['global']['default_template']);
 }
 if ($_cfg['global']['make_object_on_strrm'] == "on" && isset($strrm)) {
     $strraw[0] = $strrm;
 }
 if (is_dir($__the_cwd . "/cache/" . $_cfg['global']['current_client'] . "/")) {
     chdir($__the_cwd . "/cache/" . $_cfg['global']['current_client'] . "/");
 }
 if (function_exists("make_object") && isset($cont_vars) && is_array($cont_vars)) {
     if ($_cfg['global']['var_dump'] == "on") {
         $dbg = true;
     }
     #this is a seperated feature