commit
This commit is contained in:
12
app/certbot.log
Normal file
12
app/certbot.log
Normal file
@@ -0,0 +1,12 @@
|
||||
Traceback (most recent call last):
|
||||
File "/usr/bin/certbot", line 9, in <module>
|
||||
load_entry_point('certbot==0.9.3', 'console_scripts', 'certbot')()
|
||||
File "/usr/lib/python2.7/dist-packages/certbot/main.py", line 749, in main
|
||||
setup_logging(config)
|
||||
File "/usr/lib/python2.7/dist-packages/certbot/main.py", line 642, in setup_logging
|
||||
config, logfile=logfile, fmt=file_fmt)
|
||||
File "/usr/lib/python2.7/dist-packages/certbot/main.py", line 604, in setup_log_file_handler
|
||||
raise errors.Error(_PERM_ERR_FMT.format(error))
|
||||
Error: The following error was encountered:
|
||||
[Errno 13] Permission denied: '/var/log/letsencrypt/letsencrypt.log'
|
||||
If running as non-root, set --config-dir, --logs-dir, and --work-dir to writeable paths.
|
6
app/libraries/justwatch.php
Normal file
6
app/libraries/justwatch.php
Normal file
@@ -0,0 +1,6 @@
|
||||
use GuzzleHttp\client;
|
||||
|
||||
class JustWatch {
|
||||
private $path = 'https://apis.justwatch.com/content/%s';
|
||||
|
||||
}
|
@@ -693,7 +693,7 @@ class TMDb
|
||||
*/
|
||||
public function getConfiguration()
|
||||
{
|
||||
$config = $this->_makeCall('configuration');
|
||||
$config = $this->_makeCall('configuration');
|
||||
|
||||
if( ! empty($config))
|
||||
{
|
||||
@@ -717,7 +717,7 @@ class TMDb
|
||||
|
||||
if(isset($config['images']))
|
||||
{
|
||||
$base_url = $config['images']['base_url'];
|
||||
$base_url = $config['images']['secure_base_url'];
|
||||
$available_sizes = $this->getAvailableImageSizes($imagetype);
|
||||
|
||||
if(in_array($size, $available_sizes))
|
||||
|
@@ -23,7 +23,7 @@ Route::get('/', function()
|
||||
$news = News::aktuell()->get();
|
||||
$nextfilm = Dumbo::find(1)->film;
|
||||
|
||||
$tmdb = new TMDb(Config::get('constants.tvdb.apikey'), 'de', TRUE);
|
||||
$tmdb = new TMDb(Config::get('constants.tvdb.apikey'), 'de', TRUE, TMDb::API_SCHEME_SSL);
|
||||
foreach(array("top" => $mg[0], "neu" => $vorgeschlagen[0], "alt" => $gesehen[0]) as $key => $val) {
|
||||
$tmovie = $tmdb->getMovie($val->tvdbid);
|
||||
$images[$key] = $tmdb->getImageUrl($tmovie['poster_path'], TMDb::IMAGE_POSTER, 'w342');
|
||||
@@ -337,16 +337,18 @@ Route::post('settings/{mode}', array('before' => 'auth', function($mode) {
|
||||
$val = Validator::make($vfields, $vrules);
|
||||
if($val->passes()) {
|
||||
/* Delete old Avatars */
|
||||
array_map('unlink', glob(public_path("img/avatars/". Auth::user()->id . "-*")));
|
||||
//array_map('unlink', glob(public_path("img/avatars/". Auth::user()->id . "-*")));
|
||||
|
||||
/** @var Symfony\Component\HttpFoundation\File\UploadedFile $file */
|
||||
$file = Input::file('avatar');
|
||||
$file = $file->move( public_path("img/avatars/"), Auth::user()->id . "-". Str::slug($file->getFilename()) . "." . $file->guessExtension() );
|
||||
|
||||
$i = new Imagick();
|
||||
$i->readImage($file->getRealPath());
|
||||
$i->cropThumbnailImage(100, 100);
|
||||
$i->writeImage();
|
||||
exec('/usr/bin/gm convert -size 100x100 ' . $file->getRealPath() . ' -thumbnail 100x100^ -gravity center -extent 100x100 +profile "*" ' . $file->getRealPath());
|
||||
|
||||
//$i = new Imagick();
|
||||
//$i->readImage($file->getRealPath());
|
||||
//$i->cropThumbnailImage(100, 100);
|
||||
//$i->writeImage();
|
||||
|
||||
/** @var User $u */
|
||||
$u = Auth::user();
|
||||
@@ -560,8 +562,5 @@ Route::get('stats', function() {
|
||||
),
|
||||
];
|
||||
|
||||
|
||||
// dd(DB::getQueryLog());
|
||||
|
||||
return View::make('stats')->with('stats', $stats);
|
||||
});
|
@@ -73,7 +73,7 @@
|
||||
<footer id="footer">
|
||||
<div class="container">
|
||||
<hr>
|
||||
<small>© 2013-2016 — Daniel Müllers</small>
|
||||
<small>© 2013-{{ date("Y") }} — Daniel Müllers</small>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
@extends('hello');
|
||||
@extends('hello')
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
|
@@ -9,37 +9,38 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">{{$stat["name"]}}</div>
|
||||
<div class="panel-body">
|
||||
<?php $top = $stat["vals"]->shift() ?>
|
||||
<?php $top = $stat["vals"]->shift(); $prop = $stat['prop']; ?>
|
||||
<div>
|
||||
@if($stat['type'] === "User")
|
||||
<div class="pull-left" style="margin-right:5px">
|
||||
<img class="img-circle media-object" src="{{$top->$stat['prop']->getAvatar()}}" width="47">
|
||||
<img class="img-circle media-object" src="{{$top->$prop->getAvatar()}}" width="47">
|
||||
</div>
|
||||
@endif
|
||||
@if($stat['type'] === "Film")
|
||||
<div class="pull-left" style="margin-right:5px">
|
||||
<img class="media-object" src="{{$top->$stat['prop']->getPoster()}}" height="47">
|
||||
<img class="media-object" src="{{$top->$prop->getPoster()}}" height="47">
|
||||
</div>
|
||||
@endif
|
||||
<div class="media-body">
|
||||
<h4 class="media-heading">{{is_object($top->$stat['prop']) ? $top->$stat['prop']->name : dd($top)}}</h4>
|
||||
<h4 class="media-heading">{{is_object($top->$prop) ? $top->$prop->name : dd($top)}}</h4>
|
||||
<b>{{$top->count}}</b> {{$top->count ==1 ? $stat['entr'][0] : $stat['entr'][1] }}
|
||||
</div>
|
||||
</div>
|
||||
@foreach($stat['vals'] as $top)
|
||||
<?php $prop = $stat['prop']; ?>
|
||||
<div style="margin-top: 10px;">
|
||||
@if($stat['type'] === "User")
|
||||
<div class="pull-left" style="margin-right:5px">
|
||||
<img class="img-circle media-object" src="{{$top->$stat['prop']->getAvatar()}}" width="20">
|
||||
<img class="img-circle media-object" src="{{$top->$prop->getAvatar()}}" width="20">
|
||||
</div>
|
||||
@endif
|
||||
@if($stat['type'] === "Film")
|
||||
<div class="pull-left" style="margin-right:5px">
|
||||
<img class="media-object" src="{{$top->$stat['prop']->getPoster()}}" height="20">
|
||||
<img class="media-object" src="{{$top->$prop->getPoster()}}" height="20">
|
||||
</div>
|
||||
@endif
|
||||
<div class="media-body">
|
||||
<h5 class="media-heading">{{$top->$stat['prop']->name}} — <b>{{$top->count}}</b> {{$top->count ==1 ? $stat['entr'][0] : $stat['entr'][1] }}</h5>
|
||||
<h5 class="media-heading">{{$top->$prop->name}} — <b>{{$top->count}}</b> {{$top->count ==1 ? $stat['entr'][0] : $stat['entr'][1] }}</h5>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
|
Reference in New Issue
Block a user