<?
$trigger = array("ERROR" => " ERROR:: ", "QUERY" => " QUERY:: ", "ALERTPUSH" => " ALERT:: ");

if (isset($_POST['mylanguage'])&&$_POST['mylanguage']!=''){
    session_start();
    $_SESSION['mylanguage'] = $_POST['mylanguage'];
    exit();
}
else if (!isset($_SESSION['mylanguage'])||$_SESSION['mylanguage']=='')
    $_SESSION['mylanguage'] = "english";

$_SESSION['mylanguage'] = "greek";

$words = array
(
    "mean"=>array(
        "login",
        "startup_newtrip",
        "member_login",
        "username",
        "password",
        "email",
        "signup",
        "forgot_password",
        "logout",
        "firstname",
        "lastname",
        "password_confirm",
        "day",
        "year",
        "member_signup"),

    "greek"=>array(
        "Είσοδος",
        "Συνδεθείτε για να σχεδιάσετε τα ταξίδια σας",
        "Είσοδος Μέλους",
        "Όνομα Χρήστη",
        "Κωδικός",
        "Ηλ. Ταχυδρομείο",
        "Δημιουργία Λογαριασμού",
        "Ξεχάσατε τον Κωδικό σας;",
        "Έξοδος",
        "Όνομα",
        "Επίθετο",
        "Επιβεβαίωση Κωδικού",
        "Ημέρα",
        "Χρόνος",
        "Εγγραφή Μέλους"),

     "english"=>array(
        "Login",
        "Login to start a new trip",
        "Member Login",
        "Username",
        "Password",
        "Email",
        "Create an Account", 
        "Forgot your Password?",
        "Logout",
        "Name",
        "Lastname",
        "Password Confirmation",
        "Day",
        "Year",
        "Free Signup")
);

$navigation = array();
$navigation['categories'] = array
(
    "category"=>array(
        "news",
        "trips",
        "other_pages",
        "about",
        "account"),
    "greek"=>array(
        "Νέα",
        "Ταξίδια",
        "Λοιπές Σελίδες",
        "Σχετικά",
        "Λογαριασμός"),
     "english"=>array(
        "News",
        "Trips",
        "Other Pages",
        "About",
        "Account")
);

/*$navigation[$navigation['categories']['category'][0]] = array
(
    "subcategory"=>array(
        "index",
        "registration_forms",
        "registration_forms_templates"),
    "greek"=>array(
		"Αρχική",
		"Αιτήσεις Εγγραφής",
		"Πρότυπα Αιτήσεων")
);

$navigation[$navigation['categories']['category'][1]] = array
(
    "subcategory"=>array(
        "index",
        "registration_forms",
        "registration_forms_templates"),
    "greek"=>array(
		"Αρχική",
		"Αιτήσεις Εγγραφής",
		"Πρότυπα Αιτήσεων")
);

$navigation[$navigation['categories']['category'][3]] = array
(
    "subcategory"=>array(
        "index",
        "registration_forms",
        "registration_forms_templates"),
    "greek"=>array(
		"Αρχική",
		"Αιτήσεις Εγγραφής",
		"Πρότυπα Αιτήσεων")
);
*/
$navigation[$navigation['categories']['category'][4]] = array
(
    "subcategory"=>array(
        "register",
        "login"),
    "greek"=>array(
        "Εγγραφή",
        "Σύνδεση")
);

/*$navigation["index_info"] = array
(
    "english"=>array(
        "places all over the World",
        "Manage booking online",
        "places all over the World",
        "Avaliable everywhere"),
    "greek"=>array(
        "Γνωρίστε άτομα",
        "Διαμορφώστε online το πρόγραμμα σας",
        "Στη δική σας γλώσσα",
        "Διαθέσιμη πάντα και παντού")
);*/

$navigation["index_info"] = array
(
    "english"=>array(
        "places all over the World",
        "Manage booking online",
        "places all over the World",
        "Avaliable everywhere",
        "setup"),
    "greek"=>array(
        "ΑΝΑΖΗΤΗΣΤΕ ΓΡΗΓΟΡΑ ΧΡΗΣΤΕΣ-ΜΕΛΗ",
        "ΠΡΟΣΘΕΣΤΕ ΕΥΚΟΛΑ ΦΙΛΟΥΣ ",
        "ΔΗΜΙΟΥΡΓΗΣΤΕ ΤΑ ΔΙΚΑ ΣΑΣ ΤΑΞΙΔΙΑ",
        "ΠΡΟΣΚΑΛΕΣΤΕ ΑΤΟΜΑ ΣΤΑ ΤΑΞΙΔΙΑ ΣΑΣ",
        "ΣΤΕΙΛΤΕ ΠΡΟΣΩΠΙΚΑ ΜΗΝΥΜΑΤΑ")
);     


$navigation["index_header"] = array
(
    "english"=>array(
        "Easy trip planning. Less hassle."),
    "greek"=>array(
        "Εύκολος προγραμματισμός ταξιδιού. Λιγότερη ταλαιπωρία.")
);

$months = array
(
    "greek"=>array(
        "01" => "Ιανουάριος",
        "02" => "Φεβρουάριος",
        "03" => "Μάρτιος",
        "04" => "Απρίλιος",
        "05" => "Μάιος",
        "06" => "Ιούνιος",
        "07" => "Ιούλιος",
        "08" => "Αύγουστος",
        "09" => "Σεπτέμβριος",
        "10" => "Οκτώβριος",
        "11" => "Νοέμβριος",
        "12" => "Δεκέμβριος"),

     "english"=>array(
        "01" => "January",
        "02" => "February",
        "03" => "March",
        "04" => "April",
        "05" => "May",
        "06" => "June",
        "07" => "july",
        "08" => "August",
        "09" => "September",
        "10" => "Octomber",
        "11" => "November",
        "12" => "December")
);

$gender = array
(
    "greek"=>array(
        "Γυναίκα",
        "Ανδρας"),

     "english"=>array(
        "Female",
        "Male")
);



$menu_items = array
(
    "true"=>array
    (
        "greek"=>array(
            "Ενημερώσεις",
            "Τα ταξίδια μου",
            "Οι φίλοι μου",
            "Το προφίλ μου",
            "Τα Μηνύματα μου",
            "Ρυθμίσεις"),
        "english"=>array(
            "Feeds",
            "My Trips",
            "My Friends",
            "My Profile",
            "My Mails",
            "Settings"),
        "category"=>array(
            "index",
            "trips",
            "friends",
            "profile",
            "mails",
            "settings")
    ),
    "false"=>array
    (
        "greek"=>array(
            "",
            ""),
         "english"=>array(
            "",
            ""),
         "file"=>array(
            "",
            "")
    )
);


$content_icons = new fetch_from_table("content_icons", "1");
$content_icons->fetch_all();

/*gia asfaleia sto site den afinoume ton xristi na epileksei kati mi provlepomeno.
An zitisei kati mi provlepomeno ton epistrefoume stin arxiki selida index.*/
$category = '';
if(isset($_POST['category']))
    $category = $_POST['category'];
else
    $category='index';

$subcategory = '';
if(isset($_POST['subcategory']))
    $subcategory = $_POST['subcategory'];
else
    $subcategory = 'index';
/*{
	if(in_array($_POST['category'], $navigation['categories']['category'])||$_POST['category']=='login')
		$category = $_POST['category'];
    else
		header("Location: /");
}
else
	$category='index';
*/

?>