コード例 #1
0
ファイル: url.php プロジェクト: skerbis/redaxo
 /**
  * Initializes the class.
  *
  * @param string $htdocs  Htdocs path
  * @param string $backend Backend folder name
  */
 public static function init($htdocs, $backend)
 {
     self::$base = $htdocs;
     self::$backend = substr($htdocs, -3) === '../' ? '' : $htdocs . $backend . '/';
 }
コード例 #2
0
ファイル: setup.php プロジェクト: alsahh/redaxo
    $class = '';
    if (count($error_array) > 0) {
        $class = 'error';
        $content .= implode('', $error_array);
        $buttons = '<a class="btn btn-setup" href="' . rex_url::backendPage('setup', ['step' => 4, 'lang' => $lang]) . '">' . rex_i18n::msg('setup_312') . '</a>';
    } else {
        $class = 'success';
        $buttons = '<a class="btn btn-setup" href="' . rex_url::backendPage('setup', ['step' => 4, 'lang' => $lang]) . '">' . rex_i18n::msg('setup_310') . '</a>';
    }
    $security = '<div class="rex-js-setup-security-message" style="display:none">' . rex_view::error(rex_i18n::msg('setup_security_msg') . '<br />' . rex_i18n::msg('setup_no_js_security_msg')) . '</div>';
    $security .= '<noscript>' . rex_view::error(rex_i18n::msg('setup_no_js_security_msg')) . '</noscript>';
    $security .= '<script>

    jQuery(function($){

        $.each(["' . rex_url::backend('data/.redaxo') . '", "' . rex_url::backend('src/core/boot.php') . '", "' . rex_url::backend('cache/.redaxo') . '"], function (i, url) {
            $.ajax({
                url: url,
                cache: false,
                success: function(data) {
                    $(".rex-js-setup-security-message").show();
                    $(".rex-js-setup-section").hide();
                }
            });
        });

    })

    </script>';
    echo rex_view::title(rex_i18n::msg('setup_300'));
    $fragment = new rex_fragment();