diff --git a/site/admin/images/favicon.ico b/site/admin/images/favicon.ico new file mode 100644 index 00000000..f042a878 Binary files /dev/null and b/site/admin/images/favicon.ico differ diff --git a/site/admin/images/formline.gif b/site/admin/images/formline.gif new file mode 100644 index 00000000..4c0d1554 Binary files /dev/null and b/site/admin/images/formline.gif differ diff --git a/site/admin/images/free.gif b/site/admin/images/free.gif new file mode 100644 index 00000000..1fb63de6 Binary files /dev/null and b/site/admin/images/free.gif differ diff --git a/site/admin/images/icon_err.gif b/site/admin/images/icon_err.gif new file mode 100644 index 00000000..6d7791de Binary files /dev/null and b/site/admin/images/icon_err.gif differ diff --git a/site/admin/images/loginbg.gif b/site/admin/images/loginbg.gif new file mode 100644 index 00000000..fbf2f932 Binary files /dev/null and b/site/admin/images/loginbg.gif differ diff --git a/site/admin/images/logincrnlb.gif b/site/admin/images/logincrnlb.gif new file mode 100644 index 00000000..584fa6fe Binary files /dev/null and b/site/admin/images/logincrnlb.gif differ diff --git a/site/admin/images/logincrnlt.gif b/site/admin/images/logincrnlt.gif new file mode 100644 index 00000000..afe30460 Binary files /dev/null and b/site/admin/images/logincrnlt.gif differ diff --git a/site/admin/images/logincrnrb.gif b/site/admin/images/logincrnrb.gif new file mode 100644 index 00000000..39f82e8b Binary files /dev/null and b/site/admin/images/logincrnrb.gif differ diff --git a/site/admin/images/logincrnrt.gif b/site/admin/images/logincrnrt.gif new file mode 100644 index 00000000..2406eb6d Binary files /dev/null and b/site/admin/images/logincrnrt.gif differ diff --git a/site/admin/images/save.gif b/site/admin/images/save.gif new file mode 100644 index 00000000..d27f651e Binary files /dev/null and b/site/admin/images/save.gif differ diff --git a/site/admin/images/tablediv3.gif b/site/admin/images/tablediv3.gif new file mode 100644 index 00000000..246607e3 Binary files /dev/null and b/site/admin/images/tablediv3.gif differ diff --git a/site/admin/styles.css b/site/admin/styles.css new file mode 100644 index 00000000..45885472 --- /dev/null +++ b/site/admin/styles.css @@ -0,0 +1,337 @@ +a { + text-decoration: underline; +} + +a:hover { + text-decoration: none; +} + +ul { + margin-bottom: 10px; + margin-top: 10px; + margin-left: 0px; +} + +li { + margin-left: 18px; + list-style-image: url(images/li.gif); +} + +li.error { + margin-left: 15px; + list-style-image: url(images/li_error.gif); +} + +li.grey { + margin-left: 15px; + list-style-image: url(images/li_grey.gif); +} + +form { + margin-bottom: 0px; + margin-top: 0px; +} + +.bgcn { + background-position: center; + background-repeat: no-repeat; +} + +.bgrn { + background-position: right; + background-repeat: no-repeat; +} + +.bgcy { + background-position: center; + background-repeat: repeat-y; +} + +.bgry { + background-position: right; + background-repeat: repeat-y; +} + +.bgly { + background-position: left; + background-repeat: repeat-y; +} + +.bgbx { + background-position: bottom; + background-repeat: repeat-x; +} + +.textform { + font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; + font-size: 11px; + color: #000000; +} + +.textform a { + color: #2971C1; +} + +.text { + font-family: Arial, Helvetica, sans-serif; + font-size: 12px; + color: #515151; +} + +.text h1 { + margin-bottom: 15px; + margin-top: 0px; + color: #000000; + font-size: 18px; + font-weight: normal; + line-height: 15px; +} + +.text h2 { + margin-bottom: 15px; + margin-top: 0px; + color: #000000; + font-size: 16px; +} + +.text h3 { + margin-bottom: 15px; + margin-top: 0px; + color: #000000; + font-size: 14px; +} + +.text h4 { + margin-bottom: 15px; + margin-top: 0px; + color: #000000; + font-size: 12px; +} + +.text span.date { + font-size: 11px; + color: #FFFFFF; + font-weight: bold; +} + +.text span.sub { + font-size: 11px; + color: #676767; +} + +.text a.sublink { + font-size: 11px; + color: #666666; +} + +.text b.black { + color: #000000; +} + +.text span.black { + color: #000000; +} + +.block { + font-family: Arial, Helvetica, sans-serif; + font-size: 11px; + color: #515151; +} + +.block h1 { + margin-bottom: 10px; + font-size: 12px; + color: #000000; + font-weight: bold; + line-height: 11px; +} + +.bann { + font-family: Arial, Helvetica, sans-serif; + font-size: 21px; + color: #000000; + line-height: 18px; +} + +.bann span.text { + font-size: 14px; + color: #9F7800; +} + +.bannin { + font-family: Arial, Helvetica, sans-serif; + font-size: 17px; + color: #000000; + line-height: 14px; + font-weight: bold; +} + +.bannin span.text { + font-size: 12px; + color: #9F7800; + font-weight: normal; + white-space: nowrap; +} + +.bannform { + font-family: Arial, Helvetica, sans-serif; + font-size: 12px; + color: #766037; +} + +.menu { + font-family: Arial, Helvetica, sans-serif; + font-size: 12px; + color: #000000; +} + +.menu a { + color: #000000; +} + +.smenu { + font-family: Arial, Helvetica, sans-serif; + font-size: 12px; + color: #165798; +} + +.smenu a { + color: #165798; +} + +.table { + font-family: Arial, Helvetica, sans-serif; + font-size: 12px; + color: #515151; + padding-left: 5px; + padding-right: 15px; + padding-top: 2px; + padding-bottom: 2px; +} + +.table span.header { + color: #FFFFFF; +} + +.table span.headergrey { + color: #676767; +} + +.table a.black { + color: #000000; +} + +.table span.black { + color: #000000; +} + +.table a.blocked { + color: #e0a0a0; +} + +.address { + font-family: Arial, Helvetica, sans-serif; + font-size: 12px; + color: #000000; +} + +.address a { + color: #000000; +} + +.phone { + font-family: Arial, Helvetica, sans-serif; + font-size: 12px; + color: #000000; +} + +.phone span.number { + font-size: 17px; + color: #3D79AD; + font-weight: bold; +} + +td.formauth { + font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; + font-size: 11px; + color: #000000; + padding-left: 0px; +} + +td.formauth span { + color: #474747; +} + +td.formauth span.formdescr { + font-size: 10px; + color: #676767; +} + +.formauth { + font-family: Arial, Helvetica, sans-serif; + font-size: 11px; + color: #676767; +} + +input.formauth { + border: 1px solid #878787; +} + +textarea.formauth { + border: 1px solid #878787; + overflow: auto; +} + +.submit a { + font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; + font-size: 11px; + color: #000000; + text-decoration: none; +} + +.perpage { + font-family: Arial, Helvetica, sans-serif; + font-size: 11px; + color: #676767; +} + +input.submit { + font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; + font-size: 11px; + color: #000000; + background: transparent; + background-image: url(images/submitbg.gif); + height: 33px; + cursor: hand; + border: none; +} + +.cal { + font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; + font-size: 11px; + color: #515151; +} + +.cal a { + color: #515151; + text-decoration: none; +} + +.cal span { + color: #B70606; +} + +.cal b { + color: #000000; +} + +.firstmessage a { + font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; + font-size: 10px; + text-decoration: none; + color: #6a6a6a; +} + +.firstmessage a:hover { + color: #8a6a6a; +} \ No newline at end of file diff --git a/site/admin/translate.php b/site/admin/translate.php new file mode 100644 index 00000000..17d29023 --- /dev/null +++ b/site/admin/translate.php @@ -0,0 +1,141 @@ + $source, + 'lang2' => $target, + 'title1' => isset($lang1["localeid"]) ? $lang1["localeid"] : $source, + 'title2' => isset($lang2["localeid"]) ? $lang2["localeid"] : $target +); + +if($stringid) { + $translation = isset($lang2[$stringid]) ? $lang2[$stringid] : ""; + if(isset($_POST['translation'])) { + + $translation = getparam('translation'); + + if(!$translation) { + $errors[] = no_field("form.field.translation"); + } + + if(count($errors) == 0) { + save_message($target, $stringid, $translation); + + $page['saved'] = true; + start_html_output(); + require('view/translate.php'); + exit; + } + } + + $page['saved'] = false; + $page['key'] = $stringid; + $page['target'] = $target; + $page['formoriginal'] = isset($lang1[$stringid]) ? $lang1[$stringid] : ""; + $page['formtranslation'] = $translation; + start_html_output(); + require('view/translate.php'); + exit; +} + +$localesList = array(); +foreach($available_locales as $loc) { + $localesList[] = array("id" => $loc, "name" => getlocal_($loc, "names")); +} + +$result = array(); +$allkeys = array_keys($lang1); +foreach($allkeys as $key) { + $result[] = array('id' => $key, 'l1' => $lang1[$key], 'l2' => (isset($lang2[$key]) ? $lang2[$key] : "absent") ); +} +setup_pagination($result,100); + +$page['formtarget'] = $target; +$page['formsource'] = $source; +$page['availableLocales'] = $localesList; +start_html_output(); +require('view/translatelist.php'); +?> \ No newline at end of file diff --git a/site/admin/view/.htaccess b/site/admin/view/.htaccess new file mode 100644 index 00000000..14249c50 --- /dev/null +++ b/site/admin/view/.htaccess @@ -0,0 +1 @@ +Deny from all \ No newline at end of file diff --git a/site/admin/view/translate.php b/site/admin/view/translate.php new file mode 100644 index 00000000..c435484a --- /dev/null +++ b/site/admin/view/translate.php @@ -0,0 +1,115 @@ + + + + + + + + + + + + Translate + + + + + + + + + +
+ +

Translate

+ + + Your translation is saved. + + + + + +Enter you translation. +
+
+ + 0 ) { ?> + + + + + + +
+ 0 ) { + print 'Correct the mistakes:
    '; + foreach( $errors as $e ) { + print '
  • '; + print $e; + print '
  • '; + } + print '
'; + } ?> + +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + +
+
+ + +
+ + + + diff --git a/site/admin/view/translatelist.php b/site/admin/view/translatelist.php new file mode 100644 index 00000000..57fc6ab2 --- /dev/null +++ b/site/admin/view/translatelist.php @@ -0,0 +1,93 @@ + + + + + + + + + + + + Translate + + + + + + + + + +
+ +

Translate

+ + If you don't like the translation, please send us an update. +
+
+ +
+
+ + + +
+ + => + +
+
+
+ + + + + + + + + + + + + + + +
Key
+ + + + + +
+
+ + + +

+
+ + No items. + +
+ + +
+ + + + diff --git a/site/demo.php b/site/demo.php index b2ca8123..c251d40f 100644 --- a/site/demo.php +++ b/site/demo.php @@ -1,14 +1,27 @@
-

DEMO

-

Sorry, demo is not available yet.

+

+

+ +
+
+ +
+
+ +

+ + + +

diff --git a/site/download.php b/site/download.php index 10e17c21..059981b5 100644 --- a/site/download.php +++ b/site/download.php @@ -1,20 +1,31 @@
-

Latest release

+

+
+
+
+ +1.5.0 beta 1, November 28, 2008 + + + +
diff --git a/site/features.php b/site/features.php index f23548f1..6e64d204 100644 --- a/site/features.php +++ b/site/features.php @@ -1,6 +1,7 @@ @@ -8,64 +9,35 @@ require_once('inc/menu.i');
-

Pricing

- +

+ -

Main features

- +

+ + -

Chat window

- +

+ -

Operator abilites

- +

+ -

Nearest future (not ready yet)

- +

+ +
+
-

Content:

+

-pricing
-main features
-chat window
-operator abilities
+
+
+
+
what is coming next

diff --git a/site/inc/header.i b/site/inc/header.i index 0458360b..a488ce02 100644 --- a/site/inc/header.i +++ b/site/inc/header.i @@ -1,7 +1,7 @@ -Web Messenger +<?php echo getlocal("title") ?> diff --git a/site/inc/menu.i b/site/inc/menu.i index 5053cb25..0031eec3 100644 --- a/site/inc/menu.i +++ b/site/inc/menu.i @@ -1,14 +1,14 @@