cvs: php-hosts-web / host-add.php index.php showinfo.php /include layout.inc

From: Date: Thu, 25 Apr 2002 03:42:21 +0000
Subject: cvs: php-hosts-web / host-add.php index.php showinfo.php /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-9854@lists.php.net to get a copy of this message
jimw Wed Apr 24 23:42:21 2002 EDT Modified files: /php-hosts-web index.php showinfo.php host-add.php /php-hosts-web/include layout.inc Log: link to login and editing pages Index: php-hosts-web/index.php diff -u php-hosts-web/index.php:1.3 php-hosts-web/index.php:1.4 --- php-hosts-web/index.php:1.3 Sun Apr 21 21:15:50 2002 +++ php-hosts-web/index.php Wed Apr 24 23:42:21 2002 @@ -37,7 +37,7 @@ <h3>Need to update your listing?</h3> <p> -Go to the <a href="clients/">clients' section</a>. +You need to <a href="login.php">log in</a>. </p> <? commonFooter(); ?> Index: php-hosts-web/showinfo.php diff -u php-hosts-web/showinfo.php:1.5 php-hosts-web/showinfo.php:1.6 --- php-hosts-web/showinfo.php:1.5 Mon Apr 22 21:26:56 2002 +++ php-hosts-web/showinfo.php Wed Apr 24 23:42:21 2002 @@ -11,6 +11,17 @@ or die("query failed: ".mysql_error()); $host = mysql_fetch_assoc($res); +if (!$host) { + header("HTTP/1.0 404 Not Found"); + commonHeader("No Information Available"); +?> +<div class="errors">There is no information available about that hosting +company.</div> +<?php + commonFooter(); + exit; +} + commonHeader(htmlentities($host["HostName"])); if ($login && !isset($_COOKIE['HOSTID'])) {?> @@ -22,11 +33,16 @@ <?php } -$userhostid = 0; -if ($_COOKIE['HOSTID']) { - list($userhostid,$pass) = explode(":",$_COOKIE['HOSTID'],2); +if ($edit) {?> +<div class="errors"> +Thank you for updating the information about this hosting company. +Your changes should appear below. +</div> +<?php } +$verified = verify_host_login(); + $general = array( 'Main URL' => '<a href="http://'.htmlentities($host['HostURL']).'">'.htmlentities($host['HostURL']).'</a>', 'Info Email' => htmlentities($host['HostEmail']), @@ -41,7 +57,16 @@ <table border="0" cellspacing="0" cellpadding="5" width="100%"> <tr class="header"> - <td colspan="2"><b><?php echo htmlentities($host['HostName']);?></b></td> + <td colspan="2"><b><?php echo htmlentities($host['HostName']);?></b> +<?php +if ($hostid == $verified || verify_staff_login()) { + echo '<small>('; + echo '<a href="host-edit.php?hostid=',$hostid,'">Edit</a>, '; + echo '<a href="host-del.php?hostid=',$hostid,'">Delete</a>'; + echo ')</small>'; +} +?> + </td> </tr> <?php @@ -55,7 +80,15 @@ } ?> <tr valign="top" class="header"> - <td colspan="2"><b>Services and Features</b></td> + <td colspan="2"><b>Services and Features</b> +<?php +if ($hostid == $verified || verify_staff_login()) { + echo '<small>('; + echo '<a href="host-services-edit.php?hostid=',$hostid,'">Edit</a>'; + echo ')</small>'; +} +?> + </td> </tr> <?php @@ -77,7 +110,7 @@ $last = $service['ServiceName']; do {?> <tr valign="top" class="<?php echo $i++ % 2 ? 'odd' : 'even';?>"> - <th align="right"><?php echo $service['ServiceName']?></th> + <th align="right"><?php echo $service['ServiceName']?>:</th> <td><?php do { switch ($service['ServiceType']) { Index: php-hosts-web/host-add.php diff -u php-hosts-web/host-add.php:1.9 php-hosts-web/host-add.php:1.10 --- php-hosts-web/host-add.php:1.9 Wed Apr 24 22:58:46 2002 +++ php-hosts-web/host-add.php Wed Apr 24 23:42:21 2002 @@ -50,7 +50,7 @@ $msg = "You (or someone using your email address) has added your company to the "; $msg.= "listing of PHP Hosting Companies (at http://hosts.php.net/).\n\n"; - $msg.= "To update your listing, go to the \"Clients\" page, with the following "; + $msg.= "To update your listing, go to the \"Login\" page, with the following "; $msg.= "username and password:\n\n"; $msg.= "\tUsername: ".stripslashes($useremail)."\n"; $msg.= "\tPassword: $password\n\n"; Index: php-hosts-web/include/layout.inc diff -u php-hosts-web/include/layout.inc:1.5 php-hosts-web/include/layout.inc:1.6 --- php-hosts-web/include/layout.inc:1.5 Wed Apr 24 21:30:47 2002 +++ php-hosts-web/include/layout.inc Wed Apr 24 23:42:21 2002 @@ -185,7 +185,7 @@ echo delim(); print_link('/host-add.php', 'add your company', false, 'class="menuWhite"'); echo delim(); - print_link('/clients/', 'login', false, 'class="menuWhite"'); + print_link('/login.php', 'login', false, 'class="menuWhite"'); ?> <?php spacer(2,2); ?><br> </td>

« previous php.mirrors (#9854) next »