' . $text . ''; } function generateInput($header, $text, $var, $offset = 0) { $class = (checkMainConfig($text,$var)) ? 'class="isdefault" ' : ' style="color:#0000ff;" class="notdefault" '; echo ''; printOffset($offset); echo $header; generateCacheWarning($text); echo ''; echo ''; generateHelp($text); echo ''; } function generateInputNumber($header, $text, $var, $offset = 0) { $class = (checkMainConfig($text,$var)) ? 'class="isdefault" ' : ' style="color:#0000ff;" class="notdefault" '; echo ''; printOffset($offset); echo $header; generateCacheWarning($text); echo ''; echo ''; generateHelp($text); echo ''; } function generateTrueFalse($header, $text, $var, $offset = 0) { $class = (checkMainConfig($text,$var)) ? 'class="isdefault" ' : ' style="color:#0000ff;" class="notdefault" '; echo ''; printOffset($offset); echo $header; generateCacheWarning($text); echo ''; echo ''; generateHelp($text); echo ''; } function generateTopBottom($header, $text, $var, $offset = 0) { $class = (checkMainConfig($text,$var)) ? 'class="isdefault" ' : ' style="color:#0000ff;" class="notdefault" '; echo ''; printOffset($offset); echo $header; echo ''; echo ''; generateHelp($text); echo ''; } function generateFlashHtml($header, $text, $var, $offset = 0) { $class = (checkMainConfig($text,$var)) ? 'class="isdefault" ' : ' style="color:#0000ff;" class="notdefault" '; echo ''; printOffset($offset); echo $header; echo ''; echo ''; generateHelp($text); echo ''; } function generateSlideshowType($header, $text, $var) { $class = (checkMainConfig($text,$var)) ? 'class="isdefault" ' : ' style="color:#0000ff;" class="notdefault" '; echo ''; echo $header; echo ''; echo ''; generateHelp($text); echo ''; } function generateSlideshowTime($header, $text, $var) { $class = (checkMainConfig($text,$var)) ? 'class="isdefault" ' : ' style="color:#0000ff;" class="notdefault" '; echo ''; echo $header; echo ''; echo ''; generateHelp($text); echo ''; } function generateNumberPics($header, $text, $var, $offset = 0) { $class = (checkMainConfig($text,$var)) ? 'class="isdefault" ' : ' style="color:#0000ff;" class="notdefault" '; echo ''; printOffset($offset); echo $header; echo ''; echo ''; generateHelp($text); echo ''; } function generateSkin($header, $text, $var) { $class = (checkMainConfig($text,$var)) ? 'class="isdefault" ' : ' style="color:#0000ff;" class="notdefault" '; echo ''; echo $header; echo ''; echo ''; generateHelp($text); echo ''; } function generateIconset($header, $text, $var) { $class = (checkMainConfig($text,$var)) ? 'class="isdefault" ' : ' style="color:#0000ff;" class="notdefault" '; echo ''; echo $header; echo ''; echo ''; generateHelp($text); echo ''; } function generateTrueFalseBig($header, $text, $var) { $class = (checkMainConfig($text,$var)) ? 'class="isdefault" ' : ' style="color:#0000ff;" class="notdefault" '; echo ''; echo $header; echo ''; echo ''; generateHelp($text); echo ''; } function generateFolderDrop($header, $text, $var) { $class = (checkMainConfig($text,$var)) ? 'class="isdefault" ' : ' style="color:#0000ff;" class="notdefault" '; echo ''; echo $header; echo ''; echo ''; generateHelp($text); echo ''; } function generateDefaultNavigation($header, $text, $var, $offset = 0) { $class = (checkMainConfig($text,$var)) ? 'class="isdefault" ' : ' style="color:#0000ff;" class="notdefault" '; echo ''; printOffset($offset); echo $header; echo ''; echo ''; generateHelp($text); echo ''; } function generatePosition($header, $text, $var, $offset = 0) { $class = (checkMainConfig($text,$var)) ? 'class="isdefault" ' : ' style="color:#0000ff;" class="notdefault" '; echo ''; echo "    "; echo $header; generateCacheWarning($text); echo ''; echo ''; echo ''; } function generateAutoRotate($header, $text, $var) { $class = (checkMainConfig($text,$var)) ? 'class="isdefault" ' : ' style="color:#0000ff;" class="notdefault" '; echo ''; echo $header; generateCacheWarning($text); echo ''; echo ''; generateHelp($text); echo ''; } function generateHelp($id) { echo ""; echo ' '; } function generateCacheWarning($id) { if ($id == 'small_pic_size' || $id == 'resize_only_if_too_big' || $id == 'use_small_pic_size_as_height' || $id == 'thumb_pic_size' || $id == 'show_clipped_images' || $id == 'print_text' || $id == 'autorotate_images' || $id == 'text' || $id == 'watermark_small' || $id == 'position') { echo ' '; // echo '
'; } } /** * * ensure this file is being included by a parent file */ defined('_VALID_TWG') or die('Direct Access to this location is not allowed.'); $message = ""; if ($helper_action == "storemyconfig") { storemyconfig(); $message = $GLOBALS["config_messages"] ["configsaved"]; $file = "../my_config.php"; if (file_exists($file)) { include ($file); } } if ($helper_action == "deletemyconfig") { deletemyconfig(); $message = $GLOBALS["config_messages"] ["configdeleted"]; $file = "../config.php"; if (file_exists($file)) { include ($file); } } if ($helper_action == "deldebugfile") { if (file_exists($debug_file)) { unlink($debug_file); $message = $GLOBALS["config_messages"] ["debugdeleted"]; } else { $message = $GLOBALS["config_messages"] ["nodebugfound"]; } } if ($helper_action == "delimagecache") { delete_image_cache(); $message = $GLOBALS["config_messages"] ["cashdeleted"]; } if ($helper_action == "delrotfile") { delete_rotation_cache(); $message = $GLOBALS["config_messages"] ["rotationdeleted"]; } if ($helper_action == "delsession") { invalidateSession(); header("Location: " . make_link('logout', $dir, null)); exit; } if ($helper_action == "genpreviews") { generateOtherFormatsPreview("../" . $basedir); delete_tmp_cache(); $message = $GLOBALS["config_messages"] ["previmagegen"]; } if ($helper_action == "readiptc") { $input_invalid = true; include ("../inc/readxml.inc.php"); $xmldir = "../" . $xmldir; $basedir = "../" . $basedir; extractIptc($basedir); $message = $GLOBALS["config_messages"] ["readiptcmessage"]; } ?>
" . $message . ""; echo "

"; } ?>

" . $GLOBALS["config_screen"] ["confignotwr"] ."
"; } else if (!testParentdir()) { echo "
" . $GLOBALS["config_screen"] ["mainfolnotwr"] ."
"; $storeset = true; } ?>

 
 
 
 


' . $GLOBALS["config_form_block"]["link_more"] . ''; generateSkin( $GLOBALS['config_form_block'] ["skin"] . ' ' . $more , "skin", $skin); $more = ' ' . $GLOBALS["config_form_block"]["link_more"] . ''; generateIconset($GLOBALS['config_form_block'] ["icon_set"] . ' ' . $more, "icon_set", $icon_set); // generateTrueFalse($GLOBALS['config_form_block'] ["twgincl"], "iframe_include", $iframe_include); generateInput($GLOBALS['config_form_block'] ["heiiframe"], "iframe_height_ie", $iframe_height_ie); generateTrueFalseBig($GLOBALS['config_form_block'] ["shwbord"], "show_border", $show_border); generateTrueFalse($GLOBALS['config_form_block'] ["shwtwglogo"], "show_twg_logo_if_registered", $show_twg_logo_if_registered); ?>

 



'; echo ''; generateTrueFalse($GLOBALS['config_form_block'] ["sort_images_ascending"], "sort_images_ascending", $sort_images_ascending); generateTrueFalse($GLOBALS['config_form_block'] ["sort_by_date"], "sort_by_date", $sort_by_date); generateTrueFalse($GLOBALS['config_form_block'] ["sort_by_filedate"], "sort_by_filedate", $sort_by_filedate); generateTrueFalse($GLOBALS['config_form_block'] ["sort_albums"], "sort_albums", $sort_albums); generateTrueFalse($GLOBALS['config_form_block'] ["sort_albums_ascending"], "sort_albums_ascending", $sort_images_ascending); generateTrueFalse($GLOBALS["config_form_block"] ["sort_album_by_date"], "sort_album_by_date", $sort_album_by_date); ?>

 

' . $GLOBALS['config_form_block'] ["sort_header"] . '
' . $GLOBALS['config_form_block'] ['sort_text'] . '
 
$newparam=true; $newstring="12345";

">   


');" href="index.php?action=helper&twg_helper_action=deletemyconfig">


align=right src="_img/help.gif">

align=right src="_img/help.gif">

align=right src="_img/help.gif">

 

 
">
"; if (function_exists("sha1") && $use_sha1_for_password) { echo $GLOBALS["config_screen_main"] ["shahashval"] . $_POST['password'] . "': '" . sha1($_POST['password']) . "'"; } else { if (!function_exists("sha1") && $use_sha1_for_password) { echo $GLOBALS["config_screen_main"] ["shahashvalde"]; } echo "SHA256 hash value '" . $_POST['password'] . "': '" . sha2($_POST['password']) . "'"; } } ?>
 



 
 

');" href="index.php?action=helper&twg_helper_action=deldebugfile">