Exemplo n.º 1
0
<?php

require "../../global/library.php";
$folder = dirname(__FILE__);
require_once "{$folder}/library.php";
ft_init_module_page();
if (isset($_POST["update"])) {
    list($g_success, $g_message) = pg_update_settings($_POST);
}
$page_vars = array();
$page_vars["head_title"] = "{$L["word_pages"]} - {$LANG["word_settings"]}";
$page_vars["num_pages_per_page"] = ft_get_module_settings("num_pages_per_page");
ft_display_module_page("templates/settings.tpl", $page_vars);
Exemplo n.º 2
0
//echo sc_generate_db_config_file($tables, "core, "2.0.4");
$word_testing_uc = mb_strtoupper($L["word_untested"]);
$word_passed_uc = mb_strtoupper($L["word_passed"]);
$word_failed_uc = mb_strtoupper($L["word_failed"]);
$page_vars = array();
$page_vars["module_list"] = sc_get_compatible_modules("tables");
$page_vars["core_version"] = $core_version;
$page_vars["head_string"] = <<<EOF
<script src="{$g_root_url}/modules/system_check/global/scripts/tests.js"></script>
<link type="text/css" rel="stylesheet" href="{$g_root_url}/modules/system_check/global/css/styles.css">
<script>
g.messages = [];
g.messages["word_testing_c"] = "{$L["word_testing_c"]}";
g.messages["word_untested"] = "{$word_testing_uc}";
g.messages["word_passed"] = "{$word_passed_uc}";
g.messages["word_failed"] = "{$word_failed_uc}";
g.messages["phrase_missing_table_c"] = "{$L["phrase_missing_table_c"]}";
g.messages["phrase_missing_column_c"] = "{$L["phrase_missing_column_c"]}";
g.messages["phrase_table_looks_good_c"] = "{$L["phrase_table_looks_good_c"]}";
g.messages["phrase_invalid_column_c"] = "{$L["phrase_invalid_column_c"]}";
g.messages["text_tables_test"] = "{$L["text_tables_test"]}";
g.messages["notify_test_complete_problems"] = "{$L["notify_test_complete_problems"]}";
g.messages["notify_test_complete_no_problems"] = "{$L["notify_test_complete_no_problems"]}";
g.messages["validation_no_components_selected"] = "{$L["validation_no_components_selected"]}";

var loading = new Image();
loading.src = "{$g_root_url}/modules/system_check/images/loading.gif";
</script>
EOF;
ft_display_module_page("templates/tables.tpl", $page_vars);
Exemplo n.º 3
0
<?php

require "../../global/library.php";
$folder = dirname(__FILE__);
ft_init_module_page();
ft_display_module_page("templates/help.tpl");
Exemplo n.º 4
0
<script src="{$g_root_url}/global/scripts/sortable.js"></script>
END;
$page_vars["head_js"] = <<<EOF
var page_ns = {};
page_ns.dialog = \$("<div></div>");

page_ns.delete_export_group = function(el) {
  ft.create_dialog({
    dialog:     page_ns.dialog,
    title:      "{$LANG["phrase_please_confirm"]}",
    content:    "{$L["confirm_delete_export_group"]}",
    popup_type: "warning",
    buttons: [{
      text: "{$LANG["word_yes"]}",
      click: function() {
        var export_group_id = \$(el).closest(".row_group").find(".sr_order").val();
        window.location = "index.php?delete=" + export_group_id;
      }
    },
    {
      text: "{$LANG["word_no"]}",
      click: function() {
        \$(this).dialog("close");
      }
    }]
  });
  return false;
}
EOF;
ft_display_module_page("templates/index.tpl", $page_vars);
Exemplo n.º 5
0
<?php

require_once "../../global/library.php";
ft_init_module_page();
$page_vars = array();
ft_display_module_page("templates/help.tpl", $page_vars);
<?php

if (!isset($request["export_type_id"])) {
    session_write_close();
    header("location: edit.php?page=export_types");
    exit;
}
$export_type_id = $request["export_type_id"];
if (isset($request["update_export_type"])) {
    list($g_success, $g_message) = exp_update_export_type($request);
}
$page_vars["page"] = "edit_export_type";
$page_vars["export_group_id"] = $export_group_id;
$page_vars["export_group_info"] = exp_get_export_group($export_group_id);
$page_vars["export_type"] = exp_get_export_type($export_type_id);
$page_vars["head_string"] .= "<script type=\"text/javascript\" src=\"{$g_root_url}/global/codemirror/js/codemirror.js\"></script>";
$page_vars["head_title"] = "{$L["module_name"]} - {$L["phrase_edit_export_type"]}";
$page_vars["head_js"] = "\nvar page_ns = {};\npage_ns.rules = [];\npage_ns.rules.push(\"required,export_type_name,Please enter the name of this export type.\");\npage_ns.rules.push(\"required,filename,Please enter the filename structure for all generated content from this export type.\");\npage_ns.rules.push(\"required,smarty_template,Please enter the Smarty content for this export type.\");\n";
ft_display_module_page("templates/export_groups/edit.tpl", $page_vars);
Exemplo n.º 7
0
<?php

require "../../global/library.php";
$folder = dirname(__FILE__);
ft_init_module_page();
ft_display_module_page("templates/reset.tpl");
Exemplo n.º 8
0
// this stores the default editor in the page. The values are either "codemirror", "tinymce": all
// code editing is done through one of those editors
$editor = $page_info["content_type"] == "html" && $page_info["use_wysiwyg"] == "yes" ? "tinymce" : "codemirror";
// ------------------------------------------------------------------------------------------------
$page_vars = array();
$page_vars["head_title"] = $L["phrase_edit_page"];
$page_vars["page_id"] = $page_id;
$page_vars["page_info"] = $page_info;
$page_vars["tinymce_available"] = $tinymce_available ? "yes" : "no";
$page_vars["head_string"] = <<<EOF
  <script src="{$g_root_url}/global/codemirror/js/codemirror.js"></script>
  <script src="scripts/pages.js"></script>
EOF;
if ($tinymce_available) {
    $page_vars["head_string"] .= "<script src=\"{$g_root_url}/modules/field_type_tinymce/tinymce/jquery.tinymce.js\"></script>";
}
$page_vars["head_js"] = <<<EOF
if (typeof pages_ns == undefined) {
  var pages_ns = {};
}

pages_ns.current_editor = "{$editor}";
var rules = [];
rsv.onCompleteHandler = function() {
  \$("#use_wysiwyg_hidden").val(\$("#uwe").attr("checked") ? "yes" : "no");
  ft.select_all(document.pages_form["selected_client_ids[]"]);
  return true;
}
EOF;
ft_display_module_page("templates/edit.tpl", $page_vars);
Exemplo n.º 9
0
<?php

require "../../global/library.php";
ft_init_module_page();
$folder = dirname(__FILE__);
require_once "{$folder}/library.php";
$request = array_merge($_POST, $_GET);
$page_id = $request["page_id"];
$page_info = pg_get_page($page_id);
$content = $page_info["content"];
switch ($page_info["content_type"]) {
    case "php":
        ob_start();
        eval($page_info["content"]);
        $content = ob_get_contents();
        ob_end_clean();
        break;
    case "smarty":
        $content = ft_eval_smarty_string($page_info["content"]);
        break;
}
// ------------------------------------------------------------------------------------------------
$page_vars = array();
$page_vars["page_id"] = $page_id;
$page_vars["phrase_edit_page"] = $L["phrase_edit_page"];
$page_vars["head_title"] = "{$LANG["pages"]["word_page"]} - {$page_info["heading"]}";
$page_vars["page_info"] = $page_info;
$page_vars["content"] = $content;
ft_display_module_page("templates/view.tpl", $page_vars);
Exemplo n.º 10
0
$page_vars["module_list"] = sc_get_compatible_modules("hooks");
$page_vars["head_string"] = <<<EOF
<script src="{$g_root_url}/modules/system_check/global/scripts/tests.js"></script>
<link type="text/css" rel="stylesheet" href="{$g_root_url}/modules/system_check/global/css/styles.css">
<script>
g.messages = [];
g.messages["word_testing_c"] = "{$L["word_testing_c"]}";
g.messages["word_untested"] = "{$word_testing_uc}";
g.messages["word_passed"] = "{$word_passed_uc}";
g.messages["word_failed"] = "{$word_failed_uc}";
g.messages["phrase_missing_table_c"] = "{$L["phrase_missing_table_c"]}";
g.messages["phrase_missing_column_c"] = "{$L["phrase_missing_column_c"]}";
g.messages["phrase_table_looks_good_c"] = "{$L["phrase_table_looks_good_c"]}";
g.messages["phrase_invalid_column_c"] = "{$L["phrase_invalid_column_c"]}";
g.messages["text_tables_test"] = "{$L["text_tables_test"]}";
g.messages["notify_test_complete_problems"] = "{$L["notify_test_complete_problems"]}";
g.messages["notify_test_complete_no_problems"] = "{$L["notify_test_complete_no_problems"]}";
g.messages["validation_no_components_selected"] = "{$L["validation_no_components_selected"]}";
g.messages["notify_hook_verification_complete_problems"] = "{$notify_hook_verification_complete_problems}";

var loading = new Image();
loading.src = "{$g_root_url}/modules/system_check/images/loading.gif";
\$(function() {
  \$("#repair_hooks").live("click", function() {
    window.location = "hooks.php?repair=" + sc_ns.hook_verification_failed_module_ids.toString();
  });
});
</script>
EOF;
ft_display_module_page("templates/orphans.tpl", $page_vars);
Exemplo n.º 11
0
<?php

require "../../../global/library.php";
ft_init_module_page();
require_once "../library.php";
// ------------------------------------------------------------------------------------------------
$page_vars = array();
$page_vars["head_title"] = "{$L["module_name"]} - {$L["phrase_add_export_type"]}";
$page_vars["head_js"] = "\nvar page_ns = {};\npage_ns.rules = [];\npage_ns.rules.push(\"required,export_type_name,Please enter the name of this export type.\");\npage_ns.rules.push(\"required,filename,Please enter the filename structure for all generated content from this export type.\");\npage_ns.rules.push(\"required,smarty_template,Please enter the Smarty content for this export type.\");\n";
ft_display_module_page("templates/export_types/add.tpl", $page_vars);