nach Anfragen zu den VVs:
es gibt nur eine aktuelle Version, das ist die 4.2 auf Contenido.
Das ist die Version, die weiter entwickelt wird.
Die VVs sind nur für Entwickler, die wissen, was sie tun!
http://sourceforge.net/projects/pdf4cms/
Für ein Projekt brauchte ich mehr Variablen, also gemacht,
für ein anderes Projekt brauchte ich Variablen und Tinas Hack mit den verschiedenen Benutzerrechten im Frontend und natürlich die aktuellen Bugfixe. Ob diese Sachen in die 4.4 eingehen entscheidet Eppi.
Gemäß GPL und als Erleichterung für Entwickler, die diese Features gebrauchen können, habe ich die Quelltexte als Ganzes veröffentlicht. Der offizielle Weg ist von 4.2 auf 4.4, die Du auf Eppis Spielwiese testen kannst.
Es gibt auch die Möglichkeit, Zip und PDF in die 4.2 einzubinden, dazu sind Module im alten Forum enthalten, zeitlich vor meinen.
Ich werde die VVs nur weiter entwickeln, wenn ich es brauche, da wir nicht die freien Ressourcen haben, eine Fork zu machen und es vor allem nicht wollen.
Meine Entwicklungen gehen nur in die offizielle Version ein, wenn sie auf der Planungslinie liegen.
So ein Projekt bleibt nur gut, so lange alle in eine Richtung gehen.
Gruss ekke
ohne die Variablen CMS_PDF und CMS_PDFDESCR
Code: Alles auswählen
NAME
link auf upgeloadete pdfs mit Symbol
BESCHREIBUNG:
42b2
hier ein modul mit dem man einen link auf ein mit contenido upgeloadetes pdf in eine seite integrieren kann und man dem PDF einen Namen und ein Symbol zuordnen kann.
Urfassung:goberlec@edu.uni-klu.ac.at
Erweiterung mit dem Symbol:
ekked@gmx.de
29.08.2002
IMPUT:
echo "<table align=\"left\" cellpadding=\"0\" cellspacing=\"0\"";
echo "<tr><td>Linkname:</td>";
echo "<td><input type=\"text\" size=\"30\" name=\"CMS_VAR[3]\" value=\"CMS_VALUE[3]\"></td>";
$pfad = $cfgClient[$client]["htmlpath"]["pdf"];
echo "<tr><td>Welches PDF soll als Link eingebunden werden?</td>";
echo "<td><select name=\"CMS_VAR[0]\" size=\"1\">";
if ("CMS_VALUE[0]" != 0) {
echo "<option value=\"0\">".$lngForm["nothing"]."</option>";
} else {
echo "<option value=\"0\" selected>".$lngForm["nothing"]."</option>";
}
$handle=opendir($pfad);
while ($file = readdir ($handle)) {
if ($file != "." && $file != "..") {
if ("CMS_VALUE[0]" != $file) {
echo "<option value=\"$file\">$file</option>";
} else {
echo "<option value=\"$file\" selected>$file</option>";
}
}
}
closedir($handle);
echo "</select></td></tr>";
echo "<input type=\"hidden\" name=\"CMS_VAR[5]\" value=\"".$value."\">";
echo "<tr><td>Symbol für PDF:</td>";
echo "<td><select name=\"CMS_VAR[5]\" size=\"1\">";
if ("CMS_VALUE[5]" != 0) {echo "<option value=\"0\">".$lngForm["nothing"]."</option>";}
else {echo "<option value=\"0\" selected>".$lngForm["nothing"]."</option>";}
$sql = "SELECT * FROM $cfgTab_upl WHERE idclient='$client' AND filetype='img' ORDER BY filename";
$db->query($sql);
while ($db->next_record()) {if ($db->f("idupl") != "CMS_VALUE[5]") {
echo "<option value=\"".$db->f("idupl")."\">".$db->f("filename")."</option>";
} else {
echo "<option value=\"".$db->f("idupl")."\" selected>".$db->f("filename")."</option>";
}
}
echo "</SELECT></td></tr></table>";
OUTPUT:
$pfad = $cfgClient[$client]["htmlpath"]["pdf"]."CMS_VALUE[0]";
if ("CMS_VALUE[5]" != "0") {
$sql = "SELECT * FROM $cfgTab_upl WHERE idupl='CMS_VALUE[5]'";
$db->query($sql);
while ($db->next_record()) {
echo "<a href=\"$pfad\"><img src=\"".$db->f("dirname")."/".$db->f("filename")."\" border=\"0\"> CMS_VALUE[3]</a>";
}
} else {
echo "<a href=\"$pfad\">CMS_VALUE[3]</a>";
}
Code: Alles auswählen
NAME:
Flashimport
BESCHREIBUNG:
- Anzeigen von Flash (swf)
- grösse des Flashfilms kann selber bestimmt werden
- bei keiner Angabe der grösse wird sie aus der Datai gelesen
- Flash Datein in den PDF Bereich uploaden
INPUT:
echo "<table border=0 cellspacing=0 cellpadding=0>
<tr>
<td align=right><font size=2>Flash Datei (*.swf):</font></td>
<td width=3> </td>
<td align=left valign=top>
<select name=\"CMS_VAR[0]\" size=\"1\">";
if ("CMS_VALUE[0]" != 0) {echo "
<option value=\"0\">".$lngForm["nothing"]."</option>";}
else {echo "
<option value=\"0\" selected>".$lngForm["nothing"]."</option>";}
$sql = "SELECT * FROM $cfgTab_upl WHERE idclient='$client' AND filetype='pdf' ORDER BY filename";
$db->query($sql);
while ($db->next_record()) {if ($db->f("idupl") != "CMS_VALUE[0]") {echo "
<option value=\"".$db->f("idupl")."\">".$db->f("filename")."</option>";} else {echo "
<option value=\"".$db->f("idupl")."\" selected>".$db->f("filename")."</option>";}}
echo "
</SELECT>
</td>
</tr>
<tr>
<td align=right><font size=2></font></td>
<td width=3> </td>
<td align=left valign=top><font size=2></font></td>
</tr>
<tr>
<td align=right><font size=2>Breite:</font></td>
<td width=3> </td>
<td align=left valign=top> <font size=2>
<input type=text name=CMS_VAR[1] size=5 value=CMS_VALUE[1]>
px </font></td>
</tr>
<tr>
<td align=right><font size=2>Länge:</font></td>
<td width=3> </td>
<td align=left valign=top> <font size=2>
<input type=text name=CMS_VAR[2] size=5 value=CMS_VALUE[2]>
px </font></td>
</tr>
<tr>
<td align=right><font size=2></font></td>
<td width=3> </td>
<td align=left valign=top><font size=2></font></td>
</tr>
<tr>
<td align=right><font size=2></font></td>
<td width=3> </td>
<td align=left valign=top>
<p><font size=2>Bei keiner eingabe der<br>
Länge oder Breite wird <br>
das richtige Mass aus<br>
der Flash Datei gelesen!</font></p>
</td>
</tr>
</table>";
OUTPUT:
$sql = "SELECT * FROM $cfgTab_upl WHERE idupl='CMS_VALUE[0]'";
$db->query($sql);$db->next_record();$navmod_img = "".$db->f("dirname")."/".$db->f("filename")."";
$bild = "$navmod_img";
$info = getimagesize($bild);
/*echo "Bildbreite: " . $info[0];
echo "Bildhöhe: " . $info[1];
echo "Grafik-Typ: " . $info[2];
echo "HTML-Zeichenkette: " . $info[3];
echo "<br>";*/
$breite = "CMS_VALUE[1]";
$hoehe = "CMS_VALUE[2]";
if ($breite == NULL || $breite == 0)
{
$breite = "$info[0]";
}
else
{
$breite = "$breite";
}
if ($hoehe == NULL || $hoehe == 0)
{
$hoehe = "$info[1]";
}
else
{
$hoehe = "$hoehe";
}
$zeigen = "<object width=$breite height=$hoehe>
<param name=movie value=$navmod_img>
<param name=quality value=high>
<PARAM NAME=menu VALUE=false>
<embed src=$navmod_img menu=false quality=high type=application/x-shockwave-flash width=$breite height=$hoehe>
</embed>
</object>";
if ($info[2] == "4")
{
echo "$zeigen";
}
else
{
echo "Ungültige Flash Datei !!!";
}
Code: Alles auswählen
----------------------------------------------------------------------
4.2VV --> 4.2VV11 23.09.2002
----------------------------------------------------------------------
bugfix 1 Björn
contenido/main.php
if ($area == "lang") {
$perm->check("admin");
include("main_lang.php");
}
Ersetzt mit
if ($area == "lang") {
$perm->check("aerea_lang");
include("main_lang.php");
}
bugfix2 Paul
front_frame/front_content_edit.inc.php
front_single/front_content_edit.inc.php
-----------------------------
SUCHEN:
-----------------------------
page_open(
array("sess" => "Contenido_Frontend_Session",
"auth" => "Contenido_Frontend_Challenge_Crypt_Auth",
"perm" => "Contenido_Perm"));
-----------------------------
ERSETZEN MIT:
-----------------------------
@page_open(
array("sess" => "Contenido_Session",
"auth" => "Contenido_Challenge_Crypt_Auth",
"perm" => "Contenido_Perm"));
-----------------------------
changes from Tina sales@jubidoo.de
front_content.php
Ändern ab Zeile 106
if ($public != 1) {
// echo "Diese Kategorie ist <b>geschützt</b> .....";
$auth->login_if($auth->auth["uid"] == "nobody");
} else {
// echo "Diese Kategorie ist <b>öffentlich</b>";
}
if ($public == 2) {
$perm->check("frontend2");
}
if ($public == 3) {
$perm->check("frontend3");
}
if ($public == 4) {
$perm->check("frontend4");
}
if ($public == 5) {
$perm->check("frontend5");
}
changelog für frontend user stufen 1-5
** conlib/perm.inc
ändern/neu anlegen ab Zeile 97
änd if ($k=="frontend") {$t="Frontend Stufe 1";}
neu if ($k=="frontend2") {$t="Frontend Stufe 2";}
neu if ($k=="frontend3") {$t="Frontend Stufe 3";}
neu if ($k=="frontend4") {$t="Frontend Stufe 4";}
neu if ($k=="frontend5") {$t="Frontend Stufe 5";}
** conlib/local.php
ändern ab Zeile 360
var $permissions = array(
"frontend" => 1,
"frontend2" => 2,
"frontend3" => 4,
"frontend4" => 8,
"frontend5" => 16,
"backend" => 32,
"area_con" => 64,
"area_con_conf" => 128,
"area_con_start" => 256,
"area_con_new" => 512,
"area_con_tpl" => 1024,
"area_str" => 2048,
"area_upl" => 4096,
"area_lay" => 8192,
"area_mod" => 16384,
"area_tpl" => 32768,
"area_news" => 65536,
"area_news_rcp" => 131072,
"area_stat" => 262144,
"area_user" => 524287,
"area_clients" => 1048574,
"area_lang" => 2097148,
"admin" => 4194296
);
** contenido/inc/str_show_tree.inc.php
ändern/neu ab Zeile 81
if ($db->f("public") == 1) {
echo "<TD class=content><a href=\"".$sess->url("main.php?action=50&idcat=".$db- >f("idcat")."&public=".$db->f("public"))."#clickedhere\"><img src=\"".$cfgPathImg."but_public.gif\" height=16 width=16 border=0 alt='".$lngStr["protect"]."'></a></TD>";
}
elseif ($db->f("public") == 0) {
echo "<TD class=content><a href=\"".$sess->url("main.php?action=50&idcat=".$db- >f("idcat")."&public=".$db->f("public"))."#clickedhere\"><img src=\"".$cfgPathImg."but_public_no.gif\" height=16 width=16 border=0 alt='".$lngStr["protect"]."'></a></TD>";
}
elseif ($db->f("public") == 2) {
echo "<TD class=content><a href=\"".$sess->url("main.php?action=50&idcat=".$db- >f("idcat")."&public=".$db->f("public"))."#clickedhere\"><img src=\"".$cfgPathImg."but_public_no2.gif\" height=16 width=16 border=0 alt='".$lngStr["protect"]."'></a></TD>";
}
elseif ($db->f("public") == 3) {
echo "<TD class=content><a href=\"".$sess->url("main.php?action=50&idcat=".$db- >f("idcat")."&public=".$db->f("public"))."#clickedhere\"><img src=\"".$cfgPathImg."but_public_no3.gif\" height=16 width=16 border=0 alt='".$lngStr["protect"]."'></a></TD>";
}
elseif ($db->f("public") == 4) {
echo "<TD class=content><a href=\"".$sess->url("main.php?action=50&idcat=".$db- >f("idcat")."&public=".$db->f("public"))."#clickedhere\"><img src=\"".$cfgPathImg."but_public_no4.gif\" height=16 width=16 border=0 alt='".$lngStr["protect"]."'></a></TD>";
}
elseif ($db->f("public") == 5) {
echo "<TD class=content><a href=\"".$sess->url("main.php?action=50&idcat=".$db- >f("idcat")."&public=".$db->f("public"))."#clickedhere\"><img src=\"".$cfgPathImg."but_public_no5.gif\" height=16 width=16 border=0 alt='".$lngStr["makepublic"]."'></a></TD>";
}
** contenido/main_str.php
ändern in ab Zeile 22
if ($action == 50) { //*********** Make public
strMakePublic($idcat, $lang, $public);
}
** contenido/inc/fnc_str.inc.php
ändern in ab Zeile 378
function strMakePublic ($idcat, $lang, $public) {
global $db;
global $cfgTab_cat_lang;
switch($public)
{
case 0: $public=2; break;
case 1: $public=0; break;
case 2: $public=3; break;
case 3: $public=4; break;
case 4: $public=5; break;
case 5: $public=1; break;
}
$sql = "UPDATE $cfgTab_cat_lang SET public='$public' WHERE idcat='$idcat' AND idlang='$lang' ";
$db->query($sql);
}
----------------------------------------------------------------------
4.2 --> 4.2VV 05.09.2002
----------------------------------------------------------------------
- setup\templates\german\config.php.tpl
added:
$cfgClient[1]["path"]["swf"] = $cfgClient[2]["path"]["frontend"]."swf/";
$cfgClient[1]["htmlpath"]["swf" ] = $cfgClient[2]["htmlpath"]["frontend"]."swf/";
$cfgClient[1]["frontendpath"]["swf"] = "swf/";
$cfgClient[1]["actionname"]["swf"] = "FLASH";
$cfgClient[1]["text"]["swf"] = "Laden Sie einen Flash-Film auf den Webserver";
$cfgClient[1]["filetype"]["swf"] = "swf";
$cfgClient[1]["path"]["pics"] = $cfgClient[1]["path"]["frontend"]."img/ pics/";
$cfgClient[1]["htmlpath"]["pics" ] = $cfgClient[1]["htmlpath"]["frontend"]."img/pics/";
$cfgClient[1]["frontendpath"]["pics"] = "img/pics/";
$cfgClient[1]["actionname"]["pics"] = "PICS";
$cfgClient[1]["text"]["pics"] = "Laden Sie weitere Bilder auf den Webserver";
$cfgClient[1]["filetype"]["pics"] = "img";
$cfgClient[1]["path"]["zip"] = $cfgClient[1]["path"]["frontend"]."zip/";
$cfgClient[1]["htmlpath"]["zip" ] = $cfgClient[1]["htmlpath"]["frontend"]."zip/";
$cfgClient[1]["frontendpath"]["zip"] = "zip/";
$cfgClient[1]["actionname"]["zip"] = "ZIP";
$cfgClient[1]["text"]["zip"] = "Laden Sie ein ZIP- Archive auf den Webserver";
$cfgClient[1]["filetype"]["zip"] = "zip";
// client 2
$cfgClient[2]["path"]["swf"] = $cfgClient[2]["path"]["frontend"]."swf/";
$cfgClient[2]["htmlpath"]["swf" ] = $cfgClient[2]["htmlpath"]["frontend"]."swf/";
$cfgClient[2]["frontendpath"]["swf"] = "swf/";
$cfgClient[2]["actionname"]["swf"] = "FLASH";
$cfgClient[2]["text"]["swf"] = "Laden Sie einen Flash-Film auf den Webserver";
$cfgClient[2]["filetype"]["swf"] = "swf";
$cfgClient[2]["path"]["pics"] = $cfgClient[2]["path"]["frontend"]."img/ pics/";
$cfgClient[2]["htmlpath"]["pics" ] = $cfgClient[2]["htmlpath"]["frontend"]."img/pics/";
$cfgClient[2]["frontendpath"]["pics"] = "img/pics/";
$cfgClient[2]["actionname"]["pics"] = "PICS";
$cfgClient[2]["text"]["pics"] = "Laden Sie weitere Bilder auf den Webserver";
$cfgClient[2]["filetype"]["pics"] = "img";
$cfgClient[2]["path"]["zip"] = $cfgClient[2]["path"]["frontend"]."zip/";
$cfgClient[2]["htmlpath"]["zip" ] = $cfgClient[2]["htmlpath"]["frontend"]."zip/";
$cfgClient[2]["frontendpath"]["zip"] = "zip/";
$cfgClient[2]["actionname"]["zip"] = "ZIP";
$cfgClient[2]["text"]["zip"] = "Laden Sie ein ZIP- Archive auf den Webserver";
$cfgClient[2]["filetype"]["zip"] = "zip";
---
- added
contenido/tpl/
tplInputField_CMS_ZIP.inc.php
tplInputField_CMS_SWF.inc.php
tplInputField_CMS_PDF.inc.php
- added
front_single/img_site and front_frame/img_site
but_editzip.gif
but_editswf.gif
but_editpdf.gif
front_single/img and front_frame/img
pdf.gif
zip.gif
- added
folder swf zip img/pics in front_single and front_frame
- added standard.sql and examples.sql
INSERT INTO con_mod (idmod, name, description, deletable, input, output, idclient, status, author, created, lastmodified) VALUES (15, 'FLASH mit Beschreibung', 'zieht das SWF für contenido42VV auf http://sourceforge.net/projects/pdf4cms/\r\nVerison 29.08.2002', 1, '', '$FlashFilm = "CMS_SWF[1]";\r\n$FlashSize = getimagesize($FlashFilm);\r\necho "<object classid=\\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\\" codebase=\\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#4,0,2,0\\" $FlashSize[3] align=\\"middle\\" id=\\"4458\\">";\r\necho "<param name=movie value=\\"CMS_SWF[1]\\">";\r\necho "<embed src=\\"CMS_SWF[1]\\" type=\\"application/x-shockwave-flash\\" $FlashSize[3] align=\\"middle\\" play=\\"false\\">";\r\necho "</embed></object>";', 1, 0, 'admin', '2002-09-05 08:44:01', '2002-09-05 08:44:51');
INSERT INTO con_mod (idmod, name, description, deletable, input, output, idclient, status, author, created, lastmodified) VALUES (16, 'FLASH mit Beschreibung', 'zieht das SWF für contenido42VV auf http://sourceforge.net/projects/pdf4cms/\r\nVersion 29.08.2002', 1, '', '$FlashFilm = "CMS_SWF[1]";\r\n$FlashSize = getimagesize($FlashFilm);\r\necho "<object classid=\\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\\" codebase=\\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#4,0,2,0\\" $FlashSize[3] align=\\"middle\\" id=\\"4458\\">";\r\necho "<param name=movie value=\\"CMS_SWF[1]\\">";\r\necho "<embed src=\\"CMS_SWF[1]\\" type=\\"application/x-shockwave-flash\\" $FlashSize[3] align=\\"middle\\" play=\\"false\\">";\r\necho "</embed></object>";', 2, 0, 'admin', '2002-09-05 08:45:44', '2002-09-05 08:45:44');
INSERT INTO con_mod (idmod, name, description, deletable, input, output, idclient, status, author, created, lastmodified) VALUES (17, 'Link auf hochgeladene Pdf\'s mit Symbol', 'für contenido42VV auf http://sourceforge.net/projects/pdf4cms/\r\nVersion 29.08.2002\r\nhier ein modul mit dem man einen link auf ein mit contenido upgeloadetes pdf in eine seite integrieren kann und man dem PDF einen Namen und ein Symbol zuordnen kann.', 1, 'echo "<table align=\\"left\\" cellpadding=\\"0\\" cellspacing=\\"0\\"";\r\necho "<input type=\\"hidden\\" name=\\"CMS_VAR[5]\\" value=\\"".$value."\\">";\r\necho "<tr valign=\\"top\\"><td width=\\"202\\">Symbol für PDF:</td>";\r\necho "<td><select name=\\"CMS_VAR[5]\\" size=\\"1\\">";\r\nif ("CMS_VALUE[5]" != 0) {echo "<option value=\\"0\\">".$lngForm["nothing"]."</option>";}\r\n else {echo "<option value=\\"0\\" selected>".$lngForm["nothing"]."</option>";}\r\n$sql = "SELECT * FROM $cfgTab_upl WHERE idclient=\'$client\' AND filetype=\'img\' ORDER BY filename";\r\n$db->query($sql);\r\nwhile ($db->next_record()) {if ($db->f("idupl") != "CMS_VALUE[5]") {\r\necho "<option value=\\"".$db->f("idupl")."\\">".$db->f("filename")."</option>";\r\n} else {\r\necho "<option value=\\"".$db->f("idupl")."\\" selected>".$db->f("filename")."</option>";\r\n}\r\n}\r\necho "</SELECT></td></tr></table>";', 'if ("CMS_VALUE[5]" != "0") {\r\n $sql = "SELECT * FROM $cfgTab_upl WHERE idupl=\'CMS_VALUE[5]\'";\r\n $db->query($sql);\r\n while ($db->next_record()) {\r\n echo "<table><tr><td align=left>";\r\n echo "<a href=\\"CMS_PDF[1]\\"><img src=\\"".$db->f("dirname")."/".$db->f("filename")."\\" border=\\"0\\"> CMS_PDFDESCR[1]</a>";\r\n echo "</td></tr></table>";\r\n }\r\n} else {\r\n echo "<table><tr><td align=left>";\r\n echo "<a href=\\"CMS_PDF[1]\\">CMS_PDFDESCR[1]</a>";\r\n echo "</td></tr></table>";\r\n}', 2, 0, 'admin', '2002-09-05 08:48:13', '2002-09-05 08:48:13');
INSERT INTO con_mod (idmod, name, description, deletable, input, output, idclient, status, author, created, lastmodified) VALUES (18, 'Link auf hochgeladene Pdf\'s mit Symbol', 'für contenido42VV auf http://sourceforge.net/projects/pdf4cms/\r\nVersion 29.08.2002\r\nhier ein modul mit dem man einen link auf ein mit contenido upgeloadetes pdf in eine seite integrieren kann und man dem PDF einen Namen und ein Symbol zuordnen kann.', 1, 'echo "<table align=\\"left\\" cellpadding=\\"0\\" cellspacing=\\"0\\"";\r\necho "<input type=\\"hidden\\" name=\\"CMS_VAR[5]\\" value=\\"".$value."\\">";\r\necho "<tr valign=\\"top\\"><td width=\\"202\\">Symbol für PDF:</td>";\r\necho "<td><select name=\\"CMS_VAR[5]\\" size=\\"1\\">";\r\nif ("CMS_VALUE[5]" != 0) {echo "<option value=\\"0\\">".$lngForm["nothing"]."</option>";}\r\n else {echo "<option value=\\"0\\" selected>".$lngForm["nothing"]."</option>";}\r\n$sql = "SELECT * FROM $cfgTab_upl WHERE idclient=\'$client\' AND filetype=\'img\' ORDER BY filename";\r\n$db->query($sql);\r\nwhile ($db->next_record()) {if ($db->f("idupl") != "CMS_VALUE[5]") {\r\necho "<option value=\\"".$db->f("idupl")."\\">".$db->f("filename")."</option>";\r\n} else {\r\necho "<option value=\\"".$db->f("idupl")."\\" selected>".$db->f("filename")."</option>";\r\n}\r\n}\r\necho "</SELECT></td></tr></table>";', 'if ("CMS_VALUE[5]" != "0") {\r\n $sql = "SELECT * FROM $cfgTab_upl WHERE idupl=\'CMS_VALUE[5]\'";\r\n $db->query($sql);\r\n while ($db->next_record()) {\r\n echo "<table><tr><td align=left>";\r\n echo "<a href=\\"CMS_PDF[1]\\"><img src=\\"".$db->f("dirname")."/".$db->f("filename")."\\" border=\\"0\\"> CMS_PDFDESCR[1]</a>";\r\n echo "</td></tr></table>";\r\n }\r\n} else {\r\n echo "<table><tr><td align=left>";\r\n echo "<a href=\\"CMS_PDF[1]\\">CMS_PDFDESCR[1]</a>";\r\n echo "</td></tr></table>";\r\n}', 1, 0, 'admin', '2002-09-05 08:48:51', '2002-09-05 08:48:51');
INSERT INTO con_mod (idmod, name, description, deletable, input, output, idclient, status, author, created, lastmodified) VALUES (19, 'Link auf hochgeladene Zip\'s mit Symbol', 'für contenido42VV auf http://sourceforge.net/projects/pdf4cms/\r\nVersion 04.09.2002\r\nhier ein modul mit dem man einen link auf ein mit contenido upgeloadetes zip in eine seite integrieren kann und man dem zip einen Namen und ein Symbol zuordnen kann.', 1, 'echo "<table align=\\"left\\" cellpadding=\\"0\\" cellspacing=\\"0\\"";\r\necho "<input type=\\"hidden\\" name=\\"CMS_VAR[6]\\" value=\\"".$value."\\">";\r\necho "<tr valign=\\"top\\"><td width=\\"202\\">Symbol für ZIP:</td>";\r\necho "<td><select name=\\"CMS_VAR[6]\\" size=\\"1\\">";\r\nif ("CMS_VALUE[6]" != 0) {echo "<option value=\\"0\\">".$lngForm["nothing"]."</option>";}\r\n else {echo "<option value=\\"0\\" selected>".$lngForm["nothing"]."</option>";}\r\n$sql = "SELECT * FROM $cfgTab_upl WHERE idclient=\'$client\' AND filetype=\'img\' ORDER BY filename";\r\n$db->query($sql);\r\nwhile ($db->next_record()) {if ($db->f("idupl") != "CMS_VALUE[6]") {\r\necho "<option value=\\"".$db->f("idupl")."\\">".$db->f("filename")."</option>";\r\n} else {\r\necho "<option value=\\"".$db->f("idupl")."\\" selected>".$db->f("filename")."</option>";\r\n}\r\n}\r\necho "</SELECT></td></tr></table>";', 'if ("CMS_VALUE[6]" != "0") {\r\n $sql = "SELECT * FROM $cfgTab_upl WHERE idupl=\'CMS_VALUE[6]\'";\r\n $db->query($sql);\r\n while ($db->next_record()) {\r\n echo "<table><tr><td align=left>";\r\n echo "<a href=\\"CMS_ZIP[1]\\"><img src=\\"".$db->f("dirname")."/".$db->f("filename")."\\" border=\\"0\\"> CMS_ZIPDESCR[1]</a>";\r\n echo "</td></tr></table>";\r\n }\r\n} else {\r\n echo "<table><tr><td align=left>";\r\n echo "<a href=\\"CMS_ZIP[1]\\">CMS_ZIPDESCR[1]</a>";\r\n echo "</td></tr></table>";\r\n}', 1, 0, 'admin', '2002-09-05 08:50:29', '2002-09-05 08:50:29');
INSERT INTO con_mod (idmod, name, description, deletable, input, output, idclient, status, author, created, lastmodified) VALUES (20, 'Link auf hochgeladene Zip\'s mit Symbol', 'für contenido42VV auf http://sourceforge.net/projects/pdf4cms/\r\nVersion 04.09.2002\r\nhier ein modul mit dem man einen link auf ein mit contenido upgeloadetes zip in eine seite integrieren kann und man dem zip einen Namen und ein Symbol zuordnen kann.', 1, 'echo "<table align=\\"left\\" cellpadding=\\"0\\" cellspacing=\\"0\\"";\r\necho "<input type=\\"hidden\\" name=\\"CMS_VAR[6]\\" value=\\"".$value."\\">";\r\necho "<tr valign=\\"top\\"><td width=\\"202\\">Symbol für ZIP:</td>";\r\necho "<td><select name=\\"CMS_VAR[6]\\" size=\\"1\\">";\r\nif ("CMS_VALUE[6]" != 0) {echo "<option value=\\"0\\">".$lngForm["nothing"]."</option>";}\r\n else {echo "<option value=\\"0\\" selected>".$lngForm["nothing"]."</option>";}\r\n$sql = "SELECT * FROM $cfgTab_upl WHERE idclient=\'$client\' AND filetype=\'img\' ORDER BY filename";\r\n$db->query($sql);\r\nwhile ($db->next_record()) {if ($db->f("idupl") != "CMS_VALUE[6]") {\r\necho "<option value=\\"".$db->f("idupl")."\\">".$db->f("filename")."</option>";\r\n} else {\r\necho "<option value=\\"".$db->f("idupl")."\\" selected>".$db->f("filename")."</option>";\r\n}\r\n}\r\necho "</SELECT></td></tr></table>";', 'if ("CMS_VALUE[6]" != "0") {\r\n $sql = "SELECT * FROM $cfgTab_upl WHERE idupl=\'CMS_VALUE[6]\'";\r\n $db->query($sql);\r\n while ($db->next_record()) {\r\n echo "<table><tr><td align=left>";\r\n echo "<a href=\\"CMS_ZIP[1]\\"><img src=\\"".$db->f("dirname")."/".$db->f("filename")."\\" border=\\"0\\"> CMS_ZIPDESCR[1]</a>";\r\n echo "</td></tr></table>";\r\n }\r\n} else {\r\n echo "<table><tr><td align=left>";\r\n echo "<a href=\\"CMS_ZIP[1]\\">CMS_ZIPDESCR[1]</a>";\r\n echo "</td></tr></table>";\r\n}', 2, 0, 'admin', '2002-09-05 08:51:01', '2002-09-05 08:51:01');
INSERT INTO con_type (idtype, type, code, description, status, author, created, lastmodified) VALUES (9, 'CMS_PDF', '$tmp = $a_content["CMS_PDF"][$val];\r\n$sql = "SELECT * FROM $cfgTab_upl WHERE idclient=\'$client\' AND idupl=\'$tmp\'";\r\n$db2 = new DB_Contenido;\r\n$db2->query($sql);\r\nif ($db2->next_record()) {$tmp = $cfgClient[$client]["frontendpath"][$db2->f("dirname")].$db2->f("filename");}\r\n$tmp = htmlspecialchars($tmp);\r\n$tmp = str_replace("\'", "\\\'", $tmp);', 'PDF', 0, '', '2002-09-05 19:04:21', '2002-09-05 19:04:21');
INSERT INTO con_type (idtype, type, code, description, status, author, created, lastmodified) VALUES (10, 'CMS_PDFDESCR', '$tmp = $a_content["CMS_PDFDESCR"][$val];\r\n$tmp = htmlspecialchars($tmp);\r\n$tmp = str_replace("\'", "\\\'", $tmp);\r\nif ($edit) {$editbutton = "<A HREF=\\"".$sess->url("front_content_edit.inc.php?action=10&idcat=$idcat&idside=$idside&idsidelang=$idsidelang&type=CMS_PDF&typenr=$val&lang=$lang")."\\"><IMG SRC=\\"".$cfgPathFrontendImg."but_editpdf.gif\\" border=0></A>";\r\n$editbutton = AddSlashes(AddSlashes($editbutton));\r\n$tmp = $tmp.$editbutton;}', 'Beschreibung', 0, '', '2002-09-05 19:04:28', '2002-09-05 19:04:28');
INSERT INTO con_type (idtype, type, code, description, status, author, created, lastmodified) VALUES (11, 'CMS_SWF', '$tmp = $a_content["CMS_SWF"][$val];\r\n$sql = "SELECT * FROM $cfgTab_upl WHERE idclient=\'$client\' AND idupl=\'$tmp\'";\r\n$db2 = new DB_Contenido;\r\n$db2->query($sql);\r\nif ($db2->next_record()) {$tmp = $cfgClient[$client]["frontendpath"][$db2->f("dirname")].$db2->f("filename");}\r\n$tmp = htmlspecialchars($tmp);\r\n$tmp = str_replace("\'", "\\\'", $tmp);', 'FLASH', 0, '', '2002-09-05 19:04:21', '2002-09-05 19:04:21');
INSERT INTO con_type (idtype, type, code, description, status, author, created, lastmodified) VALUES (12, 'CMS_SWFDESCR', '$tmp = $a_content["CMS_SWFDESCR"][$val];\r\n$tmp = htmlspecialchars($tmp);\r\n$tmp = str_replace("\'", "\\\'", $tmp);\r\nif ($edit) {$editbutton = "<A HREF=\\"".$sess->url("front_content_edit.inc.php?action=10&idcat=$idcat&idside=$idside&idsidelang=$idsidelang&type=CMS_SWF&typenr=$val&lang=$lang")."\\"><IMG SRC=\\"".$cfgPathFrontendImg."but_editswf.gif\\" border=0></A>";\r\n$editbutton = AddSlashes(AddSlashes($editbutton));\r\n$tmp = $tmp.$editbutton;}', 'Beschreibung', 0, '', '2002-09-05 19:04:28', '2002-09-05 19:04:28');
INSERT INTO con_type (idtype, type, code, description, status, author, created, lastmodified) VALUES (13, 'CMS_ZIP', '$tmp = $a_content["CMS_ZIP"][$val];\r\n$sql = "SELECT * FROM $cfgTab_upl WHERE idclient=\'$client\' AND idupl=\'$tmp\'";\r\n$db2 = new DB_Contenido;\r\n$db2->query($sql);\r\nif ($db2->next_record()) {$tmp = $cfgClient[$client]["frontendpath"][$db2->f("dirname")].$db2->f("filename");}\r\n$tmp = htmlspecialchars($tmp);\r\n$tmp = str_replace("\'", "\\\'", $tmp);', 'ZIP', 0, '', '2002-09-04 19:04:21', '2002-09-04 19:04:21');
INSERT INTO con_type (idtype, type, code, description, status, author, created, lastmodified) VALUES (14, 'CMS_ZIPDESCR', '$tmp = $a_content["CMS_ZIPDESCR"][$val];\r\n$tmp = htmlspecialchars($tmp);\r\n$tmp = str_replace("\'", "\\\'", $tmp);\r\nif ($edit) {$editbutton = "<A HREF=\\"".$sess->url("front_content_edit.inc.php?action=10&idcat=$idcat&idside=$idside&idsidelang=$idsidelang&type=CMS_ZIP&typenr=$val&lang=$lang")."\\"><IMG SRC=\\"".$cfgPathFrontendImg."but_editzip.gif\\" border=0></A>";\r\n$editbutton = AddSlashes(AddSlashes($editbutton));\r\n$tmp = $tmp.$editbutton;}', 'Beschreibung', 0, '', '2002-09-04 19:04:28', '2002-09-04 19:04:28');