Mein Problem: Bei dieser installation werden Ordner erzeugt mit den eigenschaften 755, worauf es dann nicht mehr zugreifen kann. [Failed to create directory...]
Ich hätte gern 777... Habe es damit versucht $Ergebnis = mkdir($folder, 0777);
Entweder habe ich es immer an der falschen stelle eingefügt oder es passt nicht zu dem restlichen code. Habe halt keine Ahnung von php![]()
Wenn mir den code jemand abändern könnte wäre ich froh :-)
Ich denk mal nur diese Zeilen spielen eine Rolle aber zur Sicherheit poste ich nochmal alles unten drunter...
PHP-Code:defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
function com_install()
{
global $database;
//change SB menu icon
$database->setQuery( "SELECT id FROM #__components WHERE admin_menu_link = 'option=com_mamboboard'" );
$id = $database->loadResult();
//add new admin menu images
$database->setQuery( "UPDATE #__components " .
"SET admin_menu_img = '../administrator/components/com_mamboboard/images/sbmenu.png'" .
", admin_menu_link = 'option=com_mamboboard' " .
"WHERE id='$id'");
$database->query();
?>
PHP-Code:<?php
/**
* @version $Id: install.mamboboard.php,v 1.5 2006/05/15 10:28:44 supachai_chai Exp $
* @package MamboBoard
* @copyright (C) 2006 Mambo LaiThai Team http://www.mambohub.com
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* MamboBoard is Free Software based on Simpleboard by Jan de Graaff
*/
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
function com_install()
{
global $database;
//change SB menu icon
$database->setQuery( "SELECT id FROM #__components WHERE admin_menu_link = 'option=com_mamboboard'" );
$id = $database->loadResult();
//add new admin menu images
$database->setQuery( "UPDATE #__components " .
"SET admin_menu_img = '../administrator/components/com_mamboboard/images/sbmenu.png'" .
", admin_menu_link = 'option=com_mamboboard' " .
"WHERE id='$id'");
$database->query();
?>
<center>
<table width="100%" border="0">
<tr>
<td width="10%"><img src="components/com_mamboboard/images/logo.png"></td>
<td width="90%"><p><strong>MamboBoard Forum</strong> Component <em>for Mambo CMS</em> <br />
This version © 2006 - 2007 MamboBoard<br>
All rights reserved.
<br />
<br />
This Mambo 4.5.x Component has been released under the <a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">GNU/GPL</a>. </p>
</td>
</tr>
<tr>
<td>
<strong><code>I N S T A L L :</code></strong><br /><br />
<font color="red">succesfull</font>
</td>
<td>
<p><strong><font color="#FF8000">Upgrade instructions</font></strong> can be found on the MamboBoard site;
They are always contained in the release notes on our website: <a href="http://www.mamboboard.com" target="_blank">MamboBoard</a><br />
<br />
All the documentation about <strong>Administration</strong> and
<strong>Configuration</strong> can be found
<a href="http://www.mamboboard.com" target="_blank">:: here ::</a></p>
<p><strong><font color="#FF8000">Load Sample Data</font> </strong><br />
If you don't know how to start, be sure to check out the "Load Sample Data" menu option or click <a href="index2.php?option=com_mamboboard&task=loadSample">here</a></p></td>
</tr>
<tr>
<td><p>Thank you for using MamboBoard!</p>
<p><em>Akarawuth Tamrareang, Supachai Teasakul, Pisan Chueachatchai, Suriya Kaewmungmuang</em></p></td>
<td>
<p><strong> <font color="red">UPGRADE DATABASE:</font></strong>
If you are upgrading it is very well possible that you should upgrade your database.<br>
Please click on the link below to do so:<br>
<br>
<!-- <a href="index2.php?option=com_mamboboard&task=upgradetables">Upgrade Database</a><br>
<br> -->
<strong>Please do it immediately before continuing!</strong>
</p>
<p><strong><font color="#FF8000">Note for any version of MamboBoard: </font></strong><br>
<font size="1">MamboBoard is free software and therefor provided 'as-is'. You haven't paid for it and you haven't paid for support. You even have paid to get you software that comes with a guarantee that it works...<br>
MamboBoard Team, its developers, contributors and other volunteers and its parental legal entities (formally or informally) (these will further be referenced as 'BSR') offer you MamboBoard for absolutely free for your own personal use, pleasure and education. </font></p>
<p><font size="1">Any MamboBoard version may contain errors, bugs and/or can cause problems otherwise. While it is relatively safe to use this version, we do point you at this fact.<br>
By installing this software, you have agreed to waive BSR from whatever form of liability and/or responsibility for any problems and/or damages done by this software to you, your web environment or in any other way legallly, financially, socially, emotionally or whatever other gallery you could possibly imagine and find a legal article for that favours your rights...<br>
In short and slightly more human readable: Use this software at your own risk; we don't guarantee anything! And by clicking 'continue' below and using MamboBoard, it's your way of answering: "Yeah, yeah, I know and I don't care... trust me, I know what I'm doing so it'll be my own fault if things go wrong"...</font></p>
<p><font size="1">Have fun with MamboBoard! We know we have!!!! </font></p></td>
</tr>
</table>
</center>
<?php
}
?>


LinkBack URL
About LinkBacks
Zitieren

Lesezeichen