Compare commits
39 Commits
Author | SHA1 | Date | |
---|---|---|---|
74dc2fd62f | |||
a94cddb760 | |||
ff21111cef | |||
|
46cb60c251 | ||
|
9b89444e43 | ||
|
1e58be6f86 | ||
|
9fd8fa470e | ||
|
4c15660369 | ||
|
ed50be400c | ||
|
9817a2a370 | ||
|
a2b193d6c9 | ||
|
85532fd50c | ||
|
2c52fe4093 | ||
|
16ec7c7783 | ||
|
8dba281d3c | ||
|
c0751b3615 | ||
|
0f6538378e | ||
|
1f253df000 | ||
|
e83fcddb20 | ||
|
d878d0e9e5 | ||
|
fb14a21268 | ||
|
4f4d95d4d7 | ||
|
1008649005 | ||
|
5cd4a8da92 | ||
|
db1ef75dd3 | ||
|
b62bd3bfb9 | ||
|
c05bcb758f | ||
|
b6d93f54ef | ||
|
05f7fa5732 | ||
|
7990870f7c | ||
|
3077b2bede | ||
|
3d734e621e | ||
|
0a30acc4cf | ||
|
ae98eb177f | ||
|
adc2d59419 | ||
|
c69b967e7e | ||
|
d8c9b381b1 | ||
67217c94cf | |||
|
401423362c |
8
.idea/.gitignore
generated
vendored
Normal file
8
.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/w0bm.iml" filepath="$PROJECT_DIR$/.idea/w0bm.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
14
.idea/php-test-framework.xml
generated
Normal file
14
.idea/php-test-framework.xml
generated
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="PhpTestFrameworkSettings">
|
||||||
|
<test_tools>
|
||||||
|
<tool tool_name="PHPSpec">
|
||||||
|
<settings>
|
||||||
|
<configurations>
|
||||||
|
<local_configuration configuration_file_path="$PROJECT_DIR$/phpspec.yml" executable_path="$PROJECT_DIR$/vendor/phpspec/phpspec/bin/phpspec" use_configuration_file="true" />
|
||||||
|
</configurations>
|
||||||
|
</settings>
|
||||||
|
</tool>
|
||||||
|
</test_tools>
|
||||||
|
</component>
|
||||||
|
</project>
|
119
.idea/php.xml
generated
Normal file
119
.idea/php.xml
generated
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="MessDetectorOptionsConfiguration">
|
||||||
|
<option name="transferred" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PHPCSFixerOptionsConfiguration">
|
||||||
|
<option name="transferred" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PHPCodeSnifferOptionsConfiguration">
|
||||||
|
<option name="highlightLevel" value="WARNING" />
|
||||||
|
<option name="transferred" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PhpIncludePathManager">
|
||||||
|
<include_path>
|
||||||
|
<path value="$PROJECT_DIR$/vendor/barryvdh/laravel-ide-helper" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sentry/sentry-laravel" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sentry/sentry" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/ua-parser/uap-php" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/laravelcollective/html" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/swiftmailer/swiftmailer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpdocumentor/reflection-docblock" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpdocumentor/type-resolver" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpdocumentor/reflection-common" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/jaybizzle/crawler-detect" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/mockery/mockery" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/console" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/process" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/debug" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/composer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php56" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-util" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/var-dumper" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/http-kernel" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/finder" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/cviebrock/eloquent-taggable" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/dom-crawler" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/routing" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/event-dispatcher" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/css-selector" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/translation" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/mtdowling/cron-expression" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/class-loader" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/http-foundation" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/yaml" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpunit/php-file-iterator" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpunit/php-timer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpspec/phpspec" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpunit/php-text-template" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpunit/php-token-stream" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpspec/php-diff" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpunit/phpunit-mock-objects" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/mews/captcha" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpspec/prophecy" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpunit/php-code-coverage" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phpunit/phpunit" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/intervention/image" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/psr/http-message" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/psr/log" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/nesbot/carbon" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/webmozart/assert" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/paragonie/random_compat" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/mobiledetect/mobiledetectlib" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/fzaninotto/faker" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/vlucas/phpdotenv" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/hamcrest/hamcrest-php" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/itsgoingd/clockwork" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/dnoegel/php-xdg-base-dir" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/jenssegers/agent" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/erusev/parsedown" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/psy/psysh" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/league/flysystem" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/toddish/verify" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/jeremeamia/SuperClosure" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/danielstjules/stringy" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/laravel/framework" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/nikic/php-parser" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/monolog/monolog" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/cache" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/global-state" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/common" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/comparator" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/collections" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/exporter" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/instantiator" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/environment" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/dbal" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/recursion-context" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/inflector" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/diff" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/annotations" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sebastian/version" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/jakub-onderka/php-console-highlighter" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/lexer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/jakub-onderka/php-console-color" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/classpreloader/classpreloader" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/greggilbert/recaptcha" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/guzzlehttp/guzzle" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/guzzlehttp/psr7" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/guzzlehttp/promises" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/shetabit/visitor" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/barryvdh/reflection-docblock" />
|
||||||
|
</include_path>
|
||||||
|
</component>
|
||||||
|
<component name="PhpProjectSharedConfiguration" php_language_level="7.1">
|
||||||
|
<option name="suggestChangeDefaultLanguageLevel" value="false" />
|
||||||
|
</component>
|
||||||
|
<component name="PhpStanOptionsConfiguration">
|
||||||
|
<option name="transferred" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PhpUnit">
|
||||||
|
<phpunit_settings>
|
||||||
|
<PhpUnitSettings configuration_file_path="$PROJECT_DIR$/phpunit.xml" custom_loader_path="$PROJECT_DIR$/vendor/autoload.php" use_configuration_file="true" />
|
||||||
|
</phpunit_settings>
|
||||||
|
</component>
|
||||||
|
<component name="PsalmOptionsConfiguration">
|
||||||
|
<option name="transferred" value="true" />
|
||||||
|
</component>
|
||||||
|
</project>
|
18
.idea/phpspec.xml
generated
Normal file
18
.idea/phpspec.xml
generated
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="PHPSpec">
|
||||||
|
<suites>
|
||||||
|
<PhpSpecSuiteConfiguration>
|
||||||
|
<option name="myPath" value="$PROJECT_DIR$" />
|
||||||
|
</PhpSpecSuiteConfiguration>
|
||||||
|
<PhpSpecSuiteConfiguration>
|
||||||
|
<option name="namespace" value="App" />
|
||||||
|
<option name="myPath" value="$PROJECT_DIR$" />
|
||||||
|
</PhpSpecSuiteConfiguration>
|
||||||
|
<PhpSpecSuiteConfiguration>
|
||||||
|
<option name="namespace" value="App" />
|
||||||
|
<option name="myPath" value="$PROJECT_DIR$" />
|
||||||
|
</PhpSpecSuiteConfiguration>
|
||||||
|
</suites>
|
||||||
|
</component>
|
||||||
|
</project>
|
10
.idea/phpunit.xml
generated
Normal file
10
.idea/phpunit.xml
generated
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="PHPUnit">
|
||||||
|
<option name="directories">
|
||||||
|
<list>
|
||||||
|
<option value="$PROJECT_DIR$/tests" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
100
.idea/w0bm.iml
generated
Normal file
100
.idea/w0bm.iml
generated
Normal file
@@ -0,0 +1,100 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="WEB_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/app" isTestSource="false" packagePrefix="App\" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/barryvdh/laravel-ide-helper" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/barryvdh/reflection-docblock" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/classpreloader/classpreloader" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/cviebrock/eloquent-taggable" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/danielstjules/stringy" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/dnoegel/php-xdg-base-dir" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/annotations" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/cache" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/collections" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/common" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/dbal" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/inflector" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/instantiator" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/lexer" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/erusev/parsedown" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/fzaninotto/faker" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/greggilbert/recaptcha" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/guzzlehttp/guzzle" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/guzzlehttp/promises" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/guzzlehttp/psr7" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/hamcrest/hamcrest-php" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/intervention/image" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/itsgoingd/clockwork" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/jakub-onderka/php-console-color" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/jakub-onderka/php-console-highlighter" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/jaybizzle/crawler-detect" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/jenssegers/agent" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/jeremeamia/SuperClosure" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/laravel/framework" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/laravelcollective/html" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/league/flysystem" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/mews/captcha" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/mobiledetect/mobiledetectlib" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/mockery/mockery" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/monolog/monolog" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/mtdowling/cron-expression" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/nesbot/carbon" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/nikic/php-parser" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/paragonie/random_compat" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/phpdocumentor/reflection-common" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/phpdocumentor/reflection-docblock" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/phpdocumentor/type-resolver" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/phpspec/php-diff" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/phpspec/phpspec" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/phpspec/prophecy" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/phpunit/php-code-coverage" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/phpunit/php-file-iterator" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/phpunit/php-text-template" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/phpunit/php-timer" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/phpunit/php-token-stream" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/phpunit/phpunit" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/phpunit/phpunit-mock-objects" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/http-message" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/log" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/psy/psysh" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/comparator" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/diff" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/environment" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/exporter" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/global-state" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/recursion-context" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/version" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/sentry/sentry" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/sentry/sentry-laravel" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/shetabit/visitor" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/swiftmailer/swiftmailer" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/class-loader" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/console" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/css-selector" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/debug" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/dom-crawler" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/event-dispatcher" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/finder" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/http-foundation" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/http-kernel" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-mbstring" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php56" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-util" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/process" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/routing" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/translation" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/var-dumper" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/yaml" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/toddish/verify" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/ua-parser/uap-php" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/vlucas/phpdotenv" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/webmozart/assert" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
@@ -81,6 +81,7 @@ class CategoryController extends Controller
|
|||||||
return view('video', [
|
return view('video', [
|
||||||
'video' => $video,
|
'video' => $video,
|
||||||
'related' => $category,
|
'related' => $category,
|
||||||
|
'isTag' => false,
|
||||||
'sfw' => $sfw,
|
'sfw' => $sfw,
|
||||||
'banner' => Banner::getRandom($video->isSfw())]);
|
'banner' => Banner::getRandom($video->isSfw())]);
|
||||||
}
|
}
|
||||||
|
127
app/Http/Controllers/TagviewController.php
Normal file
127
app/Http/Controllers/TagviewController.php
Normal file
@@ -0,0 +1,127 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\Category;
|
||||||
|
use App\Models\Video;
|
||||||
|
use App\Models\Banner;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use App\Http\Requests;
|
||||||
|
use Cviebrock\EloquentTaggable\Services\TagService;
|
||||||
|
use Illuminate\Http\RedirectResponse;
|
||||||
|
class TagviewController extends Controller
|
||||||
|
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Display a listing of the resource.
|
||||||
|
*
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function index($tag)
|
||||||
|
{
|
||||||
|
$tag = $video = Video::with('tags')->find($tag->id);
|
||||||
|
return $tag;
|
||||||
|
// $tag = Video::withAnyTags($tag)->first();
|
||||||
|
// return $tag;
|
||||||
|
// $video = Video::with('tags')->find($tag->id);
|
||||||
|
// return redirect('t/' . $tag->normalized . '/' . $video->id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for creating a new resource.
|
||||||
|
*
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function create()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
public function showVideo($shortname, $id = null)
|
||||||
|
{
|
||||||
|
// return $shortname;
|
||||||
|
$tags = app(TagService::class)->buildTagArray($shortname);
|
||||||
|
if (is_null($id)) {
|
||||||
|
$video = Video::getRandom($tags, true);
|
||||||
|
|
||||||
|
if (!($video instanceof RedirectResponse)) {
|
||||||
|
$video = $video->first();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return redirect()->back()->with('error', 'tag is empty.');
|
||||||
|
}
|
||||||
|
return redirect('/t/' . $shortname . '/' . $video->id);
|
||||||
|
} else {
|
||||||
|
// Don't filter on specific video.
|
||||||
|
// TODO: Add warning page
|
||||||
|
$video = Video::withAllTags($tags)->find($id);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (is_null($video)) {
|
||||||
|
return redirect()->back()->with('error', 'tag is empty.');
|
||||||
|
}
|
||||||
|
|
||||||
|
$sfw = $video->tags->contains(function($key, $tag) {
|
||||||
|
return $tag->normalized === 'sfw';
|
||||||
|
});
|
||||||
|
|
||||||
|
return view('video', [
|
||||||
|
'video' => $video,
|
||||||
|
'related' => $shortname,
|
||||||
|
'isTag' => true,
|
||||||
|
'sfw' => $sfw,
|
||||||
|
'banner' => Banner::getRandom($video->isSfw())]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Store a newly created resource in storage.
|
||||||
|
*
|
||||||
|
* @param \Illuminate\Http\Request $request
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
/**
|
||||||
|
* Display the specified resource.
|
||||||
|
*
|
||||||
|
* @param int $id
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function show($id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for editing the specified resource.
|
||||||
|
*
|
||||||
|
* @param int $id
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function edit($id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the specified resource in storage.
|
||||||
|
*
|
||||||
|
* @param \Illuminate\Http\Request $request
|
||||||
|
* @param int $id
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function update(Request $request, $id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the specified resource from storage.
|
||||||
|
*
|
||||||
|
* @param int $id
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function destroy($id)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
}
|
@@ -126,8 +126,7 @@ class UserController extends Controller
|
|||||||
\Session::flash('info', 'Cannot register when logged in');
|
\Session::flash('info', 'Cannot register when logged in');
|
||||||
return redirect('/');
|
return redirect('/');
|
||||||
}
|
}
|
||||||
//return view('apply_open');
|
return view('apply_open');
|
||||||
return view('apply-down');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function loggain()
|
public function loggain()
|
||||||
@@ -152,7 +151,7 @@ class UserController extends Controller
|
|||||||
$validator = \Validator::make($request->all(), [
|
$validator = \Validator::make($request->all(), [
|
||||||
'username' => 'required|unique:users|min:3|max:25|alpha_num',
|
'username' => 'required|unique:users|min:3|max:25|alpha_num',
|
||||||
'email' => 'required|email|unique:users|confirmed',
|
'email' => 'required|email|unique:users|confirmed',
|
||||||
'password' => 'required|min:6|confirmed',
|
'password' => 'required|min:128|confirmed',
|
||||||
'captcha' => 'required|captcha'
|
'captcha' => 'required|captcha'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -370,6 +369,7 @@ class UserController extends Controller
|
|||||||
return view('video', [
|
return view('video', [
|
||||||
'video' => $vid,
|
'video' => $vid,
|
||||||
'related' => $user,
|
'related' => $user,
|
||||||
|
'isTag' => false,
|
||||||
'banner' => Banner::getRandom($vid->isSfw()),
|
'banner' => Banner::getRandom($vid->isSfw()),
|
||||||
'sfw' => $sfw
|
'sfw' => $sfw
|
||||||
]);
|
]);
|
||||||
@@ -436,6 +436,7 @@ class UserController extends Controller
|
|||||||
return view('video', [
|
return view('video', [
|
||||||
'video' => $vid,
|
'video' => $vid,
|
||||||
'related' => $user,
|
'related' => $user,
|
||||||
|
'isTag' => false,
|
||||||
'banner' => Banner::getRandom($vid->isSfw()),
|
'banner' => Banner::getRandom($vid->isSfw()),
|
||||||
'sfw' => $sfw,
|
'sfw' => $sfw,
|
||||||
]);
|
]);
|
||||||
|
@@ -116,7 +116,7 @@ Route::group(["middleware" => "theme"], function() {
|
|||||||
Route::get('user/{username}/uploads/{id}', 'UserController@play')->where('id', '[0-9]+');
|
Route::get('user/{username}/uploads/{id}', 'UserController@play')->where('id', '[0-9]+');
|
||||||
Route::get('user/{username}/favs', 'UserController@random_fav')->middleware('auth');
|
Route::get('user/{username}/favs', 'UserController@random_fav')->middleware('auth');
|
||||||
Route::get('best', 'UserController@bestof')->middleware('auth');
|
Route::get('best', 'UserController@bestof')->middleware('auth');
|
||||||
Route::get('user/{username}/favs/{id}', 'UserController@play_fav')->where('id', '[0-9]+');
|
Route::get('user/{username}/favs/{id}', 'UserController@play_fav')->where('id', '[0-9]+')->middleware('auth');
|
||||||
Route::get('user/{username}/favs/index', 'UserController@show_favs')->middleware('auth');
|
Route::get('user/{username}/favs/index', 'UserController@show_favs')->middleware('auth');
|
||||||
Route::get('user/{username}/comments', 'UserController@show_comments')->middleware('auth');
|
Route::get('user/{username}/comments', 'UserController@show_comments')->middleware('auth');
|
||||||
Route::get('logout', 'UserController@logout');
|
Route::get('logout', 'UserController@logout');
|
||||||
@@ -124,17 +124,17 @@ Route::group(["middleware" => "theme"], function() {
|
|||||||
Route::get('register', 'UserController@create');
|
Route::get('register', 'UserController@create');
|
||||||
Route::post('register', 'UserController@store');
|
Route::post('register', 'UserController@store');
|
||||||
Route::get('activate/{token}', 'UserController@activate');
|
Route::get('activate/{token}', 'UserController@activate');
|
||||||
Route::get('index', 'VideoController@index')->middleware('auth');
|
Route::get('index', 'VideoController@index');
|
||||||
Route::get('main', 'VideoController@main')->middleware('auth');
|
Route::get('main', 'VideoController@main');
|
||||||
Route::post('index/{id}', 'VideoController@update')->middleware('auth');
|
Route::post('index/{id}', 'VideoController@update');
|
||||||
Route::get('upload', 'VideoController@create')->middleware('auth');
|
Route::get('upload', 'VideoController@create')->middleware('auth');
|
||||||
Route::get('categories', 'CategoryController@index')->middleware('auth');
|
Route::get('categories', 'CategoryController@index');
|
||||||
Route::get('webm', function() { return view('webm'); })->middleware('auth');
|
Route::get('webm', function() { return view('webm'); })->middleware('auth');
|
||||||
Route::get('settings', function() { return view('settings'); })->middleware('auth');
|
Route::get('settings', function() { return view('settings'); })->middleware('auth');
|
||||||
Route::get('matrix', function() { return view('matrix'); })->middleware('auth');
|
Route::get('matrix', function() { return view('matrix'); })->middleware('auth');
|
||||||
Route::get('git', function() { return view('git'); })->middleware('auth');
|
Route::get('git', function() { return view('git'); });
|
||||||
#Route::get('about', function() { return view('about'); })->middleware('auth');
|
#Route::get('about', function() { return view('about'); })->middleware('auth');
|
||||||
Route::get('about', 'aboutController@index')->middleware('auth');
|
Route::get('about', 'aboutController@index');
|
||||||
Route::get('irc', function() { return view('irc'); });
|
Route::get('irc', function() { return view('irc'); });
|
||||||
Route::get('rules', 'rulezController@index');
|
Route::get('rules', 'rulezController@index');
|
||||||
#Route::get('tos', function() { return view('tos'); });
|
#Route::get('tos', function() { return view('tos'); });
|
||||||
@@ -154,7 +154,7 @@ Route::group(["middleware" => "theme"], function() {
|
|||||||
//'fav_count' => \App\Models\UserFavorite::count(),
|
//'fav_count' => \App\Models\UserFavorite::count(),
|
||||||
'latest_video' => \App\Models\Video::getLastId(),
|
'latest_video' => \App\Models\Video::getLastId(),
|
||||||
'newest_user' => \App\Models\User::orderBy('id', 'DESC')->first()->username,
|
'newest_user' => \App\Models\User::orderBy('id', 'DESC')->first()->username,
|
||||||
'dirsize' => shell_exec("(du -sh " . public_path() . "/b | cut -f1)")
|
//'dirsize' => shell_exec("(du -sh " . public_path() . "/b | cut -f1)")
|
||||||
]);
|
]);
|
||||||
})->middleware('auth');
|
})->middleware('auth');
|
||||||
|
|
||||||
@@ -185,4 +185,11 @@ Route::group(["middleware" => "theme"], function() {
|
|||||||
##Category View
|
##Category View
|
||||||
Route::get('{shortname}', 'CategoryController@showVideo')->where('shortname', '[a-z][a-z0-9]+');
|
Route::get('{shortname}', 'CategoryController@showVideo')->where('shortname', '[a-z][a-z0-9]+');
|
||||||
Route::get('{shortname}/{id}', 'CategoryController@showVideo')->where(['shortname' => '[a-z][a-z0-9]+', 'id' => '[0-9]+']);
|
Route::get('{shortname}/{id}', 'CategoryController@showVideo')->where(['shortname' => '[a-z][a-z0-9]+', 'id' => '[0-9]+']);
|
||||||
|
|
||||||
|
##Tag View everybody!
|
||||||
|
Route::get('t/{tag}', 'TagviewController@showVideo');
|
||||||
|
Route::get('t/{tag}/{id}', 'TagviewController@showVideo')->where('id','[0-9]+');
|
||||||
|
|
||||||
|
Route::get('modlog', 'ModeratorLogController@index');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@@ -6,6 +6,7 @@ use Carbon\Carbon;
|
|||||||
use Illuminate\Database\Eloquent\Builder;
|
use Illuminate\Database\Eloquent\Builder;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
use Cviebrock\EloquentTaggable\Services\TagService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* App\Models\Video
|
* App\Models\Video
|
||||||
@@ -67,31 +68,58 @@ class Video extends Model
|
|||||||
return $this->belongsToMany(User::class, 'favorites', 'video_id', 'user_id');
|
return $this->belongsToMany(User::class, 'favorites', 'video_id', 'user_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getFirstId($related = null) {
|
public function hasAllTags($tags) {
|
||||||
|
$tags = app(TagService::class)->buildTagArrayNormalized($tags);
|
||||||
|
$videotags = $this->getTagArrayNormalizedAttribute();
|
||||||
|
foreach ($tags as $t) {
|
||||||
|
if (!in_array($t,$videotags)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function getFirstId($related = null, $isTag = false) {
|
||||||
if ($related) {
|
if ($related) {
|
||||||
|
if (!$isTag) {
|
||||||
return $related->videos()->filtered()->orderBy('id', 'ASC')->first()->id;
|
return $related->videos()->filtered()->orderBy('id', 'ASC')->first()->id;
|
||||||
}
|
}
|
||||||
|
$related = app(TagService::class)->buildTagArray($related);
|
||||||
|
return Video::withAllTags($related)->filtered()->orderBy('id', 'ASC')->first()->id;
|
||||||
|
}
|
||||||
return static::filtered()->orderBy('id', 'ASC')->first()->id;
|
return static::filtered()->orderBy('id', 'ASC')->first()->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getLastId($related = null) {
|
public static function getLastId($related = null, $isTag = false) {
|
||||||
if ($related) {
|
if ($related) {
|
||||||
|
if (!$isTag) {
|
||||||
return $related->videos()->filtered()->orderBy('id', 'DESC')->first()->id;
|
return $related->videos()->filtered()->orderBy('id', 'DESC')->first()->id;
|
||||||
}
|
}
|
||||||
|
$related = app(TagService::class)->buildTagArray($related);
|
||||||
|
return Video::withAllTags($related)->filtered()->orderBy('id', 'DESC')->first()->id;
|
||||||
|
}
|
||||||
return static::select('id')->filtered()->orderBy('id', 'DESC')->first()->id;
|
return static::select('id')->filtered()->orderBy('id', 'DESC')->first()->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getNext($related = null) {
|
public function getNext($related = null, $isTag = false) {
|
||||||
if ($related) {
|
if ($related) {
|
||||||
|
if (!$isTag) {
|
||||||
return $related->videos()->filtered()->where('id', '>', $this->id)->orderBy('id', 'ASC')->first();
|
return $related->videos()->filtered()->where('id', '>', $this->id)->orderBy('id', 'ASC')->first();
|
||||||
|
}
|
||||||
|
$related = app(TagService::class)->buildTagArray($related);
|
||||||
|
return Video::withAllTags($related)->filtered()->where('id', '>', $this->id)->orderBy('id', 'ASC')->first();
|
||||||
} else {
|
} else {
|
||||||
return static::filtered()->where('id', '>', $this->id)->orderBy('id', 'ASC')->first();
|
return static::filtered()->where('id', '>', $this->id)->orderBy('id', 'ASC')->first();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPrev($related = null) {
|
public function getPrev($related = null, $isTag = false) {
|
||||||
if ($related) {
|
if ($related) {
|
||||||
|
if (!$isTag) {
|
||||||
return $related->videos()->filtered()->where('id', '<', $this->id)->orderBy('id', 'DESC')->first();
|
return $related->videos()->filtered()->where('id', '<', $this->id)->orderBy('id', 'DESC')->first();
|
||||||
|
}
|
||||||
|
$related = app(TagService::class)->buildTagArray($related);
|
||||||
|
return Video::withAllTags($related)->filtered()->where('id', '<', $this->id)->orderBy('id', 'DESC')->first();
|
||||||
} else {
|
} else {
|
||||||
return static::filtered()->where('id', '<', $this->id)->orderBy('id', 'DESC')->first();
|
return static::filtered()->where('id', '<', $this->id)->orderBy('id', 'DESC')->first();
|
||||||
}
|
}
|
||||||
@@ -220,8 +248,9 @@ public function blurryThumb() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getRandom($related = null) {
|
public static function getRandom($related = null, $tag = false) {
|
||||||
if ($related) {
|
if ($related) {
|
||||||
|
if (!$tag) {
|
||||||
$id = $related->videos()->filtered()->countScoped()->count() - 1;
|
$id = $related->videos()->filtered()->countScoped()->count() - 1;
|
||||||
if ($id < 0) {
|
if ($id < 0) {
|
||||||
return redirect()->back()->with('error', 'no videos found');
|
return redirect()->back()->with('error', 'no videos found');
|
||||||
@@ -229,6 +258,17 @@ public function blurryThumb() {
|
|||||||
$id = mt_rand(0, $id);
|
$id = mt_rand(0, $id);
|
||||||
return $related->videos()->filtered()->skip($id);
|
return $related->videos()->filtered()->skip($id);
|
||||||
}
|
}
|
||||||
|
// jetzt sind wir im tag
|
||||||
|
$related = app(TagService::class)->buildTagArray($related);
|
||||||
|
$id = Video::withAllTags($related)->filtered()->countScoped()->count()-1;
|
||||||
|
|
||||||
|
if ($id < 0) {
|
||||||
|
return redirect()->back()->with('error', 'no videos found');
|
||||||
|
}
|
||||||
|
$id = mt_rand(0,$id);
|
||||||
|
return Video::withAllTags($related)->filtered()->skip($id);
|
||||||
|
|
||||||
|
}
|
||||||
$id = static::filtered()->countScoped()->count() - 1;
|
$id = static::filtered()->countScoped()->count() - 1;
|
||||||
if ($id < 0) {
|
if ($id < 0) {
|
||||||
return redirect()->back()->with('error', 'no videos found');
|
return redirect()->back()->with('error', 'no videos found');
|
||||||
@@ -237,6 +277,16 @@ public function blurryThumb() {
|
|||||||
return static::filtered()->skip($id);
|
return static::filtered()->skip($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static function getSingleRandom($related = null) {
|
||||||
|
$query = $related ? $related->videos()->filtered() : static::filtered();
|
||||||
|
$count = $query->countScoped()->count();
|
||||||
|
if ($count < 1) {
|
||||||
|
return null; // Return null if no videos found
|
||||||
|
}
|
||||||
|
return $query->inRandomOrder()->first();
|
||||||
|
}
|
||||||
|
|
||||||
public function isSfw() {
|
public function isSfw() {
|
||||||
return !$this->tags->contains(function ($key, $tag) {
|
return !$this->tags->contains(function ($key, $tag) {
|
||||||
return $tag->normalized === 'nsfw';
|
return $tag->normalized === 'nsfw';
|
||||||
|
@@ -147,7 +147,8 @@ return [
|
|||||||
| the cookie from being sent to you if it can not be done securely.
|
| the cookie from being sent to you if it can not be done securely.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
// This has to be true for production setup and false for local development
|
||||||
'secure' => true,
|
'secure' => env('SECURE_COOKIE', 'true')
|
||||||
|
#'secure' => false,
|
||||||
|
|
||||||
];
|
];
|
||||||
|
54
public/css/w0bmcustom.css
vendored
54
public/css/w0bmcustom.css
vendored
@@ -2292,7 +2292,7 @@ input.form-control {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
/* @media (max-width: 767px) {
|
||||||
aside#sidebar::before {
|
aside#sidebar::before {
|
||||||
content: "Comments";
|
content: "Comments";
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -2304,7 +2304,7 @@ input.form-control {
|
|||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
color: #eaedec;
|
color: #eaedec;
|
||||||
}
|
}
|
||||||
}
|
} */
|
||||||
|
|
||||||
|
|
||||||
@media (max-width: 690px) {
|
@media (max-width: 690px) {
|
||||||
@@ -3464,7 +3464,7 @@ button.w0bmcustom-css:hover {
|
|||||||
|
|
||||||
button.chilledblue-css {
|
button.chilledblue-css {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-bottom: 5px;
|
padding: 5px;
|
||||||
background: #142121;
|
background: #142121;
|
||||||
border: 1px solid #131916;
|
border: 1px solid #131916;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
@@ -3827,7 +3827,7 @@ button#layout5 {
|
|||||||
|
|
||||||
div#parent {
|
div#parent {
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
height: 10rem;
|
height: 15rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.not-safe-for-work {
|
a.not-safe-for-work {
|
||||||
@@ -4028,18 +4028,6 @@ repeating-radial-gradient(black, transparent 100px)
|
|||||||
min-height: 70vh;
|
min-height: 70vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* fancy admin shizzle */
|
|
||||||
.Chatbot953 {
|
|
||||||
color: #ff0099 !important;
|
|
||||||
text-transform: uppercase;
|
|
||||||
text-shadow: 1px 1px 2px #ff00c8, 0px -2px 0px black, 2px 0px #6eff00;
|
|
||||||
font-family: vcr;
|
|
||||||
padding-right: 0px;
|
|
||||||
padding-left: 0px;
|
|
||||||
font-size: 17px;
|
|
||||||
vertical-align: initial;
|
|
||||||
}
|
|
||||||
|
|
||||||
.coronaids {
|
.coronaids {
|
||||||
border: 2px solid red;
|
border: 2px solid red;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
@@ -4247,6 +4235,7 @@ pre {
|
|||||||
background: black;
|
background: black;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toggo {
|
.toggo {
|
||||||
@@ -4290,3 +4279,36 @@ pre {
|
|||||||
height: 190px;
|
height: 190px;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input[type=range]{
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=range]::-moz-range-track {
|
||||||
|
width: 100px;
|
||||||
|
height: 5px;
|
||||||
|
background: #ddd;
|
||||||
|
border: none;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=range]::-moz-range-thumb {
|
||||||
|
border: none;
|
||||||
|
height: 16px;
|
||||||
|
width: 16px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: #2080da;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=range]:-moz-focusring{
|
||||||
|
outline: 1px solid white;
|
||||||
|
outline-offset: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=range]:focus::-moz-range-track {
|
||||||
|
background: #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
div#switcher button {
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
BIN
public/doggo.webp
Normal file
BIN
public/doggo.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.4 KiB |
@@ -1442,16 +1442,17 @@ document.querySelectorAll("#layoutSwitcher [id^=layout]").forEach(el => el.addEv
|
|||||||
console.warn(response.status, await response.text());
|
console.warn(response.status, await response.text());
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
|
// Turning off mobile detection
|
||||||
newlink = document.createElement('a');
|
// if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
|
||||||
newlink.setAttribute('class', 'mobiledetected');
|
// newlink = document.createElement('a');
|
||||||
newlink.setAttribute('href', '/api/user/layout?layout=5');
|
// newlink.setAttribute('class', 'mobiledetected');
|
||||||
}
|
// newlink.setAttribute('href', '/api/user/layout?layout=5');
|
||||||
|
// }
|
||||||
|
|
||||||
var isMobile = false; //initiate as false
|
// var isMobile = false; //initiate as false
|
||||||
// device detection
|
// // device detection
|
||||||
if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)
|
// if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)
|
||||||
|| /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))) {
|
// || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4))) {
|
||||||
isMobile = true;
|
// isMobile = true;
|
||||||
window.location.href = "https://w0bm.com/api/user/layout?layout=5";
|
// window.location.href = "https://w0bm.com/api/user/layout?layout=5";
|
||||||
}
|
// }
|
14
readme.md
14
readme.md
@@ -1,10 +1,9 @@
|
|||||||
# w0bm.com
|
# w0bm
|
||||||

|

|
||||||
|
|
||||||
[](https://n0xy.net/webirc?join=%23w0bm)
|
|
||||||
[](https://packagist.org/packages/laravel/framework)
|
[](https://packagist.org/packages/laravel/framework)
|
||||||
|
|
||||||
[w0bm.com](https://w0bm.com) is a fun modern website featuring many different kind of videos in webm format. It was initially thought as a [z0r.de](http://z0r.de) without flash, but already surpassed that in our opinion.
|
[w0bm.com](https://w0bm.com) was a fun modern website featuring many different kind of videos in webm format. It was initially thought as a [z0r.de](http://z0r.de) without flash, but already surpassed that in our opinion.
|
||||||
|
|
||||||
The page is build on top of the [Laravel Framework](https://laravel.com).
|
The page is build on top of the [Laravel Framework](https://laravel.com).
|
||||||
|
|
||||||
@@ -149,7 +148,7 @@ server {
|
|||||||
# Installation
|
# Installation
|
||||||
`git clone gitea@git.lat:w0bm/w0bm.git`
|
`git clone gitea@git.lat:w0bm/w0bm.git`
|
||||||
|
|
||||||
`cd w0bm.com`
|
`cd w0bm`
|
||||||
|
|
||||||
`php71 composer dump-autoload`
|
`php71 composer dump-autoload`
|
||||||
|
|
||||||
@@ -157,7 +156,7 @@ server {
|
|||||||
|
|
||||||
(You will most likely encounter a issue where 2 packages namely: visitor and captcha require at least php 7.2, to get around this just change the value to 7.1 in the composer.lock file)
|
(You will most likely encounter a issue where 2 packages namely: visitor and captcha require at least php 7.2, to get around this just change the value to 7.1 in the composer.lock file)
|
||||||
|
|
||||||
For your local development instance make sure that you change 'secure' => true, to 'secure' => false, in `config/session.php` otherwise it will not let you log in!
|
For your local development instance make sure that you add SECURE_COOKIE=false to your `.env` otherwise it will not let you log in!
|
||||||
|
|
||||||
Create the .env file with the following content
|
Create the .env file with the following content
|
||||||
|
|
||||||
@@ -180,6 +179,9 @@ RECAPTCHA_PRIVATE=
|
|||||||
|
|
||||||
MATRIX_MAUAUTH=
|
MATRIX_MAUAUTH=
|
||||||
MATRIX_MAUURL=
|
MATRIX_MAUURL=
|
||||||
|
|
||||||
|
# if you are developing
|
||||||
|
SECURE_COOKIE=false
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
`php71 artisan key:generate`
|
`php71 artisan key:generate`
|
||||||
@@ -224,5 +226,5 @@ Folder structure:
|
|||||||
|
|
||||||
The Laravel framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)
|
The Laravel framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)
|
||||||
|
|
||||||
The w0bm.com Logo is copyrighted by w0bm.com and property of w0bm.com
|
The w0bm Logo is copyrighted by w0bm and property of w0bm.
|
||||||
|
|
||||||
|
@@ -2,11 +2,6 @@
|
|||||||
@section('content')
|
@section('content')
|
||||||
@include('partials.flash')
|
@include('partials.flash')
|
||||||
|
|
||||||
<div class="box">
|
user limit reached 6969
|
||||||
<center>
|
|
||||||
<h1>Registration is closed</h1>
|
|
||||||
<p>until further notice</p>
|
|
||||||
</center>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h5>Register your w0bm.com Account</h5>
|
<h5>Register your w0bm.com Account</h5>
|
||||||
<p style="color:red;">Note: If you ever lose your password you are fucked, we will <b>NOT</b> reset it. To prevent this not only on w0bm.com but evrywhere we highly recommend the usage of a password manager such as <a href="https://keepassxc.org/">KeePassXC</a></p>
|
<p style="color:red;">Note: If you ever lose your password you are fucked, we will <b>NOT</b> reset it. To prevent this not only on w0bm.com but evrywhere we highly recommend the usage of a password manager such as <a href="https://keepassxc.org/">KeePassXC</a></p>
|
||||||
<p>Being a member of w0bm.com is <b>NOT</b> a right, it's privilege which can be revoked at any point in time.</p>
|
<p style="color:red;font-weight: bold;">MINIMUM PASSWORD LENGTH: 128 👹</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="register">
|
<div class="register">
|
||||||
<form class="form-horizontal" method="post" action="{{action('UserController@store')}}">
|
<form class="form-horizontal" method="post" action="{{action('UserController@store')}}">
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="">
|
<div class="">
|
||||||
{!! Form::email('email', null, ['class' => 'form-control', 'placeholder' => 'Email | Must be valid! Confirmation will be sent out']) !!}
|
{!! Form::email('email', null, ['class' => 'form-control', 'placeholder' => 'Email - must be valid']) !!}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@@ -21,8 +21,11 @@ function getLastTenCommits() {
|
|||||||
echo "</div>";
|
echo "</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "<div class='box'>";
|
||||||
|
echo "<h5>GIT LOG</h5>";
|
||||||
getLatestCommit();
|
getLatestCommit();
|
||||||
getLastTenCommits()
|
getLastTenCommits();
|
||||||
|
echo "</div>";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
@@ -28,7 +28,11 @@
|
|||||||
@if($edit = auth()->check() && auth()->user()->can('edit_video'))
|
@if($edit = auth()->check() && auth()->user()->can('edit_video'))
|
||||||
<form action="/index/{{$video->id}}" method="post" id="edit_{{$video->id}}" class="indexform"></form>
|
<form action="/index/{{$video->id}}" method="post" id="edit_{{$video->id}}" class="indexform"></form>
|
||||||
@endif
|
@endif
|
||||||
|
@if(isset($q) && $video->hasAllTags($q))
|
||||||
|
<span class="vinfo vid"><a href="/t/{{$q}}/{{$video->id}}">{{$video->id}}</a></span>
|
||||||
|
@else
|
||||||
<span class="vinfo vid"><a href="{{url($video->id)}}">{{$video->id}}</a></span>
|
<span class="vinfo vid"><a href="{{url($video->id)}}">{{$video->id}}</a></span>
|
||||||
|
@endif
|
||||||
@if($edit)
|
@if($edit)
|
||||||
<input type="submit" class="btn btn-primary" value="Save" form="edit_{{$video->id}}">
|
<input type="submit" class="btn btn-primary" value="Save" form="edit_{{$video->id}}">
|
||||||
@endif
|
@endif
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
<meta name="keywords" content="Random WebMs, WebMs, Internet Videos">
|
<meta name="keywords" content="Random WebMs, WebMs, Internet Videos">
|
||||||
<meta name="robots" content="noindex">
|
<meta name="robots" content="noindex">
|
||||||
@if(auth()->check())<meta name="Description" content="Tags:@if(isset($video)) {{ $video->getTagListAttribute() }} @endif">@endif
|
@if(auth()->check())<meta name="Description" content="Tags:@if(isset($video)) {{ $video->getTagListAttribute() }} @endif">@endif
|
||||||
<meta name="description" content="@if(isset($video)) {{ $video->getTagListAttribute() }} @endif">
|
<meta name="description" content="">
|
||||||
<meta property="og:site_name" content="w0bm.com" />
|
<meta property="og:site_name" content="w0bm.com" />
|
||||||
<meta property="og:title" content="@if(isset($video)){{$video->videotitle}}@endif">
|
<meta property="og:title" content="@if(isset($video)){{$video->videotitle}}@endif">
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
@@ -39,15 +39,12 @@
|
|||||||
<link rel="stylesheet" href="/css/video-js.min.css">
|
<link rel="stylesheet" href="/css/video-js.min.css">
|
||||||
<link rel="stylesheet" href="/css/vjsnew.css">
|
<link rel="stylesheet" href="/css/vjsnew.css">
|
||||||
<link rel="stylesheet" href="/css/w0bmcustom.css?v={{ filemtime("css/w0bmcustom.css") }}">
|
<link rel="stylesheet" href="/css/w0bmcustom.css?v={{ filemtime("css/w0bmcustom.css") }}">
|
||||||
@if(auth()->check())
|
|
||||||
<link rel="alternate stylesheet" href="/css/w0bm_override.css?v={{ filemtime("css/w0bm_override.css") }}" title="DARK">
|
<link rel="alternate stylesheet" href="/css/w0bm_override.css?v={{ filemtime("css/w0bm_override.css") }}" title="DARK">
|
||||||
<link rel="alternate stylesheet" href="/css/chilledblue.css?v={{ filemtime("css/chilledblue.css") }}" title="Chilledblue">
|
<link rel="alternate stylesheet" href="/css/chilledblue.css?v={{ filemtime("css/chilledblue.css") }}" title="Chilledblue">
|
||||||
<link rel="alternate stylesheet" href="/css/xayd.css?v={{ filemtime("css/xayd.css") }}" title="Xayd">
|
<link rel="alternate stylesheet" href="/css/xayd.css?v={{ filemtime("css/xayd.css") }}" title="Xayd">
|
||||||
<link rel="alternate stylesheet" href="/css/glitch.css?v={{ filemtime("css/glitch.css") }}" title="Glitch">
|
<link rel="alternate stylesheet" href="/css/glitch.css?v={{ filemtime("css/glitch.css") }}" title="Glitch">
|
||||||
<link rel="alternate stylesheet" href="/css/epilepsie.css?v={{ filemtime("css/epilepsie.css") }}" title="Epilepsie">
|
<link rel="alternate stylesheet" href="/css/epilepsie.css?v={{ filemtime("css/epilepsie.css") }}" title="Epilepsie">
|
||||||
<script src="/js/styleswitcher.js"></script>
|
<script src="/js/styleswitcher.js"></script>
|
||||||
@else
|
|
||||||
@endif
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@if(auth()->check())
|
@if(auth()->check())
|
||||||
@@ -57,17 +54,13 @@
|
|||||||
@include('partials.frontendedit')
|
@include('partials.frontendedit')
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
@if(auth()->check())
|
|
||||||
<canvas class="hidden-xs" id="bg"></canvas>
|
<canvas class="hidden-xs" id="bg"></canvas>
|
||||||
@else
|
|
||||||
<!-- placeholder? -->
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@include('partials.navigation')
|
@include('partials.navigation')
|
||||||
|
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
@yield('aside')
|
@yield('aside')
|
||||||
<div class="LooLOut" style="width: auto; overflow: hidden; position: relative;">
|
<div class="LooLOut" style="width: auto; overflow: hidden;">
|
||||||
<noscript><div class="no-js-mode" style="position: fixed;bottom: 0;right: 0;">nojs</div></noscript>
|
<noscript><div class="no-js-mode" style="position: fixed;bottom: 0;right: 0;">nojs</div></noscript>
|
||||||
<div class=" container">
|
<div class=" container">
|
||||||
@yield('content')
|
@yield('content')
|
||||||
@@ -75,7 +68,6 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@if(auth()->check())
|
|
||||||
<script src="/js/jquery.min.js"></script>
|
<script src="/js/jquery.min.js"></script>
|
||||||
<script src="/js/bootstrap.min.js"></script>
|
<script src="/js/bootstrap.min.js"></script>
|
||||||
<script src="/js/bootstrap-tagsinput.min.js"></script>
|
<script src="/js/bootstrap-tagsinput.min.js"></script>
|
||||||
@@ -103,9 +95,6 @@ clipboard.on('error', function(e) {
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<script src="/js/w0bmscript.js?v={{ filemtime("js/w0bmscript.js") }}"></script>
|
<script src="/js/w0bmscript.js?v={{ filemtime("js/w0bmscript.js") }}"></script>
|
||||||
@else
|
|
||||||
|
|
||||||
@endif
|
|
||||||
@if(isset($video))
|
@if(isset($video))
|
||||||
@else
|
@else
|
||||||
@endif
|
@endif
|
||||||
|
@@ -15,8 +15,26 @@
|
|||||||
<?php
|
<?php
|
||||||
$thumb = str_replace(".webm","",$video->file);
|
$thumb = str_replace(".webm","",$video->file);
|
||||||
?>
|
?>
|
||||||
<div class="main-item">
|
<div style="position: relative;" class="main-item hasTag-{{$video->id}}">
|
||||||
|
@if(isset($q) && $video->hasAllTags($q))
|
||||||
|
<a href="/t/{{$q}}/{{$video->id}}">
|
||||||
|
<style>
|
||||||
|
.hasTag-{{$video->id}}::after {
|
||||||
|
content: "\f02b";
|
||||||
|
font: normal normal normal 14px/1 FontAwesome;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
padding: 5px;
|
||||||
|
color: #1fb2b0;
|
||||||
|
text-shadow: 1px 1px 1px black;
|
||||||
|
font-size: 2em;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@else
|
||||||
<a href="/{{$video->id}}">
|
<a href="/{{$video->id}}">
|
||||||
|
@endif
|
||||||
{{-- MUSS UNBEDINGT NOCH ANGEPASST WERDEN!!! --}}
|
{{-- MUSS UNBEDINGT NOCH ANGEPASST WERDEN!!! --}}
|
||||||
@if(file_exists(public_path() . '/thumbs/beta/'.$thumb.'.png'))
|
@if(file_exists(public_path() . '/thumbs/beta/'.$thumb.'.png'))
|
||||||
<img src="/thumbs/beta/{{$thumb}}.png">
|
<img src="/thumbs/beta/{{$thumb}}.png">
|
||||||
|
@@ -11,12 +11,9 @@
|
|||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
</div>-->
|
</div>-->
|
||||||
{{-- <div id="nutti">
|
|
||||||
<p>Please check out the overhauled <a href="https://w0bm.com/api/user/layout?layout=2">Njum</a> Layout and give me some feedback!</p>
|
{{-- hier kann theoretisch notification angezeigt--}}
|
||||||
</div> --}}
|
|
||||||
{{-- <div id="nutti">
|
|
||||||
<p>Next month w0bm turns 6 years old! Wouldn't be possible without all of you! Thanks</p>
|
|
||||||
</div> --}}
|
|
||||||
@if(Auth::check())
|
@if(Auth::check())
|
||||||
@if($video->id == '30186')
|
@if($video->id == '30186')
|
||||||
@include('partials.thread_closed')
|
@include('partials.thread_closed')
|
||||||
@@ -47,7 +44,19 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<div class="comments hidden-xs">
|
<style>
|
||||||
|
#sidebar {
|
||||||
|
height: unset !important;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.vertical-align {
|
||||||
|
min-height: calc(90vh - 50px);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<!-- <div class="comments hidden-xs">
|
||||||
<div class="commentwrapper">
|
<div class="commentwrapper">
|
||||||
<div class="panel panel-default ">
|
<div class="panel panel-default ">
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
@@ -56,5 +65,5 @@
|
|||||||
<div class="panel-footer">by w0bm ∞</div>
|
<div class="panel-footer">by w0bm ∞</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
@endif
|
@endif
|
||||||
|
@@ -5,8 +5,6 @@
|
|||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<div class="layoutblah">
|
<div class="layoutblah">
|
||||||
<button class="layoutbutton" id="layout2">Njum</button>
|
<button class="layoutbutton" id="layout2">Njum</button>
|
||||||
<br>
|
|
||||||
<button class="layoutbutton" id="layout3">z0mb</button>
|
|
||||||
</div>
|
</div>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<p>Registration has been disabled and will stay closed until further notice.</p>
|
<p>Create your account now! <a href="/register">Click here</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
<img src="{{ asset('logo.svg') }}" alt="w0bm.com">
|
<img src="{{ asset('logo.svg') }}" alt="w0bm.com">
|
||||||
</a>
|
</a>
|
||||||
@else
|
@else
|
||||||
<a class="navbar-brand" href="/">
|
<a class="navbar-brand" href="/main">
|
||||||
<img src="{{ asset('logo.svg') }}" alt="w0bm.com">
|
<img src="{{ asset('logo.svg') }}" alt="w0bm.com">
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
@@ -20,20 +20,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class=" collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
<div class=" collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
||||||
@if(Auth::check())
|
|
||||||
<ul class="nav navbar-nav navbar-left">
|
<ul class="nav navbar-nav navbar-left">
|
||||||
<li><a href="{{url('categories')}}"><i class="fa fa-clone"></i><span class="hidden-sm"> Categories</span></a></li>
|
<li><a href="{{url('categories')}}"><i class="fa fa-clone"></i><span class="hidden-sm"> Categories</span></a></li>
|
||||||
<li><a href="{{url('index')}}"><i class="fa fa-list"></i><span class="hidden-sm"> Index</span></a></li>
|
<li><a href="{{url('index')}}"><i class="fa fa-list"></i><span class="hidden-sm"> Index</span></a></li>
|
||||||
@include('partials.themechanger')
|
@include('partials.themechanger')
|
||||||
@endif
|
|
||||||
@if(Auth::check())
|
@if(Auth::check())
|
||||||
@include('partials.layoutchanger')
|
@include('partials.layoutchanger')
|
||||||
@endif
|
@endif
|
||||||
@if(Auth::check())
|
|
||||||
@include('partials.searchmodal')
|
@include('partials.searchmodal')
|
||||||
<li><a href="#" data-toggle="modal" data-target="#searchmodal"><i class="fa fa-search"></i><span class="hidden-sm"> Find shit</span></a></li>
|
<li><a href="#" data-toggle="modal" data-target="#searchmodal"><i class="fa fa-search"></i><span class="hidden-sm"> Find shit</span></a></li>
|
||||||
@else
|
|
||||||
@endif
|
|
||||||
</ul>
|
</ul>
|
||||||
@if(Auth::check())
|
@if(Auth::check())
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
@@ -47,12 +43,10 @@
|
|||||||
@else
|
@else
|
||||||
<!-- Hier war mal der Login Kot -->
|
<!-- Hier war mal der Login Kot -->
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
@if(Auth::check())
|
|
||||||
<li><a href="#" data-toggle="modal" data-target="#loginmodal"><i class="fa fa-sign-in"></i> Login</a></li>
|
<li><a href="#" data-toggle="modal" data-target="#loginmodal"><i class="fa fa-sign-in"></i> Login</a></li>
|
||||||
@include('partials.loginmodal')
|
@include('partials.loginmodal')
|
||||||
</ul>
|
</ul>
|
||||||
@endif
|
@endif
|
||||||
@endif
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
@@ -19,7 +19,6 @@
|
|||||||
<link rel="stylesheet" href="/css/font-awesome.min.css">
|
<link rel="stylesheet" href="/css/font-awesome.min.css">
|
||||||
<link rel="stylesheet" href="/css/bootstrap-tagsinput.css">
|
<link rel="stylesheet" href="/css/bootstrap-tagsinput.css">
|
||||||
<link rel="stylesheet" href="/css/w0bmcustom.css?v={{ filemtime("css/w0bmcustom.css") }}">
|
<link rel="stylesheet" href="/css/w0bmcustom.css?v={{ filemtime("css/w0bmcustom.css") }}">
|
||||||
@if(auth()->check())
|
|
||||||
<link rel="stylesheet" href="/css/video-js.min.css">
|
<link rel="stylesheet" href="/css/video-js.min.css">
|
||||||
<link rel="stylesheet" href="/css/simplebar.css" />
|
<link rel="stylesheet" href="/css/simplebar.css" />
|
||||||
<link rel="stylesheet" href="/css/vjsnew.css?v=1.1.1">
|
<link rel="stylesheet" href="/css/vjsnew.css?v=1.1.1">
|
||||||
@@ -29,8 +28,6 @@
|
|||||||
<link rel="alternate stylesheet" href="/css/glitch.css?v={{ filemtime("css/glitch.css") }}" title="Glitch">
|
<link rel="alternate stylesheet" href="/css/glitch.css?v={{ filemtime("css/glitch.css") }}" title="Glitch">
|
||||||
<link rel="alternate stylesheet" href="/css/epilepsie.css?v={{ filemtime("css/epilepsie.css") }}" title="Epilepsie">
|
<link rel="alternate stylesheet" href="/css/epilepsie.css?v={{ filemtime("css/epilepsie.css") }}" title="Epilepsie">
|
||||||
<script src="/js/styleswitcher.js"></script>
|
<script src="/js/styleswitcher.js"></script>
|
||||||
@else
|
|
||||||
@endif
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@if(auth()->check())
|
@if(auth()->check())
|
||||||
@@ -43,10 +40,7 @@
|
|||||||
@include('partials.banmenu')
|
@include('partials.banmenu')
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
@if(auth()->check())
|
|
||||||
<canvas id="bg" @if(!Session::get('background', true)) style="display: none;"@endif></canvas>
|
<canvas id="bg" @if(!Session::get('background', true)) style="display: none;"@endif></canvas>
|
||||||
@else
|
|
||||||
@endif
|
|
||||||
@include('partials.navigation')
|
@include('partials.navigation')
|
||||||
|
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
@@ -59,7 +53,6 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@if(auth()->check())
|
|
||||||
<script src="/js/jquery.min.js"></script>
|
<script src="/js/jquery.min.js"></script>
|
||||||
<script src="/js/bootstrap.min.js"></script>
|
<script src="/js/bootstrap.min.js"></script>
|
||||||
<script src="/js/bootstrap-tagsinput.min.js"></script>
|
<script src="/js/bootstrap-tagsinput.min.js"></script>
|
||||||
@@ -68,7 +61,5 @@
|
|||||||
<script src="/js/handlebars.min.js"></script>
|
<script src="/js/handlebars.min.js"></script>
|
||||||
<script src="/js/jquery.timeago.js"></script>
|
<script src="/js/jquery.timeago.js"></script>
|
||||||
<script src="/js/w0bmscript.js?v={{ filemtime("js/w0bmscript.js") }}"></script>
|
<script src="/js/w0bmscript.js?v={{ filemtime("js/w0bmscript.js") }}"></script>
|
||||||
@else
|
|
||||||
@endif
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -9,7 +9,6 @@
|
|||||||
<p class="comment_count">Total amount of comments: <amount>{{$comment_count}}</amount></p>
|
<p class="comment_count">Total amount of comments: <amount>{{$comment_count}}</amount></p>
|
||||||
<p class="latest-video">Latest video <a href="/{{$latest_video}}">/{{$latest_video}}</a></p>
|
<p class="latest-video">Latest video <a href="/{{$latest_video}}">/{{$latest_video}}</a></p>
|
||||||
<p class="newest_user">Newest user <a href="/user/{{$newest_user}}">/user/{{$newest_user}}</a></p>
|
<p class="newest_user">Newest user <a href="/user/{{$newest_user}}">/user/{{$newest_user}}</a></p>
|
||||||
<p class="dirsize">Total size of w0bm: <amount>{{$dirsize}}</amount></p>
|
|
||||||
</div>
|
</div>
|
||||||
@include('footer')
|
@include('footer')
|
||||||
@endsection
|
@endsection
|
||||||
|
@@ -1,12 +1,11 @@
|
|||||||
@extends('layout')
|
@extends('layout')
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
@if(auth()->check())
|
|
||||||
<?php $related = $related ?? null; ?>
|
<?php $related = $related ?? null; ?>
|
||||||
<div class="vertical-align">
|
<div class="vertical-align">
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="videotitle-div">
|
<div class="videotitle-div">
|
||||||
<h5 style="height: 22px;">
|
<h5 style="min-height: 22px;">
|
||||||
@if($video->videotitle)
|
@if($video->videotitle)
|
||||||
{{$video->videotitle}}
|
{{$video->videotitle}}
|
||||||
@else
|
@else
|
||||||
@@ -32,26 +31,22 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<?php
|
|
||||||
//$shortfile = str_replace(".webm", "" ,$video->file);
|
|
||||||
//$mp4 = shell_exec("curl https://fapple.w0bm.com/api/v1/{{$shortfile}} | jq -r .size");
|
|
||||||
?>
|
|
||||||
<div class="text-center" style="position: unset;">
|
<div class="text-center" style="position: unset;">
|
||||||
@if($related)
|
@if($related)
|
||||||
@if(($prev = $video->getPrev($related)) === null)
|
@if(($prev = $video->getPrev($related,$isTag)) === null)
|
||||||
<a class="first" href="#" style="visibility: hidden;">← first</a>
|
<a class="first" href="#" style="visibility: hidden;">← first</a>
|
||||||
<a id="prev" href="#" style="visibility: hidden;">← prev</a> |
|
<a id="prev" href="#" style="visibility: hidden;">← prev</a> |
|
||||||
@else
|
@else
|
||||||
<a class="first" href="{{url($related->baseurl(), $video->getFirstId($related))}}">← first</a>
|
<a class="first" href="{{url($isTag ? '/t/' . $related : $related->baseurl(), $video->getFirstId($related,$isTag))}}">← first</a>
|
||||||
<a id="prev" href="{{url($related->baseurl(), [$prev->id])}}">← prev</a> |
|
<a id="prev" href="{{url($isTag ? '/t/' . $related : $related->baseurl(), [$prev->id])}}">← prev</a> |
|
||||||
@endif
|
@endif
|
||||||
<a href="{{url($related->baseurl())}}">{!!$related->displayName()!!}</a>
|
<a href="{{url($isTag ? '/t/' . $related : $related->baseurl())}}">{!!$isTag ? $related:$related->displayName()!!}</a>
|
||||||
@if(($next = $video->getNext($related)) === null)
|
@if(($next = $video->getNext($related,$isTag)) === null)
|
||||||
| <a id="next" href="#" style="visibility: hidden;">next →</a>
|
| <a id="next" href="#" style="visibility: hidden;">next →</a>
|
||||||
<a class="last" href="#" style="visibility: hidden;">last →</a>
|
<a class="last" href="#" style="visibility: hidden;">last →</a>
|
||||||
@else
|
@else
|
||||||
| <a id="next" href="{{url($related->baseurl(), [$next->id])}}">next →</a>
|
| <a id="next" href="{{url($isTag ? '/t/' . $related : $related->baseurl(), [$next->id])}}">next →</a>
|
||||||
<a class="last" href="{{url($related->baseurl(), $video->getLastId($related))}}">last →</a>
|
<a class="last" href="{{url($isTag ? '/t/' . $related : $related->baseurl(), $video->getLastId($related,$isTag))}}">last →</a>
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
@if(($prev = $video->getPrev()) === null)
|
@if(($prev = $video->getPrev()) === null)
|
||||||
@@ -119,7 +114,7 @@
|
|||||||
title="Information"
|
title="Information"
|
||||||
data-content="@include('popover-content')">
|
data-content="@include('popover-content')">
|
||||||
</button>
|
</button>
|
||||||
<span id="uploader">uploaded by <a class="{{ $video->user->username }}" style="color: white" href="{{ url('user/' . $video->user->username) }}">{!! $video->user->displayName() !!}</a></span> <time class="timeago" data-toggle="tooltip" data-placement="top" datetime="{{$video->created_at->toIso8601String()}}" title="{{$video->created_at->toIso8601String()}}"></time>@if(auth()->check() && (auth()->user()->can('edit_video') || auth()->user()->id == $video->user_id)) <a class="edit_video" href="#" data-toggle="modal" data-target="#webmeditmodal">[edit]</a>@endif @if(auth()->check() && auth()->user()->can('delete_video'))<a class="delete_video" href="#">[del]</a>@endif
|
<span id="uploader">@if(auth()->check())contributed by <a class="{{ $video->user->username }}" style="color: white" href="{{ url('user/' . $video->user->username) }}">{!! $video->user->displayName() !!}</a></span>@else @endif <time class="timeago" data-toggle="tooltip" data-placement="top" datetime="{{$video->created_at->toIso8601String()}}" title="{{$video->created_at->toIso8601String()}}"></time>@if(auth()->check() && (auth()->user()->can('edit_video') || auth()->user()->id == $video->user_id)) <a class="edit_video" href="#" data-toggle="modal" data-target="#webmeditmodal">[edit]</a>@endif @if(auth()->check() && auth()->user()->can('delete_video'))<a class="delete_video" href="#">[del]</a>@endif
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -133,53 +128,4 @@
|
|||||||
@include('partials.comments')
|
@include('partials.comments')
|
||||||
@include('partials.tags')
|
@include('partials.tags')
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
@else
|
|
||||||
<div class="centered">
|
|
||||||
<div class="modal-content col-md-5">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h4 class="modal-title" id="filterModalTitle">Login</h4>
|
|
||||||
</div>
|
|
||||||
@include('partials.flash')
|
|
||||||
<div class="login_wrapper">
|
|
||||||
<div class="col-md">
|
|
||||||
<form action="{{action('UserController@login')}}" method="post" class="navbar-form">
|
|
||||||
{!! csrf_field() !!}
|
|
||||||
<input type="text" name="identifier" placeholder="Username" class="form-control usernamelogin"><br>
|
|
||||||
<input type="password" name="password" placeholder="Password" class="form-control passwordlogin"><br>
|
|
||||||
<button type="submit" class="btn btn-primary">Login</button> <input style="vertical-align: unset;" id="rememberme" checked type="checkbox" name="remember"> <span id="rember">Remember me?</span>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="media not-logged-in">
|
|
||||||
<div class="media-left">
|
|
||||||
@if($sfw)
|
|
||||||
<img class="media-object" src="/thumbs/beta/{{str_replace('.webm','',$video->file)}}.png">
|
|
||||||
@else
|
|
||||||
<img class="media-object" src="/thumbs/blurred/{{str_replace('.webm','',$video->file)}}_blurred.png">
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
<div class="media-koerper">
|
|
||||||
<h4 class="media-heading">
|
|
||||||
@if($video->videotitle){{$video->videotitle}}
|
|
||||||
@else
|
|
||||||
<p><i>No Title</i></p></h4>
|
|
||||||
@endif</h4>
|
|
||||||
<div id="tag-display" style="width: auto; height: auto;" class="tag-panel-body">
|
|
||||||
@if(count($video->tags))
|
|
||||||
@foreach($video->tags as $tag)
|
|
||||||
<span class="label label-default"><a class="default-link">{{$tag->name}}</a></span>
|
|
||||||
@endforeach
|
|
||||||
@else
|
|
||||||
No tags yet ...
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<a href="/privacy">Privacy</a> | <a href="/contact">Contact</a> | <a href="/irc">IRC</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
@endsection
|
@endsection
|
||||||
|
31
resources/views/layout2/git.blade.php
Normal file
31
resources/views/layout2/git.blade.php
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
@extends('profilelayout')
|
||||||
|
@section('novidcontent')
|
||||||
|
<?php
|
||||||
|
|
||||||
|
function getLatestCommit() {
|
||||||
|
$latestCommit = shell_exec('git log -n 1');
|
||||||
|
$getcommitID = substr($latestCommit,0,48);
|
||||||
|
$commitID = substr($getcommitID, 7);
|
||||||
|
echo "<div class='box'>";
|
||||||
|
echo "<span>Latest commit</span>";
|
||||||
|
//echo "<h4><a style='color:white' href='https://git.lat/w0bm/w0bm/commit/$commitID' target='_blank'>$commitID</a></h4>";
|
||||||
|
echo "<pre>$latestCommit</pre>";
|
||||||
|
echo "</div>";
|
||||||
|
}
|
||||||
|
|
||||||
|
function getLastTenCommits() {
|
||||||
|
$lastTenCommits = shell_exec('git log -n 10');
|
||||||
|
echo "<div class='box'>";
|
||||||
|
echo "<span>Last 10 Commits</span>";
|
||||||
|
echo "<pre>$lastTenCommits</pre>";
|
||||||
|
echo "</div>";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "<div class='box'>";
|
||||||
|
echo "<h5>GIT LOG</h5>";
|
||||||
|
getLatestCommit();
|
||||||
|
getLastTenCommits();
|
||||||
|
echo "</div>";
|
||||||
|
?>
|
||||||
|
|
||||||
|
@endsection
|
@@ -30,7 +30,11 @@
|
|||||||
<form action="/index/{{$video->id}}" method="post" id="edit_{{$video->id}}" class="indexform"></form>
|
<form action="/index/{{$video->id}}" method="post" id="edit_{{$video->id}}" class="indexform"></form>
|
||||||
@endif
|
@endif
|
||||||
<div class="relativebla">
|
<div class="relativebla">
|
||||||
|
@if(isset($q) && $video->hasAllTags($q))
|
||||||
|
<span class="vinfo vid"><a href="/t/{{$q}}/{{$video->id}}">{{$video->id}}</a></span>
|
||||||
|
@else
|
||||||
<span class="vinfo vid"><a href="{{url($video->id)}}">{{$video->id}}</a></span>
|
<span class="vinfo vid"><a href="{{url($video->id)}}">{{$video->id}}</a></span>
|
||||||
|
@endif
|
||||||
<a href="{{url($video->id)}}"><img id="indexthumb" src="/thumbs/beta/{{$thumb}}.png"></a>
|
<a href="{{url($video->id)}}"><img id="indexthumb" src="/thumbs/beta/{{$thumb}}.png"></a>
|
||||||
</div>
|
</div>
|
||||||
@if($edit)
|
@if($edit)
|
||||||
|
@@ -5,8 +5,26 @@
|
|||||||
<?php
|
<?php
|
||||||
$thumb = str_replace(".webm","",$video->file);
|
$thumb = str_replace(".webm","",$video->file);
|
||||||
?>
|
?>
|
||||||
<div class="main-item">
|
<div style="position: relative;" class="main-item hasTag-{{$video->id}}">
|
||||||
|
@if(isset($q) && $video->hasAllTags($q))
|
||||||
|
<a href="/t/{{$q}}/{{$video->id}}">
|
||||||
|
<style>
|
||||||
|
.hasTag-{{$video->id}}::after {
|
||||||
|
content: "\f02b";
|
||||||
|
font: normal normal normal 14px/1 FontAwesome;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
padding: 5px;
|
||||||
|
color: #0bb568;
|
||||||
|
text-shadow: 1px 1px 1px black;
|
||||||
|
font-size: 1em;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@else
|
||||||
<a href="/{{$video->id}}">
|
<a href="/{{$video->id}}">
|
||||||
|
@endif
|
||||||
@if(file_exists(public_path() . '/thumbs/beta/'.$thumb.'.png'))
|
@if(file_exists(public_path() . '/thumbs/beta/'.$thumb.'.png'))
|
||||||
<img src="/thumbs/beta/{{$thumb}}.png">
|
<img src="/thumbs/beta/{{$thumb}}.png">
|
||||||
@else
|
@else
|
||||||
|
@@ -51,7 +51,6 @@
|
|||||||
</a>
|
</a>
|
||||||
<div id="layoutSwitcher" class="dropdown-menu" aria-labelledby="navbarDropdown">
|
<div id="layoutSwitcher" class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||||
<a class="dropdown-item" id="layout1" href="#">Atmos</a>
|
<a class="dropdown-item" id="layout1" href="#">Atmos</a>
|
||||||
<a class="dropdown-item" id="layout3" href="#">z0mb</a>
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
@@ -10,7 +10,6 @@
|
|||||||
<p class="comment_count">Total amount of comments: <amount>{{$comment_count}}</amount></p>
|
<p class="comment_count">Total amount of comments: <amount>{{$comment_count}}</amount></p>
|
||||||
<p class="latest-video">Latest video <a href="/{{$latest_video}}">/{{$latest_video}}</a></p>
|
<p class="latest-video">Latest video <a href="/{{$latest_video}}">/{{$latest_video}}</a></p>
|
||||||
<p class="newest_user">Newest user <a href="/user/{{$newest_user}}">/user/{{$newest_user}}</a></p>
|
<p class="newest_user">Newest user <a href="/user/{{$newest_user}}">/user/{{$newest_user}}</a></p>
|
||||||
<p class="dirsize">Total size of w0bm: <amount>{{$dirsize}}</amount></p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
@@ -1,19 +1,19 @@
|
|||||||
<div class="row videonavigation">
|
<div class="row videonavigation">
|
||||||
@if($related)
|
@if($related)
|
||||||
@if(($prev = $video->getPrev($related)) === null)
|
@if(($prev = $video->getPrev($related, $isTag)) === null)
|
||||||
<div class="col- first-video"><a class="first" href="#" style="visibility: hidden;"><i class="fa fa-arrow-left"></i> first</a></div>
|
<div class="col- first-video"><a class="first" href="#" style="visibility: hidden;"><i class="fa fa-arrow-left"></i> first</a></div>
|
||||||
<div class="col video-navigation"><a id="prev" href="#" style="visibility: hidden;"><i class="fa fa-arrow-left"></i> prev</a> |
|
<div class="col video-navigation"><a id="prev" href="#" style="visibility: hidden;"><i class="fa fa-arrow-left"></i> prev</a> |
|
||||||
@else
|
@else
|
||||||
<div class="col- first-video"><a class="first" href="{{url($related->baseurl(), $video->getFirstId($related))}}"><i class="fa fa-arrow-left"></i> first</a></div>
|
<div class="col- first-video"><a class="first" href="{{url($isTag ? '/t/' . $related : $related->baseurl(), $video->getFirstId($related,$isTag))}}"><i class="fa fa-arrow-left"></i> first</a></div>
|
||||||
<div class="col video-navigation"><a id="prev" href="{{url($related->baseurl(), [$prev->id])}}"><i class="fa fa-arrow-left"></i> prev</a> |
|
<div class="col video-navigation"><a id="prev" href="{{url($isTag ? '/t/' . $related : $related->baseurl(), [$prev->id])}}"><i class="fa fa-arrow-left"></i> prev</a> |
|
||||||
@endif
|
@endif
|
||||||
<a href="{{url($related->baseurl())}}">{!!$related->displayName()!!}</a>
|
<a href="{{url($isTag ? '/t/' . $related : $related->baseurl())}}">{!!$isTag ? $related:$related->displayName()!!}</a>
|
||||||
@if(($next = $video->getNext($related)) === null)
|
@if(($next = $video->getNext($related,$isTag)) === null)
|
||||||
| <a id="next" href="#" style="visibility: hidden;">next <i class="fa fa-arrow-right"></i></a></div>
|
| <a id="next" href="#" style="visibility: hidden;">next <i class="fa fa-arrow-right"></i></a></div>
|
||||||
<div class="col- latest-video"><a class="last" href="#" style="visibility: hidden;">last <i class="fa fa-arrow-right"></i></a></div>
|
<div class="col- latest-video"><a class="last" href="#" style="visibility: hidden;">last <i class="fa fa-arrow-right"></i></a></div>
|
||||||
@else
|
@else
|
||||||
| <a id="next" href="{{url($related->baseurl(), [$next->id])}}">next <i class="fa fa-arrow-right"></i></a></div>
|
| <a id="next" href="{{url($isTag ? '/t/' . $related : $related->baseurl(), [$next->id])}}">next <i class="fa fa-arrow-right"></i></a></div>
|
||||||
<div class="col- latest-video"><a class="last" href="{{url($related->baseurl(), $video->getLastId($related))}}">last <i class="fa fa-arrow-right"></i></a></div>
|
<div class="col- latest-video"><a class="last" href="{{url($isTag ? '/t/' . $related : $related->baseurl(), $video->getLastId($related,$isTag))}}">last <i class="fa fa-arrow-right"></i></a></div>
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
@if(($prev = $video->getPrev()) === null)
|
@if(($prev = $video->getPrev()) === null)
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
<div class="video">
|
<div class="video">
|
||||||
<div class="embed-responsive embed-responsive-16by9">
|
<div class="embed-responsive embed-responsive-16by9">
|
||||||
<video id="video" class="video embed-responsive-item" loop preload="auto" crossorigin="anonymous">
|
<video id="video" class="video embed-responsive-item" loop preload="auto" crossorigin="anonymous">
|
||||||
<source src="//w0bm.com/b{{ "/" . $video->file }}">
|
<source src="/b{{ "/" . $video->file }}">
|
||||||
</video>
|
</video>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<div class="video-wrap embed-responsive embed-responsive-16by9">
|
<div class="video-wrap embed-responsive embed-responsive-16by9">
|
||||||
<div class="video">
|
<div class="video">
|
||||||
<video id="video" class="video embed-responsive-item" loop preload="auto" crossorigin="anonymous">
|
<video id="video" class="video embed-responsive-item" loop preload="auto" crossorigin="anonymous">
|
||||||
<source src="//w0bm.com/b{{ "/" . $video->file }}">
|
<source src="/b{{ "/" . $video->file }}">
|
||||||
</video>
|
</video>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
<iframe style="height:100%!important; min-height: auto!important;" src="https://w0bm.com/loop/index.html"></iframe>
|
<iframe style="height:100%!important; min-height: auto!important;" src="https://w0bm.com/loop/index.html"></iframe>
|
||||||
@else
|
@else
|
||||||
<video class="video scrollable" loop id="video" controls>
|
<video class="video scrollable" loop id="video" controls>
|
||||||
<source src="//w0bm.com/b{{ "/" . $video->file }}">
|
<source src="/b{{ "/" . $video->file }}">
|
||||||
</video>
|
</video>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user