echo "</div>\r\n\t\t\t\t\t\t\t<div class=\"form_row\">\r\n\t\t\t\t\t\t\t\t<div class=\"form_label\"><label for=\"file_tags\">" . $lang['tags'] . " <span class=\"form_required\">" . $lang['form_required'] . "</span></label><span class=\"form_help\">" . $lang['form_help_upload_tags'] . "</span></div>\r\n\t\t\t\t\t\t\t\t<div class=\"form_item\"><input type=\"text\" class=\"form_text\" id=\"file_tags\" name=\"file_tags\" size=\"18\" /></div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"form_row\">\r\n\t\t\t\t\t\t\t\t<div class=\"form_label\"><label for=\"replace\">" . $lang['form_upload_replace_files'] . "</label><span class=\"form_help\">" . $lang['form_help_upload_replace_files'] . "</span></div>\r\n\t\t\t\t\t\t\t\t<div class=\"form_item_check\"><input type=\"checkbox\" id=\"replace\" name=\"replace\" value=\"y\" /></div>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"form_row_button\">\r\n\t\t\t\t\t\t\t\t<input type=\"submit\" class=\"form_submit\" name=\"submit_upload\" value=\"" . $lang['upload'] . "\" />\r\n\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"{$max_size}\" />";
 if (isset($ck) && $ck) {
     echo "<input type=\"hidden\" name=\"ckFuncNumReturn\" value=\"{$CKEditorFuncNum}\" />";
 }
 if (isset($ck) && $ck) {
     echo "<input type=\"hidden\" name=\"ck\" value=\"1\" />";
 }
 if (isset($ckfile) && $ckfile) {
     echo "<input type=\"hidden\" name=\"ckfile\" value=\"1\" />";
 }
 if (isset($ckimage) && $ckimage) {
     echo "<input type=\"hidden\" name=\"ckimage\" value=\"1\" />";
 }
 echo "\t\t\t\t</div>\r\n\t\t\t\t\t\t</fieldset>\r\n\t\t\t\t\t\t</form>\r\n\t\t\t\t\t</div>";
 $type = 'module';
 admin_block_tag_cloud('pixie_files', 'file_id >= 0');
 echo "\t\t\t\t</div>\n";
 if (isset($tag) && $tag) {
     $title = $lang['file_manager_tagged'] . " " . $tag;
     $tag = squash_slug($tag);
     $rs = safe_rows_start('*', 'pixie_files', "tags REGEXP '[[:<:]]" . $tag . "[[:>:]]' order by file_name");
 } else {
     $title = $lang['file_manager_latest'];
     $rs = safe_rows_start('*', 'pixie_files', "file_type != 'x' order by file_id desc limit 30");
 }
 echo "\r\n\t\t\t\t<div id=\"pixie_content\" class=\"filemanager\">\r\n\t\t\t\t\t<h2>" . $lang['nav2_files'] . "</h2>";
 if (isset($ck) && $ck) {
     $messageok = $lang['ck_select_file'];
 }
 echo "\t\t\t\t\t<div id=\"filemanager_table\">\r\n\t\t\t\t\t\t<table class=\"tbl\" summary=\"" . $title . " @ " . str_replace('http://', "", $site_url) . "\">\r\n\t\t\t\t\t\t<thead>\r\n\t\t\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t\t\t<th class=\"tbl_heading\" id=\"theicon\"></th>\r\n\t\t\t\t\t\t\t\t<th class=\"tbl_heading\" id=\"thefilename\">" . $lang['filename'] . "</th>";
 if (!isset($ck) or !$ck) {
Example #2
0
             $type = 'dynamic';
             $table_name = 'pixie_dynamic_posts';
             $edit_id = 'post_id';
             $page_id = safe_field('page_id', 'pixie_core', "page_name='{$x}'");
             if (isset($go) && $go == 'new') {
                 admin_head();
                 admin_new($table_name, $edit_exclude = array('page_id', 'post_id', 'last_modified', 'author', 'post_views', 'post_slug'));
             } else {
                 if (isset($edit) && $edit) {
                     admin_head();
                     admin_edit($table_name, $edit_id, $edit, $edit_exclude = array('page_id', 'post_id', 'last_modified', 'last_modified_by', 'author', 'post_views', 'post_slug'));
                 } else {
                     admin_carousel($x);
                     echo "\t\t\t<div id=\"blocks\">\n";
                     admin_block_search($type);
                     admin_block_tag_cloud($table_name, 'page_id = ' . $page_id . '');
                     echo "\t\t\t\t</div>\n";
                     admin_head();
                     echo "\t\t\t\t<div id=\"pixie_content\">";
                     admin_overview($table_name, 'where page_id = ' . $page_id . '', 'posted', 'desc', $exclude = array('page_id', 'post_id', 'author', 'public', 'comments', 'tags', 'content', 'last_modified', 'last_modified_by', 'post_views', 'post_slug'), '15', $type);
                     echo "\t\t\t\t</div>";
                 }
             }
         }
     }
     break;
     // Show Module
 // Show Module
 default:
     extract(safe_row('*', 'pixie_dynamic_settings', "page_id = '{$page_id}'"));
     switch ($m) {
Example #3
0
function admin_module($module_name, $table_name, $order_by, $asc_desc, $exclude = array(NULL), $edit_exclude = array(NULL), $view_number, $tags)
{
    global $type, $go, $page, $message, $s, $m, $x, $edit, $submit_new, $submit_edit, $delete, $messageok, $new, $search_submit, $field, $search_words;
    if (isset($GLOBALS['pixie_user_privs']) && $GLOBALS['pixie_user_privs'] >= 1) {
        $type = 'module';
        if (isset($go) && $go == 'new' && isset($table_name)) {
            admin_head();
            admin_new($table_name, $edit_exclude);
        } else {
            if (isset($edit) && $edit && isset($table_name)) {
                admin_head();
                admin_edit($table_name, $module_name . '_id', $edit, $edit_exclude);
            } else {
                if (isset($table_name)) {
                    admin_carousel($x);
                    echo "\n\t\t\t\t<div id=\"blocks\">\n";
                    admin_block_search($type);
                    if (isset($tags) && $tags == 'yes') {
                        admin_block_tag_cloud($table_name, $module_name . "_id >= 0");
                    }
                    echo "\t\t\t\t</div>\n";
                    admin_head();
                    echo "\t\t\t\t<div id=\"pixie_content\">";
                    admin_overview($table_name, '', $order_by, $asc_desc, $exclude, $view_number, $type);
                    echo "\t\t\t\t</div>\n";
                }
            }
        }
    }
}