aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.gitignore13
-rw-r--r--index.php7
-rw-r--r--tpl/picwall.html3
3 files changed, 17 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index f40099f5..bcd745e4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,10 @@
1# Ignore data/, tmp/, cache/ and pagecache/ 1# Ignore data/, tmp/, cache/ and pagecache/
2data/ 2data
3tmp/ 3tmp
4cache/ 4cache
5pagecache/ 5pagecache
6
7# Eclipse project files
8.settings
9.buildpath
10.project \ No newline at end of file
diff --git a/index.php b/index.php
index adc11f9b..1d13e55c 100644
--- a/index.php
+++ b/index.php
@@ -5,6 +5,12 @@
5// Licence: http://www.opensource.org/licenses/zlib-license.php 5// Licence: http://www.opensource.org/licenses/zlib-license.php
6// Requires: php 5.1.x (but autocomplete fields will only work if you have php 5.2.x) 6// Requires: php 5.1.x (but autocomplete fields will only work if you have php 5.2.x)
7// ----------------------------------------------------------------------------------------------- 7// -----------------------------------------------------------------------------------------------
8// NEVER TRUST IN PHP.INI
9// Some hosts do not define a default timezone in php.ini,
10// so we have to do this for avoid the strict standard error.
11date_default_timezone_set('UTC');
12
13// -----------------------------------------------------------------------------------------------
8// Hardcoded parameter (These parameters can be overwritten by creating the file /config/options.php) 14// Hardcoded parameter (These parameters can be overwritten by creating the file /config/options.php)
9$GLOBALS['config']['DATADIR'] = 'data'; // Data subdirectory 15$GLOBALS['config']['DATADIR'] = 'data'; // Data subdirectory
10$GLOBALS['config']['CONFIG_FILE'] = $GLOBALS['config']['DATADIR'].'/config.php'; // Configuration file (user login/password) 16$GLOBALS['config']['CONFIG_FILE'] = $GLOBALS['config']['DATADIR'].'/config.php'; // Configuration file (user login/password)
@@ -1979,7 +1985,6 @@ function lazyThumbnail($url,$href=false)
1979 else 1985 else
1980 $html.='<img class="lazyimage" src="#" data-original="'.htmlspecialchars($t['src']).'"'; 1986 $html.='<img class="lazyimage" src="#" data-original="'.htmlspecialchars($t['src']).'"';
1981 1987
1982 $html.='<img class="lazyimage" src="#" data-original="'.htmlspecialchars($t['src']).'"';
1983 if (!empty($t['width'])) $html.=' width="'.htmlspecialchars($t['width']).'"'; 1988 if (!empty($t['width'])) $html.=' width="'.htmlspecialchars($t['width']).'"';
1984 if (!empty($t['height'])) $html.=' height="'.htmlspecialchars($t['height']).'"'; 1989 if (!empty($t['height'])) $html.=' height="'.htmlspecialchars($t['height']).'"';
1985 if (!empty($t['style'])) $html.=' style="'.htmlspecialchars($t['style']).'"'; 1990 if (!empty($t['style'])) $html.=' style="'.htmlspecialchars($t['style']).'"';
diff --git a/tpl/picwall.html b/tpl/picwall.html
index 8f8e0a0e..631e0866 100644
--- a/tpl/picwall.html
+++ b/tpl/picwall.html
@@ -17,7 +17,7 @@
17</div> 17</div>
18</center> 18</center>
19{include="page.footer"} 19{include="page.footer"}
20</body> 20
21{if="empty($GLOBALS['disablejquery'])"} 21{if="empty($GLOBALS['disablejquery'])"}
22<script> 22<script>
23$(document).ready(function() { 23$(document).ready(function() {
@@ -25,4 +25,5 @@ $(document).ready(function() {
25}); 25});
26</script> 26</script>
27{/if} 27{/if}
28</body>
28</html> \ No newline at end of file 29</html> \ No newline at end of file