- Timestamp:
- 04/11/06 17:47:04 (3 years ago)
- Location:
- branches/plogger-with-tags
- Files:
-
- 4 removed
- 34 modified
- 114 copied
-
.htaccess (modified) (1 diff)
-
_install.php (modified) (17 diffs)
-
_upgrade.php (modified) (6 diffs)
-
admin/index.php (modified) (4 diffs)
-
admin/js/AmiJS.js (copied) (copied from trunk/admin/js/AmiJS.js)
-
admin/js/greybox.js (copied) (copied from trunk/admin/js/greybox.js)
-
admin/js/lightbox.js (copied) (copied from trunk/admin/js/lightbox.js)
-
admin/js/plogger.js (modified) (1 diff)
-
admin/js/prototype.js (copied) (copied from trunk/admin/js/prototype.js)
-
admin/plog-admin-functions.php (modified) (28 diffs)
-
admin/plog-admin.php (copied) (copied from trunk/admin/plog-admin.php)
-
admin/plog-feedback.php (modified) (11 diffs)
-
admin/plog-globals.php (deleted)
-
admin/plog-import.php (modified) (16 diffs)
-
admin/plog-manage.php (modified) (16 diffs)
-
admin/plog-options.php (modified) (18 diffs)
-
admin/plog-themes.php (copied) (copied from trunk/admin/plog-themes.php)
-
admin/plog-thumb.php (copied) (copied from trunk/admin/plog-thumb.php)
-
admin/plog-thumbpopup.php (modified) (2 diffs)
-
admin/plog-upload.php (modified) (6 diffs)
-
css/admin.css (modified) (13 diffs)
-
css/gallery.css (modified) (6 diffs)
-
css/greybox.css (copied) (copied from trunk/css/greybox.css)
-
css/lightbox.css (copied) (copied from trunk/css/lightbox.css)
-
dynamics.js (modified) (2 diffs)
-
gallery.php (modified) (4 diffs)
-
graphics/auto.gif (copied) (copied from trunk/graphics/auto.gif)
-
graphics/close.gif (copied) (copied from trunk/graphics/close.gif)
-
graphics/loading.gif (copied) (copied from trunk/graphics/loading.gif)
-
graphics/login.gif (copied) (copied from trunk/graphics/login.gif)
-
graphics/overlay.png (copied) (copied from trunk/graphics/overlay.png)
-
graphics/plogger-box-add-green.png (copied) (copied from trunk/graphics/plogger-box-add-green.png)
-
graphics/plogger-box-add.png (copied) (copied from trunk/graphics/plogger-box-add.png)
-
graphics/rss.gif (modified) (previous)
-
graphics/table-middle.gif (copied) (copied from trunk/graphics/table-middle.gif)
-
graphics/table-top-left.gif (copied) (copied from trunk/graphics/table-top-left.gif)
-
graphics/table-top-right.gif (copied) (copied from trunk/graphics/table-top-right.gif)
-
index.php (modified) (1 diff)
-
lib/exifer1_4 (deleted)
-
lib/exifer1_5 (copied) (copied from trunk/lib/exifer1_5)
-
lib/exifer1_5/exif.php (copied) (copied from trunk/lib/exifer1_5/exif.php)
-
lib/exifer1_5/image.jpg (copied) (copied from trunk/lib/exifer1_5/image.jpg)
-
lib/exifer1_5/index.php (copied) (copied from trunk/lib/exifer1_5/index.php)
-
lib/exifer1_5/makers (copied) (copied from trunk/lib/exifer1_5/makers)
-
lib/exifer1_5/makers/canon.php (copied) (copied from trunk/lib/exifer1_5/makers/canon.php)
-
lib/exifer1_5/makers/fujifilm.php (copied) (copied from trunk/lib/exifer1_5/makers/fujifilm.php)
-
lib/exifer1_5/makers/gps.php (copied) (copied from trunk/lib/exifer1_5/makers/gps.php)
-
lib/exifer1_5/makers/nikon.php (copied) (copied from trunk/lib/exifer1_5/makers/nikon.php)
-
lib/exifer1_5/makers/olympus.php (copied) (copied from trunk/lib/exifer1_5/makers/olympus.php)
-
lib/exifer1_5/makers/sanyo.php (copied) (copied from trunk/lib/exifer1_5/makers/sanyo.php)
-
lib/pclzip-2-4 (copied) (copied from trunk/lib/pclzip-2-4)
-
lib/pclzip-2-4/gnu-lgpl.txt (copied) (copied from trunk/lib/pclzip-2-4/gnu-lgpl.txt)
-
lib/pclzip-2-4/pclzip.lib.php (copied) (copied from trunk/lib/pclzip-2-4/pclzip.lib.php)
-
lib/pclzip-2-4/readme.txt (copied) (copied from trunk/lib/pclzip-2-4/readme.txt)
-
lib/phpthumb/docs/phpthumb.changelog.txt (modified) (1 diff)
-
lib/phpthumb/docs/phpthumb.faq.txt (modified) (3 diffs)
-
lib/phpthumb/docs/phpthumb.readme.txt (modified) (6 diffs)
-
lib/phpthumb/phpThumb.config.php.default (modified) (4 diffs)
-
lib/phpthumb/phpThumb.php (modified) (17 diffs)
-
lib/phpthumb/phpthumb.class.php (modified) (52 diffs)
-
lib/phpthumb/phpthumb.filters.php (modified) (10 diffs)
-
lib/phpthumb/phpthumb.functions.php (modified) (3 diffs)
-
lib/plogger (copied) (copied from trunk/lib/plogger)
-
lib/plogger/install_functions.php (copied) (copied from trunk/lib/plogger/install_functions.php)
-
plog-comment.php (modified) (3 diffs)
-
plog-config.php (copied) (copied from trunk/plog-config.php) (1 diff)
-
plog-connect.php (deleted)
-
plog-download.php (modified) (2 diffs)
-
plog-functions.php (modified) (4 diffs)
-
plog-globals.php (modified) (1 diff)
-
plog-load_config.php (modified) (1 diff)
-
plog-print.php (modified) (2 diffs)
-
plog-remote.php (modified) (1 diff)
-
plog-rss.php (modified) (3 diffs)
-
plog-xml.php (copied) (copied from trunk/plog-xml.php)
-
set_session_var.php (deleted)
-
themes (copied) (copied from trunk/themes)
-
themes/black (copied) (copied from trunk/themes/black)
-
themes/black/gallery.css (copied) (copied from trunk/themes/black/gallery.css)
-
themes/black/meta.php (copied) (copied from trunk/themes/black/meta.php)
-
themes/default (copied) (copied from trunk/themes/default)
-
themes/default/album.php (copied) (copied from trunk/themes/default/album.php)
-
themes/default/collection.php (copied) (copied from trunk/themes/default/collection.php)
-
themes/default/collections.php (copied) (copied from trunk/themes/default/collections.php)
-
themes/default/comments.php (copied) (copied from trunk/themes/default/comments.php)
-
themes/default/dynamics.js (copied) (copied from trunk/themes/default/dynamics.js)
-
themes/default/footer.php (copied) (copied from trunk/themes/default/footer.php)
-
themes/default/gallery.css (copied) (copied from trunk/themes/default/gallery.css) (8 diffs)
-
themes/default/head.php (copied) (copied from trunk/themes/default/head.php)
-
themes/default/header.php (copied) (copied from trunk/themes/default/header.php)
-
themes/default/meta.php (copied) (copied from trunk/themes/default/meta.php)
-
themes/default/picture.php (copied) (copied from trunk/themes/default/picture.php)
-
themes/default/search.php (copied) (copied from trunk/themes/default/search.php)
-
themes/default/slideshow.php (copied) (copied from trunk/themes/default/slideshow.php)
-
themes/lightbox (copied) (copied from trunk/themes/lightbox)
-
themes/lightbox/album.php (copied) (copied from trunk/themes/lightbox/album.php)
-
themes/lightbox/close.gif (copied) (copied from trunk/themes/lightbox/close.gif)
-
themes/lightbox/collection.php (copied) (copied from trunk/themes/lightbox/collection.php)
-
themes/lightbox/collections.php (copied) (copied from trunk/themes/lightbox/collections.php)
-
themes/lightbox/comments.php (copied) (copied from trunk/themes/lightbox/comments.php)
-
themes/lightbox/footer.php (copied) (copied from trunk/themes/lightbox/footer.php)
-
themes/lightbox/gallery.css (copied) (copied from trunk/themes/lightbox/gallery.css)
-
themes/lightbox/head.php (copied) (copied from trunk/themes/lightbox/head.php)
-
themes/lightbox/header.php (copied) (copied from trunk/themes/lightbox/header.php)
-
themes/lightbox/lightbox.css (copied) (copied from trunk/themes/lightbox/lightbox.css)
-
themes/lightbox/lightbox.js (copied) (copied from trunk/themes/lightbox/lightbox.js)
-
themes/lightbox/loading.gif (copied) (copied from trunk/themes/lightbox/loading.gif)
-
themes/lightbox/meta.php (copied) (copied from trunk/themes/lightbox/meta.php)
-
themes/lightbox/overlay.png (copied) (copied from trunk/themes/lightbox/overlay.png)
-
themes/lightbox/picture.php (copied) (copied from trunk/themes/lightbox/picture.php)
-
themes/lightbox/search.php (copied) (copied from trunk/themes/lightbox/search.php)
-
themes/lightbox/slideshow.php (copied) (copied from trunk/themes/lightbox/slideshow.php)
-
themes/popup (copied) (copied from trunk/themes/popup)
-
themes/popup/album.php (copied) (copied from trunk/themes/popup/album.php)
-
themes/popup/collection.php (copied) (copied from trunk/themes/popup/collection.php)
-
themes/popup/collections.php (copied) (copied from trunk/themes/popup/collections.php)
-
themes/popup/comments.php (copied) (copied from trunk/themes/popup/comments.php)
-
themes/popup/dynamics.js (copied) (copied from trunk/themes/popup/dynamics.js)
-
themes/popup/footer.php (copied) (copied from trunk/themes/popup/footer.php)
-
themes/popup/gallery.css (copied) (copied from trunk/themes/popup/gallery.css)
-
themes/popup/header.php (copied) (copied from trunk/themes/popup/header.php)
-
themes/popup/meta.php (copied) (copied from trunk/themes/popup/meta.php)
-
themes/popup/picture.php (copied) (copied from trunk/themes/popup/picture.php)
-
themes/popup/popup.js (copied) (copied from trunk/themes/popup/popup.js)
-
themes/popup/search.php (copied) (copied from trunk/themes/popup/search.php)
-
themes/popup/slideshow.php (copied) (copied from trunk/themes/popup/slideshow.php)
-
themes/table-free (copied) (copied from trunk/themes/table-free)
-
themes/table-free/album.php (copied) (copied from trunk/themes/table-free/album.php)
-
themes/table-free/collection.php (copied) (copied from trunk/themes/table-free/collection.php)
-
themes/table-free/collections.php (copied) (copied from trunk/themes/table-free/collections.php)
-
themes/table-free/comments.php (copied) (copied from trunk/themes/table-free/comments.php)
-
themes/table-free/dynamics.js (copied) (copied from trunk/themes/table-free/dynamics.js)
-
themes/table-free/footer.php (copied) (copied from trunk/themes/table-free/footer.php)
-
themes/table-free/gallery.css (copied) (copied from trunk/themes/table-free/gallery.css)
-
themes/table-free/header.php (copied) (copied from trunk/themes/table-free/header.php)
-
themes/table-free/meta.php (copied) (copied from trunk/themes/table-free/meta.php)
-
themes/table-free/picture.php (copied) (copied from trunk/themes/table-free/picture.php)
-
themes/table-free/search.php (copied) (copied from trunk/themes/table-free/search.php)
-
themes/table-free/slideshow.php (copied) (copied from trunk/themes/table-free/slideshow.php)
-
themes/table-free2 (copied) (copied from trunk/themes/table-free2)
-
themes/table-free2/album.php (copied) (copied from trunk/themes/table-free2/album.php)
-
themes/table-free2/collection.php (copied) (copied from trunk/themes/table-free2/collection.php)
-
themes/table-free2/collections.php (copied) (copied from trunk/themes/table-free2/collections.php)
-
themes/table-free2/comments.php (copied) (copied from trunk/themes/table-free2/comments.php)
-
themes/table-free2/dynamics.js (copied) (copied from trunk/themes/table-free2/dynamics.js)
-
themes/table-free2/footer.php (copied) (copied from trunk/themes/table-free2/footer.php)
-
themes/table-free2/gallery.css (copied) (copied from trunk/themes/table-free2/gallery.css)
-
themes/table-free2/header.php (copied) (copied from trunk/themes/table-free2/header.php)
-
themes/table-free2/meta.php (copied) (copied from trunk/themes/table-free2/meta.php)
-
themes/table-free2/picture.php (copied) (copied from trunk/themes/table-free2/picture.php)
-
themes/table-free2/search.php (copied) (copied from trunk/themes/table-free2/search.php)
-
themes/table-free2/slideshow.php (copied) (copied from trunk/themes/table-free2/slideshow.php)
Legend:
- Unmodified
- Added
- Removed
-
branches/plogger-with-tags/.htaccess
r100 r373 1 # BEGIN Plogger 2 # END Plogger -
branches/plogger-with-tags/_install.php
r150 r373 1 1 <?php 2 3 // Installation file. 4 5 error_reporting(E_ALL); 2 error_reporting(E_ERROR); 6 3 $TABLE_PREFIX = "plogger_"; 4 $config_table = $TABLE_PREFIX.'config'; 5 6 if (file_exists("plog-config.php")) { 7 require_once("plog-config.php"); 8 if ( @mysql_connect(PLOGGER_DB_HOST,PLOGGER_DB_USER,PLOGGER_DB_PW) && 9 @mysql_select_db(PLOGGER_DB_NAME)) { 10 die("Plogger seems to have been already installed!<br/>If this is not the case and you really wish to attempt to create the Plogger database tables, please remove the file 'plog-config.php' from the Plogger installation directory."); 11 }; 12 }; 13 14 15 16 require_once(dirname(__FILE__) . '/lib/plogger/install_functions.php'); 17 $errors = check_requirements(); 18 19 if (sizeof($errors) > 0) { 20 print '<ul>'; 21 foreach($errors as $error) { 22 print '<li>' . $error . '</li>'; 23 }; 24 print '</ul>'; 25 exit; 26 27 }; 7 28 8 29 foreach($_POST as $key => $val) $_POST[$key] = stripslashes($val); … … 15 36 }; 16 37 38 17 39 if (!empty($_POST)) 18 40 { 19 $connect_file_data = '<?php 20 21 // this is the file used to connect to your database. 22 // you must change these values in order to run the gallery. 23 24 $DB_HOST = "'.$_POST["db_host"].'"; 25 $DB_USER = "'.$_POST["db_user"].'"; 26 $DB_PW = "'.$_POST["db_pass"].'"; 27 $DB_NAME = "'.$_POST["db_name"].'"; 28 29 $dbh = mysql_connect ($DB_HOST, $DB_USER, $DB_PW) or die ("Plogger cannot connect to the database because: " . mysql_error()); 30 mysql_select_db ($DB_NAME); 31 32 33 function run_query($query){ 34 $result = mysql_query($query) or die(mysql_error() . "<br /><br />" . $query); 35 return $result; 36 } 37 38 39 ?>'; 41 $cfg_file = "<?php\n"; 42 $cfg_file .= '// this is the file used to connect to your database.'."\n"; 43 $cfg_file .= '// you must change these values in order to run the gallery.'."\n"; 44 45 $cfg_file .= 'define("PLOGGER_DB_HOST","'.$_POST["db_host"].'");'."\n"; 46 $cfg_file .= 'define("PLOGGER_DB_USER","'.$_POST["db_user"].'");'."\n"; 47 $cfg_file .= 'define("PLOGGER_DB_PW","'.$_POST["db_pass"].'");'."\n"; 48 $cfg_file .= 'define("PLOGGER_DB_NAME","'.$_POST["db_name"].'");'."\n"; 49 50 $cfg_file .= "?>\n"; 51 40 52 }; 41 53 … … 66 78 $errors[] = 'Please enter a password.'; 67 79 } 80 if (trim($_POST["password"]) != trim($_POST["confirm_password"])){ 81 $errors[] = 'Passwords do not match.'; 82 } 68 83 69 84 $files_to_read = array("./","./admin","./css","./images","./lib","./thumbs","./uploads"); … … 86 101 if (count($errors) == 0){ 87 102 if(!@mysql_connect($_POST["db_host"],$_POST["db_user"],$_POST["db_pass"])){ 88 $errors[] = 'Plogger could not connect to the MySQL host with the information you provided. ';103 $errors[] = 'Plogger could not connect to the MySQL host with the information you provided. (' . mysql_error() . ')'; 89 104 } 90 105 elseif(!mysql_select_db($_POST["db_name"])){ … … 93 108 } 94 109 95 // Try to write the plog-con nect.php file.110 // Try to write the plog-config.php file. 96 111 if (count($errors) == 0){ 97 112 // Open the file for writing. 98 113 99 $handle = @fopen(realpath("./plog-connect.php"),"w");114 $handle = fopen(realpath("./plog-config.php"),"w"); 100 115 101 116 if ($handle){ 102 fwrite($handle, $c onnect_file_data);117 fwrite($handle, $cfg_file); 103 118 fclose($handle); 104 119 } 105 120 else{ 106 121 // Try chmodding the file. 107 @chmod(realpath("./plog-con nect.php"), 0666);108 109 $handle = @fopen(realpath("./plog-connect.php"),"w");122 @chmod(realpath("./plog-config.php"), 0666); 123 124 $handle = fopen(realpath("./plog-config.php"),"w"); 110 125 111 126 if ($handle){ 112 fwrite($handle, $c onnect_file_data);127 fwrite($handle, $cfg_file); 113 128 fclose($handle); 114 129 } 115 130 else{ 116 $config_errors[] = "Plogger could not write the plog-con nect.php file. Either make this file writable by the Web server and click 'Try Again', or replace the contents of the current plog-connect.php file with the following code:<br /><pre>" . htmlentities($connect_file_data) . "</pre>If you choose to overwrite the file manually, do so, and then delete the _install.php file. Don't forget to change the permissions back on plog-connect.phpafter you overwrite it. Proceed to your <a href=\"admin\">Administrative Tools</a> when you have fixed the connection file.";131 $config_errors[] = "Plogger could not write the plog-config.php file. Either make this file writable by the Web server and click 'Try Again', or replace the contents of the current plog-config.php file with the following code:<br /><pre>" . htmlentities($cfg_file) . "</pre>If you choose to overwrite the file manually, do so, and don't forget to change the permissions back after you overwrite it. Proceed to your <a href=\"admin\">Administrative Tools</a> when you have fixed the connection file."; 117 132 } 118 133 } … … 132 147 // first lets check if the tables have already been installed 133 148 134 $query = "CREATE TABLE IF NOT EXISTS`".$TABLE_PREFIX."collections` (149 $query = "CREATE TABLE `".$TABLE_PREFIX."collections` ( 135 150 `name` varchar(128) NOT NULL default '', 136 151 `description` varchar(255) NOT NULL default '', 137 152 `path` varchar(255) NOT NULL default '', 138 153 `id` int(11) NOT NULL auto_increment, 139 `thumbnail_id` int(11) NOT NULL ,154 `thumbnail_id` int(11) NOT NULL DEFAULT '0', 140 155 PRIMARY KEY (id) 141 156 ) Type=MyISAM $default_charset"; 142 157 mysql_query($query) or die(mysql_error().'<br /><br />'. $query); 143 158 144 $query = "CREATE TABLE IF NOT EXISTS`".$TABLE_PREFIX."albums` (159 $query = "CREATE TABLE `".$TABLE_PREFIX."albums` ( 145 160 `name` varchar(128) NOT NULL default '', 146 161 `id` int(11) NOT NULL auto_increment, … … 148 163 `path` varchar(255) NOT NULL default '', 149 164 `parent_id` int(11) NOT NULL default '0', 150 `thumbnail_id` int(11) NOT NULL ,165 `thumbnail_id` int(11) NOT NULL default '0', 151 166 PRIMARY KEY (id), 152 167 INDEX pid_idx (parent_id) … … 154 169 mysql_query($query) or die(mysql_error().'<br /><br />'. $query); 155 170 156 $query = "CREATE TABLE IF NOT EXISTS`".$TABLE_PREFIX."config` (171 $query = "CREATE TABLE `".$TABLE_PREFIX."config` ( 157 172 `max_thumbnail_size` int(11) NOT NULL default '0', 158 173 `max_display_size` int(11) NOT NULL default '0', … … 162 177 `admin_email` varchar(50) NOT NULL default '', 163 178 `date_format` varchar(64) NOT NULL default '', 164 `compression` int(11) NOT NULL default ' ',179 `compression` int(11) NOT NULL default '75', 165 180 `default_sortby` varchar(20) NOT NULL default '', 166 181 `default_sortdir` varchar(5) NOT NULL default '', 182 `album_sortby` varchar(20) NOT NULL default '', 183 `album_sortdir` varchar(5) NOT NULL default '', 184 `collection_sortby` varchar(20) NOT NULL default '', 185 `collection_sortdir` varchar(5) NOT NULL default '', 167 186 `gallery_name` varchar(255) NOT NULL default '', 168 187 `allow_dl` smallint(1) NOT NULL default '0', … … 170 189 `allow_print` smallint(1) NOT NULL default '1', 171 190 `truncate` int(11) NOT NULL default '12', 191 `square_thumbs` tinyint default 1, 172 192 `feed_num_entries` int(15) NOT NULL default '15', 173 193 `rss_thumbsize` int(11) NOT NULL default '400', 174 194 `feed_title` text NOT NULL, 175 195 `use_mod_rewrite` tinyint NOT NULL default '0', 196 `gallery_url` varchar(255) NOT NULL default '', 176 197 `comments_notify` tinyint NOT NULL default '1', 177 `feed_language` varchar(255) NOT NULL default 'en-us' 178 179 ) Type=MyISAM $default_charset"; 180 mysql_query($query) or die(mysql_error().'<br /><br />'. $query); 181 $query = "CREATE TABLE IF NOT EXISTS `".$TABLE_PREFIX."pictures` ( 198 `comments_moderate` tinyint NOT NULL default '0', 199 `feed_language` varchar(255) NOT NULL default 'en-us', 200 `theme_dir` varchar(128) NOT NULL default '', 201 `thumb_nav_range` int(11) NOT NULL default '0', 202 `enable_thumb_nav` tinyint default '0', 203 `allow_fullpic` tinyint default '1' 204 ) Type=MyISAM $default_charset"; 205 mysql_query($query) or die(mysql_error().'<br /><br />'. $query); 206 $query = "CREATE TABLE `".$TABLE_PREFIX."pictures` ( 182 207 `path` varchar(255) NOT NULL default '', 183 208 `parent_album` int(11) NOT NULL default '0', 184 209 `parent_collection` int(11) NOT NULL default '0', 185 210 `caption` mediumtext NOT NULL, 211 `description` text NOT NULL, 186 212 `id` int(11) NOT NULL auto_increment, 187 213 `date_modified` timestamp(14) NOT NULL, … … 200 226 mysql_query($query) or die(mysql_error().'<br /><br />'. $query); 201 227 202 $query = "CREATE TABLE IF NOT EXISTS`".$TABLE_PREFIX."comments` (228 $query = "CREATE TABLE `".$TABLE_PREFIX."comments` ( 203 229 `id` int(11) NOT NULL auto_increment, 204 230 `parent_id` int(11) NOT NULL default '0', … … 206 232 `email` varchar(64) NOT NULL default '', 207 233 `url` varchar(64) NOT NULL default '', 208 `date` timestamp(14)NOT NULL,234 `date` datetime NOT NULL, 209 235 `comment` longtext NOT NULL, 210 236 `ip` char(64), … … 216 242 mysql_query($query) or die(mysql_error().'<br /><br />'. $query); 217 243 244 &nbs
