Category Archives: Mobile Scripts

5 PHP Editors for iPad

Do you feel way behind when it comes to technology? I don’t think so. Technology today is moving at lightning speed creating an emphasis on sleeker designs, smaller form factors, not to mention mobile devices.

Sure regular people can do everything they would need to do on an iPad now, but what about Web Developers? Can they code on an iPad? Yes they can! Below we’ve listed what we think the five most useful PHP / code editors for the iPad available especially for developers that are always on-the-go! :)

1. koder

Create, Edit, Modify PHP, CSS, JavaScript, HTML and other programming files easily on your iPad.

2. Textastic Code Editor

Fast and versatile text, code and markup editor supporting syntax highlighting of over 80 programming and markup languages.

3. for i: Code Editor for the iPad

Take your programming and design projects with you on the road, and get that killer app done in no time!

4. CodeToGo

It doesn’t have syntax editing or built-in FTP support, but it does have one feature other code editors don’t: the ability to test your code via the ideone.com API.

5. Edhita

An open source text editor for iPad.

All PHP Scripts on this website are provided by phpscripts4u.com where you can find all the latest PHP code snippets, plugins and libraries.

PHP Scripts to Send SMS

In this post, what we will share with you are some of PHP script examples to send SMS.

Text messaging has become extremely widespread throughout the world to the point where an increasing number of web applications have integrated SMS to notify users of events, etc., directly through their mobile devices.

Example 1

SMS messages are just sent to special email addresses, so they can be sent from server to phone with minimal effort.

The form:

<form id="sms" name="sms" method="post" action="scripts/send_sms.php">
<table width="400">
  <tr>
    <td align="right" valign="top">From:</td>
    <td align="left"><input name="from" type="text" id="from" size="30" /></td>
  </tr>
  <tr>
    <td align="right" valign="top">To:</td>
    <td align="left"><input name="to" type="text" id="to" size="30" /></td>
  </tr>
  <tr>
    <td align="right" valign="top">Carrier:</td>
    <td align="left"><select name="carrier" id="carrier">
      <option value="verizon">Verizon</option>
      <option value="tmobile">T-Mobile</option>
      <option value="sprint">Sprint</option>
      <option value="att">AT&amp;amp;T</option>
      <option value="virgin">Virgin Mobile</option>
    </select></td>
  </tr>
  <tr>
    <td align="right" valign="top">Message:</td>
    <td align="left"><textarea name="message" cols="40" rows="5" id="message"></textarea></td>
  </tr>
  <tr>
    <td colspan="2" align="right"><input type="submit" name="Submit" value="Submit" /></td>
    </tr>
</table>
</form>

The handler:

<?php
$from = $_POST['from'];
$to = $_POST['to'];
$carrier = $_POST['carrier'];
$message = stripslashes($_POST['message']);

if ((empty($from)) || (empty($to)) || (empty($message))) {
header ("Location: sms_error.php");
}

else if ($carrier == "verizon") {
$formatted_number = $to."@vtext.com";
mail("$formatted_number", "SMS", "$message");
// Currently, the subject is set to "SMS". Feel free to change this.

header ("Location: sms_success.php");
}

else if ($carrier == "tmobile") {
$formatted_number = $to."@tomomail.net";
mail("$formatted_number", "SMS", "$message");

header ("Location: sms_success.php");
}

else if ($carrier == "sprint") {
$formatted_number = $to."@messaging.sprintpcs.com";
mail("$formatted_number", "SMS", "$message");

header ("Location: sms_success.php");
}

else if ($carrier == "att") {
$formatted_number = $to."@txt.att.net";
mail("$formatted_number", "SMS", "$message");
header ("Location: sms_success.php");
}

else if ($carrier == "virgin") {
$formatted_number = $to."@vmobl.com";
mail("$formatted_number", "SMS", "$message");

header ("Location: sms_success.php");
}
?>

Sending a text message to a cell phone through PHP is just a matter of appending the correct suffix to the number and using the

mail() function

.

Example 2

To send and receive SMS messages from a webpage you need to have scripting support enabled on your webserver. The scripting support can be PHP or ASP. The examples presented here are using PHP.

(The very first step in setting up this system, is to install “your prefer” SMS Gateway to your computer and to verify, that you can send SMS messages from the gateway manually)

Create the HTML Form for SMS sending (To get this solution working you need to save the

sendsms.html

file into the

WWW

directory of your webserver):

C:\www\sendsms.html
<html>
 <body>
   <h1>My SMS form</h1>
   <form method=post action='sendsms.php'>
   <table border=0>
   <tr>
     <td>Recipient</td>
     <td><input type='text' name='recipient'></td>
   </tr>
   <tr>
     <td>Message</td>
     <td><textarea rows=4 cols=40 name='message'></textarea></td>
   </tr>
   <tr>
     <td> </td>
     <td><input type=submit name=submit value=Send></td>
   </tr>
   </table>
   </form>
 </body>
</html>

It should output something like this:

Example 3

This code requires phpmailer class though.

<?php
require("class.phpmailer.php");

$mail = new PHPMailer();

$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = "ipipi.com"; // specify main and backup server
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Port =25;
$mail->Username = "YoureIPIPIUsername"; // SMTP username at ipipi
$mail->Password = "YourPassword"; // SMTP password

$mail->From = "YourUserName@ipipi.com";
$mail->FromName = "Your Name";
$mail->AddAddressTo("DestinationPhoneNumber@sms.ipipi.com", "Receiver Name");

$mail->Subject = "Compression Option goes here - find out more";
$mail->Body = "Your Message";

if(!$mail->Send())
{
   echo "Message could not be sent. <p>";
   echo "Mailer Error: " . $mail->ErrorInfo;
   exit;
}
echo "Message has been sent";
?>

Example 4

The following example PHP script,

sendsms.php

, can be used to send an SMS text message via NowSMS with PHP.

<?php



function SendSMS ($host, $port, $username, $password, $phoneNoRecip, $msgText) {

/* Parameters:

$host - IP address or host name of the NowSMS server

$port - "Port number for the web interface" of the NowSMS Server

$username - "SMS Users" account on the NowSMS server

$password - Password defined for the "SMS Users" account on the NowSMS Server

$phoneNoRecip - One or more phone numbers (comma delimited) to receive the text message

$msgText - Text of the message

*/


$fp = fsockopen($host, $port, $errno, $errstr);

if (!$fp) {

echo "errno: $errno \n";

echo "errstr: $errstr\n";

return $result;

}

fwrite($fp, "GET /?Phone=" . rawurlencode($phoneNoRecip) . "&amp;Text=" .

 rawurlencode($msgText) . " HTTP/1.0\n");

if ($username != "") {

$auth = $username . ":" . $password;

$auth = base64_encode($auth);

fwrite($fp, "Authorization: Basic " . $auth . "\n");

}

fwrite($fp, "\n");

$res = "";

while(!feof($fp)) {

$res .= fread($fp,1);

}

fclose($fp);

return $res;

}

/* This code provides an example of how you would call the SendSMS function from within

a PHP script to send a message.  The response from the NowSMS server is echoed back from the script.

$x   = SendSMS("127.0.0.1", 8800, "username", "password", "+44999999999", "Test Message");

echo $x;

*/


?>

The SendSMS function is the important part of the example. This is the function that needs to be included in your PHP script.

All PHP Scripts on this website are provided by phpscripts4u.com where you can find all the latest PHP code snippets, plugins and libraries.

PHP Asset Management Scripts

Here is what HESK can do for you. By no means is this an exhaustive list, download your Free version now and see for yourself!.Need Asset Management, Live Chat, Mobile Application? We recommend SysA.Submit new tickets.Attach files,Obtain detailed information from customers with custom fields,SPAM prevention,Suggest related knowledgebase articles before final ticket submission,View and rate staff replies,E-mail notifications of staff replies,Browse and search knowledgebase,… And more!

 

<?php
/*******************************************************************************
*  Title: Help Desk Software HESK
*  Version: 2.3 from 15th September 2011
*  Author: Klemen Stirn
*  Website: http://www.hesk.com
********************************************************************************
*  COPYRIGHT AND TRADEMARK NOTICE
*  Copyright 2005-2011 Klemen Stirn. All Rights Reserved.
*  HESK is a registered trademark of Klemen Stirn.

*  The HESK may be used and modified free of charge by anyone
*  AS LONG AS COPYRIGHT NOTICES AND ALL THE COMMENTS REMAIN INTACT.
*  By using this code you agree to indemnify Klemen Stirn from any
*  liability that might arise from it's use.

*  Selling the code for this program, in part or full, without prior
*  written consent is expressly forbidden.

*  Using this code, in part or full, to create derivate work,
*  new scripts or products is expressly forbidden. Obtain permission
*  before redistributing this software over the Internet or in
*  any other medium. In all cases copyright and header must remain intact.
*  This Copyright is in full effect in any country that has International
*  Trade Agreements with the United States of America or
*  with the European Union.

*  Removing any of the copyright notices without purchasing a license
*  is expressly forbidden. To remove HESK copyright notice you must purchase
*  a license for this script. For more information on how to obtain
*  a license please visit the page below:
*  https://www.hesk.com/buy.php
*******************************************************************************/


define('IN_SCRIPT',1);
define('HESK_PATH','./');

/* Get all the required files and functions */
require(HESK_PATH . 'hesk_settings.inc.php');
require(HESK_PATH . 'inc/common.inc.php');
require(HESK_PATH . 'inc/database.inc.php');

hesk_session_start();
hesk_dbConnect();

$trackingID = strtoupper(hesk_input($_GET['track'],$hesklang['trackID_not_found']));

/* Get ticket info */
$sql = "SELECT `t1`.* , `t2`.name AS `repliername`
FROM `"
.hesk_dbEscape($hesk_settings['db_pfix'])."tickets` AS `t1` LEFT JOIN `".hesk_dbEscape($hesk_settings['db_pfix'])."users` AS `t2` ON `t1`.`replierid` = `t2`.`id`
WHERE `trackid`='"
.hesk_dbEscape($trackingID)."' LIMIT 1";
$res = hesk_dbQuery($sql);
if (hesk_dbNumRows($res) != 1)
{
hesk_error($hesklang['ticket_not_found']);
}
$ticket = hesk_dbFetchAssoc($res);

/* Get category name and ID */
$sql = "SELECT * FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."categories` WHERE `id`=".hesk_dbEscape($ticket['category'])." LIMIT 1";
$res = hesk_dbQuery($sql);

/* If this category has been deleted use the default category with ID 1 */
if (hesk_dbNumRows($res) != 1)
{
$sql = "SELECT * FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."categories` WHERE `id`=1 LIMIT 1";
$res = hesk_dbQuery($sql);
}
$category = hesk_dbFetchAssoc($res);

/* Get replies */
$sql = "SELECT * FROM `".hesk_dbEscape($hesk_settings['db_pfix'])."replies` WHERE `replyto`='".hesk_dbEscape($ticket['id'])."' ORDER BY `id` ASC";
$res  = hesk_dbQuery($sql);
$replies = hesk_dbNumRows($res);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title><?php echo $hesk_settings['hesk_title']; ?></title>
<meta content="text/html; charset=<?php echo $hesklang['ENCODING']; ?>">
<style type="text/css">
body,p,td
{
color : black;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size : <?php echo $hesk_settings['print_font_size']; ?>px;
}
</style>
</head>
<body onload="window.print()">

<?php
/* Ticket status */
switch ($ticket['status'])
{
case 0:
$ticket['status']=$hesklang['open'];
break;
case 1:
$ticket['status']=$hesklang['wait_staff_reply'];
break;
case 2:
$ticket['status']=$hesklang['wait_cust_reply'];
break;
case 4:
$ticket['status']=$hesklang['in_progress'];
break;
case 5:
$ticket['status']=$hesklang['on_hold'];
break;
default:
$ticket['status']=$hesklang['closed'];
}

/* Ticket priority */
switch ($ticket['priority'])
{
case 0:
$ticket['priority']='<b>'.$hesklang['critical'].'</b>';
break;
case 1:
$ticket['priority']='<b>'.$hesklang['high'].'</b>';
break;
case 2:
$ticket['priority']=$hesklang['medium'];
break;
default:
$ticket['priority']=$hesklang['low'];
}

/* Set last replier name */
if ($ticket['lastreplier'])
{
if (empty($ticket['repliername']))
{
$ticket['repliername'] = $hesklang['staff'];
}
}
else
{
$ticket['repliername'] = $ticket['name'];
}

/* Other variables that need processing */
$ticket['dt'] = hesk_date($ticket['dt']);
$ticket['lastchange'] = hesk_date($ticket['lastchange']);
$random=mt_rand(10000,99999);

/* Print the ticket */
echo "

<p>$hesklang[subject]: <b>$ticket[subject]</b><br />

$hesklang[trackID]: $trackingID<br />
$hesklang[ticket_status]: $ticket[status]<br />
$hesklang[created_on]: $ticket[dt]<br />
$hesklang[last_update]: $ticket[lastchange]<br />
$hesklang[last_replier]: $ticket[repliername]<br />
$hesklang[category]: $category[name]<br />
$hesklang[replies]: $replies<br />
$hesklang[priority]: $ticket[priority]

<hr />

$hesklang[date]: $ticket[dt]<br />
$hesklang[name]: $ticket[name]<br />
$hesklang[email]: $ticket[email]<br />
$hesklang[ip]: $ticket[ip]<br />

"
;

/* custom fields before message */
foreach ($hesk_settings['custom_fields'] as $k=>$v)
{
if ($v['use'] &amp;&amp; $v['place']==0)
{
echo $v['name'].': '.$ticket[$k].'<br />';
}
}

echo "<b>$hesklang[message]:</b><br />$ticket[message]";

/* custom fields after message */
$br = 1;
foreach ($hesk_settings['custom_fields'] as $k=>$v)
{
if ($v['use'] &amp;&amp; $v['place'])
{
if ($br)
{
echo '<br /><br />';
$br = 0;
}
echo $v['name'].': '.$ticket[$k].'<br />';
}
}

echo '<hr />';

while ($reply = hesk_dbFetchAssoc($res))
{
$reply['dt'] = hesk_date($reply['dt']);
echo "
$hesklang[date]: $reply[dt]<br />
$hesklang[name]: $reply[name]<br />
<b>$hesklang[message]:</b><br />
$reply[message]

<hr />

"
;
}

echo $hesklang['end_ticket'];
?>
</p>

</body>
</html>

PHP Scripts create universal mobile applications

HAWHAW stands for HTML and WML hybrid adapted Webserver and is a toolkit to create universal mobile applications. HAWHAW creates the following markup languages for a wide range of mobile devices: – HTML – WML 1.x – XHTML Mobile Profile (WAP 2.0) – iMode (cHTML) – HDML – MML – VoiceXML HAWHAW supports the following browser.

 

 

<?php
/****************************************************************

gmail-mobile (a.k.a. unofficial Gmail Mobile)
Copyright (c) 2005, 2006
Neerav Modi and others

Version 0.11 (c) 2004
GAN Ying Hung, Rudi Pittman, Gaston Annebicque

Licensed under the GNU GPL. For full terms see the file COPYING.

gmail-mobile (unofficial Gmail Mobile since Sept 2004) provides
access to Gmail accounts with any WAP enabled phone or hand held
(in WML format).

http://gmail-mobile.sourceforge.net

*****************************************************************/


////////////////////
//
// Config options start HERE
//


// Proxy
//
// Some servers go through a proxy server
// Proxy server settings may be set here
//
// The default is: all blank for NO PROXY
// $conf_proxy_server     = "";    // proxy server
// $conf_proxy_user     = "";    // proxy user
// $conf_proxy_passwd    = "";    // proxy passwords

$conf_proxy_server     = "";    // proxy server
$conf_proxy_user     = "";    // proxy user
$conf_proxy_passwd    = "";    // proxy passwords



// Use PIN code for easy signin
//
// If you are the only user of a PRIVATE and HIDDEN Gmail
// installation, you can use a PIN code system for quick
// and easy signin.
//
// The default is false.
//
// Uncomment ONE of the following (remove/add "//" at the
// beginning of the line)

$conf_use_pin = false;        // Do NOT use a PIN code signin
//$conf_use_pin = true;        // USE a PIN code signin


// Password visible or *'ed
//
// Style guides for wireless devices mention that due to
// the difficulty of entering complicated passwords on a
// keypad and the small screen sizes make "over-the-shoulder"
// viewing quite impossible, a program should make the password
// visible to the user to aid quick and correct entry.
//
// However, this puts many users at unease.  You may choose
// the password behavior of gmail-mobile.
//
// WARNING: a visible or invisible password on the screen
// HAS NO EFFECT on its security or safety of password
// transmission through servers and networks.  VISIBILITY OF
// THE PASSWORD ON THE SCREEN ONLY AFFECTS THE VISIBILITY,
// NOTHING ELSE.  THE PASSWORD IS SENT THE SAME WAY REGARDLESS.
// This is true of any site.
//
// The default is true (visible).
//
// Uncomment ONE of the following (remove/add "//" at the
// beginning of the line)

//$conf_visible_pass = false;        // Password *'ed on sign in page
$conf_visible_pass = true;        // Password visible on sign in page


// Default time zone
//
// If you are the only user of this Gmail installation or
// all users are in the same time zone, setting this option
// will be a convenience when logging in.
//
// This setting can be overridden by a value added to the
// url of a bookmark.  See the README for more information.
//
// Time zones are like: -8, +3, +5.5, etc.
// The "+" or "-" is REQUIRED.  Use "0" for UTC(GMT)
// e.g.
// $conf_time_zone = "+5.5";
//
// The default is "0"

$conf_time_zone = "0";



// Messages on Sign in page
//
// On the signin page, there is a message at the bottom
// that mentions where to get more help if there are problems.
// If this installation is going to be used by more than
// just you, and you would like to be the contact, you can
// customize this.  You may also use this to display any information
// like a message-of-the-day or anything else.
//
// The default is "<small>Problem using gmail-mobile? Visit http://gmail-mobile.sourceforge.net</small>"
//
// Use of " needs to be escaped as \"  e.g. <a href=\"http://url.com\">
//
//     Character
//     to display   Enter as
//     ---------    --------
//         "          &amp;quote;
//         &amp;          &amp;amp;
//         \          \\
//         >          &amp;gt;
//         <          &amp;lt;
//         '          &#039;
//         $          $$

$signin_message_bottom = "<small>Problem using gmail-mobile? Visit http://gmail-mobile.sourceforge.net</small>";

// You may also add/customize a message to appear before "username".
// The can be used to display important announcements, etc.

$signin_message_top = "";




// Auto-refresh
//
// The Summary page autorefreshes itself on a regular basis.
//
// 0 is OFF (no automatic page refreshing)
// The default is 5 (minutes)
//
// e.g.
// $conf_autorefresh = 10;
//

$conf_autorefresh = 5;        /* Refresh page every x minutes */



// Act on multiple messages
//
// WML pages (WAP 1.1) does not have the ability for the
// easy-to-use checkbox when selecting multiple items, in
// this case, multiple messages in a mailbox.  gmail-mobile
// has evolved a way around this limitation -- selection menu
// for each message.  This does add to the page size and
// makes the mailbox appear less-than-clean.  But the feature
// is still convenient.
//
// This setting controls whether or not "act on multiple
// messages" feature is active.  For those who simply never
// use or never want it, set this to FALSE (off).  This could
// also improve the display on very tiny screens or devices
// with large display fonts.
//
// The default is true
//
// Uncomment ONE of the following (remove/add "//" at the
// beginning of the line)

$conf_act_on_multi = true;        /* Multi-message action is ON */
//$conf_act_on_multi = false;        /* Multi-message action is OFF */



// Enable attachment uploads
//
// This option turns off/on the ability to upload/attach files
// while composing a message.  If this is on, it will only work
// on mobiles that support file uploads.
//
// NOTE: This option uses double server bandwidth.
// Once for uploading the file from you mobile to the server, and once
// for the server to send the file to Gmail.  If you are very
// concerned about your bandwidth, or get close to your bandwidth
// limit, you can turn this option OFF (false) or limiting the upload
// size in the next option.
// The default is true
//
// Uncomment ONE of the following (remove/add "//" at the
// beginning of the line)

$conf_enable_up_attach = true;        /* Enable file upload/attach */
//$conf_enable_up_attach = false;    /* Disable file upload/attach */



// Number of attachments allowed for uploading
//
// If you have ENABLED attachment uploads, you may also control
// the number of attachments allowed.
//
// The default is 3
//
// Minimum is 0
// Maximum is 10
//
// e.g.
// $conf_up_attach_num_limit = 3;
//

$conf_up_attach_num_limit = 3;        /* maximum attachments allowed for upload */



// Maximum size of attachments allowed for uploading
//
// If you have ENABLED attachment uploads, you may also control
// the maximum attachment size allowed here.  IN KILOBYTES
//
// Set this to 0 for UNLIMITED size (no limit).
// e.g.
// $conf_up_attach_size_limit = 0;
//
// The default is 0 (no limit)
//
// e.g.
// $conf_up_attach_size_limit = 200;
//

$conf_up_attach_size_limit = 0;        /* maximum attach size for upload in Kilobytes */



// Links: bottom of page, shortcut menu, or both
//
// gmail-mobile has a very helpful shortcut menu available
// on almost every page.  This includes quick links to major
// functions: summary, compose, contacts, settings, signout etc.
// The menu is available through a means specific to your phone
// model: soft-key, options -> shortcuts, etc.
//
// However, not all phones support this menu or it may be too
// difficult to use on some unfriendly-designed devices.  The
// menu also takes up some bandwidth and phone memory.  If you
// do not use the menu at all, or are very bandwidth conscious,
// you may turn off the menu and save upto 700-900 bytes per
// page (status messages do not contain a menu anyway).
//
// These links are also available on the Summary page, and
// many places some links are displayed at the bottom of
// the page.
//
// This setting allow you to choose which set of links should
// be shown.
//
// Bottom of page is 1
// Menu is 2
// Bottom and menu is 3 (1+2)
//
// The default is 3  (bottom links + menu)
//
// Uncomment ONE of the following (remove/add "//" at the
// beginning of the line)

//$conf_links_display = 1;        /* Links at bottom of page ONLY */
//$conf_links_display = 2;        /* Links in menu ONLY */
$conf_links_display = 3;        /* Links BOTH on page AND in menu */



// External Links
//
// gmail-mobile removes all links contained in email, since
// practically every link contained is for a website which
// which will not display on the limited memory, limited features,
// or limited screen size of a mobile.  Displaying unusable links
// simply wastes precious characters.
//
// Some mobile devices support cookies or have larger screen sizes.
// For others, there are services (proxies) which reformat websites
// into something more usable on a mobile device:
//
//  - IYHY: www.iyhy.com  (IYHY site)
//  - Phonifier: www.phonifier.com  (local install, or Phonifier site)
//  - Skweezer: www.skweezer.net (Skweezer site)
//  - Google: www.google.com/gwt/n (Google site)
//
// This option controls the display behavior of links in a message.
// In addition, some proxies give the user control over display of
// images.  Set both options.
//
// 0 = links removed/inactive (default)
// 1 = no proxy, direct links to sites (for devices will full website support)
// 2 = use iyhy
// 3 = use phonifier, local install
//     (download, unzip, rename directory to phonifier, drop directory into gmail-mobile directory)
// 4 = use phonifier site
// 5 = use skweezer
// 6 = use google
//
// WARNING: MAKING EXTERNAL LINKS ACTIVE WILL MAKE THE PAGE SIZE
// OF A MESSAGE TO INCREASE, SOMETIMES DRAMATICALLY.  USE THIS OPTION
// WISELY AND ONLY IF YOU HAVE A MOBILE DEVICE WHICH CAN HANDLE THE
// PAGE SIZE OF THE PROXIED EXTERNAL SITE.
//
// The default is "0" (links are removed/inactive)
//
// Uncomment ONE of the following (remove/add "//" at the
// beginning of the line)

$conf_external_links = 0;        /* Links removed/inactive (default) */
//$conf_external_links = 1;        /* Active links, no proxy -- direct link */
//$conf_external_links = 2;        /* Links active, use IYHY's site as proxy */
//$conf_external_links = 3;        /* Links active, use my install of Phonifier as proxy */
//$conf_external_links = 4;        /* Links active, use Phonifier's site as proxy */
//$conf_external_links = 5;        /* Links active, use Skweezer's site as proxy */
//$conf_external_links = 6;        /* Links active, use Google's (html) site as proxy */
//$conf_external_links = 7;        /* Links active, use Google's (wml) site as proxy */

// In addition, you can control the display of images with some
// wap proxies (phonifier, skweezer, google).
//
// The default is false (images are not displayed)
//
// Uncomment ONE of the following (remove/add "//" at the
// beginning of the line)

$conf_external_links_images = false;        /* Images are removed through proxy */
//$conf_external_links_images = true;        /* Images are displayed through proxy */



// Message length (in characters) that should be displayed
// before breaking it into parts.  This length should be small
// (<2000) to ensure compatibilty with the oldest phones
// (and even newer phones like the Nokia 35xx).  If this is a
// private installation, this length can be as large as your
// phone can handle.
//
// Minimum is 1000
// Maximum is 50000
//
// e.g.
// $conf_display_msg_length = 2000;
// $conf_display_msg_length = 10000;
//
// The default is 2500

$conf_display_msg_length = 2500;



// Maximum number of messages to list at one time when
// viewing a mailbox.  If there are more messages than this,
// a "next" link will display
//
// Minimum is 1
// Maximum is 50
//
// e.g.
// $conf_num_msgs = 5;
//
// The default is 10

$conf_num_msgs = 10;



// How to display the number of conversations for a mailbox
// (summary) listing
//
// On the Summary page, Gmail normally only displays the number
// of UNREAD (new) conversations in a standard mailbox or label.
// You can mimic the behavior of Yahoo or Hotmail or other
// email providers by also displaying the total number of
// conversations
//
// Uncomment ONE of the following pairs of lines (remove/add "//" at the
// beginning of the line)
//
// FOR LABELS:  The default is false

$conf_disp_total_msgs = false;        /* Display Labels as (3) */
//$conf_disp_total_msgs = true;        /* Display Labels as (3/126) */

// FOR STANDARD BOXES:  The default is false
// A feature making it's WORLD's DEBUT in gmail-mobile!!
// WARNING:  Setting the STANDARD BOXES to TRUE will cause an extra
// SEVEN (7) connections from your server to Gmail EVERY TIME THE SUMMARY
// DISPLAYS and thus the extra overhead in TRAFFIC EQUIVALENT TO VIEWING
// EACH STANDARD MAILBOX (all 25, 50, or 100 messages which would be
// displayed by Gmail.
//
// The default is FALSE
//
// Uncomment ONE of the following (remove/add "//" at the
// beginning of the line)

$conf_disp_total_standard = false;        /* Display Standard boxes as (3) */
//$conf_disp_total_standard = true;        /* Display Standard boxes as (3/126) */



// How to display unread or new messages in a mailbox listing
//      asterik ... *Subject
//      bold ... Subject   (but will appear as bold)
//
// The default is false
//
// Uncomment ONE of the following (remove/add "//" at the
// beginning of the line)

$conf_unread_bold = false;    /* mark unread with asterik (*)  */
//$conf_unread_bold = true;    /* mark unread using BOLD */



// Allow attachment downloads?
//
// Viewing/downloading an email attachment can be silly
// especially trying to view a high resolution picture (1024x786)
// on a tiny cell phone screen.  It also uses double server bandwidth.
// Once for the server to retrieve the attachment from Gmail, and once
// for your mobile to retrieve it from your server.  If you are very
// concerned about your bandwidth, or get close to your bandwidth
// limit, you can turn one or more of the following
// options OFF (false).
//
// You may also control the maximum attachment size in the next
// configuration option
//
// The default is true
//
// Uncomment ONE of EACH of the following pairs of lines
// (remove/add "//" at the beginning of the line)

$conf_view_attach_image = true;        /* allow /dl image attach */
//$conf_view_attach_image = false;    /* disallow view/dl image attach */

$conf_view_attach_audio = true;        /* allow dl audio attach */
//$conf_view_attach_audio = false;    /* disallow dl audio attach */

$conf_view_attach_html = true;        /* allow view html attach */
//$conf_view_attach_html = false;    /* disallow view html attach */

$conf_view_attach_video = true;        /* allow view video attach */
//$conf_view_attach_html = false;    /* disallow view video attach */

$conf_view_attach_zip = true;        /* allow dl zip/jar/java attach */
//$conf_view_attach_zip = false;    /* disallow dl zip/jar/java attach */

$conf_view_attach_sis = true;        /* allow dl sis attach */
//$conf_view_attach_sis = false;    /* disallow dl sis attach */

$conf_view_attach_theme = true;        /* allow dl theme attach */
//$conf_view_attach_theme = false;    /* disallow dl theme attach */

$conf_view_attach_other = true;        /* allow dl other attach */
//$conf_view_attach_other = false;    /* disallow dl other attach */



// Maximum size of attachments allowed for downloading
//
// If any of the previous options regarding attachments are TRUE,
// you may also control the maximum attachment size allowed.
//
// Set this to 0 for UNLIMITED size (no limit).
// e.g.
// $conf_dl_attach_size_limit = 0;
//
// The default is 0 (no limit)
//
// e.g.
// $conf_dl_attach_size_limit = 300;
//

$conf_dl_attach_size_limit = 0;        /* maximum attach size for downloads in Kilobytes */





////////////////////
//
// DO NOT EDIT ANYTHING BELOW
//

require_once("gmobile_env.php");

//
////////////////////

?>

&amp;nbsp;

PHP Script is compatible Mobile Messages

PHP2SMS is a PHP script that send text messages to mobile phone using WWW->SMS gateways. It acts as a Web browser to send the message and can send message to cell phones using e-mail (most networks support this form of submission). The script is compatible with all operating systems being made in an interpreted programming language.

 

 

<?
/****************************************************************

gmail-mobile (a.k.a. unofficial Gmail Mobile)
Copyright (c) 2005, 2006
Neerav Modi and others

Version 0.11 (c) 2004
GAN Ying Hung, Rudi Pittman, Gaston Annebicque

Licensed under the GNU GPL. For full terms see the file COPYING.

gmail-mobile (unofficial Gmail Mobile since Sept 2004) provides
access to Gmail accounts with any WAP enabled phone or hand held
(in WML format).

http://gmail-mobile.sourceforge.net

*****************************************************************/


require_once("libgmailer.php");
require_once("config.php");

// create the gmail object
$gmailer = new GMailer();
// initialize connection
quick_init($gmailer);

// Connect to gmail
connect_gmail();

// Localization (l10n) phrases
load_language();

$status = false;
$status_message = "";



$action        = (isset($_GET['act']))         ? $_GET['act']            : false;
$label        = (isset($_POST['label']))         ? $_POST['label']        : "";
$relabel    = (isset($_POST['relabel']))    ? $_POST['relabel']        : "";
$clear_history = (isset($_REQUEST['clrh']))    ? $_REQUEST['clrh']     : false;

$gmailer->fetchBox(GM_PREFERENCE, 0, 0);
$snapshot = $gmailer->getSnapshot(GM_PREFERENCE);
if ($snapshot->created == 0) static_error($snapshot->snapshot_error);

if ($action == "create") {
 $label = stripslashes(trim($label));

 // perform the action
 // an accidental way to create a label by labeling a
 // non existant message with a label, which "creates" it
 // 1 = apply label, 0 = message number, $label = label
 //$gmailer->performAction(1, 0, $label);

 // perform the action
 $status            = $gmailer->editLabel("$label","create","");
 $status_message    = $gmailer->lastActionStatus('message');

} elseif (($action == "rename") and ($label != "") and ((int)$label >=0) and (isset($snapshot->label_list[(int)$label]))) {
 $label = $snapshot->label_list[(int)$label];
 $relabel = stripslashes(trim($relabel));

 // rename the label
 $status            = $gmailer->editLabel("$label","rename","$relabel");
 $status_message    = $gmailer->lastActionStatus('message');

} elseif (($action == "remove") and ($label != "") and ((int)$label >=0) and (isset($snapshot->label_list[(int)$label]))) {
 $label = $snapshot->label_list[(int)$label];

 // remove the label
 $status            = $gmailer->editLabel("$label","remove","");
 $status_message    = $gmailer->lastActionStatus('message');

 // update the info
 $gmailer->fetchBox(GM_PREFERENCE, 0, 0);
 $snapshot = $gmailer->getSnapshot(GM_PREFERENCE);
 if ($snapshot->created == 0) static_error($snapshot->snapshot_error);

 // cache it for use in main.php, search.php, filter.php
 $_SESSION['gm_all_labels'] = $snapshot->label_list;
 redirect_page(SELF, $gm_lang['labels'], $status_message, 5 ,true);
 exit;

}

if ($status) {
 // update the info
 $gmailer->fetchBox(GM_PREFERENCE, 0, 0);
 $snapshot = $gmailer->getSnapshot(GM_PREFERENCE);
 if ($snapshot->created == 0) static_error($snapshot->snapshot_error);

 // cache it for use in main.php, search.php, filter.php
 $_SESSION['gm_all_labels'] = $snapshot->label_list;
}


// for debugging
/* print_r($gmailer); */
/* print_r($snapshot); */
/* exit; */

//
// Display Label page
//

print_headers();    // send wml headers
 ?>
<template>
 <do type="prev" label="<? echo $gm_lang['back'] ?>" name="z"><prev/></do>
</template>
<?
if ($clear_history) { ?>
<card title="<? echo $gm_lang['labels'] ?>" id='main' newcontext='true'>
<? } else { ?>
<card title="<? echo $gm_lang['labels'] ?>" id='main'>
<? } ?>
<p>
<?
// display a system-wide message
system_message();

if ($status_message != "") echo "<em>".$status_message."</em><br /><br />\n";
?>
<b><? echo $gm_lang['labels'] ?></b> <? echo $gm_lang['conversations_paren'] ?><br />
<br />
<?
 $has_labels = (count($snapshot->label_list) > 0) ? true : false ;
 if ($has_labels) {
 reset($snapshot->label_list);
 foreach ($snapshot->label_list as $indexval => $label_name) {
 // skip gmskin settings
 if (strpos($label_name, "gmskin:") !== false) continue;

 echo cleanse_string($label_name);
 echo " (".$snapshot->label_total[$indexval].")<br />\n";
 }
 } else {
 echo $gm_lang['have_no_labels']."<br />\n";
 }
 echo "<br />\n";
 echo "<a href='#create'>".$gm_lang['create_new_label']."</a><br />\n";
 if ($has_labels) {
 echo "<a href='#rename'>".$gm_lang['rename_label']."</a><br />\n";
 echo "<a href='#remove'>".$gm_lang['remove_label']."</a><br />\n";
 }
 echo "--------<br />\n";
 print_settings_footer();
?>
</card>

<card title="<? echo $gm_lang['create_label_cap'] ?>" id='create'>
<onevent type="onenterforward">
 <refresh>
 <setvar name="label" value=""/>
 </refresh>
</onevent>
<p>
<?
// display a system-wide message
system_message();

?><br />
<? echo $gm_lang['create_new_lbl_col'] ?><br />
<input name="label" title="<? echo $gm_lang['create_new_lbl_col'] ?>" maxlength="40" emptyok="true" />
<br />
<b><anchor title="<? echo $gm_lang['create'] ?>"><go href="<? echo basename(SELF).'?act=create'.RANDOM.'&amp;amp;'.strip_tags(SID) ; ?>" method="post">
 <postfield name="label" value="$(label)" /></go><? echo $gm_lang['create'] ?></anchor>
</b>
<br /><br />
<a href='#main'><? echo $gm_lang['cancel'] ?></a><br />
</p>
<?
 if ($has_labels) {
?>
</card>

<card title="<? echo $gm_lang['remove_label_cap'] ?>" id='remove'>
<onevent type="onenterforward">
 <refresh>
 <setvar name="label" value="-1"/>
 </refresh>
</onevent>
<p>
<?
// display a system-wide message
system_message();

?><br />
<small><b><? echo $gm_lang['note_col'] ?></b> <? echo $gm_lang['lbl_will_not_delete']?></small><br />
<br />
<? echo $gm_lang['remove_label_col'] ?><br />
<select name="label" title="<? echo $gm_lang['remove_label_col'] ?>">
<option value="-1"><? echo $gm_lang['select_label'] ?></option>
<?
 reset($snapshot->label_list);
 foreach ($snapshot->label_list as $indexval => $label_name) {
 // skip gmskin settings
 if (strpos($label_name, "gmskin:") !== false) continue;

 echo "<option value=\"".$indexval."\">".cleanse_string($label_name)."</option>\n";
 }
?>
</select>
<br />
<b><anchor title="<? echo $gm_lang['remove'] ?>"><go href="<? echo basename(SELF).'?act=remove'.RANDOM.'&amp;amp;'.strip_tags(SID); ?>" method="post">
 <postfield name="label" value="$(label)" />
</go><? echo $gm_lang['remove'] ?></anchor>
</b>
<br /><br />
<a href='#main'><? echo $gm_lang['cancel'] ?></a><br />
</p>
</card>

<card title="<? echo $gm_lang['rename_label_cap'] ?>" id='rename'>
<onevent type="onenterforward">
 <refresh>
 <setvar name="label" value="-1" />
 <setvar name="relabel" value="" />
 </refresh>
</onevent>
<p>
<?
// display a system-wide message
system_message();

?><br />
<? echo $gm_lang['label_col'] ?><br />
<select name="label" title="<? echo $gm_lang['rename_label_col'] ?>">
<option value="-1"><? echo $gm_lang['select_label'] ?></option>
<?
 reset($snapshot->label_list);
 foreach ($snapshot->label_list as $indexval => $label_name) {
 // skip gmskin settings
 if (strpos($label_name, "gmskin:") !== false) continue;

 echo "<option value=\"".$indexval."\">".cleanse_string($label_name)."</option>\n";
 }
?>
</select>
<br />
<? echo $gm_lang['rename_col'] ?><br />
<input name="relabel" title="<? echo $gm_lang['what_call_label'] ?>" maxlength="40" emptyok="true" />
<br />
<b><anchor title="<? echo $gm_lang['rename'] ?>"><go href="<? echo basename(SELF).'?act=rename'.RANDOM.'&amp;amp;'.strip_tags(SID); ?>" method="post">
 <postfield name="label" value="$(label)" />
 <postfield name="relabel" value="$(relabel)" />
</go><? echo $gm_lang['rename'] ?></anchor>
</b>
<br /><br />
<a href='#main'><? echo $gm_lang['cancel'] ?></a><br />
</p>
<?
}
print_footer();


function print_settings_footer() {
 global $set;
 global $gm_lang;

 echo "<a href='setting.php?".RANDOM.GMID."'>".$gm_lang['settings']."</a><br />\n";
 echo "<a href='main.php?sum=1".RANDOM.GMID."'>".$gm_lang['summary']."</a><br />\n";
 echo "<a href='compose.php?action=new&amp;amp;back=label.php".RANDOM.GMID."'>".$gm_lang['compose_mail']."</a><br />\n";
 echo "<a href='logout.php?".RANDOM.GMID."'>".$gm_lang['sign_out']."</a>\n";
 echo "</p>\n";
}
?>

&amp;nbsp;

PHP Scripts High Lines WordPress Mobile Theme

A free 2 column WordPress theme with a clean layout and widget ready sidebar. The 1.1 update includes a Windows installer to put it on your blog and some nice streamlining of the code.Works with all different browsers and is fully standards compliant. Layout done with CSS so no tables to break. There is no shortage of WordPress themes out there but some of them are not coded correctly. This one is and will work with all WordPress features.

 

 

<?
/****************************************************************

gmail-mobile (a.k.a. unofficial Gmail Mobile)
Copyright (c) 2005, 2006
Neerav Modi and others

Version 0.11 (c) 2004
GAN Ying Hung, Rudi Pittman, Gaston Annebicque

Licensed under the GNU GPL. For full terms see the file COPYING.

gmail-mobile (unofficial Gmail Mobile since Sept 2004) provides
access to Gmail accounts with any WAP enabled phone or hand held
(in WML format).

http://gmail-mobile.sourceforge.net

*****************************************************************/


require_once("libgmailer.php");
require_once("config.php");

// create the gmail object
$gmailer = new GMailer();
// initialize connection
quick_init($gmailer);

// Connect to gmail
connect_gmail();

// Localization (l10n) phrases
load_language();

$status = false;
$status_message = "";

$action        = (isset($_REQUEST['act']))     ? $_REQUEST['act']        : false;

if ($action == "save") {

 $id         = (isset($_POST["id"]))        ? trim($_POST["id"])                     : -1;
 $label     = (isset($_POST["label"]))    ? stripslashes(trim($_POST["label"]))    : "";
 $query     = (isset($_POST["query"]))    ? stripslashes(trim($_POST["query"]))     : "";
 $unread = (isset($_POST["unread"]))    ? trim($_POST["unread"])                : 0;
 $total     = (isset($_POST["total"]))    ? trim($_POST["total"])                 : 0;

 // peristent query settings
 $searches         = parse_persist_searches();
 $contact_id     = $searches['contact_id'];

 //debug_print("before saving pquery: ".print_r($searches,true));

 $temp = array();
 $temp['label']     = rawurlencode($label);
 $temp['query']     = rawurlencode($query);
 $temp['unread'] = $unread;
 $temp['total']     = $total;
 if ($id != -1) {
 $searches['searches'][$id] = $temp;
 } else {
 $searches['searches'][] = $temp;
 }

 //debug_print("after updating pquery: ".print_r($searches,true));

 $count_searches = count($searches['searches']);
 $new_searches = array();
 for ($i=0; $i < $count_searches; $i++) {
 if (trim($searches['searches'][$i]['label']) === "" or trim($searches['searches'][$i]['query']) === "") continue;
 // %3D = &amp;
 $new_searches[] = rawurlencode(
 "query=".(trim(urldecode($searches['searches'][$i]['query'])))
 ."&amp;label=".trim(urldecode($searches['searches'][$i]['label']))
 ."&amp;totalResults=".((trim($searches['searches'][$i]['total']) === "") ? $searches['searches'][$i]['total']: 0)
 ."&amp;unreadResults=".((trim($searches['searches'][$i]['unread']) === "") ? $searches['searches'][$i]['unread']: 0)
 );
 }
 $new_searches = "PersistentSearches%3D".implode("%7C",$new_searches); // %7C = |
 $cookie = "PersistentSearchesCollapsedCookie%3D0";
 $all_searches = "contact_id%3D".$contact_id."%3B".$new_searches."%3B".$cookie."%3B"; // %3B = ;

 $name     = "zzqqzzqqzzqqzzqqzzqqzzqqzzqqzzqqzzqqzzqq";
 $email     = "zzqqzzqqzzqqzzqqzzqqzzqqzzqqzzqqzzqqzzqq@gmail.com";

 //debug_print("after updating pquery: ".print_r($all_searches,true));

 // if contact id is unknown
 if (trim($contact_id) === "" or $contact_id == -1) {
 $contact_id = -1;
 $status = $gmailer->editContact(
 $contact_id,
 $name,
 $email,
 $all_searches
 );
 if ($status) {
 $contact_id = $gmailer->lastActionStatus('contact_id');
 }
 }

 if ($contact_id !== -1) {
 $all_searches = "contact_id%3D".$contact_id."%3B".$new_searches."%3B".$cookie."%3B"; // %3B = ;
 $status = $gmailer->editContact(
 $contact_id,
 $name,
 $email,
 $all_searches
 );

 if ($status) {
 $_SESSION['searches']        = $all_searches;
 $status_message                = $gm_lang['saved_search_saved'];
 }
 } else {
 $status_message    = $gm_lang['saved_search_error'];
 }

} elseif ($action == "edit") {
 $ids     = explode(";",((isset($_REQUEST['s_ids'])) ? $_REQUEST['s_ids'] : ""));
 // str_replace is safe; we are dealing with english internals
 $values = explode(";",str_replace(")","",$_REQUEST['s_vals']));

 $edit_id = "";
 $count_ids = count($ids);
 for ($i=0 ; $i < $count_ids; $i++) {
 if ($values[$i] == "e") {
 $edit_id = $ids[$i];
 break;
 }
 }

 if ($edit_id !== "") {
 // display edit searches screen
 print_searches_edit($edit_id);
 exit;
 }

 $status_message = $gm_lang['no_search_edit'];

} elseif ($action == "create") {

 // display edit searches screen
 print_searches_edit(-1);
 exit;

}

// for debugging
/* debug_print("gmailer object: ".print_r($gmailer,true)); */
//debug_print("snapshot: ".print_r($snapshot,true));
/* exit; */

$searches         = parse_persist_searches();
$s_count        = count($searches['searches']);
$has_searches     = ($s_count > 0) ? true : false ;

$ids = "-1";
$values = "-1";
$set_vars = "";
if ($has_searches) {
 for ($i = 0; $i < $s_count; $i++) {
 $id    = $i;
 $set_vars .= "<setvar name=\"s_$id\" value=\"0\" />\n";
 $ids .= ";".$id;
 $values .= ";"."$(s_".$id.")";
 }
}


print_headers();    // send wml headers
/* include("template.php");    // print template */
 ?>
<card title="<? echo $gm_lang['saved_searches'] ?>" id='main'>
<? if ($has_searches) { ?>
<onevent type="onenterforward">
<refresh>
<? echo $set_vars ; ?>
</refresh>
</onevent>
<? } ?>
<p>
<?
// display a system-wide message
system_message();

if ($status_message != "") echo "<em>".$status_message."</em><br /><br />\n";
?>
<b><? echo $gm_lang['saved_searches'] ?></b><br />
<small><? echo $gm_lang['saved_search_expl'] ?></small><br /><br />
<?
/* print_r($searches); */
if ($has_searches) {
 foreach ($searches['searches'] as $indexval => $search) {
 echo "<small><b>".cleanse_string(urldecode($search['label']))."</b><br />\n";
 $query = urldecode($search['query']);
 if (strlen($query) > 120) $query = substr($query,0,120)."...";
 echo cleanse_string($query)."</small><br />\n";
 echo "<select name=\"s_".$indexval."\">\n";
 echo "<option value=\"0\"> - </option>\n";
 echo "<option value=\"e\">".$gm_lang['edit']."</option>\n";
 //echo "<option value=\"d\">".$gm_lang['delete']."</option>\n";
 echo "</select>\n";
 echo "<br />\n";
 }
} else {
 echo $gm_lang['have_no_searches']."<br />\n";
}
echo "<br />\n";
print_searches_footer();
print_footer();


function print_searches_footer() {
 global $page;
 global $ids;
 global $values;
 global $has_searches;
 global $gm_lang;

 echo "<small>[".$gm_lang['saved_search_fx']."]</small><br /><br />";

 echo "<a href='".basename(SELF)."?act=create".RANDOM.GMID."'>".$gm_lang['create_new_search']."</a><br />\n";
 if ($has_searches) {
 ?>
 <anchor title="<? echo $gm_lang['edit_saved_search'] ?>"><go href="<? echo basename(SELF).'?act=edit&amp;amp;p='.$page.RANDOM.'&amp;amp;'.strip_tags(SID) ?>" method="post">
 <?
 echo "<postfield name=\"s_ids\" value=\"".$ids."\" />\n";
 echo "<postfield name=\"s_vals\" value=\"".$values."\" />\n";
 ?>
 </go><? echo $gm_lang['edit_saved_search'] ?></anchor>
 <br />
 <?

 }

/*     if ($_SESSION['gm_links_display'] != 2) { */
 echo "----------<br />";

 echo "<a href='setting.php?".RANDOM.GMID."'>".$gm_lang['settings']."</a><br />\n";
 echo "<a href='main.php?sum=1".RANDOM.GMID."'>".$gm_lang['summary']."</a><br />\n";
 echo "<a href='compose.php?action=new&amp;amp;back=filter.php".RANDOM.GMID."'>".$gm_lang['compose_mail']."</a><br />\n";
 echo "<a href='logout.php?".RANDOM.GMID."'>".$gm_lang['sign_out']."</a>\n";
/*     } */
 echo "</p>\n";

}

function print_searches_edit($search_id) {
 global $action;
 global $conf;
 global $gm_lang;

 $searches = parse_persist_searches();

 if ($search_id == -1) {
 $search = array("label" => "","query" => "", "unread" => 0,"total" => 0);
 } else {
 $search = $searches['searches'][$search_id];
 }

 print_headers();    // send wml headers
 ?>
<template>
<do type="prev" label="<? echo $gm_lang['back'] ?>" name="z"><prev/></do>
</template>
<card title="<? echo $gm_lang['filter'] ?>" id='main'>
<onevent type="onenterforward">
<refresh>
<setvar name="id" value="<? echo $search_id ?>" />
<setvar name="label" value="<? echo cleanse_string(urldecode($search['label'])) ?>" />
<setvar name="query" value="<? echo cleanse_string(urldecode($search['query'])) ?>" />
<setvar name="unread" value="<? echo $search['unread'] ?>" />
<setvar name="total" value="<? echo $search['total'] ?>" />
</refresh>
</onevent>
<p>
<?
// display a system-wide message
system_message();

?><b><? echo ($search_id == -1) ? $gm_lang['create_new_search'] : $gm_lang['edit_saved_search']; ?></b><br />
<br />
<small><? echo $gm_lang['search_clear_field'] ?></small><br />
<br />
<? echo $gm_lang['search_dis_name'] ?><br />
<small><? echo $gm_lang['search_dis_name_eg'] ?></small><br />
<input title="<? echo $gm_lang['search_dis_name'] ?>" name="label" emptyok="true" /><br />
<br />
<? echo $gm_lang['search_query_string'] ?><br />
<small><? echo $gm_lang['search_query_eg'] ?></small><br />
<input title="<? echo $gm_lang['search_query_string'] ?>" name="query" emptyok="true" /><br />
<br />
<br />
<a href="<? echo basename(SELF).'?'.RANDOM.GMID ?>"><? echo $gm_lang['cancel'] ?></a><br />
<b><anchor title="<? echo $gm_lang['save_changes'] ?>"><go href="<? echo basename(SELF).'?act=save'.RANDOM.'&amp;amp;'.strip_tags(SID) ?>" method="post">
 <?
 echo "<postfield name=\"id\" value=\"$(id)\" />\n";
 echo "<postfield name=\"label\" value=\"$(label)\" />\n";
 echo "<postfield name=\"query\" value=\"$(query)\" />\n";
 echo "<postfield name=\"unread\" value=\"$(unread)\" />\n";
 echo "<postfield name=\"total\" value=\"$(total)\" />\n";
 ?>
</go><? echo $gm_lang['save_changes'] ?></anchor></b>
<br />
<br />
<?
 echo "</p>\n";
 print_footer();
}

?>

&amp;nbsp;

Website Cache Compressor PHP Mobile Scripts

Website Cache Compressor is an innovative script allowing you to instantly reduce 50%+ loading time, server processing power, database queries as well as overall bandwidth consumption with ZERO server configuration required. Dynamic contents will only be processed once during a configurable time period. Page output will then be cached in plain HTML on the sever and transmit to your visitors’ computers.

 

 

<?
/****************************************************************

gmail-mobile (a.k.a. unofficial Gmail Mobile)
Copyright (c) 2005, 2006
Neerav Modi and others

Version 0.11 (c) 2004
GAN Ying Hung, Rudi Pittman, Gaston Annebicque

Licensed under the GNU GPL. For full terms see the file COPYING.

gmail-mobile (unofficial Gmail Mobile since Sept 2004) provides
access to Gmail accounts with any WAP enabled phone or hand held
(in WML format).

http://gmail-mobile.sourceforge.net

*****************************************************************/


require_once("libgmailer.php");
require_once("config.php");

// create the gmail object
$gmailer = new GMailer();
// initialize connection
quick_init($gmailer);

// Connect to gmail
connect_gmail();

// Localization (l10n) phrases
load_language();

$status = false;
$status_message = "";
$stdbox = $STANDARD_MAILBOX_NAMES;

if (isset($_GET['act']) and $_GET['act'] == "save") {

 $mobile_display = array();

 if (isset($_POST['display'])) {
 // str_replace is safe; we are dealing with english internals
 $temp_display = explode(";",str_replace(")","",$_POST['display']));

 $count_posted = count($temp_display);
 for ($i=0 ; $i < $count_posted; $i++) {
 if (
 $temp_display[$i] == ""
 or
 $temp_display[$i] == -1
 ) {
 continue;
 }
 // substr is safe; we are dealing with english internals
 $index = substr($temp_display[$i],0,1);
 if ($index == "s") {
 // substr is safe; we are dealing with english internals
 $index = substr($temp_display[$i],1,1);
 if (isset($stdbox[$index])) $mobile_display[] = strtolower($stdbox[$index]);
 } else {
 if (isset($_SESSION['gm_all_labels'][$temp_display[$i]])) $mobile_display[] = $_SESSION['gm_all_labels'][$temp_display[$i]];
 }
 }
 }

 if (count($mobile_display) == 0) {
 $mobile_display = array("inbox");
 }

 // perform the action
 $status = $gmailer->setMobileSetting($mobile_display);

 // no status message is returned
 //$status_message    = $gmailer->lastActionStatus('message');

 if ($status) {
 $status_message    = $gm_lang['gm_prefs_saved'];
 $gmailer->fetchBox(GM_PREFERENCE, 0, 0);
 $snapshot = $gmailer->getSnapshot(GM_PREFERENCE);
 if ($snapshot->created == 0) static_error($snapshot->snapshot_error);
 $_SESSION['gm_setting_mobile_cache'] = $snapshot->setting_mobile;
 $_SESSION['gm_setting_gen_cache'] = $snapshot->setting_gen;
 $_SESSION['gm_setting_fpop_cache'] = $snapshot->setting_fpop;
 $_SESSION['gm_setting_other_cache'] = $snapshot->setting_other;
 $_SESSION['gm_all_labels'] = $snapshot->label_list;

 $_SESSION['gm_display_boxes'] = $_SESSION['gm_setting_mobile_cache']['display_boxes'];

 // actual redirection
 redirect_page("main.php?sum=1", $gm_lang['gmail_mobile_settings'], $status_message);
 exit;
 } else {
 $status_message    = $gm_lang['gm_prefs_error'];
/*         debug_print("mobile prefs error: ".print_r($_ENV,true)."\n" */
/*             .print_r($mobile_display,true)."\n" */
/*             .print_r($gmailer,true)); */
 }

}

$gmailer->fetchBox(GM_PREFERENCE, 0, 0);
$snapshot = $gmailer->getSnapshot(GM_PREFERENCE);
if ($snapshot->created == 0) static_error($snapshot->snapshot_error);
$_SESSION['gm_setting_mobile_cache'] = $snapshot->setting_mobile;
$_SESSION['gm_setting_gen_cache'] = $snapshot->setting_gen;
$_SESSION['gm_setting_fpop_cache'] = $snapshot->setting_fpop;
$_SESSION['gm_setting_other_cache'] = $snapshot->setting_other;
$_SESSION['gm_all_labels'] = $snapshot->label_list;

$dis_mobile = $_SESSION['gm_setting_mobile_cache']['display_boxes'];
$_SESSION['gm_display_boxes'] = $_SESSION['gm_setting_mobile_cache']['display_boxes'];

$display = "-1";
$count_stdbox = count($stdbox);
for ($i = 0; $i < $count_stdbox; $i++) {
 if (array_search(strtolower($stdbox[$i]), $dis_mobile) !== false) {
 $display .= ';s'.$i;
 }
}
reset($_SESSION['gm_all_labels']);
foreach ($_SESSION['gm_all_labels'] as $indexval => $label_name) {
 if (array_search($label_name, $dis_mobile) !== false) {
 $display .= ';'.$indexval;
 };
}

// for debugging
/* debug_print("gmailer object: ".print_r($gmailer,true)); */
//debug_print("snapshot: ".print_r($snapshot,true));
/* exit; */


print_headers();    // send wml headers
include("template.php");    // print template
 ?>
<card title="<? echo $gm_lang['gmail_mobile'] ?>" id='main'>
<onevent type="onenterforward">
<refresh>
<setvar name="display" value="<? echo $display ?>" />
</refresh>
</onevent>
<p>
<?
// display a system-wide message
system_message();

if ($status_message != "") echo "<em>".$status_message."</em><br /><br />\n";
?>
<b><? echo $gm_lang['gmail_mobile_settings'] ?></b><br />
<br />
<b><? echo $gm_lang['custom_summary'] ?></b><br />
<small><? echo $gm_lang['custom_summary_exp'] ?></small><br />
<? /*<small>
 <anchor><? echo $gm_lang['reset'] ? ><refresh>
 <setvar name="display" value="<? echo $display ? >" />
 </refresh></anchor>
</small><br />
*/

?>
<select title="<? echo $gm_lang['custom_summary'] ?>" name="display" multiple="true">

<optgroup title="<? echo $gm_lang['standard_boxes'] ?>">
<?
for ($i = 0; $i < $count_stdbox; $i++) {
 if ($stdbox[$i] == "Chats") continue;
 echo "\t\t<option value=\"s".$i."\">".$stdbox[$i]."</option>\n";
}
?>
</optgroup>
<? if (count($_SESSION['gm_all_labels']) > 0) { ?>
<optgroup title="<? echo $gm_lang['labels'] ?>">
 <?
 reset($_SESSION['gm_all_labels']);
 foreach ($_SESSION['gm_all_labels'] as $indexval => $label_name) {
 // skip gmskin settings
 if (strpos($label_name, "gmskin:") !== false) continue;

 echo "\t\t<option value=\"".$indexval."\">".cleanse_string($label_name)."</option>\n";
 }
 ?>
</optgroup>
</select><br />
<br />
<? } else { ?>
</select><br />
<br />
<small>
<? echo $gm_lang['have_no_labels'] ?>
</small><br />
<? } ?>

<? echo "<a href='setting.php?".RANDOM.GMID."'>".$gm_lang['cancel']."</a><br />\n"; ?>
<anchor title="<? echo $gm_lang['save_changes'] ?>"><go href="<? echo basename(SELF).'?act=save'.RANDOM ?>" method="post">
 <postfield name="display" value="$(display)" />
 <postfield name="<? echo session_name() ?>" value="<? echo session_id() ?>" />
</go><? echo $gm_lang['save_changes'] ?></anchor>
<br />
<?
if ($_SESSION['gm_links_display'] != 2) {
 echo "--------<br />";
 echo "<a href='setting.php?".RANDOM.GMID."'>".$gm_lang['settings']."</a><br />\n";
 echo "<a href='main.php?sum=1".RANDOM.GMID."'>".$gm_lang['summary']."</a><br />\n";
 echo "<a href='compose.php?action=new&amp;amp;back=".basename(SELF).RANDOM.GMID."'>".$gm_lang['compose_mail']."</a><br />\n";
 echo "<a href='logout.php?".RANDOM.GMID."'>".$gm_lang['sign_out']."</a>\n";
}
echo "</p>\n";

print_footer();

?>

&amp;nbsp;

PHP Online Mobile Scripts Contact Manager

Online Contact Manager (formerly known as EContact PRO) is an ultimate online database system that allows you to store and retrieve contact information anywhere – anytime! You’ll also be able to easily send emails to contacts with the built-in email client. Online Contact Manager features Sorting, Mass Emails, Group Support, MS Outlook Synchronization, Birthday Reminder, Data Export (CSV/TAB/HTML), Preference Control, Full Data Manipulation Interfaces.

 

 

<?
/****************************************************************

gmail-mobile (a.k.a. unofficial Gmail Mobile)
Copyright (c) 2005, 2006
Neerav Modi and others

Version 0.11 (c) 2004
GAN Ying Hung, Rudi Pittman, Gaston Annebicque

Licensed under the GNU GPL. For full terms see the file COPYING.

gmail-mobile (unofficial Gmail Mobile since Sept 2004) provides
access to Gmail accounts with any WAP enabled phone or hand held
(in WML format).

http://gmail-mobile.sourceforge.net

*****************************************************************/


require_once("libgmailer.php");
require_once("config.php");

// create the gmail object
$gmailer = new GMailer();
// initialize connection
quick_init($gmailer);

// Connect to gmail
connect_gmail();

// Localization (l10n) phrases
load_language();

$send        = (isset($_POST['send']))    ? $_POST['send']    : 0 ;
$success    = (isset($_GET['success']))    ? $_GET['success']     : 0 ;
$max_invite = 1;    // max number of invites to send at one time
 // for mobiles, right now, it can ONLY be 1
if (isset($_POST['email']) and ($_POST['email'] != "")) {
 $email = $_POST['email'];
} else {
 $email = "";
 $send = 0;
}

if ($send) {
 // send invites to $email1 to $email10
/*     for ($i = 1; $i <= 10; $i++) { */
/*         if (!isset($_POST[$i]) or $_POST[$i] == "") continue; */
/*         if (!isset($_POST[$i]) or $_POST[$i] == "") continue; */
/*         $gmailer->invite($_POST[$i]); */
/*     } */

 $status = $gmailer->invite($email);
 $status_message    = $gmailer->lastActionStatus('message');

 // redirect
 $title = $gm_lang['sending_invite'];
 $message = "<b>$status_message</b>";

 // actual redirection
 redirect_page(basename(SELF), $title, $message);

 // MUST exit script after redirecting
 exit();

}

/* @list($sess_name,$sess_id) = explode("=",strip_tags(SID)); */
$gmailer->fetch("search=inbox&amp;view=tl&amp;start=0&amp;init=1");
$snapshot = $gmailer->getSnapshot(GM_STANDARD);
if ($snapshot->created == 0) static_error($snapshot->snapshot_error);
$invites = $snapshot->have_invit;

print_headers();            // send wml headers
include("template.php");    // print template

?>
<card title="<? echo $gm_lang['send_invite_cap'] ?>">
<onevent type="onenterforward">
 <refresh>
 <setvar name="email" value=""/>
 </refresh>
</onevent>

<p>
<?
// display a system-wide message
system_message();

echo $gm_lang['send_invite_cap'] ?><br />
<br />
<?
//echo $invites; echo ($invites == 1) ? " ".$gm_lang['invite_left'] : " ".$gm_lang['invites_left']
echo sprintf($gm_lang['invites_left'],$invites);
?> <br />
<br />
<? echo $gm_lang['enter_fr_email'] ?><br />
</p>
<? if ($invites > 0) { ?>

<p>
<? for ($i = 1; $i <= $invites &amp;&amp; $i <= $max_invite; $i++) { ?>
<input name="email" value="" emptyok="true" /><br />
<? } ?>
<b><anchor><? echo $gm_lang['send_invite'] ?><go href="<? echo basename(SELF).'?'.RANDOM;?>" method="post">
<? for ($i = 1; $i <= $invites &amp;&amp; $i <= $max_invite; $i++) { ?>
<postfield name="email" value="$(email)" />
<? } ?>
<postfield name="send" value="1" />
<postfield name="<? echo session_name() ?>" value="<? echo session_id() ?>" />
</go></anchor></b><br />

<? } else { ?>

<p><? echo $gm_lang['no_invites_2_send']?><br />
<br />

<? } ?>

<b><a href="main.php?sum=1<? echo RANDOM.GMID ?>"><? echo $gm_lang['cancel_done'] ?></a></b>
<?
if ($_SESSION['gm_links_display'] != 2) {
 echo "--------<br />";
 echo "<a href='setting.php?".RANDOM.GMID."'>".$gm_lang['settings']."</a><br />\n";
 echo "<a href='main.php?sum=1".RANDOM.GMID."'>".$gm_lang['summary']."</a><br />\n";
 echo "<a href='compose.php?action=new&amp;amp;back=".basename(SELF).RANDOM.GMID."'>".$gm_lang['compose_mail']."</a><br />\n";
 echo "<a href='logout.php?".RANDOM.GMID."'>".$gm_lang['sign_out']."</a>\n";
}
echo "</p>\n";
print_footer();
?>

&amp;nbsp;

PHP application to access Gmail Mobile Scripts

gmail-mobile is a PHP application to access Gmail/Googlemail/Gmail-for-Your-Domain accounts on wireless devices. It provides a convenient alternative access method to your email account on the move, gmail-mobile incorporates as many Gmail features as possible within limits of a mobile device.

 

 

<?
/****************************************************************

gmail-mobile (a.k.a. unofficial Gmail Mobile)
Copyright (c) 2005, 2006
Neerav Modi and others

Version 0.11 (c) 2004
GAN Ying Hung, Rudi Pittman, Gaston Annebicque

Licensed under the GNU GPL. For full terms see the file COPYING.

gmail-mobile (unofficial Gmail Mobile since Sept 2004) provides
access to Gmail accounts with any WAP enabled phone or hand held
(in WML format).

http://gmail-mobile.sourceforge.net

*****************************************************************/


require_once("libgmailer.php");
require_once("config.php");

// create the gmail object
$gmailer = new GMailer();
// initialize connection
quick_init($gmailer);

// Connect to gmail
connect_gmail();

// Localization (l10n) phrases
load_language();

$status = false;
$status_message = "";

if (isset($_GET['act']) and $_GET['act'] == "save") {

 $shortcuts    = (isset($_POST['short']))         ? $_POST['short']        : 0;
 $p_indicator= (isset($_POST['p_ind']))         ? $_POST['p_ind']        : 0;
 $snippets    = (isset($_POST['snip']))         ? $_POST['snip']        : 1;
 $use_sign    = (isset($_POST['usign']))         ? $_POST['usign']        : 0;
 $signature    = (isset($_POST['sign']))         ? $_POST['sign']        : "";
 $lang        = (isset($_POST['lang']))         ? $_POST['lang']        : "en";
 $psize        = (isset($_POST['psize']))         ? $_POST['psize']        : 25;
 $encoding    = (isset($_POST['enc']))         ? $_POST['enc']            : 0;
 $vacation    = (isset($_POST['vac']))         ? $_POST['vac']            : 0;
 $vacation_subject    = (isset($_POST['vacs']))     ? stripslashes($_POST['vacs'])    : "";
 $vacation_message    = (isset($_POST['vacm']))     ? stripslashes($_POST['vacm'])    : "";
 $vacation_contacts    = (isset($_POST['vacc']))     ? $_POST['vacc']    : 0;

 // str_replace is NOT safe; we need gmStr_replace
 $signature = gmStr_replace("\\n","\r\n",stripslashes($signature));

 // change Gmail Language
 if (!isset($_SESSION['gm_language'])) $_SESSION['gm_language'] = "zz";

/*     debug_print("new_lang: ".print_r($lang,true)); */
/*     debug_print("session old_lang: ".print_r($_SESSION['gm_language'],true)); */

 if ($lang != $_SESSION['gm_language']) {
 $status = $gmailer->changeLanguage($lang, $_SESSION['gm_language']);

 // perform the action to prime the language change
 $status = $gmailer->setSetting(
 $lang, $psize, $shortcuts,
 $p_indicator, $snippets, $use_sign, $signature,
 $encoding,
 $_SESSION['gm_setting_fpop_cache']['forward'],
 $_SESSION['gm_setting_fpop_cache']['forward_to'],
 $_SESSION['gm_setting_fpop_cache']['forward_action'],
 $_SESSION['gm_setting_fpop_cache']['pop_enabled'],
 $_SESSION['gm_setting_fpop_cache']['pop_action'],
 $_SESSION['gm_setting_other_cache']['rich_text'],
 $_SESSION['gm_setting_other_cache']['expand_labels'],
 $_SESSION['gm_setting_other_cache']['expand_invites'],
 $vacation, $vacation_subject, $vacation_message, $vacation_contacts,
 $_SESSION['gm_setting_other_cache']['expand_talk'],
 $_SESSION['gm_setting_other_cache']['save_chat']
 );
 }

 // perform the action
 $status = $gmailer->setSetting(
 $lang, $psize, $shortcuts,
 $p_indicator, $snippets, $use_sign, $signature,
 $encoding,
 $_SESSION['gm_setting_fpop_cache']['forward'],
 $_SESSION['gm_setting_fpop_cache']['forward_to'],
 $_SESSION['gm_setting_fpop_cache']['forward_action'],
 $_SESSION['gm_setting_fpop_cache']['pop_enabled'],
 $_SESSION['gm_setting_fpop_cache']['pop_action'],
 $_SESSION['gm_setting_other_cache']['rich_text'],
 $_SESSION['gm_setting_other_cache']['expand_labels'],
 $_SESSION['gm_setting_other_cache']['expand_invites'],
 $vacation, $vacation_subject, $vacation_message, $vacation_contacts,
 $_SESSION['gm_setting_other_cache']['expand_talk'],
 $_SESSION['gm_setting_other_cache']['save_chat']
 );

 $status_message    = $gmailer->lastActionStatus('message');

 if ($status) {
 $_SESSION['gm_language'] = $lang;
 if ($use_sign) {
 $_SESSION['gm_signature'] = ($signature != "")
 ? "\r\n\r\n--\r\n".$signature
 : ""
 ;
 }
 if ($_SESSION['gm_language'] == "en") {
 include("gmobile_lang.php");
 } else {
 if (file_exists("lang/".$_SESSION['gm_language'].".php")) {
 include("lang/".$_SESSION['gm_language'].".php");
 }
 }
 }
}

$gmailer->fetchBox(GM_PREFERENCE, 0, 0);
$snapshot = $gmailer->getSnapshot(GM_PREFERENCE);
if ($snapshot->created == 0) static_error($snapshot->snapshot_error);
$setting = $snapshot->setting_gen;

// update cached preferences
$_SESSION['gm_setting_gen_cache'] = $snapshot->setting_gen;
$_SESSION['gm_setting_fpop_cache'] = $snapshot->setting_fpop;
$_SESSION['gm_setting_other_cache'] = $snapshot->setting_other;
$_SESSION['gm_setting_mobile_cache'] = $snapshot->setting_mobile;
$_SESSION['gm_display_boxes'] = $_SESSION['gm_setting_mobile_cache']['display_boxes'];

// update other cached info
$_SESSION['gm_language']      = ((isset($snapshot->setting_gen['language'])) and ($snapshot->setting_gen['language'] != ""))
 ? $snapshot->setting_gen['language']
 : "en"
 ;

$_SESSION['gm_signature']      =
 (isset($snapshot->setting_gen['signature']) and ($snapshot->setting_gen['signature'] != ""))
 ? "\r\n\r\n--\r\n".$snapshot->signature
 : ""
 ;

// Mailbox size warning
if    (        isset($snapshot->setting_gen['page_size'])
 and ($snapshot->setting_gen['page_size'] != "")
 and ($snapshot->setting_gen['page_size'] > 25)
 )
 $status_message = sprintf($gm_lang['reduce_mailbox_size'],strip_tags(SID))."<br /><br />".$status_message;

// for debugging
/* debug_print("gmailer object: ".print_r($gmailer,true)); */
//debug_print("snapshot object: ".print_r($snapshot,true));
/* exit; */

$sup_langs  = array (
 "id"    => "Bahasa Indonesia"    // Indonesian
 ,"ca"    => "Catala"                // Catalan
 ,"da"    => "Dansk"                // Danish
 ,"de"    => "Deutsch"            // German
 ,"et"    => "Eesti Keel"            // Estonian
 ,"en"    => "English (US)"        // English (US)
 ,"en-GB"=> "English (UK)"        // English (UK)
 ,"es"    => "Espanol"            // Spanish
 ,"fr"    => "Francais"            // French
 ,"hr"    => "Hrvatski"            // Croatian
 ,"it"    => "Italiano"            // Italian
 ,"is"    => "islenska"            // Icelandic
 ,"lv"    => "Latvian"            // Latvian
 ,"lt"    => "Lietuviu"            // Lithuanian
 ,"hu"    => "Magyar"                // Hungarian
 ,"nl"    => "Nederlands"            // Dutch
 ,"pl"    => "Polski"                // Polish
 ,"pt-BR"=> "Portugues"            // Portuguese-Brazil
 ,"ro"    => "Romana"                // Romanian
 ,"sk"    => "Slovensky"            // Slovak
 ,"sl"    => "Slovenscina"        // Slovenian
 ,"fi"    => "Suomi"                // Finnish
 ,"sv"    => "Svenska"            // Swedish
 ,"tl"    => "Tagalog"            // Tagalog
 ,"vi"    => "Tieng Viet"            // Vietnamese
 ,"tr"    => "Turkish"            //
 ,"cs"    => "Czech"                //
 ,"el"    => "Greek"                //
 ,"ru"    => "Russian"            //
 ,"sr"    => "Serbian"            //
 ,"uk"    => "Ukrainian"            //
 ,"bg"    => "Bulgarian"            //
 ,"iw"    => "Hebrew"                //
 ,"ar"    => "Arabic"                //
 ,"hi"    => "Hindi"                //
 ,"th"    => "Thai"                //
 ,"zh-TW"=> "Chinese (Traditional)"        //
 ,"zh-CN"=> "Chinese (Simplified)"        //
 ,"ja"    => "Japanese"            //
 ,"ko"    => "Korean"                //

);

$setvar_signature = str_replace("\n","\\n",cleanse_string($setting["signature"]));
$setvar_vacm = str_replace("\n","\\n",cleanse_string($setting["vacation_message"]));

print_headers();    // send wml headers
//include("template.php");    // print template
 ?>
<card title="<? echo $gm_lang['general'] ?>" id='main'>
<onevent type="onenterforward">
<refresh>
<setvar name="lang" value="<? echo $setting['language'] ?>" />
<setvar name="short" value="<? echo $setting['shortcuts'] ?>" />
<setvar name="p_ind" value="<? echo $setting['p_indicator'] ?>" />
<setvar name="snip" value="<? echo $setting['show_snippets'] ?>" />
<setvar name="usign" value="<? echo $setting['use_signature'] ?>" />
<setvar name="sign" value="<? echo $setvar_signature ?>" />
<setvar name="psize" value="<? echo $setting['page_size'] ?>" />
<setvar name="enc" value="<? echo $setting['encoding'] ?>" />
<setvar name="vac" value="<? echo $setting['vacation_enabled'] ?>" />
<setvar name="vacs" value="<? echo cleanse_string($setting['vacation_subject']) ?>" />
<setvar name="vacm" value="<? echo $setvar_vacm ?>" />
<setvar name="vacc" value="<? echo $setting['vacation_contact'] ?>" />
</refresh>
</onevent>
<p>
<?
// display a system-wide message
system_message();

if ($status_message != "") echo "<em>".$status_message."</em><br /><br />\n";
?>
<b><? echo $gm_lang['general_settings']?></b><br />
<br />
<small><? echo $gm_lang['na_equals'] ?></small><br />
<br />
<b><? echo $gm_lang['gmail_dis_lang']?></b><br />
<select title="<? echo $gm_lang['gmail_dis_lang']?>" name="lang">
<?
if (!array_key_exists($setting['language'], $sup_langs)) {
 echo "<option value=\"".$setting['language']."\">".$setting['language']."</option>\n";
}
foreach($sup_langs as $lang_code => $lang_name) {
 echo "<option value=\"".$lang_code."\">".$lang_name."</option>\n";
}

?>
</select><br />
<br />
<b><? echo $gm_lang['max_page_size'] ?></b> <? echo $gm_lang['na'] ?><br />
<? if ($setting['page_size'] > 25) echo "<small><b>".$gm_lang['set_to_25']."<br /></b></small>"; ?>
<select title="<? echo $gm_lang['page_size']?>" name="psize">
 <option value="10">10</option>
 <option value="15">15</option>
 <option value="20">20</option>
 <option value="25">25</option>
 <option value="50">50</option>
 <option value="100">100</option>
</select>
<br />

<b><? echo $gm_lang['keyboard_shortcuts'] ?></b> <? echo $gm_lang['na'] ?><br />
<select title="<? echo $gm_lang['keyboard_shortcuts'] ?>" name="short">
 <option value="0"><? echo $gm_lang['off'] ?></option>
 <option value="1"><? echo $gm_lang['on'] ?></option>
</select>
<br />

<b><? echo $gm_lang['pers_level_ind'] ?>:</b><br />
<small>(&amp;gt; and &amp;gt;&amp;gt;)</small><br />
<select title="<? echo $gm_lang['pers_level_ind'] ?> (&amp;gt; and &amp;gt;&amp;gt;): " name="p_ind">
 <option value="0"><? echo $gm_lang['no_indicators'] ?></option>
 <option value="1"><? echo $gm_lang['show_indicators'] ?></option>
</select>
<br />

<b><? echo $gm_lang['snippets'] ?></b> <? echo $gm_lang['na'] ?><br />
<select title="<? echo $gm_lang['snippets'] ?>" name="snip">
 <option value="0"><? echo $gm_lang['no_snippets'] ?></option>
 <option value="1"><? echo $gm_lang['show_snippets'] ?></option>
</select>
<br />

<b><? echo $gm_lang['signature_col'] ?></b><br />
<small><? echo $gm_lang['append_to_all'] ?></small><br />
<select title="<? echo $gm_lang['signature_col'] ?>" name="usign">
 <option value="0"><? echo $gm_lang['none_cap'] ?></option>
 <option value="1"><? echo $gm_lang['custom'] ?></option>
</select>
<small><? echo $gm_lang['custom_signature']."<br />".$gm_lang['return_character'] ?></small><br />
<input title="<? echo $gm_lang['signature_col'] ?>" name="sign" emptyok="true" /><br />

<b><? echo $gm_lang['vacation_responder'] ?></b><br />
<small><? echo $gm_lang['vacation_resp_ext'] ?></small><br />
<select title="<? echo $gm_lang['vacation_responder'] ?>" name="vac">
 <option value="0"><? echo $gm_lang['off'] ?></option>
 <option value="1"><? echo $gm_lang['on'] ?></option>
</select>
<small><? echo $gm_lang['subject'] ?></small><br />
<input title="<? echo $gm_lang['subject'] ?>" name="vacs" emptyok="true" maxlength="250" /><br />
<small><? echo $gm_lang['message']."<br />".$gm_lang['return_character'] ?></small><br />
<input title="<? echo $gm_lang['message'] ?>" name="vacm" emptyok="true" /><br />
<small><? echo $gm_lang['vacation_cont_only'] ?></small><br />
<select title="<? echo $gm_lang['vacation_only_cont'] ?>" name="vacc">
 <option value="0"><? echo $gm_lang['no'] ?></option>
 <option value="1"><? echo $gm_lang['yes'] ?></option>
</select>
<br />

<b><? echo $gm_lang['out_msg_encoding'] ?></b><br />
<select title="<? echo $gm_lang['out_msg_encoding'] ?>" name="enc">
 <option value="0"><? echo $gm_lang['default_encoding'] ?></option>
 <option value="1"><? echo $gm_lang['unicode_encoding'] ?></option>
</select>
<br />

<? echo "<a href='setting.php?".RANDOM.GMID."'>".$gm_lang['cancel']."</a><br />\n"; ?>
<anchor title="<? echo $gm_lang['save_changes'] ?>"><go href="<? echo basename(SELF).'?act=save'.RANDOM.'&amp;amp;'.strip_tags(SID) ?>" method="post">
 <postfield name="short" value="$(short)" />
 <postfield name="p_ind" value="$(p_ind)" />
 <postfield name="snip" value="$(snip)" />
 <postfield name="usign" value="$(usign)" />
 <postfield name="sign" value="$(sign)" />
 <postfield name="lang" value="$(lang)" />
 <postfield name="psize" value="$(psize)" />
 <postfield name="enc" value="$(enc)" />
 <postfield name="vac" value="$(vac)" />
 <postfield name="vacm" value="$(vacm)" />
 <postfield name="vacs" value="$(vacs)" />
 <postfield name="vacc" value="$(vacc)" />
</go><? echo $gm_lang['save_changes'] ?></anchor>
<br />
<?
//if ($_SESSION['gm_links_display'] != 2) {
 echo "--------<br />";
 echo "<a href='setting.php?".RANDOM.GMID."'>".$gm_lang['settings']."</a><br />\n";
 echo "<a href='main.php?sum=1".RANDOM.GMID."'>".$gm_lang['summary']."</a><br />\n";
 echo "<a href='compose.php?action=new&amp;amp;back=".basename(SELF).RANDOM.GMID."'>".$gm_lang['compose_mail']."</a><br />\n";
 echo "<a href='logout.php?".RANDOM.GMID."'>".$gm_lang['sign_out']."</a>\n";
//}
echo "</p>\n";

print_footer();

?>

&amp;nbsp;

Simplewire network to reach mobile users

This script allows you to embed SMS wireless messaging to cell phones and pagers from PHP applications of all types. It uses the Simplewire network to reach mobile users in 118 countries.

 

 

<pre>?>

<?
    $sms = new COM("Simplewire.SMS");

    // Subscriber Settings
    $sms->SubscriberID = "123-456-789-12345";
    $sms->SubscriberPassword = "Password Goes Here";

    // Message Settings
    $sms->MsgPin = "+1 100 510 1234";
    $sms->MsgFrom = "Demo";
    $sms->MsgCallback = "+1 100 555 1212";
    $sms->MsgText = "Hello World From Simplewire!";

    print("<b>Sending message to Simplewire...</b><br>");
   
    // Send Message
    $sms->MsgSend();

    // Check For Errors
    if($sms->Success)
    {
        print("<b>Message was sent!</b><br>");
    }
    else
    {
        print("<b>Message was not sent!</b><br>");
        print("Error Code: $sms->ErrorCode<br>");
        print("Error Description: $sms->ErrorDesc<br>");
    }
?>
</pre>
&amp;nbsp;