Changeset 18239 for extensions
- Timestamp:
- Sep 25, 2012, 7:28:33 PM (12 years ago)
- Location:
- extensions/UserAdvManager/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/trunk/admin/UAM_admin.php
r17988 r18239 804 804 $deltadays = floor($deltasecs / 86400);// Convert result from seconds to days 805 805 806 if (isset($conf_UAM[15]) and $conf_UAM[15]=='true' and $conf_UAM[16] <> '')806 if (isset($conf_UAM[15]) and $conf_UAM[15]=='true' and !empty($conf_UAM[16])) 807 807 { 808 808 if ($deltadays <= ($conf_UAM[16]/2)) -
extensions/UserAdvManager/trunk/include/functions.inc.php
r18235 r18239 1007 1007 } 1008 1008 1009 if (isset($conf_UAM_ConfirmMail[5]) and $conf_UAM_ConfirmMail[5] <> '')1009 if (isset($conf_UAM_ConfirmMail[5]) and !empty($conf_UAM_ConfirmMail[5])) 1010 1010 { 1011 1011 // Management of Extension flags ([username], [mygallery], [myurl]) … … 1033 1033 else 1034 1034 { 1035 if (isset($conf_UAM_ConfirmMail[6]) and $conf_UAM_ConfirmMail[6] <> '')1035 if (isset($conf_UAM_ConfirmMail[6]) and !empty($conf_UAM_ConfirmMail[6])) 1036 1036 { 1037 1037 // Management of Extension flags ([username], [mygallery], [myurl]) … … 1139 1139 { 1140 1140 case 1: // Confirmation email on user registration - Without information email (already managed by Piwigo) 1141 if (isset($conf_UAM[41]) and $conf_UAM[41] <> '')1141 if (isset($conf_UAM[41]) and !empty($conf_UAM[41])) 1142 1142 { 1143 1143 // Management of Extension flags ([username], [mygallery]) … … 1158 1158 1159 1159 case 2: // Confirmation email on user profile update - With information email if modification done in user profile 1160 if (isset($conf_UAM[41]) and $conf_UAM[41] <> '')1160 if (isset($conf_UAM[41]) and !empty($conf_UAM[41])) 1161 1161 { 1162 1162 // Management of Extension flags ([username], [mygallery]) … … 1174 1174 } 1175 1175 1176 $password = $password <> ''? $password : l10n('UAM_empty_pwd');1177 1178 if (isset($conf_UAM[8]) and $conf_UAM[8] <> '')1176 $password = !empty($password) ? $password : l10n('UAM_empty_pwd'); 1177 1178 if (isset($conf_UAM[8]) and !empty($conf_UAM[8])) 1179 1179 { 1180 1180 // Management of Extension flags ([username], [mygallery], [myurl]) … … 1220 1220 1221 1221 case 3: // Only information email send to user if checked 1222 if (isset($conf_UAM[43]) and $conf_UAM[43] <> '')1222 if (isset($conf_UAM[43]) and !empty($conf_UAM[43])) 1223 1223 { 1224 1224 // Management of Extension flags ([username], [mygallery]) … … 1236 1236 } 1237 1237 1238 $password = $password <> ''? $password : l10n('UAM_no_update_pwd');1239 1240 if (isset($conf_UAM[8]) and $conf_UAM[8] <> '')1238 $password = !empty($password) ? $password : l10n('UAM_no_update_pwd'); 1239 1240 if (isset($conf_UAM[8]) and !empty($conf_UAM[8])) 1241 1241 { 1242 1242 // Management of Extension flags ([username], [mygallery], [myurl]) … … 1290 1290 ); 1291 1291 1292 if (isset($conf_UAM[9]) and $conf_UAM[9] <> '') // Add personal text in confirmation email ?1292 if (isset($conf_UAM[9]) and !empty($conf_UAM[9])) // Add personal text in confirmation email ? 1293 1293 { 1294 1294 // Management of Extension flags ([username], [mygallery], [myurl], [Kdays]) … … 1448 1448 { 1449 1449 case 1: //Generating email content for remind with a new key 1450 if (isset($conf_UAM[42]) and $conf_UAM[42] <> '')1450 if (isset($conf_UAM[42]) and !empty($conf_UAM[42])) 1451 1451 { 1452 1452 // Management of Extension flags ([username], [mygallery]) … … 1464 1464 } 1465 1465 1466 if (isset($conf_UAM_ConfirmMail[2]) and $conf_UAM_ConfirmMail[2] <> ''and isset($conf_UAM_ConfirmMail[3]) and $conf_UAM_ConfirmMail[3] == 'true' and $confirm)1466 if (isset($conf_UAM_ConfirmMail[2]) and !empty($conf_UAM_ConfirmMail[2]) and isset($conf_UAM_ConfirmMail[3]) and $conf_UAM_ConfirmMail[3] == 'true' and $confirm) 1467 1467 { 1468 1468 // Management of Extension flags ([username], [mygallery], [myurl], [Kdays]) … … 1506 1506 1507 1507 case 2: //Generating email content for remind without a new key 1508 if (isset($conf_UAM[42]) and $conf_UAM[42] <> '')1508 if (isset($conf_UAM[42]) and !empty($conf_UAM[42])) 1509 1509 { 1510 1510 // Management of Extension flags ([username], [mygallery]) … … 1522 1522 } 1523 1523 1524 if (isset($conf_UAM_ConfirmMail[4]) and $conf_UAM_ConfirmMail[4] <> ''and isset($conf_UAM_ConfirmMail[3]) and $conf_UAM_ConfirmMail[3] == 'true' and !$confirm)1524 if (isset($conf_UAM_ConfirmMail[4]) and !empty($conf_UAM_ConfirmMail[4]) and isset($conf_UAM_ConfirmMail[3]) and $conf_UAM_ConfirmMail[3] == 'true' and !$confirm) 1525 1525 { 1526 1526 // Management of Extension flags ([username], [mygallery], [myurl], [Kdays]) … … 1600 1600 load_language('plugin.lang', UAM_PATH); 1601 1601 1602 if (isset($conf_UAM[45]) and $conf_UAM[45] <> '')1602 if (isset($conf_UAM[45]) and !empty($conf_UAM[45])) 1603 1603 { 1604 1604 // Management of Extension flags ([username], [mygallery]) … … 1616 1616 } 1617 1617 1618 if (isset($conf_UAM[17]) and $conf_UAM[17] <> ''and isset($conf_UAM[15]) and $conf_UAM[15] == 'true')1618 if (isset($conf_UAM[17]) and !empty($conf_UAM[17]) and isset($conf_UAM[15]) and $conf_UAM[15] == 'true') 1619 1619 { 1620 1620 // Management of Extension flags ([username], [mygallery], [myurl], [days]) … … 1696 1696 } 1697 1697 1698 if (isset($conf_UAM[44]) and $conf_UAM[44] <> '')1698 if (isset($conf_UAM[44]) and !empty($conf_UAM[44])) 1699 1699 { 1700 1700 // Management of Extension flags ([username], [mygallery]) … … 1712 1712 } 1713 1713 1714 if (isset($conf_UAM[24]) and $conf_UAM[24] <> '')1714 if (isset($conf_UAM[24]) and !empty($conf_UAM[24])) 1715 1715 { 1716 1716 // Management of Extension flags ([username], [mygallery], [myurl]) … … 1810 1810 $result = pwg_db_fetch_assoc(pwg_query($query)); 1811 1811 1812 if (isset($conf_UAM[46]) and $conf_UAM[46] <> '')1812 if (isset($conf_UAM[46]) and !empty($conf_UAM[46])) 1813 1813 { 1814 1814 // Management of Extension flags ([username], [mygallery]) … … 1826 1826 } 1827 1827 1828 if (isset($conf_UAM[27]) and $conf_UAM[27] <> '')1828 if (isset($conf_UAM[27]) and !empty($conf_UAM[27])) 1829 1829 { 1830 1830 // Management of Extension flags ([username], [mygallery], [myurl]) … … 2514 2514 $conf_UAM = unserialize($conf['UserAdvManager']); 2515 2515 2516 if (isset($login) and isset($conf_UAM[6]) and $conf_UAM[6] <> '')2516 if (isset($login) and isset($conf_UAM[6]) and !empty($conf_UAM[6])) 2517 2517 { 2518 2518 $conf_CharExclusion = preg_split("/,/",$conf_UAM[6]); … … 2573 2573 $conf_UAM = unserialize($conf['UserAdvManager']); 2574 2574 2575 if (isset($email) and isset($conf_UAM[11]) and $conf_UAM[11] <> '')2575 if (isset($email) and isset($conf_UAM[11]) and !empty($conf_UAM[11])) 2576 2576 { 2577 2577 $conf_MailExclusion = preg_split("/[\s,]+/",$conf_UAM[11]);
Note: See TracChangeset
for help on using the changeset viewer.