kopia lustrzana https://github.com/friendica/friendica
Merge remote branch 'upstream/master'
commit
59d378913d
10
.htaccess
10
.htaccess
|
@ -15,6 +15,16 @@ Deny from all
|
|||
# Also place auth information into REMOTE_USER for sites running
|
||||
# in CGI mode.
|
||||
|
||||
# If you have troubles or use VirtualDocumentRoot
|
||||
# uncomment this and set it to the path where your friendica installation is
|
||||
# i.e.:
|
||||
# Friendica url: http://some.example.com
|
||||
# RewriteBase /
|
||||
# Friendica url: http://some.example.com/friendica
|
||||
# RewriteBase /firendica/
|
||||
#
|
||||
#RewriteBase /
|
||||
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
|
||||
|
|
4
boot.php
4
boot.php
|
@ -11,7 +11,7 @@ require_once('include/cache.php');
|
|||
require_once('library/Mobile_Detect/Mobile_Detect.php');
|
||||
|
||||
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
||||
define ( 'FRIENDICA_VERSION', '3.0.1449' );
|
||||
define ( 'FRIENDICA_VERSION', '3.0.1455' );
|
||||
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
|
||||
define ( 'DB_UPDATE_VERSION', 1154 );
|
||||
|
||||
|
@ -1468,7 +1468,7 @@ if(! function_exists('proc_run')) {
|
|||
|
||||
$cmdline = implode($args," ");
|
||||
if(get_config('system','proc_windows'))
|
||||
proc_close(proc_open('start /b ' . $cmdline,array(),$foo));
|
||||
proc_close(proc_open('cmd /c start /b ' . $cmdline,array(),$foo));
|
||||
else
|
||||
proc_close(proc_open($cmdline." &",array(),$foo));
|
||||
}
|
||||
|
|
|
@ -78,7 +78,7 @@ class dba {
|
|||
|
||||
$this->error = '';
|
||||
|
||||
if ($a->config["system"]["db_log"] != "")
|
||||
if(x($a->config,'system') && x($a->config['system'],'db_log'))
|
||||
$stamp1 = microtime(true);
|
||||
|
||||
if($this->mysqli)
|
||||
|
@ -86,7 +86,7 @@ class dba {
|
|||
else
|
||||
$result = @mysql_query($sql,$this->db);
|
||||
|
||||
if ($a->config["system"]["db_log"] != "") {
|
||||
if(x($a->config,'system') && x($a->config['system'],'db_log')) {
|
||||
$stamp2 = microtime(true);
|
||||
$duration = round($stamp2-$stamp1, 3);
|
||||
if ($duration > $a->config["system"]["db_loglimit"]) {
|
||||
|
|
|
@ -1005,7 +1005,7 @@ function prepare_body($item,$attach = false) {
|
|||
}
|
||||
$title = ((strlen(trim($mtch[4]))) ? escape_tags(trim($mtch[4])) : escape_tags($mtch[1]));
|
||||
$title .= ' ' . $mtch[2] . ' ' . t('bytes');
|
||||
if((local_user() == $item['uid']) && $item['contact-id'] != $a->contact['id'])
|
||||
if((local_user() == $item['uid']) && ($item['contact-id'] != $a->contact['id']) && ($item['network'] == NETWORK_DFRN))
|
||||
$the_url = $a->get_baseurl() . '/redir/' . $item['contact-id'] . '?f=1&url=' . $mtch[1];
|
||||
else
|
||||
$the_url = $mtch[1];
|
||||
|
|
|
@ -466,7 +466,6 @@ function load_database_rem($v, $i){
|
|||
function load_database($db) {
|
||||
|
||||
$str = file_get_contents('database.sql');
|
||||
// $str = array_reduce(explode("\n", $str),"load_database_rem","");
|
||||
$arr = explode(';',$str);
|
||||
$errors = false;
|
||||
foreach($arr as $a) {
|
||||
|
@ -488,7 +487,7 @@ function what_next() {
|
|||
."<p>".t('IMPORTANT: You will need to [manually] setup a scheduled task for the poller.')
|
||||
.t('Please see the file "INSTALL.txt".')
|
||||
."</p><p>"
|
||||
.t("Go to your new Firendica node <a href='$baseurl/register'>registration page</a> and register as new user. Remember to use the same email you have entered as administrator email. This will allow you to enter the site admin panel.")
|
||||
.t("Go to your new Friendica node <a href='$baseurl/register'>registration page</a> and register as new user. Remember to use the same email you have entered as administrator email. This will allow you to enter the site admin panel.")
|
||||
."</p>";
|
||||
}
|
||||
|
||||
|
|
827
util/messages.po
827
util/messages.po
Plik diff jest za duży
Load Diff
Ładowanie…
Reference in New Issue