public function left($menu_array)
 {
     $get_slug_from_url = new get_slug_from_url();
     $slug = $get_slug_from_url->slug();
     $o = '';
     $obj = new url_controll();
     $third_segment = $obj->url("segment", 2) . "/" . $obj->url("segment", 3);
     if (is_array($menu_array)) {
         foreach ($menu_array as $val) {
             $active = $val->slug == $third_segment ? 'active' : '';
             if ($val->redirectlink != "false" && !empty($val->redirectlink)) {
                 $gotoUrl = $val->redirectlink;
             } else {
                 $gotoUrl = MAIN_DIR . $val->slug . "?v=" . $val->idx;
             }
             $o .= '<li class="' . $active . '"><a href="' . $gotoUrl . '">' . $val->title . '</a></li>';
         }
     }
     return $o;
 }
 public function select_option($c)
 {
     $url_controll = new url_controll();
     $lang = $url_controll->url("segment", 1);
     $query = $this->select_languages($c);
     $out = '<select name="one" class="dropdown-select">';
     foreach ($query as $rows) {
         if ($lang == $rows['langs']) {
             $selected = 'selected="selected"';
         } else {
             $selected = '';
         }
         $out .= '<option value="' . $rows['langs'] . '" ' . $selected . '>' . $rows['text'] . '</option>';
     }
     $out .= '</select>';
     return $out;
 }
 public function edit($c)
 {
     if (isset($_POST["startdate"], $_POST["enddate"], $_POST["description"], $_POST["paystatus"], $_GET["id"])) {
         $conn = $this->conn($c);
         $startdate = strtotime($_POST["startdate"]);
         $enddate = strtotime($_POST["enddate"]);
         $description = $_POST["description"];
         $paystatus = $_POST["paystatus"];
         $id = $_GET["id"];
         $sql = 'UPDATE `studio404_invoices` SET `start_date`=:startdate, `end_date`=:enddate, `paystatus`=:paystatus WHERE `uid`=:id';
         $prepare = $conn->prepare($sql);
         $prepare->execute(array(":startdate" => $startdate, ":enddate" => $enddate, ":paystatus" => $paystatus, ":id" => $id));
         //description only current language
         $sql2 = 'UPDATE `studio404_invoices` SET `description`=:description WHERE `uid`=:id AND `lang`=:lang';
         $prepare2 = $conn->prepare($sql2);
         $prepare2->execute(array(":description" => $description, ":lang" => LANG_ID, ":id" => $id));
         $obj = new url_controll();
         $lg = $obj->url("segment", 1);
         $file = INVOICE . strtolower($lg) . $_GET["id"] . ".pdf";
         if (file_exists($file)) {
             @unlink($file);
         }
         $this->outMessage = 1;
     }
 }
Exemple #4
0
            <div class="input-group">
              <input type="text" name="q" class="form-control" placeholder="<?php 
echo $data["language_data"]["val3"];
?>
...">
              <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i></button>
              </span>
            </div>
          </form>

          <!-- Sidebar Menu -->
          <?php 
$obj = new url_controll();
// url controlls
$slug_second = $obj->url("segment", 2);
$slug_third = $obj->url("segment", 2) . "/" . $obj->url("segment", 3);
?>
          <ul class="sidebar-menu">
            <!-- Optionally, you can add icons to the links -->
            <li class="<?php 
echo $slug_second == "welcome-system" ? 'active' : '';
?>
"><a href="<?php 
echo WEBSITE . LANG;
?>
/<?php 
echo $c["welcome.page.class"];
?>
"><i class="fa fa-home"></i> <span><?php 
echo LANG == "ge" ? "მთავარი" : "Home";
Exemple #5
0
     }
     if (!$class_load) {
         echo "Class: <b>" . $class_name . "</b> can't load..";
         exit;
     }
 }
 $actual_link = "{$_SERVER['REQUEST_URI']}";
 $findme = array('\'', '~', '!', '@', '$', '^', '*', '(', ')', '{', '}', '[', ']', '|', ';', '<', '>', '\\', '..');
 foreach ($findme as $f) {
     $pos = strpos($actual_link, $f);
     if ($pos !== false) {
         redirect::url(WEBSITE);
     }
 }
 $obj = new url_controll();
 $LANG = $obj->url("segment", 1);
 $get_ip = new get_ip();
 $ip = $get_ip->ip;
 if (empty($LANG)) {
     // just domain name
     $LANG = $c['main.language'];
 } else {
     if (!in_array($LANG, $c['languages.array']) && $LANG != "image" && $LANG != $c['admin.slug']) {
         $welcome_class = $c["welcome.page.slug"];
         $main_language = $c['main.language'];
         $redirect = new redirect();
         $redirect->go(WEBSITE . $main_language . "/" . $welcome_class);
     } else {
         if ($LANG == $c['admin.slug']) {
             $redirect = new redirect();
             $redirect->go(WEBSITE . $c['main.language'] . "/" . $c['admin.slug']);
Exemple #6
0
}
echo $data["text_general"][0]["text"];
?>
<div style="clear:both"></div>
<div id="leftSideText">
<?php 
echo $data["text_general"][0]["leftside"];
?>
</div>
<div id="rightSideText" style="display:none"><?php 
echo $data["text_general"][0]["rightside"];
?>
</div>
<?php 
$obj = new url_controll();
$slugii = $obj->url("segment", 3);
if ($slugii == "mikro-da-mcire-biznesis-xelSewyoba") {
    echo georgianMap::map($data["components"]);
}
?>
</div>
<div style="clear:both"></div>
<?php 
if (count($data["text_documents"]) > 0) {
    ?>
<hr class="line_effect" />
<div class="page_title_4">
<?php 
    echo $data["language_data"]["attachedfiles"];
    ?>
</div>
Exemple #7
0
    $pos = strpos($actual_link, $f);
    if ($pos !== false) {
        $redirect = new redirect();
        $redirect->go(WEBSITE);
        die;
    }
}
/*
** call main classes
*/
$obj = new url_controll();
// url controlls
/*
** important variables if more language edit this line 
*/
$LANG = $obj->url("segment", $c['site.language.slash.position']);
// if($LANG==$c['admin.slug']){
// 	redirect::url(WEBSITE.$c['main.language']."/".$c['admin.slug']);
// }
if (empty($LANG)) {
    // just domain name
    $redirect = new redirect();
    $redirect->go(WEBSITE . $c['main.language'] . "/" . $c["welcome.page.slug"]);
} else {
    if (!in_array($LANG, $c['languages.array']) && $LANG != "image" && $LANG != $c['admin.slug']) {
        $welcome_class = $c["welcome.page.slug"];
        $main_language = $c['main.language'];
        $redirect = new redirect();
        $redirect->go(WEBSITE . $main_language . "/" . $welcome_class);
    } else {
        if ($LANG == $c['admin.slug']) {
Exemple #8
0
?>
<img src="<?php 
echo TEMPLATE;
?>
img/<?php 
echo $logo;
?>
" alt="logo" /><!---->
</a>
</div>
<div class="col-sm-8 head_contact padding_0"  style="text-align:right;">
<div class="language">
<?php 
$actual_link = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
$obj = new url_controll();
$slug = $obj->url("segment", 2);
foreach ($data['languages'] as $val) {
    $replaced = str_replace("/" . LANG . "/", "/" . $val->langs . "/", $actual_link);
    if (!$slug) {
        $replaced = WEBSITE . $val->langs . "/home";
    }
    echo '<a href="' . $replaced . '"><img src="' . WEBSITE . $val->lang_img . '" alt="" /></a>';
}
?>
</div>	
<div id="live_chat_div">
<li id="chatstatus" style="font-family:roboto">Zopim Chat</li>
<li><span><a href="javascript:;" class="callZopim"><?php 
echo $data["language_data"]["livechatvalue"];
?>
</a></span></li>