Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'config.php';
- ?>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Aichan's Computercraft webeditor (Based on ACE)</title>
- <style type="text/css" media="screen">
- #editor {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- }
- </style>
- </head>
- <body>
- <div id="editor"><?php
- if(isset($_GET['id']) && isset($_GET['name'])) {
- $path = $base_path . stripShit($_GET['id']) . "/" . stripShit($_GET['name']);
- echo file_get_contents($path);
- }
- ?></div>
- <script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="commands.js" type="text/javascript" charset="utf-8"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement