コード例 #1
0
 /** Possible actions for a comment: prioritize and delete */
 function comment_actions($comment_id)
 {
     $CI =& get_instance();
     $c = $CI->commentModel->get_comment_by_id($comment_id);
     $p = $CI->participantModel->get_participant_by_id($c->participant_id);
     $prio_link = anchor('comment/prioritize/' . $comment_id . ($c->priority ? '/0' : ''), img_star(!$c->priority));
     $handled_link = anchor('comment/mark_handled/' . $comment_id . ($c->handled ? '/0' : ''), img_accept(lang('mark_handled'), !$c->handled));
     $edit_link = anchor('comment/edit/' . $comment_id, img_edit());
     $p_link = anchor('participant/edit/' . $c->participant_id, img_edit_participant($p));
     $d_link = anchor('comment/delete/' . $comment_id, img_delete(), warning(lang('sure_delete_comment')));
     return implode(' ', array($prio_link, $handled_link, $edit_link, $p_link, $d_link));
 }
コード例 #2
0
<?php

include "./modele/modele_connexion_bdd.php";
include "./modele/modele_fonction.php";
include "/var/www/wordpress/wp-load.php";
$liste_star = liste_star();
foreach ($liste_star as $cle => $result) {
    //$liste_star[$cle]["id_utilisateur"] = nl2br(htmlspecialchars($result["id_utilisateur"]));
    $liste_star[$cle]["pseudo"] = nl2br(htmlspecialchars($result["pseudo"]));
    $liste_star[$cle]["fqdn_blog"] = nl2br(htmlspecialchars($result["fqdn_blog"]));
}
for ($i = 0; $i < count($liste_star); $i++) {
    $pseudo = $liste_star[$i]['pseudo'];
    $img_star = img_star($pseudo);
    $blog_name = blog_name($pseudo);
    foreach ($blog_name as $result) {
        $blog[$pseudo] = $result->option_value;
    }
    if (empty($img_star)) {
        $img[$pseudo] = "./bootstrap/images/6.jpg";
    } else {
        foreach ($img_star as $res) {
            $img[$pseudo] = $res->guid;
        }
        foreach ($blog_name as $res) {
            $blog[$pseudo] = $res->option_value;
        }
    }
}
include "./vue/vue_accueil.php";
//include("./modele/modele_accueil.php");