Changeset 10144
- Timestamp:
- Apr 7, 2011, 10:49:05 PM (14 years ago)
- Location:
- extensions/UserAdvManager/trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/trunk/admin/template/ghosttracker.tpl
r9924 r10144 1 1 {combine_script id='jquery' path='themes/default/js/jquery.min.js'} 2 {combine_script id='jquery.cluetip' require='jquery' path='themes/default/js/plugins/jquery.cluetip. packed.js'}2 {combine_script id='jquery.cluetip' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'} 3 3 {combine_script id='jquery.tablesorter' require='jquery' path=$UAM_PATH|@cat:'admin/template/js/jquery.tablesorter.min.js'} 4 4 {combine_script id='jquery.tablesorter.pager' require='jquery' path=$UAM_PATH|@cat:'admin/template/js/jquery.tablesorter.pager.js'} -
extensions/UserAdvManager/trunk/admin/template/global.tpl
r9924 r10144 1 1 {combine_script id='jquery' path='themes/default/js/jquery.min.js'} 2 {combine_script id='jquery.cluetip' require='jquery' path='themes/default/js/plugins/jquery.cluetip. packed.js'}2 {combine_script id='jquery.cluetip' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'} 3 3 4 4 {combine_css path= $UAM_PATH|@cat:'admin/template/uam.css'} … … 35 35 if (typeof(headerId)=='string') 36 36 {ldelim} 37 if ( headerId.length>1)37 if (headerId.length > 1) 38 38 blockToggleDisplay(headerId, contentId) ; 39 39 document.getElementById("nb_para").value =headerId ; -
extensions/UserAdvManager/trunk/admin/template/uam.css
r8065 r10144 28 28 } 29 29 30 legend.cluetip 31 { 32 font-weight:bold; 33 } 34 30 /* Bloc expand-collapse instructions */ 35 31 .instructionBlock 36 32 { … … 40 36 } 41 37 42 /* Bloc expand-collapse instructions */43 38 .instructionBlockHeaderCollapsed, .instructionBlockHeaderExpanded 44 39 { -
extensions/UserAdvManager/trunk/admin/template/userlist.tpl
r9924 r10144 1 1 {combine_script id='jquery' path='themes/default/js/jquery.min.js'} 2 {combine_script id='jquery.cluetip' require='jquery' path='themes/default/js/plugins/jquery.cluetip. packed.js'}2 {combine_script id='jquery.cluetip' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'} 3 3 {combine_script id='jquery.tablesorter' require='jquery' path=$UAM_PATH|@cat:'admin/template/js/jquery.tablesorter.min.js'} 4 4 {combine_script id='jquery.tablesorter.pager' require='jquery' path=$UAM_PATH|@cat:'admin/template/js/jquery.tablesorter.pager.js'} -
extensions/UserAdvManager/trunk/admin/template/usermanager.tpl
r9924 r10144 1 1 {combine_script id='jquery' path='themes/default/js/jquery.min.js'} 2 {combine_script id='jquery.cluetip' require='jquery' path='themes/default/js/plugins/jquery.cluetip. packed.js'}2 {combine_script id='jquery.cluetip' require='jquery' path='themes/default/js/plugins/jquery.cluetip.js'} 3 3 {combine_script id='jquery.tablesorter' require='jquery' path=$UAM_PATH|@cat:'admin/template/js/jquery.tablesorter.min.js'} 4 4 {combine_script id='jquery.tablesorter.pager' require='jquery' path=$UAM_PATH|@cat:'admin/template/js/jquery.tablesorter.pager.js'} -
extensions/UserAdvManager/trunk/changelog.txt.php
r9908 r10144 234 234 Bug 2203 fixed - [username] special flag is not supported in lost password email customization 235 235 236 -- 2.20.1 : Bug 2254 fixed - Plugin installation crashes when installing from scratch 237 Bug 2255 fixed - Error in jQuery path 238 236 239 */ 237 240 ?> -
extensions/UserAdvManager/trunk/include/functions.inc.php
r9908 r10144 2 2 include_once (UAM_PATH.'include/constants.php'); 3 3 load_language('plugin.lang', UAM_PATH); 4 4 5 5 6 /** … … 25 26 return $menu; 26 27 } 28 27 29 28 30 /** … … 78 80 } 79 81 82 80 83 /** 81 84 * Triggered on register_user … … 132 135 } 133 136 137 134 138 /** 135 139 * Triggered on delete_user … … 146 150 DeleteRedir($user_id); 147 151 } 152 148 153 149 154 /** … … 208 213 } 209 214 } 215 210 216 211 217 /** … … 309 315 } 310 316 317 311 318 /** 312 319 * Triggered on login_success … … 548 555 } 549 556 557 550 558 /** 551 559 * Triggered on UAM_LoginTasks() … … 768 776 return $comment_action; 769 777 } 778 770 779 771 780 /** … … 916 925 )); 917 926 918 // **********************919 // Email sending debugger920 // This is only to trace921 // the send of emails for922 // debugging923 // **********************924 //$content = (isset($infos1) ? $infos1_perso.l10n_args($infos1)."\n\n" : "").(isset($infos2) ? $infos2_perso.l10n_args($infos2)."\n\n" : "").get_absolute_root_url();925 //MailLog($email,$subject,$content,$language);926 // **********************927 928 927 // Switching back to default language 929 928 switch_lang_back(); 930 929 } 930 931 931 932 932 /** … … 1034 1034 )); 1035 1035 1036 // **********************1037 // Email sending debugger1038 // This is only to trace1039 // the send of emails for1040 // debugging1041 // **********************1042 //$content = ($infos1."\n\n").(isset($infos2) ? l10n_args($infos2)."\n\n" : "").get_absolute_root_url();1043 //MailLog($email,$subject,$content,$language);1044 // **********************1045 1046 1036 // Switching back to default language 1047 1037 switch_lang_back(); 1048 1038 } 1039 1049 1040 1050 1041 /** … … 1107 1098 )); 1108 1099 1109 // **********************1110 // Email sending debugger1111 // This is only to trace1112 // the send of emails for1113 // debugging1114 // **********************1115 //$content = $infos1.get_absolute_root_url();1116 //MailLog($email,$subject,$content,$language);1117 // **********************1118 1119 1100 // Switching back to default language 1120 1101 switch_lang_back(); 1121 1102 } 1103 1122 1104 1123 1105 /** … … 1199 1181 )); 1200 1182 1201 // **********************1202 // Email sending debugger1203 // This is only to trace1204 // the send of emails for1205 // debugging1206 // **********************1207 //$content = ($custom_txt.l10n_args($infos1)."\n\n".l10n_args($infos2)."\n\n").get_absolute_root_url();1208 //MailLog($email,$subject,$content,$language);1209 // **********************1210 1211 1183 // Switching back to default language 1212 1184 switch_lang_back(); 1213 1185 } 1186 1214 1187 1215 1188 /** … … 1291 1264 )); 1292 1265 1293 // **********************1294 // Email sending debugger1295 // This is only to trace1296 // the send of emails for1297 // debugging1298 // **********************1299 //$email = $result['mail_address'];1300 //$content = (l10n_args($infos)."\n\n".$custom_txt);1301 //MailLog($email,$subject,$content,$language);1302 // **********************1303 1304 1266 // Switching back to default language 1305 1267 switch_lang_back(); 1306 1268 } 1269 1307 1270 1308 1271 /** … … 1328 1291 } 1329 1292 } 1293 1330 1294 1331 1295 /** … … 1402 1366 } 1403 1367 1368 1404 1369 /** 1405 1370 * Function called from main.inc.php to set group to new users if manual validation is set … … 1448 1413 } 1449 1414 1415 1450 1416 /** 1451 1417 * Function called from UAM_admin.php to reset validation key … … 1484 1450 } 1485 1451 1452 1486 1453 /** 1487 1454 * Function called from functions.inc.php to reset last visit date after sending a reminder … … 1530 1497 pwg_query($query); 1531 1498 } 1499 1532 1500 1533 1501 /** … … 1560 1528 pwg_query($query); 1561 1529 } 1530 1562 1531 1563 1532 /** … … 1737 1706 } 1738 1707 1708 1739 1709 /** 1740 1710 * Function called from UAM_admin.php to force users validation by admin … … 1842 1812 } 1843 1813 1814 1844 1815 /** 1845 1816 * Function called from main.inc.php - Check if username matches forbidden caracters … … 1873 1844 } 1874 1845 } 1846 1875 1847 1876 1848 /** … … 1906 1878 } 1907 1879 } 1880 1908 1881 1909 1882 /** … … 2002 1975 } 2003 1976 1977 2004 1978 /** 2005 1979 * Function called from functions.inc.php - Get all users who haven't validate their registration in configured time … … 2038 2012 return $users; 2039 2013 } 2014 2040 2015 2041 2016 /** … … 2167 2142 } 2168 2143 2144 2169 2145 /** 2170 2146 * Function called from UAM_admin.php - to determine who is expired or not and giving a different display color … … 2299 2275 } 2300 2276 2277 2301 2278 /** 2302 2279 * Function called from maintain.inc.php - to check if database upgrade is needed … … 2313 2290 } 2314 2291 2315 // Email sending debugger function2316 function MailLog($to, $subject, $content, $language)2317 {2318 $fo=fopen (UAM_PATH.'admin/maillog.txt','a') ;2319 fwrite($fo,"======================\n") ;2320 fwrite($fo,'le ' . date('D, d M Y H:i:s') . "\r\n");2321 fwrite($fo,$to . "\n" . $subject . "\r\n") ;2322 fwrite($fo, "\n" . $content . "\r\n") ;2323 fwrite($fo, 'Langue : '."\n" . $language . "\r\n") ;2324 fclose($fo) ;2325 //return mail ($to,$subject) ;2326 }2327 2292 2328 2293 /** … … 2379 2344 2380 2345 2346 /** 2347 * Delete obsolete files on plugin upgrade 2348 * Obsolete files are listed in file obsolete.list 2349 * 2350 */ 2381 2351 function clean_obsolete_files() 2382 2352 { … … 2397 2367 } 2398 2368 2369 2399 2370 /** 2400 2371 * UAM_check_profile - Thx to LucMorizur … … 2429 2400 return $v; 2430 2401 } 2402 2403 2404 /** 2405 * Useful for debugging - 4 vars can be set 2406 * Output result to log.txt file 2407 * 2408 */ 2409 function UAMLog($var1, $var2, $var3, $var4) 2410 { 2411 $fo=fopen (UAM_PATH.'log.txt','a') ; 2412 fwrite($fo,"======================\n") ; 2413 fwrite($fo,'le ' . date('D, d M Y H:i:s') . "\r\n"); 2414 fwrite($fo,$var1 ."\r\n") ; 2415 fwrite($fo,$var2 ."\r\n") ; 2416 fwrite($fo,$var3 ."\r\n") ; 2417 fwrite($fo,$var4 ."\r\n") ; 2418 fclose($fo) ; 2419 } 2431 2420 ?> -
extensions/UserAdvManager/trunk/include/upgradedb.inc.php
r9908 r10144 19 19 // | Upgrading database from old plugin versions | 20 20 // +----------------------------------------------------------+ 21 22 23 /* *************************************** */ 24 /* Update plugin version in conf table */ 25 /* Used everytime a new version is updated */ 26 /* even if no database upgrade is needed */ 27 /* *************************************** */ 28 function UAM_version_update() 29 { 30 // Get current plugin version 31 $plugin = PluginInfos(UAM_PATH); 32 $version = $plugin['version']; 33 34 // Update plugin version 35 $query = ' 36 UPDATE '.CONFIG_TABLE.' 37 SET value="'.$version.'" 38 WHERE param="UserAdvManager_Version" 39 LIMIT 1 40 ;'; 41 42 pwg_query($query); 43 } 44 21 45 22 46 /* upgrade from branch 2.10 to 2.11 */ … … 153 177 } 154 178 179 155 180 /* upgrade from branch 2.14 to 2.15 */ 156 181 /* ******************************** */ … … 202 227 upgrade_2153_2154(); 203 228 } 229 204 230 205 231 /* upgrade from 2.15.3 to 2.15.4 */ … … 263 289 } 264 290 291 265 292 /* upgrade from 2.15.x to 2.16.0 */ 266 293 /* ***************************** */ … … 316 343 global $conf; 317 344 318 $uam_new_version = "2.20.0";319 320 345 // Upgrading options 321 346 $query = ' … … 348 373 pwg_query($query); 349 374 350 // Update plugin version 351 $query = ' 352 UPDATE '.CONFIG_TABLE.' 353 SET value="'.$uam_new_version.'" 354 WHERE param="UserAdvManager_Version" 355 LIMIT 1 356 ;'; 357 358 pwg_query($query); 359 360 // Create new UAM entry in plugins table 375 // Create new UAM entry in plugins table 376 $uam_new_version = "2.20.0"; 377 361 378 $query = ' 362 379 INSERT INTO '.PLUGINS_TABLE.' (id, state, version) -
extensions/UserAdvManager/trunk/main.inc.php
r10018 r10144 2 2 /* 3 3 Plugin Name: UserAdvManager 4 Version: 2.20. 04 Version: 2.20.1 5 5 Description: Renforcer la gestion des utilisateurs - Enforce users management 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=216 -
extensions/UserAdvManager/trunk/maintain.inc.php
r9908 r10144 238 238 /* Check for upgrade from 2.16 to 2.20 */ 239 239 /* *********************************** */ 240 $query = ' 241 SELECT value 242 FROM '.CONFIG_TABLE.' 243 WHERE param = "UserAdvManager_Version" 244 ;'; 245 246 $data = pwg_db_fetch_assoc(pwg_query($query)); 247 248 if ($data['value'] != '2.20.0') 240 if (isset($conf['UserAdvManager_Version']) and $conf['UserAdvManager_Version'] != '2.16.0') 249 241 { 250 242 /* upgrade from branch 2.16 to 2.20 */ … … 253 245 } 254 246 255 load_conf_from_db('param like \'UserAdvManager\\_%\''); 247 UAM_version_update(); 248 249 load_conf_from_db('param like \'UserAdvManager\\_%\''); 256 250 } 257 251
Note: See TracChangeset
for help on using the changeset viewer.