« Programmation PHP/Exemples/MiniForum » : différence entre les versions

Contenu supprimé Contenu ajouté
mAucun résumé des modifications
DannyS712 (discussion | contributions)
m <source> -> <syntaxhighlight> (phab:T237267)
Ligne 28 :
 
{{Cadre fichier|config.inc.php|
<sourcesyntaxhighlight lang="php">
<?php
/* */
Ligne 38 :
 
?>
</syntaxhighlight>
</source>
}}
 
<b>increment 0 : index.php </b>
{{Cadre fichier|index.php|
<sourcesyntaxhighlight lang="php">
<?php
/* Mini Forum - main entry
Ligne 61 :
 
?>
</syntaxhighlight>
</source>
}}
 
<b>increment 1 : index.php </b>
{{Cadre fichier|index.php|
<sourcesyntaxhighlight lang="php">
<?php
/* Mini Forum - main entry
Ligne 95 :
 
?>
</syntaxhighlight>
</source>
}}
 
Ligne 101 :
<b>increment 2 : index.php </b>
{{Cadre fichier|index.php|
<sourcesyntaxhighlight lang="php">
<?php
/* Mini Forum - main entry
Ligne 141 :
 
?>
</syntaxhighlight>
</source>
}}
 
Ligne 147 :
 
{{Cadre fichier|frameset.inc.php|
<sourcesyntaxhighlight lang="php">
<?php
/* main page
Ligne 170 :
EOPAGE;
?>
</syntaxhighlight>
</source>
}}
 
Ligne 176 :
 
{{Cadre fichier|frameset.inc.php|
<sourcesyntaxhighlight lang="php">
<head>
{$_content['title']}
Ligne 183 :
{$_content['style']}
</head>
</syntaxhighlight>
</source>
}}
 
Ligne 189 :
 
{{Cadre fichier|mainPage.inc.php|
<sourcesyntaxhighlight lang="php">
<?php
/* Main page content
Ligne 292 :
 
?>
</syntaxhighlight>
</source>
}}
 
Ligne 298 :
 
{{Cadre fichier|listener.inc.php|
<sourcesyntaxhighlight lang="php">
<?php
/* application listener
Ligne 321 :
 
?>
</syntaxhighlight>
</source>
}}
 
Ligne 328 :
 
{{Cadre fichier|controler.inc.php|
<sourcesyntaxhighlight lang="php">
<?php
/* application controler
Ligne 366 :
}
?>
</syntaxhighlight>
</source>
}}
 
Ligne 373 :
:Le snippet content['authorize'] change de mode.
{{Cadre fichier|mainPage.inc.php|
<sourcesyntaxhighlight lang="php">
 
...
Ligne 392 :
 
 
</syntaxhighlight>
</source>
}}
 
Ligne 399 :
:Le snippet content['authorize'] affiche le statut user mode.
{{Cadre fichier|mainPage.inc.php|
<sourcesyntaxhighlight lang="php">
// content contents
$_content['authorize'] = (!@$_SESSION['autho'])?'
Ligne 420 :
<table width="100%"><tr><td>:: PARTNER 2 ::</td></tr></table>
';
</syntaxhighlight>
</source>
}}
 
Ligne 426 :
:intégration des javascripts
{{Cadre fichier|mainPage.inc.php|
<sourcesyntaxhighlight lang="php">
<?php
 
Ligne 446 :
 
?>
</syntaxhighlight>
</source>
}}
 
Ligne 452 :
:contenus des pages
{{Cadre fichier|pages.inc.php|
<sourcesyntaxhighlight lang="php">
<?php
/* pager contents
Ligne 540 :
}
?>
</syntaxhighlight>
</source>
}}
 
Ligne 547 :
:contenus des pages complétés
{{Cadre fichier|pages.inc.php|
<sourcesyntaxhighlight lang="php">
<?php
/* pager contents
Ligne 674 :
 
?>
</syntaxhighlight>
</source>
}}
 
Ligne 680 :
:controler complété
{{Cadre fichier|controler.inc.php|
<sourcesyntaxhighlight lang="php">
<?php
/* application controler
Ligne 747 :
 
?>
</syntaxhighlight>
</source>
}}
 
Ligne 801 :
 
{{Cadre fichier|Connectivity.cla.php|
<sourcesyntaxhighlight lang="php">
<?php
/* Connectivity class
Ligne 838 :
}
?>
</syntaxhighlight>
</source>
}}
 
 
{{Cadre fichier|Request.cla.php|
<sourcesyntaxhighlight lang="php">
<?php
/* Request class
Ligne 864 :
}
?>
</syntaxhighlight>
</source>
}}
 
Ligne 871 :
 
{{Cadre fichier|utils.fnc.php|
<sourcesyntaxhighlight lang="php">
<?php
/* utilities functions
Ligne 905 :
 
?>
</syntaxhighlight>
</source>
}}
 
<b>increment 2 : utils.fnc.php</b>
{{Cadre fichier|utils.fnc.php|
<sourcesyntaxhighlight lang="php">
/* dump array 2 html
 
Ligne 942 :
}
}
</syntaxhighlight>
</source>
}}
 
Ligne 949 :
:add function
{{Cadre fichier|utils.inc.ohp|
<sourcesyntaxhighlight lang="php">
/* get record by id
 
Ligne 957 :
return count($res=Request::SQL($cnx,"SELECT * FROM $table WHERE id=$id"))?$res[0]:false;
}
</syntaxhighlight>
</source>
}}
 
Ligne 964 :
 
{{Cadre fichier|install.sql|
<sourcesyntaxhighlight lang="sql">
-- phpMyAdmin SQL Dump
-- version 3.2.0.1
Ligne 1 036 :
--
 
</syntaxhighlight>
</source>
}}
 
Ligne 1 042 :
 
{{Cadre fichier|_install.php|
<sourcesyntaxhighlight lang="php">
<?php
/* install tables
Ligne 1 086 :
 
?>
</syntaxhighlight>
</source>
}}