Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit f2ab3b32 authored by Mathieu Loiseau's avatar Mathieu Loiseau
Browse files

with id as comment

parent 4ed0641d
......@@ -40,15 +40,17 @@ else{
$export_txt = "<?php echo \"<h2>User created cards</h2>\";\n";
$export_txt .= "\$nb=0;\ntry{\n";
}
foreach ($card_ids as $card_id){
$card = new Card($card_id);
if($admin){
$card->set_view("./views/card.inline.admin.display.php");
echo $card;
}
if($export){
$card->set_view("./views/card.export.php");
$export_txt .= $card;
if($card_ids){
foreach ($card_ids as $card_id){
$card = new Card($card_id);
if($admin){
$card->set_view("./views/card.inline.admin.display.php");
echo $card;
}
if($export){
$card->set_view("./views/card.export.php");
$export_txt .= $card;
}
}
}
if($export){
......
<?php /* Global $card sent by Card class (models/card.class.php) → $res used then in Card class*/
include('./languages/language.php');
$res = "\n\$tempObj = new Card('".$card->get_lang()."', NULL, \"".$card->get_level().'", "'.$card->get_cat().'", "1", "'.$card->get_word().'",'."\n\t".' array("'.implode('","', $card->get_forbidden_words()).'"),'."\n\t".' array("'.implode('","', $card->get_themes()).'"));'."\n";
$res = "\n//".$card->get_id()."\n\$tempObj = new Card('".$card->get_lang()."', NULL, \"".$card->get_level().'", "'.$card->get_cat().'", "1", "'.$card->get_word().'",'."\n\t".' array("'.implode('","', $card->get_forbidden_words()).'"),'."\n\t".' array("'.implode('","', $card->get_themes()).'"));'."\n";
$res .= "\t\$tmpObj->store(true);\$nb++;";
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment