Subversion-Projekte lars-tiefland.ci

Revision

Revision 1557 | Revision 1982 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1557 Revision 1558
Zeile 3... Zeile 3...
3
/**
3
/**
4
 *
4
 *
5
 * @package WebanOS CI
5
 * @package WebanOS CI
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
7
 * @copyright 2016
7
 * @copyright 2016
8
 * @version $Rev: 1557 $
8
 * @version $Rev: 1558 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class Weban_backend
11
class Weban_backend
12
{
12
{
Zeile 39... Zeile 39...
39
			WHERE
39
			WHERE
40
				domain='".__SHOP__."'
40
				domain='".__SHOP__."'
41
		";
41
		";
42
		$res = $GLOBALS["db_red"]->query($sql);
42
		$res = $GLOBALS["db_red"]->query($sql);
43
		$GLOBALS["webs"] = $res->row_array();
43
		$GLOBALS["webs"] = $res->row_array();
44
		$base = $_SERVER["DOCUMENT_ROOT"]."/backend";
44
		$base = $_SERVER["DOCUMENT_ROOT"]."/backend/css";
45
		$extra = "/".__SHOP__."/";
45
		$extra = "/".__SHOP__."/";
46
		$file = "jquery-ui.custom.css";
46
		$file = "jquery-ui.custom.css";
47
		$css_file = $base.$extra.$file;
47
		$css_file = $base.$extra.$file;
48
		if (!file_exists($css_file))
48
		if (!file_exists($css_file))
49
		{
49
		{
50
			$extra = "/start/";
50
			$extra = "/start/";
51
		}
51
		}
52
		$css_file = "/backend".$extra.$file;
52
		$css_file = "/backend/css".$extra.$file;
53
		$CI->smarty->assign("jquery_ui_css", $css_file);
53
		$CI->smarty->assign("jquery_ui_css", $css_file);
54
		$CI->smarty->assign("webs", $GLOBALS["webs"]);
54
		$CI->smarty->assign("webs", $GLOBALS["webs"]);
Zeile 55... Zeile 55...
55
 
55
 
56
		$sql = "SELECT
56
		$sql = "SELECT