Jump to content

Help on Timing Issue??


tuxbuddy

Recommended Posts

HEllo Guys,

 

I have  a tool for cricket Tracking which is completely written in PHP.I need to change the ticket tracking HelpDESK tool to work for 9:00 to 6:00 rather than its 24*7 utility.

Is this possible.Since I am newbie to PHP,I need your help.

I will provide you with  the overall details once anyone wish to help me out.

Link to comment
https://forums.phpfreaks.com/topic/105567-help-on-timing-issue/
Share on other sites

This is not just a code but complete project.Its a Tool called HelpCORE which is ticket Tracking tool.

If you are ready to help me just download the project through this link :

http://freshmeat.net/projects/helpcore/ It completely free version completely written in PHP.

Are you ready to help me out??

Link to comment
https://forums.phpfreaks.com/topic/105567-help-on-timing-issue/#findComment-540796
Share on other sites

in the index.php, change the code so it says this:


<?php

/**
* HelpCORE source file 
* ====================
* 
* CVS:
* ----
* $header$
* 
* Purpose:
* --------
* Main frameset loader
* 
* Copyright:
* ----------
* Copyright (C) 2002-2003 Dennis Fleurbaaij <[email protected]>
* Copyright (C) 2002-2005 IO Software <[email protected]>
* 
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software Foundation;
* either version 2 of the License, or (at your option) any later version.
* 
* This program is distributed in the hope that it will be useful, but WITHOUT ANY 
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
* 
* You should have received a copy of the GNU General Public License along with this
* program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, 
* Cambridge, MA 02139, USA.
* 
* Please note that this software is dual licensed. For the commercial use of this 
* software you will need a Commercial License. Please see http://www.io-software.nl
* for the terms and conditions.
* 
* For more information you can contact IO Software at http://www.io-software.nl
*/
$time = date("H");
if ($time > 18 || $time < 6){
echo "<center><h1><strong>Closed</strong</h1><br />Sorry, but the ticket system is currently closed</center>";
exit();
}
else{
if( ! include( "coreapm/coreapm.php" ) )
{
die( "Cannot include CORE APM" );
} 
$GLOBALS["cache"]->no_cache = true;

// logout
if( isset( $_GET["logout"] ) )
{
$GLOBALS["security"]->secure();
$GLOBALS["security"]->do_logout(); 

// We need to hard-redirect the pages
// 
?>

  <script type="text/javascript" >
    top.location.href = "<?php echo BASE_URL . "index.php"; ?>";
  </script>

<?php
} 

// Secured people are redirected to the private part
if( $GLOBALS["security"]->is_secure() )
{
header( "location: " . BASE_URL . "module_helpcore_secure/index.php" );
die;
} 

// Unsecure people are lead to the public part
header( "location: " . BASE_URL . "module_helpcore_public/index.php" );
}
?>

Link to comment
https://forums.phpfreaks.com/topic/105567-help-on-timing-issue/#findComment-540923
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.