Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,895 members, 7,817,635 topics. Date: Saturday, 04 May 2024 at 03:58 PM

Meet Nairachat - Nigeria's New Phenomenon - Programming (2) - Nairaland

Nairaland Forum / Science/Technology / Programming / Meet Nairachat - Nigeria's New Phenomenon (3821 Views)

(2) (3) (4)

(1) (2) (Reply) (Go Down)

Re: Meet Nairachat - Nigeria's New Phenomenon by Nobody: 9:17pm On Jun 24, 2016
teampregar:

Its so funny how we have taken over OP's app promotion thread with Who can hack Nairaland login and who cannot.
The mod of programming section suppose don move this thread go FP now, @OP i think u should mail the mod to take this thread to FP ( visit the programming section and click Mail Mods button on the bottom after the pagination numbers) send the mod a mail and tell him u would like to move ur thread to FP.. Its time 4 we Africans to promote what is made by us wheter little or small and gain respect from the world
What you dont understand is that threads (even very good threads on this board hardly makes FP).
This type of thread will NEVER hit FP (for some certain reasons i cant share on this thread) - but one of the reasons is that the admin will expect the OP to do a paid advert.

jidez007:
@dhtml18 i'm curious about your version o. Please send it to me.
hehehehe, well, i did not write the API, but search google for - elvis - the first result should be it.
Re: Meet Nairachat - Nigeria's New Phenomenon by sleepingdemon: 9:20pm On Jun 24, 2016
dhtml18:

O yeah, oya bring on the code now? Too much talks on this technical matter, just write a simple code - you dont need mouth to say it.
You know me i use to say - talk is cheap.

something like thos, although im yet to test it

<?php
$username="nairaland";
$password="mypassword";
$url="https://www.nairaland.com/do_login";
$cookie="cookie.txt";

$postdata = "name=".$username."&password=".$password;

$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0"wink;
curl_setopt ($ch, CURLOPT_TIMEOUT, 60);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt ($ch, CURLOPT_REFERER, $url);

curl_setopt ($ch, CURLOPT_POSTFIELDS, $postdata);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_exec ($ch);
$http_status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if($http_status_code == 200){
echo "login succesfull";
}else{
echo "login failed";
}
curl_close($ch);
Re: Meet Nairachat - Nigeria's New Phenomenon by Nobody: 9:41pm On Jun 24, 2016
^^^that will work, i have executed it with my eyes. But that API i specified is easier and has lots of functions. But i am not sure the code is being maintained, but it had many features back then sha.
Re: Meet Nairachat - Nigeria's New Phenomenon by Nmeri17: 9:44pm On Jun 24, 2016
dhtml18:
Nice work, this should hit FP, where is that FP button again.

1 Like

Re: Meet Nairachat - Nigeria's New Phenomenon by jidez007: 10:04pm On Jun 24, 2016
@sleepingdemon your code is not complete. it's not as if nairaland will return a different status code when you enter an incorrect password.
Re: Meet Nairachat - Nigeria's New Phenomenon by FincoApps(m): 10:37pm On Jun 24, 2016
Re: Meet Nairachat - Nigeria's New Phenomenon by FincoApps(m): 10:42pm On Jun 24, 2016
sleepingdemon:


something like thos, although im yet to test it

<?php
$username="nairaland";
$password="mypassword";
$url="https://www.nairaland.com/do_login";
$cookie="cookie.txt";

$postdata = "name=".$username."&password=".$password;

$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0"wink;
curl_setopt ($ch, CURLOPT_TIMEOUT, 60);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt ($ch, CURLOPT_REFERER, $url);

curl_setopt ($ch, CURLOPT_POSTFIELDS, $postdata);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_exec ($ch);
$http_status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if($http_status_code == 200){
echo "login succesfull";
}else{
echo "login failed";
}
curl_close($ch);

I even used something similar but I think the status code would still be 200 even if the login failed. Thus with your code, the login will always be successful.

I didn't try it though
Re: Meet Nairachat - Nigeria's New Phenomenon by sleepingdemon: 11:22pm On Jun 24, 2016
jidez007:
@sleepingdemon your code is not complete. it's not as if nairaland will return a different status code when you enter an incorrect password.
true. just tried it and the status codr is always 302. so i guess at this point. instead of checking status code, ill just check for incorrect username or pass string in the result like jidez did
Re: Meet Nairachat - Nigeria's New Phenomenon by israelboy1(m): 3:25pm On Jun 25, 2016
jidez007:
here https://gist.github.com/djade007/9eda80ad4567e337b7ac4a09e28e0623



...lolZzz....I like the way you defended yourself smiley smiley smiley
Re: Meet Nairachat - Nigeria's New Phenomenon by Nobody: 3:44pm On Jun 25, 2016
Nmeri17:
I click am, the thing no work o.

israelboy1:

...lolZzz....I like the way you defended yourself smiley smiley smiley
That is what we call a programmer - not those that use their mouth to talk and pound their chest to emphasize.

FincoApps:
http://service.fincoapps.com/daddy/
Works fine

1 Like

Re: Meet Nairachat - Nigeria's New Phenomenon by maekhel(m): 4:05pm On Jun 25, 2016
Una don finally finished Nairaland. grin
Re: Meet Nairachat - Nigeria's New Phenomenon by israelboy1(m): 4:15pm On Jun 25, 2016
dhtml18:

I click am, the thing no work o.


That is what we call a programmer - not those that use their mouth to talk and pound their chest to emphasize.


Works fine


exactly lolzzzzzz...
felt intimidated dou ....guess I need to pick up my book again smiley smiley
Re: Meet Nairachat - Nigeria's New Phenomenon by israelboy1(m): 4:18pm On Jun 25, 2016
I tried http://service.fincoapps.com/daddy/daddy.php hope my account won't be hacked....lolzzzzz.

I see this thread getting closed...deleted....or...every commenters BANNED
Re: Meet Nairachat - Nigeria's New Phenomenon by Nobody: 5:01pm On Jun 25, 2016
maekhel:
Una don finally finished Nairaland. grin
For what now?

israelboy1:

exactly lolzzzzzz...
felt intimidated dou ....guess I need to pick up my book again smiley smiley
Of course you should, so much going on out there

israelboy1:
I tried http://service.fincoapps.com/daddy/daddy.php hope my account won't be hacked....lolzzzzz.
I see this thread getting closed...deleted....or...every commenters BANNED
I have like 50 handles I registered for a rainy day, used to be more but seun deleted most of them. But he cannot BAN or DELETE this my handle (for some certain reasons we both know).
Re: Meet Nairachat - Nigeria's New Phenomenon by israelboy1(m): 9:42pm On Jun 25, 2016
dhtml18:

For what now?


Of course you should, so much going on out there


I have like 50 handles I registered for a rainy day, used to be more but seun deleted most of them. But he cannot BAN or DELETE this my handle (for some certain reasons we both know).


let me too know na....so as never to be banned smiley
Re: Meet Nairachat - Nigeria's New Phenomenon by Nobody: 10:26pm On Jun 25, 2016
israelboy1:


let me too know na....so as never to be banned smiley
Hahahaha, trade secret
Re: Meet Nairachat - Nigeria's New Phenomenon by KazukiIto(m): 7:29am On Jun 26, 2016
Interesting thread. For once NL programmer wrote code
Re: Meet Nairachat - Nigeria's New Phenomenon by treex11: 11:08am On Jun 26, 2016
Wen cn we test d beta n if u wnt funding I cn donate I love naija product
Re: Meet Nairachat - Nigeria's New Phenomenon by Nobody: 3:40pm On Jun 26, 2016
KazukiIto:
Interesting thread. For once NL programmer wrote code
Yeah, instead of running mouth recursively
Re: Meet Nairachat - Nigeria's New Phenomenon by Kodejuice: 10:46pm On Jun 26, 2016
jidez007:
here https://gist.github.com/djade007/9eda80ad4567e337b7ac4a09e28e0623

LoL, you have to be very specific if you're doing such. Because even if the login was successful, the page returned may contain the string 'Wrong username Or passwaord', may be in a particular threads name, the best way is to check if the element holding that error message exists and contains the error message.

1 Like

Re: Meet Nairachat - Nigeria's New Phenomenon by jidez007: 5:19am On Jun 28, 2016
Kodejuice:


LoL, you have to be very specific if you're doing such. Because even if the login was successful, the page returned may contain the string 'Wrong username Or passwaord', may be in a particular threads name, the best way is to check if the element holding that error message exists and contains the error message.
There's nothing stopping you from modifying it or writing your own.
Re: Meet Nairachat - Nigeria's New Phenomenon by Kodejuice: 5:50am On Jun 28, 2016
jidez007:
There's nothing stopping you from modifying it or writing your own.
just saying.
Re: Meet Nairachat - Nigeria's New Phenomenon by jidez007: 7:56am On Jun 28, 2016
Kodejuice:

just saying.
I get. It was just a quick example
Re: Meet Nairachat - Nigeria's New Phenomenon by sixcobillz(m): 8:09pm On Jul 05, 2016
nejifresh:
Hi guys,

I thought i should just announce the launch of my new app Nairachat. I created this app as a simple way for Nigerians to meet other Nigerians wherever they are.

Nairachat has all the cool chat features you find on Whatsapp as well as Video Call like Skype. The coolest thing is that you can do a video conference with over 100 people on the app. It uses your location to show you people around you, and you can search based on Tribe, Religion, State of origin etc.

P.S: I am creating a paid ad on Nairaland this weekend so MODs pls dont ban me.
op if you can manage this app till 2019 I'll buy it from you

(1) (2) (Reply)

Unity 3d /unreal Engine Experts? / Steve Jobs Resigns As Apple Boss / New To Python, Gurus Please Help Solve These Challenges. Thanks.

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 33
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.