"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/inc/tasks/promotions.php" between
mybb_1821.zip and mybb_1822.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

promotions.php  (mybb_1821):promotions.php  (mybb_1822)
skipping to change at line 119 skipping to change at line 119
break; break;
case "months": case "months":
$timeonline = $promotion['online']*60*60* 24*30; $timeonline = $promotion['online']*60*60* 24*30;
break; break;
case "years": case "years":
$timeonline = $promotion['online']*60*60* 24*365; $timeonline = $promotion['online']*60*60* 24*365;
break; break;
default: default:
$timeonline = $promotion['online']*60*60* 24; $timeonline = $promotion['online']*60*60* 24;
} }
$sql_where .= "{$and}timeonline <= '".(TIME_NOW-$timeonli ne)."'"; $sql_where .= "{$and}timeonline > '".$timeonline."'";
$and = " AND "; $and = " AND ";
} }
if(!empty($promotion['originalusergroup']) && $promotion['origina lusergroup'] != '*') if(!empty($promotion['originalusergroup']) && $promotion['origina lusergroup'] != '*')
{ {
$sql_where .= "{$and}usergroup IN ({$promotion['originalu sergroup']})"; $sql_where .= "{$and}usergroup IN ({$promotion['originalu sergroup']})";
$and = " AND "; $and = " AND ";
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)