Contenido 4.4.3-pre2 early access

Fragen zur Installation von CONTENIDO 4.9? Probleme bei der Konfiguration? Hinweise oder Fragen zur Entwicklung des Systemes oder zur Sicherheit?
timo
Beiträge: 6284
Registriert: Do 15. Mai 2003, 18:32
Wohnort: Da findet ihr mich nie!
Kontaktdaten:

Beitrag von timo » Mo 9. Feb 2004, 10:00

emergence hat geschrieben:

Code: Alles auswählen

$code = preg_replace("/<\/body>/i", "$contentform</body", $code);
sollte aber

Code: Alles auswählen

$code = preg_replace("/<\/body>/i", "$contentform</body>", $code);
sein...
ist gefixt.
emergence hat geschrieben:findet sich

Code: Alles auswählen

$include = $cfgClient[$db->f("idclient")]["path"]["frontend"] . $what;
sollte

Code: Alles auswählen

$include = $cfgClient[$idclient]["path"]["frontend"] . $what;
sein...
hab ich auch geändert.

PickPay
Beiträge: 164
Registriert: Di 2. Dez 2003, 19:38
Wohnort: Zürich
Kontaktdaten:

Beitrag von PickPay » Mo 9. Feb 2004, 16:07

Wann darf man die 4.4.3 etwa erwarten? Ich meine wird es etwa in 2-3 Wochen soweit sein, oder dauert es länger. Ich frage, weil ich eine Webseite erstellen soll und nicht sicher bin, ob ich noch die 4.4.2 installieren oder besser auf die 4.4.3 warten soll.

timo
Beiträge: 6284
Registriert: Do 15. Mai 2003, 18:32
Wohnort: Da findet ihr mich nie!
Kontaktdaten:

Beitrag von timo » Mo 9. Feb 2004, 16:26

du kannst doch mit der 4.4.2 loslegen und dann auf die 4.4.3 upgraden -> neue Features gibt es nicht, nur Bugfixes.

PickPay
Beiträge: 164
Registriert: Di 2. Dez 2003, 19:38
Wohnort: Zürich
Kontaktdaten:

Beitrag von PickPay » Mo 9. Feb 2004, 16:30

Hm, ich bin halt bei Updates immer etwas skeptisch. Ausserdem ist meine 4.4.2 zum Teil modifiziert. Ich weiss net, ob da ein Update so einfach ist.

emergence
Beiträge: 10641
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence » Mo 9. Feb 2004, 16:35

dann lad dir den patch runter und pfleg die änderungen händisch ein...
http://www.contenido.de/snapshots/conte ... .patch.bz2
zumindestens siehst du wo was geändert wurde...
ob du dass übernehmen möchtest bleibt dann alleine dir vorbehalten...

emergence
Beiträge: 10641
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence » Mo 9. Feb 2004, 22:11

es sollte noch umbedingt der hinweis mit lock table berechtigung aktiviert werden (kann auch sein, dass dies jetzt schon läuft...) eventuell auch in system eigenschaften...
intressant wäre dies auch eventuell über eine konfigurations option wie chobbert dies mal beschrieben hat, eventuell komplett zu umgehen...

das andere hauptproblem bei den meisten usern ist die haupt und service navigation-> die quotes bei CMS_VALUE sollten nochmals überprüft werden, und gegebenenfalls ergänzt werden...

alles weitere sind peanuts...

andrej
Beiträge: 333
Registriert: Mi 8. Okt 2003, 09:46
Kontaktdaten:

Beitrag von andrej » Di 10. Feb 2004, 22:45

hallo,
so ich habe wieder ein problem. ich habe mir ein ein komplettes wamp packet von apachefrieds.de runtergeldaen. und alles installiert. ging auch wirklich einfach. was mir an diesem packeet gefällt, das dort wirklich alles drin ist.

ich glaube mein provider benutzt dieses oder ähnliches packet auch, da die features alle gleich sind. bis auf die option safe_mode - aktivated

so aber nun zu meinem eigentlichen problem.
ihm editor kann ich nichts bearbeiten. da mir immer gesagt wird das die seite nicht erreichbar oder offline ist.
wenn ich ein neues modul erstelle. kann ich es nur ein mal abspeichern. ändern oder löschen kann ich diesen nicht. und dieser modul überschreibt dann alle meine templates. und dann funktioniert natürlich die webseite nicht.
kann mir vielleicht jemand helfen contenido bei dieser einstellung zum laufen zu überzeugen ?

ich habe hier unten meine config aufgelistet, und auch die error logs.

danke im voraus

andrej


Code: Alles auswählen

Anzahl der Artikel 44 
Serverbetriebssystem Apache/2.0.48 (Win32) mod_perl/1.99_10 Perl/v5.8.0 mod_ssl/2.0.48 OpenSSL/0.9.7c PHP/4.3.4 
MySQL Serverversion 4.0.16-max-debug 
Installierte PHP-Version 4.3.4 
safe_mode Deaktiviert 
magic_quotes_gpc Aktiviert 
magic_quotes_runtime Deaktiviert 
gpc_order GPC 
memory_limit  
max_execution_time 1200 
Deaktivierte Funktionen nothing disabled 
Gettext extension nicht geladen 
sql.safe_mode Deaktiviert 
GD-Bibliothek: siehe nächste zeile
Einstellungen Werte 
GD Support  enabled  
GD Version  bundled (2.0.15 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
GIF Read Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
XBM Support  enabled  
Fehler:

Code: Alles auswählen

Contenido Error Log
[10-Feb-2004 22:24:06] Invalid SQL: lock tables cms_sequence write<br><br>
[10-Feb-2004 22:24:06] lock() failed.
[10-Feb-2004 22:24:06] cannot lock cms_sequence - has it been created?
[10-Feb-2004 22:30:11] Invalid SQL: lock tables cms_sequence write<br><br>
[10-Feb-2004 22:30:11] lock() failed.
[10-Feb-2004 22:30:11] cannot lock cms_sequence - has it been created?

Contenido Upgrade Error Log
2004-Feb-Tue 22:22:52: error 1068 (Multiple primary key defined) - Invalid SQL:   ALTER TABLE cms_template CHANGE COLUMN idtpl idtpl int(10) NOT NULL DEFAULT '0' PRIMARY KEY<br><br>

[10-Feb-2004 22:43:13] Invalid SQL: lock tables cms_sequence write<br><br>

[10-Feb-2004 22:43:13] lock() failed.

[10-Feb-2004 22:43:13] cannot lock cms_sequence - has it been created?

[10-Feb-2004 22:43:13] Invalid SQL: INSERT INTO

                    cms_actionlog

                SET

                    idlog = 0,

                    user_id = 'bed77bf881c52caf14da5d0b9cd84bc8',

                    idclient = 1,

                    idlang = 1,

                    idaction = 20,

                    idcatart = '0',

                    logtimestamp = '2004-02-10 22:43:13'<br><br>

[10-Feb-2004 22:43:13] Invalid SQL: lock tables cms_sequence write<br><br>

[10-Feb-2004 22:43:13] lock() failed.

[10-Feb-2004 22:43:13] cannot lock cms_sequence - has it been created?

[10-Feb-2004 22:43:13] Invalid SQL: INSERT INTO cms_mod (idmod,name, description, deletable, input, output, template, idclient, author, created, lastmodified) VALUES ('0','Artikel - der Hammer', '/** 

* Artikelliste 

* 

* Liste von Artikeln mit mehreren Daten basierend 

* auf 4fb referenz modul 

* 1.Gibt die Subheadline eines Artikel mit aus 

* 2.Anschnitte nur nach ganzen Wörtern 

* 3.Thumnails werden vernünftig berechnet 

* 4.Image für Erzeugung von Thumbs kann gewählt werden 

* Author : Evert Smit / Dirk Uptmoor / Peter Beauvain 

* Copyright : None 

* Created : 13-07-03 

* Modified : 16-08-02 /20-09-03 upt /02-02-04 Beau 

*/ ', '1', '/** 

* Artikelliste 

* 

* Liste von Artikeln mit mehreren Daten basierend 

* auf 4fb referenz modul 

* 1.Gibt die Subheadline eines Artikel mit aus 

* 2.Anschnitte nur nach ganzen Wörtern 

* 3.Thumnails werden vernünftig berechnet 

* 4.Image für Erzeugung von Thumbs kann gewählt werden 

* Author : Evert Smit / Dirk Uptmoor / Peter Beauvain 

* Copyright : None 

* Created : 13-07-03 

* Modified : 16-08-02 /20-09-03 upt /02-02-04 Beau 

*/ 



// selected category 

$selected = \"CMS_VALUE[0]\"; 

$seldir = \"CMS_VALUE[9]\"; 

$selimg = \"CMS_VALUE[11]\"; 

//funktion für die checkboxen 

function d_checked($which) { 

  if ($which != \"\") { 

    return \"checked\"; 

  } 

} // end function 







echo \"<table cellspacing=\\\"0\\\" cellpadding=\\\"2\\\" border=\\\"0\\\"> 

         <tr bgcolor=\\\"#E8E8EE\\\" valign=\\\"top\\\"> 

            <td></td> 

            <td><input type=\\\"checkbox\\\" value=\\\"on\\\" \".d_checked(\"CMS_VALUE[14]\").\" name=\\\"CMS_VAR[9]\\\"></td> 

            <td width=\\\"120\\\">Ausgabe mit Startartikel</td> 

            <td></td> 

<td>Kategorie wählen:<br> 

          

<select name=\\\"CMS_VAR[0]\\\">\"; 



if($selected!=\"0\" && $selected!=\"\"){ 

             echo\"<option value=\\\"0\\\">--- kein ---</option>\"; 



            }else{ 

            echo\"<option selected=\\\"selected\\\" value=\\\"0\\\">--- kein ---</option>\"; 

            } 



            // fetch all categorys 

            $query = \"SELECT A.idcat, A.level, C.name FROM \".$cfg[\"tab\"][\"cat_tree\"].\" AS A, \". 

                     $cfg[\"tab\"][\"cat\"].\" AS B,  \".$cfg[\"tab\"][\"cat_lang\"].\" AS C WHERE A.idcat=B.idcat \". 

                     \"AND B.idcat=C.idcat AND C.idlang=\'$lang\' AND B.idclient=\'$client\' \". 

                     \"AND C.visible=1 ORDER BY A.idtree\"; 

            // execute query 

            $db->query($query); 



            // loop result and build the options 

            while ($db->next_record()) { 



              // indent spacer 

              $spaces = \"|\"; 



              // how many levels 

              $levels = $db->f(\"level\"); 



              for ($i = 0; $i < $levels; $i ++) { 

                // add 2 spaces for every level 

                $spaces = $spaces . \"--\"; 



              } // end for 

              

              $spaces .= \">\"; 





              if ($selected == $db->f(\"idcat\")) { 

                // selected category 

                echo \"<option selected=\\\"selected\\\" value=\\\"\". $db->f(\"idcat\") .\"\\\">\". $spaces . $db->f(\"name\") .\"</option>\"; 



              } else { 

                // category 

                echo \"<option value=\\\"\". $db->f(\"idcat\") .\"\\\">\". $spaces . $db->f(\"name\") .\"</option>\"; 



              } // end if 



            } // end while 



echo \"</select>\"; 





        

echo \"</td> 

<td></td>      

</tr> 

      <tr valign=\\\"top\\\"> 

         <td></td> 

         <td></td> 

         <td width=\\\"120\\\"></td> 

            <td></td> 

            <td>Überschrift: (wenn leer, keine Ausgabe)<br> 

               <input type=\\\"text\\\" name=\\\"CMS_VAR[2]\\\" value=\\\"CMS_VALUE[2]\\\" size=\\\"24\\\"></td> 

         </tr> 

         <tr bgcolor=\\\"#E8E8EE\\\" valign=\\\"top\\\"> 

            <td></td> 

            <td> <input type=\\\"checkbox\\\" value=\\\"on\\\" \".d_checked(\"CMS_VALUE[4]\").\" name=\\\"CMS_VAR[4]\\\"> </td> 

            <td width=\\\"120\\\">Ausgabe der Artikel-Headline</td> 

            <td></td> 

            <td>Angezeigte Zeichen Artikel-Headline:<br> 

               <input type=\\\"text\\\" name=\\\"CMS_VAR[3]\\\" value=\\\"CMS_VALUE[3]\\\" size=\\\"24\\\"></td> 

         </tr> 

         <tr valign=\\\"top\\\"> 

            <td></td> 

            <td><input type=\\\"checkbox\\\" value=\\\"on\\\" \".d_checked(\"CMS_VALUE[5]\").\"  name=\\\"CMS_VAR[5]\\\"></td> 

            <td width=\\\"120\\\">Ausgabe der Artikel-Subheadline:</td> 

            <td></td> 

            <td>Angezeigte Zeichen Artikel-Subheadline:<br> 

               <input type=\\\"text\\\" name=\\\"CMS_VAR[6]\\\" value=\\\"CMS_VALUE[6]\\\" size=\\\"24\\\"></td> 

         </tr> 

         <tr valign=\\\"top\\\"> 

            <td></td> 

            <td><input type=\\\"checkbox\\\" value=\\\"on\\\" \".d_checked(\"CMS_VALUE[12]\").\"  name=\\\"CMS_VAR[12]\\\"></td> 

            <td width=\\\"120\\\">Ausgabe der Artikel-Text:</td> 

            <td></td> 

            <td>Angezeigte Zeichen Artikel-Text:<br> 

               <input type=\\\"text\\\" name=\\\"CMS_VAR[13]\\\" value=\\\"CMS_VALUE[13]\\\" size=\\\"24\\\"></td> 

         </tr>        

         <tr bgcolor=\\\"#E8E8EE\\\" valign=\\\"top\\\"> 

            <td></td> 

            

            <tr bgcolor=\\\"#E8E8EE\\\" valign=\\\"top\\\">  

            <td></td> 

            <td><input type=\\\"checkbox\\\" value=\\\"on\\\" \".d_checked(\"CMS_VALUE[7]\").\"  name=\\\"CMS_VAR[7]\\\" ></td> 

            <td width=\\\"120\\\">Ausgabe der Thumbnails:</td> 

            <td></td> 

            <td>Bildcontainer für Thumbnail Quelle:<br>\"; 

                



$db  = new DB_Contenido; 

$query = \"SELECT output AS out, name AS beschreibung FROM \".$cfg[\"tab\"][\"mod\"].\" \"; 

$db->query($query); 

echo\"<select name=\\\"CMS_VAR[11]\\\">\"; 

echo\"<option value=\\\"kein\\\">-- kein --</option> \"; 

while ($db->next_record()) { 

$frontendpath = $db->f(\"out\"); 

$name = $db->f(\"beschreibung\"); 



$rest = substr(\"$frontendpath\", 3, 30); 



$find = strpos($rest,\"CMS_IMG\"); 

if ($find === false) { 



} 



else { 









$ok = substr($rest, $find, 10); 



$nummer = substr($ok, 8, 1); 





?> 

            <option value=\"<?php echo $nummer ?>\"<?php if ($selimg == $nummer) echo \" selected\" ?>><?php echo $db->f(\"beschreibung\") ?> 

<? 



} 





} 



echo\" </option> </select> \"; 

echo\"</td> 



</tr> 

<td></td><td></td> 

<td width=\\\"120\\\">Thumbnail Ordner</td> 



<td></td><td>Bitte wählen:<br><select name=\\\"CMS_VAR[9]\\\" size=\\\"1\\\">\"; 

echo\"<option value=\\\"kein\\\">-- kein --</option>\"; 



$db  = new DB_Contenido; 

$query = \"SELECT DISTINCT dirname FROM \".$cfg[\"tab\"][\"upl\"].\" ORDER BY dirname ASC\"; 

$db->query($query); 

while ($db->next_record()) { 



?> 

            <option value=\"<?php echo $db->f(\"dirname\") ?>\"<?php if ($seldir == $db->f(\"dirname\")) echo \" selected\" ?>><?php echo $db->f(\"dirname\") ?></option> 

<?php 

   } 

echo \"</select></td> 





<tr valign=\\\"top\\\"> 

<td></td> 

<td></td> 

<td></td> 

<td></td> 



</tr> 

</table> 

\"; //Ende ', '<? 

/*********************************************** 

* CONTENIDO MODUL - OUTPUT 

* 

* Erweiterte Artikel liste 

* 

* Liste von Artikeln mit mehreren Daten basierend 

* auf 4fb referenz modul 

* 1.Gibt die Subheadline eines Artikel mit aus 

* 2.Anschnitte nur nach ganzen Wörtern 

* 3.Thumnails werden vernünftig berechnet 

* 4.Image für Erzeugung von Thumbs kann gewählt werden 

* Author : Evert Smit / Dirk Uptmoor / Peter Beauvain 

* Copyright : None 

* Created : 13-07-03 

* Modified : 16-08-02 /20-09-03 upt /02-02-04 Beau 

************************************************/ 

//Frontendpfad ermitteln 

$query = \"SELECT frontendpath FROM \".$cfg[\"tab\"][\"clients\"].\" WHERE idclient=\'\".$client.\"\'\"; 

$db->query($query); 

$db->next_record(); 

$frontendpath = $db->f(\"frontendpath\"); 







$startarton = \"AND CATART.is_start = \'0\' AND\"; 



//soll der startartikel mit ausgegeben werden?. 

$print_startartikel = \"CMS_VALUE[14]\"; 

if($print_startartikel !=\"\"){ 

$startarton = \"AND\"; 



} 



//die Überschrift wird ausgegeben wenn sie nicht leer ist. 

$print_mainheadline = \"CMS_VALUE[2]\"; 



//soll headline ausgegeben werden? 

$print_headline = \"CMS_VALUE[4]\"; 



//soll subheadline ausgegeben werden? 

$print_subheadline = \"CMS_VALUE[5]\"; 



//soll text ausgegeben werden? 

$print_text = \"CMS_VALUE[12]\"; 



//soll ein thumnail ausgegeben werden? 

$print_thumbnail = \"CMS_VALUE[7]\"; 



//thumbnail breite 

$thumbnail_width = \"CMS_VALUE[8]\"; 



//wenn thumbnails = 0 

$imagetag = \"\"; 







// second db class instance 

$db2 = new DB_Contenido; 



// selected category 

$selcat = \"CMS_VALUE[0]\"; 



if($selcat!=\"0\" && $selcat!=\"\"){ 



// select all articles in category widthout start article 

$query = \"SELECT ARTLANG.idart, ARTLANG.idartlang, ARTLANG.lastmodified FROM \".$cfg[\"tab\"][\"cat_art\"].\" AS CATART, \". 

$cfg[\"tab\"][\"art_lang\"].\" AS ARTLANG \". 

\"WHERE CATART.idcat = \'$selcat\' AND ARTLANG.idart = CATART.idart AND ARTLANG.idlang = \'$lang\' \".\" $startarton \" .\"ARTLANG.online = \'1\' ORDER BY ARTLANG.lastmodified DESC\"; 



// execute query 

$db->query($query); 



unset($articleID); 

unset($linkID); 



// get id\'s of sub articles 

while ($db->next_record()) { 

$articleID[] = $db->f(\"idartlang\"); 

$linkID[] = $db->f(\"idart\"); 

} // end while 





/****************** start table **************************/ 

echo \' 

<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"380px\" 

\'; 





/**** Überschrift der Artikelliste wird ausgegeben, wenn nicht leer ********/ 



if($print_mainheadline !=\"\"){ 

echo \' 

<tr> 

<td colspan=\"2\" class=\"headline\"> CMS_VALUE[2] <br></td> 

<td align=\"right\"> </td> 

</tr> 



<tr> 

<td class=\"text\">  </td> 

<td align=\"right\"> </td> 

</tr> 

\'; 

} 

if($print_mainheadline ==\"\"){ 

echo \' 

<tr> 

<td class=\"text\">  </td> 

<td align=\"right\"> </td> 

</tr> 

\'; 

} 







// Loop through articles 

if (is_array($articleID)) { 

foreach ($articleID as $key => $value) { 

// select all CMS variables of the article 



if($print_headline!=\"0\" && $print_headline!=\"\"){ 

$sql = \"SELECT * FROM \".$cfg[\"tab\"][\"content\"].\" WHERE idartlang = \'$value\' AND idtype = \'1\' AND typeid = \'1\'\"; 



$db->query($sql); 

$db->next_record(); 





$headline = urldecode($db->f(\"value\")); 







for ($j=\"CMS_VALUE[3]\"; $j < \"CMS_VALUE[3]\"+20; $j++) 

{ 

$headline1 = substr($headline , 0, $j); 



$cut = substr($headline, $j); 

if ((ord ($cut) == 32)||(ord ($cut) == 44)||(ord ($cut) == 45)) { 



$headline= substr($headline , 0, $j); 

$headline .= \' .....\'; 

} 

} 

} 









$cfgTab_art_lang = $cfg[\'tab\'][\'art_lang\']; 

$cfgTab_content = $cfg[\'tab\'][\'content\']; 



$sql = \"SELECT A.author AS author, B.lastmodified AS lastmod FROM $cfgTab_art_lang AS A, $cfgTab_content AS B WHERE A.idart=\'$value\' AND B.idartlang=A.idartlang ORDER BY B.lastmodified DESC\"; 

$db->query($sql);$db->next_record(); 

$modifydate= date(\"d.m.y\",strtotime($db->f(\"lastmod\"))); 

$modifytime= date(\"H:i\",strtotime($db->f(\"lastmod\"))); 













if($print_subheadline!=\"0\" && $print_subheadline!=\"\"){ 

$sql_subheadline = \"SELECT * FROM \".$cfg[\"tab\"][\"content\"].\" WHERE idartlang = \'$value\' AND idtype = \'1\' AND typeid = \'2\'\"; 



$db->query($sql_subheadline); 

$db->next_record(); 



$subheadline = urldecode($db->f(\"value\")); 





for ($i=\"CMS_VALUE[6]\"; $i < \"CMS_VALUE[6]\"+20; $i++) 

{ 

$subheadline1 = substr($subheadline , 0, $i); 



$cut = substr($subheadline, $i); 

if ((ord ($cut) == 32)||(ord ($cut) == 44)||(ord ($cut) == 45)) { 



$subheadline= substr($subheadline , 0, $i); 

$subheadline .= \' .....\'; 

} 

} 

} 



if($print_text!=\"0\" && $print_text!=\"\"){ 

$sql_text = \"SELECT * FROM \".$cfg[\"tab\"][\"content\"].\" WHERE idartlang = \'$value\' AND idtype = \'2\' AND typeid = \'1\'\"; 



$db->query($sql_text); 

$db->next_record(); 



$text = urldecode($db->f(\"value\")); 





for ($i=\"CMS_VALUE[13]\"; $i < \"CMS_VALUE[13]\"+20; $i++) 

{ 

$text1 = substr($text , 0, $i); 



$cut = substr($text, $i); 

if ((ord ($cut) == 32)||(ord ($cut) == 44)||(ord ($cut) == 45)) { 



$text= substr($text , 0, $i); 

$text .= \' .....\'; 

} 

} 

} 







/******************* begin thumbnails **********************************/ 

if($print_thumbnail !=\"0\" && $print_thumbnail !=\"\"){ 



// select and resolve image path 

$imagesql=\"select value from \".$cfg[\"tab\"][\"content\"].\" where idartlang=\'$value\' and idtype=\'4\' and typeid=\'CMS_VALUE[11]\'\"; 

$db2->query($imagesql); 

$db2->next_record(); 

$image_id= $db2->f(\"value\"); 





// get image name and path 

$imagesql=\"select * from \".$cfg[\"tab\"][\"upl\"].\" where idupl=\'$image_id\'\"; 

$db2->query($imagesql); 

$db2->next_record(); 





$webdir=\'upload/\'; 

$thumbdir=\'CMS_VALUE[9]\'; 

$filedir=$frontendpath; 

$imagelocation=$filedir.$webdir.$db2->f(\'dirname\').$db2->f(\'filename\'); 

$thumblocation=$filedir.$webdir.$thumbdir.$db2->f(\'filename\'); 

if (!file_exists($thumblocation)){ 

// create thunbnail 

$fileinformation=getimagesize($imagelocation); 

$imagewidth = $fileinformation[0]; 

$imageheight = $fileinformation[1]; 

$imagetype=$db2->f(\'filetype\'); 

$imageattributes = $fileinformation[3]; 

//$newfile= $last_id.\"-image.\".$imagetype; 

$target=$thumblocation; 



if ( !(copy($imagelocation,$target))) 

{ 

echo \"Could not copy file to destintaion., Command returned Error Message. Please check your log files. \".$imagelocation.\" \".$target; 

die; 

} 



//create thumbnails 80xrelational height; neu $thumbnail_width x proportionale Höhe 

// Determine what filetype and set pointer to source image 





$original_image=ImageCreateFromJPEG($target); 



if (!$original_image){ 

echo \'Error getting image from \'.$target.\'.\'; 

} 







$palette_image =$filedir.$webdir.$thumbdir.\'vorlage.jpg\'; 

$thumbsize = getImageSize($palette_image); 

$maxdim = $thumbsize[0]; 

$draw_from = $imagelocation; 

$dim = GetImageSize($draw_from); 

if($dim[0]>$dim[1]) 

{ 

$to_w = $maxdim; 

$to_h = round($dim[1]*($maxdim/$dim[0])); 

$to_x = 0; 

$to_y = round($maxdim-$to_h)/2; 

} 

else 

{ 

$to_h = $maxdim; 

$to_w = round($dim[0]*($maxdim/$dim[1])); 

$to_y = 0; 

$to_x = round($maxdim-$to_w)/2; 

} 



if($dim[2]==1) {$from = ImageCreateFromGIF($draw_from);} 

elseif($dim[2]==2) {$from = ImageCreateFromJPEG($draw_from);} 

elseif($dim[2]==3) {$from = ImageCreateFromPNG($draw_from);} 

$thumb = ImageCreateFromJPEG($palette_image); 

// $set_bg_colour = ImageColorAllocate($thumb,255,0,0); 

// $fill_bg_colour = ImageFill($thumb,0,0,$set_bg_colour); 

imagecopyresampled($thumb, $from, $to_x, $to_y, 0, 

0, $to_w, $to_h, $dim[0], $dim[1]); 













//echo $target; 

// set image width and height of thunbnail and put pointer for filesytsem 

$thumbfile= $db2->f(\'filename\'); 

$target_thumb=$thumblocation; 

$t_width=$thumbnail_width; 

// calculating height to maintain ratio 

$t_height=($thumbnail_width/$imagewidth)*$imageheight; 

// remove digits to get solid number 

list ($t_height,$notimportand)=explode(\'.\',$t_height); 

// create blank image 

$thumb_image=imagecreatetruecolor($t_width,$t_height); 

// $thumb_image=imagecreate($t_width,$t_height); 

// $thumb_image=ImageCreateFromJPEG($palette_image); 

// resize image based on height and width 

imagecopyresampled($thumb_image,$original_image,0,0,0,0,$t_width,$t_height,$imagewidth,$imageheight); 

// store image on file system 

// requires different functionf for either gif or jpeg 



imagejpeg($thumb,$target_thumb); 



imagedestroy($thumb); 

imagedestroy($original_image); 

} 

$image=$webdir.$thumbdir.$db2->f(\'filename\'); 



//wenn Artikel kein Bild hat 



if (!$db2->f(\'filename\')){ 

$image=$webdir.$thumbdir.\'vorlage.jpg\'; 

} 

//Ende 



$imagetag=\"<img src=\\\" $image \\\" border=0>\"; 



} // ende wenn keine thumbs gewünscht 

/**************** Ende Thumbnails ***********************/ 



// link 

$link = $sess->url(\"front_content.php?client=$client&lang=$lang&idcat=$selcat&idart=$linkID[$key]&m=$m&s=$s\"); 







/***********************Anfang Tablezeile für Artikelliste**********************/ 

echo \' 

<tr> 

<td colspan=\"2\" class=\"newshead\" cellpadding=\"2\" >\'.$headline.\'</td> 

<td class=\"newshead\">\'.$modifydate.\'</td> 

</tr> 

<tr> 

<td height=\"20\" colspan=\"2\"class=\"newstext\" valign=\"top\">\'.$subheadline.\'</td> 

<td> </td> 

</tr> 

<tr> 

<!--<td width=\"\'.$t_width.\'\" align=\"left\"><A HREF=\"\'.$link.\'\">\'.$imagetag.\'</a></td> --> 

<td colspan=\"2\" class=\"newstext\" valign=\"top\">\'.$text.\'</td> 

<td valign=\"bottom\"><a href=\"\'.$link.\'\"><img src=\"upload/bilder/mehr.gif\" border=\"0\" width=\"44\" height=\"11\"></a></td> 

</tr> 

<tr> 

<td height=\"20\" colspan=\"3\"valign=\"bottom\"><hr align=\"center\" width=\"100%\" noshade color=\"#FFFFFF\"></td> 

</tr> 

\'; 





} // end while 







unset($headline); 

unset($headline1); 

unset($subheadline); 

unset($subheadline1); 

unset($text); 

unset($textl); 



} // end foreach 



} // end if (is_array) 



echo \'</table>\'; 

/***********************ende Table**********************/ 



?> ', '', '1', 'andrej', '2004-02-10 22:43:13', '2004-02-10 22:43:13')<br><br>


timo
Beiträge: 6284
Registriert: Do 15. Mai 2003, 18:32
Wohnort: Da findet ihr mich nie!
Kontaktdaten:

Beitrag von timo » Di 10. Feb 2004, 23:52

öhm andrej - das ist der falsche thread und die falsche version für dich :)

so wie du das beschreibst, ist das sicherlich kein problem der 4.4.3 sondern deines setups.

andrej
Beiträge: 333
Registriert: Mi 8. Okt 2003, 09:46
Kontaktdaten:

Beitrag von andrej » Di 10. Feb 2004, 23:59

nene timo, ist schon die richtige version 4.4.3 pre2 vom 05-Feb-2004 :)
ich weiß eben wo man suchen muss. ;)
ich wollte diese version für euch natürlich auch testen. meine webseite läuft ja, ich habe nun geupdatet und nun läuft einiges nicht. ich weiß nicht ob es nun mit der konstalation mit meinem WAMP ist.

und beim setup kann man ja nicht wirklich was falsch machen. das habt ihr ja zum glück richtig schön gemacht.

emergence
Beiträge: 10641
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence » Mi 11. Feb 2004, 09:54

1. @andrej es ist der falsche thread
2. du benötigst das recht lock table bei der mysql db

PickPay
Beiträge: 164
Registriert: Di 2. Dez 2003, 19:38
Wohnort: Zürich
Kontaktdaten:

Beitrag von PickPay » Mo 16. Feb 2004, 21:38

emergence hat geschrieben:dann lad dir den patch runter und pfleg die änderungen händisch ein...
http://www.contenido.de/snapshots/conte ... .patch.bz2
zumindestens siehst du wo was geändert wurde...
ob du dass übernehmen möchtest bleibt dann alleine dir vorbehalten...
Was verwende ich für ein Programm, um die Änderungen zu aktivieren?

emergence
Beiträge: 10641
Registriert: Mo 28. Jul 2003, 12:49
Wohnort: Austria
Kontaktdaten:

Beitrag von emergence » Di 17. Feb 2004, 08:24

PickPay hat geschrieben:Was verwende ich für ein Programm, um die Änderungen zu aktivieren?
also ich verwende einen texteditor...

PickPay
Beiträge: 164
Registriert: Di 2. Dez 2003, 19:38
Wohnort: Zürich
Kontaktdaten:

Beitrag von PickPay » Di 17. Feb 2004, 11:28

Ja, ich habe es jetzt auch gesehen. Für mich sah das zuerst wie ein Skript aus, erst dann bemerkte ich dass es bloss Ausgaben des Befehls diff sind.

Danke.

Antworten