Jump to content

  •  

  • Tutorial info Visit support topic

    • Added on: Feb 09 2009 11:07 PM
    • Date Updated: Feb 10 2009 12:42 AM
    • Views: 1431
     


    * * * * *
    0 Ratings

    (T23) Ticket System 1.1 x (DP23) OS Detector 1.1: OS on users online list of Ticket System

    Posted by Adriano Faria on Feb 09 2009 11:07 PM
    Requirements:
    This tutorial will show the Operating system of users on Ticket System online list.

    Open sources/lib/func_ticketsystem.php and find:

    'running_time' => $ar_time,
    Add below:

    'dp23_os'	  => $this->ipsclass->d_os->op_sys,
    Find:

    			$this->ipsclass->DB->build_query(
       array( 'select' => 'id, member_id, member_name, login_type,
       running_time, member_group',
    Change to:

    			$this->ipsclass->DB->build_query(
       array( 'select' => 'id, member_id, member_name, login_type,
       running_time, member_group, dp23_os',
    Find:

    					if ( empty( $cached[ $result['member_id'] ] ) )
       
    					   {
    Add below:

    						//-----------------------------------------
       
    						   // ((DP23) Operating System Detector
       
    						   //-----------------------------------------
       
    						   if(
       $this->ipsclass->vars['dp23_osd_enable'] AND in_array(
       $this->ipsclass->member['mgroup'], explode( ",",
       $this->ipsclass->vars['dp23_osd_groups'] ) ) )
       
    						   {
       
    								$active['NAMES'] .= $this->ipsclass->d_os->set_image($result['dp23_os']);
       
    						   }
    Screenshot:

    Posted Image


    Powered by Tutorials 1.4.1 © 2012, by Michael McCune