Wikipedia:Mentorenprogramm/Scripting
...eine der wichtigsten funktionen der startseite ist der vergleich zwischen den DB-tabellensummen (oberer frame: mentoren, neulinge) mit den geparseden PAGESIN…
ColdFusion-Scripting der DB-startseite
...eine der wichtigsten funktionen der startseite ist der vergleich zwischen den DB-tabellensummen (oberer frame: mentoren, neulinge) mit den geparseden PAGESINCATEGORY-werten (im unteren hauptframe auf gelbem grund). gesamtsumme unten ist immer neulinge+archivierte.
beispiel A: falls mentoren oben größer als unten, so hat sich vermutlich einer der mentoren mit einem inaktiv-baustein entkategorisiert.
beispiel B: falls neulinge oben wesentlich kleiner als unten, könnte dies auf ein klemmen des bots hindeuten... kleinere differenzen sind eher vom besuchszyklus des bots abhängig (alle 20 minuten).
- siehe hierzu auch: → WP-Kategorie/DB-Tabelle/NB-Liste/NB-Archiv (4fach-check…)
.../WP_MP/MP.CFM:
<CFFILE ACTION="APPEND" FILE="***serverpfad***\LogFiles\#DateFormat(Now(), 'dd_mm_yy')#.log" OUTPUT="#CGI.REMOTE_ADDR#, #TimeFormat(Now(), 'HH:MM:SS')#, #CGI.REQUEST_METHOD#, direktaufruf: #CGI.PATH_INFO#, #CGI.HTTP_USER_AGENT#"> . . . <FRAMESET COLS="176,*" BORDER=0> <FRAME NAME="INDEX_pub" SRC="/WP_MP/INDEX.CFM"> <FRAMESET ROWS="55,*" BORDER=0> <FRAME NAME="oben" SCROLLING="no" NORESIZE SRC="/WP_MP/OBEN.CFM"> <FRAME NAME="unten" SCROLLING="auto" SRC="/WP_MP/start_mp.cfm"> </FRAMESET>
.../WP_MP/INDEX.CFM:
<CFSET #sort# = 1> [<A href="https://infosekolah.net/de//WP_MP/artikel.cfm?sort=<CFOUTPUT>#sort#</CFOUTPUT>" TARGET="unten">"<B>erste artikel</B>"</A>] [<A href="https://infosekolah.net/de//WP_MP/search_MP.cfm" TARGET="unten"><B>suchfunktion</B></A>]<IMG SRC="/IMG/NEU.GIF" BORDER=0 ALT="zur direktsuche">
.../WP_MP/OBEN.CFM:
<CFQUERY NAME="GetInfo0" DATASOURCE="***DB-Pfad***">
SELECT * FROM wp_mentoren
WHERE mentoren_status = '-'
</CFQUERY>
<CFQUERY NAME="GetInfo1" DATASOURCE="***DB-Pfad***">
SELECT * FROM wp_neulinge
WHERE neulinge_status = 'w'
</CFQUERY>
<CFQUERY NAME="GetInfo2" DATASOURCE="***DB-Pfad***">
SELECT * FROM wp_neulinge
WHERE neulinge_status = 'a'
</CFQUERY>
<CFQUERY NAME="GetInfo3" DATASOURCE="***DB-Pfad***">
SELECT * FROM wp_mentoren
WHERE mentoren_status = 'b' OR
mentoren_status = 'i'
</CFQUERY>
<CFQUERY NAME="GetArch1Info" DATASOURCE="***DB-Pfad***">
SELECT * FROM wp_neulinge
WHERE neulinge_status = 'a'
AND neulinge_out = 0
</CFQUERY>
<CFQUERY NAME="GetArch2Info" DATASOURCE="***DB-Pfad***">
SELECT * FROM wp_neulinge
WHERE neulinge_status = 'w'
AND neulinge_out > 0
</CFQUERY>
<CFIF GetArch1Info.RecordCount GT 0>
<CFQUERY NAME="SetArch1Info" DATASOURCE="***DB-Pfad***">
UPDATE wp_neulinge SET neulinge_status = 'w'
WHERE neulinge_status = 'a'
AND neulinge_out = 0
</CFQUERY>
</CFIF>
<CFIF GetArch2Info.RecordCount GT 0>
<CFQUERY NAME="SetArch2Info" DATASOURCE="***DB-Pfad***">
UPDATE wp_neulinge SET neulinge_status = 'a'
WHERE neulinge_status = 'w'
AND neulinge_out > 0
</CFQUERY>
</CFIF>
<FONT COLOR=WHITE><FONT FACE="Courier">[<A href="https://infosekolah.net/de/../wiki-test/mentoren.cfm" TARGET="unten"><B><CFOUTPUT>#Evaluate(GetInfo0.RecordCount+GetInfo3.RecordCount)#</CFOUTPUT></B> mentoren</A>] [<A href="https://infosekolah.net/de/../WP_MP/neulingsboerse_nz.cfm" TARGET="unten"><B><CFOUTPUT>#GetInfo1.RecordCount#</CFOUTPUT></B> neulinge</A>] [<A href="https://infosekolah.net/de/../WP_MP/neulingsboerse_archiv_az.cfm" TARGET="unten"><B><CFOUTPUT>#GetInfo2.RecordCount#</CFOUTPUT></B> archiviert</A>] [<A href="https://infosekolah.net/de/../WP_MP/statistik.cfm" TARGET="unten"><B>statistiken</B><IMG SRC="/IMG/NEU.GIF" BORDER=0 ALT="zu den statistiken"></A>] [<A href="https://infosekolah.net/de/../WP_MP/rueckblick.cfm#Z" TARGET="unten"><B>rückblick</B></A>] [<A href="https://infosekolah.net/de/../WP_MP/start_mp.cfm" TARGET="unten">home</A>]</FONT></FONT>
.../WP_MP/start_mp.cfm:
<CFHTTP METHOD="GET" URL="http://de.wikipedia.org/w/index.php title=Spezial:Kategorien&dir=prev&offset=Benutzer_ist_inaktiv&limit=1">
<CFSET mentores = REFind("Benutzer ist Mentor", CFHTTP.FileContent)><CFSET zahl2 = Evaluate(mentores+46)>
<CFQUERY NAME="GetInfoN" DATASOURCE="***DB-Pfad***">
SELECT * FROM wp_neulinge
</CFQUERY>
<CFFILE ACTION="READ"
FILE="***serverpfad***\CGI-BIN\MPcounter.dat"
VARIABLE="MPcounter">
<CFFILE ACTION="WRITE"
FILE="***serverpfad***\CGI-BIN\MPcounter.dat"
OUTPUT="#Val(MPcounter+1)#">
<TD ALIGN=CENTER><FONT FACE="Courier New" SIZE="-1"><SMALL><B>seit dem <B>05.12.07:</B> <FONT COLOR=BLUE><CFOUTPUT>#MPcounter#</CFOUTPUT></FONT></B> startseiten-aufrufe bis zum </SMALL><FONT COLOR=DARKRED><CFOUTPUT><B>#DateFormat(Now(), 'dd.mm.yy')#</B></FONT> um <FONT COLOR=DARKRED><B>#TimeFormat(Now(), 'HH:mm')#</B></CFOUTPUT></FONT> uhr</FONT></TD>
<TD BGCOLOR="#EEDD55" ALIGN=CENTER><IMG SRC="/IMG/da_logo.jpg" BORDER=0 ALT="mentorenprogramm" ALIGN=ABSMIDDLE><FONT FACE="Courier New"><FONT COLOR=DARKRED><B> <CFOUTPUT>#Mid(CFHTTP.FileContent, zahl2, 3)#</CFOUTPUT></B></FONT> <A HREF="http://de.wikipedia.org/wiki/Kategorie:Benutzer_ist_Mentor?action=purge" TARGET="NEW">mentoren</A> betreuen z.zt. <CFHTTP METHOD="GET" URL="http://de.wikipedia.org/w/index.php?title=Spezial:Kategorien&dir=prev&offset=Wirdum&limit=1">
<CFSET mentees = REFind("betreut</a", CFHTTP.FileContent)><CFSET zahl1 = Evaluate(mentees+13)>
<FONT COLOR=DARKRED><CFOUTPUT>#Evaluate(Mid(CFHTTP.FileContent, zahl1, 3))#</CFOUTPUT></B></FONT> <A HREF="http://de.wikipedia.org/wiki/Kategorie:Wird_im_Mentorenprogramm_betreut?action=purge" TARGET="NEW">neulinge</A></FONT></TD>
<TD ALIGN=CENTER><FONT FACE="Verdana" SIZE="-1">bis jetzt wurden insgesamt <B><FONT COLOR=DARKRED><CFOUTPUT>#Left(GetInfoN.RecordCount, 1)#.#Mid(GetInfoN.RecordCount, 2,3)#</CFOUTPUT></FONT></B> neulinge im mentorenprogramm erfasst...</FONT></FONT></TD>
PHP-Scripting (alt)
- lokale entwicklungsumgebung:
- Webserver: Apache 2.2.11 (Win32)
- PHP 5.3.0
- MySQL-Client: 5.0.5-dev - 081106 - $Revision: 1.3.2.27
→test-mp auf 'artkatalog.net'
(...wird weiter bearbeitet - bitte um etwas geduld! falls dieser link gespeichert werden sollte: bitte mit ...?id=ireas oder merl, euku, carport aufrufen...)
PHP-Scripting (neu)
- ...ergänzungsvorschlag (im sinne eines vergleichs der beiden modelle):
- Datenbankstatus:
- Die Datenbank ist erst dann aktuell, nachdem ein bot sie upgedated hat (derzeitiger stand: Sa, 29.5.2010)
- ...aus diesem grund wäre es vielleicht auch sinnvoll, wenn oben drüber stünde:
........... Datenbank(neu) Datenbank(alt) Wikipedia(NB)
Neulinge: 362 364 364
archiviert: 2729 2740 2740
gesamt: 3091 3104 3104
Mentoren: 99 99 99
ehemalige: 52 52 (k.a.)
gesamt: 151 151 (k.a.)
- ...wobei db(alt) von meiner serverstartseite geparsed werden müsste. dann könnte man die allmähliche anpassung sehr schön beobachten... lg, --NB/archiv MP-DB 16:08, 1. Jun. 2010 (CEST)
- ...und damit das textparsen nicht allzu heavy wird ;)) : →hier die stets aktuelle mini-datei!
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.