Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 02:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Metin2 Homepage PROBLEMME

Discussion on Metin2 Homepage PROBLEMME within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 89
Received Thanks: 1
Metin2 Homepage PROBLEMME

ich hab mir Metin2 Homepage von by Ownii & Sora runter geladen und auf mein ROOT-server hoch geladen in /apache24/data install.php anpass und wenn ich jetzt meine IP adresse geben kommt immer datei runter auf mein PC

datei:

Quote:
<?PHP
session_name("m2hp");
session_start();

error_reporting(E_ALL&~E_NOTICE);

require("./inc/config.inc.php");
require("./inc/rights.inc.php");
require("./inc/functions.inc.php");

$sqlHp = mysql_connect(SQL_HP_HOST, SQL_HP_USER, SQL_HP_PASS);
$sqlServ = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS);
require("./inc/head.inc.php");
?>
<!-- Design by King Sora -->
<!-- Code by Ownii -->
<!-- -->
<html>
<head>
<title><?PHP echo $serverSettings['titel_page'];?></title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<!-- Header -->
<div id="header">
<br />
<div class="head">
<a href="#" class="logo" title="ExampleMt2 - Official Website">
<img src="images/logo.png">
</a>
</div>
<div id="navbar">
<ul>
<a href="?s=home"><li>Home</li></a>
<a href="?s=register"><li>Registrierung</li></a>
<a href="?s=rankings"><li>Rangliste</li></a>
<a href="?s=download"><li class="middle"></li></a>
<a href="?s=usercp"><li>User Panel</li></a>
<a href="/board/"><li>Forum</li></a>
<a href="?s=medien"><li>Medien</li></a>
</ul>
</div>
</div>

<!-- Main Content -->
<div id="main">
<div id="main_top">
</div>
<div id="main_content">
<!-- Right -->
<div id="right">
<?PHP if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) {
if ($_GET['s']=="itemshop") {
?>
<div id="right_content">
<div id="right_top">
<div id="right_foot">
<h2>Kategorien</h2>
<p>
<ul><center>
<?PHP
$sqlCmd = "SELECT * FROM ".SQL_HP_DB.".is_kategorien ORDER BY titel ASC;";
$sqlQry = mysql_query($sqlCmd,$sqlHp);
while($getKats = mysql_fetch_object($sqlQry)) {
echo'<li><a href="index.php?s=itemshop&k='.$getKats->id.'">'.$getKats->titel.'</a></li>';
}
?></center>
</ul>
</p>
</div>
</div>
</div>
<?PHP
}
}
?>
<div id="right_content">
<div id="right_top">
<div id="right_foot">
<?PHP include("./pages/login.php"); ?>
</p>
</div>
</div>
</div>
<div id="right_content">
<div id="right_top">
<div id="right_foot">
<h2>Serverstatus</h2>
<p>
<div id="right_text">
<div id="status_load">
<?PHP include("status.php"); ?>
</div>
</div>
</p>
</div>
</div>
</div>
<div id="right_content">
<div id="right_top">
<div id="right_foot">
<h2>Serverinformationen</h2>
<p>
<div id="right_text">
<?PHP include("./pages/stats.php"); ?><br>
<a class="vote" href="votelink"><input type="submit" value="Vote 4 us" class="btn" /></a>
</center>
</div>
</p>
</div>
</div>
</div>
</div>
<!-- Left -->

<div id="left">
<div id="left_top">
<?PHP
$includeDir = ".".DIRECTORY_SEPARATOR."pages".DIRECTORY_SEPARATO R;
$includeDefault = $includeDir."home.php";
$include404 = $includeDir."404.php";

if(isset($_GET['s']) && !empty($_GET['s']))
{

$_GET['s'] = str_replace("\0", '', $_GET['s']);
$includeFile = basename(realpath($includeDir.$_GET['s'].".php"));
$includePath = $includeDir.$includeFile;

if(!empty($includeFile) && file_exists($includePath))
{
include($includePath);
}
else
{
include($include404);
}

}
else
{
include($includeDefault);
}
?>
</div>
<div id="left_foot">
</div>
</div>
</div>
<div id="main_bottom">
</div>
<!-- Footer -->
<div id="footer">
<p class="cp">&copy; Copyright <a href="#"><?PHP echo $serverSettings['titel'];?></a> 2011. All rights reserved. Design by <a href="http://www.elitepvpers.com/forum/members/989073-king-sora.html" target="_blank">King Sora</a>. Code by <a href="http://www.ownii.eu" target="_blank">Ownii</a>.</p>
</div>
</div>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
$("#status_reload").live('click', (function () {
$("#status_load").html('loading...').load("status. php");
}));
</script>
</body>
</html>
ragu is offline  
Old 09/05/2014, 03:28   #2
 
Coniesan's Avatar
 
elite*gold: 1000
Join Date: Mar 2009
Posts: 1,408
Received Thanks: 1,007
Ergo das php Script wird nicht ausgeführt sondern runtergeladen?
Wenn dies der Fall ist: Apache richtig konfigurieren und/oder PHP installieren und richtig anpassen
Coniesan is offline  
Old 09/05/2014, 17:51   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 89
Received Thanks: 1
Quote:
Originally Posted by Coniesan View Post
Ergo das php Script wird nicht ausgeführt sondern runtergeladen?
Wenn dies der Fall ist: Apache richtig konfigurieren und/oder PHP installieren und richtig anpassen
was heisst richtig ? ich hab php 55 instaliert und apache24 und alle beide in conf. eingefügt

so gemacht:

gerufen----
nano /usr/local/etc/apache24/httpd.conf
eigetragen---
DirectoryIndex (+index.php) index.html

+ AddType application/x-httpd-php .php
+ AddType application/x-httpd-php-source .phps

gerufen----
nano /etc/rc.conf

eigetragen---
+ apache24_enable="YES"
ragu is offline  
Old 09/05/2014, 18:01   #4

 
Avulsed's Avatar
 
elite*gold: 90
Join Date: Apr 2010
Posts: 1,887
Received Thanks: 1,793
Hast du das PHP5 Modul für Apache auch installiert?
Avulsed is offline  
Old 09/05/2014, 18:23   #5
 
elite*gold: 0
Join Date: Sep 2008
Posts: 89
Received Thanks: 1
Quote:
Originally Posted by Avulsed View Post
Hast du das PHP5 Modul für Apache auch installiert?
meinst du das ?

/usr/ports/lang/php55 # cd /usr/ports/lang/php55-extensions
/usr/ports/lang/php55-extensions # make install clean


wenn nicht das was du mein dann schreib bitte befehl wie das aussehen soll

FEHLER liegt bei mir 100% ich hab schon mehrere HP probiert, ergebnis gleiche!!!
ragu is offline  
Old 09/05/2014, 18:36   #6

 
Avulsed's Avatar
 
elite*gold: 90
Join Date: Apr 2010
Posts: 1,887
Received Thanks: 1,793
Für mal im Verzeichnis "/usr/ports/lang/php55" den Befehl "make config" aus und schau ob Apache angekreuzt ist.
Avulsed is offline  
Old 09/05/2014, 19:48   #7
 
elite*gold: 0
Join Date: Sep 2008
Posts: 89
Received Thanks: 1
Quote:
Originally Posted by Avulsed View Post
Für mal im Verzeichnis "/usr/ports/lang/php55" den Befehl "make config" aus und schau ob Apache angekreuzt ist.

ich habe gar kein auswahl apache in tabele



ich hab so gemacht wie hier ( aber apache 24 und php55):


hat jemand noch ne idee ? wenn ich Homepage rufe, ladet immer config runter.. Page liegt in ordner /usr/local/www/apache24/data

WAS ist FALSCH
ragu is offline  
Reply


Similar Threads Similar Threads
Metin2 Homepage Problemme
04/14/2013 - Metin2 Private Server - 0 Replies
Hallo ich hab ein problemm mit Itemshop alles ist gut bis auf wenn ich bei is mit bilder anzeigen haben will wird mir bei den items keine bilder angzeigt egal ob es png jpg und gif datei sind hab auch nur denn bild name rein getan in navicat auch nix gebracht ich lade mal vorsicht halber denn itemshop.php hoch und der skript ist bei Hen
Metin2 Homepage Problemme
04/14/2013 - Metin2 Private Server - 2 Replies
Hallo ich hab ein Problemm mit meiner homepage Wolte admin Panel rein geht nicht da ich irgenwas mit index machen muss versteh ich es nicht so ganz wäre nett wenn ihr mir helfen Könnt woran es liegt ich schreib euch mal die index hier rein
Metin2 php install problemme
03/18/2013 - Metin2 Private Server - 1 Replies
Hallo hab problemm mit mein php installieren was muss ich machen das es geht die fehler codes sind da



All times are GMT +1. The time now is 02:13.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.