Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ethereal

Pages: [1] 2
1
Web Oriented Coding / Jquery litle help
« on: September 18, 2014, 01:12:00 pm »
How i can add automatic array element after click function is end.

Code: [Select]
$(document).ready(function(){
   $('.img').click(function(){
        $('.img').hide();
        var link = "img/" + myFunc(); //function get 1 random element from image name array
$(this).show("slide", { direction: "right" }, 300).attr("src","/slider/" +  link);
});

So after this click function image slide from left and then gone to right side. How to add new picture after click function is over (write a code for example) and sorry for my english :/

2
Projects and Discussion / Re: Smartphone OS programming
« on: September 11, 2013, 10:24:39 pm »
Hi buddy, i have experience in programming, but i want to know more about some things, about controls with camera and other things? so i ask if you got more things about that or explain me for that

3
Projects and Discussion / Re: Smartphone OS programming
« on: September 11, 2013, 10:03:34 pm »
i want to develop os for smartphones, based on linux :)

4
Projects and Discussion / Smartphone OS programming
« on: September 11, 2013, 09:55:22 pm »
Hi. I got question about smartphone OS developing with linux source, my question is how to start developing os in right way? how that stufs work for example (when you press buton for camera and camera opens). How is gui started? can someone explain me that things or gave me some tuts about that.

5
Projects and Discussion / Re: PyQt
« on: September 11, 2013, 09:52:42 pm »
take a look about pyGTK http://www.pygtk.org

6
Hacking and Security / Re: Some basic question
« on: March 30, 2013, 10:15:45 am »
Tnx to all, i download the Kali Linux :)

7
Hacking and Security / Some basic question
« on: March 30, 2013, 10:02:55 am »
Hello. I wan't to hack one webiste with exploit but im scared for my identity. So my question is ho w proxy works for some exploits, Example. I use exploit in terminal on linux and that exploit has no proxy. Im sure my post is understandable, sorry for my english. Btw pls someone tell me what is need for hiding identity for hacking.

8
Web Oriented Coding / Re: profile script problem
« on: March 17, 2013, 03:05:31 am »
Code: [Select]
<?php
require 'core.inc.php';
require 
'connect.inc.php';
require 
'loginform.inc.php';
session_start();


if(isset(
$_SESSION['user_id'])){
   
$id $_SESSION['user_id'];
}else{
   die(
"session hasnt been started");
}








   
$query "SELECT * FROM `users` WHERE `id` = '$id'";
   
$query_run mysql_query($query);
   WHILE(
$row mysql_fetch_array($query_run)):
   
$ime $row['ime'];
   
$prezime $row['prezime'];
   endwhile;




echo 
$id;?>


i aslo tryed with session['session_id']; but nothing

9
Web Oriented Coding / Re: profile script problem
« on: March 17, 2013, 03:02:09 am »
i tried but nothing :O

10
Web Oriented Coding / Re: profile script problem
« on: March 17, 2013, 02:57:00 am »
on page output "session hasnt been started"

11
Web Oriented Coding / Re: profile script problem
« on: March 17, 2013, 02:39:55 am »
Nothing on page...

12
Web Oriented Coding / Re: profile script problem
« on: March 17, 2013, 02:31:55 am »
All working good with or die.. But i tried if i put in query `username` = me. Then display all my information. But when i put session['user_id']; there is nothing on page. when im tryed to echo my id also there are nothing on page

13
Web Oriented Coding / Re: profile script problem
« on: March 17, 2013, 02:14:15 am »
I tryed but nothing....

14
Web Oriented Coding / profile script problem
« on: March 17, 2013, 01:49:10 am »
Hello. I wanna display data from database but there is  nothing on the page. Take a look in the script. Btw i try with echo $id and nothing appends in browser.


user_profile.php
Code: [Select]
<?php
require 'core.inc.php';
require 
'connect.inc.php';
require 
'loginform.inc.php';




$id $_SESSION['user_id'];


$query "SELECT * FROM `users` WHERE `id` = '$id'";
$query_run mysql_query($query);
WHILE($row mysql_fetch_array($query_run)):
$ime $row['ime'];
$prezime $row['prezime'];
endwhile;




echo 
$id;
?>


loginform.inc.php




Code: [Select]
<?php
if (isset($_POST['username'])&&isset($_POST['password'])) {
 
$username $_POST['username'];
 
$password $_POST['password'];
 
 
$password_hash md5($password);
 
if (!empty($username)&&!empty($password)) {
$query "SELECT `id` FROM `users` WHERE `username` = '".mysql_real_escape_string($username)."' AND `password` = '".mysql_real_escape_string($password)."'";
if($query_run mysql_query($query)){
$query_num_rows mysql_num_rows($query_run);

if($query_num_rows==0){
echo 'invalid username/password combination';
}else if ($query_num_rows == 1){
$user_id mysql_result($query0'id');
$_SESSION['user_id']=$user_id;
header('Location: user_profile.php');
}

}
}else{
echo "<p id='warning'>'Moras popuniti sva polja'</p>";
}
}
?>




[size=78%]core.inc.php[[/size][size=78%]/b][/size]
Code: [Select]
<?php
error_reporting
(E_ALL E_NOTICE); 
ob_start();
session_start();
$current_file $_SERVER['SCRIPT_NAME'];
$http_referer $_SERVER['HTTP_REFERER'];


function 
loggedin() {
if(isset($_SESSION['user_id'])&&!empty($_SESSION['user_id'])){
return true;
}else{
return false;
}


}


function 
getuserfield($field){
$query "SELECT `$field` FROM `users` WHERE `id`='".$_SESSION['user_id']."' ";
if($query_run=mysql_query($query)){

if ($query_result mysql_result($query_run ,,$field)){
return $query_result;

}


}


}


?>

15
Web Oriented Coding / Re: Php help
« on: February 25, 2013, 04:58:45 pm »
Don't worry for safety. But i forgot to ask one more question. When i have some article and  how to append in bottom another article with border and etc like prevoius post understand. Just append with all css elements with different article

Pages: [1] 2