<?php require_once "Articulus.php"; $cat_id = isset($cat_id) ? $cat_id : 0; $ID = isset($ID) ? $ID : 1; if ($ID > 1) { $p = newObject("categoria", $ID); } else { $p = newObject("categoria"); } if ($cat_id > 1) { $c = newObject("categoria", $cat_id); $cat_pr = $c->cat_pr; $p->sub = "Subcategoría para:<b> {$c->nombre} </b>"; } $p->cat_id = $cat_id; $p->cat_pr = $cat_pr; formAction("action_save_categoria.php", "footer", "editForm"); $p->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); plantHTML($p, "categoria"); formClose(); ?>
<?php require_once "Forus.php"; $ID = isset($ID) ? $ID : 1; $p = newObject("foro", $ID); $p->p_id = isset($p_id) ? $p_id : 0; if ($ID < 2) { $p->visitas = 0; } formAction("save_foro.php", "footer", "editForm"); $p->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); plantHTML($p, "foro"); formClose();
<?php require_once "Bilo.php"; $p = newObject("user_pref"); $p->getPrefByUser(BILO_uid()); formAction("action_pref_save.php", "footer", "editForm"); $p->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); $external_data = array(); plantHTML($p, "user_pref", $external_data); formClose();
<?php require_once "JasperReports.php"; $ID = isset($ID) ? $ID : 1; $ane = newObject("reportparams", $ID); formAction("action_save_reportparams.php", "footer", "editForm"); $ane->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); $c = newObject("jasperreport"); $d = array("jasperreport_id" => $c->listAll("reportname")); plantHTML($ane, "add_reportparams", $d); formClose(); ?>
<?php require_once "Biblio.php"; require_once "Lib/lib_tree.php"; $libro = newObject("b_libro", $ID); //$wRes=new avSelectTree(); /* $libro->b_categoria_id=$wRes->avSelectPrintTree("b_categoria_id","Biblio","b_categoria","b_cat_padre_id","nombre_cat",$p->b_categoria_padre_id); */ //$libro->b_categoria_id=$wRes->avSelectPrintTree("b_categoria_id","Biblio","b_categoria","b_cat_padre_id","nombre_cat",$libro->b_categoria_id); formAction("action_save_libro.php", "footer", "editForm"); $libro->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); $c = newObject("b_categoria"); $libro->b_categoria = $libro->get_selected_options("b_categoria"); $d = array("b_categoria" => $c->listAll("nombre_cat")); plantHTML($libro, "fichalibro", $d); formClose();
$keys = explode(" ", $busqueda); foreach ($keys as $k => $v) { $q[] = "(titulo LIKE '%{$v}%' OR body LIKE '%{$v}%' OR keyword LIKE '%{$v}%')"; $xquery = implode("OR", $q); } $n->searchResults = $n->select($xquery, $offset, $sort); if ($n->nRes == 0) { $n->nohay = "NO EXISTEN NOTICIAS QUE CUMPLAN EL CRITERIO DE BÚSQUEDA"; } } else { if ($cat_id > 1) { $n->searchResults = $n->select("id_cat={$cat_id}", $offset, $sort); if ($n->nRes == 0) { $n->nohay = "NO HAY NINGUNA NOTICIA EN ESTA CATEGORIA"; } } else { $n->searchResults = $n->selectAll($offset, $sort); } if ($n->nRes == 0) { $n->nohay = "NO HAY NINGUNA NOTICIA DISPONIBLE"; } } formAction("", "", "editForm"); $n->boton0 = gfxBotonAction("Buscar", "getElementById('editForm').submit()", True); $n->isAdmin = BILO_isAdmin(); $n->busca = $busqueda; plantHTML($n, 'search_notice'); $c = newObject("cat_not", $cat_id); $c->fecha_hoy = date(time()); plantHTML($c, 'menu_cat', array("ID" => $c->listAll("nombre_cat"))); listList($n, array(), 'list_notice', "", 1, "plParseTemplateFast");
<?php require_once "Bilo.php"; formAction("action_ticker.php", "footer", "editForm"); plantHTML(array("MSG" => "Entrada al Sistema", "SMSG" => $SYS["MESSAGES"], "REFERER" => $_SERVER["HTTP_REFERER"]), "ticker"); formClose(); ?>
<?php require_once "Articulus.php"; require_once "Lib/lib_tree.php"; require_once "Memo/Memo.php"; /* Filehelper */ if (BILO_isLogged()) { $ID = isset($ID) ? $ID : 1; $p = newObject("documento", $ID); $p->cat_id = isset($cat_id) ? $cat_id : 1; if ($p->cat_id > 1) { $cat = newObject("categoria", $cat_id); $p->cat_pr = $cat->cat_or; } formAction("action_save_documento.php", "footer", "editForm"); $wRes = new avSelectTree(); $p->categoria = $wRes->avSelectPrintTree("cat_id", "Articulus", "categoria", "cat_id", "nombre", $p->cat_pr); $p->filehelper = $SYS["ROOT"] . "Backend/Memo/action_fileselector.php"; $p->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); $p->boton1 = gfxBotonAction("Volver", "history.go(-1)", True); $c = newObject("categoria"); if ($ID < 2) { $p->autor = BILO_username(); } plantHTML($p, "documento", array("cat_id" => $c->ListCat())); formClose(); } else { echo "No esta logueado"; }
<?php require_once "GlobalSche/GlobalSche.php"; $ID = isset($ID) ? $ID : 1; if ($ID > 1) { $n = newObject("gtasklog", $ID); } else { $n = newObject("gtasklog"); } $fkeys = array("gtask_id" => $n->get_references("gtask_id"), "schedule_id" => $n->get_references("schedule_id")); //print_r($fkeys); formAction("action_save_tasklog.php?ID={$ID}", "footer", "editForm"); $n->_boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); plantHTML($n, 'gtasklog_add', $fkeys); formClose();
// ]]> </script> </head> <body> <?php if ($debug) { echo 'Debug On'; } ?> <h1><a href="http://code.google.com/p/dynamic-dnsupdate/"><img src="./images/domain.jpg" alt="0" height="30" width="130" /></a> Web-based Dynamic DNS Update Program</h1> <?php if (isset($_GET['todo'])) { echo '<h3><img src="./images/btn_dns_bg.gif" alt="Image" align="bottom" width="20" /> Result of the action on a resource record : </h3>'; formAction($_GET); echo '<p><b>Do not refresh this page!</b></p>'; echo '<p><a href="./dnsupdate.php?domain=' . $domain . '">Go back to the DNS Update</a>'; } else { ?> <!-- ################# Select Domain form --> <form method="get" action="./dnsupdate.php"> <label>Domain name: </label> <select name="domain"> <?php $domains = explode(';', DOMAIN); if ($domain == NULL) { echo '<option selected="selected" value="NULL"> - </option>'; }
<?php require_once "Biblio.php"; $c = newObject("cat_lib", $ID); formAction("action_save_catlib.php", "footer", "editForm"); $c->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); plantHTML($c, 'add_catlib'); formClose();
<?php require_once "Bilo.php"; if (BILO_isAdmin()) { $g = newObject("group", $ID); $g->boton1 = gfxBotonAction("<<", "document.location.href=document.location.href+'&ID=" . $g->prevID() . "'", True); $g->boton2 = gfxBotonAction(">>", "document.location.href=document.location.href+'&ID=" . $g->nextID() . "'", True); if (!isset($ID)) { $g = newObject("group", $g->nextIDFree()); } formAction("action_group_save.php", "footer", "editForm"); $g->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); plantHTML($g, "edit_group", $external_data); formClose(); //dataDump($_SESSION); } else { echo '<h4 align="center">Privilegios insuficientes</h4>'; }
<?php require_once "Bilo.php"; $ID = isset($ID) ? $ID : 1; $u = newObject("user", $ID); $u->grupos = $u->listGroupsIndex(); $g = newObject("group"); $u->boton1 = gfxBotonAction("<<", "document.location.href=document.location.href+'&ID=" . $u->prevID() . "'", True); $u->boton2 = gfxBotonAction(">>", "document.location.href=document.location.href+'&ID=" . $u->nextID() . "'", True); if (BILO_isAdmin()) { formAction("action_user_save.php?codename={$codename}", "footer", "editForm"); $u->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); $external_data = array("grupos" => $g->listGroupIndex()); plantHTML($u, "edit_user", $external_data); formClose(); } else { if (BILO_isOperator()) { formAction("action_user_save.php?codename={$codename}", "footer", "editForm"); $g->getGroupByName("Responsables Formativos"); $gid = $g->ID; $u->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); $external_data = array("grupos" => array($g->ID => $g->groupname)); plantHTML($u, "edit_user", $external_data); formClose(); } else { echo '<h4 align="center">Privilegios insuficientes</h4>'; } }
<?php require_once "GlobalSche/GlobalSche.php"; $ID = isset($ID) ? $ID : 1; if ($ID > 1) { $n = newObject("gstep", $ID); } else { $n = newObject("gstep"); } $fkeys = array("gtask_id" => $n->get_references("gtask_id")); //print_r($fkeys); formAction("action_save_step.php?ID={$ID}", "footer", "editForm"); $n->_boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); plantHTML($n, 'step_add', $fkeys); formClose();
<?php require_once "JasperReports.php"; $ID = isset($ID) ? $ID : 1; $ane = newObject("jasperreport", $ID); formAction("action_save_jasperreport.php", "footer", "editForm"); $ane->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); plantHTML($ane, "add_jasperreport", array()); formClose(); ?>
<?php require_once "Noticias.php"; $ID = isset($ID) ? $ID : 1; $n = newObject("notice", $ID); $n = newObject("notice", $ID); formAction("action_save_notice.php?ID={$ID}", "footer", "editForm"); $n->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); $c = newObject("cat_not"); $d = array("id_cat" => $c->listAll("nombre_cat")); plantHTML($n, 'add', $d); formClose();
<?php require_once "GlobalSche/GlobalSche.php"; $ID = isset($ID) ? $ID : 1; if ($ID > 1) { $n = newObject("schedule", $ID); } else { $n = newObject("schedule"); } $fkeys = array(); formAction("action_save_schedule.php?ID={$ID}", "footer", "editForm"); $n->_boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); plantHTML($n, 'schedule_add', $fkeys); formClose();
$dir->current_inode = $inode; if (checkReadSecurity($aux)) { $dir->searchResults = $dir->select("inode={$inode}", $offset, $sort); $safe_list = array(); do { $ele = current($dir->searchResults); if (checkReadSecurity($ele)) { $safe_list[] = $ele; } } while (next($dir->searchResults)); $dir->searchResults = $safe_list; if (sizeof($safe_list) < 1 || $safe_list[0] == false) { unset($dir->searchResults); $dir->searchResults = array(); } formAction("", "", "listForm"); $SYS["inode"] = $inode; plantHTML($SYS, "navigator_top"); include_once "mime_icons.php"; listList($dir, array("mime_image" => 'code#return img_icon($object->mime);', "usuario" => 'xref#user|uid|username', "grupo" => 'xref#group|gid|groupname'), "list"); HTML("navigator_bottom", True); formClose(); } else { $notification->push(_("Insufficient privileges."), 'horde.error'); if ($inode != $oldinode) { $inode = $oldinode; } else { $inode = 0; } require 'list.php'; }
if ($login->userid == 0) { $tpl->redirect_login(); } if (($login->admin & ADMIN_USER) != ADMIN_USER) { $tpl->error(ERROR_NO_ACCESS); } if (isset($_REQUEST['success']) && $_REQUEST['success']) { $tpl->assign('success', '1'); } $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'display'; if ($action == 'searchuser') { searchUser(); } elseif ($action == 'sendcode') { sendCode(); } elseif ($action == 'formaction') { formAction(); } elseif ($action == 'display') { $tpl->display(); } $tpl->error(ERROR_UNKNOWN); function sendCode() { global $tpl; $userid = isset($_REQUEST['userid']) ? $_REQUEST['userid'] + 0 : 0; $user = new user($userid); if ($user->exist() == false) { $tpl->error(ERROR_UNKNOWN); } // send a new confirmation $user->sendRegistrationCode(); $tpl->redirect('adminuser.php?action=searchuser&msg=sendcodecommit&username=' . urlencode($user->getUsername()));
<?php require_once "Forus.php"; $ID = isset($ID) ? $ID : 1; $s = newObject("post", $p_id); $foro_id = isset($foro_id) ? $foro_id : 1; $p = newObject("post", $ID); $leido = isset($leido) ? $leido : 1; $a = newObject("post", $leido); $p->title = $s->title; $p->user = BILO_username(); if ($p->title != "") { $p->resp = "readonly=\"true\""; } $p->p_id = isset($p_id) ? $p_id : 0; $p->foro_id = $foro_id; formAction("action_save.php?ID={$ID}&foro_id={$p->foro_id}&leido=", "footer", "editForm"); $p->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); plantHTML($p, "post"); formClose(); ?>
<?php require_once "Test.php"; $ID = isset($ID) ? $ID : 1; $ejemplo = newObject("example", $ID); formAction("action_save_example.php", "footer", "editForm"); $ejemplo->_boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); $c = newObject("bookmark"); $datosExternos = array("host" => $c->listAll("nombre", false)); //debug($datosExternos,"yellow"); plantHTML($ejemplo, 'example_edicion', $datosExternos); formClose();