Esempio n. 1
0
    public function outputFooter()
    {
        if ($this->useShortHeader) {
            ?>
</body></html>
<?php 
            return;
        }
        ?>

</div></div>


<div id="mw-panel">
	<div class="portal" id="p-logo">
	  <a style="background-image: url(../skins/common/images/mediawiki.png);"
		href="http://www.mediawiki.org/"
		title="Main Page"></a>
	</div>
	<div class="portal"><div class="body">
<?php 
        echo $this->parent->parse(wfMessage('config-sidebar')->plain(), true);
        ?>
	</div></div>
</div>

</body>
</html>
<?php 
    }
Esempio n. 2
0
    public function outputFooter()
    {
        if ($this->useShortHeader) {
            echo Html::closeElement('body') . Html::closeElement('html');
            return;
        }
        ?>

</div></div>

<div id="mw-panel">
	<div class="portal" id="p-logo">
	  <a style="background-image: url(images/installer-logo.png);"
		href="https://www.mediawiki.org/"
		title="Main Page"></a>
	</div>
	<div class="portal"><div class="body">
<?php 
        echo $this->parent->parse(wfMessage('config-sidebar')->plain(), true);
        ?>
	</div></div>
</div>

<?php 
        echo Html::closeElement('body') . Html::closeElement('html');
    }
Esempio n. 3
0
    public function outputFooter()
    {
        if ($this->useShortHeader) {
            ?>
</body></html>
<?php 
            return;
        }
        ?>

</div></div>


<div id="mw-panel">
	<div class="portal" id="p-logo">
	  <a style="background-image: url(../skins/common/images/mediawiki.png);"
		href="http://www.mediawiki.org/"
		title="Main Page"></a>
	</div>
	<script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
	<div class="portal"><div class="body">
<?php 
        echo $this->parent->parse(wfMsgNoTrans('config-sidebar'), true);
        ?>
	</div></div>
</div>

</body>
</html>
<?php 
    }
 /**
  * Get a standard web-user fieldset
  * @param string $noCreateMsg Message to display instead of the creation checkbox.
  *   Set this to false to show a creation checkbox.
  *
  * @return String
  */
 public function getWebUserBox($noCreateMsg = false)
 {
     $wrapperStyle = $this->getVar('_SameAccount') ? 'display: none' : '';
     $s = Html::openElement('fieldset') . Html::element('legend', array(), wfMessage('config-db-web-account')->text()) . $this->getCheckBox('_SameAccount', 'config-db-web-account-same', array('class' => 'hideShowRadio', 'rel' => 'dbOtherAccount')) . Html::openElement('div', array('id' => 'dbOtherAccount', 'style' => $wrapperStyle)) . $this->getTextBox('wgDBuser', 'config-db-username') . $this->getPasswordBox('wgDBpassword', 'config-db-password') . $this->parent->getHelpBox('config-db-web-help');
     if ($noCreateMsg) {
         $s .= $this->parent->getWarningBox(wfMessage($noCreateMsg)->plain());
     } else {
         $s .= $this->getCheckBox('_CreateDBAccount', 'config-db-web-create');
     }
     $s .= Html::closeElement('div') . Html::closeElement('fieldset');
     return $s;
 }
Esempio n. 5
0
function wfInstallerMain()
{
    global $wgRequest, $wgLang, $wgMetaNamespace, $wgCanonicalNamespaceNames;
    $installer = new WebInstaller($wgRequest);
    if (!$installer->startSession()) {
        $installer->finish();
        exit;
    }
    $fingerprint = $installer->getFingerprint();
    if (isset($_SESSION['installData'][$fingerprint])) {
        $session = $_SESSION['installData'][$fingerprint];
    } else {
        $session = array();
    }
    if (!is_null($wgRequest->getVal('uselang'))) {
        $langCode = $wgRequest->getVal('uselang');
    } elseif (isset($session['settings']['_UserLang'])) {
        $langCode = $session['settings']['_UserLang'];
    } else {
        $langCode = 'en';
    }
    $wgLang = Language::factory($langCode);
    $installer->setParserLanguage($wgLang);
    $wgMetaNamespace = $wgCanonicalNamespaceNames[NS_PROJECT];
    $session = $installer->execute($session);
    $_SESSION['installData'][$fingerprint] = $session;
}
        <!--[if IE]><link rel="stylesheet" type="text/css" href="theme/base/css/ie.css" /><![endif]-->
        <!--[if lte IE 6]><link rel="stylesheet" type="text/css" theme/base/css/ie6.css" /><![endif]-->
        <!--[if IE]><link rel="stylesheet" type="text/css" href="theme/default/css/ie.css" /><![endif]-->
        <script src="js/jquery.min.js"></script>
        <script src="js/install.js"></script>
    </head>
    <body id="install">
        <div id="wrap">
            <div id="header">
                <address id="site_contact" class="vcard">
                    <a class="url home bookmark" href=".">
                        <img class="logo photo" src="theme/default/logo.png" alt="StatusNet"/>
                        <span class="fn org">StatusNet</span>
                    </a>
                </address>
            </div>
            <div id="core">
                <div id="content">
                     <div id="content_inner">
                        <h1>Install StatusNet</h1>
<?php 
$installer = new WebInstaller();
$installer->main();
?>
                   </div>
                </div>
            </div>
        </div>
    </body>
</html>
Esempio n. 7
0
 /**
  * @param string $name
  * @param mixed $value
  */
 public function setVar($name, $value)
 {
     $this->parent->setVar($name, $value);
 }
        $install_controller_file = ROOT . DS . APP_DIR . DS . 'Controller' . DS . 'InstallsController.php';
        return array($install_script_file, $install_controller_file);
    }
    /**
     * Invokes a method on the class.
     * 
     * @param string $method name
     * @return mixed
     */
    protected function _invoke($method)
    {
        $rm = new ReflectionMethod(get_class($this), $method);
        return $rm->invoke($this);
    }
}
//----------------------------------------------------------------------
// Run the installer
try {
    $installer = new WebInstaller();
    $installer->run();
} catch (Exception $e) {
    header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);
    echo "<!DOCTYPE html>\n";
    echo "<html lang=\"en\">\n";
    echo "<head><title>Install Error</title></head>\n";
    echo "<body>\n";
    echo "<h1>Fatal Install Error</h1>\n";
    echo "<p><strong>Error:</strong> {$e->getMessage()}</p>\n";
    echo "</body>\n";
    echo "</html>\n";
}