[ Index ] |
PHP Cross Reference of phpwcms V1.5.0 _r431 (28.01.12) |
[Summary view] [Print] [Text view]
1 <?php 2 /************************************************************************************* 3 Copyright notice 4 5 (c) 2002-2012 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 // obligate check for phpwcms constants 25 if (!defined('PHPWCMS_ROOT')) { 26 die("You Cannot Access This Script Directly, Have a Nice Day."); 27 } 28 // ---------------------------------------------------------------- 29 30 31 // E-Card 32 33 $cinfo["result"] = $row["acontent_title"] ? cut_string($row["acontent_title"],'…', 55) : ""; 34 $cinfo["result"] .= ($cinfo["result"] && $row["acontent_subtitle"]) ? " / " : ""; 35 $cinfo["result"] .= $row["acontent_subtitle"] ? cut_string($row["acontent_subtitle"],'…', 55) : ""; 36 37 // same as image list 38 39 // get image array 40 $image_list = unserialize($row["acontent_form"]); 41 42 if(isset($image_list['images']) && is_array($image_list['images']) && count($image_list['images'])) { 43 44 $imgx = 0; 45 $img_thumbs = ''; 46 $cinfo_img = ''; 47 48 // browse images and list available 49 // will be visible only when aceessible 50 foreach($image_list['images'] as $key => $value) { 51 52 $thumb_image = get_cached_image( 53 array( "target_ext" => $image_list['images'][$key][3], 54 "image_name" => $image_list['images'][$key][2] . '.' . $image_list['images'][$key][3], 55 "thumb_name" => md5($image_list['images'][$key][2].$phpwcms["img_list_width"].$phpwcms["img_list_height"].$phpwcms["sharpen_level"]) 56 )); 57 58 if($thumb_image != false) { 59 if($imgx == 4) { 60 $cinfo_img .= '<br><img src="img/leer.gif" alt="" border="0" width="1" height="2"><br>'; 61 $imgx = 0; 62 } 63 if($imgx) { 64 $cinfo_img .= '<img src="img/leer.gif" alt="" border="0" width="2" height="1">'; 65 } 66 $cinfo_img .= '<img src="'.PHPWCMS_IMAGES . $thumb_image[0] .'" border="0" '.$thumb_image[3].' alt="'.html_specialchars($image_list['images'][$key][1]).'">'; 67 $imgx++; 68 } 69 } 70 if($imgx) { 71 if($cinfo["result"]) $cinfo["result"] .= '<br>'; 72 $cinfo["result"] .= $cinfo_img; 73 } 74 } 75 76 if($cinfo["result"]) { //Zeige Inhaltinfo 77 echo "<tr><td> </td><td class=\"v10\">"; 78 echo "<a href=\"phpwcms.php?do=articles&p=2&s=1&aktion=2&id=".$article["article_id"]."&acid=".$row["acontent_id"]."\">"; 79 echo $cinfo["result"]."</a></td><td> </td></tr>"; 80 } 81 82 83 /* 84 85 $ecard = unserialize($row["acontent_form"]); 86 $cinfo_imagelist=""; 87 if(count($ecard["list"])) { 88 $imgx=0; 89 foreach($ecard["list"] as $key => $value) { 90 91 if($imgx) { 92 if($imgx == 4) { 93 $cinfo_imagelist .= "<br /><img src=\"img/leer.gif\" width=\"1\" height=\"2\" border=\"0\"><br />"; 94 $imgx=1; 95 } else { 96 $cinfo_imagelist .= "<img src=\"img/leer.gif\" width=\"2\" height=\"1\" border=\"0\">"; 97 $imgx++; 98 } 99 } else { 100 $imgx++; 101 } 102 $cinfo_imagelist .= "<img src=\"".$phpwcms["file_tmp"].$phpwcms["dir_thlist"]; 103 $cinfo_imagelist .= (isset($ecard["list"][$key]["list"])) ? $ecard["list"][$key]["list"] : $ecard["list"][$key]["prev"]; 104 $cinfo_imagelist .= "\" border=\"0\" alt=\"[PIC-".($key+1)."] "; 105 $cinfo_imagelist .= $ecard["list"][$key]["name"]."\">"; 106 } 107 } 108 109 $cinfo["result"] = trim($cinfo["result"]); 110 if($cinfo["result"] && $cinfo_imagelist) { 111 $cinfo["result"] = html_specialchars($cinfo["result"])."<br />".$cinfo_imagelist; 112 } else { 113 if($cinfo_imagelist) { 114 $cinfo["result"] = $cinfo_imagelist; 115 } else { 116 $cinfo["result"] = html_specialchars($cinfo["result"]); 117 } 118 } 119 120 if($cinfo["result"]) { //Zeige Inhaltinfo 121 echo "<tr><td> </td><td class=\"v10\">"; 122 echo "<a href=\"phpwcms.php?do=articles&p=2&s=1&aktion=2&id=".$article["article_id"]."&acid=".$row["acontent_id"]."\">"; 123 echo $cinfo["result"]."</a></td><td> </td></tr>"; 124 } 125 */ 126 127 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Jan 29 16:31:14 2012 | Cross-referenced by PHPXref 0.7.1 |