-
Notifications
You must be signed in to change notification settings - Fork 14
How To Update
Sadly this isnt possible. You can copy most of the config file over to the new version but so much has changed it would take too long to type out how to copy details over. But as in version 1.5 all was in the config file it should be easy to copy text from one to the newer one.
- Download the files "bot1.php", "bot2.php", "bot3.php", "bot4.php", "index.php", "php/dbconnect.php"
- Remove all files from the website (Nothing should be there!)
- Upload a fresh install of 1.5
- Open up "Template/config.php" Then open up the files you downloaded above.
- Setup the things in config.php and use the files you downloaded from a past version to copy the required details
- Then save config.php and all should be working
- Open up these files: "bot1.php", "bot2.php", "bot3.php", "bot4.php", "index.php", and "todolist.php"
- On all bot files (1-4) edit lines "14" to "22" and replace the all of it with:
#################
<?php
if(!empty($_POST['lobby-stop'])) { #Watch if the button is pressed
$ssh->exec('killall -9 node'); #Execution in SSH
}
if(!empty($_POST['lobby-restart'])) { #Watch if the button is pressed
$ssh->exec('cd /folder; node bot.js'); #Execution in SSH
}
?>
#################
- Change the bot directory back to what you used before (Edit "folder")
- Do that for all bot files (1 though 4)
- On bot files 1 though 4 go to line "101" and make a new line (removing all spaces)
- Paste this code there:
#################
<li>
<a href="bugs.php">
<i class="fas fa-bug"></i>
<p>Bugs</p>
</a>
</li>
#################
- Repeate this for the other bot files.
- Open file "Index.php", and "todolist.php"
- Go to lines "78" and make a new line (removing all spaces)
- Paste in this code:
#################
<li>
<a href="bugs.php">
<i class="fas fa-bug"></i>
<p>Bugs</p>
</a>
</li>
#################
- Repeate this for both files.
- Save all files.
In the first version of DiscordPanel there weas just ToDOList but we have now added a bug area. So we will need to uplkoad the table to the current SQL for the to-do-list.
- Go to the sql database in a thing like phpmyadmin
- Locate the database you have for DiscordPanel
- Click "Import"
- Locate the SQL file "Update/Sql/bugssql.sql" and upload it (Clicking "GO")
- This should then be done!
- Go to the file "bug/dbconnect.php" and enter the same login details for the database that "php/dbconnect.php" will have
- Save and test!
As long as you've set up the panel right with SQL you should be able to click on the “Bugs” link on the side navbar and the Bugs page will open Click on “Enter bug here...” Then write something on the todo list there Click on “Submit” You should get an alert if it works
Go to the Bug page Under the item on the Bug page, there will be a text box with a green tick next to it Write the new detail in that text box then click the tick If successful an alert will popup
There are two ways to do this… Go to the main (Home) page and click on the red “-” logo next to the item you want to remove the widget If successful an alert will popup Or Go to the Bugs page Click the red “-” logo next to the item you want to remove If successful an alert will popup
DiscordPanel Version 1.2 Donate to keep development active at PayPal.me/braderstm Add me on discord for a small amount of support: BradersTheKiller#3854 Join the official discord support server for DiscordPanel: https://discord.gg/q2RDufd
© 2018 BradersTheKiller & DBM Mods