$v){ if(!is_array($v))${urldecode($k)}=urldecode($v); } extract($HTTP_GET_VARS); if(!@include './data/global.php'){ echo "Can't open ./data/global.php"; exit; } extract($PATHS); include $path_to_calendar."calendar.php"; $calendar->is_admin = true; $gl = read_data($calendar->s_DataDir.'global.txt'); if(is_array($gl)) reset($gl); $name or $name = key($gl); $calendar->init($name); //exit; include $calendar->s_FilesDir.'auth_calendario.php'; $g_text = $calendar->read_file("groups",".php",1); $g_text = str_replace("","",$g_text); $a_groups = unserialize($g_text); if($addname) { if($addname === htmlspecialchars($addname)) { $gl = $calendar->create_new($addname); }else{ $c_err = 'Calendar name $addname incorect.'; } } if($del_c) { $calendar->drop($sl_name); $gl = read_data($calendar->s_DataDir.'global.txt'); if(is_array($gl)) reset($gl); $name or $name = key($gl); $calendar->init($name); } include $calendar->s_FilesDir.'zones.php'; $action=$page; if($upload){ if($HTTP_POST_FILES['p']['tmp_name']) { @copy($HTTP_POST_FILES['p']['tmp_name'],$calendar->s_ImgDir."p_".$calendar->s_calendar_index.".gif"); } if($HTTP_POST_FILES['n']['tmp_name']) { @copy($HTTP_POST_FILES['n']['tmp_name'],$calendar->s_ImgDir."n_".$calendar->s_calendar_index.".gif"); } if($HTTP_POST_FILES['py']['tmp_name']) { @copy($HTTP_POST_FILES['py']['tmp_name'],$calendar->s_ImgDir."py_".$calendar->s_calendar_index.".gif"); } if($HTTP_POST_FILES['ny']['tmp_name']) { @copy($HTTP_POST_FILES['ny']['tmp_name'],$calendar->s_ImgDir."ny_".$calendar->s_calendar_index.".gif"); } header("Location: calendario.php?CLd=$CLd&CLm=$CLm&CLy=$CLy&name=".$calendar->s_calendar_index."&type=$type&action=$action&page=s"); exit; } $page or $page = 'e'; $CLd = $calendar->a_selected_date['d']; $CLm = $calendar->a_selected_date['m']; $CLy = $calendar->a_selected_date['y']; ?> Calendario Online de NoMeAcuerdo.com
s_calendar_index.".html"; $calendar->put_in_file($to,$header_file); $to=$path_to_data."footer_".$calendar->s_calendar_index.".html"; $calendar->put_in_file($to,$footer_file); } if($Update) { foreach($calendar->a_template as $k => $v){ if(is_array(${$k})) { $calendar->a_template[$k] = ${$k}; } else if(isset(${$k})) { $calendar->a_template[$k] = stripslashes(${$k}); } } foreach($calendar->a_look as $k => $v){ if(is_array(${$k})) { $calendar->a_look[$k] = ${$k}; } else if(isset(${$k})) { $calendar->a_look[$k] = stripslashes(${$k}); } } foreach($calendar->a_redirect as $k => $v){ if(is_array(${$k})) { $calendar->a_redirect[$k] = ${$k}; } else if(isset(${$k})) { $calendar->a_redirect[$k] = stripslashes(${$k}); } } foreach($calendar->a_localization as $k => $v){ if(is_array(${$k})) { $calendar->a_localization[$k] = ${$k}; } else if(isset(${$k})) { $calendar->a_localization[$k] = stripslashes(${$k}); } } $calendar->a_template['timezone'] = $timezones[$timezone][0]; $calendar->a_template['timezoneID'] = $timezone; if(!$is_american) { $calendar->a_template['is_american'] = 0; } if(!$is_vertical) { $calendar->a_template['is_vertical'] = 0; } if(!$show_year) { $calendar->a_template['show_year'] = 0; } if(!$is_show_title) { $calendar->a_template['is_show_title'] = 0; } $calendar->put_config(); $calendar->save_conf(); header("Location: index.php?CLd=$CLd&CLm=$CLm&CLy=$CLy&name=$name&type=$type&action=$action&page=$page"); exit; } if($Preview) { $s = array_merge($calendar->a_template,$calendar->a_look,$calendar->a_localization); foreach($s as $k => $v){ if(is_array(${$k})) { $s[$k] = ${$k}; } else if(isset(${$k})) { $s[$k] = stripslashes(${$k}); } } $calendar->put_config($s); header("Location: index.php?CLd=$CLd&CLm=$CLm&CLy=$CLy&name=$name&type=$type&action=$action&page=$page"); exit; } if($Reset_to_default) { $calendar->is_created = true; $calendar->reset_default(); header("Location: index.php?CLd=$CLd&CLm=$CLm&CLy=$CLy&name=$name&type=$type&action=s&page=s&__Created=1"); exit; } if($Reset_to_save) { $calendar->is_created = true; $calendar->reset_conf($name); header("Location: index.php?CLd=$CLd&CLm=$CLm&CLy=$CLy&name=$name&type=$type&action=s&page=s&__Created=1"); exit; } if($Apply) { $calendar->is_created = 1; foreach($calendar->a_template as $k => $v){ if(is_array(${$k})) { $calendar->a_template[$k] = ${$k}; } else if(isset(${$k})) { $calendar->a_template[$k] = stripslashes(${$k}); } } foreach($calendar->a_redirect as $k => $v){ if(is_array(${$k})) { $calendar->a_redirect[$k] = ${$k}; } else if(isset(${$k})) { $calendar->a_redirect[$k] = stripslashes(${$k}); } } foreach($calendar->a_look as $k => $v){ if(is_array(${$k})) { $calendar->a_look[$k] = ${$k}; } else if(isset(${$k})) { $calendar->a_look[$k] = stripslashes(${$k}); } } foreach($calendar->a_localization as $k => $v){ if(is_array(${$k})) { $calendar->a_localization[$k] = ${$k}; } else if(isset(${$k})) { $calendar->a_localization[$k] = stripslashes(${$k}); } } $calendar->a_template['timezone'] = $timezones[$timezone][0]; $calendar->a_template['timezoneID'] = $timezone; if(!$is_american) { $calendar->a_template['is_american'] = 0; } if(!$is_show_title) { $calendar->a_template['is_show_title'] = 0; } if(!$is_vertical) { $calendar->a_template['is_vertical'] = 0; } if(!$show_year) { $calendar->a_template['show_year'] = 0; } $calendar->apply_put_config(); header("Location: index.php?CLd=$CLd&CLm=$CLm&CLy=$CLy&name=$name&type=$type&action=s&page=s&__Created=1"); exit; } $calendar->show_calendar(); ?>