protected function __construct() { parent::__construct(); }
<?php include 'gsm.php'; $gsm = new GSM(); if (isset($_POST['delete']) && is_array($_POST['delete'])) { $gsm->deleteSMS(explode(',', key($_POST['delete']))); } if (isset($_POST['message']) && isset($_POST['number'])) { $gsm->sendSMS($_POST['number'], $_POST['message']); } ?> <!doctype html> <html> <head> <title>GSM Example</title> <style type="text/css"> table.messages td.message { white-space: pre; } div.sendsms { margin-top: 16px; } table.messages { width: 100%; } td.message { max-width: 500px; } div.new_message { display: none; } table.contacts { width: 100%; } table.contacts a.sendsms { color: #000; text-decoration: none; } div.signal { position: fixed; top: 16px; right: 16px; } div.phonebooks { width: 270px; position: absolute; top: 0; left: 16px; border-right: 1px solid #ccc; padding-right: 16px;
function load(GSM $gsm) { echo $gsm->simGSM(); echo $gsm->latest_offers(); }