public function template($c, $page) { $conn = $this->conn($c); $cache = new cache(); $text_general = $cache->index($c, "text_general"); $data["text_general"] = json_decode($text_general, true); $welcomepage_categories = $cache->index($c, "welcomepage_categories"); $data["welcomepage_categories"] = json_decode($welcomepage_categories, true); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* Upload Users profile picture */ if (isset($_FILES["profileimage"]["name"])) { $model_template_upload_user_logo = new model_template_upload_user_logo(); $upload = $model_template_upload_user_logo->upload($c); } $sql = 'SELECT `username`,`user_type`,`namelname`,`dob`,`email`,`mobile`,`address`,`picture` FROM `studio404_users` WHERE `id`=:id'; $prepare = $conn->prepare($sql); $prepare->execute(array(":id" => $_SESSION["batumi_id"])); if ($prepare->rowCount() > 0) { $fetch = $prepare->fetch(PDO::FETCH_ASSOC); $data["userdata"] = $fetch; } else { redirect::url(WEBSITE); } $include = WEB_DIR . "/profilisredaqtireba.php"; if (file_exists($include)) { @(include $include); } else { $controller = new error_page(); } }
public function template($c, $page) { $conn = $this->conn($c); // connection $cache = new cache(); $homepage_general = $cache->index($c, "homepage_general"); $data["homepage_general"] = json_decode($homepage_general); /* languages */ $languages = $cache->index($c, "languages"); $data["languages"] = json_decode($languages); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* website menu header & footer */ $menu_array = $cache->index($c, "main_menu"); $menu_array = json_decode($menu_array); $model_template_main_menu = new model_template_main_menu(); $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header"); $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer"); /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); $include = WEB_DIR . "/contact.php"; if (file_exists($include)) { @(include $include); } else { $controller = new error_page(); } }
public function template($c, $page) { $conn = $this->conn($c); $cache = new cache(); $text_general = $cache->index($c, "text_general"); $data["text_general"] = json_decode($text_general, true); $welcomepage_categories = $cache->index($c, "welcomepage_categories"); $data["welcomepage_categories"] = json_decode($welcomepage_categories, true); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); $sql = 'SELECT `namelname`,`picture` FROM `studio404_users` WHERE `id`=:id'; $prepare = $conn->prepare($sql); $prepare->execute(array(":id" => $_SESSION["batumi_id"])); if ($prepare->rowCount() > 0) { $fetch = $prepare->fetch(PDO::FETCH_ASSOC); $data["userdata"] = $fetch; } else { redirect::url(WEBSITE); } /* catalog list */ $userlist = $cache->index($c, "userlist"); $data['userlist'] = json_decode($userlist, true); $include = WEB_DIR . "/momxmareblismarTva.php"; if (file_exists($include)) { @(include $include); } else { $controller = new error_page(); } }
public function template($c) { $conn = $this->conn($c); // connection $module_template_recoverpassword = new module_template_recoverpassword(); $data["message"] = $module_template_recoverpassword->change($c); $cache = new cache(); $text_general = $cache->index($c, "text_general"); $data["text_general"] = json_decode($text_general, true); /* languages */ $languages = $cache->index($c, "languages"); $data["languages"] = json_decode($languages); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* website menu header & footer */ $menu_array = $cache->index($c, "main_menu"); $menu_array = json_decode($menu_array); $model_template_main_menu = new model_template_main_menu(); $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header"); $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer"); /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); @(include $c["website.directory"] . "/recover.php"); }
public function template($c, $page) { $cache = new cache(); $include = WEB_DIR . "/worldmaponfullscreen.php"; $languages = $cache->index($c, "languages"); $data["languages"] = json_decode($languages); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); //vectormap_new $vectormap_new = $cache->index($c, "vectormap_new"); $data["vectormap_new"] = json_decode($vectormap_new, true); // mapfilter $mapfilter = $cache->index($c, "mapfilter"); $data["mapfilter"] = json_decode($mapfilter, true); $include = WEB_DIR . "/worldmaponfullscreen.php"; if (file_exists($include)) { @(include $include); } }
public function template($c) { $conn = $this->conn($c); // connection $cache = new cache(); $data["homepage_general"] = $cache->index($c, "homepage_general"); $data["homepage_files"] = $cache->index($c, "homepage_files"); /* languages */ $languages = $cache->index($c, "languages"); $data["languages"] = json_decode($languages); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* website menu header & footer */ $menu_array = $cache->index($c, "main_menu"); $menu_array = json_decode($menu_array); if ($menu_array) { $model_template_main_menu = new model_template_main_menu(); $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header"); $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer"); } /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); /* multimedia */ $multimedia = $cache->index($c, "multimedia"); $data["multimedia"] = json_decode($multimedia); $news = $cache->index($c, "news"); $data["news"] = json_decode($news); $events = $cache->index($c, "events"); $data["events"] = json_decode($events); @(include $c["website.directory"] . "/homepage.php"); }
public function template($c, $page) { $conn = $this->conn($c); $cache = new cache(); $text_general = $cache->index($c, "text_general"); $data["text_general"] = json_decode($text_general, true); /* categories list */ $welcomepage_categories = $cache->index($c, "welcomepage_categories"); $data["welcomepage_categories"] = json_decode($welcomepage_categories, true); /* all columns catalog table */ $catalog_table_columns = $cache->index($c, "catalog_table_columns"); $data["catalog_table_columns"] = json_decode($catalog_table_columns, true); /* all columns catalog table */ // $select_form = $cache->index($c,"select_form"); // $data["select_form"] = json_decode($select_form,true); $cid = Input::method("GET", "parent"); $select_form = new select_form(); $data["select_form"] = $select_form->form($c, $cid, LANG_ID); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); $sql = 'SELECT `namelname`,`picture` FROM `studio404_users` WHERE `id`=:id'; $prepare = $conn->prepare($sql); $prepare->execute(array(":id" => $_SESSION["batumi_id"])); if ($prepare->rowCount() > 0) { $fetch = $prepare->fetch(PDO::FETCH_ASSOC); $data["userdata"] = $fetch; } else { redirect::url(WEBSITE); } if (Input::method("GET", "parent") != "") { $parent = 'SELECT `idx`,`title` FROM `studio404_pages` WHERE `idx`=:idx AND `cid`=4 AND `status`!=1 AND `lang`=:lang'; $prepareParent = $conn->prepare($parent); $prepareParent->execute(array(":idx" => Input::method("GET", "parent"), ":lang" => LANG_ID)); if ($prepareParent->rowCount() > 0) { $parent_fetch = $prepareParent->fetch(PDO::FETCH_ASSOC); $data["parent_idx"] = $parent_fetch["idx"]; $data["parent_title"] = $parent_fetch["title"]; } else { redirect::url(WEBSITE . LANG . "/katalogis-marTva"); } } else { redirect::url(WEBSITE . LANG . "/katalogis-marTva"); } $include = WEB_DIR . "/formismarTva.php"; if (file_exists($include)) { @(include $include); } else { $controller = new error_page(); } }
public function template($c, $page) { $conn = $this->conn($c); // connection $cache = new cache(); $welcomepage_categories = $cache->index($c, "welcomepage_categories"); $data["welcomepage_categories"] = json_decode($welcomepage_categories, true); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); $sql = 'SELECT `namelname`,`picture` FROM `studio404_users` WHERE `id`=:id'; $prepare = $conn->prepare($sql); $prepare->execute(array(":id" => $_SESSION["batumi_id"])); if ($prepare->rowCount() > 0) { $fetch = $prepare->fetch(PDO::FETCH_ASSOC); $data["userdata"] = $fetch; } else { redirect::url(WEBSITE); } $sql2 = 'SELECT `studio404_messages`.*, `studio404_users`.`namelname` AS fromusername FROM `studio404_messages`, `studio404_users` WHERE `studio404_messages`.`fromuser`="' . $_SESSION["batumi_id"] . '" AND `studio404_messages`.`draft`=1 AND NOT FIND_IN_SET("' . $_SESSION["batumi_id"] . '",`studio404_messages`.`status`) AND `studio404_messages`.`tousers`=`studio404_users`.`id` ORDER BY `studio404_messages`.`date` DESC LIMIT 20'; $prepare2 = $conn->prepare($sql2); $prepare2->execute(); if ($prepare2->rowCount() > 0) { $fetch2 = $prepare2->fetchAll(PDO::FETCH_ASSOC); $data["messages"] = $fetch2; } else { $data["messages"] = array(); } $catalog_general = $cache->index($c, "catalog_general"); $data["catalog_general"] = json_decode($catalog_general, true); $catalogitemsnovisiable = $cache->index($c, "catalogitemsnovisiable"); $data["catalogitems"] = json_decode($catalogitemsnovisiable, true); $include = WEB_DIR . "/draft.php"; if (file_exists($include)) { @(include $include); } else { $controller = new error_page(); } }
public function template($c) { $conn = $this->conn($c); // connection $cache = new cache(); $team_general = $cache->index($c, "team_general"); $data["team_general"] = json_decode($team_general, true); $team_list = $cache->index($c, "team_list"); $data["team_list"] = json_decode($team_list); /* languages */ $languages = $cache->index($c, "languages"); $data["languages"] = json_decode($languages); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* website menu header & footer */ $menu_array = $cache->index($c, "main_menu"); $menu_array = json_decode($menu_array); $model_template_main_menu = new model_template_main_menu(); $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header"); $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer"); /* website left menu */ $left_menu = $cache->index($c, "left_menu"); $left_menu = json_decode($left_menu); $data["left_menu"] = $model_template_main_menu->left($left_menu); /* breadcrups */ $breadcrups = $cache->index($c, "breadcrups"); $data["breadcrups"] = json_decode($breadcrups); /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); @(include $c["website.directory"] . "/team.php"); }
public function template($c) { $conn = $this->conn($c); // connection $cache = new cache(); // $text_general = $cache->index($c,"text_general"); // $data["text_general"] = json_decode($text_general,true); $files_ = $cache->index($c, "files_"); $data["files_"] = json_decode($files_); /* breadcrups */ $breadcrups = $cache->index($c, "breadcrups"); $data["breadcrups"] = json_decode($breadcrups); @(include $c["website.directory"] . "/gallery.php"); }
public function template($c) { $conn = $this->conn($c); // connection $cache = new cache(); $homepage_general = $cache->index($c, "homepage_general"); $data["homepage_general"] = json_decode($homepage_general); $text_general = $cache->index($c, "text_general"); $data["text_general"] = json_decode($text_general, true); $photo_gallery_list = $cache->index($c, "photo_gallery_list"); $data["photo_gallery_list"] = json_decode($photo_gallery_list); /* languages */ $languages = $cache->index($c, "languages"); $data["languages"] = json_decode($languages); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* website menu header & footer */ $menu_array = $cache->index($c, "main_menu"); $menu_array = json_decode($menu_array); $model_template_main_menu = new model_template_main_menu(); $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header"); $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer"); /* website left menu */ /* fotogallery */ $fotogallery = $cache->index($c, "files_"); $data["fotogallery"] = json_decode($fotogallery); /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); @(include $c["website.directory"] . "/photogallery.php"); }
public function template($c) { $conn = $this->conn($c); // connection $cache = new cache(); /* contact_page_data */ $contact_page_data = $cache->index($c, "contact_page_data"); $data["contact_data"] = json_decode($contact_page_data, true); $files_ = $cache->index($c, "files_"); $data["files_"] = json_decode($files_); /* breadcrups */ $breadcrups = $cache->index($c, "breadcrups"); $data["breadcrups"] = json_decode($breadcrups); @(include $c["website.directory"] . "/gallery.php"); }
public function template($c, $page) { $conn = $this->conn($c); $cache = new cache(); $text_general = $cache->index($c, "text_general"); $data["text_general"] = json_decode($text_general, true); $welcomepage_categories = $cache->index($c, "welcomepage_categories"); $data["welcomepage_categories"] = json_decode($welcomepage_categories, true); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* Upload Users profile picture */ if (isset($_FILES["profileimage"]["name"])) { $model_template_upload_user_logo = new model_template_upload_user_logo(); $upload = $model_template_upload_user_logo->upload($c); } $sql = 'SELECT `namelname`,`picture` FROM `studio404_users` WHERE `id`=:id'; $prepare = $conn->prepare($sql); $prepare->execute(array(":id" => $_SESSION["batumi_id"])); if ($prepare->rowCount() > 0) { $fetch = $prepare->fetch(PDO::FETCH_ASSOC); $data["userdata"] = $fetch; } else { redirect::url(WEBSITE); } if (Input::method("GET", "parent") != "") { $parent = 'SELECT `idx`,`title` FROM `studio404_pages` WHERE `idx`=:idx AND `cid`=4 AND `status`!=1 AND `lang`=:lang'; $prepareParent = $conn->prepare($parent); $prepareParent->execute(array(":idx" => Input::method("GET", "parent"), ":lang" => LANG_ID)); if ($prepareParent->rowCount() > 0) { $parent_fetch = $prepareParent->fetch(PDO::FETCH_ASSOC); $data["parent_idx"] = $parent_fetch["idx"]; $data["parent_title"] = $parent_fetch["title"]; } else { redirect::url(WEBSITE . LANG . "/katalogis-marTva/damateba"); } } $include = WEB_DIR . "/damateba.php"; if (file_exists($include)) { @(include $include); } else { $controller = new error_page(); } }
public function template($c, $page) { $conn = $this->conn($c); // connection $cache = new cache(); $welcomepage_categories = $cache->index($c, "welcomepage_categories"); $data["welcomepage_categories"] = json_decode($welcomepage_categories, true); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); $sql = 'SELECT `namelname`,`picture` FROM `studio404_users` WHERE `id`=:id'; $prepare = $conn->prepare($sql); $prepare->execute(array(":id" => $_SESSION["batumi_id"])); if ($prepare->rowCount() > 0) { $fetch = $prepare->fetch(PDO::FETCH_ASSOC); $data["userdata"] = $fetch; } else { redirect::url(WEBSITE); } $data["cataloglist_names"] = new cataloglist_names(); $data["getusername"] = new getusername(); $labellists = new labellists(); $data["labellists"] = $labellists->loadlabels($c); $sql2 = 'SELECT `studio404_module_item`.* FROM `studio404_module_item` WHERE `module_idx`=25 AND `studio404_module_item`.`idx`=:idx AND `studio404_module_item`.`lang`=:lang AND `studio404_module_item`.`status`!=:status'; $prepare2 = $conn->prepare($sql2); $prepare2->execute(array(":idx" => Input::method("GET", "view"), ":lang" => LANG_ID, ":status" => 1)); if ($prepare2->rowCount() > 0) { $data["fetch"] = $prepare2->fetch(PDO::FETCH_ASSOC); } else { redirect::url(WEBSITE . LANG . "/welcomesystem"); } $include = WEB_DIR . "/monacemisnaxva.php"; if (file_exists($include)) { @(include $include); } else { $controller = new error_page(); } }
public function template($c) { $cache = new cache(); $text_general = $cache->index($c, "text_general"); $data["text_general"] = json_decode($text_general, true); /* languages */ $languages = $cache->index($c, "languages"); $data["languages"] = json_decode($languages); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* website menu header & footer */ $menu_array = $cache->index($c, "main_menu"); $menu_array = json_decode($menu_array); $model_template_main_menu = new model_template_main_menu(); $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header"); $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer"); /* website left menu */ $left_menu = $cache->index($c, "left_menu"); $left_menu = json_decode($left_menu); $data["left_menu"] = $model_template_main_menu->left($left_menu); /* breadcrups */ $breadcrups = $cache->index($c, "breadcrups"); $data["breadcrups"] = json_decode($breadcrups); /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); $include = WEB_DIR . "/loadmap.php"; if (file_exists($include)) { @(include $include); } }
public function template($c, $page) { $conn = $this->conn($c); // connection $cache = new cache(); $text_general = $cache->index($c, "text_general"); $data["text_general"] = json_decode($text_general, true); $structure = $cache->index($c, "structure"); $structure = json_decode($structure); $structure_array = new structure_array(); $data["structure"] = $structure_array->mk($structure); $data["structure_m"] = $structure; /* contact_page_data */ $contact_page_data = $cache->index($c, "contact_page_data"); $data["contact_data"] = json_decode($contact_page_data, true); /* languages */ $languages = $cache->index($c, "languages"); $data["languages"] = json_decode($languages); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* website menu header & footer */ $menu_array = $cache->index($c, "main_menu"); $menu_array = json_decode($menu_array); $model_template_main_menu = new model_template_main_menu(); $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header"); $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer"); /* website left menu */ $left_menu = $cache->index($c, "left_menu"); $left_menu = json_decode($left_menu); $data["left_menu"] = $model_template_main_menu->left($left_menu); /* breadcrups */ $breadcrups = $cache->index($c, "breadcrups"); $data["breadcrups"] = json_decode($breadcrups); /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); $include = WEB_DIR . "/struqtura.php"; if (file_exists($include)) { /* ** Here goes any code developer wants to */ @(include $include); } else { $controller = new error_page(); } }
public function template($c, $page) { $include = WEB_DIR . "/contactus.php"; if (file_exists($include)) { $cache = new cache(); $text_general = $cache->index($c, "text_general"); $data["text_general"] = json_decode($text_general, true); $text_files = $cache->index($c, "text_files"); $data["text_files"] = json_decode($text_files); $text_documents = $cache->index($c, "text_documents"); $data["text_documents"] = json_decode($text_documents); /* languages */ $languages = $cache->index($c, "languages"); $data["languages"] = json_decode($languages); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* website menu header & footer */ $menu_array = $cache->index($c, "main_menu"); $menu_array = json_decode($menu_array); $model_template_main_menu = new model_template_main_menu(); $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header"); $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer"); /* website left menu */ $left_menu = $cache->index($c, "left_menu"); $left_menu = json_decode($left_menu); $data["left_menu"] = $model_template_main_menu->left($left_menu); /* contact_page_data */ $contact_page_data = $cache->index($c, "contact_page_data"); $data["contact_data"] = json_decode($contact_page_data, true); /* languages */ $hidden_team_list = $cache->index($c, "hidden_team_list"); $data["hidden_team_list"] = json_decode($hidden_team_list, true); /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); @(include $include); } else { $controller = new error_page(); } }
public function nav($menu_array, $type) { // echo "<pre>"; // print_r($menu_array); // echo "</pre>"; $get_slug_from_url = new get_slug_from_url(); $slug = $get_slug_from_url->slug(); if ($type == "header") { $o = '<ul class="nav navbar-nav">'; for ($x = 0; $x < count($menu_array->date); $x++) { $active = $menu_array->slug[$x] == $slug ? 'active' : ''; if ($menu_array->sub[$x]) { $o .= '<li class="dropdown ' . $active . '">'; $o .= '<a href="' . MAIN_DIR . $menu_array->slug[$x] . '?v=<?=$menu_array->idx[$x]?>" class="sub_menu_arrow dropdown-toggle" data-toggle="dropdown">' . $menu_array->title[$x] . '</a>'; $o .= $this->sub($menu_array->sub[$x], $slug, "header"); $o .= '</li>'; } else { $o .= '<li class="' . $active . '"><a href="' . MAIN_DIR . $menu_array->slug[$x] . '?v=' . $menu_array->idx[$x] . '">' . $menu_array->title[$x] . '</a></li>'; } } $o .= '</ul>'; } else { if ($type == "footer") { $o = ''; for ($x = 0; $x < count($menu_array->date); $x++) { if ($menu_array->sub[$x]) { // if($x==1){ $offset = ' col-sm-offset-1'; }else{ $offset=""; } // $o .= '<div class="col-sm-2'.$offset.'"><ul class="text_formats_blue">'; $o .= '<div class="col-sm-2"><ul class="text_formats_blue">'; $o .= '<li>'; //'.MAIN_DIR.$menu_array->slug[$x].' $o .= '<a href="javascript:;"><span>' . $menu_array->title[$x] . '</span></a>'; $o .= '</li>'; $o .= $this->sub($menu_array->sub[$x], $slug, "footer"); $o .= '</ul></div>'; } } $o .= '<div class="col-sm-2"><ul class="text_formats_blue">'; $o .= '<li>'; $contactname = LANG == "en" ? 'Contact us' : 'კონტაქტი'; $o .= '<a href="' . MAIN_DIR . 'contact-us"><span>' . $contactname . '</span></a>'; $o .= '</li>'; /* language variables */ $cache = new cache(); $language_data = $cache->index($_SESSION["c"], "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); $o .= '<li>' . $data["language_data"]["hotlinelabel"] . '</li>'; $o .= '<li>' . $data["language_data"]["hotlinevalue"] . '</li>'; $o .= '</ul></div>'; } } return $o; }
public function template($c) { $conn = $this->conn($c); // connection $cache = new cache(); $text_general = $cache->index($c, "text_general"); $data["text_general"] = json_decode($text_general, true); /* contact_page_data */ $contact_page_data = $cache->index($c, "contact_page_data"); $data["contact_data"] = json_decode($contact_page_data, true); $news_list = $cache->index($c, "news_list"); $data["news_list"] = json_decode($news_list); $last_news_files = $cache->index($c, "last_news_files"); $data['last_news_files'] = json_decode($last_news_files); /* languages */ $languages = $cache->index($c, "languages"); $data["languages"] = json_decode($languages); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* website menu header & footer */ $menu_array = $cache->index($c, "main_menu"); $menu_array = json_decode($menu_array); $model_template_main_menu = new model_template_main_menu(); $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header"); $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer"); /* website left menu */ $left_menu = $cache->index($c, "left_menu"); $left_menu = json_decode($left_menu); $data["left_menu"] = $model_template_main_menu->left($left_menu); /* breadcrups */ $breadcrups = $cache->index($c, "breadcrups"); $data["breadcrups"] = json_decode($breadcrups); /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); $db_count = new db_count(); $data["count"] = $db_count->retrieve($c, 'studio404_module_item', ' `status`!=1 AND `visibility`=2 AND `module_idx`=2'); @(include $c["website.directory"] . "/news.php"); }
public function template($c) { $conn = $this->conn($c); // connection if (empty(Input::method("GET", "idx"))) { redirect::url(WEBSITE . LANG . "/welcomesystem"); } $cache = new cache(); $welcomepage_categories = $cache->index($c, "welcomepage_categories"); $data["welcomepage_categories"] = json_decode($welcomepage_categories, true); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); $sql = 'SELECT `namelname`,`picture` FROM `studio404_users` WHERE `id`=:id'; $prepare = $conn->prepare($sql); $prepare->execute(array(":id" => $_SESSION["batumi_id"])); if ($prepare->rowCount() > 0) { $fetch = $prepare->fetch(PDO::FETCH_ASSOC); $data["userdata"] = $fetch; } else { redirect::url(WEBSITE); } $catalog_general = $cache->index($c, "catalog_general"); $data["catalog_general"] = json_decode($catalog_general, true); $catalog_table_list = $cache->index($c, "catalog_table_list"); $data["catalog_table_list"] = json_decode($catalog_table_list, true); $catalogitems = $cache->index($c, "catalogitems"); $data["catalogitems"] = json_decode($catalogitems, true); $sql2 = 'SELECT COUNT(`studio404_module_item`.`idx`) AS allitems FROM `studio404_module_item` WHERE FIND_IN_SET(' . Input::method("GET", "idx") . ', `studio404_module_item`.`cataloglist`) AND `studio404_module_item`.`lang`=:lang AND `studio404_module_item`.`visibility`!=:visibility AND `studio404_module_item`.`status`!=:status'; $prepare2 = $conn->prepare($sql2); $prepare2->execute(array(":lang" => LANG_ID, ":status" => 1, ":visibility" => 1)); $data["fetch"] = $prepare2->fetch(PDO::FETCH_ASSOC); @(include $c["website.directory"] . "/catalog.php"); }
public function template($c, $page) { $conn = $this->conn($c); // connection $include = WEB_DIR . "/welcome.php"; if (file_exists($include)) { $cache = new cache(); /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); @(include $include); } else { $controller = new error_page(); } }
public function template($c) { $conn = $this->conn($c); // connection $cache = new cache(); $text_general = $cache->index($c, "text_general"); $data["text_general"] = json_decode($text_general, true); /* contact_page_data */ $contact_page_data = $cache->index($c, "contact_page_data"); $data["contact_data"] = json_decode($contact_page_data, true); /* languages */ $languages = $cache->index($c, "languages"); $data["languages"] = json_decode($languages); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* website menu header & footer */ $menu_array = $cache->index($c, "main_menu"); $menu_array = json_decode($menu_array); $model_template_main_menu = new model_template_main_menu(); $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header"); $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer"); /* website left menu */ // $left_menu = $cache->index($c,"left_menu"); // $left_menu = json_decode($left_menu); // $data["left_menu"] = $model_template_main_menu->left($left_menu); /* breadcrups */ $breadcrups = $cache->index($c, "breadcrups"); $data["breadcrups"] = json_decode($breadcrups); /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); /*company*/ $data["get_view"] = Input::method("GET", "view") ? (int) Input::method("GET", "view") : 1; $data["get_token"] = Input::method("GET", "token") ? Input::method("GET", "token") : ''; $sql = 'SELECT `studio404_users`.* FROM `studio404_users` WHERE `studio404_users`.`user_type`=:user_type AND `studio404_users`.`id`=:idx AND `studio404_users`.`allow`!=:one AND `studio404_users`.`status`!=:one '; $prepare = $conn->prepare($sql); $prepare->execute(array(":user_type" => 'website', ":idx" => $data["get_view"], ":one" => 1)); $data["fetch"] = $prepare->fetch(PDO::FETCH_ASSOC); $retrieve_users_info = new retrieve_users_info(); // echo "<pre>"; // print_r($data["fetch"]); // echo "</pre>"; @(include $c["website.directory"] . "/company.php"); }
public function template($c, $page) { $conn = $this->conn($c); // connection $cache = new cache(); $welcomepage_categories = $cache->index($c, "welcomepage_categories"); $data["welcomepage_categories"] = json_decode($welcomepage_categories, true); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); $sql = 'SELECT `namelname`,`picture` FROM `studio404_users` WHERE `id`=:id'; $prepare = $conn->prepare($sql); $prepare->execute(array(":id" => $_SESSION["batumi_id"])); if ($prepare->rowCount() > 0) { $fetch = $prepare->fetch(PDO::FETCH_ASSOC); $data["userdata"] = $fetch; } else { redirect::url(WEBSITE); } $catalog_general = $cache->index($c, "catalog_general"); $data["catalog_general"] = json_decode($catalog_general, true); $catalogitemsnovisiable = $cache->index($c, "catalogitemsnovisiable"); $data["catalogitems"] = json_decode($catalogitemsnovisiable, true); $sql2 = 'SELECT COUNT(`studio404_module_item`.`idx`) AS allitems FROM `studio404_module_item` WHERE `studio404_module_item`.`lang`=:lang AND `studio404_module_item`.`visibility`=:visibility AND `studio404_module_item`.`status`!=:status'; $prepare2 = $conn->prepare($sql2); $prepare2->execute(array(":lang" => LANG_ID, ":status" => 1, ":visibility" => 1)); $data["fetch"] = $prepare2->fetch(PDO::FETCH_ASSOC); $include = WEB_DIR . "/nebarTvismicema.php"; if (file_exists($include)) { @(include $include); } else { $controller = new error_page(); } }
public function template($c) { $conn = $this->conn($c); // connection $cache = new cache(); $text_general = $cache->index($c, "text_general"); $data["text_general"] = json_decode($text_general, true); // echo "<pre>"; // print_r($data["text_general"]); // echo "</pre>"; // if($data["text_general"][0]["redirectlink"]!="false"){ // redirect::url($data["text_general"][0]["redirectlink"]); // exit(); // } $text_files = $cache->index($c, "text_files"); $data["text_files"] = json_decode($text_files); $text_documents = $cache->index($c, "text_documents"); $data["text_documents"] = json_decode($text_documents); /* languages */ $languages = $cache->index($c, "languages"); $data["languages"] = json_decode($languages); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* website menu header & footer */ $menu_array = $cache->index($c, "main_menu"); $menu_array = json_decode($menu_array); $model_template_main_menu = new model_template_main_menu(); $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header"); $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer"); /* website left menu */ $left_menu = $cache->index($c, "left_menu"); $left_menu = json_decode($left_menu); $data["left_menu"] = $model_template_main_menu->left($left_menu); /* breadcrups */ $breadcrups = $cache->index($c, "breadcrups"); $data["breadcrups"] = json_decode($breadcrups); /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); @(include $c["website.directory"] . "/text.php"); }
public function template($c, $page) { $include = WEB_DIR . "/missionandvision2.php"; if (file_exists($include)) { $cache = new cache(); $text_general = $cache->index($c, "text_general"); $data["text_general"] = json_decode($text_general, true); // echo "<pre>"; // print_r($data["text_general"]); // echo "</pre>"; $text_files = $cache->index($c, "text_files"); $data["text_files"] = json_decode($text_files); $text_documents = $cache->index($c, "text_documents"); $data["text_documents"] = json_decode($text_documents); /* languages */ $languages = $cache->index($c, "languages"); $data["languages"] = json_decode($languages); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* website menu header & footer */ $menu_array = $cache->index($c, "main_menu"); $menu_array = json_decode($menu_array); $model_template_main_menu = new model_template_main_menu(); $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header"); $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer"); /* website left menu */ $left_menu = $cache->index($c, "left_menu"); $left_menu = json_decode($left_menu); $data["left_menu"] = $model_template_main_menu->left($left_menu); /* breadcrups */ $breadcrups = $cache->index($c, "breadcrups"); $data["breadcrups"] = json_decode($breadcrups); /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); @(include $include); } else { $controller = new error_page(); } }
public function select_all($c) { $cache = new cache(); $footernavigation = $cache->index($c, "footernavigation"); $out["footernavigation"] = json_decode($footernavigation, true); $o = ''; foreach ($out["footernavigation"] as $value) { $o .= '<ul>'; $o .= '<span>' . $value['title'] . ': </span> '; $o .= $this->select_sub($c, $value['idx']); $o .= '</ul>'; } return $o; }
public function template($c, $page) { $conn = $this->conn($c); $cache = new cache(); $welcomepage_categories = $cache->index($c, "welcomepage_categories"); $data["welcomepage_categories"] = json_decode($welcomepage_categories, true); // echo "<pre>"; // print_r($data["welcomepage_categories"]); // echo "</pre>"; $include = WEB_DIR . "/loginsystem.php"; if (file_exists($include)) { @(include $include); } else { $controller = new error_page(); } }
public function template($c) { $conn = $this->conn($c); // connection $cache = new cache(); $text_general = $cache->index($c, "text_general"); $data["text_general"] = json_decode($text_general, true); $text_files = $cache->index($c, "text_files"); $data["text_files"] = json_decode($text_files); $text_documents = $cache->index($c, "text_documents"); $data["text_documents"] = json_decode($text_documents); /* languages */ $languages = $cache->index($c, "languages"); $data["languages"] = json_decode($languages); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* website menu header & footer */ $menu_array = $cache->index($c, "main_menu"); $menu_array = json_decode($menu_array); $model_template_main_menu = new model_template_main_menu(); $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header"); $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer"); /* contact_page_data */ $contact_page_data = $cache->index($c, "contact_page_data"); $data["contact_data"] = json_decode($contact_page_data, true); /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); $s = filter_input(INPUT_GET, "s"); if (isset($s) && !empty($s)) { $s = strip_tags($s); $s = str_replace("\\", "", $s); $s = str_replace("..", "", $s); $s = str_replace("-", "", $s); $model_template_search = new model_template_search(); $data["result"] = $model_template_search->studio404_search($c, $s); } else { $data["result"] = array(); } @(include $c["website.directory"] . "/search.php"); }
public function template($c) { $conn = $this->conn($c); // connection $cache = new cache(); $data["news_general"] = $cache->index($c, "news_general"); $data["news_list"] = $cache->index($c, "news_list"); $data["components"] = $cache->index($c, "components"); $data["languages"] = $cache->index($c, "languages"); $data["language_data"] = $cache->index($c, "language_data"); $data["main_menu"] = $cache->index($c, "main_menu"); @(include $c["website.directory"] . "/news.php"); }
public function template($c, $page) { $conn = $this->conn($c); // connection $cache = new cache(); $homepage_general = $cache->index($c, "homepage_general"); $data["homepage_general"] = json_decode($homepage_general); $text_files = $cache->index($c, "text_files"); $data["text_files"] = json_decode($text_files); $text_documents = $cache->index($c, "text_documents"); $data["text_documents"] = json_decode($text_documents); /* languages */ $languages = $cache->index($c, "languages"); $data["languages"] = json_decode($languages); /* language variables */ $language_data = $cache->index($c, "language_data"); $language_data = json_decode($language_data); $model_template_makevars = new model_template_makevars(); $data["language_data"] = $model_template_makevars->vars($language_data); /* website menu header & footer */ $menu_array = $cache->index($c, "main_menu"); $menu_array = json_decode($menu_array); $model_template_main_menu = new model_template_main_menu(); $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header"); $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer"); /* components */ $components = $cache->index($c, "components"); $data["components"] = json_decode($components); if (Input::method("GET", "search")) { $sql = 'SELECT `idx`,`cid`,`title`,`url` FROM `studio404_components_inside` WHERE `cid` IN (8,9) AND `title` LIKE "%' . Input::method("GET", "search") . '%" AND `lang`=:lang AND `status`!=:status ORDER BY `title` ASC LIMIT 25'; $prepare = $conn->prepare($sql); $prepare->execute(array(":lang" => LANG_ID, ":status" => 1)); $data["fetch"] = $prepare->fetchAll(PDO::FETCH_ASSOC); } else { $data["fetch"] = array(); } $include = WEB_DIR . "/keywords.php"; if (file_exists($include)) { @(include $include); } else { $controller = new error_page(); } }