SHOW:
|
|
- or go back to the newest paste.
| 1 | - | if (!empty($_POST)) {
|
| 1 | + | |
| 2 | - | foreach ($_POST as $guid => $status) {
|
| 2 | + | foreach (array_combine($_SESSION['notes_title'], $_SESSION['notes_guid']) as $title => $guid){
|
| 3 | - | $sharedUrl[$guid] = shareSingleNote($guid); |
| 3 | + | if (!empty($links[$guid])){
|
| 4 | - | } |
| 4 | + | echo $title.": <a href='".$links[$guid]."'>".$links[$guid]."</a></br><br>"; |
| 5 | - | $_SESSION['sharedUrls'] = $sharedUrl; |
| 5 | + | } |
| 6 | - | } |
| 6 | + | } |