Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560 [2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85 [3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50 [4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13 [5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
| Server IP : 94.177.8.99 / Your IP : 216.73.217.165 Web Server : Apache/2.4.58 (Ubuntu) System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/hopeinstoughton_www/wp-content/plugins/youtube-schedule/ |
Upload File : |
<?php
// Install the latest timezone patch (data) on your windows machine, then export the relevant parts of the registry here
$zonetext = <<<BLOCK
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Eastern Standard Time]
"MUI_Display"="@tzres.dll,-110"
"MUI_Dlt"="@tzres.dll,-111"
"MUI_Std"="@tzres.dll,-112"
"Display"="(UTC-05:00) Eastern Time (US & Canada)"
"Dlt"="Eastern Daylight Time"
"Std"="Eastern Standard Time"
"TZI"=hex:2c,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0b,00,00,00,01,00,02,00,00,\
00,00,00,00,00,00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Eastern Standard Time\Dynamic DST]
"FirstEntry"=dword:000007d6
"LastEntry"=dword:000007d7
"2006"=hex:2c,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0a,00,00,00,05,00,02,00,\
00,00,00,00,00,00,00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00
"2007"=hex:2c,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0b,00,00,00,01,00,02,00,\
00,00,00,00,00,00,00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00
BLOCK;
header('Content-type: text/plain');
$is64 = crc32('a') > 0; // this will be negative on 32bit systems
if ($is64) {
eval("\$SIGN_EXTEND_CONSTANT = 0xFFFFffff00000000;");
} else {
$SIGN_EXTEND_CONSTANT = 0;
}
$data = ConvertZoneText($zonetext);
echo "// Paste this in to youtube-schedule.php, replacing the old text:\n";
echo '$this->TIMEZONE = ' . var_export($data, 1) . ";\n";
function ConvertZoneText($text) {
$lines = explode("\n", $text);
$c = count($lines);
$category = '';
$output = array();
for($i = 0; $i < $c; $i++) {
$line = trim($lines[$i]);
while (substr($line, -1) == '\\' && $i < $c - 1) {
$i++;
$next = trim($lines[$i]);
$line = substr($line, 0, -1) . $next;
}
$p = strpos($line, '=');
if (preg_match('~^\[(.*)\]$~', $line, $match)) {
$category = str_replace('\\', '/', $match[1]);
$category = basename($category);
if ($category != 'Dynamic DST') $category = 'base';
} elseif (($p = strpos($line, '=')) !== FALSE) {
$key = strtolower(str_replace('"', '', substr($line, 0, $p)));
$value = substr($line, $p + 1);
if (substr($value, 0, 6) == 'dword:') {
list($filler, $value) = explode(':', $value);
$value = intval($value, 16);
} elseif (substr($value, 0, 1) == '"') {
$value = substr($value, 1, -1);
} elseif (substr($value, 0, 4) == 'hex:') {
list($filler, $value) = explode(':', $value);
$value = UnpackHex($value);
if ($category == 'Dynamic DST') {
$output[$key] = $value;
} else {
$output[0] = $value;
}
$value = NULL;
}
if ($value !== NULL) {
if ($category == '') {
$output[$key] = $value;
} else {
$output[$category][$key] = $value;
}
}
}
}
unset($output['Dynamic DST']);
unset($output['base']['mui_display']);
unset($output['base']['mui_dlt']);
unset($output['base']['mui_std']);
return $output;
}
function UnpackHex($value) {
$items = explode(',', $value);
$output = '';
foreach($items as $item) {
$n = intval($item, 16);
$output .= chr($n);
}
if (strlen($output) == 44) {
$v = unpack('Vbias/Vunknown/Vbias_dls/vstd_yy/vstd_mm/vstd_dow/vstd_dd/vstd_hh/vstd_nn/vunused/vunused/vdls_yy/vdls_mm/vdls_dow/vdls_dd/vdls_hh/vdls_nn/vunused/vunused', $output);
$v['bias_dls'] = signextend($v['bias_dls']);
$v['dls'] = array('yy' => $v['dls_yy'], 'mm' => $v['dls_mm'], 'dow' => $v['dls_dow'], 'dd' => $v['dls_dd'], 'hh' => $v['dls_hh'], 'nn' => $v['dls_nn']);
$v['std'] = array('yy' => $v['std_yy'], 'mm' => $v['std_mm'], 'dow' => $v['std_dow'], 'dd' => $v['std_dd'], 'hh' => $v['std_hh'], 'nn' => $v['std_nn']);
foreach(array('unknown', 'unused', 'dls_yy', 'dls_mm', 'dls_dow', 'dls_dd', 'dls_hh', 'dls_nn', 'std_yy', 'std_mm', 'std_dow', 'std_dd', 'std_hh', 'std_nn') as $item) {
unset($v[$item]);
}
return $v;
} else {
return $value;
}
}
function signextend($value) {
global $SIGN_EXTEND_CONSTANT;
if ($SIGN_EXTEND_CONSTANT) {
$value &= 0xFFFFFFFF;
if (($value >> 31) & 1) $value |= $SIGN_EXTEND_CONSTANT;
}
return $value;
}