Skip to content

Commit 3da5012

Browse files
authored
Merge pull request #1 from 39ff/dev
First Release
2 parents 6527a34 + 6e2c958 commit 3da5012

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+7043
-0
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
###> symfony/framework-bundle ###
3+
/.env.local
4+
/.env.local.php
5+
/.env.*.local
6+
/config/secrets/prod/prod.decrypt.private.php
7+
/public/bundles/
8+
/var/
9+
/vendor/
10+
###< symfony/framework-bundle ###
11+
12+
/.idea

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,20 @@
11
# squidmin
22
next generation squid user-management WebUI alternative proxymin,Squid Users Manager
3+
4+
![index](https://user-images.githubusercontent.com/7544687/79716113-a3db6000-8310-11ea-8f53-3f512e02aa46.PNG)
5+
6+
7+
## Pre requirements
8+
- Make sure squid is compiled with --enable-basic-auth-helpers=DB option.
9+
- Use MySQL driver settings in the squid.conf file
10+
https://wiki.squid-cache.org/ConfigExamples/Authenticate/Mysql
11+
12+
## Installation
13+
PHP7+
14+
15+
16+
## Todo
17+
- [x] Basic User Management
18+
- [ ] Add Authorization
19+
- [ ] Customize ACL Rules
20+
- [ ] Documentation

bin/console

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
use App\Kernel;
5+
use Symfony\Bundle\FrameworkBundle\Console\Application;
6+
use Symfony\Component\Console\Input\ArgvInput;
7+
use Symfony\Component\ErrorHandler\Debug;
8+
9+
if (!in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
10+
echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.PHP_SAPI.' SAPI'.PHP_EOL;
11+
}
12+
13+
set_time_limit(0);
14+
15+
require dirname(__DIR__).'/vendor/autoload.php';
16+
17+
if (!class_exists(Application::class)) {
18+
throw new LogicException('You need to add "symfony/framework-bundle" as a Composer dependency.');
19+
}
20+
21+
$input = new ArgvInput();
22+
if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {
23+
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);
24+
}
25+
26+
if ($input->hasParameterOption('--no-debug', true)) {
27+
putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
28+
}
29+
30+
require dirname(__DIR__).'/config/bootstrap.php';
31+
32+
if ($_SERVER['APP_DEBUG']) {
33+
umask(0000);
34+
35+
if (class_exists(Debug::class)) {
36+
Debug::enable();
37+
}
38+
}
39+
40+
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
41+
$application = new Application($kernel);
42+
$application->run($input);

composer.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"type": "project",
3+
"license": "proprietary",
4+
"require": {
5+
"php": "^7.2.5",
6+
"ext-ctype": "*",
7+
"ext-iconv": "*",
8+
"api-platform/api-pack": "^1.2",
9+
"doctrine/doctrine-migrations-bundle": "^2.1",
10+
"easycorp/easyadmin-bundle": "^2.3",
11+
"symfony/console": "5.0.*",
12+
"symfony/dotenv": "5.0.*",
13+
"symfony/flex": "^1.3.1",
14+
"symfony/framework-bundle": "5.0.*",
15+
"symfony/maker-bundle": "^1.15",
16+
"symfony/yaml": "5.0.*"
17+
},
18+
"require-dev": {
19+
},
20+
"config": {
21+
"preferred-install": {
22+
"*": "dist"
23+
},
24+
"sort-packages": true
25+
},
26+
"autoload": {
27+
"psr-4": {
28+
"App\\": "src/"
29+
}
30+
},
31+
"autoload-dev": {
32+
"psr-4": {
33+
"App\\Tests\\": "tests/"
34+
}
35+
},
36+
"replace": {
37+
"paragonie/random_compat": "2.*",
38+
"symfony/polyfill-ctype": "*",
39+
"symfony/polyfill-iconv": "*",
40+
"symfony/polyfill-php72": "*",
41+
"symfony/polyfill-php71": "*",
42+
"symfony/polyfill-php70": "*",
43+
"symfony/polyfill-php56": "*"
44+
},
45+
"scripts": {
46+
"auto-scripts": {
47+
"cache:clear": "symfony-cmd",
48+
"assets:install %PUBLIC_DIR%": "symfony-cmd"
49+
},
50+
"post-install-cmd": [
51+
"@auto-scripts"
52+
],
53+
"post-update-cmd": [
54+
"@auto-scripts"
55+
]
56+
},
57+
"conflict": {
58+
"symfony/symfony": "*"
59+
},
60+
"extra": {
61+
"symfony": {
62+
"allow-contrib": false,
63+
"require": "5.0.*"
64+
}
65+
}
66+
}

0 commit comments

Comments
 (0)