Location: PHPKode > scripts > TinyWebGallery > tinywebgallery/i_frames/i_titel.php
<?php
/*************************  
  Copyright (c) 2004-2010 TinyWebGallery
  written by Michael Dempfle
 
  This program is free software; you can redistribute it and/or modify 
  it under the terms of the TinyWebGallery license (based on the GNU  
  General Public License as published by the Free Software Foundation;  
  either version 2 of the License, or (at your option) any later version. 
  See license.txt for details.
 
  TWG version: 1.8
 
  $Date: 2009-06-17 22:57:10 +0200 (Mi, 17 Jun 2009) $
  $Revision: 73 $
**********************************************/

define('_VALID_TWG', '42');
include "i_basic.inc.php";

$titel = parse_html_parameter_caption('twg_titel');

include "../inc/readxml.inc.php";

$fokus = "twg_titel";
include "i_header.inc.php";

$titel = stripslashes(nl2br($titel));

include "i_body_head.inc.php"; // body and closebutton

if ($titel == false) {
    echo $lang_titel_php_titel;
     } else {
    $_SESSION["actalbum"] = "LOAD NEW";
     loadXMLFiles($twg_album);
     saveBeschreibung($titel, $twg_album, $image, $werte, $index);
     if (isset($_GET["PHPSESSID"])) {
        $closescript = "<script>closeiframe(); if (reload) { parent.location='" . urldecode($twg_root) . "?PHPSESSID=" . $_GET["PHPSESSID"] . "&twg_album=" . $album_enc . "&twg_show=" . $image_enc . $twg_standalonejs . "'  }</script>";
         } else {
        $closescript = "<script>closeiframe(); if (reload) { parent.location='" . urldecode($twg_root) . "?twg_album=" . $album_enc . "&twg_show=" . $image_enc . $twg_standalonejs . "'  }</script>";
         }
    echo $closescript;
    exit();
     }

echo'
  <center><img alt="" src="../buttons/1x1.gif" width="1" height="2" /><table summary=""><tr><td>';
if ($enable_smily_support) {
    echo'
  <img alt="" onmouseover="javascript:show_smilie_div()" src="../buttons/smilie.gif" width="15" height="15" /></td><td><img alt="" src="../buttons/1x1.gif" width="1" height="15" /></td><td>';
     }
     
// we load the old caption
$caption = htmlentities(getBeschreibung( $image, $werte, $index), ENT_QUOTES, $charset);   
     
?>
  <input id="twg_titel" name="twg_titel" type="text" value="<?php echo $caption; ?>" size="45"/></td></tr><tr><td colspan=3>
  <input type="submit" name="twg_submit" value="<?php echo $lang_titel_php_save ?>"/>
  </td></tr></table>
  </center>
</td></tr>
<?php
if (!$allow_all_html_captions) {
  echo '<tr><td class="html_tags">'. $lang_allowed_html_tags .'<br />';
  foreach ($allowed_html_tags as $value) {
    echo htmlentities($value) . " ";
  }
  echo "</td></tr>";
}
?>
</table>
</form>
<?php
if ($enable_smily_support) {
    echo '
<div id="twg_smilie" class="twg_smiliediv"><table summary="" cellpadding="0" cellspacing="0"><tr><td class="twg_smilie">' . create_smilie_div() . '</td></tr></table></div>
<div id="twg_smilie_bord" class="twg_smiliedivborder" onmouseover="javascript:hide_smilie_div()" ></div>
';
     }
?>
<?php include "i_bottom.inc.php"; ?>
Return current item: TinyWebGallery