Changeset 147


Ignore:
Timestamp:
Nov 25, 2007, 12:51:02 PM (17 years ago)
Author:
george
Message:

Opraveno: Speciální úpravy u registrace v minimanageru a překlad šablon pro odesílání emailů.

Location:
minimanager
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • minimanager/mail_templates/mail_welcome.tpl

    r142 r147  
    1 Subject: Welcome to <title>.
     1Vitejte na <title>.
    22
    3 Thank you for registering in our Mangos server at <a href="http://<base_url>"><base_url></a>.
     3Dekujeme vam za registraci na nasem Mangos serveru na adrese <a href="http://<base_url>"><base_url></a>.
    44
    5 <b>Your account details are</b>:
    6 Username: <username>
    7 Password: <password>
     5Detajly vaseho uctu jsou</b>:
     6Jmeno: <username>
     7Heslo: <password>
    88
    9 For more information please visit our website.
     9Pro vice informaci navstivte nase webove stranky.
     10
    1011-------------------------------
    11 (Do not reply to this message)
     12(Neodpovidejte na tento email)
  • minimanager/mail_templates/recover_password.tpl

    r142 r147  
    1 Subject: Password recovery requested.
     1Pozadavek na obnovu hesla.
    22
    3 Hello <username>,
     3Ahoj <username>,
    44
    5 You have requested to be assigned with a new password at <a href="http://<base_url>"><base_url></a>.
    6 If you didn't this request you should just ignore this message.
     5Pozadali jste o nove prirazení hesla na serveru <a href="http://<base_url>"><base_url></a>.
     6Pokud jste tak neucinili, meli by jste tento email ignorovat.
    77
    8 Your new password is: <password>
    9 Use this link to activate the change: <a href="http://<activate_link>">Click me.</a>
    10 Make sure to change your password as soon as you are logged.
     8Vase nove heslo je: <password>
     9Pouzijte tento odkaz pro potvrzení zmeny: <a href="http://<activate_link>">Klikni na me.</a>
     10Doporucujeme zmenit si heslo jakmile se pripojite do hry.
    1111
    12 For more information please visit our website.
    13 ------------------------------
    14 (Do not reply to this message)
     12Pro vice informaci navstivte nase webove stranky.
     13-------------------------------
     14(Neodpovidejte na tento email)
  • minimanager/mail_templates/terms.tpl

    r142 r147  
    1 Terms of Service\n\n
     1Podminky sluzby:\n\n
    22
    3 TO BE FILLED !!!\n\n
    4 
    5 New lines must begin with \\n or \\r\\n depending on your system.\n
    6 Backslashes or/and apostrophe should be backslashed.\n
    7 Double quotation marks must be avoided.
     3* Problemy hlaste do diskusniho fora nebo si vytvorte ticket(zadanku) pres cerveny otaznik v hlavnim panelu.\n
     4* Po GM nezadejte zadne penize, veci, level, teleport, duely, aj.\n
     5* Pokud zjistite, ze opakovane shazujete server nejakou akci, nahlaste problem do fora.\n
     6* Pokud nefunguje nejaky quest, napiste do fora do sekce questy.\n
     7* Doporucujeme sledovat aktuality na webovych strankach.\n
     8* Pokud muzete, prispejte financne na provoz server. Informace naleznete v sekci Dotace.
  • minimanager/register.php

    r142 r147  
    1515function doregister(){
    1616 global $lang_global, $realm_db, $disable_acc_creation, $limit_acc_per_ip, $valid_ip_mask,
    17                 $send_mail_on_creation, $create_acc_locked, $from_mail, $mailer_type, $smtp_cfg, $title;
     17                $send_mail_on_creation, $create_acc_locked, $from_mail, $mailer_type, $smtp_cfg, $title, $MaximumAccountCount;
    1818
    1919 if ( empty($_POST['pass']) || empty($_POST['email']) || empty($_POST['username']) ) {
    2020   redirect("register.php?err=1");
    2121 }
     22
     23 $sql = new SQL;
     24 $sql->connect($realm_db['addr'], $realm_db['user'], $realm_db['pass'], $realm_db['name']);
     25
     26  $result = $sql->query("SELECT COUNT(*) FROM account");
     27  $AccountCount = $sql->result($result, 0, 'COUNT(*)');
     28  if($AccountCount >= $MaximumAccountCount) redirect("register.php?err=4");
    2229
    2330 if ($disable_acc_creation) redirect("register.php?err=4");
     
    300307        $body = str_replace("<password>", substr(sha1(strtoupper($user_name)),0,7), $body);
    301308        $body = str_replace("<activate_link>",
    302                 $_SERVER['HTTP_HOST']."/register.php?action=do_pass_activate&amp;h=".$sql->result($result, 0, 'I')."&amp;p=".substr(sha1(strtoupper($user_name)),0,7), $body);
     309                $_SERVER['HTTP_HOST'].substr($_SERVER["SCRIPT_NAME"], 0, strrpos($_SERVER["SCRIPT_NAME"], '/'))."/register.php?action=do_pass_activate&amp;h=".$sql->result($result, 0, 'I')."&amp;p=".substr(sha1(strtoupper($user_name)),0,7), $body);
    303310        $body = str_replace("<base_url>", $_SERVER['HTTP_HOST'], $body);
    304311
Note: See TracChangeset for help on using the changeset viewer.