added share link feature
This commit is contained in:
parent
55e7774cee
commit
deaad1cd5b
27
index.php
27
index.php
|
@ -160,6 +160,11 @@ function AddEntryView() {
|
||||||
global $GBfield2;
|
global $GBfield2;
|
||||||
global $GBfield3;
|
global $GBfield3;
|
||||||
global $GBemailfield;
|
global $GBemailfield;
|
||||||
|
global $singleEntry;
|
||||||
|
if ($singleEntry) {
|
||||||
|
echo "<a href=\".\"><h2>",$Titles["Page"],"</h2></a><br>\n";
|
||||||
|
return;
|
||||||
|
}
|
||||||
echo "<h2>",$Titles["Page"],"</h2><br>\n";
|
echo "<h2>",$Titles["Page"],"</h2><br>\n";
|
||||||
if ($PageStatus=="added") echo $Titles["Added"]."<br>\n";
|
if ($PageStatus=="added") echo $Titles["Added"]."<br>\n";
|
||||||
$captchanumber11=rand(1, 4);
|
$captchanumber11=rand(1, 4);
|
||||||
|
@ -264,7 +269,10 @@ function SinlgeEntry($Entry) {
|
||||||
echo "<b>",$Entry[0],"</b>";
|
echo "<b>",$Entry[0],"</b>";
|
||||||
if ($Entry[2]) echo "</a>";
|
if ($Entry[2]) echo "</a>";
|
||||||
if ($Entry[1]) echo " ",$Titles["From"]," <b>",$Entry[1],"</b>";
|
if ($Entry[1]) echo " ",$Titles["From"]," <b>",$Entry[1],"</b>";
|
||||||
echo ", ",date("j.m.Y, H:i",$Entry[5]),", ";
|
echo ", ";
|
||||||
|
echo "<a href=\"?entry=",$Entry[5],"\">";
|
||||||
|
echo date("j.m.Y, H:i",$Entry[5]);
|
||||||
|
echo "</a>, ";
|
||||||
if ($GBreplies&&isset($Entry[9])&&$Entry[9]) {
|
if ($GBreplies&&isset($Entry[9])&&$Entry[9]) {
|
||||||
echo $Titles["Replied"];
|
echo $Titles["Replied"];
|
||||||
} else echo $Titles["Wrote"];
|
} else echo $Titles["Wrote"];
|
||||||
|
@ -458,5 +466,22 @@ if(isset($_POST["reply"])) {
|
||||||
$Entries[0]=$_SESSION["reply"];
|
$Entries[0]=$_SESSION["reply"];
|
||||||
} else unset($_SESSION["reply"]);
|
} else unset($_SESSION["reply"]);
|
||||||
|
|
||||||
|
if (isset($_GET["entry"])) {
|
||||||
|
foreach($Entries as $Entry) {
|
||||||
|
if ($Entry[5] == $_GET["entry"]) {
|
||||||
|
$newEntries[0] = $Entry;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
foreach($Entries as $Entry) {
|
||||||
|
if ($Entry[9] == $_GET["entry"]) {
|
||||||
|
$newEntries[] = $Entry;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$GBsearch=false;
|
||||||
|
$singleEntry = true;
|
||||||
|
$Entries = $newEntries;
|
||||||
|
}
|
||||||
|
|
||||||
include "page.php";
|
include "page.php";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue