SINTAP Bantaeng - Sistem Pelayanan Perizinan Satu Atap Kab. Bantaeng
 
Home arrow ADMINISTRATIF
Admin Tools
Aplikasi
 
load($Itemid); # Check for Mamblefish and use translated Menuname instead if( $mosConfig_mbf_content ) { $mname = MambelFish::translate( $mname, 'menu', $mosConfig_lang); } $menuname = $mname->name; # $menuname = $mname->administratif_nama_author; echo ""; echo ""; echo "
$menuname
"; if ($viewlink) { # echo "bullets "._ADMINISTRATIF_VIEW.""; echo "bullets "._ADMINISTRATIF_VIEW.""; } elseif ($fr_allowentry) { # echo "bullets "._ADMINISTRATIF_SIGN.""; echo "bullets "._ADMINISTRATIF_SIGN.""; } echo "
"; return; } function ADMINISTRATIFFooter() { global $administratif_version; # STOP! THE REMOVAL OF THE POWERED BY LINE IS NOT ALLOWED. # IF YOU WANT TO REMOVE IT, CONTACT ME AT www.konze.de FOR DETAILS! echo "
Powered by ADMINISTRATIF - LPTSA KAB. BANTAENG $administratif_version
"; return; } function is_email($email){ $rBool=false; if(preg_match("/[\w\.\-]+@\w+[\w\.\-]*?\.\w{1,4}/", $email)) { $rBool=true; } return $rBool; } function textwrap($text, $width = 75) { if ($text) return preg_replace("/([^\n\r ?&\.\/<>\"\\-]{".$width."})/i"," \\1\n",$text); } # Check if ADMINISTRATIF is offline if ($fr_offline == 1) { require($mosConfig_absolute_path."/components/com_administratif/offline.php"); } else { # Get the right language if it exists if (file_exists($mosConfig_absolute_path.'/components/com_administratif/languages/'.$mosConfig_lang.'.php')) { include($mosConfig_absolute_path.'/components/com_administratif/languages/'.$mosConfig_lang.'.php'); } else { include($mosConfig_absolute_path.'/components/com_administratif/languages/english.php'); } # Check for Editor rights $is_administrator = (strtolower($my->usertype) == 'manager' || strtolower($my->usertype) == 'administrator' || strtolower($my->usertype) == 'super administrator' ); $is_editor = (strtolower($my->usertype) == 'editor' || strtolower($my->usertype) == 'publisher'); $is_user = (strtolower($my->usertype) <> ''); switch ($func) { ######################################################################################### case 'ubah': # $data=$HTTP_POST_VARS; # ADMINISTRATIFHeader(true); include('components/com_administratif/sub_writeentry0.php'); break; ######################################################################################### case 'ubah_0': # $data=$HTTP_POST_VARS; # ADMINISTRATIFHeader(true); include('components/com_administratif/sub_writeentry.php'); break; ######################################################################################### case 'entry0a': # Clear any HTML $kode_kec = strip_tags($kode_kec); $nama_desa = strip_tags($nama_desa); $nama_kep_des_lur = strip_tags($nama_kep_des_lur); $kode_jabatan = strip_tags($kode_jabatan); # Clear dangerous sql injections $kode_kec = mysql_escape_string($kode_kec); $nama_desa = mysql_escape_string($nama_desa); $nama_kep_des_lur = mysql_escape_string($nama_kep_des_lur); $kode_jabatan = mysql_escape_string($kode_jabatan); # Check if entry was edited by administrator if (($is_administrator) AND ($kode_desa)) { $query1 = "UPDATE #__desa SET kode_kec = '$kode_kec', nama_desa = '$nama_desa', "; $query1.= "nama_kep_des_lur = '$nama_kep_des_lur', kode_jabatan = '$kode_jabatan' WHERE kode_desa='$kode_desa' "; $database->setQuery( $query1 ); $database->query(); echo ""; } else { $administratif_ip = getenv('REMOTE_ADDR'); $query2 = "UPDATE #__desa SET kode_kec = '$kode_kec', nama_desa = '$nama_desa', "; $query2.= "nama_kep_des_lur = '$nama_kep_des_lur', kode_jabatan = '$kode_jabatan' "; if ($fr_autopublish) { $query2 .= ", published='1'"; } $database->setQuery( $query2 ); $database->query(); if ($fr_notify AND is_email($fr_notify_email) ) { $entry_mailtext = _ADMINISTRATIF_ADMINMAIL."\r\n\r\nNama: ".$entry_nama_author."\r\nText: ".$entry_text."\r\n\r\n"._ADMINISTRATIF_MAILFOOTER; mail($fr_notify_email,_ADMINISTRATIF_ADMINMAILHEADER,$entry_mailtext,"From: ".$fr_notify_email); } if ($fr_thankuser AND is_email($entry_mail) ) { $entry_mailtext = _ADMINISTRATIF_USERMAIL."\r\n\r\nNama: ".$entry_nama_author."\r\nText: ".$entry_text."\r\n\r\n"._ADMINISTRATIF_MAILFOOTER; mail($entry_mail,_ADMINISTRATIF_USERMAILHEADER,$entry_mailtext,"From: ".$fr_notify_email); } echo ""; } break; ######################################################################################### case 'entry': # $data=$HTTP_POST_VARS; # Clear any HTML # $kode = strip_tags($kode); $nama = strip_tags($nama); $nama_camat = strip_tags($nama_camat); # Clear dangerous sql injections # $kode = mysql_escape_string($kode); $nama = mysql_escape_string($nama); $nama_camat = mysql_escape_string($nama_camat); # Check if entry was edited by editor if (($is_administrator) AND ($kode)) { $query1 = "UPDATE #__kecamatan SET nama = '$nama', "; $query1.= "nama_camat = '$nama_camat' WHERE kode='$kode' "; $database->setQuery( $query1 ); $database->query(); echo ""; } else { $administratif_ip = getenv('REMOTE_ADDR'); $query2 = "INSERT INTO #__kecamatan SET kode = '$kode', "; $query2.= "nama = '$nama', nama_camat = '$nama_camat' "; if ($fr_autopublish) { $query2 .= ", published='1'"; } $database->setQuery( $query2 ); $database->query(); if ($fr_notify AND is_email($fr_notify_email) ) { $entry_mailtext = _ADMINISTRATIF_ADMINMAIL."\r\n\r\nNama: ".$entry_nama_author."\r\nText: ".$entry_text."\r\n\r\n"._ADMINISTRATIF_MAILFOOTER; mail($fr_notify_email,_ADMINISTRATIF_ADMINMAILHEADER,$entry_mailtext,"From: ".$fr_notify_email); } if ($fr_thankuser AND is_email($entry_mail) ) { $entry_mailtext = _ADMINISTRATIF_USERMAIL."\r\n\r\nNama: ".$entry_nama_author."\r\nText: ".$entry_text."\r\n\r\n"._ADMINISTRATIF_MAILFOOTER; mail($entry_mail,_ADMINISTRATIF_USERMAILHEADER,$entry_mailtext,"From: ".$fr_notify_email); } echo ""; } break; ######################################################################################### ######################################################################################### case 'show': ADMINISTRATIFHeader(true); $content=include('components/com_administratif/sub_showentry1.php'); break; ######################################################################################### default: # ADMINISTRATIFHeader(false); # ADEMINISTRATIFHeader(true); $content=include('components/com_administratif/sub_showentry0.php'); break; } ADMINISTRATIFFooter(); # Close Offline Tag } ?>
 
 
 
Sabtu,  21 Oktober, 2017   02:26:54 WITA
up!