equal
deleted
inserted
replaced
38 if ( !$q ) |
38 if ( !$q ) |
39 $db->_die(); |
39 $db->_die(); |
40 |
40 |
41 $q = $db->sql_query('CREATE FULLTEXT INDEX '.table_prefix.'gal_idx ON '.table_prefix.'gallery(img_title, img_desc);'); |
41 $q = $db->sql_query('CREATE FULLTEXT INDEX '.table_prefix.'gal_idx ON '.table_prefix.'gallery(img_title, img_desc);'); |
42 |
42 |
|
43 if ( !$q ) |
|
44 $db->_die(); |
|
45 |
|
46 $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());'); |
|
47 |
|
48 if ( !$q ) |
|
49 $db->_die(); |
|
50 |
43 setConfig('gallery_version', GALLERY_VERSION); |
51 setConfig('gallery_version', GALLERY_VERSION); |
44 } |
52 } |
45 |
53 |
46 require( ENANO_ROOT . '/plugins/gallery/functions.php' ); |
54 require( ENANO_ROOT . '/plugins/gallery/functions.php' ); |
47 require( ENANO_ROOT . '/plugins/gallery/nssetup.php' ); |
55 require( ENANO_ROOT . '/plugins/gallery/nssetup.php' ); |