Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Есть файл index.php

в нем таблица и данные.

Что надо сделать :

Надо вывести их так чтобы при указывании ссылки _ttp://сайтточкару/index.php?game=dz открывался один файл, а при указании _ttp://сайтточкару/index.php?game=sdz2 открывался другой. И от туда нужно вывести данные в таблицу(разумеется уже готовую)

 

Как реализовать ?

 

Сейчас используется код

elseif($_GET['game'] == "gm23od"){
//добавлять/править сюда gmod
if($_GET['name'] == "zsd"){
$p = 'gzs2/users.txt';
}
if($_GET['name'] == 'dr'){
$p = 'gr/users.txt';
}

$admins = file_get_contents($p);
$admins = str_replace("t",'',$admins);
$admins = str_replace("n",'',$admins);
$admins = str_replace('"deny"','',$admins);
$admins = str_replace('"allow"','',$admins);
$admins = str_replace('{','',$admins);
$admins = str_replace('}','',$admins);
$admins = str_replace('"name"','',$admins);
$admins = str_replace('"group"','',$admins);
$no = array('',' ');
list($s[1],$n[1],$g[1],$s[2],$n[2],$g[2],$s[3],$n[3],$g[3],$s[4],$n[4],$g[4],$s[5],$n[5],$g[5],$s[6],$n[6],$g[6],
     $s[7],$n[7],$g[7],$s[8],$n[8],$g[8],$s[9],$n[9],$g[9],$s[10],$n[10],$g[10],$s[11],$n[11],$g[11],$s[12],
     $n[12],$g[12],$s[13],$n[13],$g[13],$s[14],$n[14],$g[14],$s[15],$n[15],$g[15]) = array_diff(explode('"',$admins),$no);
$s = array_diff($s,$no);
$n = array_diff($n,$no);
$g = array_diff($g,$no);
$l = 0;
for($i=2;$i<count($n);$i=$i+2){
$l++;
$tbl .= '
<tr>
<td>'.$l.'</td>
<td>'.$s[$i].'</td>
<td>'.$n[$i-1].'</td>
<td>'.$g[$i].'</td>
</tr>';
}

я так предполагаю что виновата строчка

$no = array('',' ');
list($s[1],$n[1],$g[1],$s[2],$n[2],$g[2],$s[3],$n[3],$g[3],$s[4],$n[4],$g[4],$s[5],$n[5],$g[5],$s[6],$n[6],$g[6],
     $s[7],$n[7],$g[7],$s[8],$n[8],$g[8],$s[9],$n[9],$g[9],$s[10],$n[10],$g[10],$s[11],$n[11],$g[11],$s[12],
     $n[12],$g[12],$s[13],$n[13],$g[13],$s[14],$n[14],$g[14],$s[15],$n[15],$g[15]) = array_diff(explode('"',$admins),$no);

но может я могу ошибаться !

 

Сейчас выводится только 3 строчки. Не больше не меньше. А строчек в файле может быть и 1005000! Как все сразу вывести

Edited by MontiQ

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.