mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:37:02 +02:00
updated the group handling + revised admin permissions
This commit is contained in:
@ -284,8 +284,6 @@ function assemble_search_url($term = '') {
|
||||
|
||||
parse_str($term, $a);
|
||||
|
||||
//print_r($a);
|
||||
|
||||
if(isset($a['search'])) { $term_value = $a['search']; }
|
||||
|
||||
if(isset($a['f'])) {
|
||||
@ -410,28 +408,27 @@ function fetch_url($url = '') {
|
||||
|
||||
|
||||
function fixup_date_condition($field = '', $date1 = 0, $date2 = 0) {
|
||||
$date = "";
|
||||
$date = "";
|
||||
|
||||
if($date1) {
|
||||
list($y,$m,$d) = explode("-", $date1);
|
||||
$date1 = mktime(0, 0, 0, $m, $d, $y);
|
||||
if($date1) {
|
||||
list($y,$m,$d) = explode("-", $date1);
|
||||
$date1 = mktime(0, 0, 0, $m, $d, $y);
|
||||
|
||||
if($date1 > 0) { $date .= "$field >= $date1 "; }
|
||||
if($date1 > 0) { $date .= "$field >= $date1 "; }
|
||||
}
|
||||
|
||||
if($date2) {
|
||||
list($y,$m,$d) = explode("-", $date2);
|
||||
$date2 = mktime(23, 59, 59, $m, $d, $y);
|
||||
|
||||
if($date2 > 0) {
|
||||
if($date) { $date .= " AND "; }
|
||||
$date .= "$field <= $date2 ";
|
||||
}
|
||||
}
|
||||
|
||||
if($date2) {
|
||||
list($y,$m,$d) = explode("-", $date2);
|
||||
$date2 = mktime(23, 59, 59, $m, $d, $y);
|
||||
|
||||
if($date2 > 0) {
|
||||
if($date) { $date .= " AND "; }
|
||||
$date .= "$field <= $date2 ";
|
||||
}
|
||||
}
|
||||
|
||||
//if($date) { $date .= " AND "; }
|
||||
|
||||
return $date;
|
||||
return $date;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user