Server IP : 149.202.105.228 / Your IP : 216.73.216.18 Web Server : Apache System : Linux webm129.cluster030.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : atfycaf ( 116275) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/atfycaf/www/admin/ |
Upload File : |
<?php $thisCheckID = 1; include "globalVars.php"; include "header.php"; ?> <h2>Create a New Calendar</h2> <?php if (isset($_POST["createCalendar"])) { $calendarName = cleanPost($_POST["calendarName"], $conn); $calendarURL = cleanPost($_POST["calendarURL"], $conn); $pageURL = str_replace($badURL, $goodURL, $calendarName); $pageURL = strtolower($pageURL) ; mysqli_query($conn, "INSERT INTO calendars (pageURL, calendarName, calendarURL) VALUES ('$pageURL', '". addslashes($calendarName) ."', '$calendarURL')") or die (mysqli_error($conn)); $trackDate = date("Y-m-d H:i:s"); mysqli_query($conn, "INSERT INTO userActions (dateCreated, adminID, pageTracking, databaseUpdated, updateDetails) VALUES ('$trackDate', '$adminID', 'admin/calendarsNew.html', 'calendars', 'The User ". addslashes($adminName) ." <$adminEmail> created the new calendar ". addslashes($calendarName) ."')"); echo "<p><strong>Success!</strong> The new Calendar $calendarName has been created.</p>"; } else { ?> <form action="calendarsNew.html" method="post"> <div class="descStTab"> <div class="pFormRow"> <div class="pFormTitle">Calendar name:</div> <div class="pFormInput"> <input type="text" name="calendarName" size="50" required /> <div class="pFormLabel"> <label class="labelName">Calendar name:</label> </div> </div> </div> <div class="pFormRow"> <div class="pFormTitle">Calendar URL:</div> <div class="pFormInput"> <input type="url" name="calendarURL" size="50" placeholder="https://www.example.com" /> <div class="pFormLabel"> <label class="labelName">Calendar URL:</label> </div> </div> </div> </div> <input type="submit" class="submitButton" name="createCalendar" value="Create New Calendar" /> </form> <?php } ?> <?php include "footer.php"; ?>