fixed several little nit bugs that cropped up during deployment
This commit is contained in:
parent
d715febf7c
commit
c6b8ab534f
16
boot.php
16
boot.php
@ -626,6 +626,12 @@ if(! class_exists('App')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function set_baseurl($url) {
|
function set_baseurl($url) {
|
||||||
|
|
||||||
|
if(is_array($this->config) && array_key_exists('system',$this->config) &&
|
||||||
|
array_key_exists('baseurl',$this->config['system']) && strlen($this->config['system']['baseurl'])) {
|
||||||
|
$url = $a->config['system']['baseurl'];
|
||||||
|
}
|
||||||
|
|
||||||
$parsed = @parse_url($url);
|
$parsed = @parse_url($url);
|
||||||
|
|
||||||
$this->baseurl = $url;
|
$this->baseurl = $url;
|
||||||
@ -866,7 +872,7 @@ if(! function_exists('check_config')) {
|
|||||||
if(! x($build))
|
if(! x($build))
|
||||||
$build = set_config('system','build',DB_UPDATE_VERSION);
|
$build = set_config('system','build',DB_UPDATE_VERSION);
|
||||||
|
|
||||||
$url = get_config('system','url');
|
// $url = get_config('system','baseurl');
|
||||||
|
|
||||||
// if the url isn't set or the stored url is radically different
|
// if the url isn't set or the stored url is radically different
|
||||||
// than the currently visited url, store the current value accordingly.
|
// than the currently visited url, store the current value accordingly.
|
||||||
@ -874,10 +880,10 @@ if(! function_exists('check_config')) {
|
|||||||
// and www.example.com vs example.com.
|
// and www.example.com vs example.com.
|
||||||
// We will only change the url to an ip address if there is no existing setting
|
// We will only change the url to an ip address if there is no existing setting
|
||||||
|
|
||||||
if(! x($url))
|
// if(! x($url))
|
||||||
$url = set_config('system','url',$a->get_baseurl());
|
// $url = set_config('system','baseurl',$a->get_baseurl());
|
||||||
if((! link_compare($url,$a->get_baseurl())) && (! preg_match("/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/",$a->get_hostname)))
|
// if((! link_compare($url,$a->get_baseurl())) && (! preg_match("/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/",$a->get_hostname)))
|
||||||
$url = set_config('system','url',$a->get_baseurl());
|
// $url = set_config('system','baseurl',$a->get_baseurl());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -263,7 +263,7 @@ function send_verification_email($email,$password) {
|
|||||||
'$password' => $password,
|
'$password' => $password,
|
||||||
));
|
));
|
||||||
|
|
||||||
$res = mail($email, sprintf( t('Registration details for %s'), get_config('config','sitename')),
|
$res = mail($email, sprintf( t('Registration details for %s'), get_config('system','sitename')),
|
||||||
$email_msg,
|
$email_msg,
|
||||||
'From: ' . t('Administrator') . '@' . get_app()->get_hostname() . "\n"
|
'From: ' . t('Administrator') . '@' . get_app()->get_hostname() . "\n"
|
||||||
. 'Content-type: text/plain; charset=UTF-8' . "\n"
|
. 'Content-type: text/plain; charset=UTF-8' . "\n"
|
||||||
|
@ -24,7 +24,7 @@ function cli_startup() {
|
|||||||
load_config('config');
|
load_config('config');
|
||||||
load_config('system');
|
load_config('system');
|
||||||
|
|
||||||
$a->set_baseurl(get_config('system','url'));
|
$a->set_baseurl(get_config('system','baseurl'));
|
||||||
|
|
||||||
load_hooks();
|
load_hooks();
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ function gprobe_run($argv, $argc){
|
|||||||
load_config('config');
|
load_config('config');
|
||||||
load_config('system');
|
load_config('system');
|
||||||
|
|
||||||
$a->set_baseurl(get_config('system','url'));
|
$a->set_baseurl(get_config('system','baseurl'));
|
||||||
|
|
||||||
load_hooks();
|
load_hooks();
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ function onepoll_run($argv, $argc){
|
|||||||
load_config('config');
|
load_config('config');
|
||||||
load_config('system');
|
load_config('system');
|
||||||
|
|
||||||
$a->set_baseurl(get_config('system','url'));
|
$a->set_baseurl(get_config('system','baseurl'));
|
||||||
|
|
||||||
load_hooks();
|
load_hooks();
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ function poller_run($argv, $argc){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$a->set_baseurl(get_config('system','url'));
|
$a->set_baseurl(get_config('system','baseurl'));
|
||||||
|
|
||||||
load_hooks();
|
load_hooks();
|
||||||
|
|
||||||
|
@ -1,32 +1,16 @@
|
|||||||
|
|
||||||
Dear $[username],
|
An account has been created at $[sitename] for this email address.
|
||||||
Thank you for registering at $[sitename]. Your account has been created.
|
|
||||||
The login details are as follows:
|
The login details are as follows:
|
||||||
|
|
||||||
|
|
||||||
Site Location: $[siteurl]
|
Site Location: $[siteurl]
|
||||||
Login Name: $[email]
|
Login: $[email]
|
||||||
Password: $[password]
|
Password: $[password]
|
||||||
|
|
||||||
You may change your password from your account "Settings" page after logging
|
If this account was created without your knowledge and is not desired, please
|
||||||
in.
|
login and remove the account from the links on the Settings page, and we
|
||||||
|
apologise for any inconvenience.
|
||||||
|
|
||||||
Please take a few moments to review the other account settings on that page.
|
Thank you and welcome.
|
||||||
|
|
||||||
You may also wish to add some basic information to your default profile
|
|
||||||
(on the "Profiles" page) so that other people can easily find you.
|
|
||||||
|
|
||||||
We recommend setting your full name, adding a profile photo,
|
|
||||||
adding some profile "keywords" (very useful in making new friends) - and
|
|
||||||
perhaps what country you live in; if you do not wish to be more specific
|
|
||||||
than that.
|
|
||||||
|
|
||||||
We fully respect your right to privacy, and none of these items are necessary.
|
|
||||||
If you are new and do not know anybody here, they may help
|
|
||||||
you to make some new and interesting friends.
|
|
||||||
|
|
||||||
|
|
||||||
Thank you and welcome to $[sitename].
|
|
||||||
|
|
||||||
Sincerely,
|
Sincerely,
|
||||||
$[sitename] Administrator
|
$[sitename] Administrator
|
||||||
|
@ -409,13 +409,13 @@ div.wall-item-content-wrapper.shiny {
|
|||||||
margin-bottom: 25px;
|
margin-bottom: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#label-register-name, #label-register-email, #label-register-nickname, #label-register-openid {
|
#label-register-name, #label-register-nickname, #label-register-openid {
|
||||||
float: left;
|
float: left;
|
||||||
width: 350px;
|
width: 350px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#register-name, #register-email, #register-nickname {
|
#register-name, #register-nickname {
|
||||||
float: left;
|
float: left;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
width: 150px;
|
width: 150px;
|
||||||
@ -659,6 +659,7 @@ input#dfrn-url {
|
|||||||
.profile-edit-side-link {
|
.profile-edit-side-link {
|
||||||
opacity: 0.3;
|
opacity: 0.3;
|
||||||
filter:alpha(opacity=30);
|
filter:alpha(opacity=30);
|
||||||
|
float: right;
|
||||||
}
|
}
|
||||||
.profile-edit-side-link:hover {
|
.profile-edit-side-link:hover {
|
||||||
opacity: 1.0;
|
opacity: 1.0;
|
||||||
@ -3552,6 +3553,7 @@ nav #nav-help-link,
|
|||||||
nav #nav-search-link,
|
nav #nav-search-link,
|
||||||
nav #nav-directory-link,
|
nav #nav-directory-link,
|
||||||
nav #nav-apps-link,
|
nav #nav-apps-link,
|
||||||
|
nav #nav-user-linkmenu,
|
||||||
nav #nav-site-linkmenu {
|
nav #nav-site-linkmenu {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
@ -10,21 +10,6 @@
|
|||||||
</li>
|
</li>
|
||||||
{{ endif }}
|
{{ endif }}
|
||||||
|
|
||||||
{{ if $userinfo }}
|
|
||||||
<li id="nav-user-linkmenu" class="nav-menu-icon"><a href="#" rel="#nav-user-menu" title="$userinfo.name"><img src="$userinfo.icon" alt="$userinfo.name"></a>
|
|
||||||
{{ if $localuser }}
|
|
||||||
<ul id="nav-user-menu" class="menu-popup">
|
|
||||||
{{ for $nav.usermenu as $usermenu }}
|
|
||||||
<li><a class="$usermenu.2" href="$usermenu.0" title="$usermenu.3">$usermenu.1</a></li>
|
|
||||||
{{ endfor }}
|
|
||||||
|
|
||||||
{{ if $nav.notifications }}<li><a class="$nav.notifications.2" href="$nav.notifications.0" title="$nav.notifications.3" >$nav.notifications.1</a></li>{{ endif }}
|
|
||||||
{{ if $nav.messages }}<li><a class="$nav.messages.2" href="$nav.messages.0" title="$nav.messages.3" >$nav.messages.1</a></li>{{ endif }}
|
|
||||||
{{ if $nav.contacts }}<li><a class="$nav.contacts.2" href="$nav.contacts.0" title="$nav.contacts.3" >$nav.contacts.1</a></li>{{ endif }}
|
|
||||||
</ul>
|
|
||||||
{{ endif }}
|
|
||||||
</li>
|
|
||||||
{{ endif }}
|
|
||||||
|
|
||||||
{{ if $nav.network }}
|
{{ if $nav.network }}
|
||||||
<li id="nav-network-link" class="nav-menu $sel.network">
|
<li id="nav-network-link" class="nav-menu $sel.network">
|
||||||
@ -72,6 +57,22 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
{{ if $userinfo }}
|
||||||
|
<li id="nav-user-linkmenu" class="nav-menu-icon"><a href="#" rel="#nav-user-menu" title="$userinfo.name"><img src="$userinfo.icon" alt="$userinfo.name"></a>
|
||||||
|
{{ if $localuser }}
|
||||||
|
<ul id="nav-user-menu" class="menu-popup">
|
||||||
|
{{ for $nav.usermenu as $usermenu }}
|
||||||
|
<li><a class="$usermenu.2" href="$usermenu.0" title="$usermenu.3">$usermenu.1</a></li>
|
||||||
|
{{ endfor }}
|
||||||
|
|
||||||
|
{{ if $nav.notifications }}<li><a class="$nav.notifications.2" href="$nav.notifications.0" title="$nav.notifications.3" >$nav.notifications.1</a></li>{{ endif }}
|
||||||
|
{{ if $nav.messages }}<li><a class="$nav.messages.2" href="$nav.messages.0" title="$nav.messages.3" >$nav.messages.1</a></li>{{ endif }}
|
||||||
|
{{ if $nav.contacts }}<li><a class="$nav.contacts.2" href="$nav.contacts.0" title="$nav.contacts.3" >$nav.contacts.1</a></li>{{ endif }}
|
||||||
|
</ul>
|
||||||
|
{{ endif }}
|
||||||
|
</li>
|
||||||
|
{{ endif }}
|
||||||
|
|
||||||
{{ if $nav.help }}
|
{{ if $nav.help }}
|
||||||
<li id="nav-help-link" class="nav-menu $sel.help">
|
<li id="nav-help-link" class="nav-menu $sel.help">
|
||||||
<a class="$nav.help.2" target="friendika-help" href="$nav.help.0" title="$nav.help.3" >$nav.help.1</a>
|
<a class="$nav.help.2" target="friendika-help" href="$nav.help.0" title="$nav.help.3" >$nav.help.1</a>
|
||||||
|
Reference in New Issue
Block a user