function BILO_block_user() { global $SYS; ob_start(); if (BILO_isLogged()) { $u = newObject("user", BILO_uid()); $u->username = BILO_username(); $u->clase = "login"; plantHTML($u, "Public/block_ok_login"); } else { $u = newObject("user"); debug(BILO_username(), "blue"); $u->clase = "logoff"; plantHTML($u, "Public/block_no_login"); } $data = ob_get_contents(); ob_end_clean(); return $data; }
<?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 "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 "Memo.php"; require_once "security.php"; $dir = newObject("data_object"); $name = str_replace("~", BILO_username(), $name); $path = explode("/", $name); $inode = 0; for ($i = 0; $i < sizeof($path); $i++) { $o = $dir->select("nombre='" . $path[$i] . "' AND inode='{$inode}'"); if ($dir->nRes > 0) { $res = current($o); $inode = $res->ID; //echo $res->nombre; } } require 'list.php';
<a href="javascript:addbookmarks()"><img class="icon" src="Data/Img/Icons/bookmark_add.png" alt="Añadir a favoritos" title="Añadir a favoritos" width="16" height="16" border="0"></a> <a href="javascript:fReload()" ><img class="icon" src="Data/Img/Icons/reload.png" border="0" alt="Recargar" title="Recargar"></a> <a href="javascript:fBack()" ><img class="icon" src="Data/Img/Icons/back.png" border="0" alt="Retroceder" title="Retroceder"></a> <a href="javascript:fPrint()" ><img class="icon" src="Data/Img/Icons/print.png" border="0" alt="Imprimir" title="Imprimir"></a> <a href="javascript:logOut()" ><img class="icon" src="Data/Img/Icons/unlock.png" border="0" alt="Cerrar sesion" title="Cerrar sesion"></a> </td> <td nowrap> </td> <td width="50%" align="center" nowrap><strong><?php echo BILO_username() . _(' conectado'); ?> </strong></td> <td nowrap width="104" align="left" style="border:1px solid lightgray"> <span id="progress" style="background-color:#EEEAEE;"> </span> </td> <td align="right" nowrap>