Project

General

Profile

« Previous | Next » 

Revision 1811

Added by Dietmar about 12 years ago

! forgot to upload class.wb.php

View differences:

class.admin.php
513 513
			$base_link = '<script src="'.WB_URL.'/modules/{MODULE_DIRECTORY}/backend_body.js" type="text/javascript"></script>';
514 514
			$base_file = "backend_body.js";
515 515
		}
516

  
517
        $sActionRequest = isset($_POST['tool']) ? $_POST['tool'] : null;
518
        $sActionRequest = isset($_GET['tool'])  ? $_GET['tool']  : $sActionRequest;
519

  
516 520
		// check if backend_body.js files needs to be included to the <body></body> section of the backend
517
		if(isset($_GET['tool']))
521
		if(isset($sActionRequest))
518 522
			{
519 523
			// check if displayed page contains a installed admin tool
520 524
			$sql  = 'SELECT * FROM `'.TABLE_PREFIX.'addons` ';
521
			$sql .= 'WHERE `type`=\'module\' AND `function`=\'tool\' AND `directory`=\''.addslashes($_GET['tool']).'\'';
525
			$sql .= 'WHERE `type`=\'module\' AND `function`=\'tool\' AND `directory`=\''.addslashes($sActionRequest).'\'';
522 526
			$result = $database->query($sql);
523 527
			if($result->numRows())
524 528
				{
......
579 583
			$base_file = "backend.js";
580 584
		}
581 585

  
586
        $sActionRequest = isset($_POST['tool']) ? $_POST['tool'] : null;
587
        $sActionRequest = isset($_GET['tool'])  ? $_GET['tool']  : $sActionRequest;
588

  
582 589
		// check if backend.js or backend.css files needs to be included to the <head></head> section of the backend
583
		if(isset($_GET['tool'])) {
590
		if(isset($sActionRequest)) {
584 591
			// check if displayed page contains a installed admin tool
585 592
			$sql  = 'SELECT * FROM `'.TABLE_PREFIX.'addons` ';
586
			$sql .= 'WHERE `type`=\'module\' AND `function`=\'tool\' AND `directory`=\''.addslashes($_GET['tool']).'\'';
593
			$sql .= 'WHERE `type`=\'module\' AND `function`=\'tool\' AND `directory`=\''.addslashes($sActionRequest).'\'';
587 594
			$result = $database->query($sql);
588 595
			if($result->numRows()) {
589 596
				// check if admin tool directory contains a backend.js or backend.css file to include

Also available in: Unified diff