2) $site = $array[0].".".$array[1]; $module = mysql_fetch_array(mysql_query("SELECT * FROM server_module WHERE anbieter='".$siteinfo['anbieter']."' ")); $settings = mysql_fetch_array(mysql_query("SELECT * FROM server_settings WHERE anbieter='".$siteinfo['anbieter']."' ")); if(!$settings['deftpl']) $settings['deftpl'] = 'kundensystem'; if($newtpl) $settings['deftpl'] = $newtpl; if($siteinfo['active'] == 3 AND !$_SESSION['admin']) exit(); if(!$siteinfo['anbieter']) header("location:/nodbprovider"); if($_SERVER["SERVER_NAME"] == $serverip) header("location:/noIP"); $subtitle = "Webhosting & Domainservices"; $maintitle = strtoupper($siteinfo['sdomain']) . " | $subtitle"; $currency = $settings['currency']; /* // http://www.rechnungswesen-portal.de/Fachinfo/Umsatzsteuer/Umsatzsteuer-Anwendungsfaelle-und-Vorschriften.html // Mwst für Leistungen aus Deutschland nach Gesetz // DE -> Verbraucher DE : 19% // DE -> Verbraucher EU : 19% // DE -> Verbraucher Ausland : 19% // DE -> Firma DE : 19% // DE -> Firma EU : 0% // DE -> Firma Ausland : 0% Leistungen, die für ein Unternehmen im EU-Ausland erbracht werden, werden behandelt, als seien sie im Ausland ausgeführt worden, deshalb unterliegen sie nicht den deutschen Umsatzsteuergesetzen. Leistungen, die für einen Privatkunden mit Sitz im Ausland (egal ob EU oder außerhalb der EU) erbracht werden, wird deutsche Mehrwertsteuer aufgeschlagen. Waren, die an ein Unternehmen im EU-Ausland geliefert werden, sind von der deutschen Umsatzsteuer befreit. Waren, die für einen Privatkunden im EU-Ausland erbracht werden, wird deutsche Mehrwertsteuer aufgeschlagen. if($_SESSION['kland'] !== $siteinfo['land'] or $_SESSION['land'] !== $siteinfo['land']) // nicht Inland if(preg_match("/BE|BG|CZ|DE|DK|EE|IE|EL|ES|FR|IT|CY|LV|LT|LU|HU|MT|NL|AT|PL|PT|RO|SI|SK|FI|SE|UK/si", $_SESSION['land']." ".$_SESSION['kland'])) // EU { if($settings['tax'] > 0 && ($_SESSION['firma'] or $_SESSION['kfirma'])) // EU-Firma $settings['tax'] = 0; { if(preg_match("/BE/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 20; if(preg_match("/BG/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 21; if(preg_match("/CZ/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 21; if(preg_match("/DE/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 19; if(preg_match("/DK/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 25; if(preg_match("/EE/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 20; if(preg_match("/IE/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 23; if(preg_match("/EL/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 23; if(preg_match("/ES/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 23; if(preg_match("/FR/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 20; if(preg_match("/IT/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 22; if(preg_match("/CY/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 19; if(preg_match("/LV/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 21; if(preg_match("/LT/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 21; if(preg_match("/LU/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 8; if(preg_match("/HU/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 27; if(preg_match("/MT/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 18; if(preg_match("/NL/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 21; if(preg_match("/AT/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 20; if(preg_match("/PL/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 23; if(preg_match("/PT/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 23; if(preg_match("/RO/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 24; if(preg_match("/SI/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 22; // SLOVENIA if(preg_match("/SK/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 20; if(preg_match("/FI/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 24; if(preg_match("/SE/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 25; if(preg_match("/UK/si", $_SESSION['land']." ".$_SESSION['kland'])) $settings['tax'] = 20; } } else { if($settings['tax'] > 0 && ($_SESSION['firma'] or $_SESSION['kfirma'])) // AUSLAND-Firma $settings['tax'] = 0; } */ // 2.0 if($settings['tax'] > 0 && (/*$_SESSION['firma'] or*/ ($_SESSION['kfirma'] and $_SESSION['ustid']))) // Firma if($_SESSION['kland'] !== $siteinfo['land'] or $_SESSION['land'] !== $siteinfo['land']) // nicht Inland $settings['tax'] = 0; if(!$currency) $currency = 'EUR'; if($currency == 'EUR') $currsymbol = '€'; if($siteinfo['serverip'] == $siteinfo['vip']) $proadmin = 1; if($siteinfo['serverip'] == '178.63.99.72') $homeserver = 1; if($siteinfo['sdomain'] == "login.cratch-server.de" ) exit(); #if(preg_match("/combathost/si", $siteinfo['sdomain'])) exit(); ?>0) while($tldarray = mysql_fetch_array($tldquery)) { $tldpreise["$tldarray[tld]"] = $tldarray['price']; $tld_vertrag["$tldarray[tld]"] = $tldarray['zyklus']; $tldsetup["$tldarray[tld]"] = $tldarray['setup']; } } } ?>'); define('BT_STATS16', ''); define('BT_DEL16', ''); define('BT_EDIT16', ''); define('BT_CLOSE16', ''); define('BT_ACTIVATE16', ''); define('BT_DEACTIVATE16', ''); define('BT_WORK16', ''); define('BT_MEM16', ''); define('BT_SHOW16', ''); define('BT_LOGIN16', ''); define('BT_DOCINTO16', ''); define('BT_GROUP16', ''); define('BT_HOME16', ''); define('BT_SET16', ''); define('BT_MONEY16', ''); define('BT_MONEY216', ''); define('BT_PAYED16', ''); define('BT_EXE16', ''); define('BT_BACK16', ''); define('BT_UP16', ''); define('BT_DOWN16', ''); define('BT_LEFT16', ''); define('BT_RIGHT16', ''); define('BT_MOVE16', ''); define('BT_LETTER16', ''); define('BT_EMAIL16', ''); define('BT_EMAIL216', ''); define('BT_FORWARD16', ''); define('BT_FORWARD216', ''); define('BT_SERVERADD16', ''); define('BT_SERVERBLOCKED16', ''); define('BT_NETWORK16', ''); define('BT_INFO16', ''); define('BT_DB16', ''); define('BT_SAVE16', ''); define('BT_COPY16', ''); define('BT_BOX16', ''); define('BT_PARAGRAPH16', ''); #define('BT_LOCK216', ''); define('BT_OK16', ''); define('BT_NOK16', ''); define('BT_STORNO16', ''); define('BT_MAIL16', ''); define('BT_CART16', ''); define('BT_CART216', ''); define('BT_UPLOAD16', ''); define('BT_DOWNLOAD16', ''); define('BT_IMPORT16', ''); define('BT_EXPORT16', ''); define('BT_CALC16', ''); #title='.KS_CALCULATE.' define('BT_LOCK16', ''); define('BT_RELOAD16', ''); define('BT_OVERVIEW16', ''); define('BT_HELP16', ''); define('BT_NAVI16', ''); define('BT_FOLDER16', ''); define('BT_STAR16', ''); define('BT_DOMAINS16', ''); define('BT_DNS16', ''); define('BT_EARTHLOCK16', ''); define('BT_STOP16', ''); define('BT_ADD216', ''); define('BT_ADD28', ''); define('BT_ADD16', ''); define('BT_ADDNET16', ''); define('BT_COOKIES16', ''); define('BT_FIREWALL16', ''); define('BT_LIGHTON16', ''); define('BT_LIGHTOFF16', ''); define('BT_PLAY16', ''); define('BT_BLACKLIST16', ''); define('BT_SORT16', ''); define('BT_SORT216', ''); define('BT_PIC16', ''); define('BT_BILL16', ''); define('BT_DOC16', ''); define('BT_WARN16', ''); define('BT_SIGN16', ''); define('BT_REPAIR16', ''); define('BT_EMPTY16', ''); define('BT_SPACER16', ''); define('BT_PHP16', ''); define('BT_STATS216', ''); define('BT_SPAM16', ''); define('BT_IELOGO16', ''); #define('KSTEXT_DOMAINCHECK', ''); ?>< '. KS_NODBDATA .' >'; return; } echo ""; # border-style:dotted; border-width:0px; padding:0px; border-color:#ddd; $gi = 0; if($array) foreach($array as $value) { ### GitterMaker ### $c2 = "class=\"ksrow1\""; $c3 = "class=\"ksdb1\""; if($gi % 2 != 0) { $c2 = "class=\"ksrow2\" "; $c3 = "class=\"ksdb2\""; } $gi++; ### GitterMaker ### ### SHOWHIDER ### if($value[4] == "showhide") echo ""; else echo ""; ### SHOWHIDER ### if( $value[0] == 'select' ) // Spalten nicht sichtbar { if($value[4]) $value[4] = "onChange=submit()"; if($value[5]) $value[5] = $value[5]."px"; else $value[5] = "100%"; echo ""; echo ""; echo ""; echo ""; echo ""; } elseif( $value[0] == 'wysiwyg' ) // Spalten nicht sichtbar { if(is_dir("module/tinymce")) { $class = 'ckeditor'; echo ''; } else $class = 'ksmain'; echo ""; echo ""; echo ""; } elseif( $value[0] == 'multiple' ) // Spalten nicht sichtbar { #$_POST[$value[2]] = array_values($_POST[$value[2]]); #print_r($_POST[$value[2]]); echo ""; echo ""; echo ""; echo ""; } elseif( $value[0] == 'longtext' ) // Spalten nicht sichtbar { if(empty($value[4])) $value[4] = 10; echo ""; echo ""; echo ""; echo ""; echo ""; } elseif( $value[0] == 'edittext' ) // Spalten nicht sichtbar { if($value[4] == "auto") $value[4] = count(explode("\n", $value[3])); if(empty($value[4])) $value[4] = 10; if($value[5]) $wrap = 'wrap="off"'; else $wrap = ''; #if($value[6]) $value[6] = "style=\"width:$value[6]px\""; else $value[6] = "style=\"width:98%\""; if($value[7]) $readonly = 'readonly="readonly"'; else $readonly = ''; echo ""; echo ""; echo ""; echo ""; } elseif( $value[0] == 'edittext2' ) // Spalten nicht sichtbar { if(empty($value[4])) $value[4] = 10; #echo ""; echo ""; echo ""; echo ""; } elseif( $value[0] == 'pic' ) // $array[] = array('pic', 'linkzumbild', 'maintitle', 'subtitle'); { echo ""; echo ""; echo ""; } elseif( $value[0] == 'active' ) // Spalten nicht sichtbar { echo ""; echo ""; echo ""; echo ""; echo ""; } elseif( $value[0] == 'yesno' ) // Spalten nicht sichtbar { echo ""; echo ""; echo ""; echo ""; } elseif($value[0] == 'text' OR $value[0] == 'password') { if($value[4]) $maxlength = $value[4]; else $maxlength = "100"; if($value[5]) $stylewidth = $value[5]."px"; else $stylewidth = "100%"; if($value[6]) $java = ' '; if($value[7]) $disabled = "readonly"; else $disabled = ""; if( $key != 'site' AND $key != 'anbieter' ) // Spalten nicht sichtbar { echo ""; echo ""; echo ""; #autocomplete=\"new-password\" echo ""; #echo ""; } echo ""; } elseif( $value[0] == 'text2' ) // col3 100% { if( !empty($value[4])) $maxlength = $value[4]; else $maxlength = "300"; if( !empty($value[5])) $stylewidth = $value[5]; else $stylewidth = "300"; if( !empty($value[6])) $java = ' '; echo ""; echo ""; echo ""; echo ""; } elseif( $value[0] == 'file' ) { echo ""; echo ""; echo ""; echo ""; } elseif( $value[0] == 'phone' ) { if (!$_POST[$value[2].'1'] && $settings['country']=='AT') $_POST[$value[2].'1'] = '+43'; if (!$_POST[$value[2].'1'] && $settings['country']=='CH') $_POST[$value[2].'1'] = '+41'; if (!$_POST[$value[2].'1']) $_POST[$value[2].'1'] = '+49'; echo ""; echo ""; echo ""; echo ""; echo ""; } elseif( $value[0] == 'birthday' ) { echo ""; echo ""; echo ""; echo ""; } elseif( $value[0] == 'hidden' ) { echo ""; if($value[1]) { echo ""; echo ""; echo ""; echo ""; echo ""; } } elseif( $value[0] == 'all' ) { echo ""; echo ""; echo ""; } elseif( $value[0] == 'table' ) // col3 100% { echo ""; # echo ""; echo ""; #if($value[4]) echo ""; #if($value[5]) #{ $fillmycolor = 1; #echo ""; #} echo ""; } elseif( $value[0] == 'table2' ) // col3 100% { echo ""; # echo ""; echo ""; echo ""; #if($value[5]) #echo ""; echo ""; } elseif( $value[0] == 'desc' ) // col3 100% { echo ""; echo ""; } elseif( $value[0] == 'desc2' ) // col3 100% { echo ""; echo ""; #if($value[2]) echo ""; echo ""; } elseif( $value[0] == 'multi' ) { #echo ""; # for($i=1; $i < count($value); $i++) { if($i==2) $w = 'width="100%"';else $w = ''; #if(($i==4or$i==5) && $gi%2 != 0) $opa = 'background-color:#fcfcfc;'; else $opa = ''; # opacity:0.8; filter:alpha(opacity=80); if($i==2 or $i==4 or $i==6 or $i==8 or $i==10) $border = "border-left:1px dashed #eee;";else $border = ''; if($i==count($value)) echo ""; else echo ""; } echo ""; } elseif( $value[0] == 'multi2' ) { #echo ""; # for($i=1; $i < count($value); $i++) { echo ""; } echo ""; } elseif( $value[0] == 'showhide' ) { echo ""; echo ""; echo ""; echo ""; } elseif( $value[0] == 'check' ) { if($_POST["$value[1]"]) $checked = 'checked'; else $checked = ''; echo " "; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } elseif( $value[0] == 'dots' ) { echo ' '; } elseif( $value[0] == 'date' ) { echo ""; echo ""; echo ""; echo ""; echo ""; } elseif( $value[0] == 'order' ) // Spalten nicht sichtbar { echo ""; echo ""; echo ""; echo ""; } elseif( $value[0] == '' ) { echo ""; echo ""; echo ""; echo ""; echo ""; } else { echo ""; echo ""; echo ""; echo ""; echo ""; } echo ""; } echo "
$value[1]"; echo "'; echo "$value[6]
$value[1]

"; echo ""; echo "
$value[1]"; echo "'; echo "
$value[1]"; echo ""; echo "$value[6]
"; echo "$value[1]
"; echo ""; echo "
$value[8]
$value[1]"; echo ""; echo "
$value[2]
$value[3]"; echo "
$value[1]"; if($value[4]) $submit = "onclick=submit()"; if($value[3] > 0) $checked = "checked"; else $checked = ''; echo " " . KS_ACTIVATED; echo "      "; if($value[3] == 0) $checked = "checked"; else $checked = ''; echo " " . KS_DEACTIVATED; echo "$value[5]
$value[1]"; if($value[4]) $submit = "onclick=submit()"; if($value[3] > 0) $checked = "checked"; else $checked = ''; echo " " . KS_YES; echo "      "; if($value[3] == 0) $checked = "checked"; else $checked = ''; echo " " . KS_NO; echo "
$value[1]$value[8]
$value[1]
$value[1]
$value[1]"; echo ' '; echo ' '; echo ''; echo "$value[4]
$value[1]"; echo ' '; echo ' '; echo ''; echo "
$value[1]$value[3]
$value[3]$value[1]$value[3]$value[4]$value[5]
$value[1]$value[3]$value[4]$value[5]
$value[1]
$value[1]$value[2]
$value[$i]$value[$i]
$value[$i]
$value[1]"; #if($value[4]) $submit = "onclick=submit()"; if($value[3] == 1) $checked = "checked"; else $checked = ''; echo "".KS_YES; echo "      "; if($value[3] == 0) $checked = "checked"; else $checked = ''; echo "".KS_NO; echo "
$value[2]
$value[5]
".BT_HELP16."
'. kswhitedots() . '
kundensystem '.$value[1].'$value[1]"; echo ""; echo "$value[5]
$value[1]

"; echo ''; echo "
$value[1]$value[3]$value[4]
$value[1]"; eval ($value[3]); echo "$value[5]
"; echo $java; } ?>0) $error = KS_ERR_DATAEXISTS; #else #{ if(isset($_GET['edit'])) { foreach($_POST as $key => $value) mysql_query("UPDATE `$table` SET `". $key . "` = '" . $value . "' WHERE anbieter = '". $_SESSION['login_ds'] ."' AND id = '" . $_GET['id'] . "' "); $success = KS_SUC_DATAREFRESH; #ksforward("?$link",1); } else { $_POST['anbieter'] = $_SESSION['login_ds']; mysql_query("INSERT INTO `$table` () VALUES () "); foreach($_POST as $key => $value) mysql_query("UPDATE `$table` set `". $key . "` = '" . $value . "' WHERE id = last_insert_id(); "); $success = KS_SUC_DATAWRITTEN; } #} } if($_GET['order']) { $query = mysql_query(" SELECT * FROM `$table` WHERE $ordercol anbieter = '$_SESSION[login_ds]' ORDER BY `order` " . $_GET['order']); changeids($query, "$table"); } ## SET ORDERS 123... $query = mysql_query(" SELECT * FROM `$table` WHERE $ordercol anbieter = '$_SESSION[login_ds]' ORDER BY `order` ASC "); while($array = mysql_fetch_array($query)) mysql_query(" UPDATE `$table` SET `order` = '". ++$x ."' WHERE id = '".$array['id']."' "); ## SET ORDERS 123... include "inc/status.php"; } ?> '".(time()+200000)."' "))) $product['menge'] = 0; # CART SESSION if($_SESSION['warenkorb']) { # GET PAKET if($_SESSION['paket']) { if($_SESSION['externshop']) $query = mysql_query(" SELECT * FROM server_packages WHERE paket = '". $_SESSION['paket'] ."' AND anbieter = '$_SESSION[externshop]' "); else $query = mysql_query(" SELECT * FROM server_packages WHERE paket = '". $_SESSION['paket'] ."' AND anbieter = '$siteinfo[anbieter]' "); if($_SESSION['productid']) // ABO $query = mysql_query(" SELECT *,price AS 'betrag' FROM server_shop WHERE id = '". $_SESSION['productid'] ."' "); $pakarray = mysql_fetch_array($query); $cartarray[0] = array( 'menge' => 1, 'type' => KS_PACKAGE, 'artnr' => KS_PACKAGE, 'name' => $_SESSION['paket'], 'untertitel' => "", 'einzelpreis' => $pakarray['betrag'], 'mietpreis' => $pakarray['betrag'], 'configurator' => 1 ); } foreach($_SESSION['warenkorb'] as $key => $menge) { ### OPTIONS PATCH if(ereg("^option", $key)) { $query = mysql_query(" SELECT * FROM server_shop_options_val WHERE id = '". ereg_replace("^option", "", $key) ."' "); $valarray = mysql_fetch_array($query); $einzelpreis = $valarray['price']; if($_SESSION['paketarray']['zyklus']) $menge = $_SESSION['paketarray']['zyklus']; } else { $shopquery = mysql_query(" SELECT * FROM server_shop WHERE id = '$key' "); // AND anbieter = '$siteinfo[anbieter]' $shoparray = mysql_fetch_array($shopquery); #if($shoparray['price']) $einzelpreis = $shoparray['price']; // STAFFEL $staffelquery = mysql_query(" SELECT * FROM `server_shop_prices` WHERE pid = '" . $key . "' AND menge <= '".$menge."' ORDER BY menge DESC "); if(mysql_num_rows($staffelquery) > 0) { $staffelarray = mysql_fetch_array($staffelquery); $einzelpreis = $staffelarray['preis']; } } $attquery = mysql_query(" SELECT * FROM server_shop_options WHERE id = '$valarray[aid]' "); $attarray = mysql_fetch_array($attquery); # ndert Menge = individueller Zyklus $optionsarray = optionsarray(); if($optionsarray[$attarray['pakfeature']][1]=="zyklus") $cartarray[0]['menge'] = $valarray['quantity']; if(ereg("^option", $key)) $valarray['artnr'] = $attarray['type']; else { $valarray['name'] = $shoparray['name']; $attarray['desc'] = $shoparray['untertitel']; $valarray['artnr'] = $shoparray['artnr']; $attarray['type'] = ""; } $endbetrag += ($menge * $einzelpreis) + $valarray['setup']; $endbetrag_month += $einzelpreis; $setup += $valarray['setup']; if($einzelpreis) $cartarray["$key"] = array( 'menge' => $menge, 'artnr' => $valarray['artnr'], 'type' => $attarray['type'],# .": ", 'name' => $valarray['name'], 'untertitel' => $attarray['desc'], 'einzelpreis' => $einzelpreis, 'setup' => $valarray['setup'], 'configurator' => ereg("^option", $key) ? 1 : 0 ); # ,'mietpreis' => $valarray['mietpreis'] $_SESSION['einzelpreis']["$key"] = $einzelpreis; } } $endbetrag += $cartarray[0]['menge'] * $pakarray['betrag']; $endbetrag_month += $cartarray[0]['menge'] * $pakarray['betrag']; $endbetrag = sprintf("%01.2f",$endbetrag); $endbetrag_month = sprintf("%01.2f",$endbetrag_month); $setup = sprintf("%01.2f",$setup); $mwst = sprintf("%01.2f",$endbetrag / (100+$settings['tax']) * $settings['tax']); $artikelanzahl = 0; if($_SESSION['warenkorb']) $artikelanzahl = count(array_values($_SESSION['warenkorb'])); if(isset($_GET['debug'])) { var_export($_SESSION['cart']); var_export($_SESSION['warenkorb']); #$_SESSION['paketarray']['setup'] = $setup; #print_r($product); print_r($cartarray); print_r($_SESSION['warenkorb']); #print_r($_POST); #echo $endbetrag; } #print_r($cartarray); ?>
powered by Hosting Automation