$ret = DB_setMessage($from, 6, 1, $msg, $msg_url, $mail_group, $to_adr); if (!$ret == 1) { debug('ERROR creating mail:' . $ret); return; } // abschicken ... _sendpendingmails(); } switch ($myAction) { default: break; case 'delete': _delete($message_ID); break; case 'change': _change($message_ID); break; case 'mailform': _showform(); break; case 'inbox': _showInbox(); break; case 'outbox': _showOutbox(); break; case 'send': _sendmail(); break; case 'sendp': _sendpendingmails();
<?php /** * TestGuest Version1.0 * ================================================ * Copy 2014 * Web: http://www.yc60.com * ================================================ * Author:zhangshuhui * Date: 2014-9-5 */ include 'includes/global.func.php'; if (isset($_GET['filename']) && isset($_GET['percent'])) { _thumb($_GET['filename'], $_GET['percent']); } if (isset($_GET['filename']) && isset($_GET['per_w']) && isset($_GET['per_h'])) { _change($_GET['filename'], $_GET['per_w'], $_GET['per_h']); }
* returns: message string (green/red) */ function _change($lineup_ID, $type_ID) { global $dbi; if ($lineup_ID > 0) { $qry = 'UPDATE tblteamplayer set ltype=' . $type_ID . ' WHERE lid=' . $lineup_ID . ' limit 1'; $presult = sql_query($qry, $dbi); } else { $presult = 0; } if ($presult == 1) { echo "<font color=\"green\">Success</font>"; } else { echo "<font color=\"red\">Error</font>"; } } switch ($myAction) { default: _blank(); break; case "save": _save($lineup_ID, $event_ID, $team_ID, $player_ID); break; case "remove": _remove($lineup_ID); break; case "change": _change($lineup_ID, $type_ID); break; }