Ejemplo n.º 1
0
             $display .= COM_refresh($_CONF['site_url'] . '/calendarjp/index.php?mode=personal&msg=26');
         } else {
             $display = COM_refresh($_CONF['site_url'] . '/index.php');
         }
     } else {
         $display = COM_refresh($_CONF['site_url'] . '/index.php');
     }
     break;
 case 'edit':
     if ($_CAJP_CONF['personalcalendars'] == 1) {
         $eid = COM_applyFilter($_GET['eid']);
         if (!empty($eid) && !COM_isAnonUser()) {
             $result = DB_query("SELECT * FROM {$_TABLES['personal_eventsjp']} WHERE (eid = '{$eid}') AND (uid = {$_USER['uid']})");
             if (DB_numRows($result) == 1) {
                 $A = DB_fetchArray($result);
                 $display .= COM_startBlock($LANG_CALJP_2[38]) . editpersonalevent($A) . COM_endBlock();
                 $display = COM_createHTMLDocument($display, array('pagetitle' => $LANG_CALJP_2[38]));
             } else {
                 $display = COM_refresh($_CONF['site_url'] . '/index.php');
             }
         } else {
             $display = COM_refresh($_CONF['site_url'] . '/index.php');
         }
     } else {
         $display = COM_refresh($_CONF['site_url'] . '/index.php');
     }
     break;
 default:
     $mode = '';
     if (isset($_GET['mode'])) {
         $mode = COM_applyFilter($_GET['mode']);
Ejemplo n.º 2
0
             $display .= COM_refresh($_CONF['site_url'] . '/calendar/index.php?mode=personal&msg=26');
         } else {
             $display = COM_refresh($_CONF['site_url'] . '/index.php');
         }
     } else {
         $display = COM_refresh($_CONF['site_url'] . '/index.php');
     }
     break;
 case 'edit':
     if ($_CA_CONF['personalcalendars'] == 1) {
         $eid = COM_applyFilter($_GET['eid']);
         if (!empty($eid) && (isset($_USER['uid']) && $_USER['uid'] > 1)) {
             $result = DB_query("SELECT * FROM {$_TABLES['personal_events']} WHERE (eid = '{$eid}') AND (uid = {$_USER['uid']})");
             if (DB_numRows($result) == 1) {
                 $A = DB_fetchArray($result);
                 $display .= COM_siteHeader('menu', $LANG_CAL_2[38]) . COM_startBlock($LANG_CAL_2[38]) . editpersonalevent($A) . COM_endBlock() . COM_siteFooter();
             } else {
                 $display = COM_refresh($_CONF['site_url'] . '/index.php');
             }
         } else {
             $display = COM_refresh($_CONF['site_url'] . '/index.php');
         }
     } else {
         $display = COM_refresh($_CONF['site_url'] . '/index.php');
     }
     break;
 default:
     $mode = '';
     if (isset($_GET['mode'])) {
         $mode = COM_applyFilter($_GET['mode']);
     }