debug=0; if (isset($_GET['debug'])) { $DomRobot->debug=1; $domain_result=$DomRobot->CheckDomain('testlalalala.de'); var_dump($domain_result); } $module = geturl('module'); $page = geturl('page'); $additional = geturl('additional'); if ($module == 'photos_book') { $max_width = "480"; // Max width allowed for the large image $thumb_width = "370"; // Width of thumbnail image $thumb_height = "460"; // Height of thumbnail image } elseif (isset($_SESSION['profilepic_crop'])) { $max_width = "111"; // Max width allowed for the large image $thumb_width = "111"; // Width of thumbnail image $thumb_height = "165"; // Height of thumbnail image } require_once('include/thumbnail.class.php'); $server_name = parseservername($_SERVER['SERVER_NAME']); if ($server_name != 'modelwebsites' || isset($_GET['modelbook'])) { // START MODELWEBSITE BACKEND $model = new User('pagename', $server_name, true); if (!$model->does_exist()) { // Check if this is an top-level-domain $model = new User('domain', $server_name, true); if (!$model->does_exist()) error_die('This domain has not been configured yet.'); } $layout_t = 'website'; if ($model->valid_membership() == false) error_die('This page is currently not available. Maybe the account has to be continued.', 'Your Modelwebsite has been expired'); if (isset($_GET['modelbook'])) $page = 'modelbook'; $module = 'website'; $file = FS_PATH.'/modules/'.$module.'.php'; if(!file_exists($file)) error_die("Module does not exist."); $model->addvisit(); /*$model->counter++; $model->save();*/ require($file); if (isset($output_file)) { $output = 'templates/'.$module.'_'.$output_file.'.php'; if ($model->design == '' || $model->design == "default") $ly = "website"; if ($model->design == "white") $ly = "white"; if ($model->design == "juuuz") $ly = "juuuz"; if (file_exists($output)) html_start($template_title, $ly, $showlayout); else error_die('Template does not exist. ('.$output.')'); require ($output); html_stop(); } } else { // START MANAGEMENT BACKEND /** LOAD USER **/ $user = new User('session_id', session_id(), true); if (!$user->does_exist()) { $user = false; $is_logged_in = false; } else { $is_logged_in = true; if ($_SESSION['lastcall'] + 60 < time()) { $user->setval('session_lastcall', time()); $_SESSION['lastcall'] = time(); } } if ($is_logged_in) if ($user->membership_until < time() && $module != 'payment' && $page != 'integratedsignup' && $module != 'account') redir('payment/expired'); /** MODULE MANAGEMENT **/ if (!$module) $module = 'start'; if ($is_logged_in) { $_MODULES['used'] = $_MODULES['logged_in']; } else { $_MODULES['used'] = $_MODULES['logged_out']; } if (!$module || !in_array($module, $_MODULES['used'])) { redir('start'); } if ($_GET['clearitall']) unset($_SESSION); if (isset($_SESSION['a_cropfile']) && ($module != 'photos' || $page != 'chop')) { $large_image_location = 'dynamic/galleries/large-'.$_SESSION['a_cropfile']; $thumb_image_location = 'dynamic/galleries/small-'.$_SESSION['a_cropfile']; $uploadFileName = $_SESSION['a_cropfile']; $module = 'photos'; show_template('cropprofile', 'Photo successfully uploaded'); } else { if (!isset($_SESSION['random_key']) || strlen($_SESSION['random_key'])==0){ $_SESSION['random_key'] = strtotime(date('Y-m-d H:i:s')); //assign the timestamp to the session variable $_SESSION['user_file_ext']= ""; } if ($is_logged_in && is_object($user) && $page != 'integratedsignup') /*if ($user->agb_accepted != 'yes' && !$_GET['accept']) { $agb = true; include('templates/acceptagb.php'); die(); } elseif ($_GET['accept']) {*/ if ($user->agb_accepted != 'yes') { define('NO_INFO', true); $user->agb_accepted = 'yes'; $user->membership_until = (time() + TRIAL_MEMBERSHIP_DURATION); $user->save(); ok_die(/*'Your Trial Membership started now and is valid until '.mkdate((time() + TRIAL_MEMBERSHIP_DURATION)).'

*/'

Willkommen zu deiner eigenen, neuen Model Website!

Deine Website ist unter diesem Link verf├╝gbar: http://'.$user->pagename.'.modelome.com

Falsche Version: http://www.'.$user->pagename.'.modelome.com (Bitte beache, dass der Link nur OHNE www. funktioniert)

Richtige Version: http://'.$user->pagename.'.modelome.com

Wir haben Dir soeben auch eine Email mit Deinen Zugangsdaten zugeschickt an: '.$user->email.'

'.html_ahref('start/help', 'Bitte klick hier, um jetzt Deine Modelwebsite zu erstellen!').'



Welcome to your own personal model website!

Your website is available here: http://'.$user->pagename.'.modelome.com

Wrong version: http://www.'.$user->pagename.'.modelome.com (Please keep in mind that this link is only working without www.)

Right version: http://'.$user->pagename.'.modelome.com

We also sent you an email with your login information to your email adress: '.$user->email.'

'.html_ahref('start/help', 'Please click here to see how you can create your own modelwebsite!'), 'Congratulations! You can start now!'); } $file = FS_PATH.'/modules/'.$module.'.php'; if(!file_exists($file)) error_die("Module does not exist."); require($file); } if (isset($output_file)) { $output = 'templates/'.$module.'_'.$output_file.'.php'; if (file_exists($output)) html_start($template_title); else error_die('Template does not exist. ('.$output.')'); require ($output); html_stop(); } } exit(); ?>