Rodyti pranešimus

Čia galite matyti visus šio nario pranešimus. Matote tik tuos pranešimus, kurie buvo paskelbti jums prieinamose lentose.


Žinutės - Wiav

Puslapiai: [1]
1
Windows / Reikalingas specialistas :)
« Įrašytas: 2011-09-23 09:18:32 am »
Reikalingas Windows Server 2003 x64 bit specialistas, kuris mokėtų elgtis su MSQL, ODBC, IIS ir kitais reikalingais įrankiais norint paleisti serverį. Ieškau tokio žmogus kuris negailėtų laiko. Esmė, paleisti turimus failus. Failai pilni, bet tiesiog man pačiam juos paleisti trūksta patirties Windows platformoje.

 Failai yra žaidimų serverio.

 Maksimaliai manau darbas gali trukti savaitę laiko. Susidomėjusiems, galima apžvalga pačiame DS.

 Kas liečia web pusę script pritaikymas, bei automatinis pirkimas, viskas parašyta ASP formatu. Žinoma reiktų šią pusę tobulinti ir labiau pritaikyti.

 Sėkmingai paleidus failus, galime kalbėti apie pastovią serverio priežiurą, bei tobulinimą, 500-1000Lt/mėn.

Biudžetas: 1000Lt.
 Jai žmogus patikimas uždarbis.lt sistemoje, galime kalbėti apie avansą.
 Skype: auriv.
 email: otipax@gmail.com

2
PHP ir SQL - Klausimai ir pagalba / Re: stringData ir fwrite klausimas
« Įrašytas: 2011-03-24 15:27:10 pm »
Supranti, man ne .txt o .ini padaro.
Ar sakai tai nieko nekeičia?

3
PHP ir SQL - Klausimai ir pagalba / Re: stringData ir fwrite klausimas
« Įrašytas: 2011-03-23 21:42:13 pm »
Failo saugojimas nepasikeitė (čia index.php)

<?php include(&#39;Config/Config.php&#39;)?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo($pagetitle)?></title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<style type="text/css">
span.yellow {
color:#000;
}
</style>
</head>
<script type="text/javascript">
function checkPass(){
var pass1 = document.getElementById('pass1');
var pass2 = document.getElementById('pass2');
var message = document.getElementById('confirmMessage');
var goodColor = "#66cc66";
var badColor = "#ff6666";
if(pass1.value == pass2.value){
pass2.style.backgroundColor = goodColor;
message.style.color = goodColor;
message.innerHTML = "<?php echo($pwmatchtext)?>"
} else {
pass2.style.backgroundColor = badColor;
message.style.color = badColor;
message.innerHTML = "<?php echo($pwdntmatch)?>"
}

</script>
<div id="headerimg"></div>
<div class="formWrapper">
<form action="Create.php" method="post">
<div class="fieldWrapper">
<label for="username"><?php echo($username)?>:</label>
<input type="text" name="username" id="username" maxlength="12" />
<?php echo($minmaxchar)?>
</div>
<div class="fieldWrapper">
<label for="pass1"><?php echo($password)?>:</label>
<input type="password" name="pass1" id="pass1" maxlength="12"/>
<?php echo($minmaxchar)?>
</div>
<div class="fieldWrapper">
<label for="pass2"><?php echo($password_confirm)?>:</label>
<input type="password" name="pass2" id="pass2"
onkeyup="checkPass(); return false;" maxlength="12"/>
<span id="confirmMessage" class="confirmMessage"></span>
</div>
<div class="fieldWrapper">
<label for="username"><br /><br /><?php echo($recaptcha)?></label>
<?php

require_once(&#39;reCaptcha/recaptchalib.php&#39;);
include(&#39;Config/Config.php&#39;);
# the response from reCAPTCHA
$resp null;
# the error code from reCAPTCHA, if any
$error null;
# was there a reCAPTCHA response?
if ($_POST["recaptcha_response_field"]) {
$resp recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);

if ($resp->is_valid) {
echo "Correct reCaptcha Text enterred!";
} else {
# set the error code so that we can display it
$error $resp->error;
echo "Wrong reCaptcha Text entered, please try again!";
}
}
echo 
recaptcha_get_html($publickey$error);
?>

</div>
<div class="fieldWrapper">
<label for="username"><span class="yellow">.</span></label>
<input type="submit" value="<?php echo($createbutton)?>" />
</div>
</form>
</div>
<div id="bottomimg"></div>
</html>

5
PHP ir SQL - Klausimai ir pagalba / Re: stringData ir fwrite klausimas
« Įrašytas: 2011-03-23 16:11:04 pm »
Nelabai aš moku ir domėjausi šitais doctype.

Įsirašiau eilutę taip:
<?php
include(&#39;Config/Config.php&#39;);
require_once(&#39;reCaptcha/recaptchalib.php&#39;);

$username $_POST["username"];
$password $_POST["pass1"];
$password2 $_POST["pass2"];

$captcha $_GET["recaptcha_response_field"];

$accountpath $accountfolderpath;
$path $accountpath $username . &#39;.ini&#39;;
if (file_exists($path)) {
echo "
<html>
<head>
<title>"
$errorpagetitle ."</title>
<link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />

</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Sorry, the <b>Username</b> you have requested already exists, <a href=&#39;index.php&#39;>Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"
;

else if(
strlen($_POST[&#39;username&#39;]) < 6) {
echo "
<html>
<head>
<title>"
$errorpagetitle ."</title>
<link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />

</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Sorry, the <b>Username</b> can only contain latin letters and numbers with a <b>minimum of 6 characters - Non capitalised</b>, <a href=&#39;index.php&#39;>Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"
;
}
else if(
preg_match(&#39;/[^0-9A-Za-z]/&#39;,$password)) {
echo "
  <html>
  <head>
   <title>"
$errorpagetitle ."</title>
   <link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />

</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Sorry, the <b>Password</b> can only contain latin letters and numbers, <a href=&#39;index.php&#39;>Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"


}
else if(
preg_match(&#39;/[^0-9A-Za-z]/&#39;,$username)) {
echo "
  <html>
  <head>
   <title>"
$errorpagetitle ."</title>
   <link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />
   
</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Sorry, the <b>Username</b> can only contain latin letters and numbers, <a href=&#39;index.php&#39;>Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"


}
else if (
$password != $password2) {
echo "
<html>
<head>
<title>"
$errorpagetitle ."</title>
<link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />

</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Sorry, the <b>Passwords</b> you have entered doesnt match, <a href=&#39;index.php&#39;>Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"
;

else if (
$password == $username) {
echo "
<html>
<head>
<title>"
$errorpagetitle ."</title>
<link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />

</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Sorry, the <b>Password and Username</b> cannot match, <a href=&#39;index.php&#39;>Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"
;

else if (
$password == &#39;&#39; || $password2 == &#39;&#39; || $username == &#39;&#39; ) {
echo &#39;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
title>". $errorpagetitle ."</title>
</
head>
<
div id="headerimg"></div>
<
div class="formWrapper">
<
form>
<
div class="fieldWrapper">
Sorrythe <b>Password </b>or <b>Username</bfield cannot be left blank, <a href="index.php">Click here</ato return to previous page and try again!
</
div>
</
form>
</
div>
<
div id="bottomimg"></div>
</
html>
&
#39;;

else if (
$_POST["recaptcha_response_field"]) {
$resp recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);

if ($resp->is_valid) {
$myFile $path;
$fh fopen($myFile, &#39;w&#39;) or die("can&#39;t find Directory");
$stringData "[account]\n";
fwrite($fh$stringData);
$stringData "password=".$password;
fwrite($fh$stringData);
fclose($fh);
echo "
<html>
<head>
<title>LTSRO.EU Account - Succesfully Registered!</title>
<link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />

</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Account succesfully Registered <a href=&#39;http://ltsro.eu/&#39;>Click here</a> to return to main page!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"
;
}
else {
$error $resp->error;
echo "
<html>
<head>
<title>"
$errorpagetitle ."</title>
<link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />

</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Invalid <b>reCaptcha</b> Code entered, <a href=&#39;index.php&#39;>Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"
;
}
}

?>
>

JAI KONKREČIAI TAI DADĖJAU TAIP:

   echo '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>". $errorpagetitle ."</title>
</head>
<div id="headerimg"></div>
<div class="formWrapper">
<form>
<div class="fieldWrapper">
Sorry, the <b>Password </b>or <b>Username</b> field cannot be left blank, <a href="index.php">Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id="bottomimg"></div>
</html>
';
}
else if ($_POST["recaptcha_response_field"]) {
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);

if ($resp->is_valid) {
$myFile = $path;
$fh = fopen($myFile, 'w') or die("can't find Directory");
$stringData = "[account]\n";
fwrite($fh, $stringData);
$stringData = "password=".$password;
fwrite($fh, $stringData);
fclose($fh);

Bet tas pats š. Gal galite įdėti ją ten kur turi būti ir paaiškinti kodėl taip turi būti?


6
PHP ir SQL - Klausimai ir pagalba / Re: stringData ir fwrite klausimas
« Įrašytas: 2011-03-23 06:51:44 am »
Na man atrodo viskas čia gerai, pats pažiūrėk.

<?php
include(&#39;Config/Config.php&#39;);
require_once(&#39;reCaptcha/recaptchalib.php&#39;);

$username $_POST["username"];
$password $_POST["pass1"];
$password2 $_POST["pass2"];

$captcha $_GET["recaptcha_response_field"];

$accountpath $accountfolderpath;
$path $accountpath $username . &#39;.ini&#39;;
if (file_exists($path)) {
echo "
<html>
<head>
<title>"
$errorpagetitle ."</title>
<link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />

</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Sorry, the <b>Username</b> you have requested already exists, <a href=&#39;index.php&#39;>Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"
;

else if(
strlen($_POST[&#39;username&#39;]) < 6) {
echo "
<html>
<head>
<title>"
$errorpagetitle ."</title>
<link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />

</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Sorry, the <b>Username</b> can only contain latin letters and numbers with a <b>minimum of 6 characters - Non capitalised</b>, <a href=&#39;index.php&#39;>Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"
;
}
else if(
preg_match(&#39;/[^0-9A-Za-z]/&#39;,$password)) {
echo "
  <html>
  <head>
   <title>"
$errorpagetitle ."</title>
   <link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />

</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Sorry, the <b>Password</b> can only contain latin letters and numbers, <a href=&#39;index.php&#39;>Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"


}
else if(
preg_match(&#39;/[^0-9A-Za-z]/&#39;,$username)) {
echo "
  <html>
  <head>
   <title>"
$errorpagetitle ."</title>
   <link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />
   
</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Sorry, the <b>Username</b> can only contain latin letters and numbers, <a href=&#39;index.php&#39;>Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"


}
else if (
$password != $password2) {
echo "
<html>
<head>
<title>"
$errorpagetitle ."</title>
<link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />

</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Sorry, the <b>Passwords</b> you have entered doesnt match, <a href=&#39;index.php&#39;>Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"
;

else if (
$password == $username) {
echo "
<html>
<head>
<title>"
$errorpagetitle ."</title>
<link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />

</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Sorry, the <b>Password and Username</b> cannot match, <a href=&#39;index.php&#39;>Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"
;

else if (
$password == &#39;&#39; || $password2 == &#39;&#39; || $username == &#39;&#39; ) {
echo "
<html>
<head>
<title>"
$errorpagetitle ."</title>
<link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />

</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Sorry, the <b>Password </b>or <b>Username</b> field cannot be left blank, <a href=&#39;index.php&#39;>Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"
;

else if (
$_POST["recaptcha_response_field"]) {
$resp recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);

if ($resp->is_valid) {
$myFile $path;
$fh fopen($myFile, &#39;w&#39;) or die("can&#39;t find Directory");
$stringData "[account]\n";
fwrite($fh$stringData);
$stringData "password=".$password;
fwrite($fh$stringData);
fclose($fh);
echo "
<html>
<head>
<title>LTSRO.EU Account - Succesfully Registered!</title>
<link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />

</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Account succesfully Registered <a href=&#39;http://ltsro.eu/&#39;>Click here</a> to return to main page!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"
;
}
else {
$error $resp->error;
echo "
<html>
<head>
<title>"
$errorpagetitle ."</title>
<link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/style.css&#39; />

</head>
<div id=&#39;headerimg&#39;></div>
<div class=&#39;formWrapper&#39;>
<form>
<div class=&#39;fieldWrapper&#39;>
Invalid <b>reCaptcha</b> Code entered, <a href=&#39;index.php&#39;>Click here</a> to return to previous page and try again!
</div>
</form>
</div>
<div id=&#39;bottomimg&#39;></div>
</html>
"
;
}
}

?>

7
PHP ir SQL - Klausimai ir pagalba / stringData ir fwrite klausimas
« Įrašytas: 2011-03-22 21:28:44 pm »
Sveiki, taigi pasirašiau tokį kodą:

Kodas: (php) [Pasirinkti]
$myFile = $path;
$fh = fopen($myFile, 'w') or die("can't find Directory");
$stringData = "[account]\n";
fwrite($fh, $stringData);
$stringData = "password=".$password;
fwrite($fh, $stringData);
fclose($fh);

Man norimoje direktorijoje sukuria failą su tam tikru pavadinimų ir t.t. viskas veikia kuo puikiausiai, kintamieji atvaizduojami puikiai, tačiau įrašomi blogai. Panaudojas dabartinį kodą į failą gaunu įrašytą:



O man reikia:



$stringData = "[account]\n panaudojus eilutės nukelimą, susipjauna ir atvaizduoja kvadratėlį. Gal kažkaip kitaip eina padaryti, kad nukeltų sekantį tekstą ($stringData = "password=".$password;) į sekančią eilutę t.y. ne į tą pačia kur  [account] ?

Būčiau labai dėkingas. Išreikščiau savo pagarbą kaip nors.

Puslapiai: [1]