1 | <script src="js/jquery.js" type="text/javascript"></script>
|
---|
2 | <script src="js/jquery.rightClick.js" type="text/javascript"></script>
|
---|
3 | <script src="js/jquery.drag.js" type="text/javascript"></script>
|
---|
4 | <script src="js/helper.js" type="text/javascript"></script>
|
---|
5 | <script src="js/browser/joiner.php" type="text/javascript"></script>
|
---|
6 | <script src="js_localize.php?lng=<?php echo $this->lang ?>" type="text/javascript"></script>
|
---|
7 | <?php IF (isset($this->opener['TinyMCE']) && $this->opener['TinyMCE']): ?>
|
---|
8 | <script src="<?php echo $this->config['_tinyMCEPath'] ?>/tiny_mce_popup.js" type="text/javascript"></script>
|
---|
9 | <?php ENDIF ?>
|
---|
10 | <?php IF (file_exists("themes/{$this->config['theme']}/init.js")): ?>
|
---|
11 | <script src="themes/<?php echo $this->config['theme'] ?>/init.js" type="text/javascript"></script>
|
---|
12 | <?php ENDIF ?>
|
---|
13 | <script type="text/javascript">
|
---|
14 | browser.version = "<?php echo self::VERSION ?>";
|
---|
15 | browser.support.chromeFrame = <?php echo (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), " chromeframe") !== false) ? "true" : "false" ?>;
|
---|
16 | browser.support.zip = <?php echo (class_exists('ZipArchive') && !$this->config['denyZipDownload']) ? "true" : "false" ?>;
|
---|
17 | browser.support.check4Update = <?php echo ((!isset($this->config['denyUpdateCheck']) || !$this->config['denyUpdateCheck']) && (ini_get("allow_url_fopen") || function_exists("http_get") || function_exists("curl_init") || function_exists('socket_create'))) ? "true" : "false" ?>;
|
---|
18 | browser.lang = "<?php echo text::jsValue($this->lang) ?>";
|
---|
19 | browser.type = "<?php echo text::jsValue($this->type) ?>";
|
---|
20 | browser.theme = "<?php echo text::jsValue($this->config['theme']) ?>";
|
---|
21 | browser.access = <?php echo json_encode($this->config['access']) ?>;
|
---|
22 | browser.dir = "<?php echo text::jsValue($this->session['dir']) ?>";
|
---|
23 | browser.uploadURL = "<?php echo text::jsValue($this->config['uploadURL']) ?>";
|
---|
24 | browser.thumbsURL = browser.uploadURL + "/<?php echo text::jsValue($this->config['thumbsDir']) ?>";
|
---|
25 | <?php IF (isset($this->get['opener']) && strlen($this->get['opener'])): ?>
|
---|
26 | browser.opener.name = "<?php echo text::jsValue($this->get['opener']) ?>";
|
---|
27 | <?php ENDIF ?>
|
---|
28 | <?php IF (isset($this->opener['CKEditor']['funcNum']) && preg_match('/^\d+$/', $this->opener['CKEditor']['funcNum'])): ?>
|
---|
29 | browser.opener.CKEditor = {};
|
---|
30 | browser.opener.CKEditor.funcNum = <?php echo $this->opener['CKEditor']['funcNum'] ?>;
|
---|
31 | <?php ENDIF ?>
|
---|
32 | <?php IF (isset($this->opener['TinyMCE']) && $this->opener['TinyMCE']): ?>
|
---|
33 | browser.opener.TinyMCE = true;
|
---|
34 | <?php ENDIF ?>
|
---|
35 | browser.cms = "<?php echo text::jsValue($this->cms) ?>";
|
---|
36 | _.kuki.domain = "<?php echo text::jsValue($this->config['cookieDomain']) ?>";
|
---|
37 | _.kuki.path = "<?php echo text::jsValue($this->config['cookiePath']) ?>";
|
---|
38 | _.kuki.prefix = "<?php echo text::jsValue($this->config['cookiePrefix']) ?>";
|
---|
39 | $(document).ready(function() {
|
---|
40 | browser.resize();
|
---|
41 | browser.init();
|
---|
42 | $('#all').css('visibility', 'visible');
|
---|
43 | });
|
---|
44 | $(window).resize(browser.resize);
|
---|
45 | </script>
|
---|