You've already forked OpenShorte.old
Added URL redirect support directly in management panel
Added buttons that automatically redirects the user to the corresponding URL, in a new page. Modified css and javascript accordingly.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<body>
|
||||
<button onclick="logout()">Logout</button>
|
||||
<div class="urlList">
|
||||
<?php
|
||||
<?php
|
||||
if ( $result->rowCount ( ) == 0 ) {
|
||||
echo ( "You have not created any URL yet.<br>" );
|
||||
}
|
||||
@@ -30,7 +30,7 @@
|
||||
$rows = $result->fetchAll ( PDO::FETCH_ASSOC );
|
||||
foreach ( $rows as $row ) {
|
||||
echo ( "\t\t\t<div class=\"urlContainer\">\n" );
|
||||
echo ( "\t\t\t\t<div class=\"urlId\">" . $row [ 'ID' ] . "</div>\n" );
|
||||
echo ( "\t\t\t\t<div class=\"urlId\"><button onclick=\"window.open('" . $config [ 'installation_path' ] . "/go/" . $row [ 'ID' ] . "', '_blank');\">" . $row [ 'ID' ] . "</button></div>\n" );
|
||||
echo ( "\t\t\t\t<input type=\"text\" class=\"urlLink\" value=\"" . $row [ 'URL' ] . "\">\n" );
|
||||
echo ( "\t\t\t\t<div class=\"urlControl\" style=\"display: none;\">\n" );
|
||||
echo ( "\t\t\t\t\t<button><i class=\"fas fa-check\"></i></button>\n" );
|
||||
@@ -45,7 +45,7 @@
|
||||
<button onclick="insertNewURL()">Insert new URL</button><br>
|
||||
<div id="responsetext"></div>
|
||||
<script>
|
||||
var script_name = "<?=$config['installation_path']?>";
|
||||
var script_name = "<?=$config['installation_path']?>";
|
||||
</script>
|
||||
<script src="<?=$config['installation_path']?>/lib/js/manage.js"></script>
|
||||
<script src="<?=$config['installation_path']?>/lib/js/logout.js"></script>
|
||||
|
Reference in New Issue
Block a user