Menüauswahl:
Diese Rubrik erfasst den Großteil der historischen Nachweise, die Manfred Prescher zusammengetragen hat. Sie stellt damit eine Erweiterung der Geschichtszahlen aus dem vorangegangenen Hauptgliederungspunkt dar. Genießen Sie die Darstellungen der historischen Inhalte. Sie können hier die Zeitreise beginnen!
// Module Name
$mod_name = "Filepool Gallery";
// Module Version
$mod_version = "1.0";
// Module Author
$mod_author = "twenty4hours - Manuel Leibrock";
// Module Homepage
$mod_homepage = "http://www.twenty4hours.de";
// 1 = dynamic & static
// 2 = dynamic & static export of module code
// 3 = only dynamic
$mod_mode = 2;
// Generate PHP function to connect to openEngine database
$mod_useInternalDB = true;
?>
$this_module_path = "../modules/gallery";
$lang_input = "de";
$lang_input_page = "de";
$site_admin = "Admin@weissig-sachsen.de";
$site_name = "Weißig im Web";
function isAdmin() { return false; }
?>
include("../../html/pages/_config/config.php");
function connectDB()
{
global $db_server, $db_user, $db_password, $db_name;
$link = mysql_pconnect($db_server, $db_user, $db_password);
mysql_select_db($db_name);
return $link;
}
function closeDB($link)
{
mysql_close($link);
}
?>
function translatePath($page_file)
{
$file_name = ereg_replace("/", "_", $page_file);
if (substr($file_name, 0, 1) == "_")
{
$file_name = substr($file_name, 1);
}
return $file_name;
}
?>
function postext($Textfield) {
if(substr_count($Textfield, "|") < 1){$Textfield = "0"."|".$Textfield; }
$tf_array = explode("|",$Textfield); return $tf_array[count($tf_array) - 1];
}
?>
$link = connectDB();
$query = "SELECT * FROM ".$db_praefix."filepool GROUP BY folder_name";
$result = mysql_query($query);
$count = 1;
$select[0] = array("name" => "Kein Ordner","value" => "0");
while ($row = mysql_fetch_array($result))
{
$select[$count] = array("name" => $row["folder_name"],"value" => $row["folder_key"]);
$count ++;
}
closeDB($link);
editSelect("page_text2",$select,"Filepool Ordner wählen");
?>
editText("page_text5","Clearpos|Clearpos|...|Galeriebeschreibung", "no"); ?>
= postext(outputBlock("page_text5")); ?>
$filepool_key = outputBlock("page_text2");
if ($filepool_key != ''){
$files = get_filepool_key($filepool_key);
$picno = 0;
while ($row = mysql_fetch_array($files)){
$picno++;
createThumb("../img/pool/".$row["asset_filename"],"../img/thumbs/".
$row["asset_filename"],150,80);
?>
$Textfield = outputBlock("page_text5");
if(substr_count($Textfield, "|") < 1){$Textfield = "0"."|".$Textfield; }
$tf_array = explode("|",$Textfield);
for($z=0; $z < count($tf_array) - 1; $z++) {
$poscorr = intval(trim(strip_tags($tf_array[$z])));
if ($poscorr == $picno){ echo '
'; }
} ?>
}
}
?>