Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 747

Přidáno uživatelem Michal Kliment před téměř 14 roky(ů)

Opravena chyby pri instalaci, ktere znemoznovaly uspesnou instalaci.

Zobrazit rozdíly:

freenetis/trunk/kohana/media/css/installation.css
div#error strong {
color:#CC0000;
}
.warning {
color: red;
}
freenetis/trunk/kohana/application/i18n/cs_CZ/texts.php
'1 day ago' => 'před 1 dnem',
'1 hour ago' => 'před 1 hodinou',
'1 minute ago' => 'před 1 minutou',
'99% chance you won\'t need to change this value' => '99% šance, že nebudete chtít měnit tuto hodnotu.',
'99% chance you won\'t need to change this value' => '99&#37 šance, že nebudete chtít měnit tuto hodnotu.',
'absolute majority' => 'Absolutní většina',
'abstain' => 'Zdržet se',
'about sms' => 'Informace o SMS',
......
'birthday' => 'Datum narození',
'bitrate' => 'Rychlost přenosu',
'before getting started, we need some information on the database' => 'Předtím než začneme, potřebujeme několik informací o databázi.',
'but i can\'t set file permission to 660' => 'Ale nemůžu nastavit oprávnění souboru na 660',
'but i can\'t write the configphp file' => 'Ale nemůžu zapisovat do souboru <code>config.php</code>.',
'but i can\'t write the htaccess file' => 'Ale nemůžu zapisovat do souboru <code>.htaccess</code>.',
'buy date' => 'Datum koupě',
......
'you have no permission to access redirection' => 'Nemáte práva k zobrazení přesměrování',
'you have no permission to delete redirection' => 'Nemáte práva ke smazání přesměrování',
'you have no permission to edit redirection' => 'Nemáte práva k úpravám přesměrování',
'you have to set up it by yourself:' => 'Budete jej muset nastavit ručně:',
'you must create it manually and paste the following text into it' => 'Musíte jej vytvořit ručně a zkopírovat do něj následující text.',
'you will need to know the following items before proceeding' => 'Budete potřebovat znát následující položky před pokračováním:',
'your ip address has not been found in database' => 'Vaše IP adresa nebyla nalezena v databázi.',
freenetis/trunk/kohana/application/models/config.php
public function get_value_from_name($name = '')
{
$result = $this->db->query('select value from config where name = "'.$name.'"');
try // try if query return exception, for example config table doesn't exist
{
$result = $this->db->query('select value from config where name = "'.$name.'"');
}
catch (Kohana_Database_Exception $e)
{
$result = NULL;
}
return (count($result)) ? $result[0]->value : '';
}
freenetis/trunk/kohana/application/controllers/installation.php
fwrite($handle, $line);
}
fclose($handle);
chmod('.htaccess', 0666);
if (!@chmod('.htaccess', 0666))
$view->chmod_error = 1;
}
}
......
function valid_username($input)
{
$user_model=new User_Model();
if (preg_match('/^[a-z]{1}[a-z0-9]+$/',$input->value) == 0)
{
$input->add_error('required', url_lang::lang('texts.Login must contains only a-z and 0-9 and starts with literal.'));
freenetis/trunk/kohana/application/views/main.php
<a href="javascript: window.print();"><img src="<?php echo url::base() ?>media/images/print.png" alt="print icon" /></a>
<?php
if ($this->acl_check_2D('freenetis', 'write_email'))
if ($this->session->get('user_id', 0) && $this->acl_check_2D('freenetis', 'write_email'))
{
$model_sms_message = new Sms_message_Model();
$unread_sms = count($model_sms_message->get_unread_messages());
freenetis/trunk/kohana/application/views/setup_config.php
<div id="main">
<h1><span>FreeNetIS</span></h1>
<div class="flags">
<?php echo special::create_language_flags(array('cs' => 'Česky', 'en' => 'English')) ?>
</div>
<div id="main-padd">
<div id="content">
freenetis/trunk/kohana/application/views/installation_done.php
<p><?php echo url_lang::lang('texts.But I can\'t write the htaccess file.') ?> <?php echo url_lang::lang('texts.You must create it manually and paste the following text into it.') ?></p>
<?php echo $textarea ?>
<p><?php echo url_lang::lang('texts.After you\'ve done that, click Login.') ?></p>
<?php elseif(isset($chmod_error)): ?>
<p class="warning">
<?php echo url_lang::lang('texts.But I can\'t set file permission to 660').'.' ?>
<?php echo url_lang::lang('texts.You have to set up it by yourself:') ?><br />
</p>
<code>chmod 660 .htaccess</code>
<?php else: ?>
<p><?php echo url_lang::lang('texts.And now, click Login.') ?></p>
<?php endif ?>
freenetis/trunk/kohana/system/libraries/drivers/Database/Mysql.php
$port = isset($port) ? ':'.$port : '';
// Make the connection and select the database
if (($this->link = $connect($host.$port, $user, $pass, TRUE)) AND mysql_select_db($database, $this->link))
if (($this->link = @$connect($host.$port, $user, $pass, TRUE)) AND mysql_select_db($database, $this->link))
{
if ($charset = $this->db_config['character_set'])
{
......
public function show_error()
{
return mysql_error($this->link);
if ($this->link)
return mysql_error($this->link);
else
return NULL;
}
public function list_fields($table)

Také k dispozici: Unified diff