Back to index

d-push  2.0
z-push-admin.php
Go to the documentation of this file.
00001 #!/usr/bin/php
00002 <?php
00003 /***********************************************
00004 * File      :   z-push-admin.php
00005 * Project   :   Z-Push
00006 * Descr     :   This is a small command line
00007 *               client to see and modify the
00008 *               wipe status of Zarafa users.
00009 *
00010 * Created   :   14.05.2010
00011 *
00012 * Copyright 2007 - 2012 Zarafa Deutschland GmbH
00013 *
00014 * This program is free software: you can redistribute it and/or modify
00015 * it under the terms of the GNU Affero General Public License, version 3,
00016 * as published by the Free Software Foundation with the following additional
00017 * term according to sec. 7:
00018 *
00019 * According to sec. 7 of the GNU Affero General Public License, version 3,
00020 * the terms of the AGPL are supplemented with the following terms:
00021 *
00022 * "Zarafa" is a registered trademark of Zarafa B.V.
00023 * "Z-Push" is a registered trademark of Zarafa Deutschland GmbH
00024 * The licensing of the Program under the AGPL does not imply a trademark license.
00025 * Therefore any rights, title and interest in our trademarks remain entirely with us.
00026 *
00027 * However, if you propagate an unmodified version of the Program you are
00028 * allowed to use the term "Z-Push" to indicate that you distribute the Program.
00029 * Furthermore you may use our trademarks where it is necessary to indicate
00030 * the intended purpose of a product or service provided you use it in accordance
00031 * with honest practices in industrial or commercial matters.
00032 * If you want to propagate modified versions of the Program under the name "Z-Push",
00033 * you may only do so if you have a written permission by Zarafa Deutschland GmbH
00034 * (to acquire a permission please contact Zarafa at trademark@zarafa.com).
00035 *
00036 * This program is distributed in the hope that it will be useful,
00037 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00038 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00039 * GNU Affero General Public License for more details.
00040 *
00041 * You should have received a copy of the GNU Affero General Public License
00042 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00043 *
00044 * Consult LICENSE file for details
00045 ************************************************/
00046 
00047 include('lib/core/zpushdefs.php');
00048 include('lib/core/zpush.php');
00049 include('lib/core/stateobject.php');
00050 include('lib/core/syncparameters.php');
00051 include('lib/core/bodypreference.php');
00052 include('lib/core/contentparameters.php');
00053 include('lib/core/synccollections.php');
00054 include('lib/core/zlog.php');
00055 include('lib/core/statemanager.php');
00056 include('lib/core/streamer.php');
00057 include('lib/core/asdevice.php');
00058 include('lib/core/interprocessdata.php');
00059 include('lib/core/loopdetection.php');
00060 include('lib/exceptions/exceptions.php');
00061 include('lib/utils/utils.php');
00062 include('lib/utils/zpushadmin.php');
00063 include('lib/request/request.php');
00064 include('lib/request/requestprocessor.php');
00065 include('lib/interface/ibackend.php');
00066 include('lib/interface/ichanges.php');
00067 include('lib/interface/iexportchanges.php');
00068 include('lib/interface/iimportchanges.php');
00069 include('lib/interface/isearchprovider.php');
00070 include('lib/interface/istatemachine.php');
00071 include('lib/syncobjects/syncobject.php');
00072 include('lib/syncobjects/syncbasebody.php');
00073 include('lib/syncobjects/syncbaseattachment.php');
00074 include('lib/syncobjects/syncmailflags.php');
00075 include('lib/syncobjects/syncrecurrence.php');
00076 include('lib/syncobjects/syncappointment.php');
00077 include('lib/syncobjects/syncappointmentexception.php');
00078 include('lib/syncobjects/syncattachment.php');
00079 include('lib/syncobjects/syncattendee.php');
00080 include('lib/syncobjects/syncmeetingrequestrecurrence.php');
00081 include('lib/syncobjects/syncmeetingrequest.php');
00082 include('lib/syncobjects/syncmail.php');
00083 include('lib/syncobjects/syncnote.php');
00084 include('lib/syncobjects/synccontact.php');
00085 include('lib/syncobjects/syncfolder.php');
00086 include('lib/syncobjects/syncprovisioning.php');
00087 include('lib/syncobjects/synctaskrecurrence.php');
00088 include('lib/syncobjects/synctask.php');
00089 include('lib/syncobjects/syncoofmessage.php');
00090 include('lib/syncobjects/syncoof.php');
00091 include('lib/syncobjects/syncuserinformation.php');
00092 include('lib/syncobjects/syncdeviceinformation.php');
00093 include('lib/syncobjects/syncdevicepassword.php');
00094 include('lib/syncobjects/syncitemoperationsattachment.php');
00095 include('config.php');
00096 include('version.php');
00097 
00102 /************************************************
00103  * MAIN
00104  */
00105     define('BASE_PATH_CLI',  dirname(__FILE__) ."/");
00106     set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH_CLI);
00107     try {
00108         ZPush::CheckConfig();
00109         ZPushAdminCLI::CheckEnv();
00110         ZPushAdminCLI::CheckOptions();
00111 
00112         if (! ZPushAdminCLI::SureWhatToDo()) {
00113             // show error message if available
00114             if (ZPushAdminCLI::GetErrorMessage())
00115                 echo "ERROR: ". ZPushAdminCLI::GetErrorMessage() . "\n";
00116 
00117             echo ZPushAdminCLI::UsageInstructions();
00118             exit(1);
00119         }
00120 
00121         ZPushAdminCLI::RunCommand();
00122     }
00123     catch (ZPushException $zpe) {
00124         die(get_class($zpe) . ": ". $zpe->getMessage() . "\n");
00125     }
00126 
00127 
00128 /************************************************
00129  * Z-Push-Admin CLI
00130  */
00131 class ZPushAdminCLI {
00132     const COMMAND_SHOWALLDEVICES = 1;
00133     const COMMAND_SHOWDEVICESOFUSER = 2;
00134     const COMMAND_SHOWUSERSOFDEVICE = 3;
00135     const COMMAND_WIPEDEVICE = 4;
00136     const COMMAND_REMOVEDEVICE = 5;
00137     const COMMAND_RESYNCDEVICE = 6;
00138     const COMMAND_CLEARLOOP = 7;
00139 
00140     static private $command;
00141     static private $user = false;
00142     static private $device = false;
00143     static private $errormessage;
00144 
00151     static public function UsageInstructions() {
00152         return  "Usage:\n\tz-push-admin.php -a ACTION [options]\n\n" .
00153                 "Parameters:\n\t-a list/wipe/remove/resync/clearloop\n\t[-u] username\n\t[-d] deviceid\n\n" .
00154                 "Actions:\n\tlist\t\t\t\t Lists all devices and synchronized users\n" .
00155                 "\tlist -u USER\t\t\t Lists all devices of user USER\n" .
00156                 "\tlist -d DEVICE\t\t\t Lists all users of device DEVICE\n" .
00157                 "\twipe -u USER\t\t\t Remote wipes all devices of user USER\n" .
00158                 "\twipe -d DEVICE\t\t\t Remote wipes device DEVICE\n" .
00159                 "\twipe -u USER -d DEVICE\t\t Remote wipes device DEVICE of user USER\n" .
00160                 "\tremove -u USER\t\t\t Removes all state data of all devices of user USER\n" .
00161                 "\tremove -d DEVICE\t\t Removes all state data of all users synchronized on device DEVICE\n" .
00162                 "\tremove -u USER -d DEVICE\t Removes all related state data of device DEVICE of user USER\n" .
00163                 "\tresync -u USER -d DEVICE\t Resynchronizes all data of device DEVICE of user USER\n" .
00164                 "\tclearloop\t\t\t Clears system wide loop detection data\n" .
00165                 "\tclearloop -d DEVICE -u USER\t Clears all loop detection data of a device DEVICE and an optional user USER\n" .
00166                 "\n";
00167     }
00168 
00175     static public function CheckEnv() {
00176         if (!isset($_SERVER["TERM"]) || !isset($_SERVER["LOGNAME"]))
00177             self::$errormessage = "This script should not be called in a browser.";
00178 
00179         if (!function_exists("getopt"))
00180             self::$errormessage = "PHP Function getopt not found. Please check your PHP version and settings.";
00181     }
00182 
00189     static public function CheckOptions() {
00190         if (self::$errormessage)
00191             return;
00192 
00193         $options = getopt("u:d:a:");
00194 
00195         // get 'user'
00196         if (isset($options['u']) && !empty($options['u']))
00197             self::$user = trim($options['u']);
00198         else if (isset($options['user']) && !empty($options['user']))
00199             self::$user = trim($options['user']);
00200 
00201         // get 'device'
00202         if (isset($options['d']) && !empty($options['d']))
00203             self::$device = trim($options['d']);
00204         else if (isset($options['device']) && !empty($options['device']))
00205             self::$device = trim($options['device']);
00206 
00207         // get 'action'
00208         $action = false;
00209         if (isset($options['a']) && !empty($options['a']))
00210             $action = strtolower(trim($options['a']));
00211         elseif (isset($options['action']) && !empty($options['action']))
00212             $action = strtolower(trim($options['action']));
00213 
00214         // get a command for the requested action
00215         switch ($action) {
00216             // list data
00217             case "list":
00218                 if (self::$user === false && self::$device === false)
00219                     self::$command = self::COMMAND_SHOWALLDEVICES;
00220 
00221                 if (self::$user !== false)
00222                     self::$command = self::COMMAND_SHOWDEVICESOFUSER;
00223 
00224                 if (self::$device !== false)
00225                     self::$command = self::COMMAND_SHOWUSERSOFDEVICE;
00226                 break;
00227 
00228             // remove wipe device
00229             case "wipe":
00230                 if (self::$user === false && self::$device === false)
00231                     self::$errormessage = "Not possible to execute remote wipe. Device, user or both must be specified.";
00232                 else
00233                     self::$command = self::COMMAND_WIPEDEVICE;
00234                 break;
00235 
00236             // remove device data of user
00237             case "remove":
00238                 if (self::$user === false && self::$device === false)
00239                     self::$errormessage = "Not possible to remove data. Device, user or both must be specified.";
00240                 else
00241                     self::$command = self::COMMAND_REMOVEDEVICE;
00242                 break;
00243 
00244             // resync a device
00245             case "resync":
00246             case "re-sync":
00247             case "sync":
00248             case "resynchronize":
00249             case "re-synchronize":
00250             case "synchronize":
00251                 if (self::$user === false || self::$device === false)
00252                     self::$errormessage = "Not possible to resynchronize device. Device and user must be specified.";
00253                 else
00254                     self::$command = self::COMMAND_RESYNCDEVICE;
00255                 break;
00256 
00257             // clear loop detection data
00258             case "clearloop":
00259             case "clearloopdetection":
00260                 self::$command = self::COMMAND_CLEARLOOP;
00261                 break;
00262 
00263 
00264             default:
00265                 self::UsageInstructions();
00266         }
00267     }
00268 
00276     static public function SureWhatToDo() {
00277         return isset(self::$command);
00278     }
00279 
00286     static public function GetErrorMessage() {
00287         return (isset(self::$errormessage))?self::$errormessage:"";
00288     }
00289 
00296     static public function RunCommand() {
00297         echo "\n";
00298         switch(self::$command) {
00299             case self::COMMAND_SHOWALLDEVICES:
00300                 self::CommandShowDevices();
00301                 break;
00302 
00303             case self::COMMAND_SHOWDEVICESOFUSER:
00304                 self::CommandShowDevices();
00305                 break;
00306 
00307             case self::COMMAND_SHOWUSERSOFDEVICE:
00308                 self::CommandDeviceUsers();
00309                 break;
00310 
00311             case self::COMMAND_WIPEDEVICE:
00312                 if (self::$device)
00313                     echo sprintf("Are you sure you want to REMOTE WIPE device '%s' [y/N]: ", self::$device);
00314                 else
00315                     echo sprintf("Are you sure you want to REMOTE WIPE all devices of user '%s' [y/N]: ", self::$user);
00316 
00317                 $confirm  =  strtolower(trim(fgets(STDIN)));
00318                 if ( $confirm === 'y' || $confirm === 'yes')
00319                     self::CommandWipeDevice();
00320                 else
00321                     echo "Aborted!\n";
00322                 break;
00323 
00324             case self::COMMAND_REMOVEDEVICE:
00325                 self::CommandRemoveDevice();
00326                 break;
00327 
00328             case self::COMMAND_RESYNCDEVICE:
00329                 if (self::$device == false) {
00330                     echo sprintf("Are you sure you want to re-synchronize all devices of user '%s' [y/N]: ", self::$user);
00331                     $confirm  =  strtolower(trim(fgets(STDIN)));
00332                     if ( !($confirm === 'y' || $confirm === 'yes'))
00333                         echo "Aborted!\n";
00334                         exit(1);
00335                 }
00336                 self::CommandResyncDevices();
00337                 break;
00338 
00339             case self::COMMAND_CLEARLOOP:
00340                 self::CommandClearLoopDetectionData();
00341                 break;
00342         }
00343         echo "\n";
00344     }
00345 
00353     static public function CommandShowDevices() {
00354         $devicelist = ZPushAdmin::ListDevices(self::$user);
00355         if (empty($devicelist))
00356             echo "\tno devices found\n";
00357         else {
00358             if (self::$user === false) {
00359                 echo "All synchronized devices\n\n";
00360                 echo str_pad("Device id", 36). "Synchronized users\n";
00361                 echo "-----------------------------------------------------\n";
00362             }
00363             else
00364                 echo "Synchronized devices of user: ". self::$user. "\n";
00365         }
00366 
00367         foreach ($devicelist as $deviceId) {
00368             if (self::$user === false) {
00369                 echo str_pad($deviceId, 36) . implode (",", ZPushAdmin::ListUsers($deviceId)) ."\n";
00370             }
00371             else
00372                 self::printDeviceData($deviceId, self::$user);
00373         }
00374     }
00375 
00383     static public function CommandDeviceUsers() {
00384         $users = ZPushAdmin::ListUsers(self::$device);
00385 
00386         if (empty($users))
00387             echo "\tno user data synchronized to device\n";
00388 
00389         foreach ($users as $user) {
00390             echo "Synchronized by user: ". $user. "\n";
00391             self::printDeviceData(self::$device, $user);
00392         }
00393     }
00394 
00402     static public function CommandWipeDevice() {
00403         $stat = ZPushAdmin::WipeDevice($_SERVER["LOGNAME"], self::$user, self::$device);
00404 
00405         if (self::$user !== false && self::$device !== false) {
00406             echo sprintf("Mark device '%s' of user '%s' to be wiped: %s", self::$device, self::$user, ($stat)?'OK':ZLog::GetLastMessage(LOGLEVEL_ERROR)). "\n";
00407 
00408             if ($stat) {
00409                 echo "Updated information about this device:\n";
00410                 self::printDeviceData(self::$device, self::$user);
00411             }
00412         }
00413         elseif (self::$user !== false) {
00414             echo sprintf("Mark devices of user '%s' to be wiped: %s", self::$user, ($stat)?'OK':ZLog::GetLastMessage(LOGLEVEL_ERROR)). "\n";
00415             self::CommandShowDevices();
00416         }
00417     }
00418 
00426     static public function CommandRemoveDevice() {
00427         $stat = ZPushAdmin::RemoveDevice(self::$user, self::$device);
00428         if (self::$user === false)
00429            echo sprintf("State data of device '%s' removed: %s", self::$device, ($stat)?'OK':ZLog::GetLastMessage(LOGLEVEL_ERROR)). "\n";
00430         elseif (self::$device === false)
00431            echo sprintf("State data of all devices of user '%s' removed: %s", self::$user, ($stat)?'OK':ZLog::GetLastMessage(LOGLEVEL_ERROR)). "\n";
00432         else
00433            echo sprintf("State data of device '%s' of user '%s' removed: %s", self::$device, self::$user, ($stat)?'OK':ZLog::GetLastMessage(LOGLEVEL_ERROR)). "\n";
00434     }
00435 
00443     static public function CommandResyncDevices() {
00444         $stat = ZPushAdmin::ResyncDevice(self::$user, self::$device);
00445         echo sprintf("Resync of device '%s' of user '%s': %s", self::$device, self::$user, ($stat)?'Requested':ZLog::GetLastMessage(LOGLEVEL_ERROR)). "\n";
00446     }
00447 
00448     static public function CommandClearLoopDetectionData() {
00449         $stat = false;
00450         $stat = ZPushAdmin::ClearLoopDetectionData(self::$user, self::$device);
00451         if (self::$user === false && self::$device === false)
00452            echo sprintf("System wide loop detection data removed: %s", ($stat)?'OK':ZLog::GetLastMessage(LOGLEVEL_ERROR)). "\n";
00453         elseif (self::$user === false)
00454            echo sprintf("Loop detection data of device '%s' removed: %s", self::$device, ($stat)?'OK':ZLog::GetLastMessage(LOGLEVEL_ERROR)). "\n";
00455         elseif (self::$device === false && self::$user !== false)
00456            echo sprintf("Error: %s", ($stat)?'OK':ZLog::GetLastMessage(LOGLEVEL_WARN)). "\n";
00457         else
00458            echo sprintf("Loop detection data of device '%s' of user '%s' removed: %s", self::$device, self::$user, ($stat)?'OK':ZLog::GetLastMessage(LOGLEVEL_ERROR)). "\n";
00459     }
00460 
00469     static private function printDeviceData($deviceId, $user) {
00470         $device = ZPushAdmin::GetDeviceDetails($deviceId, $user);
00471 
00472         if (! $device instanceof ASDevice)
00473             return false;
00474 
00475         // Gather some statistics about synchronized folders
00476         $folders = $device->GetAllFolderIds();
00477         $synchedFolders = 0;
00478         $synchedFolderTypes = array();
00479         foreach ($folders as $folderid) {
00480             if ($device->GetFolderUUID($folderid)) {
00481                 $synchedFolders++;
00482                 $type = $device->GetFolderType($folderid);
00483                 switch($type) {
00484                     case SYNC_FOLDER_TYPE_APPOINTMENT:
00485                     case SYNC_FOLDER_TYPE_USER_APPOINTMENT:
00486                         $gentype = "Calendars";
00487                         break;
00488                     case SYNC_FOLDER_TYPE_CONTACT:
00489                     case SYNC_FOLDER_TYPE_USER_CONTACT:
00490                         $gentype = "Contacts";
00491                         break;
00492                     case SYNC_FOLDER_TYPE_TASK:
00493                     case SYNC_FOLDER_TYPE_USER_TASK:
00494                         $gentype = "Tasks";
00495                         break;
00496                     case SYNC_FOLDER_TYPE_NOTE:
00497                     case SYNC_FOLDER_TYPE_USER_NOTE:
00498                         $gentype = "Notes";
00499                         break;
00500                     default:
00501                         $gentype = "Emails";
00502                         break;
00503                 }
00504                 if (!isset($synchedFolderTypes[$gentype]))
00505                     $synchedFolderTypes[$gentype] = 0;
00506                 $synchedFolderTypes[$gentype]++;
00507             }
00508         }
00509         $folderinfo = "";
00510         foreach ($synchedFolderTypes as $gentype=>$count) {
00511             $folderinfo .= $gentype;
00512             if ($count>1) $folderinfo .= "($count)";
00513             $folderinfo .= " ";
00514         }
00515         if (!$folderinfo) $folderinfo = "None available";
00516 
00517         echo "-----------------------------------------------------\n";
00518         echo "DeviceId:\t\t$deviceId\n";
00519         echo "Device type:\t\t". ($device->GetDeviceType() !== ASDevice::UNDEFINED ? $device->GetDeviceType() : "unknown") ."\n";
00520         echo "UserAgent:\t\t".($device->GetDeviceUserAgent()!== ASDevice::UNDEFINED ? $device->GetDeviceUserAgent() : "unknown") ."\n";
00521         // TODO implement $device->GetDeviceUserAgentHistory()
00522 
00523         // device information transmitted during Settings command
00524         if ($device->GetDeviceModel())
00525             echo "Device Model:\t\t". $device->GetDeviceModel(). "\n";
00526         if ($device->GetDeviceIMEI())
00527             echo "Device IMEI:\t\t". $device->GetDeviceIMEI(). "\n";
00528         if ($device->GetDeviceFriendlyName())
00529             echo "Device friendly name:\t". $device->GetDeviceFriendlyName(). "\n";
00530         if ($device->GetDeviceOS())
00531             echo "Device OS:\t\t". $device->GetDeviceOS(). "\n";
00532         if ($device->GetDeviceOSLanguage())
00533             echo "Device OS Language:\t". $device->GetDeviceOSLanguage(). "\n";
00534         if ($device->GetDevicePhoneNumber())
00535             echo "Device Phone nr:\t". $device->GetDevicePhoneNumber(). "\n";
00536         if ($device->GetDeviceMobileOperator())
00537             echo "Device Operator:\t\t". $device->GetDeviceMobileOperator(). "\n";
00538         if ($device->GetDeviceEnableOutboundSMS())
00539             echo "Device Outbound SMS:\t". $device->GetDeviceEnableOutboundSMS(). "\n";
00540 
00541         echo "ActiveSync version:\t".($device->GetASVersion() ? $device->GetASVersion() : "unknown") ."\n";
00542         echo "First sync:\t\t". strftime("%Y-%m-%d %H:%M", $device->GetFirstSyncTime()) ."\n";
00543         echo "Last sync:\t\t". ($device->GetLastSyncTime() ? strftime("%Y-%m-%d %H:%M", $device->GetLastSyncTime()) : "never")."\n";
00544         echo "Total folders:\t\t". count($folders). "\n";
00545         echo "Synchronized folders:\t". $synchedFolders . "\n";
00546         echo "Synchronized data:\t$folderinfo\n";
00547         echo "Status:\t\t\t";
00548         switch ($device->GetWipeStatus()) {
00549             case SYNC_PROVISION_RWSTATUS_OK:
00550                 echo "OK\n";
00551                 break;
00552             case SYNC_PROVISION_RWSTATUS_PENDING:
00553                 echo "Pending wipe\n";
00554                 break;
00555             case SYNC_PROVISION_RWSTATUS_REQUESTED:
00556                 echo "Wipe requested on device\n";
00557                 break;
00558             case SYNC_PROVISION_RWSTATUS_WIPED:
00559                 echo "Wiped\n";
00560                 break;
00561             default:
00562                 echo "Not available\n";
00563                 break;
00564         }
00565 
00566         echo "WipeRequest on:\t\t". ($device->GetWipeRequestedOn() ? strftime("%Y-%m-%d %H:%M", $device->GetWipeRequestedOn()) : "not set")."\n";
00567         echo "WipeRequest by:\t\t". ($device->GetWipeRequestedBy() ? $device->GetWipeRequestedBy() : "not set")."\n";
00568         echo "Wiped on:\t\t". ($device->GetWipeActionOn() ? strftime("%Y-%m-%d %H:%M", $device->GetWipeActionOn()) : "not set")."\n";
00569 
00570         echo "Attention needed:\t";
00571 
00572         if ($device->GetDeviceError())
00573             echo $device->GetDeviceError() ."\n";
00574         else if (!isset($device->ignoredmessages) || empty($device->ignoredmessages)) {
00575             echo "No errors known\n";
00576         }
00577         else {
00578             printf("%d messages need attention because they could not be synchronized\n", count($device->ignoredmessages));
00579             foreach ($device->ignoredmessages as $im) {
00580                 $info = "";
00581                 if (isset($im->asobject->subject))
00582                     $info .= sprintf("Subject: '%s'", $im->asobject->subject);
00583                 if (isset($im->asobject->fileas))
00584                     $info .= sprintf("FileAs: '%s'", $im->asobject->fileas);
00585                 if (isset($im->asobject->from))
00586                     $info .= sprintf(" - From: '%s'", $im->asobject->from);
00587                 if (isset($im->asobject->starttime))
00588                     $info .= sprintf(" - On: '%s'", strftime("%Y-%m-%d %H:%M", $im->asobject->starttime));
00589                 $reason = $im->reasonstring;
00590                 if ($im->reasoncode == 2)
00591                     $reason = "Message was causing loop";
00592                 printf("\tBroken object:\t'%s' ignored on '%s'\n", $im->asclass,  strftime("%Y-%m-%d %H:%M", $im->timestamp));
00593                 printf("\tInformation:\t%s\n", $info);
00594                 printf("\tReason: \t%s (%s)\n", $reason, $im->reasoncode);
00595                 printf("\tItem/Parent id: %s/%s\n", $im->id, $im->folderid);
00596                 echo "\n";
00597             }
00598         }
00599 
00600     }
00601 }
00602 
00603 
00604 ?>