Hirdetés
- iPhone topik
- Milyen okostelefont vegyek?
- Samsung Galaxy S23 Ultra - non plus ultra
- Samsung Galaxy S25 Ultra - titán keret, acélos teljesítmény
- Apple Watch
- Akciófigyelő: Százezer forint engedmény a Nothing Phone (3)-ra
- Hivatalos a OnePlus 13 startdátuma
- Samsung Galaxy S24 Ultra - ha működik, ne változtass!
- Megtartotta Európában a 7500 mAh-t az Oppo
- Samsung Galaxy S22 és S22+ - a kis vagány meg a bátyja
Új hozzászólás Aktív témák
-
Krszti1660
csendes tag
válasz
Krszti1660
#3793
üzenetére
ezt ja ki:S
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/a7726055/public_html/inc/config.php on line 5
<?
include("db.php");
$link = mysql_connect($db_server, $db_user, $db_password) or die("Could not connect");
mysql_select_db($db_name) or die("Could not select database");
$query = "SELECT * from config";
$result = mysql_query($query) or die("Query failed");
while ($row = mysql_fetch_assoc($result)) {
$config[$row['soption']]=$row['svalue'];
}
$site_name = $config['SiteName'];
$sql="select * from users where userid='1'";
$result = mysql_query($sql) or die("Query failed.");
while ($row = mysql_fetch_array($result))
{
$support_email=$row['email'];
}
$server_url = $config['SiteUrl'];
// config options
$version = $config['ScriptVersion'];
$uploads = $config['Uploads'];
$registration = $config['MemberRegistration'];
$validation = $config['EmailValidation'];
$ads = $config['Advertisements'];
$watermarking = $config['Watermarking'];
// thumbnail settings
$dest_height = $config['ThumbHeight'];
$dest_width = $config['ThumbWidth'];
$server_root = $config['SiteRoot'];
$server_directory = "";
$server_save_directory = $server_directory . "/images/"; // /folder/
// do not change the following variables
global $server_dir;
$server_dir = $server_root . $server_save_directory;
$page_url = $server_url . $server_directory;
$image_url = $server_url . $server_save_directory;
$valid_mime_types_display = $config['Extension'];
$valid_file_ext=explode(",",$config['Extension']);
function getSize ($imageurl)
{
if ( intval(phpversion()) < 5 )
die ( 'PHP5 Required' );
$headers = get_headers($imageurl, 1);
return $headers['Content-Length'];
}
// Convert a URL to the local file path and vice versa, convert a local file path to a URL.
// this sets the sytem / or \ :
strstr( PHP_OS, "WIN") ? $slash = "\\" : $slash = "/";
// This is the location of the php file that contains this
// function. Usually this request is made to files/folders
// down the directory structure, so the php file that
// contains these functions is a good "where am i"
// reference point:
$WIMPY_BASE['path']['physical'] = getcwd();
$WIMPY_BASE['path']['www'] = "http://".$_SERVER['HTTP_HOST'];
function url2filepath($theURL){
global $WIMPY_BASE, $slash;
$AtheFile = explode ("/", $theURL);
$theFileName = array_pop($AtheFile);
$AwimpyPathWWW = explode ("/", $WIMPY_BASE['path']['www']);
$AtheFilePath = array_values (array_diff ($AtheFile, $AwimpyPathWWW));
if($AtheFilePath){
$theFilePath = $slash.implode($slash, $AtheFilePath).$slash.$theFileName;
} else {
$theFilePath = implode($slash, $AtheFilePath).$slash.$theFileName;
}
return ($WIMPY_BASE['path']['physical'].$theFilePath);
}
function filepath2url ($theFilepath){
global $WIMPY_BASE, $slash;
$AtheFile = explode ($slash, $theFilepath);
$theFileName = array_pop($AtheFile);
$AwimpyPathFILE = explode ($slash, $WIMPY_BASE['path']['physical']);
$AtheFilePath = array_values (array_diff ($AtheFile, $AwimpyPathFILE));
$thFileURL = implode("/", $AtheFilePath)."/".$theFileName;
return ($WIMPY_BASE['path']['www']."$thFileURL");
}
?>a db.php-ban meg nincs semmi

-
Krszti1660
csendes tag
válasz
Sk8erPeter
#3791
üzenetére
most fel akarok tenni egy másik motort és az instalnál ezt írja ki:
File ' . $db_file . ' is not writable. Please change the access permissions or delete current file.
És a db.php-ben meg nincs semi :S

-
Krszti1660
csendes tag
válasz
Krszti1660
#3786
üzenetére
meg találtam és próbáltam átt írni 777-re de akkor sem jó :S
dpi_init.php on line 80 ennek a php-nak a kódját másoltam be.... -
Krszti1660
csendes tag
Na most kérdezek egy láma kérdést:
session_start();
list($usec, $sec) = explode(" ", microtime());
$START_TIME = ((float)$usec + (float)$sec); $WIPED_TIME = 0;$root_path ="{ROOT_PATH}";
$cdomain ="{C_DOMAIN}";if(!DEFINED('NOGZ') && eregi('gzip',$_SERVER['HTTP_ACCEPT_ENCODING'])) @ob_start("ob_gzhandler");
REQUIRE_ONCE( './includes/dpi_functions.php' );
REQUIRE_ONCE( './includes/dpi_temp.php' );
REQUIRE_ONCE( './includes/dpi_specials.php' );
REQUIRE_ONCE( './includes/dpi_iptc.php' );
REQUIRE_ONCE( './includes/dpi_custom.php' );$settings = load_settings();
DEFINE('TEMP_DIR', "./theme/$settings[theme]/templates");#Load the Global Settings
$meta_tags = eval_template('header_meta_tags');
$header_right = eval_template('header_right');
$myurl = urlencode("http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");$center = ''; #Initialize center content
$title = '';
$logged_user = FALSE;if(isset($_COOKIE['user'])) {
@list($id,$pass) = @explode(',',$_COOKIE['user']);
$id = _html($id);
$pass = _html($pass);
$USR = user($id);if($USR) {
if(md5($USR['password']) == $pass) {
$logged_user = html_arr($USR);
$admincp_link = strtolower($settings['admin_user']) == strtolower($logged_user['username']) ? eval_template('user_admin_link') : '';if($logged_user['locked'] == 'Y') {
setcookie('user','',time(),'/',$cdomain);
echo "Automatically logging out, your account has been suspended by administrator.<br>";
redirect("$root_path/index.php",3);
die();
}}
}
}$header_links = eval_template($logged_user ? 'user_links' :'visitor_links');
$V_TIMAGES=false;
if(!$logged_user) {
if(isset($_SESSION['s_'.md5(_ip())])) {
$total_images = substr_count($_SESSION['s_'.md5(_ip())],',');
$total_images++;
$series = urlencode(base64_encode($_SESSION['s_'.md5(_ip())]));
$header_links .= eval_template('visitor_totals');
$V_TIMAGES=true;
}
}$iarchive_p1 = date("Y_F_d",filemtime(DATA_DIR."/LID"));
$css = eval_template("css");Ezt írja ki: warning : File/Folder is not writable (chmod to 777 through FTP)
és nem is találom a chmod-ot :S
-
Krszti1660
csendes tag
válasz
Tele von Zsinór
#3765
üzenetére
ezt komplett át kellene nézni és aztán vagy meg csinálni vagy pedig hagyni a francba. Így is ki fizettem a domain-t...
Szóval csak át kéne nézni
-
Krszti1660
csendes tag
válasz
Tele von Zsinór
#3753
üzenetére
Na sziasztok

Nekem egy programozó kellene
Egy mmorpg maffiás játékot szeretnék elindítani és ennek az oldal motrát kellene át nézni. Domain, tárhely már meg van ha az oldal motort is meg tudná valaki nézni mindjárt lehet is fordítani le és indulhat a játék

Kérlek valaki írjon PM-et vagy pedig itt
-
Krszti1660
csendes tag
válasz
Tele von Zsinór
#3753
üzenetére
Hát most nem tudok kérdezni mert hulla fáradt vagyok de kb holnap este 18óra fele ha lehet akkor fel jövök és beszélünk

-
Krszti1660
csendes tag
Sziasztok

Kellene nekem egy profi php-s aki érti a mysql-t is
Szóval van egy játék motrom és nem működik :S
azért mert állítólag a mysql- lekérdezések nem jók. Aki tud az írjon!
Új hozzászólás Aktív témák
- ASUS Zenbook S 13 OLED UM5302TA
- Swift SF16-51T 16" 3K OLED érintő Ultra 9 288V Arc 140V 32GB 1TB ujjlolv IR kam gar
- Sony Bravia XF85 43" 4K Ultra HD 100 Hz LED Android Smart TV (KD-43XF8577)
- MacBook Air 13", M3 16/256, csillagfény
- Kezdő Gamer PC / Számítógép! Csere-Beszámítás!R7 1700X /GTX 1060 6GB /16GB DDR4 / 250SSD + 1TB HDD
- iPhone 14 Pro Max 256GB Space Black -1 ÉV GARANCIA -Kártyafüggetlen, 100% Akkumulátor
- GYÖNYÖRŰ iPhone 13 128GB Midnight -1 ÉV GARANCIA - Kártyafüggetlen, MS3576, 100% Akkumulátor
- GYÖNYÖRŰ iPhone 14 Pro Max 256GB Space Black - 1 ÉV GARANCIA, Kártyafüggetlen,MS3489, 100% Akksi
- Keresek Xbox Series S / Series X / Playstation 5 konzolokat
- MSI Katana 15 HX - 15.6" QHD 165Hz - i7 14650HX - 16GB - 1TB - RTX 5060 - Win11 - 3 év gari - MAGYAR
Állásajánlatok
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest
Cég: Laptopműhely Bt.
Város: Budapest





