/** * Load values from config * * @access private */ private function loadValues() { if (function_exists('CheckAuthentication')) { $this->_isEnabled = CheckAuthentication(); } if (isset($GLOBALS['config']['LicenseName'])) { $this->_licenseName = (string) $GLOBALS['config']['LicenseName']; } if (isset($GLOBALS['config']['LicenseKey'])) { $this->_licenseKey = (string) $GLOBALS['config']['LicenseKey']; } if (isset($GLOBALS['config']['FilesystemEncoding'])) { $this->_filesystemEncoding = (string) $GLOBALS['config']['FilesystemEncoding']; } if (isset($GLOBALS['config']['RoleSessionVar'])) { $this->_roleSessionVar = (string) $GLOBALS['config']['RoleSessionVar']; } if (isset($GLOBALS['config']['CheckDoubleExtension'])) { $this->_checkDoubleExtension = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['CheckDoubleExtension']); } if (isset($GLOBALS['config']['DisallowUnsafeCharacters'])) { $this->_disallowUnsafeCharacters = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['DisallowUnsafeCharacters']); } if (isset($GLOBALS['config']['SecureImageUploads'])) { $this->_secureImageUploads = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['SecureImageUploads']); } if (isset($GLOBALS['config']['CheckSizeAfterScaling'])) { $this->_checkSizeAfterScaling = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['CheckSizeAfterScaling']); } if (isset($GLOBALS['config']['ForceAscii'])) { $this->_forceAscii = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['ForceAscii']); } if (isset($GLOBALS['config']['HtmlExtensions'])) { $this->_htmlExtensions = (array) $GLOBALS['config']['HtmlExtensions']; } if (isset($GLOBALS['config']['HideFolders'])) { $this->_hideFolders = (array) $GLOBALS['config']['HideFolders']; } if (isset($GLOBALS['config']['HideFiles'])) { $this->_hideFiles = (array) $GLOBALS['config']['HideFiles']; } if (isset($GLOBALS['config']['ChmodFiles'])) { $this->_chmodFiles = $GLOBALS['config']['ChmodFiles']; } if (isset($GLOBALS['config']['ChmodFolders'])) { $this->_chmodFolders = $GLOBALS['config']['ChmodFolders']; } if (isset($GLOBALS['config']['DefaultResourceTypes'])) { $_defaultResourceTypes = (string) $GLOBALS['config']['DefaultResourceTypes']; if (strlen($_defaultResourceTypes)) { $this->_defaultResourceTypes = explode(",", $_defaultResourceTypes); } } if (isset($GLOBALS['config']['TempDirectory'])) { $this->_tempDirectory = $GLOBALS['config']['TempDirectory']; } if (isset($GLOBALS['config']['XSendfile'])) { $this->_xsendfile = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['XSendfile']); } if (isset($GLOBALS['config']['XSendfileNginx'])) { $this->_xsendfileNginx = (array) $GLOBALS['config']['XSendfileNginx']; } }
<?php /* Lihat Hasl Upload Data DIPA update terakhir tgl. 04-02-2009 Ana update terakhir tgl. .............. -abrarhedar- ------------------------------------------------------ */ session_start(); include "../lib/sambung.php"; include "../lib/sipl.php"; CheckAuthentication(); $kdunit = $_SESSION[kdunit]; $sktunit = strtolower(sktunitkerja($kdunit, $ta)); $ta = $_SESSION[ta]; $filedata = '../DataDipa/' . $sktunit . '/d_item.dbf'; if (file_exists($filedata)) { echo 'file ' . $filedata . ' ada'; $data = dbase_open($filedata, 2); dbase_pack($data); $jml = dbase_numrecords($data); $vdataawal = dbase_get_record_with_names($data, 1); $tahun = $vdataawal["THANG"]; $kodesatker = $vdataawal["KDSATKER"]; //dbase_pack($data); $kdsatkerunit = kdsatker($kdunit); echo 'tahun anggaran ' . $tahun . ' satker data ' . $kodesatker; echo 'kode unit ' . $kdunit . ' satker unit ' . $kdsatkerunit; if ($_REQUEST['ok']) { mysql_query("delete from d_item where ThAng='{$ta}' and kdsatker='{$kdsatkerunit}' "); $i = 0;
/** * Load values from config * * @access private */ function loadValues() { if (function_exists('CheckAuthentication')) { $this->_isEnabled = CheckAuthentication(); } if (isset($GLOBALS['config']['FilesystemEncoding'])) { $this->_filesystemEncoding = (string) $GLOBALS['config']['FilesystemEncoding']; } if (isset($GLOBALS['config']['CheckDoubleExtension'])) { $this->_checkDoubleExtension = CKEditor_Connector_Utils_Misc::booleanValue($GLOBALS['config']['CheckDoubleExtension']); } if (isset($GLOBALS['config']['SecureImageUploads'])) { $this->_secureImageUploads = CKEditor_Connector_Utils_Misc::booleanValue($GLOBALS['config']['SecureImageUploads']); } if (isset($GLOBALS['config']['HtmlExtensions'])) { $this->_htmlExtensions = (array) $GLOBALS['config']['HtmlExtensions']; } if (isset($GLOBALS['config']['ChmodFiles'])) { $this->_chmodFiles = $GLOBALS['config']['ChmodFiles']; } if (isset($GLOBALS['config']['ChmodFolders'])) { $this->_chmodFolders = $GLOBALS['config']['ChmodFolders']; } if (isset($GLOBALS['config']['DefaultResourceTypes'])) { $_defaultResourceTypes = (string) $GLOBALS['config']['DefaultResourceTypes']; if (strlen($_defaultResourceTypes)) { $this->_defaultResourceTypes = explode(",", $_defaultResourceTypes); } } }
die("The CMS integration service for -drupal- requires KCFinder to be properly placed inside your Drupal installation."); } // bootstrap require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); // if user has access permission... if (user_access('access kcfinder')) { if (!isset($_SESSION['KCFINDER'])) { $_SESSION['KCFINDER'] = array(); $_SESSION['KCFINDER']['disabled'] = false; } // User has permission, so make sure KCFinder is not disabled! if (!isset($_SESSION['KCFINDER']['disabled'])) { $_SESSION['KCFINDER']['disabled'] = false; } global $user; $_SESSION['KCFINDER']['uploadURL'] = strtr(variable_get('kcfinder_upload_url', 'sites/default/files/kcfinder'), array('%u' => $user->uid, '%n' => $user->name)); $_SESSION['KCFINDER']['uploadDir'] = strtr(variable_get('kcfinder_upload_dir', ''), array('%u' => $user->uid, '%n' => $user->name)); $_SESSION['KCFINDER']['theme'] = variable_get('kcfinder_theme', 'oxygen'); //echo '<br />uploadURL: ' . $_SESSION['KCFINDER']['uploadURL']<br />; //echo '<br />uploadDir: ' . $_SESSION['KCFINDER']['uploadDir']<br />; chdir($current_cwd); return true; } chdir($current_cwd); return false; } } } CheckAuthentication(get_drupal_path());
$fck_cwd = getcwd(); chdir($drupal_path); require_once './includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); $authenticated = user_access('allow fckeditor file uploads'); if (isset($_SESSION['FCKeditor']['UserFilesPath'], $_SESSION['FCKeditor']['UserFilesAbsolutePath'])) { $GLOBALS['fck_user_files_path'] = $_SESSION['FCKeditor']['UserFilesPath']; $GLOBALS['fck_user_files_absolute_path'] = $_SESSION['FCKeditor']['UserFilesAbsolutePath']; } chdir($fck_cwd); } } return $authenticated; } /** * Note: * Although in FCKeditor 2.5 $Config['Enabled'] is not used anymore, * CheckAuthentication() must be called once to initialize session * before sending any content * Static $authenticated variable is being assigned, so * application performance is not affected */ $Config['Enabled'] = CheckAuthentication(); if (!empty($fck_user_files_path)) { $Config['UserFilesPath'] = $fck_user_files_path; $Config['UserFilesAbsolutePath'] = $fck_user_files_absolute_path; } else { // Nothing in session? Shouldn't happen... anyway let's try to upload it in the (almost) right place // Path to user files relative to the document root. $Config['UserFilesPath'] = strtr(base_path(), array('/modules/fckeditor/fckeditor/editor/filemanager/connectors/php' => '', '/modules/fckeditor/fckeditor/editor/filemanager/browser/default/connectors/php' => '', '/modules/fckeditor/fckeditor/editor/filemanager/upload/php' => '')) . file_directory_path() . '/'; }
<?php include_once 'inc/auth.php'; CheckAuthentication(false); include_once 'inc/utils.php'; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href="favicon.ico"> <title>LoL Statbot - Login</title> <!-- Bootstrap core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- Custom styles for this template --> <link href="login.css" rel="stylesheet"> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]-->