navigation
Home
admin
|
Kure
October 18th, 2016
|
| Présentation |  |
http://skoh-fley.github.com/kure/
(http://code.google.com/p/kure/)
"Kure is a blogging engine written in PHP. It runs on a flat-file database, meaning it stores its posts and information in straight-up text files rather than database systems".
| Modif du fichier index.php |  |
Objectif :
- insertion de lien
- ligne horizontale
- titre
- code (tableau)
// bruno
$content = str_replace("# 92;"," 92;",$content);
//$content = str_replace("& lt;img& gt;","<img src="img/",$content);
$content = str_replace("& lt;img& gt;","<img ",$content);
$content = str_replace("& lt;/img& gt;",">",$content);
$content = str_replace("( (","<a name="",$content);
$content = str_replace(") )",""></a>",$content);
$content = str_replace("[ [","<a href="",$content);
$content = str_replace("] ]","</a>",$content);
$content = str_replace("| |","">",$content);
etc...
|
Note 1 : Modif à faire à deux endroits du fichier (pour les docs et pour les posts).
Note 2 : Dans les lignes ci-dessus, j'ai rajouté des blancs pour éviter l'interprétation des codes.
| Modif du fichier templates/sanitation/sanitation.css |  |
J'ai ajouté :
.bigletters
{
font-size:200%;
}
|
| Modif du fichier templates/sanitation/admin_header.html |  |
pour ajouter un mémo.
| Modif du fichier function.php |  |
Objectif : encoder correctement les caractères "<" et ">".
function parse($string) {
// returns a parsed version of $string for use in entry content; removes any php code and applies bbcode
$string = str_replace("<?", "<?", $string);
$string = str_replace("?>", "?>", $string);
$string = str_replace("<", "<", $string);
$string = str_replace(">", ">", $string);
$string = str_replace("", "", $string); |
| Modif du mot de passe admin |  |
Le mot de passe est crypté en md5
http://www.cryptage-md5.com/
|
|
Contact
|
|---|
Pour m'envoyer un mail, Pour me laisser un commentaire :richard.brunooo chez gmail.com |  |
|
|