Changeset 5040 for extensions/AMetaData/amd_install.class.inc.php
- Timestamp:
- Mar 4, 2010, 10:35:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/amd_install.class.inc.php
r4931 r5040 39 39 public function install() 40 40 { 41 global $user, $lang; 42 41 43 $tables_def=array( 42 44 "CREATE TABLE `".$this->tables['used_tags']."` ( … … 82 84 $tables_def = create_table_add_character_set($tables_def); 83 85 $result=$this->tablef->create_tables($tables_def); 86 unset($tables_def); 87 88 $tables_insert=array( 89 "INSERT INTO `".$this->tables['groups']."` VALUES(1, 0)", 90 "INSERT INTO `".$this->tables['groups_names']."` VALUES(1, '".$user['language']."', '".$lang['g003_default_group_name']."')", 91 "INSERT INTO `".$this->tables['selected_tags']."` VALUES 92 ('magic.Camera.Make', 0, 1), 93 ('magic.Camera.Model', 1, 1), 94 ('magic.ShotInfo.Lens', 2, 1), 95 ('magic.ShotInfo.Aperture', 3, 1), 96 ('magic.ShotInfo.Exposure', 4, 1), 97 ('magic.ShotInfo.ISO', 5, 1), 98 ('magic.ShotInfo.FocalLength', 6, 1), 99 ('magic.ShotInfo.FocalLengthIn35mm', 7, 1), 100 ('magic.ShotInfo.Flash.Fired', 8, 1)" 101 ); 102 foreach($tables_insert as $sql) 103 { 104 pwg_query($sql); 105 } 84 106 85 107 return($result);
Note: See TracChangeset
for help on using the changeset viewer.