mirror of
https://github.com/Mistake35/Cedar-Django.git
synced 2026-07-18 00:21:14 +10:00
The first steps or whatever
balls
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
@@ -0,0 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class MaintenanceConfig(AppConfig):
|
||||
name = 'maintenance'
|
||||
@@ -0,0 +1,37 @@
|
||||
from django.shortcuts import render
|
||||
from closedverse_main.models import User
|
||||
from django.conf import settings
|
||||
|
||||
in_maintenance = False
|
||||
|
||||
class MaintenanceManagement():
|
||||
"""Maintenance Management"""
|
||||
|
||||
def __init__(self, get_response):
|
||||
self.get_response = get_response
|
||||
|
||||
def __call__(self, request):
|
||||
response = self.get_response(request)
|
||||
current_url = request.path_info
|
||||
SURL = settings.STATIC_URL
|
||||
|
||||
if(in_maintenance):
|
||||
if SURL in current_url:
|
||||
return response
|
||||
else:
|
||||
return render(request, 'mv.html')
|
||||
else:
|
||||
return response
|
||||
'''
|
||||
try:
|
||||
if SURL in current_url:
|
||||
return response
|
||||
elif not(User.is_staff(request.user)):
|
||||
return render(request, 'mv.html')
|
||||
else:
|
||||
return response
|
||||
except:
|
||||
return render(request, 'mv.html')
|
||||
else:
|
||||
return response
|
||||
'''
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
@@ -0,0 +1 @@
|
||||
<p>down for a few fixing stuffs rn brb i guess</p>
|
||||
@@ -0,0 +1,5 @@
|
||||
{% extends "closedverse_main/layout.html" %}
|
||||
{% load static %}
|
||||
{% load closedverse_tags %}{% block main-body %}
|
||||
{% nocontent "Website SUSpended by Cloudflare for (extreme) bullying and harassment!" %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,42 @@
|
||||
<html lang="en" data-lt-installed="true"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link rel="stylesheet" type="text/css" href="cid:[email protected]">
|
||||
|
||||
<title>Cedar</title>
|
||||
<link href="https://web.archive.org/web/20190311224941im_/https://i.miiverse.nintendo.net/favicon.ico" rel="shortcut icon">
|
||||
<link href="https://web.archive.org/web/20190311224941cs_/https://miiverse.nintendo.net/css/miiverse.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body class="simple-wrapper simple-wrapper-content">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="wrapper">
|
||||
<div id="main-body">
|
||||
<div class="closed-container">
|
||||
<div class="closed-content">
|
||||
<img alt="Cedar" class="logo" src="https://cedar.doctor/s/img/menu-logo.png">
|
||||
<p>Thank you to everyone who used Cedar! Cedar service was hacked.</p>
|
||||
|
||||
<div class="mosaic">
|
||||
<a href="https://web.archive.org/web/20190311224941/https://i.miiverse.nintendo.net/thank_you.png">
|
||||
<img src="https://web.archive.org/web/20190311224941im_/https://i.miiverse.nintendo.net/thank_you_thumbnail.jpg">
|
||||
</a>
|
||||
<p>This mosaic was created with handwritten posts from Miiverse users. You can enlarge the image by clicking on it.</p>
|
||||
</div>
|
||||
<div class="notice">
|
||||
<h2>For users who requested their downloadable post history:</h2>
|
||||
<ul>
|
||||
<li>I have the Cedar database. Not even Cedar was safe from us!</li>
|
||||
<li>Death to all Miiverse clones!</li>
|
||||
{% if request.user.is_authenticated %}<li>{{ request.user.username }}, You're next!</li>{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</body></html>
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Reference in New Issue
Block a user