define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '2.3.1326' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
-define ( 'DB_UPDATE_VERSION', 1139 );
+define ( 'DB_UPDATE_VERSION', 1140 );
define ( 'EOL', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
define ( 'HOOK_FILE', 1);
define ( 'HOOK_FUNCTION', 2);
+/**
+ * DB update return values
+ */
+
+define ( 'UPDATE_SUCCESS', 0);
+define ( 'UPDATE_FAILED', 1);
+
+
/**
*
* page/profile types
// call the specific update
-// global $db;
-// $db->excep(TRUE);
-// try {
-// $db->beginTransaction();
- $func = 'update_' . $x;
- $func($a);
-// $db->commit();
-// } catch(Exception $ex) {
-// $db->rollback();
-// //send the administrator an e-mail
-// $email_tpl = get_intltext_template("update_fail_eml.tpl");
-// $email_tpl = replace_macros($email_tpl, array(
-// '$sitename' => $a->config['sitename'],
-// '$siteurl' => $a->get_baseurl(),
-// '$update' => $x,
-// '$error' => $ex->getMessage()));
-// $subject=sprintf(t('Update Error at %s'), $a->get_baseurl());
+ $func = 'update_' . $x;
+ $retval = $func($a);
+ if($retval) {
+ //send the administrator an e-mail
+ $email_tpl = get_intltext_template("update_fail_eml.tpl");
+ $email_msg = replace_macros($email_tpl, array(
+ '$sitename' => $a->config['sitename'],
+ '$siteurl' => $a->get_baseurl(),
+ '$update' => $x,
+ '$error' => sprintf( t('Update %s failed. See error logs.'), $x)
+ ));
+ $subject=sprintf(t('Update Error at %s'), $a->get_baseurl());
-// mail($a->config['admin_email'], $subject, $text,
-// 'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] . "\n"
-// . 'Content-type: text/plain; charset=UTF-8' . "\n"
-// . 'Content-transfer-encoding: 8bit' );
-// //try the logger
-// logger('update failed: '.$ex->getMessage().EOL);
-// }
-// $db->excep(FALSE);
+ mail($a->config['admin_email'], $subject, $email_msg,
+ 'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] . "\n"
+ . 'Content-type: text/plain; charset=UTF-8' . "\n"
+ . 'Content-transfer-encoding: 8bit' );
+ //try the logger
+ logger('CRITICAL: Update Failed: '. $x);
+ }
+ else
+ set_config('database','update_' . $x, 'success');
+
}
}
set_config('system','build', DB_UPDATE_VERSION);
foreach($installed as $i) {
if(! in_array($i['name'],$plugins_arr)) {
uninstall_plugin($i['name']);
- }
- else
+ }
+ else {
$installed_arr[] = $i['name'];
+ }
}
}
`pwdreset` char(255) NOT NULL,
`maxreq` int(11) NOT NULL DEFAULT '10',
`expire` int(10) unsigned NOT NULL DEFAULT '0',
+ `account_removed` tinyint(1) NOT NULL DEFAULT '0',
`account_expired` tinyint(1) NOT NULL DEFAULT '0',
`account_expires_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`expire_notification_sent` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
KEY `blocked` (`blocked`),
KEY `verified` (`verified`),
KEY `unkmail` (`unkmail`),
- KEY `cntunkmail` (`cntunkmail`)
+ KEY `cntunkmail` (`cntunkmail`),
+ KEY `account_removed` (`account_removed`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
function contact_remove($id) {
+
+ $r = q("select uid from contact where id = %d limit 1",
+ intval($id)
+ );
+ if((! count($r)) || (! intval($r[0]['uid'])))
+ return;
+
+ $archive = get_pconfig($r[0]['uid'], 'system','archive_removed_contacts');
+ if($archive) {
+ q("update contact set `archive` = 1, `network` = 'none', `writable` = 0 where id = %d limit 1",
+ intval($id)
+ );
+ return;
+ }
+
q("DELETE FROM `contact` WHERE `id` = %d LIMIT 1",
intval($id)
);
$changes = array();
+ $value = '';
if($is_default) {
- if($marital != $orig[0]['marital']) $changes[] = '♥ ' . t('Marital Status');
- if($withchanged) $changes[] = '♥ ' . t('Romantic Partner');
- if($work != $orig[0]['work']) $changes[] = t('Work/Employment');
- if($religion != $orig[0]['religion']) $changes[] = t('Religion');
- if($politic != $orig[0]['politic']) $changes[] = t('Political Views');
- if($gender != $orig[0]['gender']) $changes[] = t('Gender');
- if($sexual != $orig[0]['sexual']) $changes[] = t('Sexual Preference');
- if($homepage != $orig[0]['homepage']) $changes[] = t('Homepage');
- if($interest != $orig[0]['interest']) $changes[] = t('Interests');
+ if($marital != $orig[0]['marital']) {
+ $changes[] = '[color=#ff0000]♥[/color] ' . t('Marital Status');
+ $value = $marital;
+ }
+ if($withchanged) {
+ $changes[] = '♥ ' . t('Romantic Partner');
+ $value = strip_tags($with);
+ }
+ if($work != $orig[0]['work']) {
+ $changes[] = t('Work/Employment');
+ }
+ if($religion != $orig[0]['religion']) {
+ $changes[] = t('Religion');
+ $value = $religion;
+ }
+ if($politic != $orig[0]['politic']) {
+ $changes[] = t('Political Views');
+ $value = $politic;
+ }
+ if($gender != $orig[0]['gender']) {
+ $changes[] = t('Gender');
+ $value = $gender;
+ }
+ if($sexual != $orig[0]['sexual']) {
+ $changes[] = t('Sexual Preference');
+ $value = $sexual;
+ }
+ if($homepage != $orig[0]['homepage']) {
+ $changes[] = t('Homepage');
+ $value = $homepage;
+ }
+ if($interest != $orig[0]['interest']) {
+ $changes[] = t('Interests');
+ $value = $interest;
+ }
if($address != $orig[0]['address'] || $locality != $orig[0]['locality'] || $region != $orig[0]['region']
- || $country_name != $orig[0]['country_name'])
- $changes[] = t('Location');
+ || $country_name != $orig[0]['country-name']) {
+ $changes[] = t('Location');
+ }
- profile_activity($changes);
+ profile_activity($changes,$value);
}
}
-function profile_activity($changed) {
+function profile_activity($changed, $value) {
$a = get_app();
if(! local_user() || ! is_array($changed) || ! count($changed))
foreach($changed as $ch) {
if(strlen($changes)) {
if ($z == ($t - 1))
- $changes .= ' and ';
+ $changes .= t(' and ');
else
$changes .= ', ';
}
$prof = '[url=' . $self[0]['url'] . '?tab=profile' . ']' . t('public profile') . '[/url]';
- $arr['body'] = sprintf( t('%1$s has an updated %2$s, changing %3$s.'), $A, $prof, $changes);
+ if($t == 1 && strlen($value)) {
+ $message = sprintf( t('%1$s changed %2$s to %3$s'), $A, $changes, $value);
+ $message .= "\n\n" . sprintf( t(' - Visit %1$s\'s %2$s'), $A, $prof);
+ }
+ else
+ $message = sprintf( t('%1$s has an updated %2$s, changing %3$s.'), $A, $prof, $changes);
+
+
+ $arr['body'] = $message;
$arr['object'] = '<object><type>' . ACTIVITY_OBJ_PROFILE . '</type><title>' . $self[0]['name'] . '</title>'
. '<id>' . $self[0]['url'] . '/' . $self[0]['name'] . '</id>';
<?php
-define( 'UPDATE_VERSION' , 1139 );
+define( 'UPDATE_VERSION' , 1140 );
/**
*
function update_1138() {
q("alter table contact add archive tinyint(1) not null default '0' after hidden, add index (archive)");
-}
\ No newline at end of file
+}
+
+function update_1139() {
+ $r = q("alter table user add account_removed tinyint(1) not null default '0' after expire, add index(account_removed) ");
+ if(! $r)
+ return UPDATE_FAILED ;
+ return UPDATE_SUCCESS ;
+}
--- /dev/null
+Hey, \r
+I'm $sitename. \r
+The friendica developers released update $update recently, \r
+but when I tried to install it, something went terribly wrong. \r
+This needs to be fixed soon and I can't do it alone. Please contact a \r
+friendica developer if you can not help me on your own. My database might be invalid. \r
+\r
+The error message is '$error'. \r
+\r
+I'm sorry, \r
+your friendica server at $siteurl
\ No newline at end of file
.admin.linklist {
border: 0px; padding: 0px;
+ list-style: none;
}
.admin.link {
background-color: #bdcdd4;
}
#nav-notifications-menu {
- width: 400px;
+ width: 425px !important;
max-height: 550px;
overflow: auto;
}
margin-right: 20px;
}
#login-submit-wrapper{
- padding-top: 120px;
+
margin-bottom: 12px;
}
aside #login-submit-button{
.admin.linklist {
border: 0px; padding: 0px;
+ list-style: none;
}
.admin.link {
background-color: #bdcdd4;
}
#nav-notifications-menu {
- width: 400px;
+ width: 425px !important;
max-height: 550px;
overflow: auto;
}
margin-right: 20px;
}
#login-submit-wrapper{
- padding-top: 120px;
+
margin-bottom: 12px;
}
aside #login-submit-button{
.admin.linklist {
border: 0px; padding: 0px;
+ list-style: none;
}
.admin.link {
background-color: #bdcdd4;
}
#nav-notifications-menu {
- width: 400px;
+ width: 425px !important;
max-height: 550px;
overflow: auto;
}
margin-right: 20px;
}
#login-submit-wrapper{
- padding-top: 120px;
+
margin-bottom: 12px;
}
aside #login-submit-button{
.admin.linklist {
border: 0px; padding: 0px;
+ list-style: none;
}
.admin.link {
background-color: #bdcdd4;
}
#nav-notifications-menu {
- width: 400px;
+ width: 425px !important;
max-height: 550px;
overflow: auto;
}
margin-right: 20px;
}
#login-submit-wrapper{
- padding-top: 120px;
+
margin-bottom: 12px;
}
aside #login-submit-button{
clear: both;
}
.fakelink {
- color: #194719;
+ color: #2c9936;
/* color: #3e3e8c; */
text-decoration: none;
cursor: pointer;
padding-top: 10px;
}
.tread-wrapper a{
- color: #194719;
+ color: #2c9936;
}
/*marker*/
font-weight: bolder;
}
.button.creation2 {
- background-color: #194719;
+ background-color: #2c9936;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
clear: both;
}
.fakelink {
- color: #194719;
+ color: #2c9936;
/* color: #3e3e8c; */
text-decoration: none;
cursor: pointer;
float: right;
}
.tool a {
- color: #194719;
+ color: #2c9936;
}
.tool a:hover {
text-decoration: none;
padding-top: 10px;
}
.tread-wrapper a{
- color: #194719;
+ color: #2c9936;
}
.wall-item-decor {
font-weight: bolder;
}
.button.creation2 {
- background-color: #194719;
+ background-color: #2c9936;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
margin-left: 5px;
}
ul.tabs li .active {
- background-color: #194719;
+ background-color: #2c9936;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
clear: both;
}
.fakelink {
- color: #194719;
+ color: #2c9936;
/* color: #3e3e8c; */
text-decoration: none;
cursor: pointer;
padding-top: 10px;
}
.tread-wrapper a{
- color: #194719;
+ color: #2c9936;
}
/*marker*/
cursor: pointer;
}
.button.creation2 {
- background-color: #194719;
+ background-color: #2c9936;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
margin-left: 5px;
}
ul.tabs li .active {
- background-color: #194719;
+ background-color: #2c9936;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
clear: both;
}
.fakelink {
- color: #194719;
+ color: #2c9936;
/* color: #3e3e8c; */
text-decoration: none;
cursor: pointer;
padding-top: 10px;
}
.tread-wrapper a{
- color: #194719;
+ color: #2c9936;
}
.wall-item-decor {
cursor: pointer;
}
.button.creation2 {
- background-color: #194719;
+ background-color: #2c9936;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
margin-left: 5px;
}
ul.tabs li .active {
- background-color: #194719;
+ background-color: #2c9936;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
.admin.linklist {
border: 0px; padding: 0px;
+ list-style: none;
}
.admin.link {
clear: both;
}
.fakelink {
- color: #194719;
+ color: #2c9936;
/* color: #3e3e8c; */
text-decoration: none;
cursor: pointer;
}
/* messages */
#message-new {
- background: #194719;
+ background: #2c9936;
border: 1px solid #333;
width: 150px;
}
background-color: #bdcdd4;
}
#nav-notifications-menu {
- width: 400px;
+ width: 425px !important;
max-height: 550px;
overflow: auto;
}
height: auto;
}
aside #likes a, a:visited, a:link {
- color: #194719;
+ color: #2c9936;
text-decoration: none;
cursor: pointer;
margin-right: 20px;
}
#login-submit-wrapper{
- padding-top: 120px;
+
margin-bottom: 12px;
}
aside #login-submit-button{
padding-top: 10px;
}
.tread-wrapper a{
- color: #194719;
+ color: #2c9936;
}
/*marker*/
cursor: pointer;
}
.button.creation2 {
- background-color: #194719;
+ background-color: #2c9936;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
margin-left: 5px;
}
ul.tabs li .active {
- background-color: #194719;
+ background-color: #2c9936;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
clear: both;
}
ul.rs_tabs li .selected {
- background-color: #194719;
+ background-color: #2c9936;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
.admin.linklist {
border: 0px; padding: 0px;
+ list-style: none;
}
.admin.link {
}
/*color*/
.fakelink {
- color: #194719;
+ color: #2c9936;
/* color: #3e3e8c; */
text-decoration: none;
cursor: pointer;
}
/*color*/
.tool a {
- color: #194719;
+ color: #2c9936;
}
.tool a:hover {
text-decoration: none;
/*color*/
/* messages */
#message-new {
- background: #194719;
+ background: #2c9936;
border: 1px solid #333;
width: 150px;
}
background-color: #bdcdd4;
}
#nav-notifications-menu {
- width: 400px;
+ width: 425px !important;
max-height: 550px;
overflow: auto;
}
}
/*color*/
aside #likes a, a:visited, a:link {
- color: #194719;
+ color: #2c9936;
text-decoration: none;
cursor: pointer;
margin-right: 20px;
}
#login-submit-wrapper{
- padding-top: 120px;
+
margin-bottom: 12px;
}
aside #login-submit-button{
}
/*color*/
.tread-wrapper a{
- color: #194719;
+ color: #2c9936;
}
.wall-item-decor {
position: absolute;
}
/*color*/
.button.creation2 {
- background-color: #194719;
+ background-color: #2c9936;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
}
/*color*/
ul.tabs li .active {
- background-color: #194719;
+ background-color: #2c9936;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
}
/*color*/
ul.rs_tabs li .selected {
- background-color: #194719;
+ background-color: #2c9936;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
clear: both;
}
.fakelink {
- color: #996d73;
+ color: #D02B55;
/* color: #3e3e8c; */
text-decoration: none;
cursor: pointer;
text-decoration: none;
}
ul.menu-popup a:hover {
- background-color: #996d73; /*bdcdd4;*/
+ background-color: #D02B55; /*bdcdd4;*/
color: #fff;
}
ul.menu-popup .menu-sep {
padding-top: 10px;
}
.tread-wrapper a{
- color: #996d73;
+ color: #D02B55;
}
/*marker*/
font-weight: bolder;
}
.button.creation2 {
- background-color: #996d73;
+ background-color: #D02B55;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
clear: both;
}
.fakelink {
- color: #996d73;
+ color: #D02B55;
/* color: #3e3e8c; */
text-decoration: none;
cursor: pointer;
float: right;
}
.tool a {
- color: #996d73;
+ color: #D02B55;
}
.tool a:hover {
text-decoration: none;
text-decoration: none;
}
ul.menu-popup a:hover {
- background-color: #996d73; /*bdcdd4;*/
+ background-color: #D02B55; /*bdcdd4;*/
color: #fff;
}
ul.menu-popup .menu-sep {
padding-top: 10px;
}
.tread-wrapper a{
- color: #996d73;
+ color: #D02B55;
}
.wall-item-decor {
font-weight: bolder;
}
.button.creation2 {
- background-color: #996d73;
+ background-color: #D02B55;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
margin-left: 5px;
}
ul.tabs li .active {
- background-color: #996d73;
+ background-color: #D02B55;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
clear: both;
}
.fakelink {
- color: #996d73;
+ color: #D02B55;
/* color: #3e3e8c; */
text-decoration: none;
cursor: pointer;
text-decoration: none;
}
ul.menu-popup a:hover {
- background-color: #996d73; /*bdcdd4;*/
+ background-color: #D02B55; /*bdcdd4;*/
color: #fff;
}
ul.menu-popup .menu-sep {
padding-top: 10px;
}
.tread-wrapper a{
- color: #996d73;
+ color: #D02B55;
}
/*marker*/
cursor: pointer;
}
.button.creation2 {
- background-color: #996d73;
+ background-color: #D02B55;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
margin-left: 5px;
}
ul.tabs li .active {
- background-color: #996d73;
+ background-color: #D02B55;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
clear: both;
}
.fakelink {
- color: #996d73;
+ color: #D02B55;
/* color: #3e3e8c; */
text-decoration: none;
cursor: pointer;
text-decoration: none;
}
ul.menu-popup a:hover {
- background-color: #996d73; /*bdcdd4;*/
+ background-color: #D02B55; /*bdcdd4;*/
color: #fff;
}
ul.menu-popup .menu-sep {
padding-top: 10px;
}
.tread-wrapper a{
- color: #996d73;
+ color: #D02B55;
}
.wall-item-decor {
cursor: pointer;
}
.button.creation2 {
- background-color: #996d73;
+ background-color: #D02B55;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
margin-left: 5px;
}
ul.tabs li .active {
- background-color: #996d73;
+ background-color: #D02B55;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
.admin.linklist {
border: 0px; padding: 0px;
+ list-style: none;
}
.admin.link {
clear: both;
}
.fakelink {
- color: #996d73;
+ color: #D02B55;
/* color: #3e3e8c; */
text-decoration: none;
cursor: pointer;
}
/* messages */
#message-new {
- background: #996d73;
+ background: #D02B55;
border: 1px solid #333;
width: 150px;
}
text-decoration: none;
}
ul.menu-popup a:hover {
- background-color: #996d73; /*bdcdd4;*/
+ background-color: #D02B55; /*bdcdd4;*/
color: #fff;
}
ul.menu-popup .menu-sep {
background-color: #bdcdd4;
}
#nav-notifications-menu {
- width: 400px;
+ width: 425px !important;
max-height: 550px;
overflow: auto;
}
height: auto;
}
aside #likes a, a:visited, a:link {
- color: #996d73;
+ color: #D02B55;
text-decoration: none;
cursor: pointer;
margin-right: 20px;
}
#login-submit-wrapper{
- padding-top: 120px;
+
margin-bottom: 12px;
}
aside #login-submit-button{
padding-top: 10px;
}
.tread-wrapper a{
- color: #996d73;
+ color: #D02B55;
}
/*marker*/
cursor: pointer;
}
.button.creation2 {
- background-color: #996d73;
+ background-color: #D02B55;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
margin-left: 5px;
}
ul.tabs li .active {
- background-color: #996d73;
+ background-color: #D02B55;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
clear: both;
}
ul.rs_tabs li .selected {
- background-color: #996d73;
+ background-color: #D02B55;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
.admin.linklist {
border: 0px; padding: 0px;
+ list-style: none;
}
.admin.link {
}
/*color*/
.fakelink {
- color: #996d73;
+ color: #D02B55;
/* color: #3e3e8c; */
text-decoration: none;
cursor: pointer;
}
/*color*/
.tool a {
- color: #996d73;
+ color: #D02B55;
}
.tool a:hover {
text-decoration: none;
/* messages */
/*color*/
#message-new {
- background: #996d73;
+ background: #D02B55;
border: 1px solid #333;
width: 150px;
}
}
/*color*/
ul.menu-popup a:hover {
- background-color: #996d73; /*bdcdd4;*/
+ background-color: #D02B55; /*bdcdd4;*/
color: #fff;
}
ul.menu-popup .menu-sep {
background-color: #bdcdd4;
}
#nav-notifications-menu {
- width: 400px;
+ width: 425px !important;
max-height: 550px;
overflow: auto;
}
}
/*color*/
aside #likes a, a:visited, a:link {
- color: #996d73;
+ color: #D02B55;
text-decoration: none;
cursor: pointer;
margin-right: 20px;
}
#login-submit-wrapper{
- padding-top: 120px;
+
margin-bottom: 12px;
}
aside #login-submit-button{
}
/*color*/
.tread-wrapper a{
- color: #996d73;
+ color: #D02B55;
}
.wall-item-decor {
position: absolute;
}
/*color*/
.button.creation2 {
- background-color: #996d73;
+ background-color: #D02B55;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
}
/*color*/
ul.tabs li .active {
- background-color: #996d73;
+ background-color: #D02B55;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
}
/*color*/
ul.rs_tabs li .selected {
- background-color: #996d73;
+ background-color: #D02B55;
border: 1px solid #777777;
color: white;
border-radius: 3px 3px 3px 3px;
.admin.linklist {
border: 0px; padding: 0px;
+ list-style: none;
}
.admin.link {
background-color: #bdcdd4;
}
#nav-notifications-menu {
- width: 400px;
+ width: 425px !important;
max-height: 550px;
overflow: auto;
}
margin-right: 20px;
}
#login-submit-wrapper{
- padding-top: 120px;
+
margin-bottom: 12px;
}
aside #login-submit-button{
.admin.linklist {
border: 0px; padding: 0px;
+ list-style: none;
}
.admin.link {
background-color: #bdcdd4;
}
#nav-notifications-menu {
- width: 400px;
+ width: 425px !important;
max-height: 550px;
overflow: auto;
}
margin-right: 20px;
}
#login-submit-wrapper{
- padding-top: 120px;
+
margin-bottom: 12px;
}
aside #login-submit-button{
-<div style="display: table-cell"></div>
-<div style="border-top: 1px solid #D2D2D2; width: 100%;margin-top: 30px;">
+<div id="footerbox" style="display:none">
<a style="float:right; color:#333;margin-right:10px;display: table;margin-top: 5px;" href="friendica" title="Site Info / Impressum" >Info / Impressum</a>
</div>
\ No newline at end of file
</nav>
-<div id="scrollup" style="position: fixed; bottom: 5px; right: 10px;"><a id="down" onclick="scrolldown()" ><img id="scroll_top_bottom" src="view/theme/diabook/icons/scroll_bottom.png" style="display:cursor !important;" alt="back to top" title="Back to top"></a></div>
+<div id="scrollup" style="position: fixed; bottom: 5px; right: 10px;z-index: 97;"><a id="down" onclick="scrolldown()" ><img id="scroll_top_bottom" src="view/theme/diabook/icons/scroll_bottom.png" style="display:cursor !important;" alt="back to top" title="Back to top"></a></div>
<div style="position: fixed; bottom: 3px; left: 25px;">$langselector</div>
<div style="position: fixed; bottom: 23px; left: 5px;"><a href="http://pad.toktan.org/p/diabook" target="blank" ><img src="view/theme/diabook/icons/bluebug.png" title="report bugs for the theme diabook"/></a></div>
.admin.linklist {
border: 0px; padding: 0px;
+ list-style: none;
}
.admin.link {
background-color: #bdcdd4;
}
#nav-notifications-menu {
- width: 400px;
+ width: 425px !important;
max-height: 550px;
overflow: auto;
}
margin-right: 20px;
}
#login-submit-wrapper{
- padding-top: 120px;
+
margin-bottom: 12px;
}
aside #login-submit-button{
.admin.linklist {
border: 0px; padding: 0px;
+ list-style: none;
}
.admin.link {
background-color: #bdcdd4;
}
#nav-notifications-menu {
- width: 400px;
+ width: 425px !important;
max-height: 550px;
overflow: auto;
}
margin-right: 20px;
}
#login-submit-wrapper{
- padding-top: 120px;
+
margin-bottom: 12px;
}
aside #login-submit-button{
/*
* Name: Diabook
* Description: Diabook: report bugs and request here: http://pad.toktan.org/p/diabook or contact me : thomas_bierey@friendica.eu
- * Version: (Version: 1.022)
+ * Version: (Version: 1.023)
* Author:
*/
//print diabook-version for debugging
-$diabook_version = "Diabook (Version: 1.022)";
+$diabook_version = "Diabook (Version: 1.023)";
$a->page['htmlhead'] .= sprintf('<script "%s" ></script>', $diabook_version);
//change css on network and profilepages
$a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" ></script>', $autogrowJS);
//js scripts
+
+//check if community_home-plugin is activated and change css
+$nametocheck = "communityhome";
+$r = q("select id from addon where name = '%s' and installed = 1", dbesc($nametocheck));
+if(count($r) == "1") {
+
+$a->page['htmlhead'] .= '
+<script>
+$(document).ready(function() {
+ $("div#login-submit-wrapper").attr("style","padding-top: 120px;");
+ });
+</script>';
+}
+
//comment-edit-wrapper on photo_view
if ($a->argv[0].$a->argv[2] === "photos"."image"){
});
</script>';
-
}
$a->page['htmlhead'] .= '
$("a.lightbox").fancybox(); // Select all links with lightbox class
});
+$(window).load(function() {
+ var footer_top = $(document).height() - 30;
+ $("div#footerbox").attr("style", "border-top: 1px solid #D2D2D2; width: 70%;right: 15%;position: absolute;top:"+footer_top+"px;");
+ });
</script>';
+++ /dev/null
-Hey, \r
-I'm $sitename. \r
-The friendica developers released update $update recently, \r
-but when I tried to install it, something went terribly wrong. \r
-This needs to be fixed soon and I can't do it alone. Please contact a \r
-friendica developer if you can not help me on your own. My database might be invalid. \r
-\r
-The error message is '$error'. \r
-\r
-I'm sorry, \r
-your friendica server at $siteurl
\ No newline at end of file