hdesk on intranet

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
hassonook
Posts: 3
Joined: Wed Jan 07, 2009 9:28 am

hdesk on intranet

Post by hassonook »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
hi i'm installed hdesk it is very good script in all feature i would install it on intranet (local domain) and we use outlook email, on setting it reject email & URL because was not end by (.com, .net ,etc.....) please help me to solve this problem i well thank you.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Open admin_settings_save.php in a text editor (Notepad, Wordpad) and change all hesk_validateEmail and hesk_validateURL to hesk_input
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
hassonook
Posts: 3
Joined: Wed Jan 07, 2009 9:28 am

Post by hassonook »

Hi
thank for your reply but it didn't success .
the email that i want to use is local email (outlook) (name@domain name) without (.com , .net) please help me i am waiting you .
than again.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Oh, you mean the entire help desk, not just admin settings. In this case do the same as above also in these files:
- submit_ticket.php
- profile.php
- manage_users.php
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
hassonook
Posts: 3
Joined: Wed Jan 07, 2009 9:28 am

Post by hassonook »

Hi
thank you very much
but also is didn't success
if you have entire network test on it.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Well it has to work because if you did change all instances of the above code Hesk will not check for valid emails ur URLs.

Another (simpler) way of trying this would be if you change this code in inc/common.inc.php file:

Code: Select all

/***************************
Function hesk_validateEmail()
***************************/
function hesk_validateEmail($address,$error,$required=1) {

    $address = trim($address);

    if (preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/",$address))
    {
        return $address;
    }

    if ($required) {
        hesk_error($error);
    } else {
        return '';
    }

} // END hesk_validateEmail()
to something like

Code: Select all

/***************************
Function hesk_validateEmail()
***************************/
function hesk_validateEmail($address,$error,$required=1) {

	return hesk_input($address,$required);

} // END hesk_validateEmail()
And in the same file change

Code: Select all

/***************************
Function hesk_validateURL()
***************************/
function hesk_validateURL($url,$error) {

    $url = trim($url);

    if (preg_match("/^(https?:\/\/+[\w\-]+\.[\w\-]+)/i",$url))
    {
        return $url;
    }

    hesk_error($error);

} // END hesk_validateURL()
to

Code: Select all

/***************************
Function hesk_validateURL()
***************************/
function hesk_validateURL($url,$error) {

    return hesk_input($url,$error);

} // END hesk_validateURL()
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply