mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Add more fields
This commit is contained in:
parent
e997fc7bbc
commit
c336e93ad9
2 changed files with 41 additions and 19 deletions
|
@ -276,4 +276,26 @@ class Scheduler_commands extends ObjectYPT {
|
||||||
return $rows;
|
return $rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function getAllActiveOrToRepeat() {
|
||||||
|
global $global;
|
||||||
|
if (!static::isTableInstalled()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
$sql = "SELECT * FROM " . static::getTableName() . " WHERE status='" . (self::$statusActive) . "' OR status='" . (self::$statusRepeat) . "' ";
|
||||||
|
|
||||||
|
$sql .= self::getSqlFromPost();
|
||||||
|
$res = sqlDAL::readSql($sql);
|
||||||
|
$fullData = sqlDAL::fetchAllAssoc($res);
|
||||||
|
sqlDAL::close($res);
|
||||||
|
$rows = array();
|
||||||
|
if ($res != false) {
|
||||||
|
foreach ($fullData as $row) {
|
||||||
|
$rows[] = $row;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
die($sql . '\nError : (' . $global['mysqli']->errno . ') ' . $global['mysqli']->error);
|
||||||
|
}
|
||||||
|
return $rows;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ if(!AVideoPlugin::isEnabledByName('Scheduler')){
|
||||||
return die('Scheduler is disabled');
|
return die('Scheduler is disabled');
|
||||||
}
|
}
|
||||||
|
|
||||||
$rowActive = Scheduler_commands::getAllActive();
|
$rowActive = Scheduler_commands::getAllActiveOrToRepeat();
|
||||||
$total = count($rowActive);
|
$total = count($rowActive);
|
||||||
_log("There are {$total} active requests");
|
_log("There are {$total} active requests");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue