Added sample image (Snapr logo) to the gallery on a clean installation
authorDan
Thu, 26 Jul 2007 14:43:45 -0400
changeset 8 8490ce0cdd8c
parent 7 44a94a3214b8
child 9 ebd7003e73c6
Added sample image (Snapr logo) to the gallery on a clean installation
cache/snapr-logo.png-preview.jpg
cache/snapr-logo.png-thumb.jpg
files/snapr-logo.png
plugins/Gallery.php
Binary file cache/snapr-logo.png-preview.jpg has changed
Binary file cache/snapr-logo.png-thumb.jpg has changed
Binary file files/snapr-logo.png has changed
--- a/plugins/Gallery.php	Thu Jul 26 12:41:49 2007 -0400
+++ b/plugins/Gallery.php	Thu Jul 26 14:43:45 2007 -0400
@@ -40,6 +40,14 @@
   
   $q = $db->sql_query('CREATE FULLTEXT INDEX '.table_prefix.'gal_idx ON '.table_prefix.'gallery(img_title, img_desc);');
   
+  if ( !$q )
+    $db->_die();
+  
+  $q = $db->sql_query('INSERT INTO '.table_prefix.'gallery(img_title,img_desc,img_filename,img_time_upload,img_time_mod) VALUES(\'Welcome to Snapr!\', \'You\'\'re past the hard part - Snapr is set up and working on your server. What you\'\'re looking at now is what most users will see when they look at an image in your gallery. The next step is to [[Special:GalleryUpload|upload some images]]. After that, make your gallery publicly accessible by adding a link to the [[Special:Gallery|browser]], if you haven\'\'t already done so. See the README file included with Snapr for more information.\', \'snapr-logo.png\', UNIX_TIMESTAMP(), UNIX_TIMESTAMP());');
+  
+  if ( !$q )
+    $db->_die();
+  
   setConfig('gallery_version', GALLERY_VERSION);
 }