Project

General

Profile

« Previous | Next » 

Revision 626

Added by doc almost 17 years ago

Fixed some bugs in the Javascript Admin module

View differences:

trunk/CHANGELOG
10 10
# = Bugfix
11 11
! = Update/Change
12 12

  
13
------------------------------------- 2.7.0 -------------------------------------
14
28-Jan-2008 Thomas Hornik
13
------------------------------------- 2.7.0 -------------------------------------
14
28-Jan-2008 Christian Sommer
15
#	Fixed some bugs in the Javascript Admin modul
16
28-Jan-2008 Thomas Hornik
15 17
+	Added Text-CAPTCHA on request. The captcha-text will be stored in temp/.captcha_text.txt
16 18
27-Jan-2008 Christian Sommer
17 19
!	fixed CSS background color of the installer CSS
trunk/wb/modules/jsadmin/tool.php
73 73
  $YUI_PUT_MISSING_Files=''; // String with missing files
74 74
  reset($js_yui_scripts);
75 75
  foreach($js_yui_scripts as $script) {
76
    $fcheck =fopen($script,"r");  // Check if File Exist , This is better the file_exists
77
    if(!$fcheck){
76
     if(!file_exists($WB_MAIN_RELATIVE_PATH.$script)){
78 77
        $YUI_ERROR=true;
79
        $YUI_PUT_MISSING_Files =$YUI_PUT_MISSING_Files."- ".$script."<br />";   // catch all missing files
78
        $YUI_PUT_MISSING_Files =$YUI_PUT_MISSING_Files."- ".WB_URL.$script."<br />";   // catch all missing files
80 79
    }
81
    fclose($fcheck);
82 80
	}
83 81
	if($YUI_ERROR)
84 82
	{
......
111 109
   <tr>
112 110
	     <td>&nbsp;</td>
113 111
	     <td>
114
		   <input type="submit" name="submit" value="<?php echo $TEXT['SAVE']; ?>" onClick="javascript: if(!confirm('<?php echo $TEXT['ARE_YOU_SURE']; ?>')) { return false; }" />
112
		   <input type="submit" name="submit" value="<?php echo $TEXT['SAVE']; ?>" />
115 113
	    </td>
116 114
   </tr>
117 115
   </table>
trunk/wb/modules/jsadmin/jsadmin_backend_include.php
66 66
	} elseif($page_type == 'sections') {
67 67
		if(get_setting('mod_jsadmin_ajax_order_sections', '1')) {
68 68
			$js_scripts[] = 'dragdrop.js';
69
			$js_buttonCell= 3; // This ist the Cell where the Button "Up" is , by Swen Uth
69
			$js_buttonCell= 4; // This ist the Cell where the Button "Up" is , by Swen Uth
70 70
		}
71 71
	} elseif($page_type == 'config') {
72 72
		$js_scripts[] = 'tool.js';
......
118 118
  $YUI_ERROR=false; // ist there an Error
119 119
  $YUI_PUT ='';   // String with javascipt includes
120 120
  $YUI_PUT_MISSING_Files=''; // Strin with missing files
121
  
121
  reset($js_yui_scripts);
122 122
  foreach($js_yui_scripts as $script) {
123
    $fcheck =fopen($script,"r");  // Check if File Exist , This is better the file_exists
124
    if($fcheck){
125
        $YUI_PUT=$YUI_PUT."<script type='text/javascript' src='".$script."'></script>\n"; // go and include
123
    if(file_exists($WB_MAIN_RELATIVE_PATH.$script)){
124
        $YUI_PUT=$YUI_PUT."<script type='text/javascript' src='".$WB_MAIN_RELATIVE_PATH.$script."'></script>\n"; // go and include
126 125
    } else {
127 126
        $YUI_ERROR=true;
128
        $YUI_PUT_MISSING_Files=$YUI_PUT_MISSING_Files."- ".$script."\\n";   // catch all missing files
127
        $YUI_PUT_MISSING_Files=$YUI_PUT_MISSING_Files."- ".WB_URL.$script."\\n";   // catch all missing files
129 128
    }
130
    fclose($fcheck);
131 129
	}
132 130
	if(!$YUI_ERROR)
133 131
	{
trunk/wb/modules/jsadmin/jsadmin.php
51 51
}
52 52

  
53 53
// the follwing variables to use and check existing the YUI
54
$YUI_PATH = '../../include/yui';
54
$WB_MAIN_RELATIVE_PATH="../..";
55
$YUI_PATH = '/include/yui';
55 56
$js_yui_min = "-min";  // option for smaller code so faster
56 57
$js_yui_scripts = Array();
57 58
$js_yui_scripts[] = $YUI_PATH.'/yahoo/yahoo'.$js_yui_min.'.js';

Also available in: Unified diff