Kleine Vragen Topic #1

Gestart doorLennard4.284 reacties15.585 weergaven

4.285 berichten · pagina 128 van 286

Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bjarnootjuh schreef:
Hoe doe ik in een chrome extensie dat je inlogt op bijv. wat ik nu heb DA. Maar als hij succesvol is ingelogd direct een nieuw tabblad opent met je DA.

Je kan al inloggen, maar dan blijft ie in dat stomme frame.
chrome.tabs.create({url: http://www.one2xs.com/});

Moet je wel een ding in je manifest bestand zetten.

Kon je ook snel op Google vinden.
0
Berichten
7.806
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bedankt, ik ga het uitproberen worshippy
toevoeging op 12 oktober 2012, 19:35:23:
O ja, ik heb dit nog van mijn oude login addon.

Hoe kan ik hem een tabel op laten halen?

[COLOR= #0000BB]<?php

  $data[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://heliohost.eu:2222[/COLOR][COLOR= #007700]);[/COLOR]

  [COLOR= #0000BB]$pattern_short[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]{<divs+id="loginaddon"s*>((?:(?:(?!<div[^>]*>|</div>).)++|<div[^>]*>(?1)</div>)*)</div>}si[/COLOR][COLOR= #007700];[/COLOR]
  
  [COLOR= #0000BB]$matchcount[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_match_all"]preg_match_all[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$pattern_short[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$data[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$matches[/COLOR][COLOR= #007700]);[/COLOR]
  [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"<div id="loginaddon">n"[/COLOR][COLOR= #007700]);[/COLOR]
  [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$matchcount[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
      [URL="http://www.php.net/for"]for[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]<[/COLOR] [COLOR= #0000BB]$matchcount[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$i[/COLOR][COLOR= #007700]++) {[/COLOR]
          
          [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$matches[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]]);
      }
  }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
      [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]No matches[/COLOR][COLOR= #007700]);
  }[/COLOR]
  [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"</div>n"[/COLOR][COLOR= #007700]);[/COLOR]
?>
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bjarnootjuh schreef:
Bedankt, ik ga het uitproberen worshippy
toevoeging op 12 oktober 2012, 19:35:23:
O ja, ik heb dit nog van mijn oude login addon.

Hoe kan ik hem een tabel op laten halen?

[COLOR= #0000BB]<?php

  $data[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://heliohost.eu:2222[/COLOR][COLOR= #007700]);[/COLOR]

  [COLOR= #0000BB]$pattern_short[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]{<divs+id="loginaddon"s*>((?:(?:(?!<div[^>]*>|</div>).)++|<div[^>]*>(?1)</div>)*)</div>}si[/COLOR][COLOR= #007700];[/COLOR]
  
  [COLOR= #0000BB]$matchcount[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_match_all"]preg_match_all[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$pattern_short[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$data[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$matches[/COLOR][COLOR= #007700]);[/COLOR]
  [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"<div id="loginaddon">n"[/COLOR][COLOR= #007700]);[/COLOR]
  [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$matchcount[/COLOR] [COLOR= #007700]>[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
      [URL="http://www.php.net/for"]for[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]<[/COLOR] [COLOR= #0000BB]$matchcount[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$i[/COLOR][COLOR= #007700]++) {[/COLOR]
          
          [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$matches[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]][[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]]);
      }
  }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
      [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]No matches[/COLOR][COLOR= #007700]);
  }[/COLOR]
  [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"</div>n"[/COLOR][COLOR= #007700]);[/COLOR]
?>


Met file_get_contents, dat doet die dus al. Alleen haalt die dan ALLES op inc. de tabel.

Dan kan je lay enzo eruit filteren dat je alleen layout hebt dmv preg_match (aanbevolen) of explode.
0
Berichten
7.806
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik gebruik preg_match_all. Maar weet alleen hoe ik het gebruik met een div, werkt het hetzelfde als met een table?

En hoe doe ik dan met die dat hij een tabblad opent? Want ik kan niet die button aanpassen ofzo.
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bjarnootjuh schreef:
Ik gebruik preg_match_all. Maar weet alleen hoe ik het gebruik met een div, werkt het hetzelfde als met een table?

En hoe doe ik dan met die dat hij een tabblad opent? Want ik kan niet die button aanpassen ofzo.
Gewpoon de JS code gebruiken die ik je gaf en Google even op die code en je weet wat je nog in de manifest moet zetten.

En @1ste vraag: probeer t
0
Berichten
8.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Shahiem schreef:
hi,

Ik probeer gegevens op te halen van mijn rooster, maar dan moet ik wel inloggen met CURL op mijn rooster.

https://portal.rocflevoland.nl/CookieAuth.dll?GetLogon?curl=Z2FZ2FCookieAuth.dllZ3FLogon&reason=0&formdir=3

Nu gebruik ik de class van Rik maar hij wilt niet inloggen als ik dit gebruik.

Voorbeeld:

http://shahiemseymor.goedgehost.nl/rooster/

Weet iemand hoe dat kan?
Nou; welke class van rik dan?
0
Jvdw

Lid

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Of cookies.... maar je controleert toch al op IP. Dus dan lijkt dit me niet echt nodig.
Dus ik kan zonder sessie werken?
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
jep
0
Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Ik kan nu aardig PHP, ik heb al een IPTest gemaakt, een inlog systeem, een script dat data ophaald.

Wat zou ik nu maken met PHP?
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Contactformulier? Forum?
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Milan schreef:
Ik heb een textbox met wat html characters enzo, nu insert ik deze inhoud van de textbox naar een div via innerHTML, alleen krijg ik dan allemaal van die ? ? dingen?

Meta charset = UTF-8, ook PHP header is UTF-8.

Weet iemand hoe ik dit kan oplossen?
Kan op google niks vinden sadley
0
Berichten
6.485
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
in plaats van html entities als je uitleest utf8_encode() en zorg dat je DB ook utf 8 is.
0
Berichten
8.602
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het word rechtsstreek uit een textarea gehaald
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren