Current time: 04-20-2024, 02:31 PM Hello There, Guest! (LoginRegister)


Post Reply 
Domain alias forward edition
Author Message
greg Offline
Junior Member
*

Posts: 27
Joined: Apr 2007
Reputation: 1
Post: #1
Domain alias forward edition
I don't like the actual form that show domains alias and the system for enable/disable the forward.

The main problem is that the domain alias list don't show the forward url ! We can only see if a forward is set or not with the enable/disable switch (and it's not very clear to understand). But if a forward exist, the redirect url can't be see...

Worst of all, if you click on disable, then the forward is deleted, and you never see the url... no confirmation about this action, and you can only enable the forward again... if you know what the mystery url must be !

I have two little modifications to propose (i'm working with the last nightly) :
Code:
file /var/www/ispcp/gui/reseller/edit_alias.php, line 65 :
//    check_for_disable($_GET['edit_id']);

file /var/www/ispcp/gui/reseller/domain_alias.php, line 346 :
//              $als_fwd = ($als_fwd == 'no') ? tr('disabled') : tr('enabled');

I just comment this two lines to avoid the auto-deletion of existing alias (then you can edit it, and set it to 'no' to disable) and to show the forward url instead of 'disable'/'enable'

Of course the same things would be made into the custumer interface, maybe like this :

file /var/www/ispcp/gui/client/manage_domains.php :
Code:
function gen_user_als_forward($als_id, $als_status, $url_forward)
{
  global $cfg;

  if ($url_forward === 'no') {
    if ($als_status === 'ok') {
//      return array(tr('Enable'), "enable_als_fwd.php?id=$als_id");
      return array(tr('None'), "enable_als_fwd.php?id=$als_id");
    } else {
      return array(tr('N/A'), '#');
    }
  } else {
    if ($als_status === 'ok') {
//    return array(tr('Disable'), "disable_als_fwd.php?id=$als_id");
      return array($url_forward, "enable_als_fwd.php?id=$als_id");
    } else {
      return array(tr('N/A'), '#');
    }
  }
}

What do you think about it ?
07-11-2007 03:04 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Domain alias forward edition - greg - 07-11-2007 03:04 PM
RE: Domain alias forward edition - BeNe - 07-11-2007, 03:39 PM
RE: Domain alias forward edition - xister - 07-11-2007, 03:48 PM
RE: Domain alias forward edition - greg - 07-11-2007, 04:20 PM
RE: Domain alias forward edition - Zothos - 07-11-2007, 07:12 PM
RE: Domain alias forward edition - raphael - 07-12-2007, 06:29 AM
RE: Domain alias forward edition - greg - 07-12-2007, 07:11 AM
RE: Domain alias forward edition - raphael - 07-12-2007, 07:20 AM
RE: Domain alias forward edition - greg - 07-12-2007, 08:49 AM
RE: Domain alias forward edition - raphael - 07-12-2007, 09:56 AM
RE: Domain alias forward edition - RatS - 07-13-2007, 03:34 AM
RE: Domain alias forward edition - greg - 07-13-2007, 03:43 AM
RE: Domain alias forward edition - RatS - 07-13-2007, 04:19 AM
RE: Domain alias forward edition - greg - 07-13-2007, 06:26 AM
RE: Domain alias forward edition - RatS - 07-13-2007, 06:30 AM
RE: Domain alias forward edition - BeNe - 07-13-2007, 04:51 PM
RE: Domain alias forward edition - greg - 07-16-2007, 02:42 PM
RE: Domain alias forward edition - RatS - 07-17-2007, 08:17 AM
RE: Domain alias forward edition - greg - 07-17-2007, 06:57 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)