Changeset 4396 for extensions/lmt/lmt_root.class.inc.php
- Timestamp:
- Nov 29, 2009, 11:21:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/lmt/lmt_root.class.inc.php
r3396 r4396 4 4 Author : Grum 5 5 email : grum@piwigo.org 6 website : http://photos.grum. dnsalias.com6 website : http://photos.grum.fr 7 7 8 8 << May the Little SpaceFrog be with you ! >> … … 12 12 LMT_root : common classe for admin and public classes 13 13 14 --------------------------------------------------------------------------- */ 14 --------------------------------------------------------------------------- */ 15 15 include_once(PHPWG_PLUGINS_PATH.'grum_plugins_classes-2/common_plugin.class.inc.php'); 16 16 include_once(PHPWG_PLUGINS_PATH.'grum_plugins_classes-2/css.class.inc.php'); … … 84 84 85 85 /* 86 intialize default values 86 intialize default values 87 87 */ 88 88 public function init_config() … … 93 93 'lmt_list_maxheight' => '650', 94 94 'lmt_list_maxitems' => '0', /* limit number of item displayed ; 0 : no limit */ 95 'lmt_licence_default' => 'BY', 96 'lmt_licence_default_author' => 0, 95 'lmt_licence_default' => 'BY', 96 'lmt_licence_default_author' => 0, 97 97 'lmt_licence_activated' => 'n', 98 98 'lmt_licence_visible' => 'n', /* y:always visible, n:only if needed */ 99 99 'lmt_licence_logo' => '80x15', /* 80x15, 88x31, text */ 100 'lmt_warning_visible' => 'y', /* y: display a text at the bottom of each page */ 100 'lmt_warning_visible' => 'y', /* y: display a text at the bottom of each page */ 101 101 'lmt_warning_texts' => array(), /* text displayed - multi lang */ 102 'lmt_redirect_activated' => 'y', /* y: the text is an url to a warning page */ 103 'lmt_redirect_url-by' => array(), 104 'lmt_redirect_url-by-nd' => array(), 105 'lmt_redirect_url-by-nc' => array(), 106 'lmt_redirect_url-by-nc-nd' => array(), 107 'lmt_redirect_url-by-nc-sa' => array(), 108 'lmt_redirect_url-by-sa' => array(), 109 'lmt_redirect_url-cright' => array(), 110 'lmt_redirect_url-cleft' => array(), 102 'lmt_redirect_activated' => 'y', /* y: the text is an url to a warning page */ 103 'lmt_redirect_open_target' => 'n', /* y: url are openned in a new page/tab */ 104 'lmt_redirect_url-by' => array(), 105 'lmt_redirect_url-by-nd' => array(), 106 'lmt_redirect_url-by-nc' => array(), 107 'lmt_redirect_url-by-nc-nd' => array(), 108 'lmt_redirect_url-by-nc-sa' => array(), 109 'lmt_redirect_url-by-sa' => array(), 110 'lmt_redirect_url-cright' => array(), 111 'lmt_redirect_url-cleft' => array(), 111 112 ); 112 113 … … 164 165 165 166 .lmt { 166 text-align:justify; 167 text-align:justify; 167 168 } 168 169 … … 176 177 #ullist li { 177 178 width:300px; 178 display:block; 179 display:block; 179 180 float:left; 180 181 text-align:left; … … 229 230 color:#000000; 230 231 top:0px; 231 left:-450px; 232 left:-450px; 232 233 padding:2px; 233 234 text-align:justify; … … 239 240 240 241 /* 241 generate the css code 242 generate the css code 242 243 */ 243 244 protected function generate_CSS2() … … 259 260 #theImage img.logo80x15, #theImage img.logo88x31 { 260 261 border:0px none; 262 padding:0px; 261 263 } 262 264 … … 287 289 "aut_text2" => "" 288 290 ); 289 $sql="SELECT lmti.licence_type, lmta.text1, lmta.text2 291 $sql="SELECT lmti.licence_type, lmta.text1, lmta.text2 290 292 FROM ".$this->tables['images']." lmti 291 293 LEFT OUTER JOIN ".$this->tables['licence_author']." lmta ON lmti.author_id = lmta.id … … 314 316 ); 315 317 316 $sql="SELECT * FROM ".$this->tables['licence_author']." 318 $sql="SELECT * FROM ".$this->tables['licence_author']." 317 319 WHERE id = '".$this->my_config["lmt_licence_default_author"]."'"; 318 320 $result=pwg_query($sql); 319 if($result) 321 if($result) 320 322 { 321 323 while($row=mysql_fetch_array($result)) … … 327 329 } 328 330 329 return($return); 331 return($return); 330 332 } 331 333 … … 348 350 } 349 351 return($returned); 350 } 351 return(false); 352 } 353 return(false); 352 354 } 353 355
Note: See TracChangeset
for help on using the changeset viewer.