'Error 404 page cannot be found', 'heading_1'=>'Error 404 page cannot be found', 'content_1'=>'Sorry this page is removed or cannot be found', 'content_2'=>'', 'content_3'=>'', 'content_4'=>'', 'content_5'=>'', 'client_content_and_location'=>'', 'additional_pages_links'=>'', 'error_page_links'=>'', 'link_content'=>'', 'box_2'=>'' ); $cont=DB_connect::connect_db(); mysqli_query($cont, "INSERT INTO _logs_banned_pages_attempted (page_tried) VALUES ('$page_url')"); DB_connect::disconnect_db($cont); return $error_page; } #require_once(dirloc::$dirlocation.'/get_links.php'); function error_generator($domain_in,$path_in,$extn,$site_data){ if($extn==''){ $fulladdress=$domain_in.$path_in; } else{ $fulladdress=$domain_in.$path_in.'.'.$extn; } $serverpath=$domain_in.$path_in; #$t_r_l_n_a=array(60,15,15,10); //0, 1, 2, 3 link chances - must add up to 100 or it will truncate the chances #$random_link_choice=rand(1,100); #if($random_link_choice<=$t_r_l_n_a[1]+$t_r_l_n_a[0]+$t_r_l_n_a[2]+$t_r_l_n_a[3]){ # $rand_link_num=3;} #if($random_link_choice<=$t_r_l_n_a[1]+$t_r_l_n_a[0]+$t_r_l_n_a[2]){ # $rand_link_num=2;} #if($random_link_choice<=$t_r_l_n_a[1]+$t_r_l_n_a[0]){ # $rand_link_num=1;} #if($random_link_choice<=$t_r_l_n_a[0]){ # $rand_link_num=0;} /// build the error page // $site_data if(substr($serverpath, -1)=='/'){ $split_path=explode('/',$serverpath); end($split_path); $keyword=prev($split_path); } else{ $keyword=basename($path_in); } $keyword=ucfirst(str_replace('-',' ',$keyword)); $keyword=str_replace('_',' ',$keyword); #######################################image injection ###################################### $thiscontent=''; ##Two parts@ #get images #$thiscontent.=get_image($site_data['theme'],$site_data['subtheme'],$keyword); #get content #$thiscontent.=get_content($site_data['theme'],$site_data['logo'],'',$site_data['company'],$site_data['email'],$fulladdress,$keyword); ############################################################################################# $thistitle=$keyword.' - '. $site_data['logo']; $thisheading=$keyword.' - '. $site_data['logo']; $thisanchor=$keyword; $thislinks=''; $cont=DB_connect::connect_db(); /* put it into the database $offset_result = mysqli_query($cont, "SELECT id FROM `page_data` WHERE `domain` LIKE '$domain_in';"); while($offset_rowin= mysqli_fetch_assoc( $offset_result )){ $offset_row[]=$offset_rowin; } $select_random_page_offset=(array_rand($offset_row)); $select_random_page_id=$offset_row[$select_random_page_offset]['id']; $query = mysqli_query($cont, "SELECT error_page_links, time_edit_stamp FROM `page_data` WHERE `id` LIKE '$select_random_page_id';"); $error_page_links = mysqli_fetch_assoc($query); //print_r($error_page_links); $time_edit_stamp=$error_page_links['time_edit_stamp']; $error_page_links=$error_page_links['error_page_links']; if($extn==''){$error_page_links.='
  • '.$thisanchor.'
  • '.PHP_EOL;} else{ $error_page_links.='
  • '.$thisanchor.'
  • '.PHP_EOL; } $time_edit_stamp=$time_edit_stamp+1; //echo '
    '; */ if($extn==''){$page_name=$path_in;} else{ $page_name=$path_in.'.'.$extn; } #$query = mysqli_query($cont, "UPDATE `page_data` SET `error_page_links`='$error_page_links', `time_edit_stamp`='$time_edit_stamp' WHERE `id`='$select_random_page_id';"); $current_time=date('h:m d/m/y'); $thistitle=str_replace('\'',"\'",$thistitle); $thisheading=str_replace('\'',"\'",$thisheading); $thisanchor=str_replace('\'',"\'",$thisanchor); mysqli_query($cont, "INSERT INTO page_data (page_url, domain, page_title, content_1, heading_1, anchor, source, active_status, time_created, linker_status) VALUES ('$path_in', '$domain_in' ,'$thistitle', '$thiscontent', '$thisheading', '$thisanchor', 'error' , '1', '$current_time', '1')"); //echo mysql_errno($cont) . ": " . mysql_error($cont) . "\n"; #$thislinks=get_links($rand_link_num,$fulladdress); #$thislinks=str_replace("\'","\'",$thislinks); #mysqli_query($cont, "UPDATE `page_data` SET `link_content`='$thislinks' WHERE `page_url`='$path_in' AND `domain`='$domain_in';"); $query=mysqli_query($cont, "SELECT id FROM `page_data` WHERE `page_url`='$path_in' AND `domain`='$domain_in';"); $page_id=mysqli_fetch_array($query); $page_id=$page_id['id']; $theme=$site_data['theme']; $logo=$site_data['logo']; $company=$site_data['company']; $email=$site_data['email']; $subtheme=$site_data['subtheme']; ############################ Menu Update##################################### $query = mysqli_query($cont, "SELECT menu FROM `sitewide_data` WHERE `domain` = '$domain_in';"); $menu_update=mysqli_fetch_array($query); $menu_update=$menu_update['menu']; $menu_num=substr_count($menu_update,'
  • '); if($menu_num<=7){ $thisanchor= explode(' ',$thisanchor,3); $thisanchor=$thisanchor[0].' '.$thisanchor[1]; if($extn==''){$menu_update.='
  • '.$thisanchor.'
  • '.PHP_EOL;} else{ $menu_update.='
  • '.$thisanchor.'
  • '.PHP_EOL;} } ############################################################################# mysqli_query($cont, "INSERT INTO _logs_pages_created (pagelist) VALUES ('$fulladdress')"); $query = mysqli_query($cont, "SELECT COUNT(*) FROM page_data WHERE `domain` = '$domain_in'"); $page_count=mysqli_fetch_array($query); $page_count=$page_count[0]; $query = mysqli_query($cont, "UPDATE `sitewide_data` SET `page_count`='$page_count', `menu`='$menu_update' WHERE `domain` = '$domain_in';"); mysqli_query($cont, "INSERT INTO create_queue (page_id, fullurl, current_theme, current_subtheme, website_title, company, email, page_title, domain, page) VALUES ('$page_id', '$fulladdress', '$theme', '$subtheme', '$logo', '$company', '$email', '$keyword', '$domain_in', '$page_name')"); DB_connect::disconnect_db($cont); $error_page_gen=array( 'domain'=>$domain_in, 'page_title'=>$thistitle, 'heading_1'=>str_replace('\\',"",$thisheading), 'content_1'=>$thiscontent, 'content_2'=>'', 'content_3'=>'', 'content_4'=>'', 'content_5'=>'', 'client_content_and_location'=>'', 'additional_pages_links'=>'', 'error_page_links'=>'', 'link_content'=>$thislinks, 'box_2'=>'' ); return $error_page_gen; } ?>'.$opt.''; $java_opts.='"'.$opt.'":['; $java_opts.='{text:"Please Select",value:""},'; $java_opts.='{text:"Generic",value:""},'; foreach($newarray[$opt] as $value){ $java_opts.='{text:"'.$value.'",value:"'.$value.'"},'; } $java_opts=rtrim($java_opts, ","); $java_opts.='],'; } $java_opts=rtrim($java_opts, ","); $java_opts.='}'; #################### ### the themes header part### $new_head['header_code']=' '; ########################## ###The themes form part: ########### ############# if($path=='/create_new_site'){ if(isset($_POST['site_info'])){ $server_name_path=dirloc::$dirlocation."server_name.txt"; $handle = fopen($server_name_path, "r"); $server_name=fread($handle,filesize($server_name_path)); fclose($handle); $fulladdress=$domain.$path; $site_logo=$_POST['sitelogo']; $site_logo=str_replace('\'',"\'",$site_logo); $site_company=$_POST['company']; $site_company=str_replace('\'',"\'",$site_company); $site_email=$_POST['email_bit']; $site_email=str_replace('\'',"\'",$site_email); $site_sidebar=$_POST['side_bar_1']; $site_sidebar=str_replace('\'',"\'",$site_sidebar); // this is for the homepage content $site_title=$_POST['title']; $site_title=str_replace('\'',"\'",$site_title); $site_heading=$_POST['heading']; $site_heading=str_replace('\'',"\'",$site_heading); $site_content=$_POST['content_1']; $theme=$_POST['fieldone']; $subtheme=$_POST['findone']; $site_content=str_replace('\'',"\'",$site_content); $leftfooter1='

    2014 © Copyright '.$site_logo.' - '.$domain.' All rights reserved. Email: '.$site_email.'@'.$domain.'

    '.PHP_EOL; $menu='
  • Home
  • '.PHP_EOL; $thistitle=$site_title; $thiscontent=$site_content; $thisheading=$site_heading; $thisanchor='Home'; $thisbox=''; //$rand_link_num=rand(0,3); $thislinks=''; $path_page='/'; $email=$site_email.'@'.$domain; $current_time=date('h:m d/m/y'); $cont=DB_connect::connect_db(); mysqli_query($cont,"INSERT INTO sitewide_data (domain, server_location, logo, menu, company, side_bar_1, footer_left_1, email, theme, subtheme) VALUES ('$domain', '$server_name', '$site_logo', '$menu','$site_company' , '$site_sidebar', '$leftfooter1', '$email', '$theme', '$subtheme');"); mysqli_query($cont, "INSERT INTO page_data (page_url, domain, page_title, content_1, heading_1, anchor, box_2, link_content, active_status, time_created) VALUES ('$path_page', '$domain' ,'$thistitle', '$thiscontent', '$thisheading', '$thisanchor', '$thisbox', '$thislinks', '1', '$current_time')"); DB_connect::disconnect_db($cont); sleep(1); header('Location: /'); } $site_title='Welcome to '.$site_logo.''; $site_heading='Welcome to '.$site_logo.''; $new_site['heading_1']='Welcome to new site creation'; $new_site['page_title']='Welcome to new site creation'; $new_site['content_1']='
    Enter the site logo:

    Enter Company Name:

    Enter website email:
    @'.$domain.'
    Select the theme | subtheme:


    Enter the sidebar content:

    Enter Home page meta title:

    Enter Home page Heading:

    Enter the homepage content:

    '; // $leftfooter1='

    2013 © Copyright '.$sitelogo.' - '.$domain.' All rights reserved. Email: '.$email.'

    '.PHP_EOL; } else{ $new_site['heading_1']='Welcome to '.$domain; $new_site['content_1']='Welcome to '.$domain.' Our new site is well underway, please bookmark us or add us to Google+.'; } $returnarray=array(); $returnarray[]=$new_site; $returnarray[]=$new_head; return $returnarray; } ?> Leicester Regen - Leicester Business roup

    About Us

    Leicester is one of Britain’s most up and coming tourist spots, steeped in history, culture and entertainment, it makes the perfect holiday, student city or hometown.

    More Details

    Recommended

    New for 2014

    Leicester Info is here to give you a quick and simple guided tour of all you need to know about the great city. From the discovery of Richard III to Leicester FC we’ve got the info you need to get to know Leicester a little better.

    More Details

    Who What & Why

    Leicester Info is here as your quick and thorough guide to the city of Leicester! With information on everything from Roman ruins to future city renovations we’re here to give you the facts and figures of the beautiful city. If you have any further enquiries, please contact us!

    More Details

    Quick Links

    Boardminutes - Leicester Regen - Leicester Business roup

    Welcome to Leicester Info!

    Welcome to Leicester Info, we’re here to give you a run through of all things Leicester! Whether you’re visiting for a shopping trip or looking for a new home, Leicester Info will give you the valuable information you need to get to know the city.

    Located off the heart of the M1, Leicester has excellent transportation links to the capital and even Europe, making it the vibrant hub of the midlands! East Midlands Trains offer fast, frequent and reliable trains to London, with connections to the Eurostar, making it the perfect place to start a holiday.

    With a population of over 330, 000 people, it’s a buzzing and vibrant city, steeped in culture and history. Leicester stands as one of the oldest cities in Britain and, remarkably, still has a vast amount of historical buildings on its streets. Dating back at least 2000 years and with traces of the Celts and Romans still standing, it’s a must visit for history lovers and a beautiful site for city strolls.

    As a city that makes the most of its ethnicities the summer is an excellent season to visit Leicester and join in a number of cultural gatherings. The annual Caribbean Carnival is an excellent way to get a colorful culture fix!






    More

    • History

      A Brief History of the Ancient City

      Leicester is fast becoming a historical landmark for Britain. Following the discovery of Richard III’s body in a council car park, the city has been a hive of activity and interest.

      A study by archaeologists from the University of Leicester has shown that the King was buried without ceremony, the grave being dug at an awkward angle and the body not being arranged. The study has also given historians further evidence of how the king died and how he lived his life.

      The discovery of Richard III’s body has led to a great economic boost in Leicester, being one of the biggest historical finds in decades, it has secured the city a place on the list Britain’s tourist hot spots.

    • Day and Night in Leicester

      Leicester is a cultural melting pot, meaning the variety of entertainment it has to offer is astounding!

      Whether you’re looking for a boutique, alternative or big budget shopping experience, Leicester offers it all. Haymarket Shopping Centre offers a shop-till-you-drop visit whilst St Martin’s lane gives a more relaxed and kooky trip.

      For cultural nighttime entertainment, Leicester has a variety of cinemas, theatres and music venues. Phoenix Square is a cool independent cinema, offering a chilled out evening, whilst Kilworth House Theatre hosts a classier event.