Exemplo n.º 1
0
		$usuario->setUser($_POST['user']);
		$usuario->setPwd($_POST['pwd']);
		$usuario->setIdRol($_POST['id_rol']);
		$usuario->insert();
	}

	if ($_GET['op']=='delete') {
		$usuario->delete($_GET['id']);
	}

?>
<!DOCTYPE html>
<html>
<head>
	<?php 
head_html();
?>
	<script type="text/javascript">
		var nameTable='usuario';
	</script>
</head>
<body>
	<nav>
		<?php 
nav_html();
?>
	</nav>

	<? if ($per[0]['crear']==1) { button_add_modal("#new"); ?>
	<div id="new" class="modal">
	    <h4>Ingresar Usuario</h4>
Exemplo n.º 2
0
function installer_main()
{
    global $g, $fstype, $savemsg;
    if (file_exists("/tmp/.pc-sysinstall/pc-sysinstall.log")) {
        unlink("/tmp/.pc-sysinstall/pc-sysinstall.log");
    }
    head_html();
    body_html();
    $disk = installer_find_first_disk();
    // Only enable ZFS if this exists.  The install will fail otherwise.
    if (file_exists("/boot/gptzfsboot")) {
        $zfs_enabled = "<tr bgcolor=\"#9A9A9A\"><td align=\"center\"><a href=\"installer.php?state=easy_install_zfs\">Easy installation of {$g['product_name']} using the ZFS filesystem on disk {$disk}</a></td></tr>";
    }
    page_table_start();
    echo <<<EOF
\t\t<form action="installer.php" method="post" state="step1_post">
\t\t\t<div id="mainlevel">
\t\t\t\t<center>
\t\t\t\t<b><font face="arial" size="+2">Welcome to the {$g['product_name']} webInstaller!</b></font><p/>
\t\t\t\t<font face="arial" size="+1">This utility will install {$g['product_name']} to a hard disk, flash drive, etc.</font>
\t\t\t\t<table width="100%" border="0" cellpadding="5" cellspacing="0">
\t\t\t \t\t<tr>
\t\t\t    \t\t<td>
\t\t\t\t\t\t\t<center>
\t\t\t\t\t\t\t<div id="mainarea">
\t\t\t\t\t\t\t\t<br />
\t\t\t\t\t\t\t\t<center>
\t\t\t\t\t\t\t\tPlease select an installer option to begin:
\t\t\t\t\t\t\t\t<p/>
\t\t\t\t\t\t\t\t<table width="100%" border="0" cellpadding="5" cellspacing="5">
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t     \t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t<div id="pfsenseinstaller">
\t\t\t\t\t\t\t\t\t\t\t\t<center>
EOF;
    if (!$disk) {
        echo gettext("ERROR: Could not find any suitable disks for installation.");
        echo "</div></td></tr></table></div></table></div>";
        end_html();
        exit;
    }
    echo <<<EOF

\t\t\t\t\t\t\t\t\t\t\t\t\t<table cellspacing="5" cellpadding="5" style="border: 1px dashed;">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr bgcolor="#CECECE"><td align="center">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href="installer.php?state=easy_install_ufs">Easy installation of {$g['product_name']} using the UFS filesystem on disk {$disk}</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td></tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t \t{$zfs_enabled}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr bgcolor="#AAAAAA"><td align="center">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href="installer.php?state=custominstall">Custom installation of {$g['product_name']}</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td></tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr bgcolor="#CECECE"><td align="center">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href='/'>Cancel and return to Dashboard</a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td></tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t\t\t\t\t</center>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t     \t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</td>
\t\t\t\t\t</tr>
\t\t\t\t</table>
\t\t\t</div>
EOF;
    page_table_end();
    end_html();
}