]> git.mxchange.org Git - friendica.git/commitdiff
front page
authorMike Macgirvin <mike@macgirvin.com>
Wed, 4 Aug 2010 01:17:42 +0000 (18:17 -0700)
committerMike Macgirvin <mike@macgirvin.com>
Wed, 4 Aug 2010 01:17:42 +0000 (18:17 -0700)
mod/home.php
mod/mail.php [deleted file]
mod/ping.php
mod/wall_upload.php
view/style.css

index 898313814dfdc0701f124c8ce1aa28cc71e23d69..4905789db37a69e559128ee13dae200e1b5e435f 100644 (file)
@@ -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 (file)
index 6bb0408..0000000
+++ /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
index ea5c308a30b64929fcadf4200abac0029e5c6337..7e96b712175a7999c97a790bd2402b85d403b541 100644 (file)
@@ -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'];
index c585fc30b8c28865895b27904c1e1f6f2a3bac4f..34c541677590839cd09cce08e1d9db9721c4f7bd 100644 (file)
@@ -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));
index c7b46a83078ef7fdca302d6b36a593bf09ad9da3..5c5a58cd533792439e1c18fb1e2bc6c973c80173 100644 (file)
@@ -1,6 +1,6 @@
 
 a, a:visited {
-       color: #4444FF;
+       color: #8888FF;
        text-decoration: none;
 }
 
@@ -28,6 +28,13 @@ img.photo {
        background: #FFFFFF;
 }
 
+#logo {
+       font-size: 300%;
+       color: #A8A8A8;
+       font-weight: bold;
+       margin-left: 280px;
+}
+
 aside {
        position: absolute;
        left: 0px;
@@ -81,6 +88,13 @@ footer {
        border: 1px solid #FF8888;
        background-color: #FFEEEE;
        padding: 10px;
+       -moz-box-shadow: 5px 5px 5px #888888;
+       -webkit-box-shadow: 5px 5px 5px #888888;
+       box-shadow: 5px 5px 5px #888888;
+       -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#888888')";
+       filter: progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=135, Color='#888888');
+
+
 }
 .nav-link {
        float: right;