Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 1417

Přidáno uživatelem David Raška před více než 12 roky(ů)

Opravy:
- #188: Pokud je phpinfo zakazano, tak se jej vubec nesnazi nacist

Upravy:
- Odstraneny informace o SVN z nastaveni

Zobrazit rozdíly:

freenetis/branches/testing/application/i18n/cs_CZ/texts.php
'forward records' => 'Dopředné záznamy',
'fourth-degree certified engineers' => 'Certifikování technici čtvrtého stupně',
'free' => 'Volná',
'freenetis_version' => 'Verze FreenetIS',
'frequence' => 'Frekvence',
'from/to' => 'Od/komu',
'from' => 'Od',
freenetis/branches/testing/application/i18n/en_US/texts.php
'%s days ago' => '%s days ago',
'%s hours ago' => '%s hours ago',
'association members' => 'Association members',
'freenetis_version' => 'FreenetIS version',
'new member' => 'New member',
'username' => 'Username',
'password' => 'Password',
freenetis/branches/testing/application/controllers/settings.php
$data = array();
foreach ($this->svn as $key => $value)
if (defined('FREENETIS_VERSION'))
{
$key = __('' . inflector::humanize($key));
if (strpos($value, 'http') !== FALSE)
{
$data[$key] = $value;
}
else
{
$data[$key] = __('' . $value);
}
$data[__('freenetis_version')] = FREENETIS_VERSION;
}
$data[__('DB schema revision')] = Settings::get('db_schema_version');
ob_start();
phpinfo();
$html = ob_get_contents();
ob_end_clean();
// Delete styles from output (credits: Moodle.org)
$html = preg_replace('#(\n?<style[^>]*?>.*?</style[^>]*?>)|(\n?<style[^>]*?/>)#is', '', $html);
$html = preg_replace('#(\n?<head[^>]*?>.*?</head[^>]*?>)|(\n?<head[^>]*?/>)#is', '', $html);
// Delete DOCTYPE from output
$html = preg_replace('/<!DOCTYPE html PUBLIC.*?>/is', '', $html);
// Delete body and html tags
$html = preg_replace('/<html.*?>.*?<body.*?>/is', '', $html);
$html = preg_replace('/<\/body><\/html>/is', '', $html);
$html = preg_replace('/table border="0"/is', 'table class="extended"', $html);
$html = '';
if (function_exists('phpinfo'))
{
phpinfo();
$html = ob_get_contents();
ob_end_clean();
// Delete styles from output (credits: Moodle.org)
$html = preg_replace('#(\n?<style[^>]*?>.*?</style[^>]*?>)|(\n?<style[^>]*?/>)#is', '', $html);
$html = preg_replace('#(\n?<head[^>]*?>.*?</head[^>]*?>)|(\n?<head[^>]*?/>)#is', '', $html);
// Delete DOCTYPE from output
$html = preg_replace('/<!DOCTYPE html PUBLIC.*?>/is', '', $html);
// Delete body and html tags
$html = preg_replace('/<html.*?>.*?<body.*?>/is', '', $html);
$html = preg_replace('/<\/body><\/html>/is', '', $html);
$html = preg_replace('/table border="0"/is', 'table class="extended"', $html);
}
$table = new View('table_2_columns');
$table->table_data = $data;
freenetis/branches/testing/index.php
'Your <code>$kohana_system</code> directory does not exist. '.
'Set a valid <code>$kohana_system</code> in <tt>'.KOHANA.'</tt> and refresh the page.'
);
define('FREENETIS_VERSION', '1.0.0');
// Mail to developers
define('DEVELOPER_EMAIL_ADDRESS', 'bugs@freenetis.org');

Také k dispozici: Unified diff