Jump to content

(скрипты) Онлай игр


Recommended Posts

  • Replies 231
  • Created
  • Last Reply

Top Posters In This Topic

?????? ??????????? ?? ???? - ?? ???? ??? ?????? ? ??????? ?? ?????. + ????? ?????????????? ??? ??????? + ??????? ????????? ???-?? ?????.

???? ??????????????? ?????. ?? ??????? ???? ????????? ????????. ????? ????????? ~1 ??????

 

????? 3-

Link to comment
Share on other sites

????? ?????? ?? .????????? ?? ????? ... ??? ?? ??????? ??? ????? ?? ??????! ?????? ???????? ??? ??? ??? ????? ???? ?????? ????!

??????? ???????? ????? ???????!

Link to comment
Share on other sites

????, ??? ???, ??????? ?? ???????? ???????? ? ??????....

????? ????????. ? ?? ?? EtIhW - ??????????? ????? ?????? ???? - admin.php ????? ??????? ??????????, ? ??? ? ?????????? - ????? ????.

 

+ ???, ????? ? ????? ??? ???... ????? ?? ??????? ???? ????????, ??? ?? ??????????? ??? ????? ? ??????, ????? ????????? ????????? ????????????. ? ?? ?????????? ??? ?? ? ???? windows-1251 ???????? ???? ? UTF8 ?? ??? ? ? ANSI(Win) ?????????.

 

???????????? ?????? ?????? ????, ???, ?????? ??, ?????????...

 

2???: ??????? ?????

 

1. ??????????? \include\config.php

 

<?php
# paths
# $add = "/htdocs";
if (!$DOCUMENT_ROOT) $DOCUMENT_ROOT = ".";
define("PATH_BASE", $DOCUMENT_ROOT."$add/");
define("PATH_IMAGE", $DOCUMENT_ROOT."$add/i/");
define("PATH_INCLUDE", $DOCUMENT_ROOT. "$add/include/");
define("PATH_MODULE", $DOCUMENT_ROOT. "$add/module/");
# database
define("HOST_NAME", "localhost"); //???? ????? ??? ?????. ???? ?? ????? - ???????? ? ???????. ?????? - "localhost"
define("DATABASE_NAME", "root"); //???? ????? ??? ??. ???? ?? ????? - ???????? ? ???????. ???? ???? ???? - ??????? ????? ? ???????.
define("DATABASE_USER", "root"); //???? ????? ???? ????? ? ??. ???? ?? ????? - ???????? ? ???????. ???? ???? ???? - ?????? "root"
define("DATABASE_PASSWORD", ""); //???? ????? ?????? ? ??. ???? ?? ????? - ???????? ? ???????. ???? ???? ???? - ???? ????? ?????? ????.


$servers = array(
array(
  'ID' => 1,
  "HOST_NAME" => "localhost",  //???? ????? ??? ?????. ???? ?? ????? - ???????? ? ???????. ?????? - "localhost"
  "DATABASE_NAME" => "root", //???? ????? ??? ??. ???? ?? ????? - ???????? ? ???????. ???? ???? ???? - ??????? ????? ? ???????.
  "USER" => "root", //???? ????? ???? ????? ? ??. ???? ?? ????? - ???????? ? ???????. ???? ???? ???? - ?????? "root"
  "PASSWORD" => "", //???? ????? ?????? ? ??. ???? ?? ????? - ???????? ? ???????. ???? ???? ???? - ???? ????? ?????? ????.
),
);
?>

2. ???????? ?????

3. ???????? ????

4. ??????? ?????? ????????????

5. ? ??????? players ??????? ???? ? ??????????? ?????? [rank=100] [admin=1] ?????? ?? ????????? ????? ? ?????????????.

6. ????????????.

 

???? ??????????? ?? ?????????, ????? ? database.php ????:

class Database {
 var $dbh;
 var $database_name = "iv"; //???? ????? ??? ??. ???? ?? ????? - ???????? ? ???????. ???? ???? ???? - ??????? ????? ? ???????.
 var $host_name = "localhost"; //???? ????? ??? ?????. ???? ?? ????? - ???????? ? ???????. ?????? - "localhost"
 var $database_user = "root"; //???? ????? ???? ????? ? ??. ???? ?? ????? - ???????? ? ???????. ???? ???? ???? - ?????? "root"
 var $database_password = ""; //???? ????? ?????? ? ??. ???? ?? ????? - ???????? ? ???????. ???? ???? ???? - ???? ????? ?????? ????.

 

???????? ????? :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share


×
×
  • Create New...