[ Index ] |
PHP Cross Reference of phpwcms V1.4.7 _r403 (01.11.10) |
[Summary view] [Print] [Text view]
1 <?php 2 /************************************************************************************* 3 Copyright notice 4 5 (c) 2002-2010 Oliver Georgi (oliver@phpwcms.de) // All rights reserved. 6 7 This script is part of PHPWCMS. The PHPWCMS web content management system is 8 free software; you can redistribute it and/or modify it under the terms of 9 the GNU General Public License as published by the Free Software Foundation; 10 either version 2 of the License, or (at your option) any later version. 11 12 The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html 13 A copy is found in the textfile GPL.txt and important notices to the license 14 from the author is found in LICENSE.txt distributed with these scripts. 15 16 This script is distributed in the hope that it will be useful, but WITHOUT ANY 17 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 18 PARTICULAR PURPOSE. See the GNU General Public License for more details. 19 20 This copyright notice MUST APPEAR in all copies of the script! 21 *************************************************************************************/ 22 23 /** 24 * Sept. 2009 25 * enhancement to enable phpwcms filebrowser support in FCK Editor 26 * based on concept and work of Markus Köhl <www.pagewerkstatt.ch> 27 */ 28 29 session_start(); 30 31 $phpwcms = array(); 32 $phpwcms_root = dirname(__FILE__); 33 $js_files_all = array(); 34 $js_files_select = array(); 35 36 require($phpwcms_root.'/config/phpwcms/conf.inc.php'); 37 require ($phpwcms_root.'/include/inc_lib/default.inc.php'); 38 39 if( empty($_SESSION["wcs_user_lang"]) ) { 40 41 session_destroy(); 42 headerRedirect( PHPWCMS_URL ); 43 44 } else { 45 46 require (PHPWCMS_ROOT.'/include/inc_lang/backend/en/lang.ext.inc.php'); 47 $cust_lang = PHPWCMS_ROOT.'/include/inc_lang/backend/' . strtolower(substr($_SESSION["wcs_user_lang"], 0, 2)) . '/lang.ext.inc.php'; 48 if(is_file($cust_lang)) { 49 include($cust_lang); 50 } 51 52 } 53 54 // set target for article summary/list image 55 if(isset($_GET['target'])) { 56 57 switch($_GET['target']) { 58 59 case 'list': $_SESSION['filebrowser_image_target'] = '_list_'; 60 break; 61 62 default: $_SESSION['filebrowser_image_target'] = '_'; 63 } 64 65 } elseif(empty($_SESSION['filebrowser_image_target'])) { 66 67 $_SESSION['filebrowser_image_target'] = '_'; 68 69 } 70 71 if(isset($_GET['entry_id'])) { 72 $_SESSION['filebrowser_image_entry_id'] = preg_replace('/[^a-z0-9_]/', '', $_GET['entry_id']); 73 } 74 75 require_once (PHPWCMS_ROOT.'/include/inc_lib/dbcon.inc.php'); 76 require_once (PHPWCMS_ROOT.'/include/inc_lib/general.inc.php'); 77 78 checkLogin(); 79 80 require_once (PHPWCMS_ROOT.'/include/inc_lib/backend.functions.inc.php'); 81 require_once (PHPWCMS_ROOT.'/include/inc_lib/imagick.convert.inc.php'); 82 83 $js_aktion = (isset($_GET["opt"])) ? intval($_GET["opt"]) : 0; 84 85 switch($js_aktion) { 86 87 case 0: 88 case 1: 89 case 3: 90 case 7: 91 case 8: 92 case 5: 93 case 11: $titel = $BL['IMAGE_TITLE']; 94 $filetype = $BL['IMAGE_FILES']; 95 break; 96 97 case 4: 98 case 9: 99 case 10: $titel = $BL['FILE_TITLE']; 100 $filetype = $BL['FILES']; 101 break; 102 103 case 2: 104 case 6: 105 case 12: 106 case 13: 107 case 14: $titel = $BL['MEDIA_TITLE']; 108 $filetype = $BL['MEDIA_FILES']; 109 break; 110 111 } 112 113 if(isset($folder)) unset($folder); 114 if(isset($_SESSION["folder"])) $folder = $_SESSION["folder"]; 115 if(isset($_GET["folder"])) { 116 list($folder_id, $folder_value) = explode('|', $_GET["folder"]); 117 $folder[$folder_id] = intval($folder_value); 118 $_SESSION["folder"] = $folder; //Rückgabe des Aktuellen Array mit Aufolderwerten in die Session 119 } 120 $_SESSION["list_zaehler"] = 0; //Zähler für die Public-Listenfunktion setzen 121 122 //Checken, welcher Ordner aktiv 123 if(isset($_GET["files"])) { 124 125 $_SESSION["imgdir"] = intval($_GET["files"]); 126 127 } elseif(!isset($_SESSION["imgdir"])) { 128 129 $_SESSION["imgdir"] = 0; 130 131 } else { 132 133 $_SESSION["imgdir"] = intval($_SESSION["imgdir"]); 134 135 } 136 137 //Feststellen, ob überhaupt Dateien/Ordner des Users vorhanden sind 138 $sql = "SELECT COUNT(f_id) FROM ".DB_PREPEND."phpwcms_file WHERE f_public=1 AND f_aktiv=1 AND f_trash=0 LIMIT 1"; 139 //"f_uid=".$_SESSION["wcs_user_id"]." AND f_trash=0 LIMIT 1;"; 140 if($result = mysql_query($sql, $db) or die ("error while counting private files")) { 141 if($row = mysql_fetch_row($result)) $count_user_files = $row[0]; 142 mysql_free_result($result); 143 } 144 145 ?> 146 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 147 <html xmlns="http://www.w3.org/1999/xhtml"> 148 <head> 149 150 <title><?php echo $titel ?></title> 151 152 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 153 <meta http-equiv="Expires" content="0" /> 154 <meta http-equiv="Pragma" content="no-cache" /> 155 <meta http-equiv="cache-control" content="no-cache" /> 156 <script src="include/inc_js/phpwcms.js" type="text/javascript"></script> 157 <script src="include/inc_js/filebrowser.js" type="text/javascript"></script> 158 <link href="include/inc_css/phpwcms.css" rel="stylesheet" type="text/css" /> 159 <style type="text/css">body{margin:5px;}</style> 160 161 </head> 162 163 <body> 164 <table summary="" border="0" cellspacing="0" cellpadding="0"> 165 <tr> 166 <td bgcolor="#7C98A2"><img src="img/leer.gif" alt="" width="1" height="1" border="0" /></td> 167 <td rowspan="4"><img src="img/leer.gif" alt="" width="5" height="1" border="0" /></td> 168 <td bgcolor="#7C98A2"><img src="img/leer.gif" alt="" width="1" height="1" border="0" /></td> 169 </tr> 170 <tr> 171 <td bgcolor="#7C98A2" class="msgreiter"> <?php echo $BL['FOLDER_LIST'] ?> </td> 172 <td bgcolor="#7C98A2" class="msgreiter"> <?php echo $filetype ?> </td> 173 </tr> 174 <tr> 175 <td bgcolor="#7C98A2"><img src="img/leer.gif" alt="" width="1" height="1" border="0" /></td> 176 <td bgcolor="#7C98A2"><img src="img/leer.gif" alt="" width="1" height="1" border="0" /></td> 177 </tr> 178 <tr> 179 <td valign="top"><?php 180 181 if(isset($count_user_files) && $count_user_files) { //Wenn überhaupt Public-Dateien vorhanden, dann Listing 182 183 echo '<table summary="" bgColor="#FCFDFD" border="0" cellspacing="0" cellpadding="0">'."\n"; 184 185 //Anzeige des Festplattensymbols 186 $dirname = $BL['ROOT_DIR']; 187 if(!isset($folder[0])) { 188 $folder[0] = 0; 189 } 190 $folder_status = true_false($folder[0]); 191 $count_sql = "SELECT COUNT(f_id) FROM ".DB_PREPEND."phpwcms_file WHERE f_pid=0 AND f_public=1 AND f_aktiv=1 AND f_trash=0 LIMIT 1"; 192 193 if($count_result = mysql_query($count_sql, $db)) { 194 if($count_row = mysql_fetch_row($count_result)) { 195 $count = '<img src="img/leer.gif" height="1" width="2" alt="" border="0" /><a href="filebrowser.php?opt='.$js_aktion.'&folder=0'. 196 '%7C'.$folder_status.'">'.on_off($folder_status, $dirname, 0).'</a>'; 197 $count_wert = $count_row[0]; 198 } 199 mysql_free_result($count_result); 200 } 201 202 // define current directory name 203 $current_dirname = $dirname; 204 205 $dirname = "<a href=\"filebrowser.php?opt=".$js_aktion."&files=0\" title=\"".$BL['SHOW_FILES']."\">".$dirname."</a>"; 206 $bgcol = (isset($row["f_id"]) && $row["f_id"] == $_SESSION["imgdir"]) ? ' bgcolor="#FED83F"' : ''; 207 208 echo '<tr'.$bgcol.'><td colspan="2"><img src="img/leer.gif" height="2" width="1" border="0" alt="" /></td></tr>'.LF; //Abstand vor 209 echo '<tr'.$bgcol.'><td class="msglist" nowrap="nowrap">'; 210 echo $count.'<img src="img/leer.gif" height="1" width="4" border="0" alt="" /><img src="img/icons/harddisk_16x11.gif" border="0" alt="" />'; //Zellinhalt 1. Spalte 211 echo '<img src="img/leer.gif" height="1" width="4" alt="" border="0" />'.$dirname.'</td><td><img src="img/leer.gif" height="1" width="5" border="0" alt="" /></td></tr>'.LF; 212 //Aufbau trennende Tabellen-Zeile 213 echo '<tr'.$bgcol.'><td colspan="2"><img src="img/leer.gif" height="1" width="1" border="0" alt="" /></td></tr>'.LF; //Abstand nach 214 echo '<tr bgcolor="#CDDEE4"><td colspan="2"><img src="img/leer.gif" height="1" width="1" border="0" alt="" /></td></tr>'.LF; 215 216 //Wenn überhaupt Ordner für User vorhanden, dann Listing 217 if(!$folder_status && $count_wert) { 218 folder_list(0, $db, 18, "filebrowser.php?opt=".$js_aktion."&"); 219 } 220 221 echo '</table>'; 222 } else { 223 echo "no files available"; 224 } 225 226 ?></td> 227 <td valign="top"><?php 228 229 //Tabelle 230 231 echo '<table summary="" bgColor="#FFFFFF" width="100%" border="0" cellspacing="0" cellpadding="0">'.LF; 232 $file_sql = "SELECT * FROM ".DB_PREPEND."phpwcms_file WHERE f_pid=".$_SESSION["imgdir"]." AND "; 233 switch($js_aktion) { 234 235 case 6: $file_sql .= "f_ext IN ('swf', 'mp3', 'flv', 'mp4', 'm4v', 'f4v', 'jpg', 'png', 'gif') AND "; 236 break; 237 238 // H.264 239 case 12: $file_sql .= "f_ext IN ('mp4', 'm4p', 'mov', 'm4p', 'm4a') AND "; 240 break; 241 242 // WebM 243 case 13: $file_sql .= "f_ext IN ('webm') AND "; 244 break; 245 246 // Ogg 247 case 14: $file_sql .= "f_ext IN ('ogg', 'ogv', 'oga', 'ogx') AND "; 248 break; 249 250 case 8: $entry_id = empty($_SESSION['filebrowser_image_entry_id']) ? '' : $_SESSION['filebrowser_image_entry_id']; 251 case 7: $file_sql .= "f_ext IN ('jpg', 'png', 'gif') AND "; 252 break; 253 254 255 case 2: $default_ext = "f_ext IN ('aif', 'aiff', 'mov', 'movie', 'mp3', 'mpeg', 'mpeg4', "; 256 $default_ext .= "'mpeg2', 'wav', 'swf', 'ram', 'ra', 'wma', 'wmv', "; 257 $default_ext .= "'avi', 'au', 'midi', 'moov', 'rm', 'rpm', 'mid', 'midi')"; 258 259 if(!empty($phpwcms["multimedia_ext"])) { 260 261 $allowed_ext = convertStringToArray(strtolower($phpwcms["multimedia_ext"])); 262 if(count($allowed_ext)) { 263 $default_ext = "f_ext IN ('".implode("', '", $allowed_ext) . "')"; 264 } 265 266 } 267 268 $file_sql .= $default_ext." AND "; 269 270 break; 271 272 } 273 $file_sql .= "f_public=1 AND f_aktiv=1 "; 274 $file_sql .= "AND f_kid=1 AND f_trash=0 ORDER BY f_sort, f_name"; 275 276 if($file_result = mysql_query($file_sql, $db) or die ("error while listing files<br />".html_entities($file_sql))) { 277 $file_durchlauf = 0; 278 279 if(empty($_SESSION['image_browser_article'])) { 280 $target_form = 'articlecontent'; 281 } else { 282 $target_form = 'article'; 283 } 284 285 while($file_row = mysql_fetch_array($file_result)) { 286 $filename = html_specialchars($file_row["f_name"]); 287 288 $thumb_image = true; 289 if( $js_aktion != 2 && $js_aktion != 4 && $js_aktion != 9 && $js_aktion != 10 ) { 290 // check if file can have thumbnail - if so it can be choosen for usage 291 $thumb_image = get_cached_image( 292 array( "target_ext" => $file_row["f_ext"], 293 "image_name" => $file_row["f_hash"] . '.' . $file_row["f_ext"], 294 "thumb_name" => md5($file_row["f_hash"].$phpwcms["img_list_width"].$phpwcms["img_list_height"].$phpwcms["sharpen_level"]) 295 ) 296 ); 297 } 298 299 if($thumb_image != false || in_array($js_aktion, array(6,12,13,14))) { 300 301 $js_files_select[$file_durchlauf] = ' [' . $file_durchlauf .', ' . $file_row["f_id"] . ', "' . $filename . '"]'; 302 $add_all = false; 303 304 switch($js_aktion) { 305 case 0: $jst = empty($_SESSION['filebrowser_image_target']) ? '_' : $_SESSION['filebrowser_image_target']; 306 307 $js = "window.opener.document.".$target_form.".cimage".$jst."name.value='".$filename."';"; 308 $js .= "window.opener.document.".$target_form.".cimage".$jst."id.value='".$file_row["f_id"]."';"; 309 break; 310 311 case 2: $js = "window.opener.document.articlecontent.cmedia_name.value='".$filename."';"; 312 $js .= "window.opener.document.articlecontent.cmedia_id.value='".$file_row["f_id"]."';"; 313 break; 314 315 case 6: 316 case 12: 317 case 13: 318 case 14: $js = "window.opener.setIdName('".$file_row["f_id"]."', '".$filename."', ".$js_aktion.");"; 319 break; 320 321 case 7: $js = "window.opener.setImgIdName('".$file_row["f_id"]."', '".$filename."');"; 322 break; 323 324 case 8: $js = "window.opener.setImgIdName('".$entry_id."', '".$file_row["f_id"]."', '".$filename."');"; 325 break; 326 327 case 4: $js = "addFile(window.opener.document.articlecontent.cfile_list,'".$filename."','".$file_row["f_id"]."');"; 328 $js_files_all[] = $js; 329 $add_all = true; 330 break; 331 332 case 9: $js = "window.opener.addFile('".$file_row["f_id"]."', '".$filename."');"; 333 $js_files_all[] = $js; 334 $add_all = true; 335 break; 336 337 case 5: $js = "addFile(window.opener.img_field,'".$filename."','".$file_row["f_id"]."');"; 338 $js_files_all[] = $js; 339 $add_all = true; 340 break; 341 342 //mod 343 case 10: $js = "window.opener.SetUrl('download.php?f=".$file_row["f_hash"] . "&target=0');"; 344 break; 345 346 case 11: $js = "window.opener.SetUrl('image_resized.php?format=" . $file_row["f_ext"]. "&q=85&imgfile=filearchive/".$file_row["f_hash"] . '.' . $file_row["f_ext"]. "');"; 347 348 //$js = "window.opener.SetUrl('img/cmsimage.php?xxx".$phpwcms['jpg_quality']."/".$file_row["f_hash"] . '.' . $file_row["f_ext"]. "');"; 349 break; 350 351 default: $js = "addFile(window.opener.document.articlecontent.cimage_list,'".$filename."','".$file_row["f_id"]."');"; 352 $js_files_all[] = $js; 353 $add_all = true; 354 } 355 356 // show "add all files" 357 if($file_durchlauf === 0 && $add_all) { 358 359 echo ' 360 <tr id="addAllFilesLink"> 361 <td colspan="4" class="add_all_files"><a href="#" onclick="addAllFiles();return false;" title="' . $BL['ADD_ALL_FILES'] . '">' . 362 $BL['ADD_ALL_FILES'] . ' 363 <img src="img/button/add_9x9a.gif" alt="" border="0" /> 364 </a></td> 365 </tr> 366 <tr> 367 <td colspan="4" bgcolor="#CDDEE4"><img src="img/leer.gif" alt="" border="0" /></td> 368 </tr> 369 '; 370 371 } 372 373 echo '<tr><td colspan="4"><img src="img/leer.gif" width="1" height="2" border="0" alt="" /></td></tr>'.LF; 374 echo "<tr>\n<td><img src=\"img/icons/small_".extimg($file_row["f_ext"])."\" border=\"0\" alt=\"\" hspace=\"3\" vspace=\"1\" /></td>\n"; 375 376 if($js_aktion != 4 && $js_aktion != 10) { 377 echo "<td class=\"msglist\">".$filename."</td>\n<td><img src=\"img/leer.gif\" width=\"5\" height=\"1\" alt=\"\" border=\"0\" />"; 378 } else { 379 echo "<td class=\"msglist\"><a href=\"#\" onclick=\"".$js."tmt_winControl('self','close()');\">".$filename."</a></td>\n<td>"; 380 } 381 382 echo "<a href=\"#\" onclick=\"".$js."return false;\" title=\"".$BL['TAKE_IMAGE']."\">"; 383 echo "<img src=\"img/button/add_9x9a.gif\" border=\"0\" alt=\"\" hspace=\"5\" vspace=\"2\" /></a></td>\n"; 384 echo "<td><img src=\"img/leer.gif\" alt=\"\" border=\"0\" /></td>\n</tr>\n"; 385 echo "<tr><td colspan=\"4\"><img src=\"img/leer.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /></td></tr>\n"; 386 if(!empty($thumb_image[0]) && in_array( $js_aktion, array(0, 1, 3, 5, 6, 7, 8, 10, 11) ) ) { 387 echo "<tr><td> </td>\n<td colspan=\"3\"><a href=\"#\" onclick=\"".$js; 388 echo "tmt_winControl('self','close()');\">"; 389 echo '<img src="'.PHPWCMS_IMAGES . $thumb_image[0] .'" border="0" '.$thumb_image[3].' alt="" />'; 390 echo "</a></td>\n</tr>\n"; 391 } 392 echo "<tr><td colspan=\"4\"><img src=\"img/leer.gif\" width=\"1\" height=\"2\" alt=\"\" border=\"0\" /></td></tr>\n"; 393 echo "<tr><td colspan=\"4\" bgcolor=\"#CDDEE4\"><img src=\"img/leer.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" /></td></tr>\n"; 394 $file_durchlauf++; 395 } 396 397 } 398 if(!$file_durchlauf) { //Abschluss der Filelisten-Tabelle 399 echo "<tr><td colspan=\"4\"><img src=\"img/leer.gif\" width=\"3\" height=\"2\" alt=\"\" border=\"0\" /></td></tr>\n"; 400 echo "<tr><td colspan=\"4\" class=\"msglist\"> ".$BL['NO_FILE']." </td></tr>\n"; 401 echo "<tr><td colspan=\"4\"><img src=\"img/leer.gif\" width=\"3\" height=\"2\" alt=\"\" border=\"0\" /></td></tr>\n"; 402 } 403 } //Ende Liste Dateien 404 405 echo "</table>"; 406 407 if( count($js_files_select) ) { 408 409 echo LF . '<script type="text/javascript">'; 410 echo LF . SCRIPT_CDATA_START . LF; 411 412 echo 'var files_all = new Array(' . LF; 413 echo implode(','.LF, $js_files_select); 414 echo LF . ' );'; 415 echo LF . 'var files_total = ' . $file_durchlauf . ';'; 416 417 echo LF . LF; 418 echo 'function addAllFiles() {'; 419 echo LF . ' '; 420 echo implode(LF . ' ', $js_files_all); 421 echo LF . ' //if(closewin == true) tmt_winControl("self","close()");'; 422 echo LF . ' getObjectById("addAllFilesLink").style.display = "none";'; 423 echo LF . ' if(confirm("' . str_replace('{VAL}', $current_dirname, $BL['ADD_ALL_CONFIRM']) . '")) tmt_winControl("self","close()");'; 424 echo LF . '}' . LF; 425 426 echo LF . SCRIPT_CDATA_END; 427 echo LF . '</script>' . LF; 428 429 430 } 431 432 ?></td> 433 </tr> 434 </table> 435 </body> 436 </html> 437 <?php 438 439 //function folder_list($pid, $dbcon, $vor, $zieldatei, $userID) { 440 function folder_list($pid, $dbcon, $vor, $zieldatei) { 441 global $current_dirname; 442 $folder = $_SESSION["folder"]; 443 $pid = intval($pid); 444 $sql = "SELECT f_id, f_name, f_aktiv, f_public FROM ".DB_PREPEND."phpwcms_file WHERE ". 445 "f_pid=".intval($pid)." AND f_public=1 AND f_aktiv=1 AND ". 446 "f_kid=0 AND f_trash=0 ORDER BY f_sort, f_name"; //"f_uid=".intval($userID)." AND ". 447 $result = mysql_query($sql, $dbcon); 448 while($row = mysql_fetch_array($result)) { 449 450 $dirname = html_specialchars($row["f_name"]); 451 452 //Ermitteln des Aufolderwertes 453 if(!isset($folder[$row["f_id"]])) $folder[$row["f_id"]] = 0; 454 $folder_status = true_false($folder[$row["f_id"]]); 455 456 //Ermitteln, ob überhaupt abhängige Dateien/Ordner existieren 457 $count_sql = "SELECT COUNT(f_id) FROM ".DB_PREPEND."phpwcms_file WHERE ". 458 "f_pid=".$row["f_id"]. 459 " AND f_public=1 AND f_aktiv=1 AND ". 460 "f_trash=0 LIMIT 1"; 461 if($count_result = mysql_query($count_sql, $dbcon)) { 462 if($count_row = mysql_fetch_row($count_result)) { 463 $count = '<img src="img/leer.gif" height="1" width="2" alt="" border="0" /><a href="'.$zieldatei."folder=".$row["f_id"]. 464 '%7C'.$folder_status.'">'.on_off($folder_status, $dirname, 0).'</a>'; 465 $count_wert = $count_row[0]; 466 } 467 mysql_free_result($count_result); 468 } 469 470 $dirname = '<a href="'.$zieldatei."files=".$row["f_id"].'" title="'.$GLOBALS['BL']['SHOW_FILES1'].'">'. $dirname . '</a>'; 471 472 if($row["f_id"] == $_SESSION["imgdir"]) { 473 $bgcol = ' bgcolor="#FED83F"'; 474 $current_dirname = $row["f_name"]; 475 } else { 476 $bgcol = ''; 477 } 478 479 //Aufbau der Zeile 480 echo "<tr".$bgcol."><td colspan=\"2\"><img src=\"img/leer.gif\" height=\"2\" width=\"1\" alt=\"\" border=\"0\" /></td></tr>\n"; //Abstand vor 481 echo "<tr".$bgcol."><td class=\"msglist\" nowrap=\"nowrap\">"; 482 echo $count."<img src=\"img/leer.gif\" height=\"1\" width=\"".($vor+6)."\" border=\"0\" alt=\"\" /><img src=\"img/icons/folder_zu.gif\" border=\"0\" alt=\"\" />"; //Zellinhalt 1. Spalte 483 echo "<img src=\"img/leer.gif\" height=\"1\" width=\"5\" alt=\"\" border=\"0\" />".$dirname."</td><td><img src=\"img/leer.gif\" height=\"1\" width=\"5\" alt=\"\" border=\"0\" /></td></tr>\n"; 484 //Aufbau trennende Tabellen-Zeile 485 echo "<tr".$bgcol."><td colspan=\"2\"><img src=\"img/leer.gif\" height=\"1\" width=\"1\" alt=\"\" border=\"0\" /></td></tr>\n"; //Abstand nach 486 echo "<tr bgcolor=\"#CDDEE4\"><td colspan=\"2\"><img src=\"img/leer.gif\" height=\"1\" width=\"1\" alt=\"\" border=\"0\" /></td></tr>\n"; //Trennlinie<img src='img/lines/line-lightgrey-dotted-538.gif'> 487 488 //Weiter, wenn Unterstruktur 489 if(!$folder_status && $count_wert) { 490 folder_list($row["f_id"], $dbcon, $vor+18, $zieldatei); //, $userID 491 } 492 493 //Zaehler mitführen 494 $_SESSION["list_zaehler"]++; 495 } 496 mysql_free_result($result); 497 } 498 499 function on_off($wert, $string, $art = 1) { 500 //Erzeugt das Status-Zeichen für Klapp-Auf/Zu 501 //Wenn Art = 1 dann als Zeichen, ansonsten als Bild 502 if($wert) { 503 if($art == 1) { 504 return "+"; 505 } else { 506 return "<img src=\"img/symbols/klapp_zu.gif\" border=\"0\" alt=\"\" title=\"".$GLOBALS['BL']['OPEN_DIR'].": ".$string."\" />"; 507 } 508 } else { 509 if($art == 1) { 510 return "-"; 511 } else { 512 return "<img src=\"img/symbols/klapp_auf.gif\" border=\"0\" alt=\"\" title=\"".$GLOBALS['BL']['CLOSE_DIR'].": ".$string."\" />"; 513 } 514 } 515 } 516 517 function true_false($wert) { 518 //Wechselt den Wahr/Falsch wert zum Gegenteil: 1=>0 und 0=>1 519 if(intval($wert)) { return 0; } else { return 1; } 520 } 521 522 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Nov 16 22:51:00 2010 | Cross-referenced by PHPXref 0.7 |