32 img_filename varchar(255) NOT NULL, |
32 img_filename varchar(255) NOT NULL, |
33 img_time_upload int(12) NOT NULL DEFAULT 0, |
33 img_time_upload int(12) NOT NULL DEFAULT 0, |
34 img_time_mod int(12) NOT NULL DEFAULT 0, |
34 img_time_mod int(12) NOT NULL DEFAULT 0, |
35 PRIMARY KEY ( img_id ) |
35 PRIMARY KEY ( img_id ) |
36 );'); |
36 );'); |
|
37 |
37 if ( !$q ) |
38 if ( !$q ) |
38 $db->_die(); |
39 $db->_die(); |
|
40 |
|
41 $q = $db->sql_query('CREATE FULLTEXT INDEX '.table_prefix.'gal_idx ON '.table_prefix.'gallery(img_title, img_desc);'); |
39 |
42 |
40 setConfig('gallery_version', GALLERY_VERSION); |
43 setConfig('gallery_version', GALLERY_VERSION); |
41 } |
44 } |
42 |
45 |
43 require( ENANO_ROOT . '/plugins/gallery/functions.php' ); |
46 require( ENANO_ROOT . '/plugins/gallery/functions.php' ); |
44 require( ENANO_ROOT . '/plugins/gallery/nssetup.php' ); |
47 require( ENANO_ROOT . '/plugins/gallery/nssetup.php' ); |
45 require( ENANO_ROOT . '/plugins/gallery/viewimage.php' ); |
48 require( ENANO_ROOT . '/plugins/gallery/viewimage.php' ); |
46 require( ENANO_ROOT . '/plugins/gallery/browser.php' ); |
49 require( ENANO_ROOT . '/plugins/gallery/browser.php' ); |
47 require( ENANO_ROOT . '/plugins/gallery/upload.php' ); |
50 require( ENANO_ROOT . '/plugins/gallery/upload.php' ); |
48 require( ENANO_ROOT . '/plugins/gallery/fetcher.php' ); |
51 require( ENANO_ROOT . '/plugins/gallery/fetcher.php' ); |
|
52 require( ENANO_ROOT . '/plugins/gallery/search.php' ); |
49 |
53 |
50 ?> |
54 ?> |