-
Notifications
You must be signed in to change notification settings - Fork 0
/
addauthor.php
37 lines (27 loc) · 1.16 KB
/
addauthor.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
if (empty($_POST['streamList'])) {
$result = array();
//If the add author button was pressed from the login page
if (isset($_POST['fromLogin']) == '1') {
exec('./a3 addauthorLogin.wpml '.$_POST['userID'], $result);
}
//If the add author button was pressed from the view stream page
else {
exec('./a3 addauthor.wpml '.$_POST['userID'], $result);
}
//Display page
foreach($result as $text) {
//Add any values that will need to be passed between webpages
if ($text == "</form>") {
echo "<input type=\"hidden\" name=\"userID\" value=\"".$_POST['userID']."\"/>\n";
echo "<input type=\"hidden\" name=\"stream\" value=\"".$_POST['stream']."\"/>\n";
echo "<input type=\"hidden\" name=\"postCount\" value=\"".$_POST['postCount']."\"/>\n";
echo "<input type=\"hidden\" name=\"maxCount\" value=\"".$_POST['maxCount']."\"/>\n";
echo "<input type=\"hidden\" name=\"toggleMode\" value=\"".$_POST['toggleMode']."\"/>\n";
echo "<input type=\"hidden\" name=\"timeStamp\" value=\"".$_POST['timeStamp']."\"/>\n";
echo "<input type=\"hidden\" name=\"fromLogin\" value=\"".$_POST['fromLogin']."\"/>\n";
}
echo $text."\n";
}
}
?>