| Server IP : 172.64.80.1 / Your IP : 216.73.216.175 Web Server : LiteSpeed System : Linux srv13.swhc.ca 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64 User : hongluck ( 2522) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/hongluck/public_html/old site/webcal/ |
Upload File : |
<?php
include_once 'includes/init.php';
if ( $allow_view_other != 'Y' ) {
print_header ();
etranslate("You are not authorized");
print_trailer ();
exit;
}
$updating_public = false;
if ( $is_admin && ! empty ( $public ) && $public_access == "Y" ) {
$updating_public = true;
$layer_user = "__public__";
} else {
$layer_user = $login;
}
load_user_layers ( $layer_user, 1 );
if ( strlen ( $layers[$id]['cal_layeruser'] ) > 0 &&
( $is_admin || $readonly == "N" ) ) {
$layeruser = $layers[$id]['cal_layeruser'];
dbi_query ( "DELETE FROM webcal_user_layers " .
"WHERE cal_login = '$layer_user' AND cal_layeruser = '$layeruser'" );
}
if ( $updating_public )
do_redirect ( "layers.php?public=1" );
else
do_redirect ( "layers.php" );
?>