- Samsung Galaxy S25 FE - fenséges, felejthető vagy felesleges?
- Apple iPhone 17 Pro Max – fennsík
- Azonnali navigációs kérdések órája
- Google Pixel topik
- Magyarországon is kapható a Moto G85 5G
- LG G8X - kettőn áll a vásár
- Huawei Watch GT 3 Pro - korlátolt szépség
- iPhone topik
- MIUI / HyperOS topik
- Huawei Watch GT 6 és GT 6 Pro duplateszt
Ú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ó kelleneEgy 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
- Intel Core Ultra 3, Core Ultra 5, Ultra 7, Ultra 9 "Arrow Lake" LGA 1851
- Raspberry Pi
- Házimozi belépő szinten
- Samsung Galaxy S25 FE - fenséges, felejthető vagy felesleges?
- NVIDIA GeForce RTX 5080 / 5090 (GB203 / 202)
- Battlefield 2042
- Számtech boltosok memoárjai, azaz amikor kiborulunk...
- Jegeli pénznyelő projektjét az Apple, az okosszemüvegben látják a jövőt
- Ismerkedés a Zyxel NSA325 v2-vel
- Milyen TV-t vegyek?
- További aktív témák...
- LG V50
- Eladó Lenovo ThinkPad X1 Carbon Gen 8 prémium üzleti ultrabook, WQHD kijelzővel!
- Eladó HP EliteBook 645 G11 új, dobozos, Ryzen 5, DDR5, LTE képes üzleti laptop!
- Eladó ASUS TUF Gaming F15 (FX507ZU4-LP067W) i7, RTX 4050, gamer laptop!
- Eladó HP Envy x360 15-fe0178ng OLED, RTX 3050, i7-1355U, gyakorlatilag új! 3 órát ment eddig
- GYÖNYÖRŰ iPhone 13 mini 256GB Midnight -1 ÉV GARANCIA - Kártyafüggetlen, MS3443
- Garmin Forerunner 405 GPS óra
- BESZÁMÍTÁS! Asus H370 i7 8700K 16GB DDR4 512GB SSD RTX 2060 Super 8GB RAMPAGE Shiva A-Data 650W
- AKCIÓ! 750W Seasonic PRIME TX-750 Titanium tápegység garanciával hibátlan működéssel
- Bomba ár! Toshiba Satellite L50 - i5-G5 I 8GB I 256GB SSD I 15,6" HD I HDMI I Cam I W10 I Gari!
Állásajánlatok
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest
Cég: Laptopműhely Bt.
Város: Budapest