Commit 45d527b5 authored by Alyx's avatar Alyx
Browse files

meow

parent 1329cfc7
Loading
Loading
Loading
Loading
+15 −13
Original line number Diff line number Diff line
@@ -5,8 +5,9 @@
  </component>
  <component name="ChangeListManager">
    <list default="true" id="2b17b81e-3e24-4cf6-9007-df4d9df4df30" name="Changes" comment="">
      <change afterPath="$PROJECT_DIR$/components/footer.php" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/includes/globals.php" beforeDir="false" afterPath="$PROJECT_DIR$/includes/globals.php" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/components/recent.php" beforeDir="false" afterPath="$PROJECT_DIR$/components/recent.php" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/index.php" beforeDir="false" afterPath="$PROJECT_DIR$/index.php" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/viewpaste.php" beforeDir="false" afterPath="$PROJECT_DIR$/viewpaste.php" afterDir="false" />
    </list>
@@ -30,20 +31,21 @@
    <option name="hideEmptyMiddlePackages" value="true" />
    <option name="showLibraryContents" value="true" />
  </component>
  <component name="PropertiesComponent">{
  &quot;keyToString&quot;: {
    &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
    &quot;last_opened_file_path&quot;: &quot;/Users/alyx/PhpstormProjects/wastebin&quot;,
    &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
    &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
    &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
    &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
    &quot;nodejs_package_manager_path&quot;: &quot;npm&quot;,
    &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
  <component name="PropertiesComponent"><![CDATA[{
  "keyToString": {
    "RunOnceActivity.ShowReadmeOnStart": "true",
    "last_opened_file_path": "/Users/alyx/PhpstormProjects/wastebin/components",
    "node.js.detected.package.eslint": "true",
    "node.js.detected.package.tslint": "true",
    "node.js.selected.package.eslint": "(autodetect)",
    "node.js.selected.package.tslint": "(autodetect)",
    "nodejs_package_manager_path": "npm",
    "vue.rearranger.settings.migration": "true"
  }
}</component>
}]]></component>
  <component name="RecentsManager">
    <key name="CopyFile.RECENT_KEYS">
      <recent name="$PROJECT_DIR$/components" />
      <recent name="$PROJECT_DIR$" />
    </key>
  </component>
@@ -64,7 +66,7 @@
      <option name="presentableId" value="Default" />
      <updated>1754973409416</updated>
      <workItem from="1754973410430" duration="2774000" />
      <workItem from="1754976392084" duration="9462000" />
      <workItem from="1754976392084" duration="10289000" />
    </task>
    <servers />
  </component>

components/footer.php

0 → 100644
+5 −0
Original line number Diff line number Diff line
<HR WIDTH="25%">
<FOOTER>
    <CENTER>alyx wijers - akw@en0.io</CENTER>
</FOOTER>
</BODY>
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
    while ($row = mysqli_fetch_assoc($result)) {
        ?>
        <LI>
            <a href="/viewpaste.php?p=<?= $row['slug']; ?>"><i><?= ($row["title"] == "") ? "Untitled" : $row["title"] ?></i></a>
            <a href="/viewpaste.php?p=<?= $row['slug']; ?>"><i><?= ($row["title"] == "") ? "Untitled" : htmlentities($row["title"]) ?></i></a>
            <br>
            <?= $row['timestamp']; ?>
        </LI>
+23 −25
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
include_once 'components/header.php';
require_once 'includes/globals.php';
?>
<BODY>
    <h2>Welcome to Wastebin!</h2>
    <p>It's like Pastebin, but probably HTML3 compliant! I'm not sure, I didn't check.</p>
    <p>Max size 1MB</p>
@@ -11,7 +10,7 @@ require_once 'includes/globals.php';
        <TABLE>
            <TR>
                <TD WIDTH="600">
                Title<INPUT TYPE="TEXT" NAME="TITLE" >
                    Title<INPUT TYPE="TEXT" NAME="title" MAXLENGTH="32">
                    <TEXTAREA NAME="paste" COLS="80" ROWS="35" REQUIRED></TEXTAREA>
                    <BR>
                    <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Paste It!">
@@ -26,7 +25,6 @@ require_once 'includes/globals.php';

        </TABLE>
    </FORM>
<FOOTER>
    made by alyx in php
</FOOTER>
</BODY>
 No newline at end of file
<?php
require 'components/footer.php';
?>
 No newline at end of file
+9 −5
Original line number Diff line number Diff line
@@ -10,9 +10,13 @@ $slug = mysqli_real_escape_string($connection, $_GET['p']);
$sql = "SELECT * FROM `pastes` WHERE `slug` = '$slug'";
$result = mysqli_query($connection, $sql)->fetch_assoc();

if(!$result){
    header("HTTP/1.0 404 Not Found");
    $result["title"]="404 Not Found";
    $error=true;
}

?>
<BODY>
<h2><?= ($result["title"] == "") ? "Untitled" : $result["title"] ?></h2>
<p><?= $result['timestamp']; ?></p>
<TABLE>
@@ -29,7 +33,7 @@ $result = mysqli_query($connection, $sql)->fetch_assoc();
    </TR>

</TABLE>
<FOOTER>
    alyx wijers - akw@en0.io
</FOOTER>
</BODY>
 No newline at end of file

<?php
require 'components/footer.php';
?>
 No newline at end of file