function MainPage($error = null) { $t = time(); $page = CurrentPageName(); $content = @file_get_contents("ressources/templates/endusers/logon.html"); $browser = browser_detection(); if ($browser == "ie") { $content = @file_get_contents("ressources/templates/endusers/logon.ie.html"); } $button = button("{logon}", "Loadjs('{$page}?js=yes')", "18px"); $content = str_replace("{TEMPLATE_TITLE_HEAD}", $_SERVER["SERVER_NAME"], $content); $content = str_replace("{LOGON_BUTTON}", $button, $content); $content = str_replace("{SCRIPTS}", "Loadjs('{$page}?js=yes&t={$t}');", $content); $content = str_replace("<!-- ERROR -->", "<p class=text-error>{$error}</p>", $content); $sublink = null; if ($_SERVER["SERVER_PORT"] == 9000) { if ($_SERVER["HTTPS"] == "on") { $sublink = "<a href='https://{$_SERVER["SERVER_NAME"]}:9000/logon.php'>«{back_to_artica}»</a>"; } } $content = str_replace("{SUBLINKS}", $sublink, $content); $tpl = new templates(); $content = $tpl->_ENGINE_parse_body($content); echo $content; }
function left_infos_1() { $newfrontend = false; $users = new usersMenus(); $sock = new sockets(); $tpl = new templates(); $ldap = new clladp(); if (!$users->AsArticaAdministrator) { die("<H2 style='color:red'>permission denied</H2>"); } $page = CurrentPageName(); $DisablePurchaseInfo = $sock->GET_INFO("DisablePurchaseInfo"); if (!is_numeric($DisablePurchaseInfo)) { $DisablePurchaseInfo = 0; } if ($DisablePurchaseInfo == 0) { echo $tpl->_ENGINE_parse_body(ParagrapheTEXT("technical-support-32.png", '{ARTICA_P_SUPPORT}', '{ARTICA_P_SUPPORT_TEXT}', "javascript:Loadjs('artica.subscription.php');")); } if (is_file("ressources/logs/status.inform.html")) { echo $tpl->_ENGINE_parse_body(@file_get_contents("ressources/logs/status.inform.html")); } if ($ldap->ldap_password == "secret") { echo ParagrapheTEXT("danger32-user-lock.png", '{MANAGER_DEFAULT_PASSWORD}', '{MANAGER_DEFAULT_PASSWORD_TEXT}', "javascript:Loadjs('artica.settings.php?js=yes&bigaccount-interface=yes');", null, 330); } if (!function_exists("browser_detection")) { include dirname(__FILE__) . '/ressources/class.browser.detection.inc'; } $browser = browser_detection(); if ($browser == "ie") { echo ParagrapheTEXT("no-ie-32.png", '{NOIEPLEASE} !!', '{NOIEPLEASE_TEXT}', "javascript:s_PopUp('http://www.mozilla-europe.org/en/firefox/','800',800);", null, 330); } if ($sock->GET_INFO("EnableNightlyInFrontEnd") == 1) { NightlyNotifs(); } if ($users->VMWARE_HOST) { if (!$users->VMWARE_TOOLS_INSTALLED) { echo ParagrapheTEXT("vmware-logo-48.png", '{INSTALL_VMWARE_TOOLS}', '{INSTALL_VMWARE_TOOLS_TEXT}', "javascript:Loadjs('setup.index.progress.php?product=APP_VMTOOLS&start-install=yes');", null, 330); } } if ($GLOBALS["VERBOSE"]) { echo "{$page} LINE:" . __LINE__ . "\n"; } if ($users->VIRTUALBOX_HOST) { if (!$users->APP_VBOXADDINTION_INSTALLED) { echo ParagrapheTEXT("virtualbox-48.png", '{INSTALL_VBOX_TOOLS}', '{INSTALL_VBOX_TOOLS_TEXT}', "javascript:Loadjs('setup.index.progress.php?product=APP_VBOXADDITIONS&start-install=yes');", null, 330); } } if ($users->ZARAFA_INSTALLED) { $q = new mysql(); $ctc = $q->COUNT_ROWS("zarafa_orphaned", "artica_backup"); if ($ctc > 0) { echo ParagrapheTEXT("inbox-error-48.png", "{$ctc} {ORPHANED_STORES}", '{ORPHANED_STORES_TEXT}', "javascript:Loadjs('zarafa.orphans.php?js=yes');", null, 330); } } }
/** */ public function __construct() { if (self::$browser !== NULL) { return; } self::$browser = browser_detection('full_assoc', '1'); self::$browser[self::$browser['browser_name']] = (double) self::$browser['browser_math_number']; switch (self::$browser['browser_name']) { case 'gecko': // add firefox alias self::$browser['firefox'] = self::$browser['gecko']; break; } }
/** * Add new fields (1 shown + 1-5 hidden ones) to Special:Contact. * * @param $contactForm Object: instance of EmailContactForm class * @param $form Sringt: HTML * @return Boolean: true */ function addContactFormFields($contactForm, $form) { global $wgServer, $wgDBname; $form .= '<tr> <td class="mw-label">' . Xml::label(wfMsg('contactpage-wikiurl'), 'wpWikiURL') . '</td> <td class="mw-input" id="mw-contactpage-address">' . Xml::input('wpWikiURL', 60, $wgServer, array('type' => 'text', 'maxlength' => 200)) . '</td> </tr> <tr>' . Html::Hidden('wpDBname', $wgDBname, array('maxlength' => 100)) . "</tr>\n\t\t\t"; if (class_exists('MyInfo')) { $myinfo = new MyInfo(); $myinfo->browser = get_browser(null, true); $myinfo->info = browser_detection('full'); $myinfo->info[] = browser_detection('moz_version'); $form .= '<tr>' . Html::Hidden('wpBrowser', $myinfo->getBrowser(), array('maxlength' => 255)) . '</tr> <tr>' . Html::Hidden('wpOperatingSystem', $myinfo->getOs(), array('maxlength' => 255)) . '</tr> <tr>' . Html::Hidden('wpSkinName', $myinfo->getSkin(), array('maxlength' => 35)) . '</tr> <tr>' . Html::Hidden('wpUserAgent', $myinfo->getUAgent(), array('maxlength' => 500)) . '</tr>'; } return true; }
function css(){ include_once("ressources/class.browser.detection.inc"); $browser= browser_detection("browser"); $form=".form{ background: -moz-linear-gradient(center top , #F1F1F1 0px, #FFFFFF 45px) repeat scroll 0 0 transparent; border: 1px solid #DDDDDD; border-radius: 5px 5px 5px 5px; box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6); margin: 5px; padding: 5px;}"; if($browser=="ie"){ $form=" .form{ padding: 8px; margin: 5px; padding: 5px; }"; } header('Content-Type: text/css; charset=UTF-8'); $f[]="body {"; $f[]=" margin: 0;"; $f[]=" font-family:'Questrial',Tahoma,Arial"; $f[]="}"; $f[]=" $form td.e{ font-weight:bold; text-transform:capitalize; text-align:right; white-space: nowrap; font-size:12px; } td.v{ font-weight:normal; text-align:left; font-size:12px; } tr.v{ font-weight:normal; text-align:left; font-size:8px; } tr.h{ font-weight:bold; text-transform:capitalize; text-align:left; white-space: nowrap; font-size:14px; background-color:#CCCCCC; } h1.p{ font-weight:bold; font-size:16px; } .center h1{ font-weight:bold; text-align:left; font-size:16px; } .center h2{ font-weight:bold; text-align:left; font-size:14px; } .center hr{ padding:0px;margin:0px;border:0px; } .center th{ font-weight:bold; text-align:left; font-size:11px; background-color:#F0EDED; } #tablist{ border-bottom:1px solid #DEDEDE; font-size:16px; font-size-adjust:none; font-stretch:normal; font-style:normal; font-variant:normal; font-weight:normal; line-height:normal; margin-left:0px; padding:3px 0px; } #tablist li { background-image:none; display:inline; list-style-type:none; margin:0px; padding:0px; } #tablist li a { background:#F0F0F0 none repeat scroll 0%; border:1px solid #DEDEDE; margin-left:3px; padding:3px 0.5em; text-decoration:none; } #tablist li a:link { color:#444488; } #tablist li a:visited { color:#666677; } #tablist li a:hover { background:#FFFFFF none repeat scroll 0%; border-color:#DEDEDE; color:#000000; } #tablist li a#tab_current { background:white none repeat scroll 0%; border-bottom:1px solid white; }"; echo @implode("", $f); }
function listele($sonuclar, $itemIdStrOrj, $isProtokol, $protokolStr, $isGorus, $gorusStr) { //$standartAdi = $_POST['standart_adi'];// POST OLACAK // echo $standartAdi; // echo '<pre>'; // print_r($sonuclar); // echo '</pre>'; if (empty($sonuclar)) { echo '<div class="sonucBulunamadi">Uygun sonuç bulunamadı.</div>'; } else { ?> <div class="tableWrapper"> <table cellspacing="0" class="paginate-10 sortable"> <tr class="tablo_header"> <th>#</th> <!-- <th class="sortable-numeric">Standart Id</th> --> <th class="sortable-text">Seviye</th> <th class="sortable-text">Standart Adı</th> <th class="sortable-text">Kurulus Adı</th> <?php if (isset($sonuclar[0]['PROFIL_GOREV_ADI'])) { echo '<th class="sortable-text">Içerdigi Görev</th>'; } ?> <?php if ($isGorus) { ?> <th class="sortable-text">Görüs Bildir</th> <th>PDF</th> <?php } ?> </tr> <?php $user_browser = browser_detection('browser'); $rowCount = 1; $rowClass = ""; foreach ($sonuclar as $satir) { if ($rowCount % 2 == 0) { $rowClass = "even_row"; } else { $rowClass = "odd_row"; } if (strripos($user_browser, 'msie') !== FALSE) { $clickHTML = 'target="_blank" href="index.php?option=com_meslek_std_taslak&task=indir&id=1&standart_id=' . $satir['STANDART_ID'] . '"'; } else { $clickHTML = 'onclick="window.open(\'index.php?option=com_meslek_std_taslak&task=indir&id=1&standart_id=' . $satir['STANDART_ID'] . '\',\'\',\'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,directories=no,location=no\');"'; } //$taslakUrl = generatePDFPathForYeterlilik($satir['YETERLILIK_ID']); //$clickHTML = ' href="'.$taslakUrl.'"'; echo '<tr class="' . $rowClass . '">'; echo '<td>' . $rowCount . '</td>'; // echo '<td>'.$satir['STANDART_ID'].'</td>'; gerek yok echo '<td>' . $satir['SEVIYE_ADI'] . '</td>'; echo '<td>' . FormFactory::toUpperCase($satir['STANDART_ADI']) . '</td>'; echo '<td>' . FormFactory::toUpperCase($satir['KURULUS_ADI']) . '</td>'; if (isset($satir['PROFIL_GOREV_ADI'])) { echo '<td>' . $satir['PROFIL_GOREV_ADI'] . '</td>'; } if ($isGorus) { echo '<td><a href="index.php?option=com_meslek_std_taslak&view=gorus_bildir&standartId=' . $satir['STANDART_ID'] . '">Görüs Bildir</a></td>'; } if ($isGorus) { echo '<td><a ' . $clickHTML . ' rel="nofollow" ><img alt="PDF" src="' . SITE_URL . '/templates/elegance/images/pdf_button.png" /></a></td>'; } echo '</tr>'; $rowCount++; } ?> </table> </div> <?php } ?> <br /> <a href="index.php?option=com_meslek_std_taslak_ara<?php echo $protokolStr; echo $gorusStr; echo $itemIdStrOrj; ?> ">Geri</a> <?php }
function Stats_ParseUserAgent($ua_string) { $browser_name = array('op' => 'Opera', 'omni' => 'OmniWeb', 'ie' => 'Internet Explorer', 'konq' => 'Konqueror', 'saf' => 'Safari', 'moz' => 'Gecko', 'rv' => 'Mozilla', 'mozilla' => 'Mozilla', 'firebird' => 'Firebird', 'phoenix' => 'Phoenix', 'firefox' => 'Firefox', 'galeon' => 'Galeon', 'k-meleon' => 'K-Meleon', 'camino' => 'Camino', 'epiphany' => 'Epiphany', 'multizilla' => 'MultiZilla', 'ns' => 'Netscape', 'netscape6' => 'Netscape', 'netscape' => 'Netscape', 'lynx' => 'lynx', 'w3m' => 'w3m', 'amaya' => 'Amaya', 'dillo' => 'Dillo', 'ibrowse' => 'iBrowse', 'icab' => 'iCab'); $os_name = array('unixware' => 'UnixWare', 'solaris' => 'Solaris', 'sunos' => 'SunOS', 'sun4' => 'SunOS', 'sun5' => 'SunOS', 'suni86' => 'SunOS', 'sun' => 'SunOS', 'freebsd' => 'FreeBSD', 'openbsd' => 'OpenBSD', 'bsd' => 'BSD', 'irix5' => 'Irix', 'irix6' => 'Irix', 'irix' => 'Irix', 'hpux9' => 'HPUX', 'hpux10' => 'HPUX', 'hpux11' => 'HPUX', 'hpux' => 'HPUX', 'hp-ux' => 'HPUX', 'aix1' => 'AIX', 'aix2' => 'AIX', 'aix3' => 'AIX', 'aix4' => 'AIX', 'aix5' => 'AIX', 'aix' => 'AIX', 'sco' => 'SCO', 'mpras' => 'MPRAS', 'reliant' => 'Reliant', 'dec' => 'DEC', 'sinix' => 'Sinix', 'unix' => 'Unix', 'kanotix' => 'Kanotix', 'ubuntu' => 'Ubuntu', 'mepis' => 'Mepis', 'debian' => 'Debian', 'suse' => 'Suse', 'redhat' => 'RedHat', 'slackware' => 'Slackware', 'mandrake' => 'Mandrake', 'gentoo' => 'Gentoo', 'linux' => 'Linux', 'lin' => 'Linux', 'beos' => 'BeOS', 'os2' => 'OS2', 'amiga' => 'Amiga', 'webtv' => 'WebTV', 'mac' => 'Mac', 'nt' => 'Windows', 'win' => 'Windows', 'nt5.0' => 'Windows 2000', 'nt5.1' => 'Windows XP', 'nt5.2' => 'Windows Server 2003', 'nt5' => 'Windows 2000', 'nt4' => 'Windows NT', 'nt3' => 'Windows NT', 'nt6' => 'Windows Vista', 'nt6.0' => 'Windows Vista', 'nt6.1' => 'Windows 7', 'win5.0' => 'Windows 2000', 'win5.1' => 'Windows XP', 'win5.2' => 'Windows Server 2003', 'win4' => 'Windows NT', 'win3' => 'Windows NT', 'winme' => 'Windows ME', 'winCE' => 'Windows CE'); $user_agent = browser_detection("full", $ua_string); $moz_version = browser_detection("moz_version", $ua_string); $user_os = browser_detection("os", $ua_string); $user_os_number = browser_detection("os_number", $ua_string); $real_browser = $moz_version[0] ? $browser_name[$moz_version[0]] : $browser_name[$user_agent[0]]; if (!$real_browser) { return array("", ""); } $real_browser_ver = $moz_version[0] ? $moz_version[1] : $user_agent[1]; $ver = (double) $real_browser_ver; $browser_info = $real_browser . ($ver ? " " . sprintf("%.1f", $ver) : $real_browser_ver); $real_os = $os_name[$user_os . $user_os_number] ? $os_name[$user_os . $user_os_number] : $user_os . " " . $user_os_number; return array(trim($browser_info), trim($real_os)); }
function listele($sonuclar, $itemIdStrOrj) { if (empty($sonuclar)) { echo '<div class="sonucBulunamadi">Uygun sonuç bulunamadı.</div>'; } else { ?> <div class="tableWrapper"> <table cellspacing="0" class="paginate-10 sortable"> <tr class="tablo_header"> <th>#</th> <th class="sortable-numeric">Yeterlilik Id</th> <th class="sortable-text">Seviye</th> <th class="sortable-text">Yeterlilik Adı</th> <th class="sortable-text">Kuruluş Adı</th> <th class="sortable-text">Görüş Bildir</th> <th>PDF</th> </tr> <?php $user_browser = browser_detection('browser'); $rowCount = 1; $rowClass = ""; foreach ($sonuclar as $satir) { if ($rowCount % 2 == 0) { $rowClass = "even_row"; } else { $rowClass = "odd_row"; } if (strripos($user_browser, 'msie') !== FALSE) { $clickHTML = 'target="_blank" href="index.php?option=com_yeterlilik_taslak&task=indir&id=1&yeterlilik_id=' . $satir['YETERLILIK_ID'] . '"'; } else { $clickHTML = 'onclick="window.open(\'index.php?option=com_yeterlilik_taslak&task=indir&id=1&yeterlilik_id=' . $satir['YETERLILIK_ID'] . '\',\'\',\'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,directories=no,location=no\');"'; } echo '<tr class="' . $rowClass . '">'; echo '<td>' . $rowCount . '</td>'; echo '<td>' . $satir['YETERLILIK_ID'] . '</td>'; echo '<td>' . $satir['SEVIYE_ADI'] . '</td>'; echo '<td>' . FormFactory::toUpperCase($satir['YETERLILIK_ADI']) . '</td>'; echo '<td>' . FormFactory::toUpperCase($satir['KURULUS_ADI']) . '</td>'; echo '<td><a href="index.php?option=com_yeterlilik_taslak&view=gorus_bildir&yeterlilikId=' . $satir['YETERLILIK_ID'] . '">Görüs Bildir</a></td>'; echo '<td><a ' . $clickHTML . ' rel="nofollow" ><img alt="PDF" src="' . SITE_URL . '/templates/elegance/images/pdf_button.png" /></a></td>'; echo '</tr>'; $rowCount++; } ?> </table> </div> <?php } ?> <br /> <a href="index.php?option=com_yeterlilik_taslak_ara<?php echo $itemIdStrOrj; ?> ">Geri</a> <?php }
# # # # # # # # /* * index.php :: Frames */ require "settings.php"; define("PRD_STATE_NOWARN", true); #do the browser check require "browser_detection.php"; if (browser_detection('browser') != "moz") { print "\n\t\t\t<script>\n \t\t\t\twindow.open('browser_version.php','browser_version','height=160,width=430');\n\t\t\t</script>"; } if (isset($_SESSION["USER_ID"])) { #we cant use this with a print from the browser check... //header("Location: index.xul.php"); #so rather redirect using some javascript print "\n \t\t\t<script>\n \t\t\t\tdocument.location='index.xul.php';\n \t\t\t</script>"; exit; } // check to see if we should dock or undock the menu first, do so, and move on if (isset($_GET["action"])) { switch ($_GET["action"]) { case "dock": db_conn("cubit"); $rslt = db_exec("UPDATE users SET services_menu='T' ");
<?php $browser = browser_detection('full'); $config = Zend_Registry::get('config'); define("BROWSER", $browser[0]); define("BROWSER_VERSION", $browser[0]); define('DOCUMENT_ROOT', $config->www->baseurl); define('WWW_ROOT', $config->www->sitename); define('IMAGES', WWW_ROOT . "public/images/"); define('CSS', WWW_ROOT . "css/"); define('JS', WWW_ROOT . "js/"); define('JSEXT', WWW_ROOT . "public/js/"); define('POST', $_SERVER['REQUEST_METHOD'] == 'POST'); define('MAX_ITEM_NAME_LENGTH', 16); //For Mail
function listele($sonuclar, $itemIdStrOrj, $user) { $aut = FormFactory::sektorSorumlusuMu($user); if (empty($sonuclar)) { echo '<div class="sonucBulunamadi">Başvuru bulunmamaktır.</div>'; } else { ?> <div class="tableWrapper"> <table cellspacing="0" id="datatable"> <thead> <tr class="tablo_header"> <th>#</th> <th>Id</th> <?php if ($aut) { ?> <th>Kuruluş Adı</th> <?php } ?> <th>Başvuru Tipi</th> <th>Başvuru Tarihi</th> <th>Başvuru Durumu</th> <?php if ($aut) { ?> <th>Başvuru Durum Güncelle</th> <th>Başvuru Düzenle</th> <?php } ?> <th>PDF</th> </tr> </thead> <tbody> <?php $user_browser = browser_detection('browser'); $rowCount = 1; $rowClass = ""; foreach ($sonuclar as $satir) { $id = ""; $form = ""; $option = ""; $layout = "pdf"; $layout_ek = "ek_pdf"; if ($satir['BASVURU_TIP_ID'] == T1_BASVURU_TIP) { $option = "com_meslek_std_basvur"; $form = T1_BASVURU_TIP; } else { if ($satir['BASVURU_TIP_ID'] == T2_BASVURU_TIP) { $option = "com_yeterlilik_basvur"; $form = T2_BASVURU_TIP; } else { if ($satir['BASVURU_TIP_ID'] == T3_BASVURU_TIP) { $option = "com_belgelendirme_basvur"; $layout = "pdf"; $form = T3_BASVURU_TIP; } else { if ($satir['BASVURU_TIP_ID'] == T4_BASVURU_TIP) { $option = "com_akreditasyon_basvur"; $form = T4_BASVURU_TIP; } else { if ($satir['BASVURU_TIP_ID'] == YT1_BASVURU_TIP) { $option = "com_meslek_std_taslak"; $form = YT1_BASVURU_TIP; $id = "&standart_id=" . getStandartId($satir["EVRAK_ID"]); $layout = "tum_basvuru"; //$layout2 = "ek_basvuru"; } else { if ($satir['BASVURU_TIP_ID'] == YT2_BASVURU_TIP) { $option = "com_yeterlilik_taslak"; $form = YT2_BASVURU_TIP; $id = "&yeterlilik_id=" . getYeterlilikId($satir["EVRAK_ID"]); } } } } } } if ($rowCount % 2 == 0) { $rowClass = "even_row"; } else { $rowClass = "odd_row"; } if (strripos($user_browser, 'msie') !== FALSE) { $clickHTML = 'target="_blank" href="index.php?option=' . $option . $id . '&layout=' . $layout . '&format=pdf&form=' . $form . '&id=' . $satir['EVRAK_ID'] . '"'; } else { $clickHTML = 'onclick="window.open(\'index.php?option=' . $option . $id . '&layout=' . $layout . '&format=pdf&form=' . $form . '&id=' . $satir['EVRAK_ID'] . '\',\'\',\'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,directories=no,location=no\');"'; } if (strripos($user_browser, 'msie') !== FALSE) { $clickHTML2 = 'target="_blank" href="index.php?option=' . $option . $id . '&layout=' . $layout_ek . '&format=pdf&form=-5&id=' . $satir['EVRAK_ID'] . '"'; } else { $clickHTML2 = 'onclick="window.open(\'index.php?option=' . $option . $id . '&layout=' . $layout_ek . '&format=pdf&form=-5&id=' . $satir['EVRAK_ID'] . '\',\'\',\'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,directories=no,location=no\');"'; } if (strlen($satir['BASVURU_EK_DOSYASI_PATH']) == 0) { $pdfLinkleri = '<td><table><tr><td>Tümü<a ' . $clickHTML . '><img alt="PDF" src="' . SITE_URL . '/templates/elegance/images/pdf_button.png"></a></td></tr> <tr><td>Ekler<a ' . $clickHTML2 . '><img alt="PDF" src="' . SITE_URL . '/templates/elegance/images/pdf_button.png"></a></td></tr></table></td>'; } else { $pdfLinkleri = '<td><a href="index.php?dl=basvuruDosyalari/' . $satir['USER_ID'] . '/' . $satir['EVRAK_ID'] . '/' . $satir['BASVURU_EK_DOSYASI_PATH'] . '" ><img alt="PDF" src="' . SITE_URL . '/templates/elegance/images/pdf_button.png"></a></td>'; } $duzenlemeLinki = ' href="#" '; echo '<tr class="' . $rowClass . '">'; echo '<td>' . $rowCount . '</td>'; echo '<td>' . $satir['EVRAK_ID'] . '</td>'; if ($aut) { echo '<td>' . FormFactory::toUpperCase($satir['KURULUS_ADI']) . '</td>'; } if ($satir['BASVURU_TURU'] == 1) { echo '<td>' . $satir['BASVURU_TIP_ADI'] . ' (Kapsam Genişletme Başvurusu)</td>'; } else { echo '<td>' . $satir['BASVURU_TIP_ADI'] . '</td>'; } echo '<td>' . $satir['BASVURU_TARIHI'] . '</td>'; if ($satir['BASVURU_TIP_ID'] == 3) { if (isset($satir['DURUM'])) { echo '<td>' . $satir['DURUM']; if (FormFactory::sektorSorumlusuMu($user)) { echo ' (' . $satir['ACIKLAMA'] . ')'; } } else { echo '<td>' . $satir['BASVURU_DURUM_ADI']; } echo '</td>'; } else { echo '<td>' . $satir['BASVURU_DURUM_ADI'] . '</td>'; } if ($aut) { echo '<td><a href="index.php?option=com_basvuru_ara&gorev=guncelleGoster&id=' . $satir['EVRAK_ID'] . '">Güncelle</a></td>'; switch ($satir['BASVURU_TIP_ID']) { case 1: //std $comValue = 'com_meslek_std_basvur&layout=basvuru_yeni'; break; case 2: //yet $comValue = 'com_yeterlilik_basvur&layout=basvuru_yeni'; break; case 3: $comValue = 'com_belgelendirme_basvur&layout=kurulus_bilgi'; break; case 4: $comValue = 'com_akreditasyon_basvur'; break; } if ($satir['BASVURU_TIP_ID'] < 5 && $satir['BASVURU_TIP_ID'] > 0) { //yukardakilerden biriyse echo '<td><a href="index.php?option=' . $comValue . '&evrak_id=' . $satir['EVRAK_ID'] . '">Düzenle</a></td>'; } else { echo '<td>-</td>'; } } if ($option == "") { echo '<td> - </td>'; } else { echo $pdfLinkleri; } echo '</tr>'; $rowCount++; } ?> </tbody> </table> </div> <br /> <a href="index.php?option=com_basvuru_ara<?php echo $itemIdStrOrj; ?> ">Geri</a> <?php } }
/** * @param $tpl eZTemplate * @param $operatorName array * @param $operatorParameters array * @param $rootNamespace string * @param $currentNamespace string * @param $operatorValue mixed * @param $namedParameters array * * @return mixed */ function modify(&$tpl, &$operatorName, &$operatorParameters, &$rootNamespace, &$currentNamespace, &$operatorValue, &$namedParameters) { $ini = eZINI::instance('ocoperatorscollection.ini'); $appini = eZINI::instance('app.ini'); switch ($operatorName) { case 'related_attribute_objects': $object = $operatorValue; $identifier = $namedParameters['identifier']; $dataMap = $object instanceof eZContentObject || $object instanceof eZContentObjectTreeNode ? $object->attribute('data_map') : array(); $data = array(); if (isset($dataMap[$identifier])) { $ids = $dataMap[$identifier] instanceof eZContentObjectAttribute ? explode('-', $dataMap[$identifier]->toString()) : array(); if (!empty($ids)) { $data = eZContentObject::fetchList(true, array("id" => array($ids))); } } $operatorValue = $data; break; case 'smart_override': $identifier = $namedParameters['identifier']; $view = $namedParameters['view']; $node = $operatorValue; $operatorValue = $this->findSmartTemplate($identifier, $view, $node); break; case 'parse_link_href': $href = $operatorValue; $hrefParts = explode(':', $href); $hrefFirst = array_shift($hrefParts); if (!in_array($hrefFirst, array('http', 'https', 'file', 'mailto', 'ftp'))) { if (!empty($hrefFirst)) { $nodeID = eZURLAliasML::fetchNodeIDByPath('/' . $hrefFirst); if ($nodeID) { $contentNode = eZContentObjectTreeNode::fetch($nodeID); if ($contentNode instanceof eZContentObjectTreeNode) { $keyArray = array(array('node', $contentNode->attribute('node_id')), array('object', $contentNode->attribute('contentobject_id')), array('class_identifier', $contentNode->attribute('class_identifier')), array('class_group', $contentNode->attribute('object')->attribute('content_class')->attribute('match_ingroup_id_list'))); $tpl = new eZTemplate(); $ini = eZINI::instance(); $autoLoadPathList = $ini->variable('TemplateSettings', 'AutoloadPathList'); $extensionAutoloadPath = $ini->variable('TemplateSettings', 'ExtensionAutoloadPath'); $extensionPathList = eZExtension::expandedPathList($extensionAutoloadPath, 'autoloads/'); $autoLoadPathList = array_unique(array_merge($autoLoadPathList, $extensionPathList)); $tpl->setAutoloadPathList($autoLoadPathList); $tpl->autoload(); $tpl->setVariable('node', $contentNode); $tpl->setVariable('object', $contentNode->attribute('object')); $tpl->setVariable('original_href', $href); $res = new eZTemplateDesignResource(); $res->setKeys($keyArray); $tpl->registerResource($res); $result = trim($tpl->fetch('design:link/href.tpl')); if (!empty($result)) { $href = $result; } } } } } return $operatorValue = $href; break; case 'gmap_static_image': try { $cacheFileNames = array(); //@todo $operatorValue = OCOperatorsCollectionsTools::gmapStaticImage($namedParameters['parameters'], $namedParameters['attribute'], $cacheFileNames); } catch (Exception $e) { eZDebug::writeError($e->getMessage(), 'gmap_static_image'); } break; case 'fa_class_icon': $faIconIni = eZINI::instance('fa_icons.ini'); $node = $operatorValue; $data = $namedParameters['fallback'] != '' ? $namedParameters['fallback'] : $faIconIni->variable('ClassIcons', '_fallback'); if ($node instanceof eZContentObjectTreeNode) { if ($faIconIni->hasVariable('ClassIcons', $node->attribute('class_identifier'))) { $data = $faIconIni->variable('ClassIcons', $node->attribute('class_identifier')); } } $operatorValue = $data; break; case 'fa_object_icon': $faIconIni = eZINI::instance('fa_icons.ini'); $object = $operatorValue; $data = $namedParameters['fallback'] != '' ? $namedParameters['fallback'] : ''; if ($object instanceof eZContentObject) { if ($faIconIni->hasVariable('ObjectIcons', $object->attribute('id'))) { $data = $faIconIni->variable('ObjectIcons', $object->attribute('id')); } } else { if ($faIconIni->hasVariable('ObjectIcons', $node)) { $data = $faIconIni->variable('ObjectIcons', $node); } } $operatorValue = $data; break; case 'fa_node_icon': $faIconIni = eZINI::instance('fa_icons.ini'); $node = $operatorValue; $data = $namedParameters['fallback'] != '' ? $namedParameters['fallback'] : ''; if ($node instanceof eZContentObjectTreeNode) { if ($faIconIni->hasVariable('NodeIcons', $node->attribute('node_id'))) { $data = $faIconIni->variable('NodeIcons', $node->attribute('node_id')); } } else { if ($faIconIni->hasVariable('NodeIcons', $node)) { $data = $faIconIni->variable('NodeIcons', $node); } } $operatorValue = $data; break; case 'children_class_identifiers': $node = $operatorValue; $data = array(); if ($node instanceof eZContentObjectTreeNode) { $search = eZFunctionHandler::execute('ezfind', 'search', array('subtree_array' => array($node->attribute('node_id')), 'limit' => 1, 'as_objects' => false, 'filter' => array('-meta_id_si:' . $node->attribute('contentobject_id')), 'facet' => array(array('field' => 'meta_class_identifier_ms', 'name' => 'class_identifier', 'limit' => 200)))); if (isset($search['SearchExtras'])) { $facets = $search['SearchExtras']->attribute('facet_fields'); $data = array_diff(array_values($facets[0]['nameList']), $namedParameters['exclude']); } } //eZDebug::writeNotice( $data, 'children_class_identifiers' ); $operatorValue = $data; break; case 'json_encode': $operatorValue = json_encode($operatorValue); break; case 'browse_template': $identifiers = array('image', 'image2', 'galleria', 'gallery', 'immagini'); if ($ini->hasVariable('ObjectRelationsMultiupload', 'ClassAttributeIdentifiers')) { $identifiers = $ini->variable('ObjectRelationsMultiupload', 'ClassAttributeIdentifiers'); } if ($operatorValue instanceof eZContentBrowse && $operatorValue->hasAttribute('type') && $operatorValue->attribute('type') == 'AddRelatedObjectListToDataType' && $operatorValue->hasAttribute('action_name')) { $currentAttributeId = str_replace('AddRelatedObject_', '', $operatorValue->attribute('action_name')); $currentAttribute = eZPersistentObject::fetchObject(eZContentObjectAttribute::definition(), null, array("id" => $currentAttributeId), false); if (isset($currentAttribute['contentclassattribute_id'])) { $contentClassAttribute = eZContentClassAttribute::fetch($currentAttribute['contentclassattribute_id']); if ($contentClassAttribute instanceof eZContentClassAttribute && ($contentClassAttribute->attribute('data_type_string') == 'mugoobjectrelationlist' || $contentClassAttribute->attribute('data_type_string') == 'ezobjectrelationlist') && in_array($contentClassAttribute->attribute('identifier'), $identifiers)) { return $operatorValue = 'multiupload.tpl'; } } } elseif ($operatorValue instanceof eZContentBrowse && $operatorValue->hasAttribute('action_name') && $operatorValue->attribute('action_name') == 'MultiUploadBrowse') { return $operatorValue = 'multiupload.tpl'; } $operatorValue = 'default.tpl'; break; case 'multiupload_file_types_string': $availableFileTypes = array(); $availableFileTypesString = ''; if (eZINI::instance('ezmultiupload.ini')->hasGroup('FileTypeSettings_' . $operatorValue)) { $availableFileTypes = eZINI::instance('ezmultiupload.ini')->variable('FileTypeSettings_' . $operatorValue, 'FileType'); } if (!empty($availableFileTypes)) { $availableFileTypesString = implode(';', $availableFileTypes); } $operatorValue = $availableFileTypesString; break; case 'multiupload_file_types_string_from_attribute': $availableFileTypesString = ''; $attribute = $operatorValue; if ($attribute instanceof eZContentObjectAttribute) { $identifiers = array(); if ($ini->hasVariable('ObjectRelationsMultiupload', 'ClassAttributeIdentifiers')) { $identifier = $attribute->attribute('contentclass_attribute_identifier'); $identifiers = $ini->variable('ObjectRelationsMultiupload', 'ClassAttributeIdentifiers'); if (in_array($identifier, $identifiers)) { $availableFileTypes = array(); $groups = $ini->group('ObjectRelationsMultiuploadFileTypesGroups'); foreach ($groups as $groupName => $fileType) { $groupIdentifiers = $ini->variable('ObjectRelationsMultiuploadFileTypes_' . $groupName, 'Identifiers'); if (in_array($identifier, $groupIdentifiers)) { $availableFileTypesString = $fileType; } } } } } $operatorValue = $availableFileTypesString; break; case 'session_id': $operatorValue = session_id(); break; case 'session_name': $operatorValue = session_name(); break; case 'user_session_hash': $operatorValue = ''; break; case 'developer_warning': $res = false; $user = eZUser::currentUser(); if ($user->attribute('login') == 'admin') { $templates = $tpl->templateFetchList(); $data = array_pop($templates); $res = '<div class="developer-warning alert alert-danger"><strong>Avviso per lo sviluppatore</strong>:<br /><code>' . $data . '</code><br />' . $namedParameters['text'] . '</div>'; } $operatorValue = $res; break; case 'editor_warning': $res = false; $user = eZUser::currentUser(); if ($user->hasAccessTo('content', 'dashboard')) { $res = '<div class="editor-warning alert alert-warning"><strong>Avviso per l\'editor</strong>: ' . $namedParameters['text'] . '</div>'; } $operatorValue = $res; break; case 'appini': if ($appini->hasVariable($namedParameters['block'], $namedParameters['setting'])) { $rs = $appini->variable($namedParameters['block'], $namedParameters['setting']); } else { $rs = $namedParameters['default']; } $operatorValue = $rs; break; case 'has_attribute': case 'attribute': if ($operatorName == 'attribute' && $namedParameters['show_values'] == 'show') { $legacy = new eZTemplateAttributeOperator(); $parameters = $legacy->namedParameterList(); if (isset($parameters['attribute'])) { $parameters = $parameters['attribute']; } $legacyParameters = array(); foreach (array_keys($parameters) as $key) { switch ($key) { case "as_html": $legacyParameters[$key] = true; break; default: $legacyParameters[$key] = isset($namedParameters[$key]) ? $namedParameters[$key] : false; } } $legacy->modify($tpl, $operatorName, $operatorParameters, $rootNamespace, $currentNamespace, $operatorValue, $legacyParameters, null); return $operatorValue; } return $operatorValue = $this->hasContentObjectAttribute($operatorValue, $namedParameters['show_values']); break; case 'set_defaults': if (is_array($namedParameters['variables'])) { foreach ($namedParameters['variables'] as $key => $value) { if (!$tpl->hasVariable($key, $currentNamespace)) { $tpl->setLocalVariable($key, $value, $currentNamespace); } } } break; case 'unset_defaults': foreach ($namedParameters['variables'] as $key) { $tpl->unsetLocalVariable($key, $currentNamespace); // if ( isset( $tpl->Variables[$rootNamespace] ) && // array_key_exists( $key, $tpl->Variables[$rootNamespace] ) ) // { // $tpl->unsetVariable( $key, $rootNamespace ); // } } break; //@todo add cache! //@todo add cache! case 'include_cache': $tpl = eZTemplate::factory(); foreach ($namedParameters['variables'] as $key => $value) { $tpl->setVariable($key, $value); } $operatorValue = $tpl->fetch('design:' . $namedParameters['template']); break; case 'find_global_layout': $result = false; $node = $operatorValue; if (is_numeric($node)) { $node = eZContentObjectTreeNode::fetch($node); } if (!$node) { return $operatorValue = $result; } $pathArray = $node->attribute('path_array'); $nodesParams = array(); foreach ($pathArray as $pathNodeID) { if ($pathNodeID < eZINI::instance('content.ini')->variable('NodeSettings', 'RootNode') || $pathNodeID == $node->attribute('node_id')) { continue; } else { $nodesParams[] = array('ParentNodeID' => $pathNodeID, 'ResultID' => 'ezcontentobject_tree.node_id', 'ClassFilterType' => 'include', 'ClassFilterArray' => $ini->variable('GlobalLayout', 'Classes'), 'Depth' => 1, 'DepthOperator' => 'eq', 'AsObject' => false); } } //eZDebug::writeWarning( var_export($nodesParams,1), __METHOD__); $findNodes = eZContentObjectTreeNode::subTreeMultiPaths($nodesParams, array('SortBy' => array('node_id', false))); $sortByParentNodeID = array(); if (!empty($findNodes)) { foreach ($findNodes as $findNode) { $sortByParentNodeID[$findNode['parent_node_id']] = $findNode; } krsort($sortByParentNodeID); $result = array_shift($sortByParentNodeID); $result = eZContentObjectTreeNode::makeObjectsArray(array($result)); if (!empty($result)) { $result = $result[0]; } } return $operatorValue = $result; case 'redirect': $url = $namedParameters['url']; header('Location: ' . $url); break; case 'sort_nodes': $sortNodes = array(); if (!empty($operatorValue) && is_array($operatorValue)) { $nodes = $operatorValue; foreach ($nodes as $node) { if (!$node instanceof eZContentObjectTreeNode) { continue; } $object = $node->object(); switch ($namedParameters['by']) { case 'published': default: $sortby = $object->attribute('published'); break; } $sortNodes[$sortby] = $node; } ksort($sortNodes); if ($namedParameters['order'] == 'desc') { $sortNodes = array_reverse($sortNodes); } } return $operatorValue = $sortNodes; break; case 'to_query_string': if (!empty($namedParameters['param'])) { $value = $namedParameters['param']; } else { $value = $operatorValue; } $string = http_build_query($value); return $operatorValue = $string; break; case 'has_abstract': case 'abstract': $node = $operatorValue; if (!$node instanceof eZContentObjectTreeNode && isset($namedParameters['node'])) { $node = $namedParameters['node']; if (is_numeric($node)) { $node = eZContentObjectTreeNode::fetch($node); } } return $operatorValue = $this->getAbstract($node, $operatorName == 'has_abstract'); break; case 'subsite': $path = $this->getPath($tpl); $result = false; $identifiers = $ini->hasVariable('Subsite', 'Classes') ? $ini->variable('Subsite', 'Classes') : array(); $root = eZContentObjectTreeNode::fetch(eZINI::instance('content.ini')->variable('NodeSettings', 'RootNode')); if (in_array($root->attribute('class_identifier'), $identifiers)) { $result = $root; } foreach ($path as $item) { if (isset($item['node_id'])) { $node = eZContentObjectTreeNode::fetch($item['node_id']); if (in_array($node->attribute('class_identifier'), $identifiers)) { $result = $node; } } } return $operatorValue = $result; break; case 'in_subsite': $result = false; $identifiers = $ini->hasVariable('Subsite', 'Classes') ? $ini->variable('Subsite', 'Classes') : array(); $root = eZContentObjectTreeNode::fetch(eZINI::instance('content.ini')->variable('NodeSettings', 'RootNode')); if (in_array($root->attribute('class_identifier'), $identifiers)) { $result = $root; } $node = $operatorValue; if (is_numeric($node)) { $node = eZContentObjectTreeNode::fetch($node); } if (!$node) { return $operatorValue = $result; } foreach ($node->attribute('path') as $item) { if (in_array($item->attribute('class_identifier'), $identifiers)) { $result = $item; break; } } return $operatorValue = $result; break; case 'is_subsite': $identifiers = $ini->hasVariable('Subsite', 'Classes') ? $ini->variable('Subsite', 'Classes') : array(); $inSubsite = false; $node = $operatorValue; if (is_numeric($node)) { $node = eZContentObjectTreeNode::fetch($node); } if (!$node instanceof eZContentObjectTreeNode) { $inSubsite = false; } elseif (in_array($node->attribute('class_identifier'), $identifiers)) { $inSubsite = true; } return $operatorValue = $inSubsite; break; case 'is_in_subsite': if ($operatorValue instanceof eZContentObject) { $nodes = $operatorValue->attribute('assigned_nodes'); foreach ($nodes as $node) { if ($this->isNodeInCurrentSiteaccess($node)) { return $operatorValue; } } } elseif ($operatorValue instanceof eZContentObjectTreeNode) { if ($this->isNodeInCurrentSiteaccess($operatorValue)) { return $operatorValue; } } return $operatorValue = false; case 'section_color': $path = $this->getPath($tpl); $color = false; $attributesIdentifiers = $ini->hasVariable('Color', 'Attributes') ? $ini->variable('Color', 'Attributes') : array(); foreach ($path as $item) { if (isset($item['node_id'])) { $node = eZContentObjectTreeNode::fetch($item['node_id']); /** @var eZContentObjectAttribute[] $attributes */ $attributes = $node->attribute('object')->fetchAttributesByIdentifier($attributesIdentifiers); if (is_array($attributes)) { foreach ($attributes as $attribute) { if ($attribute->hasContent()) { $color = $attribute->content(); } } } } } return $operatorValue = $color; break; case 'oc_shorten': $search = array('@<script[^>]*?>.*?</script>@si', '@<style[^>]*?>.*?</style>@siU'); $operatorValue = preg_replace($search, '', $operatorValue); $operatorValue = strip_tags($operatorValue, $namedParameters['allowable_tags']); $operatorValue = preg_replace('!\\s+!', ' ', $operatorValue); $operatorValue = str_replace(' ', ' ', $operatorValue); $strlenFunc = function_exists('mb_strlen') ? 'mb_strlen' : 'strlen'; $operatorLength = $strlenFunc($operatorValue); if ($operatorLength > $namedParameters['chars_to_keep']) { if ($namedParameters['trim_type'] === 'middle') { $appendedStrLen = $strlenFunc($namedParameters['str_to_append']); if ($namedParameters['chars_to_keep'] > $appendedStrLen) { $chop = $namedParameters['chars_to_keep'] - $appendedStrLen; $middlePos = (int) ($chop / 2); $leftPartLength = $middlePos; $rightPartLength = $chop - $middlePos; $operatorValue = trim($this->custom_substr($operatorValue, 0, $leftPartLength) . $namedParameters['str_to_append'] . $this->custom_substr($operatorValue, $operatorLength - $rightPartLength, $rightPartLength)); } else { $operatorValue = $namedParameters['str_to_append']; } } else { $chop = $namedParameters['chars_to_keep'] - $strlenFunc($namedParameters['str_to_append']); $operatorValue = $this->custom_substr($operatorValue, 0, $chop); $operatorValue = trim($operatorValue); if ($operatorLength > $chop) { $operatorValue = $operatorValue . $namedParameters['str_to_append']; } } } if ($namedParameters['allowable_tags'] !== '') { $operatorValue = $this->force_balance_tags($operatorValue); } break; case 'cookieset': $key = isset($namedParameters['cookie_name']) ? $namedParameters['cookie_name'] : false; $prefix = $ini->variable('CookiesSettings', 'CookieKeyPrefix'); $key = "{$prefix}{$key}"; // Get our parameters: $value = $namedParameters['cookie_val']; $expire = $namedParameters['expiry_time']; // Check and calculate the expiry time: if ($expire > 0) { // It is a number of days: $expire = time() + 60 * 60 * 24 * $expire; } setcookie($key, $value, $expire, '/'); eZDebug::writeDebug('setcookie(' . $key . ', ' . $value . ', ' . $expire . ', "/")', __METHOD__); return $operatorValue = false; break; case 'cookieget': $key = isset($namedParameters['cookie_name']) ? $namedParameters['cookie_name'] : false; $prefix = $ini->variable('CookiesSettings', 'CookieKeyPrefix'); $key = "{$prefix}{$key}"; $operatorValue = false; if (isset($_COOKIE[$key])) { $operatorValue = $_COOKIE[$key]; } return $operatorValue; break; case 'check_and_set_cookies': $prefix = $ini->variable('CookiesSettings', 'CookieKeyPrefix'); $http = eZHTTPTool::instance(); $return = array(); if ($ini->hasVariable('Cookies', 'Cookies')) { $cookies = $ini->variable('Cookies', 'Cookies'); foreach ($cookies as $key) { $_key = "{$prefix}{$key}"; $default = isset($_COOKIE[$_key]) ? $_COOKIE[$_key] : $ini->variable($key, 'Default'); $value = $http->variable($key, $default); setcookie($_key, $value, time() + 60 * 60 * 24 * 365, '/'); $return[$key] = $value; } } $operatorValue = $return; break; case 'checkbrowser': @(require 'extension/ocoperatorscollection/lib/browser_detection.php'); if (function_exists('browser_detection')) { $full = browser_detection('full_assoc', 2); $operatorValue = $full; } else { eZDebug::writeError("function browser_detection not found", __METHOD__); } break; case 'is_deprecated_browser': $browser = $namedParameters['browser_array']; if ($browser['browser_working'] == 'ie' && $browser['browser_number'] > '7.0') { $operatorValue = true; } $operatorValue = false; break; case 'slugize': $operatorValue = $this->sanitize_title_with_dashes($operatorValue); break; } return false; }
function page() { $page = CurrentPageName(); unset($_SESSION["ProxyCategoriesPermissions"]); $ie = browser_detection(); if ($ie == "ie") { $tpl = new template_users("Fatal error", FATAL_ERROR_SHOW_128("{NOIEPLEASE_TEXT}"), $_SESSION, 0, 0, 0); $html = $tpl->web_page; echo $html; return; } $title = "{categories}"; $html = "\n\t<div id='public_categories_div'></div>\n\t<script>\n\t\t{$alert}\n\t\tLoadAjax('public_categories_div','{$page}?tabs=yes');\n\t</script>"; $tpl = new template_users($title, $html, $_SESSION, 0, 0, 0); $html = $tpl->web_page; echo $html; return; }
function dispSVG($resource, $alt = NULL, $width = NULL, $height = NULL, $id = NULL, $class = NULL, $return = false) { require_once 'modular/browser.inc'; //object width $ostyle = " "; if (is_numeric($width)) { $ostyle .= "width='{$width}" . "px'"; } if (is_numeric($height)) { $ostyle .= " height='{$height}" . "px'"; } //CSS width $cstyle = is_numeric($width) || is_numeric($height) ? " style='" : ""; if (is_numeric($width)) { $cstyle .= "width:{$width}" . "px;"; } if (is_numeric($height)) { $cstyle .= "height:{$height}" . "px;"; } if ($cstyle != "") { $cstyle .= "' "; } //identifiers if ($id != NULL) { $ido = "id='{$id}'"; } if ($class != NULL) { $classo = "class='{$class}'"; } // Check directory for gzip-svg.php $subdir = dirname($resource); if (file_exists($subdir . "/gzip-svg.php")) { $resource_old = $resource; $resource = $subdir . "/gzip-svg.php?name=" . basename($resource); } else { $resource_old = $resource; } // Detect browsers. IE falls back to Google's code, and FireFox falls back to <object> implementation. if (browser_detection('browser') == 'moz' && browser_detection('number') < 17) { $out = "<object data='{$resource}' type='image/svg+xml' {$ostyle} {$ido} {$classo}>\n{$alt}\n</object>"; if (!$return) { echo $out; return true; } else { return $out; } } if (browser_detection('browser') == 'ie') { if (browser_detection('number') < 9) { // Check for a png $pngfile = substr($resource_old, 0, -4) . ".png"; if (file_exists($pngfile)) { // With a png, display that rather than call resource overhead for Flash display $out = "<img src='{$pngfile}' alt='{$alt}' {$cstyle} {$ido} {$classo}/>"; if (!$return) { echo $out; return true; } else { return $out; } } else { // Fallback to Flash SVG display. if (!is_numeric($width)) { $ostyle .= " width='100px'"; // IE requires a width and height. If not specified, default to 100x100. $width = 100; } if (!is_numeric($height)) { $ostyle .= " height='{$width}" . "px'"; } $out = "<object data='{$resource}' type='image/svg+xml' {$ostyle} {$ido} {$classo}>"; if (browser_detection('number') >= 8) { $out .= $alt; } $out .= "</object>"; if (!$return) { echo $out; return true; } else { return $out; } } } else { $out = "<img src='{$resource}' alt='{$alt}' {$cstyle} {$ido} {$classo}/>"; if (!$return) { echo $out; return true; } else { return $out; } } } else { $out = "<img src='{$resource}' alt='{$alt}' {$cstyle} {$ido} {$classo}/>"; if (!$return) { echo $out; return true; } else { return $out; } } }
function buildPage() { if ($GLOBALS["VERBOSE"]) { echo "<H1>buildPage() function line " . __LINE__ . "</H1>"; } include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.user.inc'; include_once 'ressources/class.langages.inc'; include_once 'ressources/class.sockets.inc'; include_once 'ressources/class.mysql.inc'; include_once 'ressources/class.privileges.inc'; include_once 'ressources/class.browser.detection.inc'; include_once dirname(__FILE__) . "/ressources/class.langages.inc"; $page = CurrentPageName(); $users = new usersMenus(); $sock = new sockets(); unset($_SESSION); unset($_COOKIE["artica-template"]); $sslcert = null; $GLOBALS["DEBUG_TEMPLATE"] = true; if ($GLOBALS["VERBOSE"]) { echo "<H1>articaLang() function line " . __LINE__ . "</H1>"; } $langAutodetect = new articaLang(); $DetectedLanguage = $langAutodetect->get_languages(); if ($GLOBALS["VERBOSE"]) { echo "<H1>DetectedLanguage = {$DetectedLanguage} line " . __LINE__ . "</H1>"; } $GLOBALS["FIXED_LANGUAGE"] = $DetectedLanguage; $TEMPLATE_INDEX = "logon.html"; if (!isset($GLOBALS["FixedLanguage"])) { $GLOBALS["FixedLanguage"] = $sock->GET_INFO("FixedLanguage"); } $ie = browser_detection(); if ($ie == "ie") { FATAL_ERROR_SHOW_128_NO_IE(); return; } $logo = "logo.gif"; $logo_bg = "bg_header.gif"; $bg_color = "#005447"; $ProductName = "Artica"; $link_company_name = "http://www.articatech.com"; $OEM_CompanyName = "Artica Tech"; $template = null; $MikrotikTransparent = intval($sock->GET_INFO('MikrotikTransparent')); $SquidActHasReverse = $sock->GET_INFO("SquidActHasReverse"); $AsSquidLoadBalancer = $sock->GET_INFO("AsSquidLoadBalancer"); $SSlBumpAllowLogon = intval($sock->GET_INFO("SSlBumpAllowLogon")); if (!is_numeric($SquidActHasReverse)) { $SquidActHasReverse = 0; } if (!is_numeric($AsSquidLoadBalancer)) { $AsSquidLoadBalancer = 0; } $LOCK_TEMPLATE = false; $AsCategoriesAppliance = intval($sock->GET_INFO("AsCategoriesAppliance")); $AsMetaServer = intval($sock->GET_INFO("AsMetaServer")); $EnableNginx = intval($sock->GET_INFO("EnableNginx")); $SQUIDEnable = trim($sock->GET_INFO("SQUIDEnable")); if (!is_numeric($SQUIDEnable)) { $SQUIDEnable = 1; } if ($SQUIDEnable == 0) { if ($EnableNginx == 1) { $SquidActHasReverse = 1; } } $hostname = $sock->GET_INFO("myhostname"); if ($hostname == null) { $hostname = $sock->getFrameWork("system.php?hostname-g=yes"); $sock->SET_INFO($hostname, "myhostname"); } if ($hostname == null) { $hostname = $users->hostname; } if ($GLOBALS["VERBOSE"]) { echo "new templates() line:" . __LINE__ . "<br>\n"; } $tpl2 = new templates(); if ($users->KASPERSKY_WEB_APPLIANCE) { if ($GLOBALS["VERBOSE"]) { echo "<div style='background-color:white;color:black'>" . __LINE__ . ": KASPERSKY_WEB_APPLIANCE DETECTED</div>\n"; } $template = "Kav4Proxy"; $logo = "logo-kav.gif"; } if ($users->ZARAFA_APPLIANCE) { $template = "zarafa"; $logo = "logo-kav.gif"; } if ($users->MYCOSI_APPLIANCE) { $logo_bg = "bg_header_kavweb.gif"; $logo = "logo-mycosi.gif"; $bg_color = "#FFB683"; $ProductName = "MyCosi"; $template = "myCosi"; } if ($users->APACHE_APPLIANCE) { $template = "Apache"; $users->SAMBA_APPLIANCE = false; $logo = "logo-kav.gif"; } if ($users->WEBSECURIZE) { $LOCK_TEMPLATE = true; $users->SQUID_APPLIANCE = false; $template = "Websecurize"; $users->SAMBA_APPLIANCE = false; $logo = "logo-kav.gif"; $ProductName = "Web Securize"; $link_company_name = "http://www.lemnia.com"; $OEM_CompanyName = "LEMNIA SAS"; } if ($users->LANWANSAT) { $LOCK_TEMPLATE = true; $users->SQUID_APPLIANCE = false; $template = "LanWanSAT"; $users->SAMBA_APPLIANCE = false; $logo = "logo-kav.gif"; $ProductName = "LanWanSAT Proxy"; $link_company_name = "http://lanwansan.synology.me/wordpress/"; $OEM_CompanyName = "LanWanSan"; } $LinkColor = "white"; if (is_file("/usr/share/artica-postfix/ressources/templates/{$template}/logon-link-color.conf")) { $LinkColor = trim(@file_get_contents("/usr/share/artica-postfix/ressources/templates/{$template}/logon-link-color.conf")); } if ($GLOBALS["VERBOSE"]) { echo "<H1>template={$template} line " . __LINE__ . "</H1>"; } if ($users->SQUID_APPLIANCE) { if (!$users->KASPERSKY_WEB_APPLIANCE) { if ($GLOBALS["VERBOSE"]) { echo "<div style='background-color:{$LinkColor};color:black'>" . __LINE__ . ": SQUID_APPLIANCE DETECTED</div>\n"; } $template = "Squid"; } } if (!$LOCK_TEMPLATE) { if ($users->LOAD_BALANCE_APPLIANCE) { $template = "LoadBalance"; } if ($users->HAPRROXY_APPLIANCE) { $template = "LoadBalance"; } if ($users->WEBSTATS_APPLIANCE) { $template = "WebStats"; } if ($users->GATEWAY_APPLIANCE) { $template = "Gateway"; $TEMPLATE_INDEX = "logon.html"; } if ($users->WORDPRESS_APPLIANCE) { $template = "Wordpress"; } if ($AsCategoriesAppliance == 1) { $template = "UfdbCat"; } if ($AsMetaServer == 1) { $template = "MetaServer"; } } if ($template == null) { if ($users->SQUID_INSTALLED) { if (!$users->POSTFIX_INSTALLED) { if (!$users->SAMBA_INSTALLED) { $SQUIDEnable = $sock->GET_INFO("SQUIDEnable"); if (!is_numeric($SQUIDEnable)) { $SQUIDEnable = 1; } if ($SQUIDEnable == 1) { $template = "Squid"; } } } } } if ($template == null) { if ($users->POSTFIX_INSTALLED) { if ($users->cyrus_imapd_installed) { $template = "Postfix"; $TEMPLATE_INDEX = "logon.html"; } if ($users->ZARAFA_INSTALLED) { $template = "zarafa"; $TEMPLATE_INDEX = "logon.html"; } } } if ($template == null) { if ($users->POSTFIX_INSTALLED) { if (!$users->SQUID_INSTALLED) { if (!$users->SAMBA_INSTALLED) { $template = "Postfix"; $TEMPLATE_INDEX = "logon.html"; } } } } if (trim($template) == null) { if ($users->SAMBA_APPLIANCE) { $template = "Samba"; } } if (trim($template) == null) { if ($users->WORDPRESS_INSTALLED) { $template = "Wordpress"; } } if (trim($template) == null) { if ($users->SQUID_INSTALLED) { $template = "Squid"; } } if (trim($template) == null) { if ($users->SAMBA_INSTALLED) { $template = "Samba"; } } if (trim($template) == null) { if ($users->APACHE_INSTALLED) { $template = "Apache"; } } if ($template == "Squid") { if ($SquidActHasReverse == 1) { $TEMPLATE_INDEX = "logonr.html"; } if ($AsSquidLoadBalancer == 1) { $TEMPLATE_INDEX = "logonb.html"; } if ($MikrotikTransparent == 1) { $TEMPLATE_INDEX = "logon_mikrotik.html"; } } if ($users->APP_UFDBGUARD_INSTALLED) { $q = new mysql_squid_builder(); $sql = "SELECT COUNT( * ) AS tcount FROM personal_categories WHERE PublicMode=1"; writelogs($sql, __FUNCTION__, __FILE__, __LINE__); $ligneCatz = mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup")); if ($ligneCatz["tcount"] > 0) { $categoriesPublic = "<span style='color:{$LinkColor}'> | </span>\n\t\t\t<a href='public.categories.personnal.php' style='color:{$LinkColor}'>" . $tpl2->_ENGINE_parse_body("{categories}") . "</a> "; } } if ($GLOBALS["VERBOSE"]) { echo "<H1>template={$template} line " . __LINE__ . "</H1>"; } if ($template != null) { $jquery = null; include_once dirname(__FILE__) . "/ressources/class.page.builder.inc"; if ($GLOBALS["VERBOSE"]) { echo "new pagebuilder() line " . __LINE__ . "</H1>"; } $p = new pagebuilder(); if (is_file("ressources/templates/{$template}/{$TEMPLATE_INDEX}")) { } $tpl = @file_get_contents("ressources/templates/{$template}/{$TEMPLATE_INDEX}"); if ($GLOBALS["VERBOSE"]) { echo "<H1>ressources/templates/{$template}/{$TEMPLATE_INDEX} (" . strlen($tpl) . ") length line " . __LINE__ . "</H1>"; } foreach (glob("ressources/templates/{$template}/css/*.css") as $filename) { //$datas=@file_get_contents("$filename"); //$datas=str_replace("\n", " ", $datas); $css[] = "<link href=\"/{$filename}\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" >"; } $log[] = "<!-- TEMPLATE_INDEX:{$TEMPLATE_INDEX} -->"; if ($GLOBALS["VERBOSE"]) { echo "Scanning ressources/templates/{$template}/js/*.js" . __LINE__ . "<br>\n"; } foreach (glob("ressources/templates/{$template}/js/*.js") as $filename) { $filename = basename($filename); if (preg_match("#^jquery-([0-9\\.]+)\\.min\\.js#", $filename)) { $log[] = "<!-- jquery = {$filename} -->"; $jquery = $filename; continue; } $js[] = "<script type=\"text/javascript\" src=\"/ressources/templates/{$template}/js/{$filename}\"></script>"; $log[] = "<!-- {$filename} -->"; } $lang2Link = "<a href=\"javascript:blur();\" OnClick=\"javascript:PopupLogonLang()\" style='color:{$LinkColor} !important'>{language}</a>"; if (trim($GLOBALS["FixedLanguage"]) != null) { $lang2Link = null; } if ($jquery != null) { $jquery = "<script type=\"text/javascript\" src=\"/ressources/templates/{$template}/js/{$jquery}\"></script>"; } $jslogon = "<script type=\"text/javascript\" src=\"logon.php?start=yes\"></script>"; if ($ProductName != null) { $ProductName = "<input type='hidden' id='change-artica-name' value='{$ProductName}'>"; } $jsArtica = $p->jsArtica(); $js[] = "<script type=\"text/javascript\" language=\"javascript\" src=\"/js/jquery.reject.js\"></script>"; $css[] = "<link href=\"/css/jquery.reject.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" >"; $sock = new sockets(); $TITLE_RESSOURCE = "ressources/templates/{$template}/TITLE"; $favicon = $p->favicon($template); if ($GLOBALS["VERBOSE"]) { echo "replace tokens line:" . __LINE__ . "<br>\n"; } if (is_file($TITLE_RESSOURCE)) { $title = @file_get_contents($TITLE_RESSOURCE); $title = str_replace("%server", $users->hostname, $title); } else { $title = $users->hostname; } $FPM = null; if (method_exists("templates", "parsePHPModules")) { $modules = $tpl2->parsePHPModules(); $PHPVERSION = null; if (isset($modules["Core"]["PHP Version"])) { if (preg_match("#([0-9\\.]+)#", $modules["Core"]["PHP Version"], $re)) { $PHPVERSION = " | PHP v.{$re[1]}"; } } if (isset($modules["cgi-fcgi"]["php-fpm"])) { $FPM = " (PHP-FPM)"; } } $WizardSavedSettings = unserialize(base64_decode($sock->GET_INFO("WizardSavedSettings"))); $WizardSavedSettingsSend = $sock->GET_INFO("WizardSavedSettingsSend"); $UnlockCompanyName = $sock->GET_INFO("UnlockCompanyName"); if (!is_numeric($WizardSavedSettingsSend)) { $WizardSavedSettingsSend = 0; } $roundcube_uri = roundcube_uri($users); if ($roundcube_uri != null) { $miniadm = "<span style='color:{$LinkColor} !important'> | </span><a href=\"{$roundcube_uri}\" style='color:{$LinkColor};text-decoration:underline'>WebMail<a> "; } $miniadm = $miniadm . "<span style='color:{$LinkColor}'> | </span><a href='miniadm.logon.php' style='color:{$LinkColor}'>End-User WebAccess</a> "; if (!isset($WizardSavedSettings["company_name"])) { $WizardSavedSettings["company_name"] = null; } $company_name = $WizardSavedSettings["company_name"]; if ($UnlockCompanyName != null) { $company_name = $UnlockCompanyName; } if ($company_name != null) { $company_name = "<center style='margin:5px;font-size:16px;padding:5px;\n\t\t\t\tborder-top:1px solid {$LinkColor};border-bottom:1px solid {$LinkColor}'>- {$company_name} -</center>"; } $company_name = "<center style='margin:5px;font-size:12px;padding:5px;'>- {$hostname} -</center>{$company_name}"; $WEBSEVERV = null; if (isset($_SERVER["SERVER_SOFTWARE"])) { if (preg_match("#Apache\\/([0-9\\.]+)#", $_SERVER["SERVER_SOFTWARE"], $re)) { $WEBSEVERV = " | Apache v{$re[1]}"; } if (preg_match("#lighttpd\\/([0-9\\.]+)#", $_SERVER["SERVER_SOFTWARE"], $re)) { $WEBSEVERV = " | LigHttpd v{$re[1]}"; } } if ($users->SQUID_INSTALLED) { if ($SQUIDEnable == 1) { if ($GLOBALS["VERBOSE"]) { echo "<div style='background-color:white;color:black'>" . __LINE__ . ": SQUID INSTALLED</div>\n"; } $userslogs = "<span style='color:{$LinkColor}'> | </span><a href='squid.access-sql.php' style='color:{$LinkColor}'>Proxy requests</a> "; $EnableSquidUrgencyPublic = $sock->GET_INFO("EnableSquidUrgencyPublic"); if (!is_numeric($EnableSquidUrgencyPublic)) { $EnableSquidUrgencyPublic = 0; } if ($EnableSquidUrgencyPublic == 1) { $urgency_mode = $tpl2->_ENGINE_parse_body("{urgency_mode}"); $userslogs = "<span style='color:{$LinkColor}'> | </span><a href=\"javascript:blur();\" OnClick=\"javascript:Loadjs('squid.urgency.php',true);\" style='color:{$LinkColor}'>{$urgency_mode}</a> {$userslogs}"; } if ($SSlBumpAllowLogon == 1) { if (is_file("/usr/share/artica-postfix/ressources/squid/certificate.der")) { $certificate = $tpl2->_ENGINE_parse_body("{certificate}"); $sslcert = "<span style='color:{$LinkColor}'> | </span>\n\t\t\t\t\t\t\t\t<a href='ressources/squid/certificate.der' style='color:{$LinkColor}'>\n\t\t\t\t\t\t{$certificate}</a> \n\t\t\t\t\t\t\t\t"; } } } } else { if ($GLOBALS["VERBOSE"]) { echo "<div style='background-color:white;color:{$LinkColor}'>" . __LINE__ . ": SQUID !!NOT!! INSTALLED</div>\n"; } } if ($users->KAV4PROXY_INSTALLED) { $WEBSEVERV = " | Kav4Proxy v{$users->KAV4PROXY_VERSION}"; } $ARTICAVER = @file_get_contents("VERSION") . $WEBSEVERV . $PHPVERSION . $FPM; $tpl = str_replace("{COPYRIGHT}", "{$lang2Link}{$miniadm}{$userslogs}{$sslcert}{$categoriesPublic}<br>{$company_name}Copyright 2003 - " . date('Y') . " <a href=\"{$link_company_name}\" style='color:{$LinkColor}'>{$OEM_CompanyName}</a>", $tpl); $tpl = str_replace("{copy-right}", "{$lang2Link}{$miniadm}{$userslogs}{$sslcert}{$categoriesPublic}<br>{$company_name}Copyright 2003 - " . date('Y') . " <a href=\"{$link_company_name}\" style='color:{$LinkColor}'>{$OEM_CompanyName}</a>", $tpl); $tpl = str_replace("{TEMPLATE_HEAD}", "<!-- HEAD TITLE: {$TITLE_RESSOURCE} -->\n{$favicon}\n{$jquery}\n{$jsArtica}\n" . @implode("\n", $js) . "\n{$jslogon}\n" . @implode("\n", $css) . "\n" . @implode("\n", $log), $tpl); $tpl = str_replace("{ARTICA_VERSION}", $ARTICAVER, $tpl); if ($SQUIDEnable == 1) { $tpl = str_replace("{SQUID_VERSION}", $users->SQUID_VERSION, $tpl); } else { $tpl = str_replace("{SQUID_VERSION}", null, $tpl); } $tpl = str_replace("{POSTFIX_VERSION}", $users->POSTFIX_VERSION, $tpl); $tpl = str_replace("{SAMBA_VERSION}", $users->SAMBA_VERSION, $tpl); $tpl = str_replace("{CROSSROADS_VERSION}", $users->CROSSROADS_VERSION, $tpl); $tpl = str_replace("{APACHE_VERSION}", $users->APACHE_VERSION, $tpl); if (!function_exists("ldap_connect")) { $tpl = str_replace("{LOGON_BUTTON}", "<span id='YouCanAnimateIt'></span><script>Loadjs('{$page}?ldap_connect=yes');</script>", $tpl); } if ($GLOBALS["VERBOSE"]) { echo "p->YahooBody() line:" . __LINE__ . "<br>\n"; } $tpl = str_replace("{TEMPLATE_BODY_YAHOO}", $p->YahooBody(), $tpl); if (trim($GLOBALS["FixedLanguage"]) == null) { $tpl = str_replace("{TEMPLATE_LANG_LINK}", "<span id='llang-select'></span><script>LoadAjaxTiny('llang-select','{$page}?TEMPLATE_LANG_LINK=yes')</script>", $tpl); } else { $tpl = str_replace("{TEMPLATE_LANG_LINK}", null, $tpl); } $tpl = str_replace("{artica_username}", $_GET["MEM_USERNAME"], $tpl); $reject_browser_automation = null; if (isset($_GET["automation"])) { $reject_browser_automation = "&automation=yes"; } $tpl = str_replace("{LOGON_BUTTON}", "<span id='YouCanAnimateIt'></span>\n\t\t\t<script>Loadjs('{$page}?reject-browser=yes{$reject_browser_automation}');</script><input type='hidden' id='template' value='{$template}'>{$ProductName}" . button("{login}", "SendLogonStart()", "18px"), $tpl); $tpl = str_replace("{TEMPLATE_TITLE_HEAD}", $title, $tpl); if (strpos($tpl, "{ZARAFA_VERSION") > 0) { $sock = new sockets(); $tpl = str_replace("{ZARAFA_VERSION}", $sock->getFrameWork("zarafa.php?getversion=yes"), $tpl); } if (trim($GLOBALS["FixedLanguage"]) == null) { $tpl2->language = $DetectedLanguage; } if ($GLOBALS["VERBOSE"]) { echo "Langage {$tpl2->language} line:" . __LINE__ . "<br>\n"; } $tpl = str_replace("User name", $tpl2->_ENGINE_parse_body("{username2}"), $tpl); $tpl = str_replace("Password", $tpl2->_ENGINE_parse_body("{password}"), $tpl); if ($GLOBALS["VERBOSE"]) { echo "Success return form " . strlen($tpl) . " bytes lenght<br>\n"; } if ($GLOBALS["VERBOSE"]) { echo "Success return complete page line " . __LINE__ . "<br>\n"; } return $tpl2->_ENGINE_parse_body($tpl) . "<script>//LockPage();</script>"; } $html = "<html xmlns='http://www.w3.org/1999/xhtml'>\n<head>\n\t<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n\t<title></title>\n\t<meta name='keywords' content=''>\n\t<meta name='description' content=\"\">\n\t<meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" />\n\t<link href='css/styles_main.css' rel=\"styleSheet\" type='text/css' />\n\n\t<link href='css/styles_header.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_middle.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_tables.css' rel=\"styleSheet\" type='text/css' />\n\t<link href=\"css/styles_rounded.css\" rel=\"stylesheet\" type=\"text/css\" />\n\t<!--[if lt IE 7]>\n\t<link rel='stylesheet' type='text/css' href='css/styles_ie.css' />\n\t<![endif]-->\n\t<!--[if IE 7]>\n\t<link rel='stylesheet' type='text/css' href='css/styles_ie7.css' />\n\t<![endif]-->\n\t\t<link rel=\"stylesheet\" type=\"text/css\" rel=\"styleSheet\" href=\"ressources/templates/default/contact.css\" />\n\t\t<link rel=\"stylesheet\" type=\"text/css\" rel=\"styleSheet\" href=\"ressources/templates/default/menus_top.css\" />\n\t\t<link href=\"css/calendar.css\" rel=\"stylesheet\" type=\"text/css\">\n\t\t<link href=\"js/jqueryFileTree.css\" rel=\"stylesheet\" type=\"text/css\">\n\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/uploadify.css\" />\n\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/artica-theme/jquery-ui-1.7.2.custom.css\" />\n\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/jquery.jgrowl.css\" />\n\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/jquery.cluetip.css\" />\n\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/jquery.treeview.css\" />\n\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/thickbox.css\" media=\"screen\"/>\n\t\t<div id='PopUpInfos' style='position:absolute'></div>\n\t\t<div id='find' style='position:absolute'></div>\n\t\t<script type=\"text/javascript\" language=\"javascript\" src=\"XHRConnection.js\"></script>\n\t\t<script type=\"text/javascript\" language=\"JavaScript\" src=\"mouse.js\"></script>\n\t\t<script type=\"text/javascript\" language=\"javascript\" src=\"default.js\"></script>\n\t\t<script type=\"text/javascript\" language=\"javascript\" src=\"js/cookies.js\"></script>\n\t\t<script type=\"text/javascript\" language=\"javascript\" src=\"js/jquery-1.6.1.min.js\"></script>\n\t\t<script type=\"text/javascript\" language=\"javascript\" src=\"js/jqueryFileTree.js\"></script>\n\t\t<script type=\"text/javascript\" language=\"javascript\" src=\"js/jquery.easing.1.3.js\"></script>\n\t\t<script type=\"text/javascript\" language=\"javascript\" src=\"js/jquery-ui-1.8.custom.min.js\"></script>\n\t\t<script type=\"text/javascript\" language=\"javascript\" src=\"js/thickbox-compressed.js\"></script>\n\t\t<script type=\"text/javascript\" language=\"javascript\" src=\"js/jquery.simplemodal-1.3.3.min.js\"></script>\n\t\t<script type=\"text/javascript\" language=\"javascript\" src=\"js/jquery.jgrowl_minimized.js\"></script>\n\t\t<script type=\"text/javascript\" language=\"javascript\" src=\"js/jquery.cluetip.js\"></script>\n\t\t<script type=\"text/javascript\" language=\"javascript\" src=\"js/jquery.blockUI.js\"></script>\n\t\t<script type=\"text/javascript\" language=\"javascript\" src=\"js/jquery.treeview.min.js\"></script>\n\t\t<script type='text/javascript' language='javascript' src='/js/jquery.uilock.min.js'></script>\n\t\t<script type='text/javascript' language='javascript' src='/js/jquery.blockUI.js'></script> \n\t\t<!-- js Artica -->\n\n\n</head>\n<body>\n<!-- LINE " . __LINE__ . " -->\t\t\n<center>\n<div style=\"width:900px;background-image:url(/css/images/{$logo_bg});background-repeat:repeat-x;background-position:center top;margin:0px;padding:0px;\">\n\t<table style=\"width:100%;margin:0px;padding:0px;border:0px;\">\n\t\t<tr>\n\t\t <td valign=\"top\" style='padding:0px;margin:0px;border:0px;padding-top:24px'>\n\t\t\t<div style=\"height:72px\">\n\t\t\t\t<table style=\"padding:0px;margin:0px;border:0px;margin-left:-6px;\">\n\t\t\t\t<tr>\n\t\t\t \t\t<td style='padding:0px;border:0px;' valign=\"top\" align=\"left\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<table style=\"margin:0px;border:0px;padding:0px;\">\n\t\t\t\t\t\t\t<tr>\n\t\t\t \t\t\t\t<td style=\"margin:0px;padding:0px;background-color:{$bg_color}\" width=\"160px\">\n\n\t\t\t\t\t\t\t\t<img src='/css/images/{$logo}' style=\"margin:0px;padding:0px;\">\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td style=\"margin:0px;padding:0px;\" valign=\"middle\">\n\t\t\t\t\t\t\t\t<div style=\"margin-top:-7px;padding-left:5px\"> </div>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td style=\"margin:0px;padding:0px;border:0px solid black\" valign=\"middle\" align='right' width=50%>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\n\t\t\t\t\t </td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t <td style='height:25px'>\n\t\t\t\t\t<div id='menus_2'><ul></ul></div id='menus_2'>\n\t\t\t\t </td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\n\n\t\t</div>\n\t\t </td>\n\t\t \n\t\t\t\n\t\t \n\t \t</tr>\n\t\t<tr>\n\t\t<td valign=\"top\" colspan=2 style=\"margin:0px;padding:0px;padding-top:4px;background-color:white;\">\t\n<div id='middle'>\n\t<div id='content' style='background-color:white;'>\n\t\t<table style='width:100%'>\n\t\t\t<tr>\n\n\t\t\t\t<td valign='top' style='padding:0px;margin:0px;width:150px'>\n\t\t\t\t\t\n\t\t\t\t</td>\n\t\t\t\t<td valign='top' style='padding-left:3px'>\n\t\t\t\t\t<div id='template_users_menus'></div>\n\t\t\t\t\t<div id='BodyContentTabs'></div>\n\t\t\t\t\t\t<div id='BodyContent'>\n\t\t\t\t\t\t\t<h1 id='template_title'></h1>\n\t\t\t\t\t\t\t<!-- content -->\n\t\t\t\t\t\t\t\n\n<script>\nfunction SaveSession(){\n\tvar template=document.getElementById('template').value;\n\tvar lang=document.getElementById('lang').value;\n\tSet_Cookie('artica-template', template, '3600', '/', '', '');\n\tSet_Cookie('artica-language', lang, '3600', '/', '', '');\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('lang',lang);\n\tXHR.sendAndLoad('logon.php', 'GET');\t\t\n\tlocation.reload();\n}\n\nfunction LoadModal(){\n\$('#loginform').modal({onOpen: function (dialog) {\n\tdialog.overlay.fadeIn('slow', function () {\n\t\tdialog.container.slideDown('slow', function () {\n\t\t\tdialog.data.fadeIn('slow');\n\t\t});\n\t});\n}});\n\n\n\n}\n\n\n</script>\n\n\n<center>\n\t<div id='loginform'></div>\n</center>\n<!-- content end -->\n\t\t\t\t\t\t</div>\n\n\t\t\t\t</td>\n\n\t\t\t\t<td valign='top'></td>\n\t\t\t</tr>\t\n\t</table>\t\n\n\t<div class='clearleft'></div>\n\t<div class='clearright'></div>\n\t</div id='content'>\n\n</div id='middle'>\n</td>\n</tr>\n<tr>\n<td valign='top' align=left colspan=2 >\n<div style='background-color:#736e6c;font-size:13px;color:{$LinkColor};height:25px;padding:0px;margin:0px;padding-top:5px;\nwidth:900px;text-align:center;margin-left:-5px;margin-bottom:-3px'>\n\n<strong>{$ProductName} Copyright 2006-" . date('Y') . "</strong>\n</div>\n</td>\n</tr>\n</table>\n</div>\n</center>\n<script>\ndocument.getElementById('loginform').innerHTML='<center><img src=\"img/wait_verybig.gif\"></center>';\nLoadjs('logon.php?start=yes',true);</script>\n\t\t<div id=\"SetupControl\" style='width:0;height:0'></div>\n\t\t<div id=\"dialogS\" style='width:0;height:0'></div> \n\t\t<div id=\"dialogT\" style='width:0;height:0'></div> \n\t\t<div id=\"dialog0\" style='width:0;height:0'></div> \n\t\t<div id=\"dialog1\" style='width:0;height:0'></div>\n\t\t<div id=\"dialog2\" style='width:0;height:0'></div> \n\t\t<div id=\"dialog3\" style='width:0;height:0'></div>\n\t\t<div id=\"dialog4\" style='width:0;height:0'></div>\n\t\t<div id=\"dialog5\" style='width:0;height:0'></div>\n\t\t<div id=\"dialog6\" style='width:0;height:0'></div>\n\t\t<div id=\"YahooUser\" style='width:0;height:0'></div>\n\t\t<div id=\"logsWatcher\" style='width:0;height:0'></div>\n\t\t<div id=\"WinORG\" style='width:0;height:0'></div>\n\t\t<div id=\"WinORG2\" style='width:0;height:0'></div>\n\t\t<div id=\"RTMMail\" style='width:0;height:0'></div>\n\t\t<div id=\"Browse\" style='width:0;height:0'></div>\n\t\t<div id=\"SearchUser\" style='width:0;height:0'></div>\n</body>\n</html>"; return $html; }
function bilgiListele($sonuclar, $userId, $itemIdStrOrj) { if (empty($sonuclar)) { echo '<div class="sonucBulunamadi">Uygun sonuç bulunamadı.</div>'; echo '<br /><a href="index.php?option=com_yetkilendirilmis_kurulus_ara' . $itemIdStrOrj . '">Geri</a>'; } else { $user =& JFactory::getUser(); $aut = checkAuthorizationForDurum($user, $userId); ?> <div class="tableWrapper"> <table cellspacing="0" class="paginate-10 sortable"> <tr class="tablo_header"> <th>#</th> <?php if (isset($sonuclar[0]['YETERLILIK_ADI'])) { echo '<th class="sortable-text">Hazırlamakta Olduğu Yeterlilik</th>'; } if (isset($sonuclar[0]['STANDART_ADI'])) { echo '<th class="sortable-text">Hazırlamakta Olduğu Standart</th>'; } ?> <th class="sortable-text">Seviye</th> <th class="sortable-text">Sektör</th> <?php if ($aut) { ?> <th class="sortable-text">Durum</th> <th class="sortable-text">PDF</th> <?php } ?> </tr> <?php $rowCount = 1; $rowClass = ""; $user_browser = browser_detection('browser'); foreach ($sonuclar as $satir) { if ($rowCount % 2 == 0) { $rowClass = "even_row"; } else { $rowClass = "odd_row"; } echo '<tr class="' . $rowClass . '">'; echo '<td>' . $rowCount . '</td>'; if (isset($satir['YETERLILIK_ADI'])) { if ($aut) { echo '<td><a href="index.php?option=com_yeterlilik_taslak&layout=tanitim&id=' . $satir['EVRAK_ID'] . '&yeterlilik_id=' . $satir['YETERLILIK_ID'] . '">' . $satir['YETERLILIK_ADI'] . '</a></td>'; } else { echo '<td>' . $satir['YETERLILIK_ADI'] . '</td>'; } if (strripos($user_browser, 'msie') !== FALSE) { $clickHTML = 'target="_blank" href="index.php?option=com_yeterlilik_taslak&layout=tanitim&format=pdf&form=5&id=' . $satir['EVRAK_ID'] . '&yeterlilik_id=' . $satir['YETERLILIK_ID'] . '"'; } else { $clickHTML = 'onclick="window.open(\'index.php?option=com_yeterlilik_taslak&layout=tanitim&format=pdf&form=5&id=' . $satir['EVRAK_ID'] . '&yeterlilik_id=' . $satir['YETERLILIK_ID'] . '\',\'\',\'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,directories=no,location=no\');"'; } } if (isset($satir['STANDART_ADI'])) { if ($aut) { echo '<td><a href="index.php?option=com_meslek_std_taslak&layout=terim&id=' . $satir['EVRAK_ID'] . '&standart_id=' . $satir['STANDART_ID'] . '">' . $satir['STANDART_ADI'] . '</a></td>'; } else { echo '<td>' . $satir['STANDART_ADI'] . '</td>'; } if (strripos($user_browser, 'msie') !== FALSE) { $clickHTML = 'target="_blank" href="index.php?option=com_meslek_std_taslak&layout=terim&format=pdf&form=5&id=' . $satir['EVRAK_ID'] . '&standart_id=' . $satir['STANDART_ID'] . '"'; } else { $clickHTML = 'onclick="window.open(\'index.php?option=com_meslek_std_taslak&layout=terim&format=pdf&form=5&id=' . $satir['EVRAK_ID'] . '&standart_id=' . $satir['STANDART_ID'] . '\',\'\',\'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,directories=no,location=no\');"'; } } echo '<td>' . $satir['SEVIYE_ADI'] . '</td>'; echo '<td>' . $satir['SEKTOR_ADI'] . '</td>'; if (isset($satir['YETERLILIK_ADI']) && $aut) { echo '<td>' . $satir['YETERLILIK_SUREC_DURUM_ADI'] . '</td>'; echo '<td><a ' . $clickHTML . ' rel="nofollow" ><img alt="PDF" src="' . SITE_URL . '/templates/elegance/images/pdf_button.png"></a></td>'; } if (isset($satir['STANDART_ADI']) && $aut) { echo '<td>' . $satir['STANDART_SUREC_DURUM_ADI'] . '</td>'; echo '<td><a ' . $clickHTML . ' rel="nofollow" ><img alt="PDF" src="' . SITE_URL . '/templates/elegance/images/pdf_button.png"></a></td>'; } echo '</tr>'; $rowCount++; } ?> </table> </div> <br /> <a href="index.php?option=com_yetkilendirilmis_kurulus_ara<?php echo $itemIdStrOrj; ?> ">Geri</a> <?php } }
function render_download_applet() { $this->valid_os=array('nt','mac'); require("browser.php"); $os=browser_detection('os'); if ($this->create_certificate) { if ($_passport = $this->generateCertificate()) { $_account['passport'] = $_passport; } } $_account['sip_address'] = $this->account; $_account['display_name'] = sprintf("%s %s",$this->firstName,$this->lastName); $_account['password'] = $this->password; $_account['web_password'] = $this->Preferences['web_password']; $_account['email'] = $this->email; $_account['settings_url'] = $this->digest_settings_page; $_account['xcap_root'] = $this->xcap_root; $_account['outbound_proxy'] = $this->sip_proxy; if ($this->enrollment_url) { include($this->enrollment_configuration); if (is_array($enrollment)) { $_account['msrp_relay'] = $enrollment['msrp_relay']; $_account['conference_server'] = $enrollment['conference_server']; $_account['settings_url'] = $enrollment['settings_url']; if ($enrollment['ldap_hostname']) { $_account['ldap_hostname'] = $enrollment['ldap_hostname']; } if ($enrollment['ldap_dn']) { $_account['ldap_dn'] = $enrollment['ldap_dn']; } } } if ($this->store_clear_text_passwords=='false') { $match_password=false; if ($_REQUEST['password']) { $str=$this->result->id->username.":".$this->result->id->domain.":".$_REQUEST['password']; if (md5($str) == $this->result->ha1) { $_account['password']=$_REQUEST['password']; $match_password=true; } } if (!$match_password){ print "<form method='POST' id='password_download' class='form-horizontal' action='$this->url'><p>"; print _("Please enter your SIP account password: "******"</p><div id='pass_group' class='control-group error'>"; } else { print "</p><div id='pass_group' class=control-group>"; } print "<label class=control-label>"; print _("Password"); print "</label>"; print "<div id='controls_password' class=controls>"; print "<input class='input' type='password' id='password' name='password' placeholder='"; print _("Enter your password"); print "'' value='"; print $_REQUEST['password']; print "'>"; if ($_REQUEST['password'] || $_REQUEST['continue']) { print "<span id=\"help-text\" class=\"help-inline\">Entered password does not match your account</span>"; } print "</div></div>"; print "<input type='hidden' name='tab' value='download'>"; print "<div class='form-actions'>"; print "<input type=submit value='Continue' class='btn btn-primary'>"; print "<input type='hidden' name='continue' value='1'>"; print "</div></form>"; $class='hide'; } } print "<div class=$class id='java_buttons'><table border=0>"; if (in_array($os,$this->valid_os)) { print "<tr><td>"; printf (_("Download and install <a href=%s target=blink>%s</a> preconfigured with your SIP account:"), $this->blink_download_url, $this->show_download_tab); print "</td></tr>"; print "<tr><td>"; printf ("<applet code='com.agprojects.apps.browserinfo.BlinkConfigure' archive='blink_download.jar?version=%s' name='BlinkDownload' height='35' width='250' align='left'> <param name='label_text' value='Download'> <param name='click_label_text' value='Downloading...'> <param name='download_url' value='%s'> <param name='file_name' value=''> <param name='file_content' value='%s'> </applet>", rand(), $this->blink_download_url, rawurlencode(json_encode($_account)) ); print "</td></tr>"; } else { print "<tr><td>"; print "<p>"; printf (_("To download %s visit <a href='%s' target=blink>%s</a>"),$this->show_download_tab, $this->blink_download_url, $this->blink_download_url); print "</td></tr>"; } print "<tr><td>"; printf (_("If you have already installed %s, you can configure it to use your SIP account:"), $this->show_download_tab); print "</td></tr>"; print "<tr><td>"; printf ("<applet code='com.agprojects.apps.browserinfo.BlinkConfigure' archive='blink_download.jar?version=%s' name='BlinkConfigure' height='35' width='250' align='left'> <param name='label_text' value='Configure this account'> <param name='click_label_text' value='Please restart %s now!'> <param name='download_url' value=''> <param name='file_name' value=''> <param name='file_content' value='%s'> </applet>", rand(), $this->show_download_tab, urlencode(json_encode($_account)) ); print "</td></tr>"; print "</table>"; print "<p>"; printf ("Notes. "); print _("<a href='http://www.java.com/en/download/manual.jsp'>Java Runtime Environment</a> (JRE) must be activated in the web browser. "); print "</div>"; }
function status_right() { include_once dirname(__FILE__) . "/ressources/class.browser.detection.inc"; $users = new usersMenus(); if (!$users->AsArticaAdministrator) { die("<H2 style='color:red'>permission denied</H2>"); } $ldap = new clladp(); if ($ldap->ldap_password == "secret") { echo RoundedLightGrey(Paragraphe("danger64-user-lock.png", '{MANAGER_DEFAULT_PASSWORD}', '{MANAGER_DEFAULT_PASSWORD_TEXT}', "javascript:Loadjs('artica.settings.php?js=yes&bigaccount-interface=yes');", null, 330)) . "<br>"; } if (!function_exists("browser_detection")) { include dirname(__FILE__) . '/ressources/class.browser.detection.inc'; } $browser = browser_detection(); if ($browser == "ie") { echo Paragraphe("no-ie-64.png", '{NOIEPLEASE} !!', '{NOIEPLEASE_TEXT}', "javascript:s_PopUp('http://www.mozilla-europe.org/en/firefox/','800',800);", null, 330) . "<br>"; } if ($users->VMWARE_HOST) { if (!$users->VMWARE_TOOLS_INSTALLED) { echo RoundedLightGrey(Paragraphe("vmware-logo.png", '{INSTALL_VMWARE_TOOLS}', '{INSTALL_VMWARE_TOOLS_TEXT}', "javascript:Loadjs('setup.index.progress.php?product=APP_VMTOOLS&start-install=yes');", null, 330)) . "<br>"; } } if ($users->POSTFIX_INSTALLED) { echo status_postfix(); return null; } $tpl = new templates(); $html = file_get_contents("ressources/logs/status.right.1.html"); echo $tpl->_ENGINE_parse_body("{$html}"); $sock = new sockets(); $sock->getFrameWork('cmd.php?ForceRefreshRight=yes'); }
function add() { include DIR_WS_FUNCTIONS . '/browser_detection.php'; $a_browser_data = browser_detection('full'); // print_r($a_browser_data); if ($a_browser_data[0] == 'moz') { echo "<script language=\"JavaScript\" type=\"text/JavaScript\" src=\"../js/media_ff.js\"></script>"; } else { echo "<script language=\"JavaScript\" type=\"text/JavaScript\" src=\"../js/media.js\"></script>"; } ?> <script type="text/javascript" src="../js/embed-object.js"></script> <script language="JavaScript" type="text/JavaScript" src="../js/swfobject.js"></script> <script language="JavaScript"> function setImage(image){ // document.getElementById('PICTURE').value = image.substr(2,image.length); } function setMovie(movie, id){ if (id == 1){ document.getElementById('SOURCE_FILE').value = movie; } if (id == 2){ // document.getElementById('SOURCE_FILE2').value = movie; } if (id == 3){ // document.getElementById('SOURCE_FILE3').value = movie; // document.getElementById('SOURCE_FILE2').value = movie.replace("600","2000"); document.getElementById('SOURCE_FILE').value = movie.replace("600","1000"); } } function setTrailer(trailer){ // document.getElementById('TRAILER').value = trailer.substr(2,trailer.length); } </script> <?php if (isset($_GET['id'])) { echo "<span class=\"pageHeading\">Wijzigen product</span><BR><BR>"; } else { echo "<span class=\"pageHeading\">Invoeren nieuw product</span><BR><BR>"; } $form = new FormHandler(); $form->PermitEdit(); $form->TableSettings('100%', 0, 1, 2, 'font-family:Verdana;font-size:10px;border: 1px solid grey'); //$form->AddHTML($myhtml); // set the database data (data from another file or so ? ) $form->UseDatabase(DB_DATABASE, "products"); $form->textfield("Titel", "TITLE", "", "50"); $form->TextArea("Synopsis algemeen", "SHORT_SYNOPSIS", "", 47); //$form->textfield("<a href=# onclick=window.open(\"./mftp/index.php?film=1¤tDir=voetbal_supporter\",\"film\",\"width=560,height=350,left=250,top=200\")><U>Film locatie - 1Mbps</U></a>:", "SOURCE_FILE", "", "50"); //$form->textfield("ContentID 1Mbps", "CONTENTID", "", "5"); if ($this->parent->module_exists("categories")) { $categories = $GLOBALS["categories"]->contents(); $form->SelectField("Categorie", "CATEGORY_ID", $categories, true); } //reset if (isset($_GET['id'])) { $query = "SELECT source_file, TITLE FROM products WHERE products.product_id = '" . $_GET['id'] . "'"; $exec2 = mysql_query($query); $row2 = mysql_fetch_array($exec2); mysql_data_seek($exec2, 0); $popupHtml = ""; $image_url = "../images/screens/"; $image_name = $row2['source_file']; $image_name = substr($image_name, 0, strlen($image_name) - 4); $popupHtml .= "<tr><td colspan=4><table cellspacing=\"2\" cellpadding=\"0\"><tr>"; for ($x = 0; $x < 5; $x++) { $popupHtml .= "<td height=\"100\" align=\"center\" valign=\"middle\">"; $image = $image_name . "_" . ($x + 1) . ".jpg"; $popupHtml .= "<img src=\"" . $image_url . $image . "\" width=\"100\" border=\"0\">"; $popupHtml .= "</td>"; } $popupHtml .= "</tr></table></td></tr>"; $sourcefile = "http://217.114.103.140/content/bbaltv/" . $row2['source_file']; $flash = str_replace(".wmv", ".flv", $row2['source_file']); $flash_sourcefile = "http://217.114.103.140/content/bbaltv/" . $flash; $image = "http://www.bbal.tv/images/screens/" . $_GET['id'] . "_2.jpg"; if (file_exists($flash_sourcefile)) { $popupHtml .= "<tr>"; $popupHtml .= "<td colspan=3 width=\"390\" align=\"left\"><p id=\"flvplayer\"><a href=\"http://www.macromedia.com/go/getflashplayer\">Get the Flash Player</a> to see this player.</p>"; $popupHtml .= "<script type=\"text/javascript\">"; $popupHtml .= "var so = new SWFObject('../flash/flvplayer.swf','player','390','290','7');"; $popupHtml .= "so.addParam(\"allowfullscreen\",\"true\");"; $popupHtml .= "so.addVariable(\"file\",\"" . $flash_sourcefile . "\");"; $popupHtml .= "so.addVariable(\"image\", \"" . $image . "\");"; $popupHtml .= "so.addVariable(\"displayheight\",\"290\");"; $popupHtml .= "so.addVariable(\"lightcolor\",\"0x557722\");"; $popupHtml .= "so.addVariable(\"backcolor\",\"0x363795\");"; $popupHtml .= "so.addVariable(\"frontcolor\",\"0xCCCCCC\");"; $popupHtml .= "so.write('flvplayer');"; $popupHtml .= "</script>"; $popupHtml .= "</td></tr>"; } $form->AddHTML($popupHtml); } if ($this->parent->module_exists("upload")) { $files = $GLOBALS["upload"]->contents(); array_unshift($files, ""); $form->SelectField("Uploaded file", "UPLOAD_FILE", $files, true); //print_r($files); // $form->AddHTML($uploadHtml); } if (strpos(" " . $_SERVER['QUERY_STRING'], "opmerking=1")) { $form->hiddenField("VISIBLE", "T"); } $form->AddHTML("<tr><td colspan=\"3\"> </td></tr>"); $form->SubmitBtn("Opslaan", false, "Annuleren"); $form->OnSaved("doRun"); // flush the form $form->FlushForm(); }
$system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__); } $query = "UPDATE " . $DBPrefix . "currentaccesses SET pageviews = pageviews + 1"; if ($UPDATESESSION) { $query .= ", usersessions = usersessions + 1"; } if ($UPDATECOOKIE) { $query .= ", uniquevisitors = uniquevisitors + 1"; } $query .= " WHERE day = " . $THISDAY . " AND month = " . $THISMONTH . " AND year = " . $THISYEAR; $system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__); // End users accesses } // Get user's agent and platform $browser_info = browser_detection('full'); $browser_info[] = browser_detection('moz_version'); //var_dump($browser_info); $os = ''; switch ($browser_info[5]) { case 'win': $os .= 'Windows '; break; case 'nt': $os .= 'Windows NT '; break; case 'lin': $os .= 'Linux '; break; case 'mac': $os .= 'Mac '; break;
<?php // include the browser detection script include 'browser_detection.php'; // if the user-agent IS NOT a browser, assume it is not html, and // redirect immediatly to the inner_uri if (browser_detection('dom') == false) { $inner_uri = $_GET['inner_uri']; // replace "http:/" with "http://" // - the double "//" got stripped in inner_uri as it is interpreted // as the path of the URI and no more as a scheme $inner_uri = preg_replace('#http:/(?!/)#iu', 'http://', $inner_uri); echo 'Location: ' . $inner_uri; } ?> may use JS
<?php // no direct access defined('_JEXEC') or die('Restricted access'); require_once "libraries/joomla/utilities/browser_detection.php"; $user_browser = browser_detection('browser'); ?> <div class="form_item"> <div class="form_element cf_heading"> <h1 class="contentheading">Protokol Listesi</h1> </div> <div class="cfclear"> </div> </div> <div class="form_content"> <form id="protokolForm" name="protokolForm" method="post" action="index.php?option=com_yetkilendirme_ortak&task=etkisizlestir"> <div class="toolbar"> <input id="etkinlestirButton" value="Etkin Hale Getir" name="etkinlestirButton" type="button" onclick="OnButton1();" /> <input id="etkisizlestirButton" value="Etkisiz Hale Getir" name="etkisizlestirButton" type="button" onclick="OnButton2();" /> <input id="silButton" value="Sil" name="silButton" type="button" formaction="index.php?option=com_yetkilendirme_ortak&task=sil"
function listele($sonuclar) { if (empty($sonuclar)) { echo '<div class="sonucBulunamadi">Uygun sonuç bulunamadı.</div>'; } else { ?> <div > <table cellspacing="0" class="paginate-100 sortable" border="1"> <tr class="tablo_header"> <th>#</th> <th class="sortable-numeric">Kuruluş Adı</th> <th class="sortable-numeric">Sektör</th> <th class="sortable-numeric">Protokol Kapsamında Yer Alanlar</th> <th class="sortable-numeric">Kuruluşca Çalışılanlar</th> <th class="sortable-numeric">Görüş Aşamasında Bulunanlar</th> <th class="sortable-numeric">Görüş Değerlendirme Aşamasında Bulunanlar</th> <th class="sortable-numeric">İptal Edilenler</th> <th class="sortable-numeric">Sektör Komitesi Aşamasında Bulunanlar</th> <th class="sortable-numeric">Yönetim Kurulu Aşamasında Bulunanlar</th> <th class="sortable-numeric">Yayınlanmak Üzere Gönderilenler</th> <th class="sortable-numeric">Resmi Gazetede Yayımlananlar</th> </tr> <?php } ?> <?php $user_browser = browser_detection('browser'); $rowCount = 1; $rowClass = ""; $sumPKS = 0; $sumKTCD = 0; $sumGA = 0; $sumGDA = 0; $sumIEM = 0; $sumSKA = 0; $sumYKA = 0; $sumYUG = 0; $sumRGY = 0; foreach ($sonuclar as $yetki) { foreach ($yetki as $sonuc) { foreach ($sonuc as $satir) { if ($rowCount % 2 == 0) { $rowClass = "even_row"; } else { $rowClass = "odd_row"; } echo '<tr class="' . $rowClass . '" >'; echo '<td style="font-size:10px;">' . $rowCount . '</td>'; echo '<td style="font-size:10px;">' . $satir['KURULUS_ADI'] . '</td>'; echo '<td style="font-size:10px;">' . $satir['SEKTOR_ADI'] . '</td>'; echo '<td>' . $satir['PKS'] . '</td>'; echo '<td>' . $satir['KTCD'] . '</td>'; echo '<td>' . $satir['GA'] . '</td>'; echo '<td>' . $satir['GDA'] . '</td>'; echo '<td>' . $satir['IEM'] . '</td>'; echo '<td>' . $satir['SKA'] . '</td>'; echo '<td>' . $satir['YKA'] . '</td>'; echo '<td>' . $satir['YUG'] . '</td>'; echo '<td>' . $satir['RGY'] . '</td>'; echo '</tr>'; $rowCount++; $sumPKS = $sumPKS + $satir['PKS']; $sumKTCD = $sumKTCD + $satir['KTCD']; $sumGA = $sumGA + $satir['GA']; $sumGDA = $sumGDA + $satir['GDA']; $sumIEM = $sumIEM + $satir['IEM']; $sumSKA = $sumSKA + $satir['SKA']; $sumYKA = $sumYKA + $satir['YKA']; $sumYUG = $sumYUG + $satir['YUG']; $sumRGY = $sumRGY + $satir['RGY']; } } } ?> </table> <table cellspacing="0" border="1"> <?php $protokolKapsamindakiler = getProtokolKapsamindaStd(); $kuruluscaCalisilan = getKuruluscaCalisilanStd(); $countsFromTable = getStandartCount(); //echo '<tr><td><strong>TOPLAM</strong></td><td align="center"><strong>'.$protokolKapsamindakiler.'</strong></td>'; echo '<tr><td><strong>TOPLAM</strong></td><td align="center"><strong>' . $sumPKS . '</strong></td>'; echo '<td align="center"><strong>' . $sumKTCD . '</strong></td>'; for ($i = 0; $i < count($countsFromTable); $i++) { echo '<td align="center"><strong>' . $countsFromTable[$i] . '</strong></td>'; } /* <td align='center'><strong>".$protokolKapsamindakiler."</strong></td> <td align='center'><strong>".$kuruluscaCalisilan."</strong></td> <td align='center'><strong>".$sumGA."</strong></td> <td align='center'><strong>".$sumGDA."</strong></td> <td align='center'><strong>".$sumIEM."</strong></td> <td align='center'><strong>".$sumSKA."</strong></td> <td align='center'><strong>".$sumYKA."</strong></td> <td align='center'><strong>".$sumYUG."</strong></td> <td align='center'><strong>".$sumRGY."</strong></td>*/ echo '</tr>'; ?> <tr class="tablo_header"> <th style="font-size:10px;"> </th> <th style="font-size:10px;">Protokol Kapsamında Yer Alanlar</th> <th style="font-size:10px;">Kuruluşca Çalışılanlar</th> <th style="font-size:10px;">Görüş Aşamasında</th> <th style="font-size:10px;">Görüş Aşamasında Bulunanlar</th> <th style="font-size:10px;">İptal Edilenler</th> <th style="font-size:10px;">Sektör Komitesi Aşamasında Bulunanlar</th> <th style="font-size:10px;">Yönetim Kurulu Aşamasında Bulunanlar</th> <th style="font-size:10px;">Yayınlanmak Üzere Gönderildi</th> <th style="font-size:10px;">Resmi Gazetede Yayımlananlar</th> </tr> </table> </div> <?php }
function status_right(){ include_once(dirname(__FILE__)."/ressources/class.browser.detection.inc"); $users=new usersMenus(); $sock=new sockets(); $tpl=new templates(); if(!$users->AsArticaAdministrator){die("<H2 style='color:red'>permission denied</H2>");} $page=CurrentPageName(); $script="\n<script>LoadAjax('left_status','$page?status=left');</script>\n"; $ldap=new clladp(); if($GLOBALS["VERBOSE"]){echo "$page LINE:".__LINE__."\n";} if($ldap->ldap_password=="secret"){ echo RoundedLightGrey(Paragraphe("danger64-user-lock.png",'{MANAGER_DEFAULT_PASSWORD}','{MANAGER_DEFAULT_PASSWORD_TEXT}',"javascript:Loadjs('artica.settings.php?js=yes&bigaccount-interface=yes');",null,330))."<br>"; } if(!function_exists("browser_detection")){include(dirname(__FILE__).'/ressources/class.browser.detection.inc');} $browser=browser_detection(); if($browser=="ie"){ echo Paragraphe("no-ie-64.png",'{NOIEPLEASE} !!','{NOIEPLEASE_TEXT}',"javascript:s_PopUp('http://www.mozilla-europe.org/en/firefox/','800',800);",null,330)."<br>"; } if($sock->GET_INFO("EnableNightlyInFrontEnd")==1){NightlyNotifs();} if($users->VMWARE_HOST){ if(!$users->VMWARE_TOOLS_INSTALLED){ echo RoundedLightGrey(Paragraphe("vmware-logo.png",'{INSTALL_VMWARE_TOOLS}','{INSTALL_VMWARE_TOOLS_TEXT}', "javascript:Loadjs('setup.index.progress.php?product=APP_VMTOOLS&start-install=yes');",null,330))."<br>"; } } if($GLOBALS["VERBOSE"]){echo "$page LINE:".__LINE__."\n";} if($users->VIRTUALBOX_HOST){ if(!$users->APP_VBOXADDINTION_INSTALLED){ echo RoundedLightGrey(Paragraphe("virtualbox-64.png",'{INSTALL_VBOX_TOOLS}','{INSTALL_VBOX_TOOLS_TEXT}', "javascript:Loadjs('setup.index.progress.php?product=APP_VBOXADDITIONS&start-install=yes');",null,330))."<br>"; } } $hostname=base64_decode($sock->getFrameWork("network.php?fqdn=yes")); $mustchangeHostname=false; if(preg_match("#Name or service not known#", $hostname)){$mustchangeHostname=true;} if(preg_match("#locahost\.localdomain#", $hostname)){$mustchangeHostname=true;} writelogs("hostname=$hostname mustchangeHostname=$mustchangeHostname",__FUNCTION__,__FILE__,__LINE__); if($mustchangeHostname){echo "<script>Loadjs('admin.chHostname.php');</script>";} if($users->POSTFIX_INSTALLED){ if($GLOBALS["VERBOSE"]){echo "$page -> status_postfix() LINE:".__LINE__."\n";} echo status_postfix().$script; return null; } if($GLOBALS["VERBOSE"]){echo "$page LINE:".__LINE__."\n";} $memory="<div id='mem_status_computer'>".$tpl->_ENGINE_parse_body(@file_get_contents("ressources/logs/status.memory.html"))."</div>"; if($users->SQUID_INSTALLED){ if($GLOBALS["VERBOSE"]){echo "$page LINE:".__LINE__."\n";} echo $memory.status_squid().$script; return null; } if($users->SAMBA_INSTALLED){ echo $memory.StatusSamba().$script; return null; } echo "$memory$script"; $sock=new sockets(); $sock->getFrameWork('cmd.php?ForceRefreshRight=yes'); }
function listele($sonuclar, $itemIdStrOrj) { $db =& JFactory::getOracleDBO(); if (empty($sonuclar)) { echo '<div class="sonucBulunamadi">Uygun sonuç bulunamadı.</div>'; echo '<br /><a href="index.php?option=com_meslek_std_ara' . $itemIdStrOrj . '">Geri</a>'; } else { ?> <div class="tableWrapper"> <table cellspacing="0" class="paginate-10 sortable"> <tr class="tablo_header"> <th>#</th> <!-- <th class="sortable-numeric">Standart Id</th> standart id ye gerek yok --> <th class="sortable-text">Standart Adı</th> <th class="sortable-text">Referans Kodu</th> <th class="sortable-text">Standardın Sektörü</th> <th class="sortable-text">Standardın Seviyesi</th> <th class="sortable-text">Hazırlayan Kuruluş(lar)</th> <th class="sortable-numeric">Resmi Gazete Yayım Tarihi</th> <?php if (isset($sonuclar[0]['PROFIL_GOREV_ADI'])) { echo '<th class="sortable-text">İçerdigi Görev</th>'; } ?> <th >PDF</th> </tr> <?php $user_browser = browser_detection('browser'); $rowCount = 1; $rowClass = ""; foreach ($sonuclar as $satir) { if ($rowCount % 2 == 0) { $rowClass = "even_row"; } else { $rowClass = "odd_row"; } // SON_TASLAK_PDF VARSA ONU İNDİR /* if ( sonTaslakVarMi($satir['STANDART_ID']) ){ $taslakUrl = "index.php?option=com_meslek_std_taslak&view=taslak_revizyon&task=indir&id=4&standart_id=".$satir['STANDART_ID']; } else { // YOKSA PDF ÜRET $taslakUrl = "index.php?option=com_meslek_std_taslak&layout=tum_basvuru&format=pdf&form=5&id=".getTaslakStandartEvrakId($db, $satir['STANDART_ID'])."&standart_id=".$satir['STANDART_ID']; } */ $taslakUrl = generatePDFPathForStandart($satir['STANDART_ID']); if (strripos($user_browser, 'msie') !== FALSE) { $clickHTML = 'target="_blank" href="' . $taslakUrl . '"'; } else { $clickHTML = 'onclick="window.open(\'' . $taslakUrl . '\',\'\',\'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,directories=no,location=no\');"'; } echo '<tr class="' . $rowClass . '">'; echo '<td>' . $rowCount . '</td>'; //echo '<td>'.$satir['STANDART_ID'].'</td>'; standart id ye gerek yok echo '<td>' . FormFactory::toUpperCase($satir['STANDART_ADI']) . '</td>'; echo '<td>' . $satir['STANDART_KODU'] . '</td>'; echo '<td>' . $satir['SEKTOR_ADI'] . '</td>'; echo '<td>' . $satir['SEVIYE_ADI'] . '</td>'; echo '<td align=left>' . FormFactory::toUpperCase($satir['KURULUS_ADI']) . '</td>'; echo '<td>' . ($satir['RESMI_GAZETE_TARIH'] ? $satir['RESMI_GAZETE_TARIH'] : " ") . '</td>'; if (isset($satir['PROFIL_GOREV_ADI'])) { echo '<td>' . $satir['PROFIL_GOREV_ADI'] . '</td>'; } echo '<td><a ' . $clickHTML . ' rel="nofollow" ><img alt="PDF" src="' . SITE_URL . '/templates/elegance/images/pdf_button.png" /></a></td>'; echo '</tr>'; $rowCount++; } ?> </table> </div> <a href="index.php?option=com_meslek_std_ara<?php echo $itemIdStrOrj; ?> ">Geri</a> <?php } }
break; default: unset($_GET["os"]); break; } $application = escape_string($_GET["application"]); $app_version = escape_string($_GET["version"]); $OS = escape_string($_GET["os"]); //print("$application, $app_version, $OS<br>\n"); include "browser_detection.php"; //Script that defines the browser_detection() function if (!$OS) { $OS = browser_detection('os'); } if (!$application or !$app_version) { $moz_array = browser_detection('moz_version'); } //Turn $OS into something usable. if ($moz_array[0] !== '') { switch ($OS) { case 'win': case 'nt': $OS = 'Windows'; break; case 'lin': $OS = 'Linux'; break; case 'solaris': case 'sunos': $OS = 'Solaris'; break;
function left_infos_1() { $newfrontend = false; $users = new usersMenus(); $sock = new sockets(); $tpl = new templates(); $ldap = new clladp(); if (!$users->AsArticaAdministrator) { die; } $page = CurrentPageName(); $SambaEnabled = $sock->GET_INFO("SambaEnabled"); $EnableMonit = $sock->GET_INFO("EnableMonit"); $SquidPerformance = intval($sock->GET_INFO("SquidPerformance")); if ($SquidPerformance > 2) { $EnableMonit = 0; } if (!is_numeric($EnableMonit)) { $EnableMonit = 1; } $AsCategoriesAppliance = intval($sock->GET_INFO("AsCategoriesAppliance")); if (!is_numeric($SambaEnabled)) { $SambaEnabled = 1; } if ($AsCategoriesAppliance == 1) { $SambaEnabled = 0; } $DisablePurchaseInfo = $sock->GET_INFO("DisablePurchaseInfo"); if (!is_numeric($DisablePurchaseInfo)) { $DisablePurchaseInfo = 0; } if ($EnableMonit == 1) { $ini = new Bs_IniHandler(); $ini->loadString(base64_decode($sock->getFrameWork("monit.php?status=yes"))); $running = $ini->_params["APP_MONIT"]["running"]; if (!is_numeric($running)) { $running = 0; } $cmd = urlencode($ini->_params["APP_MONIT"]["service_cmd"]); $monit_cmdline = "\n\t\t\t<table style='width:54px;float:right;margin-top:-10px;'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td width=18px>" . imgtootltip("16-run.png", "{start}", "Loadjs('system.services.cmd.php?APPNAME=APP_MONIT&action=start&cmd={$ini->_params["APP_MONIT"]["service_cmd"]}&id=&appcode=APP_MONIT')") . "</td>\n\t\t\t\t\t<td width=18px>" . imgtootltip("restart-16.png", "{restart}", "Loadjs('system.services.cmd.php?APPNAME=APP_MONIT&action=restart&cmd={$ini->_params["APP_MONIT"]["service_cmd"]}&id=&appcode=APP_MONIT')") . "</td>\n\t\t\t\t\t<td width=18px>" . imgtootltip("16-stop.png", "{stop}", "Loadjs('system.services.cmd.php?APPNAME=APP_MONIT&action=stop&cmd={$ini->_params["APP_MONIT"]["service_cmd"]}&id=&appcode=APP_MONIT')") . "</td>\n\t\t\t\t</tr>\n\t\t\t</table>"; if ($running != 1) { echo $tpl->_ENGINE_parse_body(ParagrapheTEXT("warn-red-32.png", '{APP_MONIT}', "{APP_MONIT_NOT_RUNNING_TEXT}<div style=text-align:right>{$monit_cmdline}</div>", "javascript:Loadjs('system.services.cmd.php?APPNAME=APP_MONIT&action=start&cmd=%2Fetc%2Finit.d%2Fmonit&appcode=APP_MONIT');")); } else { $text = "{running} PID: {$ini->_params["APP_MONIT"]["master_pid"]} {since} {$ini->_params["APP_MONIT"]["uptime"]}<br>{APP_MONIT_RUNNING_TEXT}"; echo $tpl->_ENGINE_parse_body(ParagrapheTEXT("ok32.png", '{APP_MONIT}', $text . "<div style=\"text-align:right\">{$monit_cmdline}</div>", "javascript:Loadjs('monit.php');", 0, true)); } } if ($DisablePurchaseInfo == 0) { echo $tpl->_ENGINE_parse_body(ParagrapheTEXT("technical-support-32.png", '{ARTICA_P_SUPPORT}', '{ARTICA_P_SUPPORT_TEXT}', "javascript:Loadjs('artica.subscription.php');")); } if (is_file("ressources/logs/status.inform.html")) { echo $tpl->_ENGINE_parse_body(@file_get_contents("ressources/logs/status.inform.html")); } if ($ldap->ldap_password == "secret") { echo ParagrapheTEXT("danger32-user-lock.png", '{MANAGER_DEFAULT_PASSWORD}', '{MANAGER_DEFAULT_PASSWORD_TEXT}', "javascript:Loadjs('artica.settings.php?js=yes&bigaccount-interface=yes');", null, 330); } if (!function_exists("browser_detection")) { include dirname(__FILE__) . '/ressources/class.browser.detection.inc'; } $browser = browser_detection(); if ($browser == "ie") { echo ParagrapheTEXT("no-ie-32.png", '{NOIEPLEASE} !!', '{NOIEPLEASE_TEXT}', "javascript:s_PopUp('http://www.mozilla-europe.org/en/firefox/','800',800);", null, 330); } if ($users->VMWARE_HOST) { if (!$users->VMWARE_TOOLS_INSTALLED) { echo ParagrapheTEXT("vmware-logo-48.png", '{INSTALL_VMWARE_TOOLS}', '{INSTALL_VMWARE_TOOLS_TEXT}', "javascript:Loadjs('VMWareTools.php');", null, 330); } } if ($GLOBALS["VERBOSE"]) { echo "{$page} LINE:" . __LINE__ . "\n"; } if ($users->VIRTUALBOX_HOST) { if (!$users->APP_VBOXADDINTION_INSTALLED) { echo ParagrapheTEXT("virtualbox-48.png", '{INSTALL_VBOX_TOOLS}', '{INSTALL_VBOX_TOOLS_TEXT}', "javascript:Loadjs('setup.index.progress.php?product=APP_VBOXADDITIONS&start-install=yes');", null, 330); } } if ($users->ZARAFA_INSTALLED) { $q = new mysql(); $ctc = $q->COUNT_ROWS("zarafa_orphaned", "artica_backup"); if ($ctc > 0) { echo ParagrapheTEXT("inbox-error-48.png", "{$ctc} {ORPHANED_STORES}", '{ORPHANED_STORES_TEXT}', "javascript:Loadjs('zarafa.orphans.php?js=yes');", null, 330); } } if (!$users->KASPERSKY_WEB_APPLIANCE) { if (!$users->SQUID_APPLIANCE) { if ($users->SAMBA_INSTALLED) { if ($SambaEnabled == 1) { if (!$users->OCSI_INSTALLED) { if ($sock->GET_INFO("DisableOCSPub") != 1) { echo ParagrapheTEXT("48-install-soft.png", "{INSTALL_OCS}", '{INSTALL_OCS_TEXT}', "javascript:Loadjs('ocs.install.php');", null, 330); } } } } } } if ($users->SQUID_INSTALLED) { if (!$users->KAV4PROXY_INSTALLED) { if ($AsCategoriesAppliance == 0) { echo ParagrapheTEXT("bigkav-48.png", "Kaspersky For Artica", '{kaspersky_pub1}', "javascript:Loadjs('artica.pubs.php?KasperskyPromo-022014-show=yes');", null, 330); } } } if (!$users->OCS_LNX_AGENT_INSTALLED) { if ($sock->GET_INFO("DisableOCSClientPub") != 1) { echo ParagrapheTEXT("48-install-soft.png", "{INSTALL_OCS}", '{INSTALL_OCS_TEXT}', "javascript:Loadjs('ocs.install.php');", null, 330); } } $t = time(); echo "\r\n<script>\r\n\t\r\n\tfunction Start{$t}(){\r\n\t if(document.getElementById('admin-left-infos')){\r\n\t \tvar leftcontent=document.getElementById('admin-left-infos').innerHTML;\r\n\t\t\tif(leftcontent.length<70){\r\n\t\t\t\tLoadAjax('admin-left-infos','admin.index.status-infos.php');\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tUnlockPage();\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\r\n\t Start{$t}();\r\n\t UnlockPage();\r\n</script>"; }
function logonForm() { include_once dirname(__FILE__) . "/ressources/class.html.tools.inc"; $sock = new sockets(); $users = new usersMenus(); $_SESSION["DisableSSHControl"] = trim($sock->GET_INFO("DisableSSHControl")); $AllowInternetUsersCreateOrg = $sock->GET_INFO("AllowInternetUsersCreateOrg"); $AddInArticaLogonFrontPage = $sock->GET_INFO("AddInArticaLogonFrontPage"); $FileCookyKey = md5($_SERVER["REMOTE_ADDR"] . $_SERVER["HTTP_USER_AGENT"]); $FileCookyLang = $sock->GET_INFO($FileCookyKey); $template = null; $html = new htmltools_inc(); $lang = $html->LanguageArray(); $MEM_LANG = $_COOKIE["artica-language"]; if ($MEM_LANG == null) { $MEM_LANG = $FileCookyLang; } if ($_GET["MEM_USERNAME"] == null) { if ($_COOKIE["mem-logon-user"] != null) { $_GET["MEM_USERNAME"] = $_COOKIE["mem-logon-user"]; } } if ($MEM_LANG == null) { $languageClass = new articaLang(); $defaultlanguage = $languageClass->get_languages(); if ($defaultlanguage == "pt") { $defaultlanguage = "po"; } if ($lang[$defaultlanguage] == null) { $defaultlanguage = "en"; } setcookie("artica-language", $defaultlanguage, time() + 172800); $sock->SET_INFO($FileCookyKey, $defaultlanguage); } else { $defaultlanguage = $MEM_LANG; } ksort($lang); $field_lang = Field_array_Hash($lang, 'lang', $defaultlanguage, "ChangeDefaultLanguage()"); $language_selector = "\n\t\t<tr>\n\t\t\t<td align='right' class=legend style='font-size:13px'><strong>{language}:</strong></td>\n\t\t\t<td>{$field_lang}</td>\n\t\t</tr>"; if ($_GET["LANGUAGE_SELECTOR_REMOVE"] == 1) { $language_selector = "<tr>\n\t\t\t<td colspan=2 style='margin:-1px;padding:-1px>\n\t\t\t<input type='hidden' name='lang' id='lang' value='{$_GET["DEFAULT_LANGUAGE"]}'></td>\n\t\t\t</tr>\n\t\t"; $_SESSION["detected_lang"] = $_GET["DEFAULT_LANGUAGE"]; unset($_SESSION["translation"]); setcookie("artica-language", $_GET["DEFAULT_LANGUAGE"], time() + 172800); $sock->SET_INFO($FileCookyKey, $_GET["DEFAULT_LANGUAGE"]); } $contour_color = "#005447"; if ($users->KASPERSKY_WEB_APPLIANCE) { $template = "<input type='hidden' id='template' value='Kav4Proxy'>"; } if ($users->MYCOSI_APPLIANCE) { $contour_color = "#FFB683"; $template = "<input type='hidden' id='template' value='myCosi'>"; $changename = "<input type='hidden' id='change-artica-name' value='MyCosi'>"; } if ($AllowInternetUsersCreateOrg == 1) { if ($AddInArticaLogonFrontPage == 1) { $addon = "\n\t\t<div>\n\t\t<a href=\"miniadm.register.php\" style='font-size:11px'>{register}</a> | <a href=\"miniadm.php\" style='font-size:11px'>{organization_administrator}</a>\n\t\t</div>"; } } if (!function_exists('ldap_connect')) { $ldap_error = "\n\t<div style='border:3px solid red;font-size:16px;color:red;padding:5px;width:220px;position:absolute;left:0;top:0;background-color:white'>\n\t\t<center>Error ldap_connect() try to restart the web service<br><br>or check if php5-ldap is installed\n\t\t<br>And restart web server</center>\n\t\t<center>\n\t\t<form name='FF1' method='POST' action='{$page}'>\n\t\t<input type='hidden' name='php5-ldap-restart' value='1'>\n\t\t<input type='submit' value=' Restart The web service '>\n\t\t</form>\n\t\t</center>\n\t</div>\n\t"; } if (!function_exists("posix_getuid")) { $ldap_error = $ldap_error . "\n\t<div style='border:3px solid red;font-size:16px;color:red;padding:5px;width:220px;position:absolute;left:250px;top:0;background-color:white'>\n\tArtica-postfix need <strong>posix «posix_getuid()»</strong> function <BR>... please try to install php-posix\n\t</div>"; } if (!function_exists('mysql_connect')) { $ldap_error = $ldap_error . "\n\t<div style='border:3px solid red;font-size:16px;color:red;padding:5px;width:220px;position:absolute;left:500px;top:0;background-color:white'>\n\tArtica-postfix need <strong> «mysql_connect()»</strong> function <BR>... please try to install php-mysql\n\t</div>"; } $browser = browser_detection(); if ($browser == "ie") { $ldap_error = $ldap_error . "\n\t\t<div style='border:3px solid red;font-size:16px;color:red;padding:5px;width:220px;position:absolute;left:200px;top:50;background-color:white'>\n\t\t{NOIEPLEASE_TEXT}<br>\n\t\t<p style='font-size:12px;text-align:left'>\n\t\t<i>{error_no_ie_text}</i></p></div><br>"; } $html = "<div id='loginform'>\n<center>\n<div style='color:red;font-size:13px;font-weight:bold;width:70%;\nfont-family:Helvetica,Tahoma,Verdana,sans-serif'>{$_GET["ERROR"]}</div>\n</center>\n<H1 style='text-align:left'>{logon}</h1>\n<form name='logon_{$_SERVER["SERVER_NAME"]}' method='POST'>\n\t\t\t\t<table style='width:50%;border:3px solid {$contour_color};margin:5px;padding:5px;'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='right' class=legend style='font-size:13px'><strong>{username}:</strong></td>\n\t\t\t\t\t<td><input type='text' id='artica_username' name='artica_username' value='{$_GET["MEM_USERNAME"]}' \n\t\t\t\t\tstyle='border:1px solid black;width:100%;font-size:13px'\n\t\t\t\t\tOnkeyPress=\"javascript:SendLogon(event)\"></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='right' class=legend style='font-size:13px'><strong>{password}:</strong></td>\n\t\t\t\t\t<td><input type='password' id='artica_password' name='artica_password' \n\t\t\t\t\tvalue='{$_GET["MEM_PASSWORD"]}' style='border:1px solid black;width:100%;font-size:13px'\n\t\t\t\t\tOnkeyPress=\"javascript:SendLogon(event)\"></td>\n\t\t\t\t</tr>\n\t\t\t\t{$language_selector}\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=2 align='right' ><br>\n\t\t\t\t\t<input type='button' value='{logon} »' OnClick=\"javascript:SendLogonStart();\" OnkeyPress=\"javascript:SendLogon(event)\">\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr><td colspan=2 align='right'>{$addon}</td>\n\t\t\t\t<tr>\n\t\t\t\t<td colspan=2 align='right' style='padding-top:10px'><span id='anim'></span></td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\t\n\t\n</div>{$template}{$changename}\n{$ldap_error}\n\t\n{$script}\n\n"; return $html; }
<?php // no direct access defined('_JEXEC') or die('Restricted access'); // qualche trick per i browser require 'components/com_gglms/models/libs/utils/browser_detection.php'; $browser = browser_detection('browser_name'); $mobile = browser_detection('mobile_test'); switch ($browser) { case 'opera': $video_params = 'preload="none"'; break; default: $video_params = 'preload="auto"'; } switch ($mobile) { case 'android': $video_params .= ' autoplay'; break; default: $video_params .= ''; } $id_contenuto = $this->contents[$this->active_content_idx]['id']; $path = 'mediatv/_contenuti/' . $id_contenuto . '/'; ?> <script type="text/javascript">var switchTo5x=true;</script> <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script> <script type="text/javascript">stLight.options({publisher: "ur-ebfab26a-f289-1387-4415-c51328a72c49"});</script> <script type="text/javascript">
function getComputerInfo($useragent) { $os = ''; $os_starter = 'Operating System: '; $full = ''; $handheld = ''; $tablet = ''; // change this to match your include path/and file name you give the script $browser_info = browser_detection('full', '', $useragent); // $mobile_device, $mobile_browser, $mobile_browser_number, $mobile_os, $mobile_os_number, $mobile_server, $mobile_server_number if ($browser_info[8] == 'mobile') { $handheld = 'Handheld Device: '; if ($browser_info[13][8]) { if ($browser_info[13][0]) { $tablet = ' (tablet)'; } else { $handheld .= ucwords($browser_info[13][8]) . ' Tablet'; } } if ($browser_info[13][0]) { $handheld .= 'Type: ' . ucwords($browser_info[13][0]); if ($browser_info[13][7]) { $handheld = $handheld . ' v: ' . $browser_info[13][7]; } $handheld = $handheld . $tablet . ' '; } if ($browser_info[13][3]) { // detection is actually for cpu os here, so need to make it show what is expected if ($browser_info[13][3] == 'cpu os') { $browser_info[13][3] = 'ipad os'; } $handheld .= 'OS: ' . ucwords($browser_info[13][3]) . ' ' . $browser_info[13][4] . ' '; // don't write out the OS part for regular detection if it's null if (!$browser_info[5]) { $os_starter = ''; } } // let people know OS couldn't be figured out if (!$browser_info[5] && $os_starter) { $os_starter .= 'OS: N/A'; } if ($browser_info[13][1]) { $handheld .= 'Browser: ' . ucwords($browser_info[13][1]) . ' ' . $browser_info[13][2] . ' '; } if ($browser_info[13][5]) { $handheld .= 'Server: ' . ucwords($browser_info[13][5] . ' ' . $browser_info[13][6]) . ' '; } } switch ($browser_info[5]) { case 'win': $os .= 'Windows '; break; case 'nt': $os .= 'Windows NT '; break; case 'lin': $os .= 'Linux '; break; case 'mac': $os .= 'Mac '; break; case 'iphone': $os .= 'Mac '; break; case 'unix': $os .= 'Unix Version: '; break; default: $os .= $browser_info[5]; } if ($browser_info[5] == 'nt') { if ($browser_info[5] == 'nt') { switch ($browser_info[6]) { case '5.0': $os = 'Windows 2000'; break; case '5.1': $os = 'Windows XP'; break; case '5.2': $os = 'Windows XP x64 Edition or Windows Server 2003'; break; case '6.0': $os = 'Windows Vista'; break; case '6.1': $os = 'Windows 7'; break; case '6.2': $os = 'Windows 8'; break; case '6.3': $os = 'Windows 8.1'; break; case 'ce': $os .= 'CE'; break; # note: browser detection 5.4.5 and later return always # the nt number in <number>.<number> format, so can use it # safely. # note: browser detection 5.4.5 and later return always # the nt number in <number>.<number> format, so can use it # safely. default: if ($browser_info[6] != '') { $os .= $browser_info[6]; } else { $os .= '(version unknown)'; } break; } } } elseif ($browser_info[5] == 'iphone') { $os .= 'OS X (iPhone)'; } elseif ($browser_info[5] == 'mac' && strstr($browser_info[6], '10')) { $os .= 'OS X v: ' . $browser_info[6]; } elseif ($browser_info[5] == 'lin') { $os .= $browser_info[6] != '' ? 'Distro: ' . ucwords($browser_info[6]) : ''; } elseif ($browser_info[5] && $browser_info[6]) { $os .= " " . ucwords($browser_info[6]); } elseif ($browser_info[5] && $browser_info[6] == '') { $os .= ' (version unknown)'; } elseif ($browser_info[5]) { $os .= ucwords($browser_info[5]); } $os = $os_starter . $os; $full .= $handheld . $os . ' Browser: '; switch ($browser_info[0]) { case 'moz': $a_temp = $browser_info[10]; // use the moz array $full .= $a_temp[0] != 'mozilla' ? 'Mozilla/ ' . ucwords($a_temp[0]) . ' ' : ucwords($a_temp[0]) . ' '; $full .= $a_temp[1] . ' '; $full .= 'ProductSub: '; $full .= $a_temp[4] != '' ? $a_temp[4] : 'Not Available'; break; case 'ns': $full .= 'Netscape '; $full .= 'Full Version Info: ' . $browser_info[1]; break; case 'webkit': $a_temp = $browser_info[11]; // use the webkit array $full .= ucwords($a_temp[0]) . ' ' . $a_temp[1]; break; case 'ie': $full .= 'User Agent: '; $full .= strtoupper($browser_info[7]); // $browser_info[14] will only be set if $browser_info[1] is also set if ($browser_info[14]) { if ($browser_info[14] != $browser_info[1]) { $full .= ' (compatibility mode)'; $full .= ' Actual Version: ' . number_format($browser_info[14], '1', '.', ''); $full .= ' Compatibility Version: ' . $browser_info[1]; } else { if (is_numeric($browser_info[1]) && $browser_info[1] < 11) { $full .= ' (standard mode)'; } $full .= ' Full Version Info: ' . $browser_info[1]; } } else { $full .= ' Full Version Info: '; $full .= $browser_info[1] ? $browser_info[1] : 'Not Available'; } break; default: $full .= 'User Agent: '; $full .= ucwords($browser_info[7]); $full .= ' Full Version Info: '; $full .= $browser_info[1] ? $browser_info[1] : 'Not Available'; break; } if ($browser_info[1] != $browser_info[9]) { $full .= ' Primary Version: ' . $browser_info[9]; } return $full; }