|
|
Latest News |
Latest Threads |
|
 |
56.027 Posts & 4.945 Themen in 78 Foren |
|
|
|
 |
Forensuche |
|
Suchbegriff |
Benutzerauswahl |
Ergebnisse anzeigen |
 |
Suchergebnisse |
17 Treffer |
|
 |
Verfasst am 20.01.2008 - 23:14 Forenbeitrag von: Seroega1987 |
|
PLZ Suche und PLZ Eintrag in Artikel
Hallo alle zusammen,
bin jetzt von 1.6.1 auf 1.6.4 pl umgestiegen. Und habe jetzt meine erste Frage dazu.
Und zwar wollte ich mal euch fragen, wie ich das umsetzen kann, dass ich die Artikeleinsendung um die Funktion PLZ erweitern kann und dann natürlich bei der Suche auch nach PLZ suchen kann.
Kann mir da jemand helfen? |
|
|
|
|
|
 |
Verfasst am 22.11.2007 - 18:08 Forenbeitrag von: Seroega1987 |
|
Welcome Boxes ( 1.6.1 )
Hallo Leute,
ich habe das selbe Problem. Das Dumme ist ja nur, dass ich die oben stehenden Php-Code nicht in der Admin/config.php finden kann.
Vielleicht ist das aber auch so, dass ihr von was anderem redet und nicht von der Welcome Im?
Wenn das der Fall sein sollte, könnte mir jemand sagen, wie ich es bei der Welcome Im hinbekomme, dass ich das Speichern kann. Es müsste an der admin/config.php liegen, weil immer wenn ich diese einsetze, geht das Speichern in dem Bereich der Im nicht mehr und ansonsten funktioniert es.
Hier ist mal der Code von der config.php
Hier klicken zum aufklappenif (adminaccess('config')) {
if (isset($_POST['action'])) $ACTION=$_POST['action'];
else $ACTION='view';
if ($_REQUEST['do']!='' && $_REQUEST['do']!='all') {
$do=$_REQUEST['do'];
unset($toplink);
}
else {
$do='all';
eval ("\$toplink= \"".templateinclude("config_all_toplink")."\";");
eval ("\$site_body.= \"".templateinclude("config_all_links")."\";");
}
if ($do=='profil' or $do=='newprofil') {
if ($ACTION==$_POST['create']) {header("location: admin.php?do=newprofilsession_id()); exit();}
elseif ($ACTION==$_POST['save']) {
$DB->query("INSERT INTO ".$db_tab['config']." (profil_name) VALUES ('".$_POST['profil_name']."')");
header("location: admin.php?do=profil&profilid=".$DB->insert_id()."session_id()); exit();
}
if ($ACTION==$_POST['delete']) {
$DB->query("DELETE FROM ".$db_tab['config']." WHERE profil_id='".$_POST['profilid']."'");
$profilid=$DB->fetch_array($DB->query("SELECT profil_id FROM ".$db_tab['config']." LIMIT 1"));
$profilid=$profilid['profil_id'];
}
if (isset($_REQUEST['profilid']) or isset($profilid)) {
if (!isset($profilid)) {$profilid=$_REQUEST['profilid'];}
$DB->query("UPDATE ".$db_tab['config']." SET profil_active=0 WHERE profil_id!='".$profilid."'");
$DB->query("UPDATE ".$db_tab['config']." SET profil_active=1 WHERE profil_id='".$profilid."'");
header("location: admin.php?do=basicsession_id()); exit();
}
}
if ($do=='basic' or $do=='all') {
if ($ACTION==$_POST['save']) {
$site_name=addslashes($_POST['site_name']);
$site_title=addslashes($_POST['site_title']);
$parse_url=explode("/",addslashes($_POST['site_url'])); unset($site_url); if (is_array($parse_url)) {foreach ($parse_url as $u) {$u=trim($u); if (!eregi("http",$u) && $u!="") {if ($site_url=="") {$site_url="http://".$u;} else {$site_url.="/".$u;}}}} unset($parse_url);
$site_urls=addslashes($_POST['site_urls']);
$site_copy=addslashes($_POST['site_copy']);
if (!emailcheck($_POST['site_email'],0)) {unset($_POST['site_email']);}
else {$site_email=addslashes($_POST['site_email']);}
$site_width=$_POST['site_width'];
$time_gmtzone=$_POST['time_gmtzone'];
$DB->query("UPDATE ".$db_tab['config']." SET site_name='".$site_name."', site_title='".$site_title."', site_url='".$site_url."', site_urls='".$site_urls."', site_email='".$site_email."', site_copy='".$site_copy."', site_width='".$site_width."', time_gmtzone='".$time_gmtzone."', version_check='".$_POST['version_check']."', site_logo='".$_POST['site_logo']."', site_adview='".$_POST['site_adview']."', site_style='".$_POST['site_style']."', templatename='".$_POST['templatename']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
unset($i);
$getconfiginfo=$DB->query("SELECT profil_id, profil_name, profil_active FROM ".$db_tab['config']." ORDER by profil_name ASC");
while ($configinfo=$DB->fetch_array($getconfiginfo)) {
if ($config['profil_id']==$configinfo['profil_id']) {$option_selected=' selected';}
eval ("\$profil_option.= \"".templateinclude("config_profil_option")."\";");
unset($option_selected);
unset($option_selected2);
$i++;
}
$getstyles=$DB->query("SELECT style_id, style_name FROM ".$db_tab['style']." ORDER by style_name ASC");
while ($styles=$DB->fetch_array($getstyles)) {
$site_style_list.='<option value="'.$styles['style_id'].'"';
if ($styles['style_id']==$config['site_style']) $site_style_list.=' selected';
$site_style_list.='>'.$styles['style_name'].'</option>';
}
if ($i>1) {eval ("\$profil_delete= \"".templateinclude("config_profil_delete")."\";");}
eval ("\$site_body.= \"".templateinclude("config_profil")."\";");
$site_name=htmlentities(stripslashes($config['site_name']));
$site_title=htmlentities(stripslashes($config['site_title']));
$site_url=htmlentities(stripslashes($config['site_url']));
$site_urls=htmlentities(stripslashes($config['site_urls']));
$site_copy=htmlentities(stripslashes($config['site_copy']));
if ($config['site_width']=='770') $width770=' selected';
elseif ($config['site_width']=='980') $width980=' selected';
else $width100=' selected';
if ($config['site_adview']=='1') $adview1=' selected';
else $adview0=' selected';
if ($config['time_gmtzone']<0) {$v=eregi_replace("-|\.","",$config['time_gmtzone']); $tz="m".$v;}
elseif ($config['time_gmtzone']>0) {$v=eregi_replace("\+|\.","",$config['time_gmtzone']); $tz="p".$v;}
else $tz=0;
$var="info_".$tz;
$$var="selected";
if ($config['templatename']==1) $templatename1='selected';
else $templatename0='selected';
if ($config['version_check']==1) $vcheck1='checked';
else $vcheck0='checked';
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_basic")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="mailer" or $do=="all") {
if ($ACTION==$_POST['save']) {
$smtp_server=addslashes($_POST['smtp_server']);
$site_mail_txt=addslashes($_POST['site_mail_txt']);
$site_mail_htm=addslashes($_POST['site_mail_htm']);
$DB->query("UPDATE ".$db_tab['config']." SET smtp_server='".$smtp_server."',site_mail_txt='".$site_mail_txt."',site_mail_htm='".$site_mail_htm."' WHERE profil_id='".$config['profil_id']."'");
}
else {
$smtp_server=stripslashes($config['smtp_server']);
$site_mail_txt=stripslashes($config['site_mail_txt']);
$site_mail_htm=stripslashes($config['site_mail_htm']);
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_mailer")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="frontpage" or $do=="all") {
if ($ACTION==$_POST['save']) {
$site_array=explode("\n",addslashes($_POST['site_frontpage'])); unset($site_frontpage); if (is_array($site_array)) {foreach($site_array as $p) {$p=trim($p); if ($p!='') {$site_frontpage.=$p."\n";}}}
$welcome_eod=$_POST['welcome_eod'];
$welcome_title=addslashes($_POST['welcome_title']);
$welcome_text=addslashes($_POST['welcome_text']);
$DB->query("UPDATE ".$db_tab['config']." SET site_frontpage='".$site_frontpage."', welcome_eod='".$welcome_eod."', welcome_title='".$welcome_title."', welcome_text='".$welcome_text."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config['welcome_eod']==1) {$welcome_eod1=" selected";}
else {$welcome_eod0=" selected";}
$welcome_title=htmlentities(stripslashes($config['welcome_title']));
$welcome_text=htmlentities(stripslashes($config['welcome_text']));
$site_frontpage=htmlentities(stripslashes($config['site_frontpage']));
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_frontpage")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="censor" or $do=="all") {
if ($ACTION==$_POST['save']) {
$censor_username=$_POST['censor_username'];
$censor_email=$_POST['censor_email'];
$censor_ip=$_POST['censor_ip'];
$censor_badword=$_POST['censor_badword'];
$DB->query("UPDATE ".$db_tab['config']." SET censor_username='".$censor_username."', censor_email='".$censor_email."', censor_ip='".$censor_ip."', censor_badword='".$censor_badword."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_censor")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="notify" or $do=="all") {
if ($ACTION==$_POST['save']) {
$narray=explode("\n",$_POST['notify_by_register_mail']); unset($notify_by_register_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_register_mail.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_comment_mail']); unset($notify_by_comment_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_comment_mail.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_gbook_mail']); unset($notify_by_gbook_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_gbook_mail.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_forum_mail']); unset($notify_by_forum_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_forum_mail.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_submit_mail']); unset($notify_by_submit_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_submit_mail.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_register_im']); unset($notify_by_register_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_register_im.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_comment_im']); unset($notify_by_comment_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_comment_im.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_gbook_im']); unset($notify_by_gbook_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_gbook_im.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_forum_im']); unset($notify_by_forum_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_forum_im.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_submit_im']); unset($notify_by_submit_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_submit_im.=$p."\n";}}}
// *** Punktesystem Pro *** Start ***
$narray=explode("\n",$_POST['notify_by_premie_im']); unset($notify_by_premie_im); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_premie_im.=$p."\n";}}}
$narray=explode("\n",$_POST['notify_by_premie_mail']); unset($notify_by_premie_mail); if (is_array($narray)) {foreach($narray as $p) {$p=trim($p); if ($p!='') {$notify_by_premie_mail.=$p."\n";}}}
// *** Punktesystem Pro *** Ende ***
$DB->query("UPDATE ".$db_tab['config']." SET notify_register_m='".$notify_by_register_mail."', notify_comment_m='".$notify_by_comment_mail."', notify_gbook_m='".$notify_by_gbook_mail."', notify_forum_m='".$notify_by_forum_mail."', notify_submit_m='".$notify_by_submit_mail."', notify_register_i='".$notify_by_register_im."', notify_comment_i='".$notify_by_comment_im."', notify_gbook_i='".$notify_by_gbook_im."', notify_forum_i='".$notify_by_forum_im."', notify_submit_i='".$notify_by_submit_im."' WHERE profil_id='".$config['profil_id']."'");
}
else {
unset($sqlcommand); $second_cache=array();
$id_cache=explode("\n",$config['notify_register_i']."\n".$config['notify_comment_i']."\n".$config['notify_gbook_i']."\n".$config['notify_forum_i']."\n".$config['notify_submit_i']);
if (is_array($id_cache)) {
foreach ($id_cache as $id) {
$id=trim($id);
if ($second_cache[$id]=='') {
$second_cache[$id]=$id;
if ($id!='' && $sqlcommand=='') {$sqlcommand="SELECT user_id, user_nick FROM ".$db_tab['user']." WHERE user_id='".$id."'";}
elseif ($id!='') {$sqlcommand.=" OR user_id='".$id."'";}
}
}
if ($sqlcommand!='') {
$getuserinfo=$DB->query($sqlcommand." ORDER by user_id ASC");
while($userinfo=$DB->fetch_array($getuserinfo)) {$userinfo_cache[$userinfo[user_id]]=$userinfo;}
}
}
if (is_array($userinfo_cache)) {
if ($config['notify_register_i']!='') {$info=explode("\n",$config['notify_register_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_register_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
if ($config['notify_comment_i']!='') {$info=explode("\n",$config['notify_comment_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_comment_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
if ($config['notify_gbook_i']!='') {$info=explode("\n",$config['notify_gbook_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_gbook_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
if ($config['notify_forum_i']!='') {$info=explode("\n",$config['notify_forum_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_forum_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
if ($config['notify_submit_i']!='') { $info=explode("\n",$config['notify_submit_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_submit_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
// *** Punktesystem Pro *** Start ***
if ($config['notify_premie_i']!='') { $info=explode("\n",$config['notify_premie_i']); if (is_array($info)) {foreach ($info as $id) {$id=trim($id); if ($id!='') {$notify_by_premie_info.=$userinfo_cache[$id]['user_nick'].', ';}}} unset($info);}
// *** Punktesystem Pro *** Ende ***
}
$notify_by_register_mail=$config['notify_register_m'];
$notify_by_register_im=$config['notify_register_i'];
$notify_by_comment_mail=$config['notify_comment_m'];
$notify_by_comment_im=$config['notify_comment_i'];
$notify_by_gbook_mail=$config['notify_gbook_m'];
$notify_by_gbook_im=$config['notify_gbook_i'];
$notify_by_forum_mail=$config['notify_forum_m'];
$notify_by_forum_im=$config['notify_forum_i'];
$notify_by_submit_mail=$config['notify_submit_m'];
$notify_by_submit_im=$config['notify_submit_i'];
// *** Punktesystem Pro *** Start ***
$notify_by_premie_mail=$config['notify_premie_m'];
$notify_by_premie_im=$config['notify_premie_i'];
// *** Punktesystem Pro *** Ende ***
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_notify")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="register" or $do=="all") {
if ($ACTION==$_POST['save']) {
// Welcome IM - (c)2006
$DB->query("UPDATE ".$db_tab['config']." SET user_registry='".$_POST['user_registry']."', user_activate='".$_POST['user_activate']."', user_disclaimer='".$_POST['user_disclaimer']."', welcome_imaction ='".addslashes($_POST['welcome_imaction'])."', welcome_imtext ='".addslashes($_POST['welcome_imtext'])."', welcome_imtitle ='".addslashes($_POST['welcome_imtitle'])."' WHERE profil_id='".$config['profil_id']."'");
/*** / END ***/
}
else {
if ($config['user_registry']==1) {$info_registry1=" selected";}
elseif ($config['user_registry']==2) {$info_registry2=" selected";}
else {$info_registry0=" selected";}
if ($config['user_activate']==1) {$info_activate1=" selected";}
else {$info_activate0=" selected";}
if ($config['user_disclaimer']==1) {$info_disclaimer1=" selected";}
else {$info_disclaimer0=" selected";}
// Welcome IM
if ($config['welcome_imaction']==1){ $info_welcome_im1=" selected"; }
else {$info_welcome_im0=" selected";}
/*** / END ***/
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_register")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="member" or $do=="all") {
if ($ACTION==$_POST['save']) {
if ($_POST['user_namemin']<1 or $_POST['user_namemin']>$_POST['user_namemax']) {$_POST['user_namemin']=1;}
if ($_POST['user_namemax']>50 or $_POST['user_namemax']<$_POST['user_namemin']) {$_POST['user_namemax']=50;}
$DB->query("UPDATE ".$db_tab['config']." SET text_ubb='".$_POST['text_ubb']."', text_smilies='".$_POST['text_smilies']."', text_images='".$_POST['text_images']."', member_infoshow='".$_POST['member_infoshow']."', member_epp='".$_POST['member_epp']."', member_gbook='".$_POST['member_gbook']."', member_mailer='".$_POST['member_mailer']."', user_namemin='".$_POST['user_namemin']."', user_namemax='".$_POST['user_namemax']."', user_delete='".$_POST['user_delete']."', user_ghost='".$_POST['user_ghost']."', user_design='".$_POST['user_design']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config['member_infoshow']=="admin") {$member_showinfo1=" selected";}
elseif ($config['member_infoshow']=="mod") {$member_showinfo2=" selected";}
elseif ($config['member_infoshow']=="member") {$member_showinfo3=" selected";}
elseif ($config['member_infoshow']=="user") {$member_showinfo4=" selected";}
else {$member_showinfo0=" selected";}
if ($config['user_delete']==1) {$info_delete1=" selected";}
elseif ($config['user_delete']==2) {$info_delete2=" selected";}
else {$info_delete0=" selected";}
if ($config[text_ubb]==1) {$info_ubb1=" checked";}
else {$info_ubb0=" checked";}
if ($config[text_smilies]==1) {$info_smilies1=" checked";}
else {$info_smilies0=" checked";}
if ($config[text_images]==1) {$info_images1=" checked";}
else {$info_images0=" checked";}
if ($config['member_gbook']==1) {$info_gbook1=" checked";}
else {$info_gbook0=" checked";}
if ($config['member_mailer']==1) $info_mailer1=" checked";
else $info_mailer0=" checked";
if ($config['user_ghost']==1) $info_ghost1=" checked";
else $info_ghost0=" checked";
if ($config['user_design']==1) $info_design1=" checked";
else $info_design0=" checked";
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_member")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="avatar" or $do=="all") {
if ($ACTION==$_POST['action']) {
$avatarpath=explode("/",$_POST['avatar_path']);
unset($_POST['avatar_path']);
if (is_array($avatarpath)) {
foreach($avatarpath as $p) {
$p=trim($p);
if ($p!="") {
if ($_POST['avatar_path']=="") $_POST['avatar_path']=$p;
else $_POST['avatar_path'].="/".$p;
}
}
}
$DB->query("UPDATE ".$db_tab['config']." SET avatar_size='".$_POST['avatar_size']."', avatar_height='".$_POST['avatar_height']."', avatar_width='".$_POST['avatar_width']."', avatar_eod='".$_POST['avatar_eod']."', avatar_path='".$_POST['avatar_path']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config[avatar_eod]==1) {$info_avatar_eod1=" selected";}
elseif ($config[avatar_eod]==2) {$info_avatar_eod2=" selected";}
else {$info_avatar_eod0=" selected";}
if (!@is_writeable('../'.$config['avatar_path']) || !@is_dir('../'.$config['avatar_path'])) eval ("\$path_error= \"".templateinclude("config_avatar_patherror")."\";");
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_avatar")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="blacklist" or $do=="all") {
if (is_array($_POST['delete']) && $_POST['action']==$lang['remove']) {
unset($sqlcommand);
foreach($_POST['delete'] as $id) {
if ($sqlcommand=="") {$sqlcommand="DELETE FROM ".$db_tab['blacklist']." WHERE blacklist_id='".$id."'";}
else {$sqlcommand.=" OR blacklist_id='".$id."'";}
}
$DB->query($sqlcommand);
}
elseif ($ACTION==$_POST['save'] && $_POST['blacklist_url']!="" && ($_POST['blacklist_userstatus']=="user" or $_POST['blacklist_userstatus']=="member" or $_POST['blacklist_userstatus']=="mod" or $_POST['blacklist_userstatus']=="admin")) {
$DB->query("INSERT INTO ".$db_tab['blacklist']." (blacklist_url, blacklist_userstatus) VALUES ('".$_POST['blacklist_url']."', '".$_POST['blacklist_userstatus']."')");
}
else {
$getlist=$DB->query("SELECT blacklist_url, blacklist_userstatus, blacklist_id FROM ".$db_tab['blacklist']." ORDER by blacklist_userstatus ASC");
while($list=$DB->fetch_array($getlist)) {
$row=rowcolor($row);
if ($list['blacklist_userstatus']=="user") {$status=$lang['user'];}
elseif ($list['blacklist_userstatus']=="member") {$status=$lang['member'];}
elseif ($list['blacklist_userstatus']=="mod") {$status=$lang['mod'];}
elseif ($list['blacklist_userstatus']=="admin") {$status=$lang['admin'];}
eval ("\$blacklist_sites_row.= \"".templateinclude("config_blacklist_sites_row")."\";");
}
if ($blacklist_sites_row!="") {eval ("\$blacklist_sites= \"".templateinclude("config_blacklist_sites")."\";");}
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_blacklist")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="referer" or $do=="all") {
if ($ACTION==$_POST['save']) {$DB->query("UPDATE ".$db_tab['config']." SET referer_filter='".$_POST['referer_filter']."', referer_eod='".$_POST['referer_eod']."', referer_delete='".$_POST['referer_delete']."' WHERE profil_id='".$config['profil_id']."'");}
else {
if ($config['referer_eod']==1) {$referer_eod1=" selected";}
else {$referer_eod0=" selected";}
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_referer")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="offline" or $do=="all") {
if ($ACTION==$_POST['save']) {
$site_message=addslashes($_POST['site_message']);
$DB->query("UPDATE ".$db_tab['config']." SET site_eod='".$_POST['site_eod']."', site_message='".$site_message."' WHERE profil_id='".$config['profil_id']."'");
}
else {
$site_message=htmlentities(stripslashes($config['site_message']));
if ($config['site_eod']==1) $info_eod1=" selected";
else $info_eod0=" selected";
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_offline")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="comment" or $do=="all") {
if ($ACTION==$_POST['save']) {
$DB->query("UPDATE ".$db_tab['config']." SET comment_order='".$_POST['comment_order']."', comment_bb='".$_POST['comment_bbcode']."', comment_smilies='".$_POST['comment_smilies']."', comment_images='".$_POST['comment_images']."', comment_register='".$_POST['comment_register']."', comment_floodctrl='".$_POST['comment_floodctrl']."', comment_maxchars='".$_POST['comment_maxchars']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config['comment_order']=="ASC") {$info_orderA=" selected";}
else {$info_orderD=" selected";}
if ($config['comment_bb']==1) {$info_bbcode1=" selected";}
else {$info_bbcode0=" selected";}
if ($config['comment_smilies']==1) {$info_smilies1=" selected";}
else {$info_smilies0=" selected";}
if ($config['comment_images']==1) {$info_images1=" selected";}
else {$info_images0=" selected";}
if ($config['comment_register']==1) {$info_register1=" selected";}
else {$info_register0=" selected";}
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_comment")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="guestbook" or $do=="all") {
if ($ACTION==$_POST['save']) {
$gbook_welcome=addslashes($_POST['gbook_welcome']);
$DB->query("UPDATE ".$db_tab['config']." SET gbook_eod='".$_POST['gbook_eod']."', gbook_welcome='".$gbook_welcome."', gbook_commenteod='".$_POST['gbook_commenteod']."', gbook_epp='".$_POST['gbook_epp']."', gbook_smilies='".$_POST['gbook_smilies']."', gbook_images='".$_POST['gbook_images']."', gbook_ubb='".$_POST['gbook_ubb']."', gbook_floodctrl='".$_POST['gbook_floodctrl']."', gbook_maxchars='".$_POST['gbook_maxchars']."' WHERE profil_id='".$config['profil_id']."'");
}
else {
if ($config['gbook_eod']==1) {$gb_eod1=" selected";}
else {$gb_eod0=" selected";}
if ($config['gbook_commenteod']==1) {$gb_ceod1=" selected";}
else {$gb_ceod0=" selected";}
if ($config['gbook_ubb']==1) {$gb_ubb1=" selected";}
else {$gb_ubb0=" selected";}
if ($config['gbook_smilies']==1) {$gb_smilies1=" selected";}
else {$gb_smilies0=" selected";}
if ($config['gbook_images']==1) {$gb_images1=" selected";}
else {$gb_images0=" selected";}
$gbook_welcome=htmlentities(stripslashes($config['gbook_welcome']));
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_guestbook")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="content" or $do=="all") {
if ($ACTION==$_POST['save']) $DB->query("UPDATE ".$db_tab['config']." SET content_epp1='".$_POST['content_epp1']."', content_epp2='".$_POST['content_epp2']."', content_epp3='".$_POST['content_epp3']."', content_epp4='".$_POST['content_epp4']."', content_length1='".$_POST['content_length1']."', content_length2='".$_POST['content_length2']."', content_length3='".$_POST['content_length3']."', content_length4='".$_POST['content_length4']."', content_submit1='".$_POST['content_submit1']."', content_submit2='".$_POST['content_submit2']."', content_submit3='".$_POST['content_submit3']."', content_submit4='".$_POST['content_submit4']."', content_downloadpath='".$_POST['content_downloadpath']."', content_downloadstatus='".$_POST['content_dlstatus']."', content_style1='".$_POST['content_style1']."',content_style2='".$_POST['content_style2']."',content_style3='".$_POST['content_style3']."',content_style4='".$_POST['content_style4']."' WHERE profil_id='".$config['profil_id']."'");
else {
if ($config['content_submit1']=="guest") $submit1_4=" selected";
elseif ($config['content_submit1']=="user") $submit1_1=" selected";
elseif ($config['content_submit1']=="member") $submit1_2=" selected";
elseif ($config['content_submit1']=="mod") $submit1_3=" selected";
elseif ($config['content_submit1']=="none") $submit1_0=" selected";
if ($config['content_submit2']=="guest") $submit2_4=" selected";
elseif ($config['content_submit2']=="user") $submit2_1=" selected";
elseif ($config['content_submit2']=="member") $submit2_2=" selected";
elseif ($config['content_submit2']=="mod") $submit2_3=" selected";
elseif ($config['content_submit2']=="none") $submit2_0=" selected";
if ($config['content_submit3']=="guest") $submit3_4=" selected";
elseif ($config['content_submit3']=="user") $submit3_1=" selected";
elseif ($config['content_submit3']=="member") $submit3_2=" selected";
elseif ($config['content_submit3']=="mod") $submit3_3=" selected";
elseif ($config['content_submit3']=="none") $submit3_0=" selected";
if ($config['content_submit4']=="guest") $submit4_4=" selected";
elseif ($config['content_submit4']=="user") $submit4_1=" selected";
elseif ($config['content_submit4']=="member") $submit4_2=" selected";
elseif ($config['content_submit4']=="mod") $submit4_3=" selected";
elseif ($config['content_submit4']=="none") $submit4_0=" selected";
if ($config['content_downloadstatus']=="guest") $dlstatus4_0=" selected";
elseif ($config['content_downloadstatus']=="user") $dlstatus4_1=" selected";
elseif ($config['content_downloadstatus']=="member") $dlstatus4_2=" selected";
elseif ($config['content_downloadstatus']=="mod") $dlstatus4_3=" selected";
elseif ($config['content_downloadstatus']=="admin") $dlstatus4_4=" selected";
elseif ($config['content_downloadstatus']=="none") $dlstatus4_5=" selected";
$var='style1_'.$config['content_style1']; $$var='selected';
$var='style2_'.$config['content_style2']; $$var='selected';
$var='style3_'.$config['content_style3']; $$var='selected';
$var='style4_'.$config['content_style4']; $$var='selected';
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_content")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($do=="forum" or $do=="all") {
if ($ACTION==$_POST['save']) $DB->query("UPDATE ".$db_tab['config']." SET forum_eod='".$_POST['forum_eod']."', forum_standalone='".$_POST['forum_standalone']."',forum_ubb='".$_POST['forum_ubb']."',forum_smilies='".$_POST['forum_smilies']."',forum_start='".$_POST['forum_start']."',forum_button='".$_POST['forum_button']."',forum_searcheod='".$_POST['forum_searcheod']."',forum_showmod='".$_POST['forum_showmod']."',forum_maxfav='".$_POST['forum_maxfav']."',forum_viewreply='".$_POST['forum_viewreply']."',forum_showrank='".$_POST['forum_showrank']."',forum_postorder='".$_POST['forum_postorder']."',forum_structur='".$_POST['forum_structur']."',forum_doublepost='".$_POST['forum_doublepost']."',forum_images='".$_POST['forum_images']."',forum_attach_dir='".$_POST['forum_attach_dir']."',forum_attach_size='".$_POST['forum_attach_size']."',forum_attach_ext='".$_POST['forum_attach_ext']."' WHERE profil_id='".$config['profil_id']."'");
else {
if ($config['forum_eod']==1) $option_eod1='selected';
else $option_eod0='selected';
if ($config['forum_ubb']==1) $option_ubb1='selected';
else $option_ubb0='selected';
if ($config['forum_smilies']==1) $option_smilies1='selected';
else $option_smilies0='selected';
if ($config['forum_images']==1) $option_images1='selected';
else $option_images0='selected';
if ($config['forum_searcheod']==1) $option_searcheod1='selected';
else $option_searcheod0='selected';
if ($config['forum_showmod']==1) $option_showmod1='selected';
else $option_showmod0='selected';
if ($config['forum_showrank']==1) $option_showrank1='selected';
else $option_showrank0='selected';
if ($config['forum_standalone']==1) $option_standalone1='selected';
elseif ($config['forum_standalone']==2) $option_standalone2='selected';
elseif ($config['forum_standalone']==3) $option_standalone3='selected';
else $option_standalone0='selected';
if ($config['forum_postorder']=="ASC") $option_postorder0='selected';
else $option_postorder1='selected';
if ($config['forum_structur']==1) $option_structur1='selected';
else $option_structur0='selected';
if ($config['forum_doublepost']==1) $option_doublepost1='selected';
else $option_doublepost0='selected';
if ($do=='all') {
eval ("\$config_do.= \"".templateinclude("config_forum")."\";");
eval ("\$config_do.= \"".templateinclude("config_all")."\";");
}
}
}
if ($ACTION==$_POST['save']) {header("location: admin.php?do=".$_POST['do']."session_id()); exit();}
elseif ($do!='') {
if ($do!='all') eval ("\$config_do= \"".templateinclude("config_".$do."")."\";");
eval ("\$site_body.= \"".templateinclude("config")."\";");
}
}
else {header ("location: admin.phpsession_id()); exit();}
?> |
|
|
|
|
|
|
 |
Verfasst am 21.11.2007 - 20:29 Forenbeitrag von: Seroega1987 |
|
navigation right
Hier habe ich zwei Bilder gemacht-normal und nachdem ich drauf klicke.


Danke, dass du dich bemühst mir zu helfen  |
|
|
|
|
|
 |
Verfasst am 19.11.2007 - 22:00 Forenbeitrag von: Seroega1987 |
|
navigation right
Hier mal der Code aus der Admin.php - habe die Zeile 98 Makiert
Hier klicken zum aufklappen<?php
##################################################################
# #
# #
# PHPKIT #
# -------------------------------------------- #
# Copyright (c) 2002-2003 Gersöne & Schott GbR #
# #
# #
# ############################################################## #
# #
# Diese Datei / die PHPKIT-Software ist keine Freeware! #
# Für weitere Information besuchen Sie bitte unsere Webseite #
# oder kontaktieren uns per E-Mail: #
# #
# This file / the PHPKIT-software is not freeware! #
# For further informations please vistit our website #
# or contact us via email: #
# #
# Website: http://www.phpkit.de #
# Email: info@phpkit.de #
# #
# ############################################################## #
# #
# File: /admin/admin.php #
# Author: Pierre Gersöne #
# Created: Version 1.6.1 - 2004-05-09 #
# Last Modified: Version 1.6.1 - 2004-05-09 #
# Description: not available for this file #
# #
# ############################################################## #
# #
# SIE SIND NICHT BERECHTIGT, UNRECHTMÄSSIGE KOPIEN DIESER #
# DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN #
# #
# YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS #
# FILE AND/OR TO REMOVE THIS INFORMATIONS #
# #
##################################################################
if(defined('pkFRONTEND'))
return;
define('pkFRONTEND','admin');
define('pkREQUESTEDFILE',basename(__FILE__));
require_once('./../include.php');
if(!adminaccess('adminarea'))
{
phpkitcookie("user_id");
phpkitcookie("user_name");
phpkitcookie("user_pw");
phpkitcookie("PHPKITSID");
session_unregister($USER);
session_unset();
@session_destroy();
unset($PHPKITSID);
unset($USER);
$event=1;
if(preg_match("/moveto=/i",$current_path))
unset($current_path);
include("config/admin_event.php");
eval("echo \$site= \"".templateinclude("blank")."\";");
exit;
}
if(filecheck("../install.php"))
{
if($_GET['del']=="install" && @unlink("../install.php"))
{
header('Location: '.pkWWWADMIN.'admin.phpsession_id());
exit;
}
eval("\$install_link=\"".templateinclude("site_navigation_left_install")."\";");
$install_warning=TRUE;
}
if(!$_REQUEST['do'])
eval("\$navigation_config= \"".templateinclude("site_navigation_config")."\";");
eval("\$right_navigation= \"".templateinclude("site_navigation_right")."\";");
if(!$install_warning && isset($_REQUEST['do']))
{
include("config.php");
eval("\$navigation_config= \"".templateinclude("site_navigation_config_open")."\";");
}
elseif(!$install_warning && isset($_REQUEST['path']))
{
$path=$_REQUEST['path'];
include ("$path");
}
else
{
if(isset($event) || isset($_REQUEST['event']))
{
if(isset($_REQUEST['event']))
{
$event=$_REQUEST['event'];
}
eval("\$site_refresh= \"".templateinclude("site_refresh")."\";");
eval("\$site_body.= \"".templateinclude("event2")."\";");
}
elseif(isset($install_warning))
{
if(isset($_GET['del']))
{
eval("\$del_error= \"".templateinclude("main_installwarning_error")."\";");
}
eval("\$site_body= \"".templateinclude("main_installwarning")."\";");
}
else {
include_once(pkDIRADMIN.'main'.pkEXT);
}
}
if(intval($imstatus_info=imstatus())>0)
eval("\$imnotify=\"".templateinclude("site_imnotify")."\";");
eval("\$left_navigation= \"".templateinclude("site_navigation_left")."\";");
eval("\$site= \"".templateinclude("site")."\";");
echo $site;
?> |
|
|
|
|
|
 |
Verfasst am 19.11.2007 - 18:38 Forenbeitrag von: Seroega1987 |
|
navigation right
Sorry,
ich habe die Version 1.6.1 und habe in der navigation right, wie man in dem Code sieht:
1: Punktesystem Pro 2.1
2: Bildergalerie 2.2
Wenn ich dann in den Administrator Bereich gehe und dort in der navigation right etwas anklicke passiert folgendes - die ganzen Farben gehen weg und wenn ich dann auf Website klicke, um den Administrator Bereich zu verlassen, kommt diese Fehlermeldung [
klapp]Warning: main(start.php) [function.main]: failed to open stream: No such file or directory in /www/htdocs/w0092da6/admin/admin.php on line 98
Warning: main(start.php) [function.main]: failed to open stream: No such file or directory in /www/htdocs/w0092da6/admin/admin.php on line 98
Warning: main() [function.include]: Failed opening 'start.php' for inclusion (include_path='.:/usr/share/php:..') in /www/htdocs/w0092da6/admin/admin.php on line 98[/klapp]
Wenn ich dann mal auf der Website bin und wieder in den Administrator Bereich gehe, ist alles wieder weg.  |
|
|
|
|
|
|
|
 |
Verfasst am 18.11.2007 - 16:11 Forenbeitrag von: Seroega1987 |
|
welcome box Speichert nicht
Zitat Original geschrieben von Seroega1987
Sorry, aber da bin ich mal wieder.
Habe mal wieder ein kleines Problem, was ich selbst nicht lösen kann. Ich habe mir die Forumbeiträge von andern durchgelesen und habe es so gemacht komme aber nicht weiter.
Ich habe alles von Hand bei Welcome IM geändert und jetzt kann ich nicht mehr speichern, aber auch nur im Bereich Registrierung.
Habe die standart admin/config.php hochgeladen und dann gehts wieder. Könntet ihr bitte mal schauen was ich falsch gemacht habe? |
Kann mir bitte jamand helfen oder wenigstens sagen, wo ich was finden kann?!  |
|
|
|
|
|
 |
Verfasst am 18.11.2007 - 16:09 Forenbeitrag von: Seroega1987 |
|
E-Mail fehler
Zitat Original geschrieben von Seroega1987
Hallo alle zusammen,
ich hätte da mal wieder eine bitte an euch. Und zwar bin ich dabei meine Website aufzubauen und da sind mir zwei Dinge aufgefallen. Ich benutze die PHPKIT Version 1.6.1
1) Wenn ich eine E-Mail über den Admin-Bereich (Infomailer) verschicke, steht in der E-Mail statt meiner E-Mailadresse das
Von:
Mitglieder-Information@dd3530.kasserver.com, http@dd3530.kasserver.com://uniex.de <info@uniex.de>
Welche Datei ist dafür verantwortlich und was kann ich da machen. Hatte früher eine Website und das war genau das selbe Problem bei funpic.de. (Habe noch garnichts installiert)
2) Wenn User bei mir auf der Website was einschicken sthet immer als Betreff Artikel. Und in dem eigentlichem Text steht dann : Ihr eingeschickter wurde nicht angenommen oder angenomme-kommt drauf an. Da sthet aber nicht was eingeschickt wurde.
Ich danke euch vorab für die Hilfe und Mühe |
Kann mir hier niemand helfen? |
|
|
|
|
|
|
|
 |
 |
Zur Zeit sind 488 Benutzer online: 2 Mitglieder und 486 Besucher - Rekord: 1814 Benutzer (Samstag, 14. Januar 2023, 07:00) Botty, Bottyline |
|
 |
Statistik: 6.222 Mitglieder - 4.945 Themen - 56.027 Beiträge (8 Beiträge pro Tag) Unser neuestes Mitglied heißt: HKS-CLAN |
|
|
|
|
|
|
|
|
|
|