Permalink
Browse files

Initial commit of software files to GitHub.

  • Loading branch information...
ihofmann committed Apr 13, 2015
1 parent 4b7293f commit 1fe6e313e07886ede5c122bc766dd3f60e7cb8ed
Showing 1,479 changed files with 224,377 additions and 1 deletion.
View
@@ -0,0 +1,12 @@
release
websoccer/cache/*
websoccer/uploads/buildings/*
websoccer/uploads/club/*
websoccer/uploads/cup/*
websoccer/uploads/player/*
websoccer/uploads/sponsor/*
websoccer/uploads/stadium/*
websoccer/uploads/stadiumbuilder/*
websoccer/uploads/stadiumbuilding/*
websoccer/uploads/users/*
.gradle
View
@@ -21,5 +21,5 @@ You can reach Ingo via: Ingo ( at ) websoccer- sim.com.
Find out how you install, setup and enhance the software at the [Wiki](https://github.com/ihofmann/open-websoccer/wiki/00.-Home).
You found a bug or have an idea for a new feature? Then don't hesitate to open an issue at the [Issue Tracker](https://github.com/ihofmann/open-websoccer/wiki/issues).
You found a bug or have an idea for a new feature? Then don't hesitate to open an issue at the [Issue Tracker](https://github.com/ihofmann/open-websoccer/issues).
View
@@ -0,0 +1,77 @@
def releaseVersion = "5.2.2"
def targetDirBase = './release/' + releaseVersion + '/'
def targetDir = targetDirBase + "/websoccer"
def targetUpdateDir = targetDirBase + '/update/websoccer'
task release << {
println 'Starting release. Make sure you disabled DEBUG mode in software.'
}
release << {
versionfile = new File('./websoccer/admin/config/version.txt')
versionfile.text = releaseVersion
println 'Updated version file'
}
release << {
copy {
from './websoccer'
into targetDir
exclude '.gradle'
exclude '.settings'
exclude '.buildpath'
exclude '.project'
exclude 'dberrorlog.txt'
exclude 'admin/dberrorlog.txt'
exclude 'build.gradle'
exclude 'cache/*'
exclude 'update'
exclude 'uploads/club/*'
exclude 'uploads/cup/*'
exclude 'uploads/player/*'
exclude 'uploads/sponsor/*'
exclude 'uploads/stadiumbuilder/*'
exclude 'uploads/stadium/*'
exclude 'uploads/stadiumbuilding/*'
exclude 'uploads/users/*'
}
println 'Copied files'
}
release << {
configfile = new File(targetDir + '/admin/config/config.inc.php')
configfile.text = ''
imprintfile = new File(targetDir + '/admin/config/imprint.php')
imprintfile.text = 'n.a.'
adminlog = new File(targetDir + '/admin/config/adminlog.php')
adminlog.text = ''
entitylog = new File(targetDir + '/admin/config/entitylog.php')
entitylog.text = ''
println 'Emptied files'
}
release << {
copy {
from './websoccer'
include 'classes/**'
include 'admin/config/version.txt'
include 'update/**'
into targetUpdateDir
}
println 'Copied files for update'
}
task build(dependsOn: release) {
}
@@ -0,0 +1,33 @@
<?php
/******************************************************
This file is part of OpenWebSoccer-Sim.
OpenWebSoccer-Sim is free software: you can redistribute it
and/or modify it under the terms of the
GNU Lesser General Public License
as published by the Free Software Foundation, either version 3 of
the License, or any later version.
OpenWebSoccer-Sim is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with OpenWebSoccer-Sim.
If not, see <http://www.gnu.org/licenses/>.
******************************************************/
// execute transfer
DirectTransfersDataService::executeTransferFromOffer($website, $db, $website->getRequestParameter('id'));
// remove pending state
$db->queryUpdate(array('admin_approval_pending' => '0'), $website->getConfig('db_prefix') . '_transfer_offer',
'id = %d', $website->getRequestParameter('id'));
// create success message
echo createSuccessMessage($i18n->getMessage('transferoffer_approval_success'), '');
?>
@@ -0,0 +1,64 @@
<?php
/******************************************************
This file is part of OpenWebSoccer-Sim.
OpenWebSoccer-Sim is free software: you can redistribute it
and/or modify it under the terms of the
GNU Lesser General Public License
as published by the Free Software Foundation, either version 3 of
the License, or any later version.
OpenWebSoccer-Sim is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with OpenWebSoccer-Sim.
If not, see <http://www.gnu.org/licenses/>.
******************************************************/
define('OVERVIEW_SITE_SUFFIX', '_overview');
define('JOBS_CONFIG_FILE', BASE_FOLDER . '/admin/config/jobs.xml');
define('LOG_TYPE_EDIT', 'edit');
define('LOG_TYPE_DELETE', 'delete');
include(BASE_FOLDER . '/admin/config/global.inc.php');
include(BASE_FOLDER . '/admin/functions.inc.php');
include(CONFIGCACHE_FILE_ADMIN);
// request parameters
$site = (isset($_REQUEST['site'])) ? $_REQUEST['site'] : '';
$show = (isset($_REQUEST['show'])) ? $_REQUEST['show'] : FALSE;
$action = (isset($_REQUEST['action'])) ? $_REQUEST['action'] : null;
// log in user
if (SecurityUtil::isAdminLoggedIn()) {
$columns = '*';
$fromTable = $conf['db_prefix'] .'_admin';
$whereCondition = 'id = %d';
$parameters = $_SESSION['userid'];
$result = $db->querySelect($columns, $fromTable, $whereCondition, $parameters);
$admin = $result->fetch_array();
$result->free();
} else {
header('location: login.php?forwarded=1');
exit;
}
// include messages
$i18n = I18n::getInstance($website->getConfig('supported_languages'));
if ($admin['lang']) {
try {
$i18n->setCurrentLanguage($admin['lang']);
} catch (Exception $e) {
// ignore and use default language
}
}
include(sprintf(CONFIGCACHE_ADMINMESSAGES, $i18n->getCurrentLanguage()));
include(sprintf(CONFIGCACHE_ENTITYMESSAGES, $i18n->getCurrentLanguage()));
header('Content-type: text/html; charset=utf-8');
@@ -0,0 +1,2 @@
before_script: cd ./tests
script: phantomjs run-qunit.js tests.html
Oops, something went wrong.

0 comments on commit 1fe6e31

Please sign in to comment.