svn: /web/doc-editor/trunk/ index.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Thu, 21 Jul 2011 10:09:09 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=313515

Log:
Add external js file to allow connection with external credential

Changed paths:
    U   web/doc-editor/trunk/index.php

Modified: web/doc-editor/trunk/index.php
===================================================================
--- web/doc-editor/trunk/index.php	2011-07-21 10:08:16 UTC (rev 313514)
+++ web/doc-editor/trunk/index.php	2011-07-21 10:09:09 UTC (rev 313515)
@@ -75,11 +75,24 @@

 // Log the user in if needed
 if (!isset($_SESSION['userID'])) {
+
     echo headerTemplate();
     echo cssLoadTemplate('js/ExtJs/resources/css/ext-all.css');
     echo cssLoadTemplate('themes/login-all.css');
     echo jsCallTemplate($jsVar);
     echo jsCallTemplate('document.getElementById("loading-msg").innerHTML = "Loading Core API...";');
+
+    // Facebook
+    echo jsLoadTemplate('http://connect.facebook.net/en_US/all.js');
+
+    // Twitter
+    echo jsLoadTemplate('http://platform.twitter.com/anywhere.js?id=2hlkdhcRZG8W6jz1LkEAQ&v=1');
+
+    //Google
+    echo jsLoadTemplate('http://www.google.com/jsapi');
+    echo jsCallTemplate("google.load('friendconnect', '0.8');");
+
+
     echo jsLoadTemplate('js/ExtJs/adapter/ext/ext-base.js');
     echo jsCallTemplate('document.getElementById("loading-msg").innerHTML = "Loading UI Components...";');
     echo jsLoadTemplate('js/ExtJs/ext-all.js');
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.