This commit has been accessed 591 times via Git panel.
commit dc61dbe93d2a2285275425d7262a93ae37a9fc14
tree c20c4b07551d6fe29a9715b2f153e9e2a85aa95e
parent 22239be696a2678a2a7ee788214bb1e793ee4ad9
author Magie Antonio <magie@majcms.org> 1302050406 +0800
committer Magie Antonio <magie@majcms.org> 1302050406 +0800
Enable Facebook support check in album.php
diff --git a/album.php b/album.php
index 66e2fb5..720acd4 100644
--- a/album.php
+++ b/album.php
@@ -352,7 +352,7 @@ if (file_exists("images/{$_REQUEST['entry']}/album/{$_REQUEST['show']}")) {
echo "</td></tr></table>";
-// if (file_exists("data/fb.txt") and file_exists("data/items/$maj_d/fb.txt")) {
+ if (file_exists("data/fb.txt") and file_exists("data/items/$maj_d/fb.txt")) {
if (isset($_SERVER['HTTPS'])) {
$entry_url = "https://" . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['PHP_SELF']), "/\\") . "/album.php?entry={$_REQUEST['entry']}&show={$_REQUEST['show']}";
@@ -364,7 +364,7 @@ if (file_exists("images/{$_REQUEST['entry']}/album/{$_REQUEST['show']}")) {
$entry_url = rawurlencode($entry_url);
echo "<div style=\"margin: 4px;\"><iframe src=\"http://www.facebook.com/plugins/like.php?href=$entry_url&layout=standard&show_faces=true&width=320&action=like&colorscheme=light&height=80\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:320px; height:80px;\" allowTransparency=\"true\"></iframe></div>";
-// }
+ }
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\"><tr><td valign=\"top\" colspan=\"3\">";
tree c20c4b07551d6fe29a9715b2f153e9e2a85aa95e
parent 22239be696a2678a2a7ee788214bb1e793ee4ad9
author Magie Antonio <magie@majcms.org> 1302050406 +0800
committer Magie Antonio <magie@majcms.org> 1302050406 +0800
Enable Facebook support check in album.php
diff --git a/album.php b/album.php
index 66e2fb5..720acd4 100644
--- a/album.php
+++ b/album.php
@@ -352,7 +352,7 @@ if (file_exists("images/{$_REQUEST['entry']}/album/{$_REQUEST['show']}")) {
echo "</td></tr></table>";
-// if (file_exists("data/fb.txt") and file_exists("data/items/$maj_d/fb.txt")) {
+ if (file_exists("data/fb.txt") and file_exists("data/items/$maj_d/fb.txt")) {
if (isset($_SERVER['HTTPS'])) {
$entry_url = "https://" . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['PHP_SELF']), "/\\") . "/album.php?entry={$_REQUEST['entry']}&show={$_REQUEST['show']}";
@@ -364,7 +364,7 @@ if (file_exists("images/{$_REQUEST['entry']}/album/{$_REQUEST['show']}")) {
$entry_url = rawurlencode($entry_url);
echo "<div style=\"margin: 4px;\"><iframe src=\"http://www.facebook.com/plugins/like.php?href=$entry_url&layout=standard&show_faces=true&width=320&action=like&colorscheme=light&height=80\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:320px; height:80px;\" allowTransparency=\"true\"></iframe></div>";
-// }
+ }
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"2\"><tr><td valign=\"top\" colspan=\"3\">";