This is a small script to fix/update the movie size in gallery 2 project.
For security reason attached PHP files has .txt extension added. Please remove that before uploading to your server. OR, you can download the ZIPPED file 'gallerytools-v1.01.zip' and unzip them using any archiving utility like winzip/winrar/7zip.
Please note that, each time you have to clear the database cache after you run this script to update the movie size.
Please set the cofiguration values before using this script.
Both of the files has config variables.
g2_fixsize.php has following variables that needs to be set :
/** * Configuration * ============================== * Set your user name and password for current page. * * Also update database information in the library file (g2_localibrary.php). */ $USER_NAME = "Y0urUserName"; // User name to access this page functionality $USER_PASSWORD = "pa88w0rd"; // Password for this username $MOVIE_MIME_TYPE = "video/x-flv"; // set the mime type of the movie - FLV movie mime time is 'video/x-flv' $FLASH_MOVIE_WIDTH = 600; // Default width to be set $FLASH_MOVIE_HEIGHT = 400; // Default height to be set /* TABLE NAMES - Case Sensitive */ $DATA_ITEM_TABLE = "g2_DataItem"; // Please replace with your gallery data-item table name (with the prefix if used) $MOVIE_ITEM_TABLE = "g2_MovieItem"; // Please replace with your gallery movie-item table name (with the prefix if used)
g2_fixsize.php has following variables that needs to be set (database related) :
/** * Database Config * ----------------------------- * Please create a new user with only SELECT and UPDATE permission. (recommended but not necessary) * Set following values. */ $DATABASE_NAME = "userid_databasename"; // Name of your gallery2 database $DATABASE_USER = "userid_username"; // Username of the database user who has access to the database $DATABASE_PASS = "userdbpassword"; // Password for the above username $DATABASE_HOST = "localhost"; // Host of database (usually it's `localhost`)
Free to use for any purposes.