WBCE Home | WBCE Hilfe | WBCE Addon Repository | Impressum | Datenschutz

WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

You are not logged in.

#1 15.04.2017 12:35:42

florian
Projektmanagement und Support WBCE CMS

Tool zum Neugenerieren von Accessfiles?

Gab es nicht mal irgend ein Script, um die Accessfiles neu zu generieren? Irgend so ein kleines Stück PHP, was man in den Root kopieren musste, und das hat dann alle Dateien in /pages neu erzeugt.
Ich finde das gerade nirgends. Hat das zufällig jemand bei sich herumliegen?

Offline

#2 15.04.2017 14:48:54

evaki
Guest

Re: Tool zum Neugenerieren von Accessfiles?

Rebuild_Accessfiles .php ist in wbsp6/7 (admin/pages)
Ob das  mit wbce funktioniert weiß ich nicht. Guggsu code

[ code]
[== PHP ==]
GELÖSCHT !
[ /code]

Last edited by evaki (15.04.2017 15:13:04)

#3 15.04.2017 15:05:26

florian
Projektmanagement und Support WBCE CMS

Re: Tool zum Neugenerieren von Accessfiles?

Danke, aber leider inkompatibel

Offline

#4 15.04.2017 15:07:38

evaki
Guest

Re: Tool zum Neugenerieren von Accessfiles?

Na, dann dat vom Fischstäbchen

[== PHP ==]
<?php

// $Id: add.php 831 2008-04-16 19:34:25Z doc $

/*

 Website Baker Project <http://www.websitebaker.org/>
 Copyright (C) 2004-2008, Ryan Djurovich

 Website Baker 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 2 of the License, or
 (at your option) any later version.

 Website Baker 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 Website Baker; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

*/

// Create new admin object and print admin header
require('config.php');
require_once(WB_PATH.'/framework/class.admin.php');
//$admin = new admin('Pages', 'pages_add');

// Include the WB functions file
require_once(WB_PATH.'/framework/functions.php');



// 
$get_all_pages = $database->query("SELECT page_id, link, level FROM ".TABLE_PREFIX."pages");

//create_access_file(WB_PATH.PAGES_DIRECTORY.'/test', 18, 0);
//die();

if($get_all_pages->numRows() > 0) {

	while($fetch_pages = $get_all_pages->fetchRow()) {
		$page_id = $fetch_pages['page_id'];
		$link = $fetch_pages['link'];
		$level = $fetch_pages['level'];
		
		echo $page_id .' '. WB_PATH.PAGES_DIRECTORY.$link.PAGE_EXTENSION.' '. $level . '<br>';
		
		
		// Create a new file in the /pages dir
		create_access_file(WB_PATH.PAGES_DIRECTORY.$link.PAGE_EXTENSION, $page_id, $level);
		//create_access_file($link.PAGE_EXTENSION, $page_id, $level);
		
	}
}


?>

#5 15.04.2017 15:12:16

florian
Projektmanagement und Support WBCE CMS

Re: Tool zum Neugenerieren von Accessfiles?

Hervorragend, das ist es, Danke.

Offline

Board footer

Powered by FluxBB

up