echo "<a href=\"".$_SERVER['PHP_SELF']."?option=".$_GET['option']."&myid=".$row->id."&myalias=".$row->title_alias."&mysectionid=".$row->sectionid."&mycatid=".$row->catid."&crt=1\">jetzt erstellen</a>";
switch($_GET['crt'])
{
case 1:
$zaehler=0;
while ($zaehler<1) {
mysql_query("Insert into jos_content (title, title_alias, introtext, state, sectionid, mask, catid, created, created_by ,created_by_alias, modified, modified_by, checked_out, checked_out_time, publish_up, publish_down, images, urls, attribs, version, parentid, ordering, metakey, metadesc, access, hits ) VALUES ('".$_GET['myalias']."-infobereich', '".$_GET['myalias']."-infobereich', 'Text', 1, ".$_GET['mysectionid'].", 0, ".$_GET['mycatid'].", '2006-11-24 09:36:34', 62, '', '2006-11-27 10:59:54', 62, 0, '0000-00-00 00:00:00', '2006-11-24 09:36:27', '0000-00-00 00:00:00', '', '', '', 2, 0, 0, '', '', 0, 0)");
$zaehler++;
}
//reload the page to display the content
echo "<script language='javascript'>";
echo "window.location.href=\"index2.php?option=".$_ GET['option']."\"";
echo "</script>";
break;
default: // Mache was anderes wenn nicht's zu trifft
break;
}
Lesezeichen