?> <li><?php echo sprintf(dhLang('Se agrego la Red %s exitosamente.'), urldecode(dhGet('success'))); ?> </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
<?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 (dhHasGet('name') && !dhIsLogin()) { dhTheme('register-success'); } else { dhRedirect('index'); }