main (); // call the "main" method // This page configuration // $Blogs_Page="Yes";//This is an Blogs page $table_name = "blogs";// $Blog_Category = "Stay Reports";//Stay Reports $Blog_artnr = "105";//105 //Set This to the current directories location relative to web root. $path=$_SERVER['PHP_SELF']; $path_parts = pathinfo("$path"); $dir_strip = $path_parts['dirname'];//Gives directory from web root with / to current directory name with no /. $this_filename = $path_parts['basename'];//Gives this file name with extension no /'s. file_name.html $extension = $path_parts['extension'];//Give this file file_name.html extension only: html with no dot. $sub_file_name = str_replace(".$extension","",$this_filename); //echo"
sub_file_name = $sub_file_name
"; //echo"
extension = $extension
"; // $current_directory = dirname($path);//Give only this directories name none above with no /'s. $current_directory = str_replace('\\','/',$current_directory); $current_directory = explode('/',$current_directory); $current_directory = end($current_directory); // //Include the Commone Rating Conversion Code include("$DOCUMENT_ROOT/inc/RatingConversion.php"); include("$DOCUMENT_ROOT/$Blog_Location/inc/Blogs.html"); ?>