version 1.1, 2007/11/02 20:55:00
|
version 1.1.1.1.2.1, 2007/11/13 07:36:19
|
Line 24
|
Line 24
|
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
# SUCH DAMAGE. |
# SUCH DAMAGE. |
# |
# |
|
# $Paefchen$ |
# $MCom: portstools/tinderbox/webui/module/moduleTinderd.php,v 1.9 2007/10/13 02:28:48 ade Exp $ |
# $MCom: portstools/tinderbox/webui/module/moduleTinderd.php,v 1.9 2007/10/13 02:28:48 ade Exp $ |
# |
# |
|
|
require_once 'module/module.php'; |
|
require_once 'module/moduleBuilds.php'; |
|
require_once 'module/moduleUsers.php'; |
|
|
|
class moduleTinderd extends module { |
class moduleTinderd extends module { |
|
private $moduleBuilds = null; |
|
private $moduleUsers = null; |
|
|
function moduleTinderd() { | public function __construct() { |
$this->module(); | parent::__construct(); |
$this->moduleBuilds = new moduleBuilds(); | $this->moduleBuilds = new moduleBuilds; |
$this->moduleUsers = new moduleUsers(); | $this->moduleUsers = new moduleUsers; |
} |
} |
|
|
function checkQueueEntryAccess( $entry, $mode ) { | public function checkQueueEntryAccess( $entry, $mode ) { |
|
|
if( $this->moduleUsers->checkWwwAdmin() ) { |
if( $this->moduleUsers->checkWwwAdmin() ) { |
return true; |
return true; |
Line 86 class moduleTinderd extends module {
|
Line 85 class moduleTinderd extends module {
|
|
|
} |
} |
|
|
function create_prio_array( $entry ) { | public function create_prio_array( $entry ) { |
if( $this->checkQueueEntryAccess( $entry, 'priolower5' ) ) { |
if( $this->checkQueueEntryAccess( $entry, 'priolower5' ) ) { |
$i = 1; |
$i = 1; |
} else { |
} else { |
Line 103 class moduleTinderd extends module {
|
Line 102 class moduleTinderd extends module {
|
return $prio; |
return $prio; |
} |
} |
|
|
function list_tinderd_queue( $build_id ) { | public function list_tinderd_queue( $build_id ) { |
|
|
if( !$this->moduleUsers->is_logged_in() ) { |
if( !$this->moduleUsers->is_logged_in() ) { |
return $this->template_parse( 'please_login.tpl' ); |
return $this->template_parse( 'please_login.tpl' ); |
Line 181 class moduleTinderd extends module {
|
Line 180 class moduleTinderd extends module {
|
} |
} |
} |
} |
|
|
function change_tinderd_queue( $action, $entry_id, $build_id, $priority, $email_on_completion ) { | public function change_tinderd_queue( $action, $entry_id, $build_id, $priority, $email_on_completion ) { |
|
|
if( !$this->moduleUsers->is_logged_in() ) { |
if( !$this->moduleUsers->is_logged_in() ) { |
return $this->template_parse( 'please_login.tpl' ); |
return $this->template_parse( 'please_login.tpl' ); |
Line 224 class moduleTinderd extends module {
|
Line 223 class moduleTinderd extends module {
|
return; |
return; |
} |
} |
|
|
function add_tinderd_queue( $action, $build_id, $priority, $port_directory, $email_on_completion ) { | public function add_tinderd_queue( $action, $build_id, $priority, $port_directory, $email_on_completion ) { |
|
|
if( !$this->moduleUsers->is_logged_in() ) { |
if( !$this->moduleUsers->is_logged_in() ) { |
return $this->template_parse( 'please_login.tpl' ); |
return $this->template_parse( 'please_login.tpl' ); |
Line 257 class moduleTinderd extends module {
|
Line 256 class moduleTinderd extends module {
|
return; |
return; |
} |
} |
} |
} |
|
|
?> |
?> |