DOWNLOAD OnePanel v0.1 ALPHA Testing - (Smarters, XC licV3 & licV4)

AndyHax

Well-known member
Joined
Jan 5, 2023
Messages
134
Awards
3
Offline
Hi All,

Unfortunately I've not had as much time as I'd have liked so there's some stuff unfinished but I thought I should get an alpha release out before the weekend to allow those keen to test to do so.

Release notes:

Code:
OnePanel v0.1a (*ALPHA*)

Features:
- Automatic DNS - add all your DNS, point your APK and let the panel do the work.
- DNS memory - store connections securely in the database for an instant connection next time the user connects.
- Femto Support - your APK should be modified to point to YOURURL/onepanel/femto/ (no /api on the end)
- Smarters support - your APK should be modified to point to YOURURL/onepanel/smarters/ (no /api on the end)
- XCIPTV <= 725 (licV3) Support - your APK should be modified to point to YOURURL/onepanel/xciptv/ (no /api on the end)
- XCIPTV > 725 (licV4) Support - your APK should be modified to point to YOURURL/onepanel/xciptv/ (no /api on the end)
- ANY hardcoded app can be made multi-dns with this panel, just point to YOURURL/onepanel/forward/ (to forwards the requests - try this first) or YOURURL/onepanel/proxy/ (to proxy the requests)


IMPORTANT NOTES - please read:
- I hope it goes without saying that this is an ALPHA release with known and unknown bugs, and as such should not yet be used in production environments.
- There are some licV4 APKs I've seen which expect the data in a slightly different format to what is implemented (some need the "ort_settings" paramater as part of the json object, some need it as an escaped string and some need it as an encrypted string) - I'm working on improving compatibility but need more working APKs.
- This should be installed on an Apache server, nginx/LiteSpeed etc will not honour the .htaccess files needed for rewrites/redirects - There's no reason it shouldn't work on nginx/LiteSpeed but you will have to analyse the .htaccess files and recreate the rewrite rules. I'll look to improve compatibility with these in the future
- The installer page will build the database and generate a secure password - Please make a note of this password as if you navigate away form the login page this will be lost forever and you will need to reinstall OnePanel
- Some issues were reported regarding the Femto compatibility of my separate Femto panbel, Femto is working for me but the issues have not been investigated so may or may not work for you.
- There are several features that I had planned to implement which aren't fully conmplete in this initial release
    - announcements & messages in XCIPTV don't work
    - VPN may work for smarters if the uploaded VPN files include embedded authentication, VPN will not work for XCIPTV yet, VPN on the whole is untested and will be looked at next.
    - Intro should work fine for any Smarters version that point to the API for the intro video - Generally XC intros are embedded into the APK so won't pick this up.
- Each app has the option to proxy portal requests through the panel. Ideally this should be disabled but can be enabled if forwarding the requests is not working - in short, try with it disabled first! Only API calls are proxied, streaming will be direct between the portal and the user.
- As a developer, it is very difficult to fix bugs without being able to recreate them yourself - so you may be required to share your APK/DNS/login details if you want a bug fixed.


Installation instructions
- Copy the onepanel folder to your server
- Create a blank MySQL database
- Add thee database details to includes/db.php
- Open the URL you have copied it to and you should be walked through the installation
- The web user should have write access to the following subdirectories
    /ad-images
    /intro-videos
    /ovpn-files
    /smarters/tmp

Panel has been uploaded to the following Telegram channel, please provide feedback via this forum post if possible to keep everything together

 

Gaz2909

Well-known member
Joined
May 19, 2021
Messages
179
Awards
4
Offline
Added to buyfast hosting and so far no luck on getting smarters and xciptv working
 

AndyHax

Well-known member
Joined
Jan 5, 2023
Messages
134
Awards
3
Offline
Added to buyfast hosting and so far no luck on getting smarters and xciptv working
I can help but I’ll need a bit more info. Give me a shout on telegram if you don’t want to post details publcally
 

PROFESSOR X

Active member
Joined
May 15, 2021
Messages
105
Awards
3
Offline
Can u post example of edited db file not working at all for me maybe I'm putting local host wrong or something. Thanks
 

AfterLife

Well-known member
VIP Member
Joined
May 15, 2021
Messages
1,123
Awards
4
Online
Hi All,

Unfortunately I've not had as much time as I'd have liked so there's some stuff unfinished but I thought I should get an alpha release out before the weekend to allow those keen to test to do so.

Release notes:

Code:
OnePanel v0.1a (*ALPHA*)

Features:
- Automatic DNS - add all your DNS, point your APK and let the panel do the work.
- DNS memory - store connections securely in the database for an instant connection next time the user connects.
- Femto Support - your APK should be modified to point to YOURURL/onepanel/femto/ (no /api on the end)
- Smarters support - your APK should be modified to point to YOURURL/onepanel/smarters/ (no /api on the end)
- XCIPTV <= 725 (licV3) Support - your APK should be modified to point to YOURURL/onepanel/xciptv/ (no /api on the end)
- XCIPTV > 725 (licV4) Support - your APK should be modified to point to YOURURL/onepanel/xciptv/ (no /api on the end)
- ANY hardcoded app can be made multi-dns with this panel, just point to YOURURL/onepanel/forward/ (to forwards the requests - try this first) or YOURURL/onepanel/proxy/ (to proxy the requests)


IMPORTANT NOTES - please read:
- I hope it goes without saying that this is an ALPHA release with known and unknown bugs, and as such should not yet be used in production environments.
- There are some licV4 APKs I've seen which expect the data in a slightly different format to what is implemented (some need the "ort_settings" paramater as part of the json object, some need it as an escaped string and some need it as an encrypted string) - I'm working on improving compatibility but need more working APKs.
- This should be installed on an Apache server, nginx/LiteSpeed etc will not honour the .htaccess files needed for rewrites/redirects - There's no reason it shouldn't work on nginx/LiteSpeed but you will have to analyse the .htaccess files and recreate the rewrite rules. I'll look to improve compatibility with these in the future
- The installer page will build the database and generate a secure password - Please make a note of this password as if you navigate away form the login page this will be lost forever and you will need to reinstall OnePanel
- Some issues were reported regarding the Femto compatibility of my separate Femto panbel, Femto is working for me but the issues have not been investigated so may or may not work for you.
- There are several features that I had planned to implement which aren't fully conmplete in this initial release
    - announcements & messages in XCIPTV don't work
    - VPN may work for smarters if the uploaded VPN files include embedded authentication, VPN will not work for XCIPTV yet, VPN on the whole is untested and will be looked at next.
    - Intro should work fine for any Smarters version that point to the API for the intro video - Generally XC intros are embedded into the APK so won't pick this up.
- Each app has the option to proxy portal requests through the panel. Ideally this should be disabled but can be enabled if forwarding the requests is not working - in short, try with it disabled first! Only API calls are proxied, streaming will be direct between the portal and the user.
- As a developer, it is very difficult to fix bugs without being able to recreate them yourself - so you may be required to share your APK/DNS/login details if you want a bug fixed.


Installation instructions
- Copy the onepanel folder to your server
- Create a blank MySQL database
- Add thee database details to includes/db.php
- Open the URL you have copied it to and you should be walked through the installation
- The web user should have write access to the following subdirectories
    /ad-images
    /intro-videos
    /ovpn-files
    /smarters/tmp

Panel has been uploaded to the following Telegram channel, please provide feedback via this forum post if possible to keep everything together

*** Hidden text: cannot be quoted. ***
Thank you pal I will test with my 803 and let you know if it works without crashing pal
 

AndyHax

Well-known member
Joined
Jan 5, 2023
Messages
134
Awards
3
Offline
Can u post example of edited db file not working at all for me maybe I'm putting local host wrong or something. Thanks
PHP:
<?php
ini_set("display_errors", 0);
error_reporting(0);
//Add database details below:
$host = "localhost"; //<-- mysql database host, usually localhost if it lives on the same server
$username = "andy"; //<-- username of user that has permission to the new database you just created
$password = "P@ssW0rd"; //<-- password of user that has permission to the new database you just created
$dbname = "onepanel";//<-- name of database you just created

As above, the database needs to be created manually first and then details plugged into the file
 

AndyHax

Well-known member
Joined
Jan 5, 2023
Messages
134
Awards
3
Offline
Sorry I was rushing earlier and made a mess of the installer script.

New version posted in the telegram channel.... You can either re-download and re-install fresh or run the following script on your DB to add the missing table:

SQL:
CREATE TABLE dns_sessions (
  id int(11) NOT NULL AUTO_INCREMENT,
  dns_id int(11) DEFAULT NULL,
  date_added datetime DEFAULT NULL,
  last_used datetime DEFAULT NULL,
  username varchar(100) DEFAULT NULL,
  password_hash varchar(255) DEFAULT NULL,
  PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 

AfterLife

Well-known member
VIP Member
Joined
May 15, 2021
Messages
1,123
Awards
4
Online
Sorry I was rushing earlier and made a mess of the installer script.

New version posted in the telegram channel.... You can either re-download and re-install fresh or run the following script on your DB to add the missing table:

SQL:
CREATE TABLE dns_sessions (
  id int(11) NOT NULL AUTO_INCREMENT,
  dns_id int(11) DEFAULT NULL,
  date_added datetime DEFAULT NULL,
  last_used datetime DEFAULT NULL,
  username varchar(100) DEFAULT NULL,
  password_hash varchar(255) DEFAULT NULL,
  PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
hi pal i have added a dns to the panel for me to test xciptv 803 and it dont see a dns there all it see's is a fake dns called main and if i select this and try to login it fails pal
 

AndyHax

Well-known member
Joined
Jan 5, 2023
Messages
134
Awards
3
Offline
hi pal i have added a dns to the panel for me to test xciptv 803 and it dont see a dns there all it see's is a fake dns called main and if i select this and try to login it fails pal

The DNS that pops up is the panel, the panel then distributes it to the correct DNS - that's the plan anyway. So users don't select a DNS they just enter their login and the panel directs the requests - so MAIN is right in that respect.

It's a similar concept to the ANS mega panel

Have you added the missing table? that would prevent a login
 

AfterLife

Well-known member
VIP Member
Joined
May 15, 2021
Messages
1,123
Awards
4
Online
The DNS that pops up is the panel, the panel then distributes it to the correct DNS - that's the plan anyway. So users don't select a DNS they just enter their login and the panel directs the requests - so MAIN is right in that respect.

Have you added the missing table? that would prevent a login
i have uploaded your new files pal as i didnt upload then before you fixed the missing db table it shows the dns in the table but the app isnt connecting just says login failed error message pal
 

AndyHax

Well-known member
Joined
Jan 5, 2023
Messages
134
Awards
3
Offline
i have uploaded your new files pal as i didnt upload then before you fixed the missing db table
OK so the dns_sessions table exists in the database? Not really sure what else could be causing it without having a look.
 

AfterLife

Well-known member
VIP Member
Joined
May 15, 2021
Messages
1,123
Awards
4
Online
OK so the dns_sessions table exists in the database? Not really sure what else could be causing it without having a look.
it works if i put the dns in the php file it just dont seem to want to pull the dns from the db table yes the dns table is setup
 

AndyHax

Well-known member
Joined
Jan 5, 2023
Messages
134
Awards
3
Offline
it works if i put the dns in the php file it just dont seem to want to pull the dns from the db table yes the dns table is setup
Is that the ApiIPTV.php file? if so the issue must be with the DNS forwarder as that would be bypassing it.

Try yoururl/onepanel/forward/player_api.php?username=USERNAMEHERE&password=PASSWORDHERE in a browser - if that doesn't forward you to your DNS then that's where the problem likely is. The username and password need to be correct.
 

AfterLife

Well-known member
VIP Member
Joined
May 15, 2021
Messages
1,123
Awards
4
Online
Is that the ApiIPTV.php file? if so the issue must be with the DNS forwarder as that would be bypassing it.

Try yoururl/onepanel/forward/player_api.php?username=USERNAMEHERE&password=PASSWORDHERE in a browser - if that doesn't forward you to your DNS then that's where the problem likely is. The username and password need to be correct.
That's pulling the dns is it ment to be missing the http:// at the start of the dns pal ?
 

AndyHax

Well-known member
Joined
Jan 5, 2023
Messages
134
Awards
3
Offline
That's pulling the dns is it ment to be missing the http:// at the start of the dns pal ?
if it's redirecting you through to your DNS and showing you the account details in the browser then that should be fine - it should have http:// or https:// yeah.

In that case I'm not sure what could be up. I love testing...
 

AfterLife

Well-known member
VIP Member
Joined
May 15, 2021
Messages
1,123
Awards
4
Online
if it's redirecting you through to your DNS and showing you the account details in the browser then that should be fine - it should have http:// or https:// yeah.

In that case I'm not sure what could be up. I love testing...
It don't have the http in the dns even though I have added it pal I'll post it in here what it looks like
 
Top