Commit 418463f8 by netz.coop

freeSN Initial Commit under GPLv3

0 parents
Showing with 2679 additions and 0 deletions

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

Tools/FormSaveMail/config_FormSaveMail.php
include/config.php
Temp/
nbproject/
files/
No preview for this file type
No preview for this file type
<html>
<head>
<title> Impressum, Kontakt</title>
</head>
<body>
<br/>
<h1>Verantwortlich </h1>
Strasse Hausnummer<br />
PLZ Stadt<br />
<br />
<b>Telefon:</b><br />
Rufnummer: Nummer <br />
<br />
<b>Vorstand:</b> Person<br />
<b>Kontakt:</b> MAIL<br />
<br />
<b>Rechtliche Hinweise:</b>
<p>Sofern nicht anders gekennzeichnet, stehen die Texte, Bilder, Grafiken dieser Seite unter dem Copyright des jeweiligen Autors und sind verfügbar unter Creative Commons Attribution 3.0. Autoren sind mit vollem Namen oder Usernamen zu zitieren.</p>
<p>Für Inhalte externer Links bzw. Webseiten kann VERANTWORTLICH keine Verantwortung übernehmen und distanziert sich von diesen Inhalten ausdrücklich. Ausgeschlossen ist auch eine Haftung oder Garantie für die Aktualität, Richtigkeit und Vollständigkeit der zur Verfügung gestellten Informationen.</p>
</body>
</html>
/**
* @category freeSN
* @mailto code [at] netz.coop
* @version 0.4.200901
* @link http://netz.coop
*
* @copyright Copyright by netz.coop e.G. 2015
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
\ No newline at end of file
Demo Version:
https://freesn.netz.coop/
Hinweise:
http://vosp.info/index.php/Freesn
\ No newline at end of file
--DROP TABLE IF EXISTS tool_EmailList;
CREATE TABLE tool_EmailList (
ID int(11) UNSIGNED NOT NULL,
NickName varchar(20) NOT NULL,
EMail varchar(256) NOT NULL,
FirstName varchar(150) NOT NULL,
SurName varchar(100) NOT NULL,
Text text NOT NULL,
KindOfList varchar(20) NOT NULL,
CreateDate timestamp NOT NULL default CURRENT_TIMESTAMP,
PRIMARY KEY (ID),
UNIQUE (NickName,KindOfList)
) ENGINE=InnoDB;
INSERT INTO tool_EmailList (ID, NickName, EMail, FirstName, SurName, Text, KindOfList) VALUES ('0', 'NickName', 'EMail', 'FirstName', 'SurName', 'Text', 'KindOfList');
select 'CREATE FUNCTION tool_insertEmailToList(...) RETURNS INT';
DROP FUNCTION IF EXISTS tool_insertEmailToList;
DELIMITER '$';
CREATE FUNCTION tool_insertEmailToList(param_NickName varchar(20), param_EMail varchar(256), param_FirstName varchar(150), param_SurName varchar(100), param_Text text, param_KindOfList varchar(20))
RETURNS INT
DETERMINISTIC
BEGIN
DECLARE var_NewID INT;
set var_NewID=(select max(ID) as ID from tool_EmailList)+1;
INSERT INTO tool_EmailList (ID, NickName, EMail, FirstName, SurName, Text, KindOfList)
VALUES (var_NewID, param_NickName, param_EMail, param_FirstName, param_SurName, param_Text, param_KindOfList);
return var_NewID;
END;
$
DELIMITER ;
\ No newline at end of file
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*?)(/.*|)$ index.php?KindOfList=$1 [QSA,L]
\ No newline at end of file
<?
$_LOSP_STORABLE_DATA = array();
$_LOSP_STORABLE_DATA["config_user"] = "mc";
$_LOSP_STORABLE_DATA["config_passwd"] = "losppassword";
$_LOSP_STORABLE_DATA["config_db"] = "lospdb_mc";
$_LOSP_STORABLE_DATA["config_dbserver"] = "localhost";
$_LOSP_STORABLE_KINDOF = 'MySql';
$_LOSP_PATH_TO_ROOT = '../../';
$_LOSPDIR = $_LOSP_PATH_TO_ROOT;
$_PEARDIR = '/var/www/php/';
$_LOSP_DEV = true;
$_KINDOFEMAILLIST = array(
'economy' => array( 'password' => 'solidarity' ),
'all' => null
);
$_TOOL_MAILADMIN = 'kontakt@mensch.coop';
$_LOSP_CHARSET='utf-8';
$GLOBALS['class'] = array(
/**
* DataBas
*/
'StorableFactory' => $_LOSPDIR . 'include/System/php/DataBase/class_StorableFactory.inc.php',
'PDOLevel' => $_LOSPDIR . 'include/System/php/DataBase/class_PDOLevel.inc.php',
'DataTransformator' => $_LOSPDIR . 'include/System/php/DataBase/class_DataTransformator.inc.php',
/**
* DataBase/MySql
*/
'BasicMySql' => $_LOSPDIR . 'include/System/php/DataBase/MySql/class_BasicMySql.inc.php',
'PDOFunction' => $_LOSPDIR . 'include/System/php/DataBase/class_PDOFunction.inc.php',
'PDOProtected' => $_LOSPDIR . 'include/System/php/DataBase/class_PDOProtected.inc.php',
'MySql' => $_LOSPDIR . 'include/System/php/DataBase/MySql/class_MySql.inc.php',
'PDOSRequest' => $_LOSPDIR . 'include/System/php/DataBase/class_PDOSRequest.inc.php',
'iStorable' => $_LOSPDIR . 'include/System/php/Interfaces/if_iStorable.inc.php',
'aStorable' => $_LOSPDIR . 'include/System/php/Interfaces/if_iStorable.inc.php',
// 'aServiceStorable' => $_LOSPDIR . 'include/System/php/Interfaces/if_iStorable.inc.php',
'iBasicSql' => $_LOSPDIR . 'include/System/php/Interfaces/if_iBasicSql.inc.php',
'D' => $_LOSPDIR . "include/System/php/DevTools/class_D.inc.php",
'HTML_QuickForm2' => '/usr/share/php/HTML/QuickForm2.php',
);
function __autoload($klasse) {
if (isset($GLOBALS['class'][$klasse])) {
require_once $GLOBALS['class'][$klasse];
}
}
?>
<?
require_once("config_FormSaveMail.php");
header('Content-Type: text/html; charset='.$_LOSP_CHARSET);
function check_password($password) {
global $_KINDOFEMAILLIST;
return ($password == $_KINDOFEMAILLIST[$_POST['KindOfList']]['password']);
}
$DB = StorableFactory::create($_LOSP_STORABLE_KINDOF, $_LOSP_STORABLE_DATA);
if(array_key_exists($_GET['KindOfList'], $_KINDOFEMAILLIST) || array_key_exists($_POST['KindOfList'], $_KINDOFEMAILLIST)) {
if($_GET['KindOfList']) {
$var_KindOfList = $_GET['KindOfList'];
} else {
$var_KindOfList = $_POST['KindOfList'];
}
$quickform = new HTML_QuickForm2('FormSaveMail');
$quickform->addDataSource(new HTML_QuickForm2_DataSource_Array(array(
'KindOfList' => $var_KindOfList,
)));
$fsText = $quickform->addElement('fieldset')->setLabel('Registrierung / Enregistrement');
$qf_KindOfList = $fsText->addElement('text', 'KindOfList', array('style' => 'width: 300px;'), array('label' => 'Art der Liste / Type de liste:'));
$qf_KindOfList->addRule('required', '<b>:-( Email ist ein Pflichtfeld!!!</b>');
$qf_Email = $fsText->addElement('text', 'Email', array('style' => 'width: 300px;'), array('label' => 'Mail:'));
$qf_Email->addRule('required', '<b>:-( Email ist ein Pflichtfeld!!!</b>');
$qf_NickName = $fsText->addElement('text', 'NickName', array('style' => 'width: 300px;'), array('label' => 'NickName / Pseudo:'));
$qf_NickName->addRule('required', '<b>:-( NickName ist ein Pflichtfeld!!!</b>');
$fsText->addElement('text', 'FirstName', array('style' => 'width: 300px;'), array('label' => 'Vorame / Prénom:'));
$fsText->addElement('text', 'SurName', array('style' => 'width: 300px;'), array('label' => 'Nachname / Nom de famille:'));
$area = $fsText->addElement(
'textarea', 'Note', array('style' => 'width: 300px;', 'cols' => 50, 'rows' => 7),
array('label' => 'Notiz / Notes supplémentaires:')
);
if(is_array($_KINDOFEMAILLIST[$var_KindOfList]) && array_key_exists('password', $_KINDOFEMAILLIST[$var_KindOfList]) && $_KINDOFEMAILLIST[$var_KindOfList]['password']) {
$fsText = $quickform->addElement('fieldset')->setLabel('Passwort geschützte Liste');
$qf_Password = $fsText->addElement('password', 'pwdTest', array('style' => 'width: 300px;'), array('label' => 'Passwort:'));
$qf_Password->addRule('required', '<b>:-( Passwort ist ein Pflichtfeld!!!</b>');
$qf_Password->addRule('empty')->or_($qf_Password->createRule('callback', '<b>Passwort falsch!!!!!!!!!!</b>', 'check_password'));
}
$fsButton = $quickform->addElement('fieldset')->setLabel('Buttons');
$testReset = $fsButton->addElement( 'reset', 'testReset', array('value' => 'Abbrechen / Annuler') );
$fsButton->addElement( 'button', 'SubmitButton', array('type' => 'submit'), array('content' => '<img src="logo.png" width="46" height="35" alt="pear" />Fertig / Fini') );
}
?>
<html>
<head>
<style type="text/css">
body {
margin-left: 10px;
font-family: Arial, sans-serif;
font-size: small;
}
.quickform {
min-width: 350px;
max-width: 600px;
width: 350px;
}
</style>
<title>EMail Liste / Liste de mail: "<?=$var_KindOfList?>"</title>
</head>
<body>
<?
if($quickform) {
?>
<h2>EMail Liste "<?=$var_KindOfList?>"</h2>
<?
if ($quickform->validate()) {
$var_bindValueArray = array(
':NickName' => $_POST['NickName'],
':EMail' => $_POST['Email'],
':FirstName' => $_POST['FirstName'],
':SurName' => $_POST['SurName'],
':Text' => $_POST['Note'],
':KindOfList' => $_POST['KindOfList'],
);
$var_query = 'SELECT tool_insertEmailToList(:NickName, :EMail, :FirstName, :SurName, :Text, :KindOfList) AS ID';
$stmt = $DB->PDO_query($var_query, $var_bindValueArray);
$row = $DB->PDO_getResultRow($stmt);
$param_subject = '[mensch.coop][maillist]['.$var_KindOfList.'] '.$_POST['Email'].'';
$param_message = ":-) ".$_POST['Email']." wurde erfolgreich in die ".$var_KindOfList." Liste eingetragen \n\n
\t NickName = ".$_POST['NickName']." \n
\t EMail = ".$_POST['Email']." \n
\t FirstName = ".$_POST['FirstName']." \n
\t SurName = ".$_POST['SurName']." \n
\t Text = ".$_POST['Note']." \n
\t KindOfList = ".$_POST['KindOfList']." \n
";
//mail($_TOOL_MAILADMIN, $param_subject, $param_message);
include('Mail.php');
include('Mail/mime.php');
$mail = Mail::factory("mail");
$headers = array("From"=> $_TOOL_MAILADMIN,'Return-Path'=> $_TOOL_MAILADMIN,"To"=> $_TOOL_MAILADMIN, "Subject"=> $param_subject,'Date' => date("r") );
$smtp = Mail::factory('smtp', $_TOOL_SMTP);
$mime = new Mail_mime($param_crlf);
$mime->setTXTBody($param_message);
$body = $mime->get();
$headers = $mime->headers($headers);
$result =$smtp->send($_TOOL_MAILADMIN,$headers,$body);
if($row['ID']) {
echo ':-) '.$_POST['Email'].' wurde erfolgreich in die '.$var_KindOfList.' Liste eingetragen';
} else {
echo ':-( '.$_POST['Email'].' wurde nicht erfolgreich in die '.$var_KindOfList.' Liste eingetragen';
D::show($var_bindValueArray);
}
} else {
echo $quickform;
}
}
?>
</body>
</html>
<?
require_once("config_FormSaveMail.php");
header('Content-Type: text/html; charset='.$_LOSP_CHARSET);
function check_password($password) {
global $_KINDOFEMAILLIST;
return ($password == $_KINDOFEMAILLIST[$_POST['KindOfList']]['password']);
}
$DB = StorableFactory::create($_LOSP_STORABLE_KINDOF, $_LOSP_STORABLE_DATA);
if(array_key_exists($_GET['KindOfList'], $_KINDOFEMAILLIST) || array_key_exists($_POST['KindOfList'], $_KINDOFEMAILLIST)) {
if($_GET['KindOfList']) {
$var_KindOfList = $_GET['KindOfList'];
} else {
$var_KindOfList = $_POST['KindOfList'];
}
$quickform = new HTML_QuickForm2('FormSaveMail');
$quickform->addDataSource(new HTML_QuickForm2_DataSource_Array(array(
'KindOfList' => $var_KindOfList,
)));
$fsText = $quickform->addElement('fieldset')->setLabel('Registrierung');
$qf_KindOfList = $fsText->addElement('text', 'KindOfList', array('style' => 'width: 300px;'), array('label' => 'Art der Liste:'));
$qf_KindOfList->addRule('required', '<b>:-( Email ist ein Pflichtfeld!!!</b>');
$qf_Email = $fsText->addElement('text', 'Email', array('style' => 'width: 300px;'), array('label' => 'Email:'));
$qf_Email->addRule('required', '<b>:-( Email ist ein Pflichtfeld!!!</b>');
$qf_NickName = $fsText->addElement('text', 'NickName', array('style' => 'width: 300px;'), array('label' => 'NickName:'));
$qf_NickName->addRule('required', '<b>:-( NickName ist ein Pflichtfeld!!!</b>');
$fsText->addElement('text', 'FirstName', array('style' => 'width: 300px;'), array('label' => 'Vorame:'));
$fsText->addElement('text', 'SurName', array('style' => 'width: 300px;'), array('label' => 'Nachname:'));
$area = $fsText->addElement(
'textarea', 'Note', array('style' => 'width: 300px;', 'cols' => 50, 'rows' => 7),
array('label' => 'Notiz:')
);
if(is_array($_KINDOFEMAILLIST[$var_KindOfList]) && array_key_exists('password', $_KINDOFEMAILLIST[$var_KindOfList]) && $_KINDOFEMAILLIST[$var_KindOfList]['password']) {
$fsText = $quickform->addElement('fieldset')->setLabel('Passwort geschützte Liste');
$qf_Password = $fsText->addElement('password', 'pwdTest', array('style' => 'width: 300px;'), array('label' => 'Passwort:'));
$qf_Password->addRule('required', '<b>:-( Passwort ist ein Pflichtfeld!!!</b>');
$qf_Password->addRule('empty')->or_($qf_Password->createRule('callback', '<b>Passwort falsch!!!!!!!!!!</b>', 'check_password'));
}
$fsButton = $quickform->addElement('fieldset')->setLabel('Buttons');
$testReset = $fsButton->addElement( 'reset', 'testReset', array('value' => 'Abbrechen') );
$fsButton->addElement( 'button', 'SubmitButton', array('type' => 'submit'), array('content' => '<img src="logo.png" width="46" height="35" alt="pear" />Fertig') );
}
?>
<html>
<head>
<style type="text/css">
body {
margin-left: 10px;
font-family: Arial, sans-serif;
font-size: small;
}
.quickform {
min-width: 350px;
max-width: 600px;
width: 350px;
}
</style>
<title>EMail Liste "<?=$var_KindOfList?>"</title>
</head>
<body>
<?
if($quickform) {
?>
<h2>EMail Liste "<?=$var_KindOfList?>"</h2>
<?
if ($quickform->validate()) {
$var_bindValueArray = array(
':NickName' => $_POST['NickName'],
':EMail' => $_POST['Email'],
':FirstName' => $_POST['FirstName'],
':SurName' => $_POST['SurName'],
':Text' => $_POST['Note'],
':KindOfList' => $_POST['KindOfList'],
);
$var_query = 'SELECT tool_insertEmailToList(:NickName, :EMail, :FirstName, :SurName, :Text, :KindOfList) AS ID';
$stmt = $DB->PDO_query($var_query, $var_bindValueArray);
$row = $DB->PDO_getResultRow($stmt);
if($row['ID']) {
echo ':-) '.$_POST['Email'].' wurde erfolgreich in die '.$var_KindOfList.' Liste eingetragen';
$param_subject = '[mensch.coop][maillist]['.$var_KindOfList.'] '.$_POST['Email'].'';
$param_message = ":-) ".$_POST['Email']." wurde erfolgreich in die ".$var_KindOfList." Liste eingetragen \n\n
\t NickName = ".$_POST['NickName']." \n
\t EMail = ".$_POST['Email']." \n
\t FirstName = ".$_POST['FirstName']." \n
\t SurName = ".$_POST['SurName']." \n
\t Text = ".$_POST['Note']." \n
\t KindOfList = ".$_POST['KindOfList']." \n
";
mail($_TOOL_MAILADMIN, $param_subject, $param_message);
} else {
echo ':-( '.$_POST['Email'].' wurde nicht erfolgreich in die '.$var_KindOfList.' Liste eingetragen';
D::show($var_bindValueArray);
}
} else {
echo $quickform;
}
}
?>
</body>
</html>
php_flag engine off
RemoveHandler .cgi
<?
$_LOSP_DUMP_ACCOUNTS = '500';
require_once("../include/config.php");
$_LOSPDIR = $_LOSP_PATH_TO_ROOT = '../';
$_LOSP_DEV = false;
require_once("../include/System/php/RequireClass.inc.php");
require_once("generateAccounts_AccountData.php");
$var_filedir = 'Userfiles';
$var_http_filedir = $_SERVER['HTTP_HOST'];
$obj_ManipulateFiles = new ManipulateFiles($var_filedir);
$DB = StorableFactory::create($_LOSP_STORABLE_KINDOF, $_LOSP_STORABLE_DATA);
function count_mysqlrows($DB,$param_table='losp_BE_profile', $param_tag='start') {
$query = "SELECT COUNT(*) FROM ".$param_table." ;";
$stmt = $DB->PDO_query($query);
$i=0;
foreach($DB->PDO_fetchAll($stmt) as $spalten) {
$ary_keys= array_keys($spalten);
$out[$param_tag] = $spalten[$ary_keys[$i]];
$i++;
}
return $out[$param_tag];
}
$numOfNicks = count_mysqlrows($DB);
echo " numOfNicks: ".$numOfNicks;
if($_LOSP_DUMP_ACCOUNTS) {
$var_query = 'select max(ID) from losp_be_account';
$INPUT_Accounts = array ();
for($i=0; $i<$_LOSP_DUMP_ACCOUNTS;$i++) {
$var_passwd = Dump::genPassword(6);
$var_nick = 'nick' . $i;
$INPUT_Accounts[] = array(
'Account' => array(
'Password' => $var_passwd,
'EMail' => '@',
'FirstName' => ' '.$i, 'SurName' => ' '.$i,
'Street' => '', 'Streetnumber' => '', 'City' => '', 'ZipCode' => '',
),
'Profile' => array(
'NickName' =>$var_nick,
'EMail' => '@',
'Name' => 'Name','Avatar' => '','Signature' => '',
'Fingerprint' => '', 'Jabber' => '','Url' => '','Subject' => 'Subject','Text' => 'Text',
),
// 'BasisClipboards' => array( 'LocationBC' => array ( 'Name' => 'Osnabrück' ) ),
) ;
}
}
$count_createted = 0;
foreach($INPUT_Accounts as $var_data) {
if($var_data['Profile']['NickName'] && Profile::NickNameToID($DB, $var_data['Profile']['NickName'])==$var_data['Profile']['NickName']) {
$count_createted++;
{
$var_Profile = BasisElement::createNewInstance($DB, 'Profile', '');
$var_Profile->setData($HostAccount, $DB,$var_data['Profile']);
$var_Profile->saveObject($HostAccount, $DB);
}
if($var_Profile->getObjVar('ID')){
echo $count_createted.": $var_Profile Nickname: ".$var_data['Profile']['NickName']." -- ";
$var_Account = BasisElement::createNewInstance($DB, 'Account', '');
$var_data['Account']['ProfileID']=$var_Profile->getObjVar('ID');
$var_Account->setData($HostAccount, $DB, $var_data['Account']);
$var_Account->setPassword($var_data['Account']['Password']);
$var_Account->saveObject($var_Account, $DB);
echo "$var_Account \n";
if(array_key_exists('BasisClipboards', $var_data) && is_array($var_data['BasisClipboards'])) {
foreach($var_data['BasisClipboards'] as $var_BCName => $var_KeyValueArray) {
$var_BEName = CONFIG::getBC_MultimediaText($var_BCName);
$var_table = CONFIG::getSQL_Data($var_BEName, 'Tablename');
if($var_table && is_array($var_KeyValueArray)) {
$var_query = 'select MTextID from '.$var_table.' where ';
$var_tmp=false;
foreach($var_KeyValueArray as $var_Key => $var_Value) {
if($var_tmp) {
$var_query .= ' and ';
}
$var_query .= ' '.$var_Key.'=\''.$var_Value.'\' ';
$var_tmp =true;
}
$Resource = $DB->PDO_query($var_query);
if($Resource) {
foreach($DB->PDO_fetchAll($Resource) as $row) {
$var_query_BCinsert='select insertMTextIntoClipboard('.$var_Profile->getObjVar('ID').', '.$var_Profile->getObjVar('ID').', '.$row['MTextID'].', \''.$var_BCName.'\', \'\', \'unreaded\')';
echo "\t ".$var_query_BCinsert." \n";
$Resource1 = $DB->PDO_query($var_query_BCinsert);
}
}
}
}
}
$string = ' nick: '.$var_data['Profile']['NickName']. " pw: ".$var_data['Account']['Password'] .'
' ;
$var_filename = 'GenUsers.txt';
$obj_ManipulateFiles->fileputs($var_filename,$string);
} else {
echo "0: $var_Profile Nickname: ".$var_data['Profile']['NickName']." \n";
}
} else if(!$var_data['Profile']['NickName']) {
echo " Profile Nickname ".$var_data['Profile']['NickName']." ist leer!! \n";
} else {
echo " Profile Nickname ".$var_data['Profile']['NickName']." existiert schon!! ID(".Profile::NickNameToID($DB, $var_data['Profile']['NickName']).") \n";
}
}
echo "\n".$count_createted." Account/Profile wurden erstellt [$count_createted/".count($INPUT_Accounts)."] \n";
?>
<?
require_once("../../../include/config.php");
$_LOSPDIR = $_LOSP_PATH_TO_ROOT = '../../../';
$_LOSP_DEV = false;
require_once($_LOSPDIR."include/System/php/RequireClass.inc.php");
//require_once("generateBasisElement_ExampleData.php");
require_once 'generateBasisElement_VossUrlBEData.php';
$DB = StorableFactory::create($_LOSP_STORABLE_KINDOF, $_LOSP_STORABLE_DATA);
$HostAccount = BasisElement::createNewInstance($DB, 'Account', 0, $param_PartOf=null);
$HostAccount->setObjVar('ID', $Account_ID);
$HostAccount->loadObject($HostAccount, $DB);
$HostAccount->setObjVar('LoginState', true);
$HostAccount->loadMainProfile($DB);
$HostAccount->setAuthorProfileID($Account_ID);
CONFIG::generateSocialNetworkTree($HostAccount, $DB);
$result = Controller::doGeneralBefore($HostAccount, $DB, CONFIG::getSocialNetworkTree());
print_r($result);
echo "\n Account_ID=$Account_ID;\n AuthorProfileID=$AuthorProfileID;\n PartOfID=$PartOfID\n";
//foreach($result['makeNew'] as $key) {
//
//}
//file_put_contents('test.txt','####');
?>
\ No newline at end of file
<?
$Account_ID = 6;
$AuthorProfileID = 13;
/**
* @todo wenn Controller::doUebergangFormAuthorisationListManipulation terminiert wird muss auch hier aktualisiert werden 100731|f
*/
$_POST = array (
'makeNew' => array(
array(
'BEName' => array(
'UrlBE' => array(
'MTextID' => null,
'PartOfID' => $AuthorProfileID,
'losp_classname' => 'UrlBE',
'Subject' => '1234___NEWSubject',
'LanguageCode' => 'deu',
'Url' => 'http://www.heise.de',
'Text' => 'Textt',
'TagCloud' => array(
'form_newTag' => 'Tag1____, Tag2____'
),
'BECategoryChoiceBEID' => null,
'Category' => array (
'form_newCategory' => 'cat1____, cat2____'
),
'AuthorProfileID' => $AuthorProfileID,
'ReadNickName' => null,
// 'ReadKind' => 'log',
// 'WriteSelected' => array(
// 0 => $AuthorProfileID
// ),
'WriteNickName' => null,
'RightManagement' => array(
'RightManagementBC' => array(
'RightManagementValues' => array(
'TagContentList' => array(
'BCReadRight' => 'a',
'BCWriteRight' => 'w',
),
'CategoryContentList' => array(
'BCReadRight' => 'a',
'BCWriteRight' => 'w',
),
'LinkList' => array(
'BCReadRight' => 'r',
'BCWriteRight' => 'w',
),
'ThreadBC' => array(
'BCReadRight' => 'a',
'BCWriteRight' => 'w',
),
)
)
),
'Submit' => 'OK'
)
),
'AddToLinkList' => array(
0 => array(
'UrlBC' => 'AuthorProfileID'
),
1 => array(
'UrlBC' => 6 // 8 => 'SocialMovement',
),
2 => array(
'UrlBC' => 8 // 8 => 'Economy',
)
)
)
)
);
?>
<?php
$min = 0;
$max = 100;
ini_set('error_reporting', false);
$useTitle = false;
require('../links2scan/scanTheLinksFromVoss.php');
$FILE='../links2scan/ooexport.html';
$_LOSP_CHARSET='utf-8';
$GLOBALS['nichtgefunden'] = 0;
$Result_array = readFormatedFile($FILE);
//print_r($Result_array);
$Account_ID = 173;
$AuthorProfileID = 396;
$PartOfID = 1872;
$_POST = array ( 'makeNew' => array() );
$AddToLinkList = array(
0 => array(
'UrlBC' => 'AuthorProfileID'
),
1 => array(
'UrlBC' => $PartOfID
),
// 2 => array(
// 'UrlBC' => 8 // 8 => 'Economy',
// )
);
$USENOT = array( 'Vorwort', 'Einleitung', 'Ausblick', 'Zur Autorin' );
$TAG2TAG = array(
'Wasser und Abwasser' => 'Wasser'
) ;
$CAT2CAT = array(
'Weltbilder und Menschenbilder für eine andere Welt' => 'Welt-/Menschenbilder',
'Aspekte Solidarischen Wirtschaftens' => 'Aspekte',
'Zur Geschichte Solidarischer Ökonomien in Deutschland' => 'Geschichte',
'Anders Arbeiten, anders Wohnen' => 'Arbeiten/Wohnen',
'Frauenbetriebe und -projekte' => 'Frauenprojekte',
'Was Menschen zum Leben brauchen' => 'Lebensgrundlagen',
'Gartenbau, Landwirtschaft und Ernährung' => 'Landwirtschaft',
'Genossenschaften' => 'Genossenschaften',
// 'Wer erklärt die Welt?' => 'Wer erklärt die Welt?',
'Solidarisch Wirtschaften mit und ohne Geld' => 'Wirtschaften',
'Vernetzungszusammenhänge, Verbände und Unterstützungsstrukturen' => 'Strukturen',
// 'Eine Welt' => 'Eine Welt',
);
$AlreadyIn = array();
/**
* @todo wenn Controller::doUebergangFormAuthorisationListManipulation terminiert wird muss auch hier aktualisiert werden 100731|f
*/
foreach ($Result_array as $i => $values) {
if($i>=$min && $i<=$max) {
if(array_search($values['link'], $AlreadyIn)===false) {
$Title = $TagList = $CatList = $Kapitel ='';
if($useTitle) {
$string = file_get_contents($values['link']);
preg_match('/<title>(.*)<\/title>/U', $string, $hits);
if(trim($hits[1])) {
$Title = '<p>Titel: '.utf8_encode($hits[1]).'</p>';
}
}
$Kapitel = $values['h1'];
// $TagList = getTag($values['h1']);
// $CatList = getCat($values['h1']);
if(array_key_exists('h2', $values)) {
$Kapitel .= ' => '.$values['h2'];
// $TagList .= getTag($values['h2']);
$CatList .= getCat($values['h2']);
}
if(array_key_exists('h3', $values)) {
$Kapitel .= ' => '.$values['h3'];
$TagList .= getTag($values['h3']);
// $CatList .= getCat($values['h3']);
}
echo "\n".$i.' '.$values['info']. "\n \t* Link: ".$values['link']." \n \t* Title: $Title\n \t* Text: ". $Kapitel ." ... \n\t* TagList: ". substr($TagList, 0, strlen($TagList)-2) ." \n\t* CatList: ".substr($CatList, 0, strlen($CatList)-2)." ";
$Text = $Title.'<p> aus der Linksammlung des Buches <b><a href="https://mensch.coop/index.php?p[]=showSingle&p[]=ID&p[]=1872&lang=deu">Wegweiser Solidarische Ökonomie ¡Anders Wirtschaften ist möglich!</a></b> von Elisabeth Voß <br/>
siehe Kapitel '.$Kapitel.'</p>';
$_POST['makeNew'][] =array(
'BEName' => array(
'UrlBE' => array(
'MTextID' => null,
'PartOfID' => $PartOfID, // $AuthorProfileID,
'losp_classname' => 'UrlBE',
'Subject' => $values['info'],
'LanguageCode' => 'deu',
'Url' => $values['link'],
'Text' => $Text,
'TagCloud' => array(
'form_newTag' => substr($TagList, 0, strlen($TagList)-2)
),
'BECategoryChoiceBEID' => null,
'Category' => array (
'form_newCategory' => substr($CatList, 0, strlen($CatList)-2),
// 'form_CategoryArray' => array( 3 )
),
'AuthorProfileID' => $AuthorProfileID,
'ReadNickName' => null,
'WriteNickName' => null,
'RightManagement' => array(
'RightManagementBC' => array(
'RightManagementValues' => array(
'TagContentList' => array(
'BCReadRight' => 'a',
'BCWriteRight' => 'w',
),
'CategoryContentList' => array(
'BCReadRight' => 'a',
'BCWriteRight' => 'w',
),
'LinkList' => array(
'BCReadRight' => 'r',
'BCWriteRight' => 'w',
),
'ThreadBC' => array(
'BCReadRight' => 'a',
'BCWriteRight' => 'u',
),
)
)
),
'Submit' => 'OK'
)
),
'AddToLinkList' => $AddToLinkList
);
$AlreadyIn[] = $values['link'];
}
}
}
function getTag($param_string) {
if(checkIsNotInList($param_string)) {
// echo "\n($param_string=";
global $TAG2TAG;
if(array_key_exists($param_string, $TAG2TAG)) {
// echo $TAG2TAG[$param_string]."\n)";
return $TAG2TAG[$param_string].', ';
}
if(strpos($param_string, ',')===false && strpos($param_string, 'und' )===false) {
// echo "$param_string\n)";
return $param_string.', ';
}
}
}
function getCat($param_string) {
if(checkIsNotInList($param_string)) {
global $CAT2CAT;
if(array_key_exists($param_string, $CAT2CAT)) {
return $CAT2CAT[$param_string].', ';
}
return $param_string.', ';
}
}
function checkIsNotInList($param_string) {
global $USENOT;
if(array_search($param_string, $USENOT) === false) {
return true;
} else {
return false;
}
}
?>
<?
require_once("../../../include/config.php");
$_LOSPDIR = $_LOSP_PATH_TO_ROOT = '../../../';
$_LOSP_DEV = false;
require_once("../../../include/System/php/RequireClass.inc.php");
$DB = StorableFactory::create($_LOSP_STORABLE_KINDOF, $_LOSP_STORABLE_DATA);
echo "\nrepair mensch.coop DB\n";
{
echo "* delete the losp_BasisElement_writeauthorisation entrys, where the ListID has not a losp_BasisElement entry \n ";
$stmt = $DB->PDO_query('select ListID, ProfileID, AuthWriteListID from losp_BasisElement_writeauthorisation left join losp_BasisElement on ListID=AuthWriteListID where ID is NULL');
if($stmt){
foreach($DB->PDO_fetchAll($stmt) as $row) {
$stmt = $DB->PDO_query('DELETE FROM losp_BasisElement_writeauthorisation WHERE ListID=:ListID and ProfileID=:ProfileID', array(':ListID' => $row['ListID'], ':ProfileID' => $row['ProfileID']));
$result = $DB->PDO_getResultRow($stmt);
echo '#'.$row['ListID'].'-'.$row['ProfileID'].'-'.$row['AuthWriteListID'].' ';
}
}
echo "\n => finish \n\n";
}
{
echo "* delete the losp_BasisElement_readauthorisation entrys, where the ListID has not a losp_BasisElement entry \n ";
$stmt = $DB->PDO_query('select ListID, ProfileID, AuthReadListID from losp_BasisElement_readauthorisation left join losp_BasisElement on ListID=AuthReadListID where ID is NULL');
if($stmt){
foreach($DB->PDO_fetchAll($stmt) as $row) {
$stmt = $DB->PDO_query('DELETE FROM losp_BasisElement_readauthorisation WHERE ListID=:ListID and ProfileID=:ProfileID', array(':ListID' => $row['ListID'], ':ProfileID' => $row['ProfileID']));
$result = $DB->PDO_getResultRow($stmt);
echo '#'.$row['ListID'].'-'.$row['ProfileID'].'-'.$row['AuthReadListID'].' ';
}
}
echo "\n => finish \n\n";
}
?>
<?php
require_once("../../../include/config.php");
$_LOSPDIR = $_LOSP_PATH_TO_ROOT = '../../../';
$_LOSP_DEV = false;
require_once("../../../include/System/php/RequireClass.inc.php");
$DB = StorableFactory::create($_LOSP_STORABLE_KINDOF, $_LOSP_STORABLE_DATA);
echo "\nrepair mensch.coop DB\n";
{
echo "* delete the losp_BasisClipboard entrys, where the PartOfID has not a losp_BasisElement entry \n ";
$stmt = $DB->PDO_query('select PartOfID from losp_BasisClipboard left join losp_BasisElement on PartOfID=ID where ID is NULL');
if($stmt){
foreach($DB->PDO_fetchAll($stmt) as $row) {
$stmt = $DB->PDO_query('DELETE FROM losp_BasisClipboard WHERE PartOfID=:PartOfID', array(':PartOfID' => $row['PartOfID']));
$result = $DB->PDO_getResultRow($stmt);
echo '#'.$row['PartOfID'].' ';
}
}
echo "\n => finish \n\n";
}
{
echo "* delete the losp_BasisClipboard entrys, where the AttachID has not a losp_BasisElement entry \n ";
$stmt = $DB->PDO_query('select AttachID from losp_BasisClipboard left join losp_BasisElement on AttachID=ID where ID is NULL');
if($stmt){
foreach($DB->PDO_fetchAll($stmt) as $row) {
$stmt = $DB->PDO_query('DELETE FROM losp_BasisClipboard WHERE AttachID=:AttachID', array(':AttachID' => $row['AttachID']));
$result = $DB->PDO_getResultRow($stmt);
echo '#'.$row['AttachID'].' ';
}
}
echo "\n => finish \n\n";
}
{
echo "* delete the losp_BE_topic entrys, where the MTextID has not a losp_BasisElement entry \n ";
$stmt = $DB->PDO_query('select MTextID, Name from losp_BE_topic left join losp_BasisElement on MTextID=ID where ID is NULL');
if($stmt){
foreach($DB->PDO_fetchAll($stmt) as $row) {
$stmt = $DB->PDO_query('DELETE FROM losp_BE_topic WHERE MTextID=:MTextID', array(':MTextID' => $row['MTextID']));
$result = $DB->PDO_getResultRow($stmt);
echo '#'.$row['MTextID'].'-'.$row['Name'].' ';
}
}
echo "\n => finish \n\n";
}
echo "* sql orders (100128_mensch.coop_repairDB.sql): INSERT INTO profile 3 and alter tables ....... \n ";;
$DB->transformFileToDatabase("100128_mensch.coop_repairDB.sql");
echo "\n\n";
?>
update losp_be_account set Password=SHA1('test') where ID=2;
update losp_be_account set Password=SHA1('test') where ID=3;
update losp_be_account set Password=SHA1('test') where ID=4;
update losp_be_account set Password=SHA1('test') where ID=5;
-- fuer das testsystem
INSERT INTO `losp_BE_profile` (`MTextID`, `NickName`, `EMail`, `Fingerprint`, `Jabber`, `Url`, `OnlineState`, `OnlineSince`, `Avatar`, `Signature`) VALUES (3, 'test2', 'test2@mensch.coop', 'ddddd', 'dddddd', 'dddddd', '1', 1264522148, 'dddddd', 'ddddddd ');
INSERT INTO `losp_BasisElement` (`ID`, `Author_ProfileID`, `Subject`, `Text`, `CreateDate`, `TagListID`, `BECategoryListID`, `BECategoryChoiceBEID`, `BasisElementDesignID`, `AuthReadListID`, `AuthWriteListID`, `ClassID`, `LanguageCode`) VALUES (3, 3, 'Paul Testing. Profile Subject2 2', 'Paul bla bal bla Beschreibungstext', '2009-12-31 11:26:58', 309, NULL, 9, 71, 0, 3, 23, 'deu');
insert into losp_BasisElement_writeauthorisation (ListID, ProfileID) values (3,3);
ALTER TABLE `losp_BasisClipboard` ADD INDEX ( `LinkerProfileID` ) ;
ALTER TABLE `losp_BasisClipboard` ADD FOREIGN KEY ( `LinkerProfileID` ) REFERENCES losp_BE_profile ( `MTextID` ) ON DELETE CASCADE ON UPDATE CASCADE ;
ALTER TABLE `losp_BasisClipboard` ADD FOREIGN KEY ( `PartOfID` ) REFERENCES losp_BasisElement ( `ID` ) ON DELETE CASCADE ON UPDATE CASCADE ;
ALTER TABLE `losp_BasisClipboard` ADD FOREIGN KEY ( `PartOfObjVarID` ) REFERENCES losp_BasisClipboard_objvar ( `PartOfObjVarID` ) ON DELETE CASCADE ON UPDATE CASCADE ;
ALTER TABLE `losp_BasisClipboard` ADD FOREIGN KEY ( `AttachID` ) REFERENCES losp_BasisElement ( `ID` ) ON DELETE CASCADE ON UPDATE CASCADE ;
ALTER TABLE `losp_BasisClipboard` ADD FOREIGN KEY ( `AttachStateID` ) REFERENCES losp_BasisClipboard_state ( `StateID` ) ON DELETE CASCADE ON UPDATE CASCADE ;
ALTER TABLE `losp_BasisClipboard` ADD FOREIGN KEY ( `CategoryID` ) REFERENCES losp_BasisClipboard_category ( `CategoryID` ) ON DELETE CASCADE ON UPDATE CASCADE ;
ALTER TABLE `losp_BE_topic` ADD FOREIGN KEY ( `MTextID` ) REFERENCES losp_BasisElement ( `ID` ) ON DELETE CASCADE ;
ALTER TABLE `losp_BE_location` ADD FOREIGN KEY ( `MTextID` ) REFERENCES losp_BasisElement ( `ID` ) ON DELETE CASCADE ON UPDATE CASCADE ;
ALTER TABLE `losp_BE_profile` ADD FOREIGN KEY ( `MTextID` ) REFERENCES losp_BasisElement ( `ID` ) ON DELETE CASCADE ON UPDATE CASCADE ;
ALTER TABLE `losp_BasisElementDesign` ADD INDEX ( `Author_ProfileID` ) ;
ALTER TABLE `losp_BasisElementDesign` ADD FOREIGN KEY ( `Author_ProfileID` ) REFERENCES losp_BE_profile ( `MTextID` ) ON DELETE SET NULL ON UPDATE CASCADE ;
ALTER TABLE `losp_BasisElementDesign_values` ADD FOREIGN KEY ( `ID` ) REFERENCES losp_BasisElementDesign ( `ID` ) ON DELETE CASCADE ON UPDATE CASCADE ;
ALTER TABLE `losp_BasisElement_categorynamelist` ADD INDEX ( `BECategoryGroupID` ) ;
ALTER TABLE `losp_BasisElement_categorynamelist` ADD FOREIGN KEY ( `BECategoryGroupID` ) REFERENCES losp_BasisElement_categorynamelist (`BECategoryID`) ON DELETE CASCADE ON UPDATE CASCADE ;
ALTER TABLE `losp_be_account` ADD INDEX ( `ProfileID` ) ;
ALTER TABLE `losp_be_account` ADD FOREIGN KEY ( `ProfileID` ) REFERENCES losp_BE_profile ( `MTextID` ) ON DELETE SET NULL ON UPDATE CASCADE ;
ALTER TABLE `losp_BE_treepart` DROP FOREIGN KEY `losp_BE_treepart_ibfk_1` ;
ALTER TABLE `losp_BE_treepart` ADD FOREIGN KEY ( `MTextID` ) REFERENCES losp_BasisElement ( `ID` ) ON DELETE CASCADE ON UPDATE CASCADE ;
<?
$CONFIG_WriteRights4TreeParts = array(
1, // mensch.coop
13, // vuj
14, // um
15, // tl
16, // frederick
209, // mensch
);
$CONFIG_ReadRights4TreeParts = array( );
require_once("../../../include/config.php");
$_LOSPDIR = $_LOSP_PATH_TO_ROOT = '../../../';
$_LOSP_DEV = false;
require_once("../../../include/System/php/RequireClass.inc.php");
$DB = StorableFactory::create($_LOSP_STORABLE_KINDOF, $_LOSP_STORABLE_DATA);
$HostAccount = BasisElement::createNewInstance($DB, 'Account', 0, $param_PartOf=null);
LospAuth::login($HostAccount, $DB);
echo "\nrepair: give Rights 4 the TreePart BasisElements\n";
CONFIG::generateSocialNetworkTree($HostAccount, $DB);
$var_mensch_coop = CONFIG::getSocialNetworkTree();
foreach($var_mensch_coop['Parts'] as $BasisElement) {
BasisElement::loadObjectLevel($HostAccount, $DB, $BasisElement, 'Edit' );
$BasisElement->getObjVar('RightManagement')->getAuthorisationList()->updateAuthList($CONFIG_ReadRights4TreeParts, $CONFIG_WriteRights4TreeParts);
$BasisElement->saveObject($HostAccount, $DB);
echo "\t* $BasisElement ->saveObject()\n";
}
?>
<?
require_once("../../../include/config.php");
$_LOSPDIR = $_LOSP_PATH_TO_ROOT = '../../../';
$_LOSP_DEV = false;
require_once("../../../include/System/php/RequireClass.inc.php");
$DB = StorableFactory::create($_LOSP_STORABLE_KINDOF, $_LOSP_STORABLE_DATA);
$HostAccount = BasisElement::createNewInstance($DB, 'Account', 0, $param_PartOf=null);
$var_PartOfObjVarID = 6; // FriendList
$var_CategoryID = 0; // ''
$var_AttachStateID = 4; // unconfirmed
echo "\nrepair: delete double Friendlist BasisClipboards\n \t08.02.2010 @f\n";
$stmt = $DB->PDO_query( 'select distinct PartOfID, AttachID from losp_BasisClipboard where PartOfObjVarID=:PartOfObjVarID and CategoryID=:CategoryID',
array(':PartOfObjVarID' => $var_PartOfObjVarID, ':CategoryID' => $var_CategoryID)
);
if($stmt){
foreach($DB->PDO_fetchAll($stmt) as $row) {
$stmt2 = $DB->PDO_query( 'select * from losp_BasisClipboard where PartOfObjVarID=:PartOfObjVarID and CategoryID=:CategoryID and PartOfID=:PartOfID and AttachID=:AttachID',
array(':PartOfObjVarID' => $var_PartOfObjVarID, ':CategoryID' => $var_CategoryID, ':PartOfID' => $row['PartOfID'], ':AttachID' => $row['AttachID']));
$result_entrys = $DB->PDO_fetchAll($stmt2);
if(count($result_entrys)==2) {
echo ('* :PartOfID => '. $row['PartOfID']. ' :AttachID => '. $row['AttachID']." \n");
if($result_entrys[0]['AttachStateID'] ==3 && $result_entrys[1]['AttachStateID'] ==4 ) {
$var_deleteQuery = 'delete from losp_BasisClipboard where PartOfObjVarID=:PartOfObjVarID and CategoryID=:CategoryID and PartOfID=:PartOfID and AttachID=:AttachID and AttachStateID=:AttachStateID';
$var_deleteBindValues = array(':PartOfObjVarID' => $var_PartOfObjVarID, ':CategoryID' => $var_CategoryID, ':PartOfID' => $row['PartOfID'], ':AttachID' => $row['AttachID'], ':AttachStateID' => $var_AttachStateID);
$stmt2 = $DB->PDO_query($var_deleteQuery, $var_deleteBindValues);
$result = $DB->PDO_getResultRow($stmt2);
echo("\t * delete from losp_BasisClipboard where PartOfObjVarID=".$var_PartOfObjVarID." and CategoryID=".$var_CategoryID." and PartOfID=".$row['PartOfID']." and AttachID=".$row['AttachID']." and AttachStateID=".$var_AttachStateID." => ".$result."\n");
} else {
echo "!!!!!!!!! Das kann doch gar nicht sein !!!!!!!!!!!! \t *".$result_entrys[0]['AttachStateID']." -- ".$result_entrys[1]['AttachStateID']."\n";
}
} else if(count($result_entrys)>2) {
echo "!!!!!!!!! Das kann doch gar nicht sein !!!!!!!!!!!!";
}
}
}
echo "\n => finish \n\n";
?>
\ No newline at end of file
<?php
/** @deprecated 100325 @f
* Hinfällig da default mäßig die Funktionen bei einem update neu geschrieben werden @
*
*/
//$var_query = 'DROP FUNCTION IF EXISTS removeMTextFromClipboard';
//
//echo "\t".$var_query.";\t";
//$Resource = $DB->PDO_query($var_query);
//if($Resource) {
// echo "OK \n";
//} else {
// echo "FEHLER \n";
//}
//
//
//$var_query = 'CREATE FUNCTION removeMTextFromClipboard(param_RequestProfileID int, param_PartOfID int, param_AttachID int, param_PartOfObjVar varchar(128), param_CategoryName varchar(128))
// RETURNS INT
// DETERMINISTIC
// BEGIN
// DECLARE var_PartOfObjVarID INT;
// DECLARE var_tmp_ID INT;
// DECLARE var_CategoryID INT;
// set var_PartOfObjVarID=(select PartOfObjVarID from losp_BasisClipboard_objvar where PartOfObjVar=param_PartOfObjVar);
// set var_CategoryID=(select CategoryID from losp_BasisClipboard_category where CategoryName=param_CategoryName);
// call checkBEAuth(param_PartOfID,param_RequestProfileID,@r,@var_Profile_PartOf_w);
// call checkBEAuth(param_AttachID,param_RequestProfileID,@r,@var_Profile_Attach_w);
//
// IF (@var_Profile_PartOf_w || @var_Profile_Attach_w) THEN
// set var_tmp_ID=(select PartOfID from losp_BasisClipboard WHERE PartOfID=param_PartOfID and AttachID=param_AttachID and PartOfObjVarID=var_PartOfObjVarID and CategoryID=var_CategoryID);
// IF (var_tmp_ID>=0) THEN
// DELETE FROM losp_BasisClipboard
// WHERE PartOfID=param_PartOfID
// and AttachID=param_AttachID
// and CategoryID=var_CategoryID
// and PartOfObjVarID=var_PartOfObjVarID;
// return 1;
// END IF;
// END IF;
// return 0;
// END';
//
//echo "\t".substr($var_query, 0, 100)." ...;\t";
//$Resource = $DB->PDO_query($var_query);
//if($Resource) {
// echo "OK \n";
//} else {
// echo "FEHLER \n";
//}
?>
<?php
$DB->transformFileToDatabase("../../include/Lib/BasisElementAddons/Language/DataBase/MySql/MySql_AddonLanguage.sql");
$DB->transformFileToDatabase("../../include/System/sql/MySql_Function_insert.sql");
?>
<?php
$DB->transformFileToDatabase("090730_SqlCleaning.sql");
?>
drop table losp_BE_job;
drop table losp_BE_ressource;
drop table losp_BE_place;
drop table losp_BE_action;
\ No newline at end of file
<?php
$DB->transformFileToDatabase("090801_SqlPostMessageBE.sql");
?>
INSERT INTO losp_class (ClassID, ClassName) VALUES ('24','PostMessageBE');
\ No newline at end of file
<?
$var_query = 'ALTER TABLE losp_BE_topic ADD UNIQUE (Name)';
echo "\t".$var_query.";\t";
$Resource = $DB->PDO_query($var_query);
if($Resource) {
echo "OK \n";
} else {
echo "FEHLER \n";
}
?>
<?php
$DB->transformFileToDatabase("090824_SqlCampaign.sql");
?>
INSERT INTO losp_class (ClassID, ClassName) VALUES ('25','CampaignBE');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('210', 'CampaignBC');
\ No newline at end of file
<?php
$DB->transformFileToDatabase("091020_SqlSearch.sql");
?>
INSERT INTO losp_BasisElement (`ID`, `Author_ProfileID`, `Subject`, `Text`, `CreateDate`, `TagListID`, `BECategoryListID`, `BECategoryChoiceBEID`, `BasisElementDesignID`, `AuthReadListID`, `AuthWriteListID`, `ClassID`, `LanguageCode`) VALUES ('78', '1', 'Search', '', CURRENT_TIMESTAMP, NULL, NULL, NULL, NULL, '0', '1', '22', NULL);
\ No newline at end of file
<?php
$DB->transformFileToDatabase("091101_ProfileBC_in_Portalparts.sql");
?>
insert into losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) values(20, 'ProfileBC') ;
insert into losp_BEBasisClipboardsRightManagement (PartOfID, PartOfObjVarID, CategoryID, WriteAuthorisaton, ReadAuthorisation) values(6, 20,0,'u','a') ;
insert into losp_BEBasisClipboardsRightManagement (PartOfID, PartOfObjVarID, CategoryID, WriteAuthorisaton, ReadAuthorisation) values(7, 20,0,'u','a') ;
insert into losp_BEBasisClipboardsRightManagement (PartOfID, PartOfObjVarID, CategoryID, WriteAuthorisaton, ReadAuthorisation) values(8, 20,0,'u','a') ;
<?php
$DB->transformFileToDatabase("091110_ThreadMessageBE.sql");
?>
select 'losp_BE_threadmessage';
CREATE TABLE losp_BE_threadmessage (
MTextID int(11) UNSIGNED NOT NULL,
LastInsertDate int(11) UNSIGNED,
ThreadBEQuantity int(11) UNSIGNED,
PRIMARY KEY (MTextID),
FOREIGN KEY (MTextID)
REFERENCES losp_BasisElement(ID)
ON DELETE CASCADE
ON UPDATE CASCADE
--
) ENGINE=InnoDB;
\ No newline at end of file
<?php
$DB->transformFileToDatabase("100209_GroupProfileUpdates.sql");
?>
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('26', 'GroupProfileBC');
INSERT INTO losp_BasisClipboard_objvar (PartOfObjVarID, PartOfObjVar) VALUES ('27', 'MemberProfileBC');
update losp_class set ClassName='GroupProfileBE' where ClassID=26;
\ No newline at end of file
<?php
$DB->transformFileToDatabase("100215_MemberBCStates.sql");
?>
INSERT INTO losp_BasisClipboard_state (`StateID`, `State`) VALUES ('10', 'groupmaster');
INSERT INTO losp_BasisClipboard_state (`StateID`, `State`) VALUES ('11', 'groupauthor');
INSERT INTO losp_BasisClipboard_state (`StateID`, `State`) VALUES ('12', 'groupreader');
INSERT INTO `losp_BasisClipboard_state` (`StateID`, `State`) VALUES ('20', 'aspirant');
INSERT INTO `losp_BasisClipboard_objvar` (`PartOfObjVarID`, `PartOfObjVar`) VALUES ('28', 'AspirantBC');
\ No newline at end of file
<?
$var_query = 'alter table losp_BE_profile modify EMail varchar(256) ';
$Resource = $DB->PDO_query($var_query);
$row = $DB->PDO_getResultRow($Resource);
?>
<?php
$DB->transformFileToDatabase("100217_Kategorien.sql");
?>
UPDATE `losp_BasisElementDesign` SET `CSS` = 'div.cont_1{background-repeat:repeat;width:75%;float:left;min-height:500px;}div.cont_1 a{color:#9dc120;}div.cont_2{width:25%;float:left;}div.cont_2 a{color:#9dc120;}' WHERE `losp_BasisElementDesign`.`ID` =13 LIMIT 1 ;
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('300', 'Food Coops', '3');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('301', 'Genossenschaften','3');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('302', 'Transition-Town-Bewegung','3');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('303', 'Wagenplätze', '3');
INSERT INTO losp_BasisElement_categorynamelist (BECategoryID, BECategoryName, BECategoryGroupID) VALUES ('304', 'Wohnprojekte', '3');
update losp_BasisElement_categorynamelist set BECategoryName='Klimagerechtigkeit' where BECategoryID=115;
\ No newline at end of file
<?php
$query = "delete from losp_BE_SREQUEST_history where Action='RealSingleView'";
$stmt2 = $DB->PDO_query($query);
$result = $DB->PDO_getResultRow($stmt2);
?>
<?php
$DB->transformFileToDatabase("100307_addMiscToDesign.sql");
?>
ALTER TABLE `losp_BasisElementDesign` ADD `Miscellaneous` TEXT NULL DEFAULT NULL AFTER `CSS`;
\ No newline at end of file
<?
/**
* Rechtesystem Erweiterung für BasisElemente um auch Gruppen, Freundeslisten, etc speziell Rechte einzuräumen
*
* @author f@mensch.coop
* @since 29.03.2010
*/
$DB->transformFileToDatabase("../../include/System/sql/RightManagement/MySql_TableProfileCollectionAuthorisation.sql");
$query = "ALTER TABLE losp_BasisElement ADD PCAuthReadListID int(11) UNSIGNED default 0";
$stmt = $DB->PDO_query($query);
$result = $DB->PDO_getResultRow($stmt);
$query = "ALTER TABLE losp_BasisElement ADD PCAuthWriteListID int(11) UNSIGNED default 0";
$stmt = $DB->PDO_query($query);
$result = $DB->PDO_getResultRow($stmt);
?>
<?php
$DB->transformFileToDatabase("100429_addThreadBCBlogToCulture.sql");
?>
INSERT INTO `losp_BEBasisClipboardsRightManagement` (`PartOfID`, `PartOfObjVarID`, `CategoryID`, `WriteAuthorisaton`, `ReadAuthorisation`) VALUES ('7', '3', '1', 'u', 'a');
\ No newline at end of file
<?php
$DB->transformFileToDatabase("100616_addDefaultBCToDesign.sql");
?>
ALTER TABLE `losp_BasisElementDesign` ADD `DefaultBC` VARCHAR( 64 ) NULL DEFAULT NULL AFTER `Miscellaneous`;
\ No newline at end of file
<?php
$DB->transformFileToDatabase("100624_addCycleToDateBE.sql");
?>
ALTER TABLE `losp_BE_date` ADD `Cycle` INT( 3 ) NULL DEFAULT NULL AFTER `End`;
\ No newline at end of file
<?php
$DB->transformFileToDatabase("100730_addUrlBCToEconomy.sql");
?>
INSERT INTO `losp_BEBasisClipboardsRightManagement` (`PartOfID`, `PartOfObjVarID`, `CategoryID`, `WriteAuthorisaton`, `ReadAuthorisation`) VALUES ('8', '190', '0', 'u', 'a');
\ No newline at end of file
<?php
$DB->transformFileToDatabase("100730_addUrlBCToSocialMovement.sql");
?>
INSERT INTO `losp_BEBasisClipboardsRightManagement` (`PartOfID`, `PartOfObjVarID`, `CategoryID`, `WriteAuthorisaton`, `ReadAuthorisation`) VALUES ('6', '190', '0', 'u', 'a');
\ No newline at end of file
<?php
echo "\t". $DB->transformFileToDatabase("../../../include/System/sql/RightManagement/MySql_RMFunction.sql")." Errors \n";
echo "\t". $DB->transformFileToDatabase("../../../include/System/sql/MySql_Orders.sql")." Errors \n";
echo "\t".$DB->transformFileToDatabase("../../../include/System/sql/MySql_Function.sql")." Errors \n";
echo "\t".$DB->transformFileToDatabase("../../../include/System/sql/MySql_Function_insert.sql")." Errors \n";
?>
<?php
$var_CONFTG = array(
'100730_addUrlBCToSocialMovement.php' => array( 'author' => 'um@mensch.coop', 'info' => 'unter SocialMovement auch UrlBE einhängen können', 'date' => '100730' ),
'100730_addUrlBCToEconomy.php' => array( 'author' => 'um@mensch.coop', 'info' => 'unter Economy auch UrlBE einhängen können', 'date' => '100730' ),
'100624_addCycleToDateBE.php' => array( 'author' => 'um@mensch.coop', 'info' => 'adds Cycle to losp_BE_date Table', 'date' => '100624' ),
'100616_addDefaultBCToDesign.php' => array( 'author' => 'um@mensch.coop', 'info' => 'adds DefaultBC to BasisDesign Table', 'date' => '100616' ),
'100429_addThreadBCBlogToCulture.php' => array( 'author' => 'f@mensch.coop', 'info' => 'unter Culture auch ThreadMessageBE einhängen könne', 'date' => '100429' ),
'100329_RightManagement_ProfileCollection.php' => array( 'author' => 'f@mensch.coop', 'info' => 'Rechtesystem Erweiterung für BasisElemente um auch Gruppen, Freundeslisten, etc speziell Rechte einzuräumen', 'date' => '100329' ),
'100307_addMiscToDesign.php' => array( 'author' => 'um', 'info' => 'adds the text field Miscellaneous to BasisElementDesign', 'date' => '100307' ),
'100220_clean_StasiHistory.php' => array( 'author' => 'f', 'info' => 'Stasieinträge werden gelöscht ... weniger Info in der Infobox', 'date' => '100220' ),
'100217_Kategorien.php' => array( 'author' => 'f', 'info' => 'neue KAtegorien .. theoretisch nur mensch.coop abhängig', 'date' => '100217' ),
'100215_MemberBCStates.php' => array( 'author' => 'um', 'info' => 'adds to lasop_BasisClipbaord_state groupmaster, groupauthor and groupreader', 'date' => '100215' ),
// '100215_losp_BE_profile_email_null.php' => array( 'author' => 'f', 'info' => 'SQL: losp_BE_profile: EMail ist nun nicht mehr Pflichtfeld', 'date' => '100215' ),
'100209_GroupProfileUpdates.php' => array( 'author' => 'f', 'info' => 'SQL: losp_class GroupProfileBE, BasisClipboard_objvar GroupProfileBC, MemeberProlileBC', 'date' => '100209' ),
'091110_ThreadMessageBE.php' => array( 'author' => 'f', 'info' => 'SQL: Einfügen von der losp_BE_threadmessage für ThreadMessageBE', 'date' => '091110' ),
'091101_ProfileBC_in_Portalparts.php' => array( 'author' => 'f', 'info' => 'SQL: Einfügen von ProfileBC allgemein und in PortalParts wie SocialMovement', 'date' => '091020' ),
'091020_SqlSearch.php' => array( 'author' => 'um', 'info' => 'SQL: Einfügen von SearchBE ID 78', 'date' => '091020' ),
'090824_SqlCampaign.php' => array( 'author' => 'um', 'info' => 'SQL: Einfügen von CampaignBE/BC', 'date' => '090824' ),
'090804_UniqueNamebyTopicBE.php' => array( 'author' => 'sn', 'info' => 'SQL: Change TopicBE Table: Unique Name', 'date' => '090804' ),
'090801_SqlPostMessageBE.php' => array( 'author' => 'um', 'info' => 'SQL: Einfügen von PostMessageBE', 'date' => '090801' ),
'090730_SqlCleaning.php' => array( 'author' => 'f', 'info' => 'SQL: löschen von Place, Ressource, Job', 'date' => '090730' ),
'090723_AddonLanguage.php' => array( 'author' => 'f', 'info' => 'BasisElementAddon::Language', 'date' => '090723' ),
// '090720.php' => array( 'author' => 'f', 'info' => 'SQL:', 'date' => '090720' ),
'default.php' => array( 'author' => 'f', 'info' => 'SQL default files like MySql_Funtion.sql ...', 'date' => '100106' ),
);
require_once("../../../include/config.php");
global $_LOSP_DEV;
$_LOSP_DEV = true;
$_LOSPDIR = $_LOSP_PATH_TO_ROOT = '../../../';
$_LOSP_DEV = false;
require_once("../../../include/System/php/RequireClass.inc.php");
$DB = StorableFactory::create($_LOSP_STORABLE_KINDOF, $_LOSP_STORABLE_DATA);
echo "update for losp";
foreach($var_CONFTG as $var_filename => $var_infos) {
echo "\n################################## \n".$var_filename."\n";
foreach($var_infos as $var_key => $var_value) {
echo "\t".$var_key.":\t".$var_value."\n";
}
require_once $var_filename;
}
?>
nick: nick0 pw: frusit
nick: nick1 pw: gubika
nick: nick2 pw: reswap
nick: nick3 pw: riwita
nick: nick4 pw: kodros
nick: nick5 pw: thekis
nick: nick6 pw: bropru
nick: nick7 pw: cewibr
nick: nick8 pw: slohat
nick: nick9 pw: phumam
nick: nick10 pw: ticewu
nick: nick11 pw: slitop
nick: nick12 pw: piresw
nick: nick13 pw: stespi
nick: nick14 pw: katufr
nick: nick15 pw: gagist
nick: nick16 pw: thuhen
nick: nick17 pw: pespuc
nick: nick18 pw: kewrac
nick: nick19 pw: wislip
nick: nick20 pw: spiwis
nick: nick21 pw: gipoce
nick: nick22 pw: thacos
nick: nick23 pw: rilech
nick: nick24 pw: suliwo
nick: nick25 pw: jicras
nick: nick26 pw: swusto
nick: nick27 pw: gastos
nick: nick28 pw: tratok
nick: nick29 pw: pisluw
nick: nick30 pw: dupadu
nick: nick31 pw: dedomu
nick: nick32 pw: gestev
nick: nick33 pw: uosloc
nick: nick34 pw: pufrof
nick: nick35 pw: sitatr
nick: nick36 pw: trefru
nick: nick37 pw: drovev
nick: nick38 pw: daroth
nick: nick39 pw: trudre
nick: nick40 pw: kotote
nick: nick41 pw: clejew
nick: nick42 pw: nokida
nick: nick43 pw: lastat
nick: nick44 pw: riwebr
nick: nick45 pw: slucro
nick: nick46 pw: milito
nick: nick47 pw: bropre
nick: nick48 pw: pipros
nick: nick49 pw: gocrol
nick: nick50 pw: jucrab
nick: nick51 pw: uivaph
nick: nick52 pw: spucre
nick: nick53 pw: tharuv
nick: nick54 pw: clogir
nick: nick55 pw: trapru
nick: nick56 pw: frocha
nick: nick57 pw: wiwisp
nick: nick58 pw: cluspo
nick: nick59 pw: thisak
nick: nick60 pw: mithig
nick: nick61 pw: cepusl
nick: nick62 pw: spokos
nick: nick63 pw: uewach
nick: nick64 pw: wesloj
nick: nick65 pw: swisop
nick: nick66 pw: pruhec
nick: nick67 pw: taphah
nick: nick68 pw: cladut
nick: nick69 pw: prodra
nick: nick70 pw: sladig
nick: nick71 pw: uedron
nick: nick72 pw: nasiwr
nick: nick73 pw: sadred
nick: nick74 pw: trucot
nick: nick75 pw: progad
nick: nick76 pw: clutis
nick: nick77 pw: tridre
nick: nick78 pw: tiheua
nick: nick79 pw: chewre
nick: nick80 pw: crechi
nick: nick81 pw: werach
nick: nick82 pw: nomacl
nick: nick83 pw: gewari
nick: nick84 pw: tromil
nick: nick85 pw: hajije
nick: nick86 pw: vuclik
nick: nick87 pw: specus
nick: nick88 pw: wasebr
nick: nick89 pw: thegaw
nick: nick90 pw: spabro
nick: nick91 pw: chices
nick: nick92 pw: gagacl
nick: nick93 pw: pogoui
nick: nick94 pw: swoswi
nick: nick95 pw: kimopi
nick: nick96 pw: slehut
nick: nick97 pw: nucrib
nick: nick98 pw: stouep
nick: nick99 pw: recrap
nick: nick100 pw: frevid
nick: nick101 pw: crugow
nick: nick102 pw: closti
nick: nick103 pw: thesak
nick: nick104 pw: puchit
nick: nick105 pw: brufri
nick: nick106 pw: brimus
nick: nick107 pw: wraruj
nick: nick108 pw: tecisp
nick: nick109 pw: fridip
nick: nick110 pw: dinuju
nick: nick111 pw: lilouo
nick: nick112 pw: stesou
nick: nick113 pw: swedri
nick: nick114 pw: stusta
nick: nick115 pw: loclos
nick: nick116 pw: holoki
nick: nick117 pw: craste
nick: nick118 pw: chitri
nick: nick119 pw: thesof
nick: nick120 pw: pririp
nick: nick121 pw: tabras
nick: nick122 pw: jirovu
nick: nick123 pw: gauoue
nick: nick124 pw: hocrah
nick: nick125 pw: tavusw
nick: nick126 pw: huvire
nick: nick127 pw: crochu
nick: nick128 pw: rajovo
nick: nick129 pw: databo
nick: nick130 pw: batrer
nick: nick131 pw: bajawa
nick: nick132 pw: cicima
nick: nick133 pw: pislub
nick: nick134 pw: mucisp
nick: nick136 pw: sinusw
nick: nick137 pw: uikewr
nick: nick138 pw: detavi
nick: nick139 pw: tikesp
nick: nick140 pw: liuuph
nick: nick141 pw: spujou
nick: nick142 pw: liclaw
nick: nick143 pw: thouiu
nick: nick144 pw: phavep
nick: nick145 pw: catoth
nick: nick146 pw: cotuwr
nick: nick147 pw: kiphet
nick: nick148 pw: crepru
nick: nick149 pw: lafret
nick: nick150 pw: wacraj
nick: nick151 pw: slinit
nick: nick152 pw: motrot
nick: nick153 pw: tiphub
nick: nick154 pw: phikad
nick: nick155 pw: uijeve
nick: nick156 pw: suwuso
nick: nick157 pw: swobaw
nick: nick158 pw: swetro
nick: nick159 pw: stuhos
nick: nick160 pw: ruwiki
nick: nick161 pw: keslen
nick: nick162 pw: damosp
nick: nick163 pw: waseko
nick: nick164 pw: cesocl
nick: nick165 pw: triwof
nick: nick166 pw: rathav
nick: nick167 pw: wivach
nick: nick168 pw: biphat
nick: nick169 pw: sikewi
nick: nick170 pw: tresil
nick: nick171 pw: swulim
nick: nick172 pw: drorug
nick: nick173 pw: swosle
nick: nick174 pw: wiphej
nick: nick175 pw: joclar
nick: nick176 pw: muphes
nick: nick177 pw: spepos
nick: nick178 pw: wabici
nick: nick179 pw: butrak
nick: nick180 pw: guvifr
nick: nick181 pw: vafran
nick: nick182 pw: drophu
nick: nick183 pw: kamito
nick: nick184 pw: clidri
nick: nick185 pw: huphuc
nick: nick186 pw: cruver
nick: nick187 pw: setoge
nick: nick188 pw: secawr
nick: nick189 pw: pretra
nick: nick190 pw: spusoc
nick: nick191 pw: loduwi
nick: nick192 pw: woclep
nick: nick193 pw: brihem
nick: nick194 pw: stiswu
nick: nick195 pw: miwuhu
nick: nick196 pw: phobip
nick: nick197 pw: pouidr
nick: nick198 pw: spaste
nick: nick199 pw: friche
nick: nick200 pw: nuuase
nick: nick201 pw: slipho
nick: nick202 pw: selitr
nick: nick203 pw: brulub
nick: nick204 pw: clutha
nick: nick205 pw: nopasl
nick: nick206 pw: lewres
nick: nick207 pw: jewoph
nick: nick208 pw: paluue
nick: nick209 pw: charon
nick: nick210 pw: propra
nick: nick211 pw: vusluc
nick: nick212 pw: veclid
nick: nick213 pw: lebrek
nick: nick214 pw: cisped
nick: nick215 pw: brotow
nick: nick216 pw: phicha
nick: nick217 pw: trufra
nick: nick218 pw: crubim
nick: nick219 pw: luclat
nick: nick220 pw: gipreh
nick: nick221 pw: brepre
nick: nick222 pw: phimuv
nick: nick223 pw: dabasp
nick: nick224 pw: wuphul
nick: nick225 pw: swacre
nick: nick226 pw: thugig
nick: nick227 pw: memabr
nick: nick228 pw: cathur
nick: nick229 pw: pabrif
nick: nick230 pw: spalow
nick: nick231 pw: bethad
nick: nick232 pw: uopret
nick: nick233 pw: swebim
nick: nick234 pw: wichou
nick: nick235 pw: drinep
nick: nick236 pw: veuabr
nick: nick237 pw: precep
nick: nick238 pw: draclo
nick: nick239 pw: lariuu
nick: nick240 pw: slicri
nick: nick241 pw: guwrot
nick: nick242 pw: sekopr
nick: nick243 pw: mophod
nick: nick244 pw: dipras
nick: nick245 pw: lefreg
nick: nick246 pw: hechit
nick: nick247 pw: chisip
nick: nick248 pw: mimoth
nick: nick249 pw: pacrac
nick: nick250 pw: bricli
nick: nick251 pw: spilus
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
<content>
<h2 style='margin-left:35.4pt'>
<span style='mso-bookmark:_Toc255818245'>
<span style='mso-bookmark:_Toc241829074'>
<a name="_Toc256976111">Anders Arbeiten, anders Wohnen</a>
</span>
</span>
</h2>
<h3 style='margin-top:6.0pt;margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;margin-bottom:.0001pt'>
<a name="_Toc241829075"></a>
<a name="_Toc255818246"></a>
<a name="_Toc256976112">
<span style='mso-bookmark:_Toc255818246'>
<span style='mso-bookmark:_Toc241829075'>Selbstverwaltete Betriebe und Kooperationen</span>
</span>
</a>
</h3>
<p style='margin-left:35.4pt'>
<span style='font-size:12.0pt; mso-bidi-font-size:10.0pt'>BASEG - Bundesarbeitsgemeinschaft Selbstverwalteter Gartenbaubetriebe:
<a href="http://www.baseg.harald-groene.de/">http://www.baseg.harald-groene.de</a>
</span>
</p>
</content>
<o:p></o:p>
class=MsoEndnoteText
lang=EN-GB
<![if !supportEmptyParas]>&nbsp;<![endif]>
lang=IT
lang=DE
class=MsoNormal
class=MsoBodyText2
<p style='margin-top:6.0pt;line-height:normal'></p>
lang=FR
class=MsoFootnoteText
<p class=MsoIndex1 style='margin-left:35.4pt'></p>
class=MsoIndexHeading
class=MsoIndex1
class=tscdnsrestext
<p class=MsoTitle style='margin-left:35.4pt'><span style='font-size:14.0pt'></span></p>
<span
style='font-weight:normal;font-style:normal'></span>
<p style='margin-left:35.4pt'><span style='mso-bookmark:_Toc245231052'></span></p>
<p style='margin-left:35.4pt'><span style='mso-bookmark:_Toc245231052'><a
name="_Toc255818263"></a></span></p>
<p style='margin-left:35.4pt'></p>
<a name="_Toc241829077"></a>
class=MsoTitle
<p align=center style='margin-left:35.4pt;text-align:center'><b></b></p>
\ No newline at end of file
This diff could not be displayed because it is too large.
<?php
//$FILE='ooexport.html';
//$_LOSP_CHARSET='utf-8';
//$GLOBALS['nichtgefunden'] = 0;
//
//
//$Result_array = readFormatedFile($FILE);
//print_r($Result_array);
function readFormatedFile($FILE) {
libxml_use_internal_errors(true);
$var_SimpleXMLElement = simplexml_load_file($FILE);
if (!$var_SimpleXMLElement) {
echo "Laden des XML fehlgeschlagen\n";
foreach(libxml_get_errors() as $error) {
echo "\t", $error->message;
}
}
$var_ObjVarSimpleXMLElement = $var_SimpleXMLElement->children();
$h1=$h2=$h3=$result_i = -1;
$h1_array = $h2_array = $h3_array = $Result_array = array();
foreach ($var_ObjVarSimpleXMLElement as $key_body => $value_body) {
foreach ($value_body as $key_div => $value_div) {
foreach ($value_div as $key_content => $value_content) {
if($key_content=='h1') {
$h1++;
$h2=$h3 = -1;
$h2_array = $h3_array = array();
$h1_array[$h1] = cleanString(getHValue($value_content));
echo "\nh1 =\t".$h1_array[$h1];
} else if($key_content=='h2') {
$h2++;
$h3 = -1;
$h3_array = array();
$h2_array[$h2] = cleanString(getHValue($value_content));
echo "\n\th2 =\t".$h2_array[$h2];
} else if($key_content=='h3') {
$h3++;
$h3_array[$h3] = cleanString(getHValue($value_content));
echo "\n\t\th3 =\t".$h3_array[$h3];
} else if($key_content=='span') {
echo "\n vernachlässigbar \n";
} else if($key_content=='p') {
$result_i++;
$Result_array[$result_i] = getpValue($value_content);
if(array_key_exists($h1, $h1_array)) {
$Result_array[$result_i]['h1'] = $h1_array[$h1];
}
if(array_key_exists($h2, $h2_array)) {
$Result_array[$result_i]['h2'] = $h2_array[$h2];
}
if(array_key_exists($h3, $h3_array)) {
$Result_array[$result_i]['h3'] = $h3_array[$h3];
}
}
}
}
}
return $Result_array;
}
function checkpResult(array $param_result) {
if(array_key_exists('info', $param_result) && $param_result['info']
&& array_key_exists('link', $param_result) && $param_result['link']
) {
return true;
} else {
return false;
}
}
function cleanString($param_str) {
return trim(str_replace(array("\n"),' ', $param_str));
}
function getpValue(SimpleXMLElement $param_SimpleXMLElement) {
$result=false;
foreach ($param_SimpleXMLElement as $key => $value) {
if($key=='span' ) {
if($value->a) {
$a_attributtes = $value->a->attributes();
$result = array(
'info' => cleanString((string) $value),
'link' => cleanString((string) $a_attributtes['href'])
);
if(checkpResult($result)) {
// print_r($result); // http://wiki.ic.org/, http://www.coforum.de/, http://www.stiftung-trias.de/
return $result;
}
}
} else if($key=='a') {
if($param_SimpleXMLElement) {
$a_attributtes = $param_SimpleXMLElement->a->attributes();
if((bool) $param_SimpleXMLElement && cleanString((string) $a_attributtes['href'])) {
$result = array(
'info' => cleanString((string) $param_SimpleXMLElement),
'link' => cleanString((string) $a_attributtes['href'])
);
if(checkpResult($result)) {
// print_r($result); 2 ohne info http://www.solioeko.de/, http://www.architekturarchiv-web.de/nh.htm
return $result;
}
}
$a_attributtes= false;
}
}
}
$a_attributtes = $param_SimpleXMLElement->a->attributes();
// echo "\n [".(bool)$param_SimpleXMLElement->span."][".$param_SimpleXMLElement->span."] (". array_key_exists('href', $a_attributtes) ."):".$a_attributtes['href'].": \n";
if($param_SimpleXMLElement->span
&& (bool)$a_attributtes
&& cleanString((string) $a_attributtes['href'])) {
$result = array(
'info' => cleanString((string) $param_SimpleXMLElement->span),
'link' => cleanString((string) $a_attributtes['href'])
);
if(checkpResult($result)) {
return $result;
}
}
if($param_SimpleXMLElement->span->span && cleanString((string) $a_attributtes['href'])) {
$result = array(
'info' => cleanString((string) $param_SimpleXMLElement->span->span),
'link' => cleanString((string) $a_attributtes['href'])
);
if(checkpResult($result)) {
return $result;
}
}
if(is_array($result) && $result['link'] && !checkpResult($result)) {
if($param_SimpleXMLElement->span[0]) {
$result['info'] = cleanString((string) $param_SimpleXMLElement->span[0]);
if(checkpResult($result)) {
return $result;
}
}
if($param_SimpleXMLElement->span[0]->span) {
$result['info'] = cleanString((string) $param_SimpleXMLElement->span[0]->span);
if(checkpResult($result)) {
// print_r($result);
return $result;
}
}
}
echo ':)';
$GLOBALS['nichtgefunden']++;
echo "\n\n ".$GLOBALS['nichtgefunden']." (".(string)$param_SimpleXMLElement.") \n";
print_r($result);
print_r($param_SimpleXMLElement);
}
function getHValue(SimpleXMLElement $param_SimpleXMLElement){
foreach ($param_SimpleXMLElement as $key => $value) {
if($key=='a' ) {
if($value->span) {
return getRecursiveSpanValue($value);
}
} else {
return getHValue($value);
}
}
}
function getRecursiveSpanValue(SimpleXMLElement $param_SimpleXMLElement){
foreach ($param_SimpleXMLElement as $key => $value) {
if($key=='span' ) {
if($value->span) {
return getRecursiveSpanValue($value);
} else if($value) {
return $value;
} else {
}
} else {
}
}
}
?>
<?php
require_once("../../include/config.php");
$var_bash_MainDB = 'cd ../include/System/sql/ && ls && mysql -u '.$_LOSP_STORABLE_DATA["config_user"].' --password='.$_LOSP_STORABLE_DATA["config_passwd"].' -D '.$_LOSP_STORABLE_DATA["config_db"];
$var_bash_SrequestDB = 'cd ../include/System/sql/ && ls && mysql -u '.$_LOSP_STORABLE_DATA['SREQUEST']["config_user"].' --password='.$_LOSP_STORABLE_DATA['SREQUEST']["config_passwd"].' -D '.$_LOSP_STORABLE_DATA['SREQUEST']["config_db"].'';
$var_bash_export_MainDB_file = $_LOSP_STORABLE_DATA["config_db"].'.'.date('Ymd_Hi').'.sql';
$var_bash_export_MainDB='mysqldump --no-defaults --user=root --password --host='.$_LOSP_STORABLE_DATA["config_dbserver"] = "localhost".' --add-locks --complete-insert --create-options --lock-tables --result-file='.$var_bash_export_MainDB_file.' --routines --set-charset --triggers --disable-keys --databases '.$_LOSP_STORABLE_DATA["config_db"].' && tar -czf '.$var_bash_export_MainDB_file.'.tar.gz '.$var_bash_export_MainDB_file;
echo "\nlogin: \n ---";
echo "\n MainDB: \n ".$var_bash_MainDB."\n ---";
echo "\n SrequestDB: \n ".$var_bash_SrequestDB."\n ";
echo "\nexport: \n ---";
echo "\n MainDB: \n ".$var_bash_export_MainDB."\n --- \n\n";
// system($var_bash_MainDB);
?>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*?)/include/(.*)$ /var/www/losp/include/$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^user/(.*?)(/.*|)$ index.php?p[]=ProfileBC&p[]=showSingle&p[]=NickName&p[]=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^id/(.*?)(/.*|)$ index.php?p[]=showSingle&p[]=ID&p[]=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^$ index.php [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*?)(/.*|)$ index.php?p[]=TopicBC&p[]=showSingle&p[]=Name&p[]=$1 [QSA,L]
\ No newline at end of file
<?
$_LOSP_PATH_TO_ROOT = '../../';
$_LOSP_STORABLE_DATA = array(
'host' => 'http://localhost/losp/',
// 'host' => 'http://portal.mensch.coop/',
'user' => '6',
'passwd' => 'xxxxxxxxx'
);
$_LOSP_STORABLE_KINDOF = 'LospService';
{
$_LOSP_SERVERNAME = 'localhost/losp/clients/LocationPage';
$_TREE = 'LocationPage';
$_LOSP_DESIGNDIR ='default';
}
/**
* ID, welche als HauptObjekt geladen werden soll
*/
$_LOSP_SIMPLEPAGE_ID = 10;
$_LOSP_DEV = true;
// $_LOSP_DEV = false;
$_LOSP_DEV_XMLOUTPUT = true;
$_LOSP_DEPRECATED = false;
$_LOSP_NEW = false;
$_LOSP_CHARSET='utf-8';
{
$_PEARDIR = '/var/www/php/';
$_LOSPDIR = $_LOSP_PATH_TO_ROOT;
$_MAXFILESIZE = '1024';
$_COOKIEPATH = '../../Temp/cookie.txt';
$_LOGPATH ='../../log/';
$_SIMPLE_TEST_DIR = '/var/www/php/simpletest/';
}
/**
* Fehlerbehandlung
*/
{
/**
* @var boolean is CONFIG_LOSP_ErrorHandler true use the LOSP ErrorHandler
*/
$CONFIG_LOSP_ErrorHandler = true;
// $CONFIG_LOSP_ErrorHandler = false;
/**
* @var string Datei mit Pfad in denen die Warnungen und Notizen ausgegeben werden sollen
*/
$_E_LOGFILE_WARNINGNOTICE = $_LOSP_PATH_TO_ROOT.'log/losp.'.$_TREE.'.WarningNotice.log';
/**
* @var string Datei mit Pfad in denen die Fehler ausgegeben werden sollen
*/
$_E_LOGFILE_ERROR = $_LOSP_PATH_TO_ROOT.'log/losp.'.$_TREE.'.Error.log';
/**
* @var string mail an die Fehler geschickt werden soleln
*/
$_E_MAILADDR = 'dev@mensch.coop';
$_E_MAILSUBJECT = '[losp][error]';
/**
* @var int Anzahl der Zeilen die vor und nach der Warnung mit ausgegeben werden soll
*/
$_E_CODEOFFSET = 3;
}
?>
\ No newline at end of file
<?
$_LOSP_PATH_TO_ROOT = '../../';
$_LOSP_STORABLE_DATA = array(
'host' => 'http://localhost/losp/',
// 'host' => 'http://portal.mensch.coop/',
'user' => '2',
'passwd' => 'xxxxxxxx'
);
$_LOSP_STORABLE_KINDOF = 'LospService';
{
$_LOSP_SERVERNAME = 'localhost/losp/clients/TopicPage';
$_TREE = 'TopicPage';
$_LOSP_DESIGNDIR ='default';
}
/**
* ID, welche als HauptObjekt geladen werden soll
*/
$_LOSP_SIMPLEPAGE_ID = 75;
$_LOSP_DEV = true;
$_LOSP_DEV = false;
$_LOSP_DEV_XMLOUTPUT = true;
$_LOSP_DEPRECATED = false;
$_LOSP_NEW = false;
$_LOSP_CHARSET='utf-8';
{
$_PEARDIR = '/var/www/php/';
$_LOSPDIR = $_LOSP_PATH_TO_ROOT;
$_MAXFILESIZE = '1024';
$_COOKIEPATH = '../../Temp/cookie.txt';
$_LOGPATH ='../../log/';
$_SIMPLE_TEST_DIR = '/var/www/php/simpletest/';
}
/**
* Fehlerbehandlung
*/
{
/**
* @var boolean is CONFIG_LOSP_ErrorHandler true use the LOSP ErrorHandler
*/
$CONFIG_LOSP_ErrorHandler = true;
// $CONFIG_LOSP_ErrorHandler = false;
/**
* @var string Datei mit Pfad in denen die Warnungen und Notizen ausgegeben werden sollen
*/
$_E_LOGFILE_WARNINGNOTICE = $_LOSP_PATH_TO_ROOT.'log/losp.'.$_TREE.'.WarningNotice.log';
/**
* @var string Datei mit Pfad in denen die Fehler ausgegeben werden sollen
*/
$_E_LOGFILE_ERROR = $_LOSP_PATH_TO_ROOT.'log/losp.'.$_TREE.'.Error.log';
/**
* @var string mail an die Fehler geschickt werden soleln
*/
$_E_MAILADDR = 'dev@mensch.coop';
$_E_MAILSUBJECT = '[losp][error]';
/**
* @var int Anzahl der Zeilen die vor und nach der Warnung mit ausgegeben werden soll
*/
$_E_CODEOFFSET = 3;
}
?>
\ No newline at end of file
AuthType Basic
AuthUserFile /etc/apache2/freeSN/clients/.htpasswd
AuthName "Enter password"
Require valid-user
No preview for this file type
<?
$_LOSP_PATH_TO_ROOT = '../../';
$_LOSP_STORABLE_DATA = array(
'host' => 'http://mensch.coop/',
//'host' => 'http://localhost/losp/',
'user' => '1',
'passwd' => 'xxxxxxxx'
);
$_LOSP_STORABLE_KINDOF = 'LospService';
{
$_LOSP_SERVERNAME = 'http://netz.coop/clients/mcEg';
$_LOSP_ROOT = 'http://netz.coop/';
// $_LOSP_ROOT = 'http//localhost/losp/';
$_PAGE_NAME = 'mcEg';
$_LOSP_DESIGNDIR ='';
}
/**
* ID, welche als HauptObjekt geladen werden soll
*/
$_LOSP_SIMPLEPAGE_ID = 1352;
$_LOSP_DEV_XMLOUTPUT = true;
$_LOSP_DEV_XMLOUTPUT = false;
$_LOSP_DEV = true;
$_LOSP_DEV = false;
$_LOSP_DEPRECATED = false;
$_LOSP_NEW = false;
$_LOSP_CHARSET='utf-8';
{
$_PEARDIR = '/var/www/php/';
$_LOSPDIR = '../../';
$_PAGEDIR = $_LOSPDIR . 'clients/' . $_PAGE_NAME;
$_MAXFILESIZE = '1024';
$_COOKIEPATH = '../../Temp/cookie.txt';
$_LOGPATH ='../../log/';
$_SIMPLE_TEST_DIR = '/var/www/php/simpletest/';
}
/**
* Fehlerbehandlung
*/
{
/**
* @var boolean is CONFIG_LOSP_ErrorHandler true use the LOSP ErrorHandler
*/
$CONFIG_LOSP_ErrorHandler = true;
$CONFIG_LOSP_ErrorHandler = false;
/**
* @var string Datei mit Pfad in denen die Warnungen und Notizen ausgegeben werden sollen
*/
$_E_LOGFILE_WARNINGNOTICE = $_LOSP_PATH_TO_ROOT.'log/losp.'.$_TREE.'.WarningNotice.log';
/**
* @var string Datei mit Pfad in denen die Fehler ausgegeben werden sollen
*/
$_E_LOGFILE_ERROR = $_LOSP_PATH_TO_ROOT.'log/losp.'.$_TREE.'.Error.log';
/**
* @var string mail an die Fehler geschickt werden soleln
*/
$_E_MAILADDR = 'dev@mensch.coop';
$_E_MAILSUBJECT = '[losp][error]';
/**
* @var int Anzahl der Zeilen die vor und nach der Warnung mit ausgegeben werden soll
*/
$_E_CODEOFFSET = 3;
}
?>
/* navColor #444444
headColor #ececec
*/
body {
padding: 0;
margin: 0;
font-family: Arial, Helvetica, Verdana, sans-serif;
font-size: 12px;
background-color: #d0d1d1;
background-image: url(../Images/body_back.png);
background-repeat: repeat-y;
}
.big {
font-size: 1.2em;
font-weight: bold;
}
hr {
color: #333333;
}
a{
color: #116397;
}
a:hover{
color: #227eba;
}
div.top {
width: 100%;
padding: 0 0 4px 0;
background-image: url(../Images/shadow.png);
background-repeat: repeat-x;
background-position: bottom;
}
p.topHead{
margin: 0;
padding:0;
}
p.topHead a{
text-decoration: none;
}
p.topHead img{
margin: 0;
padding:0;
border:none;
}
div.topNav {
font-size: 1.2em;
height:32px;
background-color: #f1f1f1;
border-top: 1px solid white;
}
ul.topNav {
padding: 0;
margin: 0 0 0 2.4em;
list-style: none;
float: left;
height: 32px;
border-left: 2px groove white;
}
ul.topNav li.topLink {
padding: 0;
margin: 0;
float: left;
font-weight: bold;
height: 32px;
border-right: 2px groove white;
}
ul.topNav li.topLink a{
float:left;
padding: 0.5em 2em 0.5em 2em;
}
ul.topNav li.topLink a:hover{
background-color:#d0d1d1;
}
ul.nav li.topLink:hover{
background-color:#d0d1d1;
}
div.nav{
float:right;
/*height:100%;*/
width:24%;
min-width:160px;
padding:2em 2% 2em 1%;
background-image: url(../Images/body_back.png);
background-repeat: repeat-y;
margin:0 0 0 0;
}
p.navHead{
width:100%;
font-size: 1.8em;
margin:0 0 0.25em 0;
font-weight: bold;
}
ul.nav{
font-size: 1em;
width:100%;
list-style:none;
padding:0;
margin:0 0 2em 0;
background-color:#f1f1f1;
border: 1px solid #7e9c19;
border-bottom: none;
}
ul.nav li{
padding:0.3em;
background-color: #f1f1f1;
border-bottom: 1px solid #7e9c19;
}
div.misc{
font-size: 1em;
width:98%;
margin: 0;
border: 1px solid #7e9c19;
padding: 0.3em;
background-color:#f1f1f1;
}
div.misc:hover{
background-color:#d0d1d1;
}
a.head{
font-size: 1.2em;
font-weight:bold;
}
div.display {
width:100%;
margin:0 0 0 0em;
color: #333333;
float: left;
min-height:350px;
background-image: url(../Images/display_back.png);
background-repeat: repeat-y;
background-color:#f1f1f1;
border-top: 1px solid white;
border-bottom: 1px solid white;
}
div.content{
margin:0 0 0 1em;
padding:2%;
width:66%;
min-width:300px;
float:left;
}
div.box{
float:left;
position:relative;
width:634px;
height:434px;
background-image: url(../Images/box_back.png);
/* background-image: url(../Images/startSite.png);*/
}
div.box ul.popUps{
width:598px;
margin:361px 0 0 11px;
padding:0;
border-top:2px groove white;
list-style:none;
border-left: 2px groove white;
}
div.box ul.popUps li{
text-align:center;
width:33%;
float:left;
border-right: 2px groove white;
}
div.box ul.popUps li a{
float:left;
font-size:1.2em;
font-weight: bold;
height:48px;
width:100%;
}
div.box ul.popUps li a:hover{
background-color:#d0d1d1;
}
div.box ul.popUps li:hover{
background-color:#d0d1d1;
}
div.box ul.popUps li a span{
text-align:left;
position:absolute;
left:11px;
top:11px;
width:599px;
height:349px;
overflow:hidden;
display:none;
}
img.popUp{
float:left;
border:none;
margin:0;
padding:0;
}
div.box ul.popUps li a:hover span{
display:block;
}
div.text{
padding:0.5em
}
p.history {
float:left;
width:80%;
padding: 0;
margin:0.6em 0 0.6em 3.2em;
padding:0.2em 0 0.2em 0.2em;
font-size: 1em;
background-image: url(../Images/body_back.png);
background-repeat: repeat-y;
}
p.history a {
margin: 0;
padding:0;
font-size: 1em;
text-decoration: underline;
color: #2b4b8c;
}
div.autoList {
float: left;
width: 48%;
}
div.autoListRight {
float: right;
width: 48%;
}
div.shortBE {
padding:0.5em;
margin: 1em 0 1em 0;
}
div.shortBE:hover {
background-color: #f1f1f1;
}
p.head {
padding:0em 0 0.25em 0.25em;
font-size: 2.2em;
font-weight: bold;
width: 99%;
margin: 0;
border-bottom: 1px solid #a06817;
}
p.subLink{
margin:0.3em 0 0.2em 0.25em;
width:100%;
}
p.subLink a{
font-size: 1.2em;
font-weight:bold;
margin:0 1em 0 0;
}
p.smallHead {
font-size: 1.4em;
font-weight: bold;
width: 100%;
margin: 0.5em 0 0 0;
}
p.head a,p.smallHead a {
}
.small{
font-size: 0.8em;
}
p.underHead {
width: 99%;
background-color: #f1f1f1;
padding: 0.3em 0.1em 0.3em 0.5em;
margin: 0.6em 0 0.2em 0;
font-size: 0.9em;
}
p.head a.big {
font-size: 1.2em;
font-weight: bold;
}
div.footer{
float:left;
width:100%;
max-width:1280px;
height:16px;
margin:2em 0 2em 0;
padding: 6px 0 10px 0;
background-color: #f3f3f3;
border-top: 1px solid white;
background-image: url(../Images/shadow.png);
background-repeat: repeat-x;
background-position: bottom;
display:block;
}
div.footer a {
margin:0 3em 0 3em;
text-decoration: underline;
}
div.footer a:hover {
}
a.button{
padding:8px;
margin:0.25em 0 0 0.5em;
float:right;
}
a.rss2 {
background: url('http://mensch.coop/include/Forest/mensch.coop/Images/buttonAll.png') 0px -144px no-repeat;
}
a.rss2:hover {
background: url('http://mensch.coop/include/Forest/mensch.coop/Images/buttonAll.png') -16px -144px no-repeat;
}
a.atom {
background: url('http://mensch.coop/include/Forest/mensch.coop/Images/buttonAll.png') 0px -160px no-repeat;
}
a.atom:hover {
background: url('http://mensch.coop/include/Forest/mensch.coop/Images/buttonAll.png') -16px -160px no-repeat;
}
div.center{
text-align:center;
}
\ No newline at end of file
var obj_lang = new Object();
function fnc_initLang(param_lang){
obj_lang = param_lang[0];
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Language code='deu'>
<lang name="deu">Deutsch</lang>
<lang name="eng">Englisch</lang>
<lang name="changeLang">ändere Sprache</lang>
<lang name="TopicBC">Homepages</lang>
<lang name="CampaignBC">Kampagnen</lang>
<lang name="DateBC">Kalender</lang>
<lang name="ThreadBC">Kommentare</lang>
<lang name="ThreadMessageUnderBC">Foren</lang>
<lang name="FileBC">Materialien</lang>
<lang name="FileBCImage">Bilder</lang>
<lang name="ThreadMessageBC">Aktuelles</lang>
<lang name="ThreadMessageBCBlog">Aktuelles</lang>
<lang name="BlogSubPages">Unterseiten</lang>
<lang name="BlogGuestbook">Gästebuch</lang>
<lang name="UrlBC">Lesezeichen</lang>
<lang name="NewsfeedBC">Newsfeeds</lang>
<lang name="FileUnderImageBC">Bildergalerien</lang>
<lang name="ThreadMessageBCForum">Foren Beiträge</lang>
<lang name="LinkList">Anhänge</lang>
<lang name="TopicBE">Homepage</lang>
<lang name="CampaignBE">Kampagne</lang>
<lang name="DateBE">Termin</lang>
<lang name="ThreadBE">Kommentar</lang>
<lang name="ThreadMessageUnderBE">Forum</lang>
<lang name="PostMessageBE">Nachricht</lang>
<lang name="FileBE">Datei</lang>
<lang name="ThreadMessageBE">Beitrag</lang>
<lang name="ThreadMessageBEBlog">Artikel</lang>
<lang name="UrlBE">Lesezeichen</lang>
<lang name="FileUnderImageBE">Bildergalerie</lang>
<lang name="NewsfeedBE">Newsfeed</lang>
<lang name="ThreadMessageBEForum">Beitrag</lang>
<lang name="BlogBEGuestbook">Gästebuch Eintrag</lang>
<lang name="BlogSubPage">Unterseite</lang>
<lang name="Economy">Solidarische Ökonomie</lang>
<lang name="SocialMovement">Soziale Bewegung</lang>
<lang name="Culture">Kunst und Kultur</lang>
<lang name="antimilitarism">Antimilitarismus</lang>
<lang name="antiracism">Antirassismus</lang>
<lang name="antifascism">Antifaschismus</lang>
<lang name="gender">Gender</lang>
<lang name="antisemitism">Antisemitismus</lang>
<lang name="ecology">Umweltschutz</lang>
<lang name="freespace">Freiräume</lang>
<lang name="repression">Repression</lang>
<lang name="socialbattle">Sozial Kämpfe</lang>
<lang name="international">International</lang>
<lang name="education">Bildung</lang>
<lang name="privacy">Datenschutz</lang>
<lang name="theory">Theorie</lang>
<lang name="mediaactivism">Medienaktivismus</lang>
<lang name="netactivism">Netzaktivismus</lang>
<lang name="blabla">Sonstiges</lang>
<lang name="finearts">Bildende Kunst</lang>
<lang name="performingarts">Darstellende Kunst</lang>
<lang name="music">Musik</lang>
<lang name="literature">Literatur</lang>
<lang name="sport">Sport</lang>
<lang name="search">Suche</lang>
<lang name="searchAim">Suche nach: </lang>
<lang name="searchValue">Suchbegriff: </lang>
<lang name="application">Anwendung</lang>
<lang name="audio">Audio</lang>
<lang name="image">Bild</lang>
<lang name="text">Text</lang>
<lang name="video">Video</lang>
<lang name="elem">Element</lang>
<lang name="type">Typ: </lang>
<lang name="legalNotice">Impressum</lang>
<lang name="Profile">Profil</lang>
<lang name="Profiles">Profile</lang>
<lang name="tag">Tag</lang>
<lang name="tags">Tags</lang>
<lang name="commentsAbout">Kommentare zu </lang>
<lang name="noComments">keine Kommentare vorhanden</lang>
<lang name="writeComment">Kommentar schreiben</lang>
<lang name="more">mehr...</lang>
<lang name="Friend">Freundschaft</lang>
<lang name="smallMonday">Mo</lang>
<lang name="smallTuesday">Di</lang>
<lang name="smallWednesday">Mi</lang>
<lang name="smallThursday">Do</lang>
<lang name="smallFriday">Fr</lang>
<lang name="smallSatuarday">Sa</lang>
<lang name="smallSunday">So</lang>
<lang name="clock">Uhr</lang>
<lang name="next">vor</lang>
<lang name="back">zurück</lang>
<lang name="nextDate">einen Monat vor</lang>
<lang name="backDate">einen Monat zurück</lang>
<js>
<lang name="Mo">Mo</lang>
<lang name="Tu">Di</lang>
<lang name="We">Mi</lang>
<lang name="Th">Do</lang>
<lang name="Fr">Fr</lang>
<lang name="Sa">Sa</lang>
<lang name="Su">So</lang>
<lang name="Jan">Jan</lang>
<lang name="Feb">Feb</lang>
<lang name="Mar">Mär</lang>
<lang name="Apr">Apr</lang>
<lang name="May">Mai</lang>
<lang name="Jun">Jun</lang>
<lang name="Jul">Jul</lang>
<lang name="Aug">Aug</lang>
<lang name="Sep">Sep</lang>
<lang name="Oct">Okt</lang>
<lang name="Nov">Nov</lang>
<lang name="Dec">Dez</lang>
<lang name="date">Kalender</lang>
</js>
</Language>
\ No newline at end of file
<?php
/**
* @file TreeIndex.mcEg.inc.php
* @category freeSN
* @mailto code [at] netz.coop
* @version 0.4.200901
* @link http://netz.coop
*
* @copyright Copyright by netz.coop e.G. 2015
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
$DOMElement_Basic = $DOMDocument->createElement("XMLSite_Basic");
$Content->appendChild($DOMElement_Basic);
$DOMElement_Display = $DOMDocument->createElement("XMLSite_Display");
$Content->appendChild($DOMElement_Display);
$DOMElement_Misc = $DOMDocument->createElement("XMLSite_Misc");
$Content->appendChild($DOMElement_Misc);
$PartOf = false;
$var_RequestProfileID = 0;
$param_MenuLink=$param_url=$param_Tree=null;
/** Basic */
$var_PartOfBE =& MultimediaText::loadElement($HostAccount, $DB, $var_MultimediaTextClassName='*', $_LOSP_SIMPLEPAGE_ID);
if($var_PartOfBE) {
BasisElement::loadObjectLevel($HostAccount, $DB, $var_PartOfBE, 'RealSingleView');
$var_BasicDOMElement = $var_PartOfBE->getObjDOMElement($HostAccount, $DB, $DOMDocument);
$DOMElement_Basic->appendChild($var_BasicDOMElement);
$var_get['p'][0] = 'showSingle';
$var_get['p'][1] = 'ID';
$var_get['p'][2] = $_LOSP_SIMPLEPAGE_ID;
Controller::showDefaultBasisClipboard($HostAccount, $DB, $DOMDocument, 'ForShowSingle', $var_BasicDOMElement, get_class($var_PartOfBE), $var_PartOfBE, &$param_url, &$param_Tree, $var_get, $param_GET_setNull=false, $param_showDefault=0, $param_GETcount=null);
if(array_key_exists('p', $_GET) && count($_GET['p'])>3 && $_GET['p'][2]==$_LOSP_SIMPLEPAGE_ID){
$var_get['p'] = $_GET['p'];
if(array_key_exists('c',$_GET)){
$var_get['c'] = $_GET['c'];
}
$var_display=Controller::runTree($HostAccount, $DB, $DOMDocument, $var_get['p'][3], $param_MenuLink, $var_PageDOMElement, $var_PartOfBE, $param_GET_index=3, $param_url, $var_get, $param_Tree, $param_showDefault=0, $param_MaxDetph=0);
$DOMElement_Display->appendChild($DOMDocument->importNode($var_display,true));
}
}
if(array_key_exists('p', $_GET)){
if(count($_GET['p'])==3 && is_numeric($_GET['p'][2])){
if($_GET['p'][2] == $_LOSP_SIMPLEPAGE_ID){
$DOMElement_Display->appendChild($DOMDocument->importNode($var_BasicDOMElement->cloneNode(true),true));
}
}
}
/*$_TITLE = GlobalData::getSiteTitle();
$_DESCRIPTION = GlobalData::getMetaDescription();
if($_LOSP_DEV) {
$_DEV_TITLE = "[LOSP] :: DEV//Forest/$_TREE/Design/$_LOSP_DESIGNDIR/ - ";
} else {
$_DEV_TITLE ='';
}*/
$DOMElement_Display->appendChild(Error::getAllXML($DOMDocument));
/** vorstrukturierte DOMElemente werden dem Haupt XML DOMDocument hizugefügt */
$Content->appendChild($DOMElement_HTMLTagHead);
$var_css = $_LOSP_SERVERNAME.'/include/css/default.css';
?>
\ No newline at end of file
<?php
/**
* @file *.inc.php
* @category freeSN
* @mailto code [at] netz.coop
* @version 0.4.200901
* @link http://netz.coop
*
* @copyright Copyright by netz.coop e.G. 2015
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
/**
* Hier werden alle Baum abhängigen Klassen, wenn sie benötigt werden, geladen
*
* @filesource RequireClass.php
* @copyright Copyright mensch.coop; 2007
* @mailto dev [at] mensch.coop
* @link losp.mensch.coop (Entwickler Seite von losp)
*/
//$GLOBALS['class'][''] = $_LOSPDIR . 'include/Forest/'.$_TREE.'/php/class_*.inc.php';
?>
\ No newline at end of file
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!