= $_CONFIG['SAVED_URL']) { // Delete the first element array_shift($data); } // Add that to the array array_push($data, $that); return $data; } if(empty($_POST['url'])) { header('location : message.php?m=1'); } else { if (is_readable($_CONFIG['DATA_DIR'].$_CONFIG['ASSOC_NAME'])) $rawData = file_get_contents($_CONFIG['DATA_DIR'].$_CONFIG['ASSOC_NAME']); else { touch($_CONFIG['DATA_DIR'].$_CONFIG['ASSOC_DIR']); $rawData = ""; } if (empty($rawData)) $data = array(); else $data = unserialize($rawData); } ?> Réduit moi !

C'était trop long !

$url, "short"=>$short); // Add the association at the end of $data array $data = add($array); // Save it in the file file_put_contents($_CONFIG['DATA_DIR'].$_CONFIG['ASSOC_NAME'], serialize($data)); // Echoes the result $new_url = $_CONFIG['BASE_URL'].'/?'.$short; ?>

Votre raccourci :

Réduction de : Retour à l'acceuil."; }?>