Location: PHPKode > projects > WorkOrder TS > workorder-ts/include/pro/workorder_config_ui-free.inc.php
<?PHP $inc_dir='../';require_once $inc_dir.'magic_quotes.php';$_Il6fL=NULL;$CONF=NULL;require $inc_dir.'config-guest.inc.php';require $inc_dir.'config-user.inc.php';require $inc_dir.'conn-string-user.inc.php';require_once $inc_dir.'workorder_function_isuserauthenticated.inc.php';require_once $inc_dir.'workorder_function_general.inc.php';$CONF=_OFB10($inc_dir);$SSID=addslashes($_GET['SSID']);$_jL8tj=_OFPDC($self);if( $SSID=="" ) { $SSID=addslashes($_POST['SSID']);} if( file_exists("$inc_dir/pro/workorder_functions_pro.inc.php")==False ) { $sql="select COUNT(*) AS COUNT from ".$CONF['TableNameUsers']." where User_chksum='' OR User_chksum IS NULL";$res=mysql_query($sql,$conn) or die("Error 32156chk2");$row=mysql_fetch_array($res);$_jjQIo=$row['COUNT'];if( $_jjQIo !=0 ) { die("Invalid User accounts found, maybe it's time to purchase the Professional edition instead of screwing with the database. The Professional edition allows custom user accounts. The software is now locked until the Professional edition is installed or until the unlicensed accounts are removed. <a href=\"http://www.WorkOrderTS.com\">http://www.WorkOrderTS.com</a>");   }  }   if( _L00CR($SSID,$inc_dir,$_Il6fL, $CONF) == "FAILED" ) {   $_Ilo8J = addslashes($_SERVER['PHP_SELF']);   $_IlC1t = addslashes($_SERVER['QUERY_STRING']);   $TargetQueryPass = str_replace('=','\=',$_IlC1t);   echo("<BR>TargetURL:".$_Ilo8J);   echo("<br>Target Query: $_IlC1t<br>Self: $_jL8tj");   die('<html> <head> <meta http-equiv="refresh" content="0; url='.$_jL8tj.'login.php?TargetURLPass='.$_Ilo8J.'&amp;TargetQueryPass='.$TargetQueryPass.'"> </head> <body> <br>Connecting...<br>'.$_jL8tj.'login.php?TargetURLPass='.$_Ilo8J.'&amp;TargetQueryPass='.$TargetQueryPass.'<BR> </body> </html>');  }  if( _L01LO($SSID,$inc_dir,4, $CONF) == False ) {   die('<html><head></head><body>You are not allowed to be here</body></html>');  }  if( file_exists("$inc_dir/pro/calendar.php") == False ) {   $sql = "select COUNT(*) AS COUNT from ".$CONF['TableNameUsers']." where User_chksum='' OR User_chksum IS NULL";   $res = mysql_query($sql,$conn) or die("Error 32156chk2");   $row = mysql_fetch_array($res);   $_jjQIo = $row['COUNT'];   if( $_jjQIo != 0 ) {     die("Invalid User accounts found, maybe it's time to purchase the Professional edition instead of screwing with the database. The Professional edition allows custom user accounts. The software is now locked until the Professional edition is installed or until the unlicensed accounts are removed. <a href=\"http://www.WorkOrderTS.com\">http://www.WorkOrderTS.com</a>");} } $StoreNum=0;$_Jt0jO=stripslashes($CONF['Company Logo Location']);echo('<script type="text/javascript">    function configservicetypes()    {    window.open("config_service_types.php?SSID='.$SSID.'",     "mywindow","location=0,status=0,scrollbars=1,width=970,height=630");    }   </SCRIPT>');echo(' <a href="../../workorder.php?SSID='.$SSID.'">Back To Workorder</a><br><br>   <form method="post" action="workorder_config_save_conf-free.inc.php?SSID='.$SSID.'" name="Configure Workorder">   <input name="SaveConfigButton" value="Save Configuration" type="submit"><br>   <table   style="width: 100%; text-align: left; background-color: rgb(204, 204, 255);"   border="1" cellpadding="2" cellspacing="2">   <tbody>');if( is_numeric($StoreNum) ) { $CompanyName=stripslashes($CONF['Company Name']);echo('    <tr>    <td style="vertical-align: top;"><span    style="font-weight: bold;">Company Name</span> (255 Characters Max,    depends on characters used)<br><input value="'.htmlentities($CompanyName, ENT_QUOTES).'"    maxlength="255" size="110" tabindex="6" name="CompanyNameTXTValue"></td>    </tr>    <tr>    <td style="vertical-align: top;"><span    style="font-weight: bold;">Company Logo Location</span> (255    Characters Max, depends on characters used)<br><input    value="'.htmlentities($_Jt0jO, ENT_QUOTES).'" maxlength="255" size="110" tabindex="8"    name="CompanyLogoLocationTXTValue"><br>    Size of the Image should be around 250x50, png format works great.<br>    </td>    </tr>');} if( is_numeric($StoreNum) ) { $x=0;$Address[$x]=stripslashes($CONF["Company Address$x"]);$_jtoii[$x]=stripslashes($CONF["GoogleAddress$x"]);$_Jt1Il[$x]=stripslashes($CONF["StoreName$x"]);echo('<tr>    <td style="vertical-align: top; width: 520px;"><b>Company Address'.($x+1).':</b><br>    <textarea rows="4" name="Address'.$x.'" style="width:50%;">'.htmlentities($Address[$x],ENT_QUOTES).'</textarea><br>    Example:<br><small>1706 Pelican Court<br />Redwood City, FL 33345<br />Phone: 222-333-4444<br />Fax: 222-333-4445</small></td>    </tr>    <tr>    <td style="vertical-align: top; width: 520px;"><b>Store'.($x+1).' Google Address:</b> (255 Characters Max, depends on characters used)&nbsp;&nbsp;<br>    <input size="50" name="GoogleAddress'.$x.'" value="'.htmlentities($_jtoii[$x], ENT_QUOTES).'"><br>Please enter your street address, zip here to give google maps a start location to plan your route. This is used when you click on an address and a new Windows opens Google Maps. <br />Example: 1706 Pelican Court, 33345<br>    Google Locale URL: <input size="25" name="MappingService" value="'.$CONF['MappingService'].'"><br>    Adjust google to your country\'s URL:maps.google.de=Germany,maps.google.nl=Netherlands,maps.google.co.uk=Great Britain and so on.</td> </tr> <tr> <td style="vertical-align: top; width: 520px;"><b>Store'.($x+1).' Short Name:</b> (255 Characters Max,depends on characters used)<br> <input size="30" name="StoreName'.$x.'" value="'.htmlentities($_Jt1Il[$x], ENT_QUOTES).'"><br> This will be used like this:Checked in by:TECHNAME in:STORE SHORT NAME</td> </tr>');  }  echo(' <tr> <td style="vertical-align: top;"><span style="font-weight: bold;">Update Ticket Delay</span> (In Minutes)&nbsp;&nbsp;<input size="5" maxlength="3" tabindex="1" value="'.$CONF['UpdateTicketDelayMin'].'" name="UpdateTicketDelayMinTXTValue"><br> <span style="font-weight: bold;">0=Only Append,255 max</span><br> This Value controls the amount of time in minutes your techs have to update a ticket without leaving a trace after it has been entered into the database.The form it controls is access by clicking on "Edit  Description" on the Ticket Detail page.Once the time limit is reached,the techs will only be able to append to the problem description,this will also add a record to the ticket.&nbsp;<span style="font-weight: bold;"></span> </td> </tr> <tr> <td style="vertical-align: top;"><span style="font-weight: bold;">Instore-Rate</span> (255 Characters Max,depends on characters used)<br><input value="'.htmlentities($CONF['Rate-Instore']).'" maxlength="255" size="110" tabindex="2" name="Rate_InstoreTXTValue"><br> This Instore-Rate will be used when a checkin ticket is printed<br> </td> </tr> <tr> <td style="vertical-align: top;"><span style="font-weight: bold;">Onsite-Rate</span> (255 Characters Max,depends on characters used)<br><input value="'.htmlentities($CONF['Rate-Onsite']).'" maxlength="255" size="110" tabindex="3" name="Rate_OnsiteTXTValue"><br> This Onsite-Rate will be used when a checkin ticket is printed<br> </td> </tr> <tr> <td style="vertical-align: top;"><span style="font-weight: bold;">Disclaimer-Checkin</span> (6535 max,depends on characters used)<br> The word <b>COMPANYNAME</b> will be replaced by the program with the Company Name defined above.This will work for this disclaimer or you own.<br> <textarea tabindex="4" rows="10" name="Disclaimer_CheckinTXTValue" style="width:100%;">'.htmlentities($CONF['Disclaimer-Checkin'], ENT_QUOTES).'</textarea><br> This Disclaimer will be used when a checkin ticket is printed.<br> <br /> <b>Customize Ticket Printout</b><br /> Number of Stubs,set to 0 (zero) to disable.<input value="'.$CONF['TicketStubAmmount'].'" maxlength="5" size="5" name="TicketStubAmmount"> Ticket Width:<input value="'.$CONF['PrintTicketWidth'].'" maxlength="5" size="5" name="PrintTicketWidth"><br> </td> </tr> <tr> <td style="vertical-align: top;"><span style="font-weight: bold;">Back Stop Control</span> ( <span style="font-weight: bold;">0</span>=Disabled,<span style="font-weight: bold;">1</span>=Enabled )&nbsp;&nbsp;&nbsp;<input value="'.$CONF['BackStopCont'].'" maxlength="1" size="5" tabindex="5" name="BackStopContTXTValue"><br> This will enable a control mechanism which will prevent double entries should a user use the back button to correct a mistake and then resubmitting it which would create a second ticket/customer.It works by inserting a timestamp at creation time which will be searched for in the database before an insert occurs.This option might add a some load to systems with a lot of techs,multiple ticket updates per second,but it should still be better then searching for double tickets.<br> </td> </tr> <tr> <td style="vertical-align: top;"> <span style="font-weight: bold;">WorkOrder TS Service Type Control</span><br> Here you can change the Service Types and related options used by WorkOrderTS.Click here to open the configuration popup.<a href="javascript: configservicetypes()">Config Service Types</a> </td> </tr> <tr> <td style="vertical-align: top;"><span style="font-weight: bold;">User Accounts and Settings</span><br> Here you can control your User Accounts.You can Manage your Techs,create new password and set other options.<p><u>Authentication Timeout</u><br> This Variable controls after how many minutes after login the session is supposed to be considered untrusted.Once the time in minutes has elapsed,a login is forced.<br> <input maxlength="254" size="60" value="'.$CONF['AuthenticationTimeoutMin'].'" name="AuthenticationTimeoutMinTXT"></p> <p> <u>Account Password</u><br> Change your account passwords,enter a new password and click Save.<br> Admin Password:<input maxlength="35" size="20" name="AdminPassword"><br /> Tech Password:&nbsp;<input maxlength="35" size="20" name="TechPassword"><br /> </p> </td> </tr> </tbody> </table> <br> <input name="SaveConfigButton" value="Save Configuration" type="submit"><br> </form>');  ?>
Return current item: WorkOrder TS