⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 devmode.php

📁 jsp程序开发系统
💻 PHP
字号:
<?php
// +-------------------------------------------------------------+
// | DeskPRO v [2.0.1 Production]
// | Copyright (C) 2001 - 2004 Headstart Solutions Limited
// | Supplied by WTN-WDYL
// | Nullified by WTN-WDYL
// | Distribution via WebForum, ForumRU and associated file dumps
// +-------------------------------------------------------------+
// | DESKPRO IS NOT FREE SOFTWARE
// +-------------------------------------------------------------+
// | License ID : Full Enterprise License =) ...
// | License Owner : WTN-WDYL Team
// +-------------------------------------------------------------+
// | $RCSfile: devmode.php,v $
// | $Date: 2004/02/10 01:34:25 $
// | $Revision: 1.3 $
// +-------------------------------------------------------------+
// | File Details:
// | - User interface template maintenance, import, and export
// |   (administration interface)
// +-------------------------------------------------------------+

error_reporting(E_ALL & ~E_NOTICE);

include("./global.php");
include "./../includes/functions/devmode_functions.php";

########################################################################################
###############################   DEVELOPER ONLY SECTION    ###############################
########################################################################################

if ($_REQUEST['do'] == 'do_make_tickets') {
	if (!$_REQUEST['confirm'] AND !$_REQUEST['location']) {
		$_REQUEST['do'] = 'make_tickets';
	} else {
		if (!$_REQUEST['ticket_count']) {
			$_REQUEST['ticket_count'] = 0;
		}
		echo "Creating more tickets, starting at $_REQUEST[ticket_count]<br />";
		$total_so_far = load_fake_tickets($_REQUEST['location'], $_REQUEST['ticket_count']);
		if (!($total_so_far % 1000)) { // If it's not a multiple of 1,000, something went wrong
			if ($total_so_far < 250000) { // Stop at 250,000 tickets.
				$dir = urlencode($_REQUEST['location']);
				jump("devmode.php?do=do_make_tickets&confirm=1&ticket_count=$total_so_far&location=$dir", 'Creating more tickets...');
			}
		}
		echo "Done. Created $total_so_far tickets.<br />";
	}
}

#################### ADD 250,000 TICKETS TO DATABASE FOR STRESS TESTING ######################
if ($_REQUEST['do'] == 'make_tickets') {
	developer_check();

	admin_header('Styles', 'Load 250,000 Tickets');

	$table[] = array('<b>Location to load text fragments from</b>', form_input('location'));
	$table[] = array('<b>Confirm</b><br />This seriously will load lots of tickets into your helpdesk. 
		This will not be fun to clean up and you\'ll probably want to reinitialize your database
		after running this and finishing your tests.', form_checkbox_single('confirm', 1));

	table_header('Load 250,000 Tickets', 'devmode.php', array('do' => 'do_make_tickets'));
	table_content(NULL, $table);
	table_footer('Execute');
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -