function testArgs() { global $status; $CUSTOM = custom::instance(); $dspaceBatch = $CUSTOM->getDspaceBatch(); $ingestLoc = $CUSTOM->getIngestLoc(); if (count($_FILES) == 0) { $status = ""; return; } if ($_FILES["metadata"]["error"]) { $name = isset($_FILES["metadata"]["tmp_name"]) ? $_FILES["metadata"]["tmp_name"] : $_FILES["metadata"]["name"]; $status = "File upload error: " . $_FILES["metadata"]["error"] . " on file " . $name; return; } $run = util::getPostArg("preview", "") == "" ? "-s" : ""; $temp = $ingestLoc . $_FILES["metadata"]["name"]; move_uploaded_file($_FILES["metadata"]["tmp_name"], $temp); $temp = escapeshellarg($temp); $user = escapeshellarg($CUSTOM->getCurrentUserEmail()); $u = escapeshellarg($CUSTOM->getCurrentUser()); $cmd = <<<HERE {$u} metadata-import -f {$temp} -e {$user} {$run} HERE; //echo($dspaceBatch . " " .$cmd); exec($dspaceBatch . " " . $cmd); header("Location: ../web/queue.php"); }
public function litHeaderAuth($arr, $hasPerm) { $CUSTOM = custom::instance(); $WEBROOT = $CUSTOM->getWebRoot(); $sysname = $CUSTOM->getSystemName(); echo <<<HERE \t\t<div class="breadcrumb"> \t\t <a href="{$WEBROOT}/web/index.php">{$sysname}</a> > HERE; foreach ($arr as $a) { echo "{$a} >"; } echo <<<HERE \t\t {$this->title} [{$CUSTOM->getCurrentUser()}] \t\t</div> \t\t<hr/> \t\t<h1 align="center">{$this->title}</h1> HERE; if (!$hasPerm) { echo "<h2 class='guperm'>You do not have permission to access this page.</h2>"; $this->litFooter(); exit; } }
function testArgs() { global $status; $CUSTOM = custom::instance(); $root = $CUSTOM->getRoot(); $dspaceBatch = $CUSTOM->getDspaceBatch(); if (count($_POST) == 0) { return; } $u = escapeshellarg($CUSTOM->getCurrentUser()); $cmd = <<<HERE {$u} gu-clean-oai-cache HERE; exec($dspaceBatch . " " . $cmd); header("Location: ../web/queue.php"); }
function testArgs() { global $status; $CUSTOM = custom::instance(); $dspaceBatch = $CUSTOM->getDspaceBatch(); $bgindicator = $CUSTOM->getBgindicator(); if (count($_POST) == 0) { return; } $coll = util::getPostArg("coll", ""); $comm = util::getPostArg("comm", ""); if (is_numeric($coll)) { $coll = intval($coll); if (!isset(collection::$COLLECTIONS[$coll])) { $status = "collection not found"; return; } $args = "coll " . $coll; } else { if (is_numeric($comm)) { $comm = intval($comm); if (!isset(community::$COMMUNITIES[$comm])) { $status = "Community not found"; return; } $args = "comm " . $comm; } else { $status = "A valid collection or community must be selected"; return; } } $u = escapeshellarg($CUSTOM->getCurrentUser()); $cmd = <<<HERE {$u} gu-reindex {$args} HERE; //echo($dspaceBatch . " " . $cmd); exec($dspaceBatch . " " . $cmd . " " . $bgindicator); header("Location: ../web/queue.php"); }
if ($fpt == FALSE) { die(show_error1() . ' Show Error 1'); } else { unlink($dummyFile); } fclose($fpt); $date_time = date("m-d-Y"); $Export_FileName = $mysql_database . '_' . $date_time . '.sql'; $myFile = "UpgradeInc.sql"; executeSQL($myFile); exec("mysqldump -n -t -c --skip-add-locks --skip-disable-keys --skip-triggers --user {$dbUser} --password='******' {$mysql_database} > {$Export_FileName}"); $res_student_field = 'SHOW COLUMNS FROM ' . table_to_upper('students', $version) . ' WHERE FIELD LIKE "CUSTOM_%"'; $objCustomStudents = new custom($mysql_database); $objCustomStudents->set($res_student_field, 'students'); $res_staff_field = 'SHOW COLUMNS FROM ' . table_to_upper('staff', $version) . ' WHERE FIELD LIKE "CUSTOM_%"'; $objCustomStaff = new custom($mysql_database); $objCustomStaff->set($res_staff_field, 'staff'); mysql_query("drop database {$mysql_database}"); mysql_query("CREATE DATABASE {$mysql_database} CHARACTER SET utf8 COLLATE utf8_general_ci"); mysql_select_db($mysql_database); $myFile = "OpensisSchemaMysqlInc.sql"; executeSQL($myFile); //execute custome field for student foreach ($objCustomStudents->customQueryString as $query) { mysql_query($query); } //execute custome field for satff foreach ($objCustomStaff->customQueryString as $query) { mysql_query($query); } $myFile = "OpensisProcsMysqlInc.sql";
<?php require "../../../libraries/start.php"; require $dir_libraries . "pagination.php"; $pagination = new pagination(); require $dir_libraries . "date.php"; $date = new date(); require $dir_libraries . "custom.php"; $custom = new custom(); require $dir_libraries . "dropdown.php"; $dropdown = new dropdown(); require $dir_libraries . "form.php"; $form = new form(); if (isset($_POST['cari'])) { $nama = $_POST['nama']; $jenis = $_POST['jenis']; } else { $nama = ''; $jenis = ''; } ?> <!DOCTYPE html> <html lang="en"> <head> <?php include $dir_subviews . "bs_meta.php"; ?> <?php include $dir_subviews . "bs_css.php"; ?> </head>
<?php include "../../libraries/start.php"; require $dir_libraries . "pagination.php"; $pagination = new pagination(); require $dir_libraries . "form.php"; $form = new form(); require $dir_libraries . "date.php"; $date = new date(); require $dir_libraries . "custom.php"; $custom = new custom(); if (isset($_POST['cari'])) { $nama = $_POST['nama']; } else { $nama = ''; } ?> <!DOCTYPE html> <html lang="en"> <head> <?php include $dir_subviews . "bs_meta.php"; ?> <?php include $dir_subviews . "bs_css.php"; ?> </head> <body>
if ($entry != "." && $entry != ".." && $entry != ".empty") { if (strpos($entry, '.') === 0 && strpos($entry, '+') === false && strpos($entry, '*') === false) { // Also check that there were at least 2 minutes from creation date if ($entry != '.postback_' . date('Y-m-d-H-i', strtotime('-1 minutes')) && $entry != '.postback_' . date('Y-m-d-H-i')) { $arr_files[] = $entry; } } } } closedir($handle); } if (count($arr_files) == 0) { exit; } //Если есть что обрабатывать инициализируем класс собственных правил (custom) $custom = new custom(); foreach ($arr_files as $cur_file) { $file_name = _CACHE_PATH . "/postback/{$cur_file}+"; rename(_CACHE_PATH . "/postback/{$cur_file}", $file_name); $conversions = file($file_name); foreach ($conversions as $conv) { $data = unserialize($conv); $network = isset($data['get']['n']) ? $data['get']['n'] : (isset($data['post']['n']) ? $data['post']['n'] : ''); if (empty($network) || $network == 'custom' || !file_exists(_TRACK_LIB_PATH . '/postback/' . $network . '.php')) { $custom->process_conversion($data); } elseif ($network == 'pixel') { $custom->process_pixel($data); } else { $net = new $network(); $net->process_conversion($data); }
function testArgs() { global $status; $CUSTOM = custom::instance(); $dspaceBatch = $CUSTOM->getDspaceBatch(); $bgindicator = $CUSTOM->getBgindicator(); if (count($_POST) == 0) { return; } $coll = util::getPostArg("collection", ""); $coll = util::getPostArg("collection", ""); $status = $CUSTOM->validateCollection($coll); if ($status != "") { return; } $args = "-v -i " . $coll; $arr = util::getPostArg("action", array()); //if (in_array("actThumb", $arr)) $args .= " -p TBD"; if (in_array("actTiles", $arr)) { $args .= ' -p ' . escapeshellarg("Decomposed Zoomeable Images"); } if (in_array("actStream", $arr)) { $args .= ' -p ' . escapeshellarg("Scribd Upload"); } if (in_array("actText", $arr)) { $args .= ' -p ' . escapeshellarg("HTML Text Extractor") . ' -p ' . escapeshellarg("PDF Text Extractor") . ' -p ' . escapeshellarg("PowerPoint Text Extractor") . ' -p ' . escapeshellarg("Word Text Extractor"); } if (in_array("actThumb", $arr)) { $args .= ' -p ' . escapeshellarg("ImageMagick Image Thumbnail") . ' -p ' . escapeshellarg("ImageMagick PDF Thumbnail"); } if (util::getPostArg("optForce", false)) { $args .= " -f"; } $u = escapeshellarg($CUSTOM->getCurrentUser()); $cmd = <<<HERE {$u} filter-media {$args} HERE; //echo($dspaceBatch . " " . $cmd); exec($dspaceBatch . " " . $cmd . " " . $bgindicator); header("Location: ../web/queue.php"); }
function testArgs() { global $status; global $ingestLoc; $CUSTOM = custom::instance(); $dspaceBatch = $CUSTOM->getDspaceBatch(); $mroot = $CUSTOM->getMapRoot(); $bgindicator = $CUSTOM->getBgindicator(); $coll = util::getPostArg("collection", ""); $status = custom::instance()->validateCollection($coll); if ($status != "") { return; } $zipurl = util::getPostArg("zip", ""); if ($zipurl == "") { $status = "A URL for a Zip File must be provided"; return; } $batch = date("Ymd_H.i.s"); $loc = $ingestLoc . $batch . ".zip"; $mapfile = $mroot . $batch; $u = escapeshellarg($CUSTOM->getCurrentUser()); $user = escapeshellarg($CUSTOM->getCurrentUserEmail()); $coll = escapeshellarg($coll); $zipurl = escapeshellarg($zipurl); $loc = escapeshellarg($loc); $mapfile = escapeshellarg($mapfile); $mode = util::getPostArg("skipindex", "") == "Y" ? "gu-ingest-zipurl-skipindex" : "gu-ingest-zipurl"; $cmd = <<<HERE {$u} {$mode} {$user} {$coll} {$zipurl} {$loc} {$mapfile} HERE; //echo($dspaceBatch . " " .$cmd); exec($dspaceBatch . " " . $cmd . " " . $bgindicator); header("Location: ../web/queue.php"); }
public function getMyPath() { return $this->getParent()->getMyPath() . '/' . custom::instance()->getPathName($this->name); }
<?php require_once _TRACK_LIB_PATH . '/class/common.php'; require_once _TRACK_LIB_PATH . '/class/custom.php'; $custom = new custom(); ?> <link href="<?php echo _HTML_LIB_PATH; ?> /select2/select2.css" rel="stylesheet"/> <script src="<?php echo _HTML_LIB_PATH; ?> /mustache/mustache.js"></script> <script src="<?php echo _HTML_LIB_PATH; ?> /select2/select2.js"></script> <script src="<?php echo _HTML_LIB_PATH; ?> /clipboard/ZeroClipboard.min.js"></script> <script type="text/javascript"> var base_custom = "<?php echo $custom->get_pixel_link(); ?> "; $(document).ready(function(){ $('#master-form input[type=checkbox]').change(function(){
function testArgs() { global $status; global $ingestLoc; $CUSTOM = custom::instance(); $dspaceBatch = $CUSTOM->getDspaceBatch(); $mroot = $CUSTOM->getMapRoot(); $bgindicator = $CUSTOM->getBgindicator(); $coll = util::getPostArg("collection", ""); $status = custom::instance()->validateCollection($coll); if ($status != "") { return; } if (count($_POST) == 0) { $status = ""; return; } if ($_FILES["zip"]["error"]) { $name = isset($_FILES["zip"]["tmp_name"]) ? $_FILES["zip"]["tmp_name"] : $_FILES["zip"]["name"]; $status = "File upload error: " . $_FILES["zip"]["error"] . " on file " . $name; return; } $loc = $ingestLoc . $_FILES["zip"]["name"]; move_uploaded_file($_FILES["zip"]["tmp_name"], $loc); $batch = date("Ymd_H.i.s"); $mapfile = $mroot . $batch; $u = escapeshellarg($CUSTOM->getCurrentUser()); $user = escapeshellarg($CUSTOM->getCurrentUserEmail()); $coll = escapeshellarg($coll); $loc = escapeshellarg($loc); $mapfile = escapeshellarg($mapfile); $mode = util::getPostArg("skipindex", "") == "Y" ? "gu-ingest-zip-skipindex" : "gu-ingest-zip"; $cmd = <<<HERE {$u} {$mode} {$user} {$coll} {$loc} {$mapfile} HERE; //echo($dspaceBatch . " " .$cmd); exec($dspaceBatch . " " . $cmd . " " . $bgindicator); header("Location: ../web/queue.php"); }
function testArgs() { global $status; global $ingestLoc; $CUSTOM = custom::instance(); $dspaceBatch = $CUSTOM->getDspaceBatch(); $mroot = $CUSTOM->getMapRoot(); $bgindicator = $CUSTOM->getBgindicator(); $coll = util::getPostArg("collection", ""); $status = custom::instance()->validateCollection($coll); if ($status != "") { return; } $loc = util::getPostArg("loc", ""); if (preg_match("|\\.\\.|", $loc) == 1) { $status = "Location [" . $loc . "] may not contain '..'."; return; } if (preg_match("|;|", $loc) == 1) { $status = "Location [" . $loc . "] may not contain ';'."; return; } $batch = date("Ymd_H.i.s"); $mapfile = $mroot . $batch; $u = escapeshellarg($CUSTOM->getCurrentUser()); $user = escapeshellarg($CUSTOM->getCurrentUserEmail()); $coll = escapeshellarg($coll); $loc = escapeshellarg($ingestLoc . $loc); $mapfile = escapeshellarg($mapfile); $mode = util::getPostArg("skipindex", "") == "Y" ? "gu-ingest-skipindex" : "gu-ingest"; $cmd = <<<HERE {$u} {$mode} {$user} {$coll} {$loc} {$mapfile} HERE; //echo($dspaceBatch . " " .$cmd); exec($dspaceBatch . " " . $cmd . " " . $bgindicator); header("Location: ../web/queue.php"); }
<?php /** * hanya menerima method POST; * selain POST maka akan result 0 */ if ($_POST) { /** * untuk mengecek apakah card id sudah terdaftar atau tidak. */ $custom = new custom(); $cekCardId = $custom->cekCardId($_POST['companyname']); if ($cekCardId == 0) { /** * untuk me-register client. */ $client = new client(); $registerClient = json_decode($client->Add_Client($_POST)); if ($registerClient->result == 1) { $result['result'] = 1; echo json_encode($result); } else { $result['result'] = 0; echo json_encode($result); } } else { $result['result'] = 0; echo json_encode($result); } } else { $result['result'] = 0;
<?php if ($_POST) { $custom = new custom(); $tokenDetails = json_decode($custom->vToken($_POST['token'])); if ($tokenDetails != false) { $tanggalPembayaran = $tokenDetails->date; $NoInvoice = $tokenDetails->invoice_id; $ClientId = $tokenDetails->client_id; $Sekarang = date("Y-m-d H:i:s"); $state = $tokenDetails->state; // cari rentan waktu $tanggalSekarang = strtotime($Sekarang); $TanggalDatabase = strtotime($tanggalPembayaran); $waktuSekarang = round(abs($tanggalSekarang - $TanggalDatabase) / 60, 0); if ($state == 'paid') { $result['result'] = 0; echo json_encode($result); } else { if ($waktuSekarang <= $batasWaktu) { $payments = new payments(); $noinv['invoiceid'] = $NoInvoice; $getInvoice = $payments->Get_Invoice($noinv); if ($getInvoice->result == "success") { $applyCredit['invoiceid'] = $getInvoice->invoiceid; $applyCredit['amount'] = $getInvoice->total; $apply_Credit = json_decode($payments->Apply_Credit($applyCredit)); if ($apply_Credit->result != 0) { // update tbltoken $custom->uToken($_POST['token']); $result['result'] = 1;
<?php if ($_POST) { $cardid = $_POST['cardid']; $invoiceid = $_POST['invoiceid']; $nominal = $_POST['nominal']; $custom = new custom(); $cekCardId = $custom->cekCardId($cardid); if ($cekCardId != 0) { $clientid = $custom->byCardId($cardid); $client = new client(); $details = json_decode($client->Get_Clients_Details($clientid)); $credit = explode('.', $details->client->credit); $credit = $credit['0']; if ($credit < $nominal) { $result['result'] = 0; $result['message'] = "Your Balance is not enought"; echo json_encode($result); } else { $payments = new payments(); $custom->updateInvoiceUserId($clientid, $invoiceid); $token['client_id'] = $clientid; $token['invoiceid'] = $invoiceid; $rtoken = $custom->rToken($token); if ($rtoken != 0) { $result['result'] = 1; $result['invoiceid'] = $invoiceid; $result['amount'] = $nominal; echo json_encode($result); } else { $result['result'] = 0;
<?php require "../../../libraries/start.php"; require $dir_libraries . "pagination.php"; $pagination = new pagination(); require $dir_libraries . "date.php"; $date = new date(); require $dir_libraries . "custom.php"; $custom = new custom(); require $dir_libraries . "form.php"; $form = new form(); if (isset($_POST['cari'])) { $nama = $_POST['nama']; } else { $nama = ''; } ?> <!DOCTYPE html> <html lang="en"> <head> <?php include $dir_subviews . "bs_meta.php"; ?> <?php include $dir_subviews . "bs_css.php"; ?> </head> <body> <?php include $dir_subviews . "menu.php";
function testArgs() { global $status; $CUSTOM = custom::instance(); if (count($_POST) == 0) { return; } $coll = util::getPostArg("coll", ""); $comm = util::getPostArg("comm", ""); $format = util::getPostArg("format", ""); $set = ""; $statColl = $CUSTOM->validateCollection($coll); $statComm = $CUSTOM->validateCollection($comm); if ($statColl == "") { $set = "col_" . str_replace("/", "_", $coll); } else { if ($statComm == "") { $set = "com_" . str_replace("/", "_", $comm); } else { $status = "A valid collection or community must be selected"; return; } } if ($format == "") { $status = "A format must be selected"; return; } global $OAI; header('Content-type: application/xml; charset=UTF-8'); echo "<ListRecords>"; getRecords($format, $set); echo "</ListRecords>"; exit; }
mysql_query("insert into student_field_categories_new(id,title,sort_order) values('{$mid}','{$sf_rq['title']}','{$sf_rq['sort_order']}')") or die(mysql_error() . 'error at 281'); $mod = "students/Student.php&category_id=" . $mid; $qr_wr = "insert into profile_exceptions(profile_id,modname,can_use,can_edit) values('0','{$mod}','Y','Y');"; fwrite($fpt, $qr_wr); $qr_custom = mysql_query('select * from custom_fields where category_id =' . $cat_id . '') or die(mysql_error() . 'error at 286'); while ($qr_custom_fetch = mysql_fetch_array($qr_custom)) { $id = $qr_custom_fetch['id']; mysql_query('insert into custom_fields_new(id,type,search,title,sort_order,select_options,category_id,system_field,required,default_selection,hide)select \'' . $id . '\', type,search,title,sort_order,select_options,\'' . $mid . '\',system_field,required,default_selection,hide from custom_fields where id =' . $id . '') or die(mysql_error() . 'error at 1537'); } } } $res_student_field = 'SHOW COLUMNS FROM ' . 'students' . ' WHERE FIELD LIKE "CUSTOM_%"'; $objCustomStudents = new custom($mysql_database); $objCustomStudents->set($res_student_field, 'students_new'); $res_staff_field = 'SHOW COLUMNS FROM ' . 'staff' . ' WHERE FIELD LIKE "CUSTOM_%"'; $objCustomStaff = new custom($mysql_database); $objCustomStaff->set($res_staff_field, 'staff_new'); $qr = "RENAME TABLE staff TO staff_new;"; fwrite($fpt, $qr); $qr1 = "RENAME TABLE students TO students_new;"; fwrite($fpt, $qr1); foreach ($objCustomStudents->customQueryString as $query) { mysql_query($query); $query1 = $query . ";"; fwrite($fpt, $query1); } //execute custome field for satff foreach ($objCustomStaff->customQueryString as $query) { mysql_query($query); $query1 = $query . ";"; fwrite($fpt, $query1);
<?php require "../../libraries/start.php"; require $dir_libraries . "custom.php"; $custom = new custom(); require $dir_libraries . "form.php"; $form = new form(); if (isset($_GET['step'])) { $step = $_GET['step']; } else { $step = 0; } ?> <!DOCTYPE html> <html lang="en"> <head> <?php include $dir_subviews . "bs_meta.php"; ?> <?php include $dir_subviews . "bs_css.php"; ?> </head> <body> <?php include $dir_subviews . "menu.php"; ?> <div class="container-fluid"> <div class="row-fluid">
require_once _TRACK_LIB_PATH . '/class/custom.php'; $available_nets = array(); $networks = dir(_TRACK_LIB_PATH . '/postback'); while ($file = $networks->read()) { if ($file != '.' && $file != '..') { $file = str_replace('.php', '', $file); $name = $file; if ($file == 'GdeSlon') { $name = 'Где Слон?'; } $name = str_replace('_', '', $file); $available_nets[$file] = $name; } } asort($available_nets); $custom = new custom(); ?> <link href="<?php echo _HTML_LIB_PATH; ?> /select2/select2.css" rel="stylesheet"/> <script src="<?php echo _HTML_LIB_PATH; ?> /mustache/mustache.js"></script> <script src="<?php echo _HTML_LIB_PATH; ?> /select2/select2.js"></script> <script src="<?php
<?php // start $_POST if ($_POST) { /** * untuk mengecek apakah card id sudah terdaftar atau tidak. */ $custom = new custom(); $cekCardId = $custom->cekCardId($_POST['card_id']); // start $cekCardId if ($cekCardId != 0) { $param["clientid"] = $custom->byCardId($_POST['card_id']); $param["amount"] = $_POST['nominal']; $param["description"] = "Topup Saldo {$param["amount"]}"; // start $param["clientid"] if (!$param["clientid"] == false) { // tambah credit $payments = new payments(); $topup = json_decode($payments->Add_Credit($param)); //membuat invoice $invoice["userid"] = $param["clientid"]; $invoice["date"] = date("Ymd"); $invoice["duedate"] = date("Ymd"); $invoice["sendinvoice"] = false; $invoice["itemdescription1"] = $param["description"]; $invoice["itemamount1"] = $param["amount"]; $createInvoice = json_decode($payments->Create_Invoice($invoice)); // update invoice $postfields["invoiceid"] = $createInvoice->invoiceid; $postfields["status"] = 'Paid'; $updateInvoice = json_decode($payments->Update_Invoice($postfields));
$mysql_database = $_SESSION['db']; $dbconn = mysql_connect($_SESSION['server'], $_SESSION['username'], $_SESSION['password']) or die; mysql_select_db($mysql_database); $proceed = mysql_query("SELECT name\r\nFROM APP\r\nWHERE value LIKE '4.6%' OR value LIKE '4.7%'"); $proceed = mysql_fetch_assoc($proceed); if ($proceed['name']) { $date_time = date("m-d-Y"); $Export_FileName = $mysql_database . '_' . $date_time . '.sql'; $myFile = "upgrade.sql"; executeSQL($myFile); backup_db($mysql_database, $Export_FileName); $res_student_field = 'SHOW COLUMNS FROM STUDENTS WHERE FIELD LIKE "CUSTOM_%"'; $objCustomStudents = new custom($mysql_database); $objCustomStudents->set($res_student_field, 'STUDENTS'); $res_staff_field = 'SHOW COLUMNS FROM STAFF WHERE FIELD LIKE "CUSTOM_%"'; $objCustomStaff = new custom($mysql_database); $objCustomStaff->set($res_staff_field, 'STAFF'); mysql_query("drop database {$mysql_database}"); mysql_query("create database {$mysql_database}"); mysql_select_db($mysql_database); #$myFile = "opensis-4.5-schema-mysql.sql"; #$myFile = "opensis-4.7-schema-mysql.sql"; $myFile = "opensis-4.8-schema-mysql.sql"; executeSQL($myFile); //execute custome field for student foreach ($objCustomStudents->customQueryString as $query) { mysql_query($query); } //execute custome field for satff foreach ($objCustomStaff->customQueryString as $query) { mysql_query($query);
<?php require "../../../libraries/start.php"; require $dir_libraries . "barcode128.php"; require $dir_libraries . "custom.php"; $custom = new custom(); require $dir_libraries . "date.php"; $date = new date(); ?> <!DOCTYPE html> <html lang="en"> <head> <?php include $dir_subviews . "bs_meta.php"; ?> <?php include $dir_subviews . "bs_js.php"; ?> <style> body{ margin-top: 10px; } td{ font-size: 12px; color: #000; font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Helvetica, Arial, sans-serif; } </style> </head> <body onload="loadOnce()">
public function initHierarchy() { $json_a = util::json_get(custom::instance()->getRestServiceUrl() . "/hierarchy"); foreach ($json_a["community"] as $k => $comm) { $this->initHierarchyComm(null, $comm); } uasort(community::$COMMUNITIES, "pathcmp"); uasort(collection::$COLLECTIONS, "pathcmp"); uasort(community::$COMBO, "pathcmp"); }
<?php include '../header.php'; $CUSTOM = custom::instance(); $type = util::getArg("type", ""); $id = util::getArg("id", ""); if ($CUSTOM->isPdo()) { $arg = array(":id" => $id); $argp = ":id"; } else { $arg = array($id); $argp = "\$1"; } if ($type == "0") { $sql = <<<HERE select h.handle from handle h inner join item2bundle i2b on h.resource_id=i2b.item_id inner join bundle2bitstream b2b on i2b.bundle_id=b2b.bundle_id and b2b.bitstream_id = {$argp} where h.resource_type_id=2 HERE; $handle = $CUSTOM->getQueryVal($sql, $arg); if ($handle != "") { header("Location: /handle/" . $handle); exit; } } elseif ($type == "2") { $sql = <<<HERE select h.handle from handle h where h.resource_id={$argp} and h.resource_type_id=2
function testArgs() { global $status; $CUSTOM = custom::instance(); $root = $CUSTOM->getRoot(); $mroot = $CUSTOM->getMapRoot(); $dspaceBatch = $CUSTOM->getDspaceBatch(); if (count($_POST) == 0) { return; } $mapfile = util::getPostArg("mapfile", ""); $u = escapeshellarg($CUSTOM->getCurrentUser()); $user = escapeshellarg($CUSTOM->getCurrentUserEmail()); $mapfile = escapeshellarg($mroot . $mapfile); $cmd = <<<HERE {$u} gu-uningest {$user} {$mapfile} HERE; //echo($dspaceBatch . " " .$cmd); exec($dspaceBatch . " " . $cmd); header("Location: ../web/queue.php"); }
<?php require "../../../libraries/start.php"; require $dir_libraries . "custom.php"; $custom = new custom(); require $dir_libraries . "form.php"; $form = new form(); ?> <!DOCTYPE html> <html lang="en"> <head> <?php include $dir_subviews . "bs_meta.php"; ?> <?php include $dir_subviews . "bs_css.php"; ?> </head> <body> <?php include $dir_subviews . "menu.php"; ?> <div class="container-fluid"> <div class="row-fluid"> <legend>DAFTAR MENU <?php $form->addBtn(); ?> </legend>
<?php require "../../../libraries/start.php"; require $dir_libraries . "dropdown.php"; $dropdown = new dropdown(); require $dir_libraries . "date.php"; $date = new date(); require $dir_libraries . "form.php"; $form = new form(); require $dir_libraries . "custom.php"; $custom = new custom(); $id = $_GET['id']; $sql = "SELECT * FROM anggota WHERE id='{$id}'"; $item = $database->fetch_data($sql); ?> <!DOCTYPE html> <html lang="en"> <head> <?php include $dir_subviews . "bs_meta.php"; ?> <?php include $dir_subviews . "bs_css.php"; ?> </head> <body> <?php include $dir_subviews . "menu.php"; ?>