Project

General

Profile

« Previous | Next » 

Revision 199d8121

Added by Ermal Luçi over 16 years ago

Hrm, pppoe reset function seems to have missed review while doing whole other changes.

View differences:

usr/local/www/interfaces.php
39 39
##|*MATCH=interfaces.php*
40 40
##|-PRIV
41 41

  
42
require("guiconfig.inc");
43

  
42 44
if ($_REQUEST['if'])
43 45
	$if = $_REQUEST['if'];
44 46
else
......
48 50
define("CRON_WEEKLY_PATTERN", "0 0 * * 0");
49 51
define("CRON_DAILY_PATTERN", "0 0 * * *");
50 52
define("CRON_HOURLY_PATTERN", "0 * * * *");
51
define("CRON_PPPOE_CMD_FILE", "/etc/pppoerestart");
52
define("CRON_PPPOE_CMD", "#!/bin/sh\necho '<?php require(\"interfaces.inc\"); interfaces_wan_pppoe_restart($if); services_dyndns_reset($if); ?>' | /usr/local/bin/php -q");
53
define("CRON_PPPOE_CMD_FILE", "{$g['varetc_path']}/pppoe{$if}restart");
54
define("CRON_PPPOE_CMD", "#!/bin/sh\n/usr/bin/touch /tmp/filter_dirty");
53 55

  
54 56
function getMPDCRONSettings() {
55 57
  global $config;
......
83 85
        return preg_replace('/[^a-z|_|0-9]/i','',$string);
84 86
}
85 87

  
86
require("guiconfig.inc");
87

  
88 88
if (!is_array($config['gateways']['gateway_item']))
89 89
	$config['gateways']['gateway_item'] = array();
90 90
$a_gateways = &$config['gateways']['gateway_item'];

Also available in: Unified diff