]> git.mxchange.org Git - friendica.git/commitdiff
Merge github.com:tobiasd/friendika
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 22 Jul 2011 04:32:36 +0000 (06:32 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 22 Jul 2011 04:32:36 +0000 (06:32 +0200)
boot.php
include/main.js
include/salmon.php
mod/community.php
mod/network.php
mod/profile.php
mod/receive.php
mod/salmon.php
view/photo_edit.tpl
view/theme/duepuntozero/style.css
view/theme/loozah/style.css

index 61585419adba998fe6dc6f92646f8ee2c5e45929..74f46052b85ce583141ee302606b70111a9f7fbe 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1,6 +1,6 @@
 <?php
 
-define ( 'FRIENDIKA_VERSION',      '2.2.1047' );
+define ( 'FRIENDIKA_VERSION',      '2.2.1048' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1076      );
 
@@ -135,7 +135,7 @@ define ( 'NAMESPACE_POCO',            'http://portablecontacts.net/spec/1.0' );
 define ( 'NAMESPACE_FEED',            'http://schemas.google.com/g/2010#updates-from' );
 define ( 'NAMESPACE_OSTATUS',         'http://ostatus.org/schema/1.0' );
 define ( 'NAMESPACE_STATUSNET',       'http://status.net/schema/api/1/' );
-
+define ( 'NAMESPACE_ATOM1',           'http://www.w3.org/2005/Atom' );
 /**
  * activity stream defines
  */
index 288fd6f01886faf66845527dbe764e60b41332b0..d17d923e42d97eb591107432131a2c79550ee861 100644 (file)
 
                in_progress = true;
                var udargs = ((netargs.length) ? '/' + netargs : '');
-               var update_url = 'update_' + src + udargs + '?p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0);
+               var update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0);
 
                $.get(update_url,function(data) {
                        in_progress = false;
index c1af1a8526312539dcc2f9a458cdbab7db0cb2fd..473432f259542c92a067a41e8681e2f2846ccbc7 100644 (file)
@@ -145,7 +145,7 @@ EOT;
 
        // Setup RSA stuff to PKCS#1 sign the data
 
-       set_include_path(get_include_path() . PATH_SEPARATOR . 'library' . PATH_SEPARATOR . 'phpsec');
+       set_include_path(get_include_path() . PATH_SEPARATOR . 'library/phpsec');
 
        require_once('library/phpsec/Crypt/RSA.php');
 
index 73feaabc69b2373e28efa34000315907732677f9..cf43598b518bdf5a5cd5a64cc7ed878c1b36794b 100644 (file)
@@ -27,7 +27,7 @@ function community_content(&$a, $update = 0) {
        if(! $update) {
                $o .= '<script> $(document).ready(function() { $(\'#nav-community-link\').addClass(\'nav-selected\'); });</script>';
                $o .= '<div id="live-community"></div>' . "\r\n";
-               $o .= "<script> var profile_uid = -1; var netargs = ''; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
+               $o .= "<script> var profile_uid = -1; var netargs = '/?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
        }
 
        if(x($a->data,'search'))
index 28e5402834b0e7dc2c565cd37f18acbd78ddcfbe..7bdd3f3f1022d9d72e23218e53be440646554c8a 100644 (file)
@@ -125,10 +125,11 @@ function network_content(&$a, $update = 0) {
 
                        $o .= '<div id="live-network"></div>' . "\r\n";
                        $o .= "<script> var profile_uid = " . $_SESSION['uid'] 
-                               . "; var netargs = '" . substr($a->cmd,8) 
-                               . ((x($_GET,'cid')) ? '?cid=' . $_GET['cid'] : '')
-                               . ((x($_GET,'search')) ? '?search=' . $_GET['search'] : '') 
-                               . ((x($_GET,'star')) ? '?star=' . $_GET['star'] : '') 
+                               . "; var netargs = '" . substr($a->cmd,8)
+                               . '?f='
+                               . ((x($_GET,'cid')) ? '&cid=' . $_GET['cid'] : '')
+                               . ((x($_GET,'search')) ? '&search=' . $_GET['search'] : '') 
+                               . ((x($_GET,'star')) ? '&star=' . $_GET['star'] : '') 
                                . "'; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
 
        }
@@ -208,7 +209,6 @@ function network_content(&$a, $update = 0) {
                $sql_extra .= " AND `item`.`body` REGEXP '" . dbesc(escape_tags($_GET['search'])) . "' ";
 
        
-
        $r = q("SELECT COUNT(*) AS `total`
                FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
                WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0
index e9b144ffdd7b8538cdd318f0cf6bf6f96b909c05..f4b6bfaf1c231f9f403381e45a9690cbba5c2131 100644 (file)
@@ -160,7 +160,7 @@ function profile_content(&$a, $update = 0) {
                if($tab === 'posts') {
                        $o .= '<div id="live-profile"></div>' . "\r\n";
                        $o .= "<script> var profile_uid = " . $a->profile['profile_uid'] 
-                               . "; var netargs = ''; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
+                               . "; var netargs = '/?f='; var profile_page = " . $a->pager['page'] . "; </script>\r\n";
                }
        }
 
index 6e36109b3b880114ea39f7b5434b228c1fa3ed61..6fb68e15454c36c5d9d54a4b0ee0ff16cf2dfbdd 100644 (file)
@@ -5,7 +5,6 @@
  */
 
 
-
 require_once('include/salmon.php');
 require_once('library/simplepie/simplepie.inc');
 
index 721eae4371f6b278e6f12b83c45827763e7f90c3..56ac071b065209aa7a82ced4042790492026b889 100644 (file)
@@ -130,7 +130,7 @@ function salmon_post(&$a) {
 
        // Setup RSA stuff to verify the signature
 
-       set_include_path(get_include_path() . PATH_SEPARATOR . 'library' . PATH_SEPARATOR . 'phpsec');
+       set_include_path(get_include_path() . PATH_SEPARATOR . 'library/phpsec');
 
        require_once('library/phpsec/Crypt/RSA.php');
 
index ceb1ddca3c059f0ee243298cd7617e006f823d25..839e41ee7b79656669f9e6ab6661352c3ccf4869 100644 (file)
        <div id="photo-edit-tags-end"></div>
 
        <div id="photo-edit-perms" class="photo-edit-perms" >
-               <div id="photo-edit-perms-menu" class="fakelink" onClick="openClose('photo-edit-perms-select');" >$permissions</div>
+               <a href="#photo-edit-perms-select" id="photo-edit-perms-menu" title="$permissions"/>
+                       <span id="jot-perms-icon" class="icon $lockstate" ></span>$permissions
+               </a>
                <div id="photo-edit-perms-menu-end"></div>
-
-               <div id="photo-edit-perms-select" style="display: none;" >
-       
-               $aclselect
-
+               
+               <div style="display: none;">
+                       <div id="photo-edit-perms-select" >
+                               $aclselect
+                       </div>
                </div>
        </div>
        <div id="photo-edit-perms-end"></div>
 
        <div id="photo-edit-end"></div>
 </form>
+
+<script>
+       $("a#photo-edit-perms-menu").fancybox({
+               'transitionIn' : 'none',
+               'transitionOut' : 'none'
+       }); 
+</script>
index 6a909bc7dbacb3cf8a3d362006d814b34c19ef76..e2b1a57dc5078768e068dde1aec5e8ab5182feba 100644 (file)
@@ -1491,6 +1491,7 @@ input#dfrn-url {
 
 
 /** acl **/
+#photo-edit-perms-select,
 #photos-upload-permissions-wrapper,
 #profile-jot-acl-wrapper{
        display:block!important;
index 96702d320b4bc176005acf7ff952c2d1d0f66e31..c58bda5bb37b0b3a09895b894d9349df1a02f6a5 100644 (file)
@@ -1569,6 +1569,7 @@ padding: 5px 10px 0px;
 
 
 /** acl **/
+#photo-edit-perms-select,
 #photos-upload-permissions-wrapper,
 #profile-jot-acl-wrapper{
        display:block!important;