Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulienMoumne <julien@piwik.org>2012-08-14 00:26:46 +0400
committerJulienMoumne <julien@piwik.org>2012-08-14 00:26:46 +0400
commit7427003ab87ef41d1b1f23365480cf8c8bb11242 (patch)
tree203b52fb8bcb69f2b4b999cb828dc3386c29e8ae /plugins/MobileMessaging/GSMCharset.php
parent4931b9809c69947a16b67954802cecd5140bdfad (diff)
refs #2708
* fixing a bug in ''Piwik::getPrettyValue()'' where a revenue evolution would be prettified like so: ''$ 100%'' * fixing a bug happening when no data is available for the selected day * when MultiSites plugin is deactivated, invite user via SMS to activate it back * SMS API accounts are now managed using an API key instead of a username and a password * adding ''[too long]'' at the end of the SMS content when it reaches the maximum length allowed by the SMS API * support for UCS-2 characters * Mediaburst rebranded to Clockwork * various UI improvements based on comment:31:ticket:2708 * PDFReport.generateReport now supports $outputType=3 : output report in browser * removing non-libre select-to-autocomplete jQuery plugin * tracking count of phone number validation requests and SMS sent * SMS content now contains CoreHome_ThereIsNoDataForThisReport when applicable * setting SMS From with General_Reports when configured report is MultiSites_getAll * adding Clockwork description TODO * using POST instead of GET to send SMS to go around a Clockwork limitation git-svn-id: http://dev.piwik.org/svn/trunk@6727 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/MobileMessaging/GSMCharset.php')
-rw-r--r--plugins/MobileMessaging/GSMCharset.php160
1 files changed, 160 insertions, 0 deletions
diff --git a/plugins/MobileMessaging/GSMCharset.php b/plugins/MobileMessaging/GSMCharset.php
new file mode 100644
index 0000000000..cbd2980676
--- /dev/null
+++ b/plugins/MobileMessaging/GSMCharset.php
@@ -0,0 +1,160 @@
+<?php
+/**
+ * Piwik - Open source web analytics
+ *
+ * @link http://piwik.org
+ * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+ * @version $Id$
+ *
+ * @category Piwik_Plugins
+ * @package Piwik_MobileMessaging
+ */
+
+/**
+ * GSM 03.38 Charset
+ *
+ * @package Piwik_MobileMessaging
+ */
+class Piwik_MobileMessaging_GSMCharset
+{
+ public static $GSMCharset = array(
+
+ // Standard GSM Characters, weight = 1
+ '@' => 1,
+ '£' => 1,
+ '$' => 1,
+ '¥' => 1,
+ 'è' => 1,
+ 'é' => 1,
+ 'ù' => 1,
+ 'ì' => 1,
+ 'ò' => 1,
+ 'Ç' => 1,
+ 'Ø' => 1,
+ 'ø' => 1,
+ 'Å' => 1,
+ 'å' => 1,
+ '∆' => 1,
+ '_' => 1,
+ 'Φ' => 1,
+ 'Γ' => 1,
+ 'Λ' => 1,
+ 'Ω' => 1,
+ 'Π' => 1,
+ 'Ψ' => 1,
+ 'Σ' => 1,
+ 'Θ' => 1,
+ 'Ξ' => 1,
+ 'Æ' => 1,
+ 'æ' => 1,
+ 'ß' => 1,
+ 'É' => 1,
+ ' ' => 1,
+ '!' => 1,
+ '"' => 1,
+ '#' => 1,
+ '¤' => 1,
+ '%' => 1,
+ '&' => 1,
+ '\'' => 1,
+ '(' => 1,
+ ')' => 1,
+ '*' => 1,
+ '+' => 1,
+ ',' => 1,
+ '-' => 1,
+ '.' => 1,
+ '/' => 1,
+ '0' => 1,
+ '1' => 1,
+ '2' => 1,
+ '3' => 1,
+ '4' => 1,
+ '5' => 1,
+ '6' => 1,
+ '7' => 1,
+ '8' => 1,
+ '9' => 1,
+ ':' => 1,
+ ';' => 1,
+ '<' => 1,
+ '=' => 1,
+ '>' => 1,
+ '?' => 1,
+ '¡' => 1,
+ 'A' => 1,
+ 'B' => 1,
+ 'C' => 1,
+ 'D' => 1,
+ 'E' => 1,
+ 'F' => 1,
+ 'G' => 1,
+ 'H' => 1,
+ 'I' => 1,
+ 'J' => 1,
+ 'K' => 1,
+ 'L' => 1,
+ 'M' => 1,
+ 'N' => 1,
+ 'O' => 1,
+ 'P' => 1,
+ 'Q' => 1,
+ 'R' => 1,
+ 'S' => 1,
+ 'T' => 1,
+ 'U' => 1,
+ 'V' => 1,
+ 'W' => 1,
+ 'X' => 1,
+ 'Y' => 1,
+ 'Z' => 1,
+ 'Ä' => 1,
+ 'Ö' => 1,
+ 'Ñ' => 1,
+ 'Ü' => 1,
+ '§' => 1,
+ '¿' => 1,
+ 'a' => 1,
+ 'b' => 1,
+ 'c' => 1,
+ 'd' => 1,
+ 'e' => 1,
+ 'f' => 1,
+ 'g' => 1,
+ 'h' => 1,
+ 'i' => 1,
+ 'j' => 1,
+ 'k' => 1,
+ 'l' => 1,
+ 'm' => 1,
+ 'n' => 1,
+ 'o' => 1,
+ 'p' => 1,
+ 'q' => 1,
+ 'r' => 1,
+ 's' => 1,
+ 't' => 1,
+ 'u' => 1,
+ 'v' => 1,
+ 'w' => 1,
+ 'x' => 1,
+ 'y' => 1,
+ 'z' => 1,
+ 'ä' => 1,
+ 'ö' => 1,
+ 'ñ' => 1,
+ 'ü' => 1,
+ 'à' => 1,
+
+ // Extended GSM Characters, weight = 2
+ '^' => 2,
+ '{' => 2,
+ '}' => 2,
+ '\\' => 2,
+ '[' => 2,
+ '~' => 2,
+ ']' => 2,
+ '|' => 2,
+ '€' => 2,
+ );
+}