function iTextSrc($d='',$v='',$s='',$p='',$act='',$cb='',$at=''){ $bc=""; $bc2=""; $lang=admin_getLang(); if($cb!=""){$n=preg_match("/onblur=\".+\"/", $cb,$m); if($n>0){ $bc=str_replace("\"","",$m[0]); $bc=";".str_replace("onblur=","",$bc); $cb=str_replace($m[0],"",$cb); }} if($cb!=""){$n=preg_match("/onfocus=\".+\"/", $cb,$m); if($n>0){ $bc2=str_replace("\"","",$m[0]); $bc2=";".str_replace("onfocus=","",$bc2); $cb=str_replace($m[0],"",$cb); }} if(is_array($v)) $v=$v[$d]; $v=str_replace('"',"''",$v); $v=str_replace("\\","",$v); $sx=explode("~",$s); $s1=$sx[0]; if(count($sx)>1)$s2=$sx[1]; else $s2=""; if($lang=='en') $lbl='Find'; else $lbl='Cari'; return "<div style=\"".($s1==''?'float:left':$s1)."\"><input type=\"text\" class=\"iText\"".(($d=="")?"":" id=\"".$d."\" name=\"".$d."\" ")." style=\"".($s2==''?'':$s2.';')."float:left;border-radius:3px 0px 0px 3px\" ".(($v=="")?"":" value=\"".$v."\" ").(($p=="")?"":" placeholder=\"".$p."\" ").($cb==""?"":" ".$cb." ").($at==""?"":" ".$at." ")."onfocus=\"this.className='iTextx'".$bc2."\" onblur=\"this.className='iText'".$bc."\"/><button class=\"btn\" style=\"border-radius:0px 3px 3px 0px;border-left:none\" title=\"".$lbl."\" onclick=\"".$act."\" style=\"float:left\"><div class=\"bi_srcb\"> </div></button></div>"; }
function app_page_view() { $lang = admin_getLang(); $p = gpost('page'); if ($lang == 'en') { $fpage = VWDIR . 'en/' . $p . '.php'; //log_print($fpage); if (file_exists($fpage)) { notifbox(); require_once $fpage; } else { echo '<div class="warnbox">Page is currently not available.</div>'; } } else { $fpage = VWDIR . $p . '.php'; //log_print($fpage); if (file_exists($fpage)) { notifbox(); require_once $fpage; } else { echo '<div class="warnbox">Halaman belum tersedia.</div>'; } } //log_print('common: fpage='.$fpage); }
function fphoto($d = 0, $f = '$', $w = 168, $h = 224, $r = 'w') { $lang = admin_getLang(); if ($lang == 'en') { $lbl = 'Image'; } else { $lbl = 'Foto'; } echo '<div class="xrowl">'; $this->photof($d, $f, $w, $h, $r); echo '</div>'; echo '<div class="xrowl">'; echo '<div class="xlabel" style="width:60px">' . $lbl . ':</div>'; echo '<input type="hidden" id="photo" name="photo" value=""/>'; echo '<div style="float:left;position:relative">'; echo '<iframe id="imgframe" name="imgframe" scrolling="no" style="float:left;border:none;height:25px;width:230px;overflow:hidden;margin:0;padding:0;" src="trform.php?ow=' . $w . '&oh=' . $h . '&rel=' . $r . '"></iframe>'; echo '</div>'; echo '</div>'; }
<?php session_start(); // System files require_once '../shared/config.php'; require_once 'system/config.php'; require_once DBFILE; require_once LIBDIR . 'common.php'; // XMLHTTP Request $q = gpost('x'); if ($q != "") { if ($q == '_apps') { require_once SHAREDDIR . 'apps.php'; } else { $lang = admin_getLang(); if ($lang == 'id') { $lang = ''; } require_once APPDIR . ($lang == '' ? '' : $lang . '/') . $q . '.php'; } }