Merge branch 'rewrites/app_get_baseurl_static' into develop
Signed-off-by: Roland Häder <roland@mxchange.org> Conflicts: mod/admin.php mod/bookmarklet.php mod/community.php mod/contacts.php mod/crepair.php mod/editpost.php mod/events.php mod/install.php mod/lostpass.php mod/network.php mod/notify.php mod/suggest.php mod/uexport.php mod/videos.php view/theme/duepuntozero/config.php view/theme/frio/config.php view/theme/quattro/config.php view/theme/vier/config.php
This commit is contained in:
commit
20e71d21a6
|
@ -97,7 +97,7 @@ class Config {
|
||||||
dbesc($family),
|
dbesc($family),
|
||||||
dbesc($key)
|
dbesc($key)
|
||||||
);
|
);
|
||||||
if (dbm::is_result($ret)) {
|
if (count($ret)) {
|
||||||
// manage array value
|
// manage array value
|
||||||
$val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
|
$val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
|
||||||
$a->config[$family][$key] = $val;
|
$a->config[$family][$key] = $val;
|
||||||
|
|
|
@ -92,7 +92,7 @@ class PConfig {
|
||||||
dbesc($key)
|
dbesc($key)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (dbm::is_result($ret)) {
|
if (count($ret)) {
|
||||||
$val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
|
$val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
|
||||||
$a->config[$uid][$family][$key] = $val;
|
$a->config[$uid][$family][$key] = $val;
|
||||||
|
|
||||||
|
|
|
@ -1906,20 +1906,23 @@ class Diaspora {
|
||||||
$author = unxmlify($data->author);
|
$author = unxmlify($data->author);
|
||||||
$recipient = unxmlify($data->recipient);
|
$recipient = unxmlify($data->recipient);
|
||||||
|
|
||||||
if (!$author || !$recipient)
|
if (!$author || !$recipient) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// the current protocol version doesn't know these fields
|
// the current protocol version doesn't know these fields
|
||||||
// That means that we will assume their existance
|
// That means that we will assume their existance
|
||||||
if (isset($data->following))
|
if (isset($data->following)) {
|
||||||
$following = (unxmlify($data->following) == "true");
|
$following = (unxmlify($data->following) == "true");
|
||||||
else
|
} else {
|
||||||
$following = true;
|
$following = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($data->sharing))
|
if (isset($data->sharing)) {
|
||||||
$sharing = (unxmlify($data->sharing) == "true");
|
$sharing = (unxmlify($data->sharing) == "true");
|
||||||
else
|
} else {
|
||||||
$sharing = true;
|
$sharing = true;
|
||||||
|
}
|
||||||
|
|
||||||
$contact = self::contact_by_handle($importer["uid"],$author);
|
$contact = self::contact_by_handle($importer["uid"],$author);
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,6 @@ function crepair_init(App &$a) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function crepair_post(App &$a) {
|
function crepair_post(App &$a) {
|
||||||
if (! local_user()) {
|
if (! local_user()) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -588,7 +588,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
|
||||||
dbesc($decrypted_source_url),
|
dbesc($decrypted_source_url),
|
||||||
intval($local_uid)
|
intval($local_uid)
|
||||||
);
|
);
|
||||||
if(! dbm::is_result($ret)) {
|
if(! count($ret)) {
|
||||||
if(strstr($decrypted_source_url,'http:'))
|
if(strstr($decrypted_source_url,'http:'))
|
||||||
$newurl = str_replace('http:','https:',$decrypted_source_url);
|
$newurl = str_replace('http:','https:',$decrypted_source_url);
|
||||||
else
|
else
|
||||||
|
@ -598,7 +598,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
|
||||||
dbesc($newurl),
|
dbesc($newurl),
|
||||||
intval($local_uid)
|
intval($local_uid)
|
||||||
);
|
);
|
||||||
if(! dbm::is_result($ret)) {
|
if(! count($ret)) {
|
||||||
// this is either a bogus confirmation (?) or we deleted the original introduction.
|
// this is either a bogus confirmation (?) or we deleted the original introduction.
|
||||||
$message = t('Contact record was not found for you on our site.');
|
$message = t('Contact record was not found for you on our site.');
|
||||||
xml_status(3,$message);
|
xml_status(3,$message);
|
||||||
|
|
|
@ -565,7 +565,6 @@ function check_imagik(&$checks) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function manual_config(App &$a) {
|
function manual_config(App &$a) {
|
||||||
$data = htmlentities($a->data['txt'],ENT_COMPAT,'UTF-8');
|
$data = htmlentities($a->data['txt'],ENT_COMPAT,'UTF-8');
|
||||||
$o = t('The database configuration file ".htconfig.php" could not be written. Please use the enclosed text to create a configuration file in your web server root.');
|
$o = t('The database configuration file ".htconfig.php" could not be written. Please use the enclosed text to create a configuration file in your web server root.');
|
||||||
|
|
|
@ -6,8 +6,9 @@ function network_init(App &$a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$is_a_date_query = false;
|
$is_a_date_query = false;
|
||||||
if(x($_GET['cid']) && intval($_GET['cid']) != 0)
|
if (x($_GET['cid']) && intval($_GET['cid']) != 0) {
|
||||||
$cid = $_GET['cid'];
|
$cid = $_GET['cid'];
|
||||||
|
}
|
||||||
|
|
||||||
if ($a->argc > 1) {
|
if ($a->argc > 1) {
|
||||||
for ($x = 1; $x < $a->argc; $x ++) {
|
for ($x = 1; $x < $a->argc; $x ++) {
|
||||||
|
|
|
@ -167,10 +167,11 @@ function videos_post(App &$a) {
|
||||||
$url = App::get_baseurl();
|
$url = App::get_baseurl();
|
||||||
$drop_id = intval($i[0]['id']);
|
$drop_id = intval($i[0]['id']);
|
||||||
|
|
||||||
if($i[0]['visible'])
|
if ($i[0]['visible']) {
|
||||||
proc_run(PRIORITY_HIGH, "include/notifier.php", "drop", $drop_id);
|
proc_run(PRIORITY_HIGH, "include/notifier.php", "drop", $drop_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
goaway(App::get_baseurl() . '/videos/' . $a->data['user']['nickname']);
|
goaway(App::get_baseurl() . '/videos/' . $a->data['user']['nickname']);
|
||||||
return; // NOTREACHED
|
return; // NOTREACHED
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function theme_content(App &$a){
|
function theme_content(App &$a){
|
||||||
if (!local_user()) {
|
if (!local_user()) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
* Theme settings
|
* Theme settings
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function theme_content(App &$a){
|
function theme_content(App &$a){
|
||||||
if (!local_user()) {
|
if (!local_user()) {
|
||||||
return;
|
return;
|
||||||
|
@ -51,15 +49,19 @@ function theme_admin_post(App &$a){
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @TODO $a is no longer used here
|
/// @TODO $a is no longer used here
|
||||||
function quattro_form(&$a, $align, $color, $tfs, $pfs){
|
function quattro_form(App &$a, $align, $color, $tfs, $pfs){
|
||||||
$colors = array(
|
$colors = array(
|
||||||
"dark" => "Quattro",
|
"dark" => "Quattro",
|
||||||
"lilac" => "Lilac",
|
"lilac" => "Lilac",
|
||||||
"green"=>"Green"
|
"green" => "Green",
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($tfs===false) $tfs="20";
|
if ($tfs === false) {
|
||||||
if ($pfs===false) $pfs="12";
|
$tfs = "20";
|
||||||
|
}
|
||||||
|
if ($pfs === false) {
|
||||||
|
$pfs = "12";
|
||||||
|
}
|
||||||
|
|
||||||
$t = get_markup_template("theme_settings.tpl" );
|
$t = get_markup_template("theme_settings.tpl" );
|
||||||
$o .= replace_macros($t, array(
|
$o .= replace_macros($t, array(
|
||||||
|
|
Loading…
Reference in a new issue