diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/home.php | 4 | ||||
-rw-r--r-- | mod/mail.php | 85 | ||||
-rw-r--r-- | mod/ping.php | 4 | ||||
-rw-r--r-- | mod/wall_upload.php | 3 |
4 files changed, 6 insertions, 90 deletions
diff --git a/mod/home.php b/mod/home.php index 898313814..4905789db 100644 --- a/mod/home.php +++ b/mod/home.php @@ -16,8 +16,8 @@ function home_init(&$a) { if(! function_exists('home_content')) { function home_content(&$a) { - - $a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://mistpark.com\" name=\"Mistpark\" >Mistpark</a></div>"; + $a->page['header'] .= '<div id="logo">mistpark</div>'; + $a->page['footer'] .= "<div class=\"powered\" >Powered by <a href=\"http://mistpark.com\" name=\"mistpark\" >mistpark</a></div>"; $o .= '<h1>Welcome' . ((x($a->config,'sitename')) ? " to {$a->config['sitename']}" : "" ) . '</h1>'; $o .= login(($a->config['register_policy'] == REGISTER_CLOSED) ? 0 : 1); return $o; diff --git a/mod/mail.php b/mod/mail.php deleted file mode 100644 index 6bb040879..000000000 --- a/mod/mail.php +++ /dev/null @@ -1,85 +0,0 @@ -<?php - - -function mail_post(&$a) { - - // handles mail created by me, or mail posted to my profile page. - // If remote we must have a DFRN-url. - - if((x($_POST,'dfrn_url')) && (strlen($_POST['dfrn_url']))) { - // get post params - $remote = true; - - // check blacklist - - - // scrape url - - - - // sanitise - - // store - - - // notify - - - } - - if(local_user()) { - - - // get data - - - // sanitise - - - // store - - - // notify - - - - - } - - - - - - - - - -} - - -function mail_content(&$a) { - - // remot mail - - - // list mail - - - - - - // read message - - - - - // reply - - - - - // new mail - - - -}
\ No newline at end of file diff --git a/mod/ping.php b/mod/ping.php index ea5c308a3..7e96b7121 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -8,13 +8,13 @@ function ping_init(&$a) { xml_status(0); $r = q("SELECT COUNT(*) AS `total` FROM `item` - WHERE `unseen` = 1 AND `uid` = %d", + WHERE `unseen` = 1 AND `visible` = 1 AND `deleted` = 0 AND `uid` = %d", intval($_SESSION['uid']) ); $network = $r[0]['total']; $r = q("SELECT COUNT(*) AS `total` FROM `item` - WHERE `unseen` = 1 AND `uid` = %d AND `type` != 'remote' ", + WHERE `unseen` = 1 AND `visible` = 1 AND `deleted` = 0 AND `uid` = %d AND `type` != 'remote' ", intval($_SESSION['uid']) ); $home = $r[0]['total']; diff --git a/mod/wall_upload.php b/mod/wall_upload.php index c585fc30b..34c541677 100644 --- a/mod/wall_upload.php +++ b/mod/wall_upload.php @@ -35,7 +35,7 @@ function wall_upload_post(&$a) { $str_image = $ph->imageString(); $smallest = 0; - $r = q("INSERT INTO `photo` ( `uid`, `resource-id`, `created`, `edited`, `filename`, + $r = q("INSERT INTO `photo` ( `uid`, `resource-id`, `created`, `edited`, `filename`, `album`, `height`, `width`, `data`, `scale` ) VALUES ( %d, '%s', '%s', '%s', '%s', %d, %d, '%s', 0 )", intval($_SESSION['uid']), @@ -43,6 +43,7 @@ function wall_upload_post(&$a) { datetime_convert(), datetime_convert(), dbesc(basename($filename)), + dbesc( t('Wall Photos')), intval($height), intval($width), dbesc($str_image)); |