php javascript variable

im wondering how they inserted php variables into javascript
<!DOCTYPE XHTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
            <title>Dark-Future.org Users Reg Logged On</title> <!-- Dark-Future.org -->
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <meta name="description" content="Online futuristic mafia multiplayer simulation. users reg logged on"> <!--  -->
            <meta name="keywords" content="dark future,dark-future,df,online game,mafia,gangster,killing,earning,users,reg,logged,on"> <!--  -->
            <link href="/styles_v15/gangster/style.css?23423432" rel="stylesheet" type="text/css">

            <link href="/images/v15/logo_icon.png" rel="shortcut icon" type="image/png" />
            <script language="javascript">
                    <!--
                    var aCookie = new Array();
                    aCookie['0'] = '';
aCookie['__utma'] = '81591042.375557500.1269286838.1269467095.1269473688.20';
aCookie['__utmb'] = '81591042.9.10.1269473688';
aCookie['__utmc'] = '81591042';
aCookie['__utmz'] = '81591042.1266681804.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)';
aCookie['nprofile_gold'] = '';
aCookie['nprofile_info'] = '1';
aCookie['nprofile_msgimg'] = '';
aCookie['nprofile_pass'] = '';
aCookie['nprofile_primg'] = '';
aCookie['noptions_history'] = '';
aCookie['noptions_inherit'] = '1';
aCookie['noptions_online_time'] = '';
aCookie['m_76a4'] = '';


                    var blnKeyControl = false;
                    -->
            </script>
            <script language='JavaScript' type='text/javascript' src="/scripts_v15/note.js"></script>
            <script language='JavaScript' type='text/javascript' src="/scripts_v15/mollie.js"> </script>
            <!--<script language='JavaScript' type='text/javascript' src="/scripts_v15/snowstorm.js"> </script>-->
            <script language='JavaScript' type='text/javascript' src="/js/jquery/jquery-1.3.2.min.js"></script>

            <script language='JavaScript' type='text/javascript' src="/js/jquery/jquery.autogrow.js"></script>
            <script language='JavaScript' type='text/javascript' src="/js/jquery/jquery.dimensions.js"></script>
            <script language='JavaScript' type='text/javascript' src="/scripts_v15/bb_editor/ed.js?234234"></script>
            <script language='JavaScript' type='text/javascript' src="/scripts_v15/functions.js?234234"></script>
            <script language='JavaScript' type='text/javascript' src="/js/jquery/jquery.qtip-1.0.0-rc3.min.js"></script>

        
        

        <script language="javascript">
            $(document).ready(function() {
                if(blnKeyControl) {
                    checkFocusTimer();
                }

                $.fn.qtip.styles.df = { // Last part is the name of the style
                   width: 200,
                   background: '#72CB10',
                   color: 'black',
                   textAlign: 'center',
                   border: {
                      width: 1,
                      radius: 8,
                      color: '#4da300'
                   },
                   // tip: 'bottomLeft',
                   name: 'dark' // Inherit the rest of the attributes from the preset dark style
                }

               // Use the each() method to gain access to each elements attributes
               $('.dfmanual').each(function()
               {
                  var arrTmp = $(this).attr('id').split("_");
                  $(this).qtip(
                  {
                     content: {
                        text: '<img class="throbber" src="/images/moscow/ajax-loader_green.gif" alt="Loading..." />',
                        url: "/x.php?id="+arrTmp[1]+"&p=FORUMS.manual_topic"// $(this).attr('url'), // Use the rel attribute of each element for the url to load
                     },
                     position: {
                        corner: {
                           target: 'bottomMiddle', // Position the tooltip above the link
                           tooltip: 'topLeft'
                        },
                        adjust: {
                           screen: true // Keep the tooltip on-screen at all times
                        }
                     },
                     show: {
                        when: 'click',
                        solo: true // Only show one tooltip at a time
                     },
                     hide: 'unfocus',
                     style: {
                        tip: true, // Apply a speech bubble tip to the tooltip at the designated tooltip corner
                        border: {
                           width: 1,
                           radius: 4
                        },
                        name: 'df', // Use the default light style
                        width: 450 // Set the tooltip width
                     }
                  })
               });


            });

</script>


</head>





<script language="javascript">
def_1px= '<IMG src="/images/1px.gif" height="1" width="1">';
def_2px= '<IMG src="/images/1px.gif" height="2" width="2">';
def_path= '';
</script>
<script language="javascript" src="/scripts_v15/wz_dragdrop.js"></script>
<script language="javascript" src="/scripts_v15/main.js?543344"></script>
<body id="bodyItself" onkeydown="if(blnKeyControl) {capKeys(event);}">
            <div id="navigation">

                <ul>
                    <li><a href="/e.php?p=USERS.news" id="nav1"  class="">News (7)</a></li>
                    <li><a href="/e.php?p=USERS_REG.dashboard" id="nav2"  class="active">dashboard</a></li>
                    <li><a href="/e.php?p=MSG_IN.list_inbox" id="nav3"  class=""><div id="sNavigationInbox">Inbox</div></a></li>
                    <li><a href="/e.php?p=USERS_REG.info" id="nav4"  class="">Account info</a></li>
                    <li><a href="/e.php?p=USERS_PREREG.log_off" id="nav5"  class="">log out</a></li>

                </ul>
            </div>
<div id="coverUp"></div>
<div id="mPopupContent"></div>
<script>

</script>
<script language="javascript">
function showFiller() {
object = document.getElementById('screenFiller');
if(object.style.display == 'none') {
object.style.display = 'block';
document.body.style.overflow = 'hidden';
} else if(object.style.display == '') {
object.style.display = 'block';
document.body.style.overflow = 'hidden';
} else {
object.style.display = 'none';
document.body.style.overflow = '';
}

return false;
}

function showLogoff() {
if(confirm('Are you sure you want to log off?')) {
setTimeout('showPage("?p=USERS_PREREG.log_off")', 300);
}
}

var arrKeys = new Array();

arrKeys[27] = new Array("showLogoff()", "logout", true); // ESC
arrKeys[66] = new Array("?forum=7&p=FORUMS.list_forum", "Bugs forum"); // B
arrKeys[67] = new Array("?p=EARN.crimes&t=df", "crimes"); // C
arrKeys[68] = new Array("?p=EARN.trade", "trade"); // D
arrKeys[69] = new Array("?p=MSG_EVT.list_events", "events"); // E
arrKeys[72] = new Array("showHelp()", "Bugs forum", true); // H
arrKeys[73] = new Array("?forum=1&p=FORUMS.list_forum", "Street forum"); // I
arrKeys[74] = new Array("?p=JAIL.jail_list", "jail"); // J
arrKeys[77] = new Array("?p=MSG_IN.list_inbox", "inbox"); // M
arrKeys[78] = new Array("?p=USERS_REG.news", "news"); // N
arrKeys[79] = new Array("?forum=2&p=FORUMS.list_forum", "OOC forum"); // O
arrKeys[80] = new Array("?p=USERS_REG.profile", "profile"); // P
arrKeys[83] = new Array("?p=EARN.stocks", "stocks"); // S
arrKeys[84] = new Array("?p=TRAVEL.travel", "travel"); // T

main_0('Thursday, March 25', '11:41:31', '2', 'DISABLED', '');
menu_top('highlight_character', 'Character', '<nobr><b>Abstract11</b> (IR)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bagman (0)<br /></nobr>', '76a4');
menu_info('safety2', 'safety');menu_spacer();menu_info('', '<table cellpadding="0" cellspacing="0" border="0" style="padding: 0px;"><tr><td style="padding: 0px;"><b>Character</b><img id="thread_1" class="dfmanual" src="/images/moscow/info.png" /></td></tr><tr><td style="padding: 0px;">&nbsp;Abstract11</td></tr><tr><td style="padding: 0px;">&nbsp;Bagman (0)</td></tr><tr><td style="padding: 0px;"><br /><b>Location</b></td></tr><tr><td style="padding: 0px;">&nbsp;Irkutsk (RU)</td></tr><tr><td style="padding: 0px;"><br /><b>Crime Points</b></td></tr><tr><td style="padding: 0px;">&nbsp;18654</td></tr><tr><td style="padding: 0px;"><br /><b>Tokens</b></td></tr><tr><td style="padding: 0px;">&nbsp;1 &nbsp;(<a href="/e.php?p=TOKEN.shop" title="Tokens spent">0</a>)</td></tr></table><br /><br /><br /><div style="padding-bottom: 5px;"><a style="color: #72CB10;" href="/e.php?p=TOKEN.shop">click here to<br />upgrade account &raquo;</a></div>');menu_spacer();

menu_bottom();menu_top('', 'General', '<nobr><a href="/e.php?p=MISC.support" title="Support">Support</a></nobr>', '0db3');
menu_item('', '/e.php?p=USERS_REG.dashboard', 'Dashboard');menu_item('', '/e.php?p=MISC.webapplet', 'IRC Chat');menu_item('', '/e.php?p=USERS.news', 'News (7)');menu_item('', '/e.php?p=POLL.listing', 'Polls');menu_item('', '/e.php?p=MISC.support', 'Support');

menu_bottom();menu_top('', 'Account', '<nobr><a href="/e.php?p=USERS_REG.profile" title="Edit Profile">Profile</a></nobr>', '08bd');
menu_item('', '/e.php?p=DEAD.archive', '<b>Characters</b>');menu_item('', '/e.php?p=USERS_REG.profile', 'Profile');menu_item('', '/e.php?p=USERS_REG.settings', 'Settings');menu_item('', '/e.php?p=USERS_REG.info', 'Account info');menu_item('', '/e.php?p=USERS_REG.notes', 'Notes');menu_item('', '/e.php?p=USERS_REG.quit', 'Suicide');menu_item('', '/e.php?p=USERS_PREREG.log_off', 'Log out');

menu_bottom();menu_top('highlight', 'Tell people', '<nobr><a href="/e.php?p=SOCIAL.tellafriend" title="Tell a friend">Tell a friend</a></nobr>', '55ef');
menu_item('', '/e.php?p=SOCIAL.tellafriend', '<b>Tell a friend</b>');menu_item('', '/e.php?p=TOKEN.referrer', 'Referrals & info');menu_item('', '/e.php?p=MISC.info', 'Banners');

menu_bottom();menu_top('', 'Messaging', '<nobr><a href="/e.php?p=MSG_IN.list_inbox" title="Inbox (0)">Inbox</a></nobr>', 'b54f');
menu_item('', '/e.php?p=MSG_OUT.send_user', 'Send');menu_item('', '/e.php?p=MSG_OUT.send_mass_message', 'Mass Message');menu_item('', '/e.php?p=MSG_IN.list_inbox', 'Inbox');menu_item('', '/e.php?p=MSG_IN.list_savebox', 'Savebox');menu_item('', '/e.php?p=MSG_OUT.list_outbox', 'Outbox');

menu_bottom();menu_top('', 'Events', '<nobr><a href="/e.php?p=MSG_EVT.list_events" title="Events">Events</a></nobr>', '87f9');
menu_item('', '/e.php?p=MSG_EVT.list_events', 'Events');menu_item('', '/e.php?recv=1&p=MSG_EVT.list_events', 'Received Events');

menu_bottom();menu_top('', 'Users', '<nobr><a href="/e.php?p=USERS_REG.city_list" title="In City">In City</a></nobr>', 'f9aa');
menu_item('', '/e.php?p=USERS_REG.buddies', 'Buddy / Ignore');menu_item('', '/e.php?p=USERS_REG.city_list', 'In City');menu_item('', '/e.php?p=USERS_REG.help_chat', 'Find Help/Chat buddy');menu_item('action', '/e.php?p=JAIL.jail_list', 'In Jail (2)');menu_item('', '/e.php?p=USERS_REG.search', 'Search');

menu_bottom();menu_top('', 'Information', '<nobr><a href="/e.php?p=INFORMATION.last_killed" title="Last Killed">Last Killed</a></nobr>', 'a82b');
menu_item('', '/e.php?p=INFORMATION.crews_list', 'Crews');menu_item('', '/e.php?p=INFORMATION.last_registered', 'Last Registered');menu_item('', '/e.php?p=INFORMATION.last_killed', 'Last Killed');menu_item('', '/e.php?p=INFORMATION.stats_list', 'Statistics');menu_item('', '/e.php?p=INFORMATION.stats_version', 'Version stats');

menu_bottom();menu_finish();
main_1('', 0);


            var user_id = '1273';
            var crew_id = '0';
            var arrBuddies = new Array();
            arrBuddies[1071] = true;arrBuddies[1086] = true;

            var arrIgnored = new Array();
            0
</script>
<tr>
<td vAlign="top" height="100%" align="center">
<br />
<div id="mContent">
<div style="width: 550px; text-align: right;">Info about dashboard <img id="thread_23" class="dfmanual" src="/images/moscow/info.png" /></div>
<div id="defaultWindow">

<h1>DASHBOARD: Dark-Future v1.7.5</h1>
<div style="background: url(/images/dashboard.jpg) center right; width: 100%; height: 130px; margin-left: 1px; padding-top: 2px; margin-top: 10px;"></div>
</div>
<!-- <div id="defaultWindow" style="text-align: center;">
<h1 style="text-align: left;">Advertisement</h1>
</div>
-->
<SCRIPT language="javascript" src="/scripts_v15/users.js?123124"></SCRIPT>
<SCRIPT language="javascript">
var aPolls = new Array();
var i = 0;

welcome(aPolls, '11:05 03-25-10','11:41 03-25-10', '0 days, 2 hrs and  1 min', '36 mins.', '', '','0','', '234', '2','0','0','0','1','0','0', '');
</SCRIPT>
</div>
<br />
<script language="javascript">
main_2('1273','0', new Array(new Array('crewleader', '140', '191', 'Mastema', '28', ''), new Array('crewleader', '336', '212', 'Max', '25', ''), new Array('user', '196', '191', 'Januszewski', '23', ''), new Array('crewleader', '247', '223', 'Avernus', '23', ''), new Array('user', '604', '191', 'Vic', '22', ''), new Array('user', '295', '212', 'Eliseu', '21', ''), new Array('crewleader', '318', '205', 'Fervidus', '21', ''), new Array('user', '337', '191', 'Cyanide-', '21', ''), new Array('user', '368', '191', 'Marat', '21', ''), new Array('user', '401', '212', 'NoName', '21', ''), new Array('user', '527', '190', 'Mick', '21', ''), new Array('crewleader', '106', '219', 'MediTeck', '20', ''), new Array('crewleader', '126', '202', 'Anberlin', '20', ''), new Array('user', '177', '212', 'Powlowski', '20', ''), new Array('crewleader', '183', '201', 'Ryst', '20', ''), new Array('user', '210', '200', 'Silvester', '20', ''), new Array('user', '252', '199', 'GRiD', '20', ''), new Array('user', '270', '195', 'Satanic', '20', ''), new Array('user', '309', '200', 'Chopin', '20', ''), new Array('user', '464', '199', 'DaDa', '20', ''), new Array('user', '496', '190', 'Future', '20', ''), new Array('user', '499', '190', 'JEET', '20', ''), new Array('user', '532', '191', 'Calexus', '20', ''), new Array('crewleader', '561', '224', 'CharlieL', '20', ''), new Array('user', '112', '202', 'Panthress', '19', ''), new Array('user', '123', '204', 'Ipek', '19', ''), new Array('user', '145', '202', 'Burton', '19', ''), new Array('user', '157', '191', 'Sector', '19', ''), new Array('user', '189', '195', 'art', '19', ''), new Array('user', '194', '201', 'Rampage', '19', ''), new Array('user', '193', '200', '-NightHawk-', '19', ''), new Array('user', '212', '204', 'Head', '19', ''), new Array('user', '220', '201', 'froIic', '19', ''), new Array('user', '258', '212', 'MUST', '19', ''), new Array('user', '260', '201', 'Nitrox', '19', ''), new Array('user', '273', '200', 'Morfios', '19', ''), new Array('user', '285', '201', 'BMS-', '19', ''), new Array('user', '339', '204', 'DillinGeR', '19', ''), new Array('user', '351', '200', 'Draxon', '19', ''), new Array('user', '479', '201', 'Shepard', '19', ''), new Array('user', '581', '195', 'Murdock', '19', ''), new Array('user', '1050', '212', 'keyser', '19', ''), new Array('user', '197', '214', 'Drakuma', '18', ''), new Array('user', '264', '191', 'Texas', '18', ''), new Array('user', '283', '219', 'Martson', '18', ''), new Array('user', '294', '190', 'SuTe', '18', ''), new Array('user', '330', '214', 'Ripper', '18', ''), new Array('user', '362', '214', 'BlowOut', '18', ''), new Array('user', '471', '214', 'TwizTR', '18', ''), new Array('user', '491', '202', 'Ender', '18', ''), new Array('user', '554', '224', 'Crimiclown', '18', ''), new Array('user', '589', '200', 'dejavu', '18', ''), new Array('user', '688', '221', 'Maram', '18', ''), new Array('user', '787', '214', 'Alexander', '18', ''), new Array('user', '142', '0', 'Pavano', '17', ''), new Array('user', '166', '202', 'Roselin', '17', ''), new Array('user', '168', '201', 'Sol', '17', ''), new Array('user', '206', '214', 'Nalaa', '17', ''), new Array('user', '249', '191', 'Xcore', '17', ''), new Array('user', '331', '208', 'Novel', '17', ''), new Array('user', '365', '223', 'Viking', '17', ''), new Array('user', '475', '202', 'Lucky', '17', ''), new Array('user', '490', '191', 'Tsuna', '17', ''), new Array('user', '540', '224', 'Decius', '17', ''), new Array('user', '543', '191', 'Prototype', '17', ''), new Array('user', '549', '207', 'Missa', '17', ''), new Array('user', '571', '201', 'Duality', '17', ''), new Array('user', '594', '190', 'Tratos', '17', ''), new Array('user', '671', '201', 'Stars', '17', ''), new Array('user', '789', '214', 'Insurgent', '17', ''), new Array('user', '1051', '202', 'Hughes', '17', ''), new Array('user', '131', '200', 'Pwned', '16', ''), new Array('user', '274', '205', 'Neytiri', '16', ''), new Array('user', '467', '221', 'enchanted', '16', ''), new Array('user', '559', '207', 'Zelin', '16', ''), new Array('user', '948', '199', 'Sign', '16', ''), new Array('user', '1019', '219', 'Saifam', '16', ''), new Array('user', '1044', '202', 'Septimius', '16', ''), new Array('user', '1063', '223', 'Frigo', '16', ''), new Array('user', '425', '190', 'TheAvenger', '15', ''), new Array('user', '465', '202', '8-Bit', '15', ''), new Array('user', '468', '200', 'Numpty', '15', ''), new Array('user', '614', '200', 'Foto', '15', ''), new Array('user', '652', '0', 'Sieger', '15', ''), new Array('user', '675', '0', 'Metallica', '15', ''), new Array('user', '698', '204', 'Crash', '15', ''), new Array('user', '740', '201', 'blackdevil', '15', ''), new Array('user', '824', '202', 'Kyleon', '15', ''), new Array('user', '837', '214', 'zeyad', '15', ''), new Array('user', '1049', '202', 'Abaddon', '15', ''), new Array('user', '1081', '201', 'Slaughter', '15', ''), new Array('user', '304', '0', 'Princess', '14', ''), new Array('user', '419', '0', 'Dominate', '14', ''), new Array('user', '570', '224', 'Patrionda', '14', ''), new Array('user', '749', '0', 'Wayne', '14', ''), new Array('user', '1053', '216', 'Rose', '14', ''), new Array('user', '1055', '195', 'holmes', '14', ''), new Array('user', '1060', '214', 'Daevon', '14', ''), new Array('user', '1094', '205', 'Katch', '14', ''), new Array('user', '1111', '214', 'Lieutenant', '14', ''), new Array('user', '360', '190', 'Kyuuketsuki', '13', ''), new Array('user', '539', '0', 'NewGirl', '13', ''), new Array('user', '599', '0', 'Grosso', '13', ''), new Array('user', '607', '206', 'Malleus', '13', ''), new Array('user', '619', '215', 'DeadAngel', '13', ''), new Array('user', '965', '0', 'joepiter', '13', ''), new Array('user', '976', '0', 'n00bhuntaah', '13', ''), new Array('user', '1045', '219', 'Chamiaholom', '13', ''), new Array('user', '1069', '0', 'Beso', '13', ''), new Array('user', '1076', '195', 'BrutalBroncos', '13', ''), new Array('user', '1077', '215', 'Ezikel', '13', ''), new Array('user', '1097', '223', 'ChainFire', '13', ''), new Array('user', '1188', '0', 'jolter-', '13', ''), new Array('user', '1287', '0', 'dead-blood-', '13', ''), new Array('user', '302', '195', 'Veamer', '12', ''), new Array('user', '859', '0', 'MarFoul', '12', ''), new Array('user', '873', '204', 'DesTroyeR', '12', ''), new Array('user', '1005', '190', 'NeoN', '12', ''), new Array('user', '1070', '0', 'klu', '12', ''), new Array('user', '1092', '0', 'nihilias', '12', ''), new Array('user', '1101', '224', 'megadeth', '12', ''), new Array('user', '1214', '205', 'Traitor', '12', ''), new Array('user', '505', '206', 'Revolter', '11', ''), new Array('user', '579', '224', 'MentalT', '11', ''), new Array('user', '600', '0', 'blackops', '11', ''), new Array('user', '697', '224', 'darkness-returns', '11', ''), new Array('user', '918', '0', 'ToX', '11', ''), new Array('user', '953', '208', 'MilkShaker', '11', ''), new Array('user', '1039', '0', 'Epyon', '11', ''), new Array('user', '1131', '211', 'Nevawinter', '11', ''), new Array('user', '1145', '0', 'Treason', '11', ''), new Array('user', '1293', '219', 'Encrypt', '11', ''), new Array('user', '478', '0', 'Bodie', '10', ''), new Array('user', '677', '224', 'Geo', '10', ''), new Array('user', '678', '0', 'Linzen', '10', ''), new Array('user', '764', '210', 'Bertjuh', '10', ''), new Array('user', '908', '221', 'Supernova', '10', ''), new Array('user', '969', '191', 'TraDer', '10', ''), new Array('user', '1015', '0', 'Un0', '10', ''), new Array('user', '1113', '212', 'Justin', '10', ''), new Array('user', '1161', '0', 'Cenarius', '10', ''), new Array('user', '1185', '0', 'Ubsniper', '10', ''), new Array('user', '1201', '216', 'Marvelous', '10', ''), new Array('user', '1207', '0', 'Chain', '10', ''), new Array('user', '1241', '0', 'DraCola', '10', ''), new Array('user', '1342', '0', 'T-PaiN-', '10', ''), new Array('user', '470', '0', 'Odysseus', '9', ''), new Array('user', '587', '0', 'Yucca', '9', ''), new Array('user', '804', '211', 'neilus', '9', ''), new Array('user', '810', '0', 'MOLY', '9', ''), new Array('user', '1082', '219', 'Novalyfe', '9', ''), new Array('user', '1245', '0', 'Miss-Sofia', '9', ''), new Array('user', '1256', '0', 'KriSko', '9', ''), new Array('user', '1338', '202', 'Inoxx', '9', ''), new Array('user', '611', '0', 'CrazyM', '8', ''), new Array('user', '691', '0', 'Requi', '8', ''), new Array('user', '802', '0', 'Leader', '8', ''), new Array('user', '855', '0', 'Theking', '8', ''), new Array('user', '1156', '0', 'getALife', '8', ''), new Array('user', '1306', '0', '-Kaka-', '8', ''), new Array('user', '1328', '0', '-Inivisible-', '8', ''), new Array('user', '1336', '202', 'Tyrex', '8', ''), new Array('user', '1359', '0', '-Mega-', '8', ''), new Array('user', '1397', '0', 'TriggeR', '8', ''), new Array('user', '1403', '0', 'Babylon', '8', ''), new Array('user', '617', '224', '-BaD-MaN-', '7', ''), new Array('user', '1204', '0', 'aka', '7', ''), new Array('user', '1215', '0', 'Buttercup', '7', ''), new Array('user', '1257', '0', 'Crasto', '7', ''), new Array('user', '1285', '0', 'Mr-System', '7', ''), new Array('user', '1301', '224', 'Angelik', '7', ''), new Array('user', '1313', '199', 'Brawler', '7', ''), new Array('user', '1344', '0', 'Blaxtar', '7', ''), new Array('user', '592', '0', 'EvE', '6', ''), new Array('user', '687', '0', 'mrBlonde', '6', ''), new Array('user', '917', '0', 'Vopos', '6', ''), new Array('user', '1110', '0', 'Juno', '6', ''), new Array('user', '1139', '0', 'JoeyBonkers', '6', ''), new Array('user', '1177', '0', 'Saligia-', '6', ''), new Array('user', '1182', '0', 'Henk', '6', ''), new Array('user', '1337', '0', '-Geronimo-', '6', ''), new Array('user', '1371', '0', 'PushinDaisies', '6', ''), new Array('user', '1385', '0', '-ashly', '6', ''), new Array('user', '1402', '0', 'Opulence', '6', ''), new Array('user', '1334', '0', 'Vioto-nl', '5', ''), new Array('user', '1363', '0', 'Sweety-Pie', '5', ''), new Array('user', '1393', '0', 'Nobody', '5', ''), new Array('user', '1415', '0', 'Savas', '5', ''), new Array('user', '1357', '0', 'Amoon', '4', ''), new Array('user', '1095', '0', 'Zooma', '3', ''), new Array('user', '1353', '0', 'HolMes-Bk', '3', ''), new Array('user', '1413', '0', 'Dribbel', '1', ''), new Array('user', '1417', '0', 'titoo', '1', ''), new Array('user', '1418', '0', 'Aelkezr', '0', '')), '194', 'new Array(new Array(0, 69), new Array(190, 7), new Array(191, 11), new Array(195, 5), new Array(199, 3), new Array(200, 8), new Array(201, 10), new Array(202, 12), new Array(204, 4), new Array(205, 3), new Array(206, 1), new Array(207, 1), new Array(208, 1), new Array(211, 1), new Array(212, 6), new Array(214, 9), new Array(215, 1), new Array(216, 1), new Array(219, 5), new Array(221, 2), new Array(223, 3), new Array(224, 9))', arrBuddies, arrIgnored, 'IR');
menu_top('', 'Travel', '<nobr><a href="/e.php?p=TRAVEL.travel" title="Travel time">Ready for travel</a></nobr>', '1fb0');
menu_item('', '/e.php?p=TRAVEL.travel', 'Travel');menu_item('', '/e.php?p=TRAVEL.vehicles', 'Vehicles');

menu_bottom();menu_top('', 'Items', '<nobr>Items</nobr>', '9dea');
menu_item('', '/e.php?p=ITEMS.weapon', 'Weapon');menu_item('', '/e.php?p=ITEMS.armor', 'Armor');menu_item('', '/e.php?p=ITEMS.cloak', 'Cloak');

menu_bottom();menu_top('', 'Money', '<nobr><a href="/e.php?p=BANK.bank" title="Bank">$53 K</a></nobr>', 'a933');
menu_info('padded', '<p><b>Money</b><br />$53,366</p>');menu_info('padded', '<p><b>Bank</b><br />$0</p>');menu_item('', '/e.php?p=BANK.bank', 'Bank');menu_item('', '/e.php?p=BANK.hand_to_bank', 'Put money in bank');

menu_bottom();menu_top('highlight', 'Tokens', '<nobr><a href="/e.php?p=TOKEN.shop" title="Token shop">Token shop</a></nobr>', 'f686');
menu_item('', '/e.php?p=TOKEN.shop', 'Shop');menu_item('', '/e.php?p=TOKENS.market', '<b>Token market</b>');menu_item('purple', '/e.php?p=TOKEN.payments', 'Buy tokens');

menu_bottom();menu_top('', 'Earn', '<nobr><a href="/e.php?t=df&p=EARN.crimes" title="Crimes"><b>Crime *</b></a></nobr>', '83db');
menu_item('action', '/e.php?t=df&p=EARN.crimes', 'Crimes');menu_item('', '/e.php?p=EARN.trade', 'Trade');menu_item('', '/e.php?p=EARN.stocks', 'Stock Markets');menu_item('', '/e.php?p=VOTES.sites', '<b>Vote sites</b>');menu_item('purple', '/e.php?p=EARN.crimepoints', 'Crimepoints log');

menu_bottom();menu_top('', 'Gambling', '<nobr><a href="/e.php?p=GAMBLING.lottery" title="Lottery">Lottery</a></nobr>', '12fe');
menu_item('', '/e.php?p=GAMBLING.gan', 'Guess A Number');menu_item('', '/e.php?p=GAMBLING.lottery', 'Lottery');

menu_bottom();menu_top('', 'War', '<nobr><a href="/e.php?p=WAR.kill" title="Kill">Kill</a></nobr>', 'ab4b');
menu_item('', '/e.php?p=WAR.pickpocket', 'Pickpocket');menu_item('', '/e.php?p=WAR.kill', 'Kill');menu_item('', '/e.php?p=SAFETY.safety_money', 'Safety Money');menu_item('', '/e.php?p=WAR.place_reward', 'Place Reward');menu_item('new', '/e.php?p=WAR.list_rewards', '<b>List Rewards</b> (1)');

menu_bottom();menu_top('', 'Forums', '<nobr><a href="/e.php?forum=1&p=FORUMS.list_forum" title="Street">Streets</a></nobr>', '6bb6');
menu_item('_starred', '/e.php?forum=1&p=FORUMS.list_forum', 'Street');menu_item('_starred', '/e.php?forum=2&p=FORUMS.list_forum', 'OOC');menu_item('_starred', '/e.php?forum=5&p=FORUMS.list_forum', 'Church');menu_item('_starred', '/e.php?forum=9&p=FORUMS.list_forum', 'Business');menu_item('_starred', '/e.php?forum=10&p=FORUMS.list_forum', 'Questions and Answers');menu_item('_starred', '/e.php?forum=7&p=FORUMS.list_forum', 'Bugs');menu_item('_starred', '/e.php?forum=8&p=FORUMS.list_forum', 'Investigation');

menu_bottom();menu_top('', 'Squad', '<nobr><a href="/e.php?p=SQUAD.info" title="Squad">Squad</a></nobr>', '5c7d');
menu_item('', '/e.php?p=SQUAD.info', 'Manual');menu_item('', '/e.php?p=SQUAD.listing', 'Top Crime squads');menu_item('', '/e.php?p=SQUAD.start', 'Start squad');

menu_bottom();menu_top('', 'Crew', '<nobr><a href="/e.php?p=CREWS.invites" title="Invites">Invites</a></nobr>', 'e2eb');
menu_item('', '/e.php?p=CREWS.invites', 'Invites');

menu_bottom();menu_finish();
main_3('true');
</script>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-1246875-1");
pageTracker._trackPageview();

} catch(err) {}

</script>



</BODY>
</HTML>

Open in new window

LVL 1
samwood09Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aleksandar BradarićSoftware DeveloperCommented:
Not sure I see any PHP variables in there... If you're referring to e.g. $(document) in line 48, that's not PHP - it's jQuery (http://jquery.com/)
0
samwood09Author Commented:
theres got to be php variables how would it write the username and details and users online into the javascript?
0
Aleksandar BradarićSoftware DeveloperCommented:
It can be done by either using an AJAX call to retrieve the information from the server and insert it into the page or by inserting the values of the variables from PHP directly into the page template.

In either case, there are no PHP _variables_ in JavaScript - just the values of those variables inserted into the page.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Sebastian TalmonSystem Engineer Datacenter SolutionsCommented:

it seems that they are using dynamic generated javascript, and not static files.

They are called with for example <SCRIPT language="javascript" src="/scripts_v15/users.js?123124"></SCRIPT>


"users.js" is not a javascript file but a script (maybe php, maybe another language) and the webserver is configured to parse this .js-File with the scripting language.

Output of the (php?)-script users.js is the javascript, but with dynamic content in it  (but this content is generated by the script on the server, the variables for it are not in the resulting javascript anymore
0
remorinaCommented:
You can actually pass ASP/PHP variables to JavaScript.

For PHP you can use the echo command

Let's say that there is a MySQL database called db1, with a table called table1, which has two columns, 'userid' and 'usernum'. To retrieve information about Snib, you can use the example below
<?php

    $connection = mysql_connect('localhost', 'username', 'password');

    $sql = mysql_select_db('db1', $connection);

    $userid = "Snib";

    $query = "SELECT * FROM `table1` WHERE userid='$userid'";

    $result = mysql_query($query);

    $data = mysql_fetch_assoc($result);

    $usernum = $data['usernum'];

?>



<script language="javascript" type="text/javascript">

    var userid = "<?php echo $userid; ?>";

    var usernum = "<?php echo $usernum; ?>";

    //if usernum is less than or equal to 50
    if (usernum <= 50) { 

        alert("You are not allowed on this page, " + userid);
        setTimeout('window.location = "otherpage.php"', 3000); // user leaves in 3 seconds

    } else {

        alert('Welcome to this page, ' + userid);

    }

</script>

<?php mysql_close($connection); ?>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
remorinaCommented:
Another simple example
<?php

    $username = "Raymond";

?>
...
<script language="javascript" type="text/javascript">
    var sStr = "My name is <?php echo $username ?>.";

    document.write(sStr);
</script>
...

This code will out put the following:
...
My name is Raymond.
...

Open in new window

0
samwood09Author Commented:
whats the advantage of having dynamic  generated  javascript?
0
remorinaCommented:
For External Javascript files, the /scripts_v15/bb_editor/ed.js and /scripts_v15/bb_editor/ed.js?234234 they are actual JavaScript files not a generated scripts by PHP

The numbers are for versioning purpose to prevent the browser from loading a cached script

A Generated script would still be a php file like explained here
http://www.javascriptkit.com/javatutors/externalphp.shtml in which you can use to pass variables and construct your javascript using a php page

If you open the script file http://www.dark-future.org/scripts_v15/functions.js it is actually an Ajax function function getXUrl(url, noUpdate, noEval)
It could be used to parse content generated by a url which is a php page, thus getting the required info.

0
remorinaCommented:
The advantages of dynamically generated Javascript is to pass variables or values coming from a database for example without having to include the inline <script> in every page using this script.

So later if any modification to the script was required, it only takes an update to this file rather than updating a bunch of files
0
samwood09Author Commented:
ok so with the
menu_top('highlight_character', 'Character', '<nobr><b>Abstract11</b> (IR)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bagman (0)<br /></nobr>', '76a4');

<script language="javascript" type="text/javascript">
    var sStr = "menu_top('highlight_character', 'Character', '<nobr><b>$username</b> (IR)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bagman (0)<br /></nobr>', '76a4');.";

    document.write(sStr);
</script>
0
samwood09Author Commented:
cheers everyone
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTTP Protocol

From novice to tech pro — start learning today.