Giter VIP home page Giter VIP logo

moepanel's Introduction

Moe Panel

Admin panel for Uguu and Pomf which makes it easier to remove and blacklist files.

Features

  • Information about number of files uploaded & storage used.
  • Search files uploaded by hash/filename/etc.
  • Blacklist or delete files.
  • Blacklist or delete all files related to IP.
  • Search and manage blacklist database.

More features such as settings will come in a later release.

Screenshots

Screenshot 2021-07-07 at 19 55 58

Screenshot 2021-07-07 at 19 55 25

Screenshot 2021-07-07 at 19 58 39

Screenshot 2021-07-07 at 19 55 40

Installation

First of all you will need a working Uguu/Pomf installation set up, after that it's rather easy.

You need to run the latest version of Uguu/Pomf for this panel to work since it introduced some DB changes!

Clone the repo

git clone https://github.com/pomf/moepanel

Edit the moepanel/static/php/settings.inc.php file

<?php

//define('MOE_DB_CONN', 'mysql:unix_socket=/tmp/mysql.sock;dbname=pomf');
define('MOE_DB_CONN', 'sqlite:/path/to/your/uguu/or/pomf/db.sq3');

/**
 * PDO database login credentials
 */

/** @param string POMF_DB_NAME Database username */
define('MOE_DB_USER', null);
/** @param string POMF_DB_PASS Database password */
define('MOE_DB_PASS', null);

/**
 * 'MOE_ROOT' - Root location for the Moe Panel
 * 'FILES_ROOT' - Location where uploaded files for Uguu/Pomf are stored
 * 'PU_NAME' - Pomf/uguu instance name
 * 'PU_ADDRESS' - Pomf/uguu address/[sub]domain
 * 'PU_URL' - URL where Pomf/Uguu serves files from
 * 'MOE_URL' - URL for Moe Panel
 */
define('MOE_ROOT', '/var/www/moepanel/');
define('FILES_ROOT', '/var/www/files/');
define('PU_NAME', 'Uguu');
define('PU_ADDRESS', 'uguu.se');
define('PU_SERVE_URL', 'https://a.uguu.se/');
define('MOE_URL', 'https://moepanel.uguu.se');

Edit gen_pw.php and replace YOURPASSWORDHERE with a password of your liking.

<?php
$lol = password_hash("YOURPASSWORDHERE", PASSWORD_BCRYPT);
echo $lol;

then execute the file and copy the output.

php gen_pw.php

Run make

cd /path/to/moe
make

Insert your user into your DB.

sqlite3 /var/www/db/your_pomf_db.sq3
INSERT INTO accounts VALUES(1,'[email protected]','PASSWORD_HASH_FROM_ABOVE',1);

Then configure your webserver and PHP to serve from dist/ and you're good to go!

moepanel's People

Contributors

nokonoko avatar st3rv04ka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.