ialexpw / virocms Goto Github PK
View Code? Open in Web Editor NEWViroCMS is a simple PHP / SQLite CMS
Home Page: https://viro.app
License: MIT License
ViroCMS is a simple PHP / SQLite CMS
Home Page: https://viro.app
License: MIT License
Backups need to be cleaned up after a restore as it will leave folders in that cannot be removed.
app\tpl\create-user.php
# Permissions
if(!Viro::Permission('users')) { # 1
Viro::LoadPage('access');
}
global $l;
$Connect = Viro::Connect();
# Permissions
if(!Viro::Permission('users')) { # 2
Viro::LoadPage('access');
Performing the same verification twice. Probably a mistake
In the default configuration, access to the database is possible from the level of a web browser, and thus obtaining the password hash for the administrator and other users:
http://server.tld/app/db/viro.db
It is suggested to move the database under docroot so that access uusing browser won't be possible.
app\viro.app.php
/**
* Viro::CheckUpdate()
* Check if updates are available using Viro::Version() and the website
*/
public static function CheckUpdate() {
# Get the current version
$getVer = file_get_contents('https://viro.app/version.txt'); # 1
# Get our version
$locVer = explode('-', Viro::Version());
$locVer = str_replace('v', '', $locVer[0]);
# true = update available
if($getVer != $locVer) { # 2
return true;
}else{
return false;
}
}
When version.txt [1] is not accessible (as it is at the moment) condition will return true [2] suggesting that there is a new version to download, and in fact there was no correct version comparison at all. In case of unavailability of resources, further comparsion makes no sense
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.