الموقع العربي الاول للعبة Silkroad Online

الموقع العربي الاول للعبة Silkroad Online (https://silkroad4arab.com/vb/index.php)
-   قسم الاسئلة و الاستفسارات لعمل السيرفرات الخاصة (https://silkroad4arab.com/vb/forumdisplay.php?f=226)
-   -   يا ريت شرح للجزئيه دي وشكرا (https://silkroad4arab.com/vb/showthread.php?t=566191)

mostafareda300 09-09-2014 02:50 PM

يا ريت شرح للجزئيه دي وشكرا
 
دلوقتي انا عملت جيم وعاوز وعملت site
بس شكلو وحش جيدا وحولت اعمل site
كتير اكتر من 20 مره مش عارف عجزت ولقيت ويب سيت falcon ونفسي اعرف شرحو عشان ال players
عاوزيني افتح السيت
وده موضوعه بس من غير شرح http://www.silkroad4arab.com/vb/showthread.php?t=564839

Hero 09-09-2014 03:37 PM

نفس الكلام اللى بتعملة فى اى سيت عليك تظبط البيانات بس

mostafareda300 09-09-2014 04:06 PM

انا بعرف اعملو بس انا مش عارف مكان ال sql و id , ال pw والبيانات مش عارف مكنها

Hero 09-09-2014 04:08 PM

باشا اكيد هتلقيهم يا اما فى كلمت config يا اما فى index

mostafareda300 09-09-2014 04:08 PM

انا مش عارف اجيب البيانات دي من ال index خالص :angry2:

mostafareda300 09-09-2014 04:11 PM

كود PHP:

<?PHP
ob_start
();
session_start();

include(
"mods/config.php");
include(
"mods/login.php");
include(
"mods/functions.php");
include(
"javacodes/clock.js");

$topic = (isset($_GET['topic'])) ? $_GET['topic'] : 'latestnews';
require_once(
"./mods/security.class.php");
$seccc = new Security();
$topic $seccc->secure($topic);
    
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- Source is [url]http://mavswin.byethost7.com/falcon/[/url] -->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Falcon - Silkcore.net</title>
    <link href="./css/style.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="./css/fonts.css" type="text/css" charset="utf-8" />
</head>

<body onload="updateClock(); setInterval('updateClock()', 1000 )">

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/es_LA/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

    <!--Header-->
    <div class="header" style="">
    
        <!--<img src="imgs/header_bg.jpg" _width="100%" height="482" style="position:absolute; z-index:-1;" alt="bg" />-->
        <div class="headerTop">
            <div class="wrapper">            
                <div class="logo">
                    <a href="#">logo</a>
                </div>                
                <div class="topRight">
                    <?php
                    
if(isset($_SESSION['loggedin'])) {
                        
$userID $_SESSION['name'];            
                        
mssql_select_db($dbName1$dbConn) or die ("Couln't select database $dbName1");
                        
$getUserJID mssql_query("select JID from TB_User where StrUserID = '$userID'");
                        while (
$row mssql_fetch_array($getUserJID)) {
                            
$userJID $row['JID'];                
                        }
            
                        
$getSilkQuery mssql_query("select * from SK_Silk where JID = '$userJID'");
                        if(
$row mssql_fetch_array($getSilkQuery)) {
                            
$silk $row['silk_own'];                
                        }
                        else {
                            
$silk 0;
                        }

                        
$getSilkQuery mssql_query("select * from SK_WebPoints where JID = '$userJID'");
                        if(
$row2 mssql_fetch_array($getSilkQuery)) {
                            
$webp $row2['points'];                
                        }
                        else {
                            
$webp 0;
                        }
                        echo 
'<div class="logged"><p>Hello <font color=red><b>'.$_SESSION['name'].'</b></font>, How are you today?</p><span>'.$webp.'</span><small>C-Coins available.</small></div>';
                    }
                    else echo 
'<div class="loginWrap">
                        <form action="?topic='
.$topic.'" method="post">
                            <input type="text" placeholder="USERNAME" name="username" />
                            <input type="password" placeholder="PASSWORD" name="password" />
                            <input type="submit" value="LOGIN" name="" />                
                        </form>
                    </div>'
;
                    
?>
                </div>                
            </div>
        </div>
        
        <div class="wrapper">
            <div class=" headerMiddle">
                <div class="box">
                    <div class="boxLeft">
                        <h2>SILKCORE GLOBAL TIME</h2>                        
                        <p id="clock"> </p>
                    </div>
                    <div class="boxImg"><img src="imgs/icon1.png" alt="" /></div>
                </div>
                <div class="box">
                    <div class="boxLeft">
                        <h2>SERVER STATUS</h2>
                        <?php
                            mssql_select_db
($dbName1$dbConn) or die ("Couln't select database $dbName1"); 
                            
$query mssql_query("SELECT top 1 * FROM _ShardCurrentUser WHERE nShardID = 64 ORDER BY nID desc") or die("Can't connect to database!");
                            
$peak mssql_fetch_array(mssql_query("SELECT top 1 * FROM _ShardCurrentUser order by nUserCount desc"));
                            while (
$row mssql_fetch_array($query)) {
                                
$pOnline $row['nUserCount'] +175;
                            }
                            if(
$pOnline != 175) echo '<p><span>ONLINE</span></p>';
                            else echo 
'<p><span><font color=red>OFFLINE</font></span></p>';
                        
?>
                    </div>
                    <div class="boxImg"><img src="imgs/icon2.png" alt="" /></div>
                </div>
                <div class="box">
                    <div class="boxLeft">
                        <h2>CURRENT ONLINE</h2>
                        <p><small>
                            <?php                            
                                
if($pOnline 700) if($pOnline==175$color ="red"; else $color "#55be00";
                                elseif(
$pOnline >= 700 and $pOnline 950$color "#ffa800";
                                else 
$color "#ff0000";
                                if(
$pOnline == 175$pOnline 0;
                                echo 
'<font color='.$color.'> '.$pOnline.' </font>';
                            
?>
                            </small> / 1000</p>
                    </div>
                    <div class="boxImg"><img src="imgs/icon2.png" alt="" /></div>
                </div>
                
                <div class="clr"></div>
                
                <div class="freeSilk">
                    <a href="?topic=vote"><img src="imgs/img1.jpg" alt="" /></a>
                </div>
                <div style="float:right;margin:-80px 120px 0 0">
                    <div style="float:left"><a href="https://www.facebook.com/SilkcoreServers"><img src="imgs/fb.png" style="margin-right:-80px;margin-top:-6px;"></a></div>
                    <div class="fb-like" style="float:left" data-href="https://www.facebook.com/SilkcoreServers" data-width="70" data-layout="box_count" data-show-faces="false" data-send="false"></div>
                </div>
            </div>
        </div>

        <div class="navOut">
            <div class="navIn">
                <ul>
                    <li><a href="?topic=latestnews">Home</a></li>
                    <li><a href="?topic=createacc">Register</a></li>
                    <li><a href="?topic=manageacc">Manage Account</a></li>
                    <li><a href="?topic=server">Ranks</a></li>
                    <li><a href="?topic=downloads">Downloads</a></li>
                    <li><a href="?topic=webshop" style="color:#4eff00">Webshop</a></li>
                    <li><a href="?topic=warevent">WarEvent</a></li>
                    <li><a href="http://silkcore.net/forum">FORUM</a></li>                                
                </ul>
            </div>
        </div>

        <div class="clr"></div>
        
    </div>
    <!-- Header End -->

    <!-- Container -->
    <div class="clr"></div>

    <div class="container">
        <div class="wrapper">
            <?php                
                
if ($topic != "")
                    
$topic strtolower($topic);

                switch(
$topic) {                
                    case 
'test':                                                
                        include(
"pages/test.php");
                        break;                    
                    case 
'pvprank':
                        
$subtopic 'Player vs player ranking';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/pvprank.php");
                        break;
                    case 
'warevent':
                        
$subtopic 'WarEvent';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/warevent.php");
                        break;
                    case 
'banco':
                        
$subtopic 'Banco';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/banco.php");
                        break;
                    case 
'accrecovery':
                        
$subtopic 'Account Recovery System';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/accrecovery.php");
                        break;
                    case 
'verification':
                        
$subtopic 'Account Verification';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/verification.php");
                        break;
                    case 
'vote':
                        
$subtopic 'get free silk by voting';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/vote.php");
                        break;
                    case 
'highscores':
                        
$subtopic 'players level rank';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/highscores.php");
                        break;
                    case 
'topjob':
                        
$subtopic 'players job rank';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/topjob.php");
                        break;
                    case 
'uniques':
                        
$subtopic 'uniques rank';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/uniques.php");
                        break;                    
                    case 
'venezuela':
                        
$subtopic 'Venezuela Deposito o transferencia bancaria';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/venezuela.php");
                        break;
                    case 
'paymentwall':
                        
$subtopic 'PaymentWall donation method';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/paymentwall.php");
                        break;
                    case 
'createacc':
                        
$subtopic 'Create Account';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/createacc.php");
                        break;
                    case 
'manageacc':
                        if(isset(
$_SESSION['loggedin']))
                            
$subtopic 'WELCOME '.$_SESSION['name'].', Manage your account here!';
                        else
                            
$subtopic 'Manage your account';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/manageacc.php");
                        break;
                    case 
'downloads':
                        
$subtopic 'Falcon Downloads';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/downloads.php");
                        break;
                    case 
'server':
                        
$subtopic 'Server Statistics';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/server.php");
                        break;
                    case 
'webshop':
                        
$subtopic 'Falcon Webshop';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"./javacodes/webshop.js");
                        include(
"pages/webshop.php");
                        break;
                    case 
'contactus':
                        
$subtopic 'Contact Us';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/contactus.php");
                        break;
                    case 
'adminpanel':
                        
$subtopic 'Admin Panel';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/adminpanel.php");
                        break;
                    case 
'gmpanel':
                        
$subtopic 'Game Master Panel';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/gmpanel.php");
                        break;
                    case 
'chars':
                        
$subtopic 'Character Lookup';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/chars.php");
                        break;                        
                    
/*case 'sms':
                        $subtopic = 'Egypt Donation System';
                        echo '<h1>'.$subtopic.'</h1>';
                        include("pages/sms.php");
                        break;*/
                    
case 'paypal':
                        
$subtopic 'PayPal Donations';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/paypal.php");
                        break;
                    case 
'rules':
                        
$subtopic 'Game Rules';
                        echo 
'<h1>'.$subtopic.'</h1>';
                        include(
"pages/rules.php");
                        break;
                    default:
                        include(
"pages/latestnews.php");
                        break;
                }
            
?>    
            
            <div class="clr"></div>
        </div>

        <div class="clr"></div>
    </div>
    <!-- Container End -->

    <!--Footer-->
    <div class="footerOut">
        <div class="wrapper">
            <div class="footerTop">
                <h2>SERVER FACTS</h2>
                <div class="searchWrap">
                    <form action="?topic=chars" method="post">
                        <input type="text" placeholder="CHARACTER LOOKUP" name="charname" />
                        <input type="submit" value="SEARCH" name="" />                
                    </form>
                </div>
            </div>

            <div class="fortress">
                <h2>FORTRESS INFORMATION</h2>
                <div class="fortressForm">
                    <form action="#" method="post">
                        <div class="fortressForm">
                            <?php include("mods/ftw.php"); ?>
                            <div class="fortressFormRow">
                                <label><img src="imgs/icon3.png" alt="" />HOTAN</label>
                                <span><?php echo $hotanOwner ?></span>
                            </div>
                            
                            <div class="fortressFormRow">
                                <label><img src="imgs/icon4.png" alt="" />JANGAN</label>
                                <span><?php echo $janganOwner ?></span>
                            </div>
                            
                            <div class="fortressFormRow">
                                <label><img src="imgs/icon5.png" alt="" />BANDIT</label>
                                <span><?php echo $banditOwner ?></span>
                            </div>
                            
                            <div class="fortressFormRow">
                                <label><img src="imgs/icon6.png" alt="" />CONSTANT</label>
                                <span><?php echo $constOwner ?></span>
                            </div>
                            <div class="formBottom">
                                <div class="fortressFormRow">
                                    <p>REGISTER</p>
                                    <span>SATURDAY</span>
                                </div>
                                <div class="fortressFormRow">
                                    <p>TIME</p>
                                    <span>15:00 ~ 17:59 GST</span>
                                </div>            
                            </div>
                            <div class="formBottom">
                                <div class="fortressFormRow">
                                    <p>FW DAYS</p>
                                    <span>SATURDAY</span>
                                </div>
                                <div class="fortressFormRow">
                                    <p>TIME</p>
                                    <span>18:00 ~ 20:00 GST</span>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            
            <div class="partner">
                <h2>PARTNERS</h2>
                <div class="partnerImg">
                    <center><a href="http://elitepvpers.com" target="_blank"><img src="imgs/epvp.png" alt="" /><br /><font color="white">www.elitepvpers.com</font></a></center>
                </div>                
            </div>
            
            <div class="falcon_social">
                <h2>FALCON &amp; SOCIAL</h2>
                <div class="socialWrap">
                    <ul>            
                        <li><a href="#"><img src="imgs/twitter.jpg" alt="" /></a></li>
                        <li><a href="#"><img src="imgs/facebook.jpg" alt="" /></a></li>
                    </ul>
                </div>
            </div>
            
            <div class="clr"></div>
        </div>
    </div>
    
</body>
</html>
<?php    
    
include("./mods/messages.php");
    
//include("./mods/pvpthings.php");
    
    
mssql_close();
?>




 ده الindex


Hero 09-09-2014 04:12 PM

باشا ما دور يا باشا او هات اللنك بتاع الموقع و انا اقولك على اللى بيتعدل فية و يشتغل باذن الله

mostafareda300 09-09-2014 04:18 PM

كود PHP:

وادي ال config كمان <?php    
    date_default_timezone_set
('UTC');
    
    
$countries = array("Egypt""Venezuela""Afghanistan""Albania""Algeria""American Samoa""Andorra""Angola""Anguilla""Antarctica""Antigua and Barbuda""Argentina""Armenia""Aruba""Australia""Austria""Azerbaijan""Bahamas""Bahrain""Bangladesh""Barbados""Belarus""Belgium""Belize""Benin""Bermuda""Bhutan""Bolivia""Bosnia and Herzegowina""Botswana""Bouvet Island""Brazil""British Indian Ocean Territory""Brunei Darussalam""Bulgaria""Burkina Faso""Burundi""Cambodia""Cameroon""Canada""Cape Verde""Cayman Islands""Central African Republic""Chad""Chile""China""Colombia""Comoros""Congo""Cook Islands""Costa Rica""Cote dIvoire""Croatia""Cuba""Cyprus""Czech Republic""Denmark""Djibouti""Dominica""Dominican Republic""East Timor""Ecuador""El Salvador""Equatorial Guinea""Eritrea""Estonia""Ethiopia""Falkland Islands (Malvinas)""Faroe Islands""Fiji""Finland""France""Gabon""Gambia""Georgia""Germany""Ghana""Gibraltar""Greece""Greenland""Grenada""Guadeloupe""Guam""Guatemala""Guinea""Guinea-Bissau""Guyana""Haiti""Heard and Mc Donald Islands""Holy See (Vatican City State)""Honduras""Hong Kong""Hungary""Iceland""India""Indonesia""Iran (Islamic Republic of)""Iraq""Ireland""Israel""Italy""Jamaica""Japan""Jordan""Kazakhstan""Kenya""Kiribati""Korea""Kuwait""Kyrgyzstan""Latvia""Lebanon""Lesotho""Liberia""Libyan Arab Jamahiriya""Liechtenstein""Lithuania""Luxembourg""Macau""Macedonia""Madagascar""Malawi""Malaysia""Maldives""Mali""Malta""Marshall Islands""Martinique""Mauritania""Mauritius""Mayotte""Mexico""Micronesia, Federated States of""Moldova, Republic of""Monaco""Mongolia""Montserrat""Morocco""Mozambique""Myanmar""Namibia""Nauru""Nepal""Netherlands""Netherlands Antilles""New Caledonia""New Zealand""Nicaragua""Niger""Nigeria""Niue""Norfolk Island""Northern Mariana Islands""Norway""Oman""Pakistan""Palau""Panama""Papua New Guinea""Paraguay""Peru""Philippines""Pitcairn""Poland""Portugal""Puerto Rico""Qatar""Reunion""Romania""Russian Federation""Rwanda""Saint Kitts and Nevis""Saint Lucia""Saint Vincent and the Grenadines""Samoa""San Marino""Sao Tome and Principe""Saudi Arabia""Senegal""Seychelles""Sierra Leone""Singapore""Slovakia (Slovak Republic)""Slovenia""Solomon Islands""Somalia""South Africa""South Georgia and the South Sandwich Islands""Spain""Sri Lanka""St. Helena""St. Pierre and Miquelon""Sudan""Suriname""Svalbard and Jan Mayen Islands""Swaziland""Sweden""Switzerland""Syrian Arab Republic""Taiwan""Tajikistan""Tanzania, United Republic of""Thailand""Togo""Tokelau""Tonga""Trinidad and Tobago""Tunisia""Turkey""Turkmenistan""Turks and Caicos Islands""Tuvalu""Uganda""Ukraine""United Arab Emirates""United Kingdom""United States""United States Minor Outlying Islands""Uruguay""Uzbekistan""Vanuatu""Vietnam""Virgin Islands (British)""Virgin Islands (U.S.)""Wallis and Futuna Islands""Western Sahara""Yemen""Yugoslavia""Zambia""Zimbabwe");
    
    
$serverName 'Falcon';
    
$serverIp 'OWNEROR-UCTUTCJ\SILKCORE';
    
$userName 'FalconLogin8811';
    
$password 'SROCore8109!$&';    
    
$dbName1 'SR_Accdb_Core';
    
$dbName2 'SR_Gamedb_Core';
    
$dbName3 'SR_logs_Core';
    
$dbConn mssql_connect($serverIp$userName$password) or die ("Couldn't connect to server $serverIp");
?>


Hero 09-09-2014 04:21 PM

قدامك اهم يا باشا
كود PHP:

    $serverName 'Falcon';
    
$serverIp 'OWNEROR-UCTUTCJ\SILKCORE'سكول
    $userName 
'FalconLogin8811';sa
    $password 
'SROCore8109!$&';     pw
    $dbName1 
'SR_Accdb_Core'sro_vt_account
    $dbName2 
'SR_Gamedb_Core'sro+vt+shard
    $dbName3 
'SR_logs_Core'sro_vt_shardlog
    $dbConn 
mssql_connect($serverIp$userName$password) or die ("Couldn't connect to server $serverIp");
?> 


mostafareda300 09-09-2014 04:50 PM

وال index حضرتك مفهوش حاجه تبع السرفر !

komnda 09-09-2014 10:42 PM

تمام زى ما قال المشرف حضرتك من config
عدلو وكده تمام وتحط ملفات السيت هنا C:\Program Files\Zend\Apache2\htdocs
غير فيه كلمه Falcon ل اسم السيرفر بتاعك
وغير ما يلزم بقا يعنى عاوز تغير حاجه فى download افتحها من الملفات وابحث وعدل

Hero 09-09-2014 11:09 PM

مش لازم يكون فى ال index اهم حاجة اعمل اللى قولتلك علية و هيشتغل يغلق ##


الساعة الآن 11:44 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.