echo dhUrl('register'); ?> "><?php echo dhLang('Registrese'); ?> </a></li> <li><a href="<?php echo dhUrl('login'); ?> "><?php echo dhLang('Ingresar'); ?> </a></li> <li><a href="<?php echo dhUrl('lostpassword'); ?> "><?php echo dhLang('Recuperar Clave'); ?> </a></li> </ul> </div> <div class="clear-block"> <p><?php echo sprintf(dhLang('Felicitaciones. Ya se encuentra registrado como %s.'), dhGet('name')); ?> </p> </div> <?php dhTheme('footer');
<?php $root = realpath(dirname(__FILE__)); include_once "{$root}/config.php"; include_once "{$root}/common.php"; if (!dhIsLogin()) { dhRedirect('index'); } if (dhHasGet('n')) { $id = dhGet('n'); $networks = dhQuery("SELECT n.id_networks\n , n.netname\n FROM networks n\n WHERE n.id_networks = '{$id}'"); if ($networks) { $network = array_shift($networks); $netname = $network['netname']; dhQueryDelete('networks', "id_networks = '{$id}'"); if (dhConfig('useModRewrite')) { dhRedirect('networks'); } else { dhRedirect('networks', array('delete' => $netname)); } exit; } } dhRedirect('networks');
<?php $root = realpath(dirname(__FILE__)); include_once "{$root}/config.php"; include_once "{$root}/common.php"; if (!dhIsLogin()) { dhRedirect('index'); } if (dhHasGet('action')) { switch (dhGet('action')) { case 'add': include_once "{$root}/networks-add.php"; exit; break; case 'edit': include_once "{$root}/networks-edit.php"; exit; break; case 'delete': include_once "{$root}/networks-delete.php"; exit; break; } } if (dhHasGet('n')) { $networks = dhQuery("SELECT n.id_networks\n , n.netname\n , n.created\n , n.modified\n FROM networks n\n WHERE n.id_networks = '" . dhGet('n') . "'"); if ($networks) { $network = array_shift($networks); } } dhTheme('networks');
?> </li> <?php } if (dhHasGet('edit')) { ?> <li><?php echo sprintf(dhLang('Se modifico la Red %s exitosamente.'), urldecode(dhGet('edit'))); ?> </li> <?php } if (dhHasGet('delete')) { ?> <li><?php echo sprintf(dhLang('Se elimino la Red %s exitosamente.'), urldecode(dhGet('delete'))); ?> </li> <?php } ?> </ul> </div> <?php } ?> <div class="clear-block"> <?php $networks = dhNetworks(); foreach ($networks as $network) { ?>
<?php $root = realpath(dirname(__FILE__)); include_once "{$root}/config.php"; include_once "{$root}/common.php"; if (!dhIsLogin()) { dhRedirect('index'); } if (dhIsPost()) { if (dhValid(array('netname' => 'required'))) { $netid = dhPost('netid', 0); $netname = dhPost('netname', 'WORKGROUP'); dhQueryUpdate('networks', array('netname' => $netname), "id_networks = '" . $netid . "'"); if (dhConfig('useModRewrite')) { dhRedirect('networks', array('n' => $netid)); } else { dhRedirect('networks', array('edit' => urlencode($netname))); } } } if (dhHasGet('n')) { $netid = dhGet('n'); } $networks = dhQuery("SELECT n.id_networks\n , n.netname\n FROM networks n\n WHERE n.id_networks = '{$netid}'\n AND n.id_users = '" . dhUID() . "'"); if ($networks) { $network = array_shift($networks); } dhTheme('networks-edit');