Jump to content

DalbirSingh

QC
  • Posts

    607
  • Joined

  • Days Won

    5

Everything posted by DalbirSingh

  1. In Sikhi it is mandatory it is rehat get ready to take amrit bro enter the khalsa live this life, because people who are not in it are suffering from so many other things stress lack of love, hatred for other people in different ways, all sorts be true to yourself. Girls are not everything your happiness is within. People just following the media when it comes to cutting hair, forget people look at yourself and what makes you happy, is it being true to yourself, your parents, and your god or is it just to get a little bit of action with a girl- there are people with kesh who do sleep around as well you know! There are full dhari singhs (proper huge) with ghoris even married to them. Any girl who does not like you for being true to yourself is not worth the hassle.
  2. More ebooks such as : http://www.sikhs.wellington.net.nz/GRANTH.pdf http://www.sikhs.wellington.net.nz/Nankian_philosophy.pdf http://www.sikhs.wellington.net.nz/scripture.pdf http://www.sikhs.wellington.net.nz/bhairandhirsingh.pdf
  3. There were some weird views like which can be seen on other websites like panthic stite still take them abstract them take the good from them remove the logo. famous_sikh_women.pdf sikhrehatmaryada.pdf
  4. There are many many ebooks that we should try and appeal to Gurdwaras to have printed and distributed for free perhaps from Gurdwara sangat funds. http://www.sikhs.wel...kh_Religion.pdf http://www.globalsik.../essentials.pdf As projectnaad has shut down could someone take off the logos on the leaflet and maybe reupload them please?
  5. Understand that our brothers and sisters is all of humanity not just punjabi sikh community this is occuring due to media and its corruption. A Sikh by strictest of definition is amritdhari anyone born into a Sikh family is supposed to take amrit and such conduct is wrong and would make them tankhian ex-communicated. Most people from Sikh background and not Sikh background do not know anything about Sikhism pretty much all they see is we are people who wear turbans. We have to respect other peoples freedom but all you can do is to practice your own Sikhi do all you paath, ishnaan, naam sewa and do lots of Sikh parcharak teach everyone about Sikhism, go put leaflets in Gurdwaras even the elders sitting in Gurdwara do not know much about Sikhism alot of them were forced into there religion as kids and the same can not be done in this country, they were beaten as kids. Put free leaflets in Gurdwaras do all you can share stories about Sikhism with all of these guys learn from them the moral and sikhi stories they have there is alot of peer pressure for these things. These guys also want to learn about Sikhism everyone really does, but the language gap is harsh.
  6. Fateh Give them to other Gurdwaras give to sangat to take lots of people do not have gutkas- here a list of Gurdwaras http://www.sikh.net/.../World/GWUK.htm Gurdwaras should have surplas gutka perhaps sangat could start having gutka given away for free it gutka written in english left for people to take.
  7. Please download some of these old leaflets that could be edited (remove some of the odd stuff if you see any) and print them in bulks have them given around in Gurdwaras, sikh socs, other events and stuff. dictionary_of_sikh_words.pdf five_ks.pdf god_in_sikhism.pdf structure_of_a_sikh_temple.pdf the_sikh_gurus.pdf what_is_vaisakhi.pdf what_makes_sikhism_unique.pdf sikhrehatmaryada.pdf 52 hukamnamas.doc
  8. Apart from Guru Granth Sahib Sikhism is constituded by the following books which suprisingly not many Sikh are aware of get english translation best advise is and read http://www.sikhiwiki.org and http://www.sikhnet.com Get a gutka in english read all of it the english translations at least once alot of stuff is available in Southall Sikh Missionary Society books already ordered for India take a browse of that see if there is not a book they do not have or is more expensive. Also Get some books on Baba Nand Singh Kabit swayie - Bhai Gurdas Ji Bhai Gurdas Ji vaaran Santokh Singh Sri Suraj Prakash Granth Guru Nanak Janamsakhi Sheikh Farid Sakhi Baba Kabir Sakhi (sakhi for all bhagats and Gurus) Sri Dasam Granth Sri Sarbloh Granth Bhai Nand Lal goya saj Fatehnama Rehatnama zafarnama (included in dasam granth) Rehat Maryada
  9. Can someone please get intouch with Sikhnet.com, Sikhitv, and other sikh organisations - I do not think we really need one organiser for such donations we can all come together for such a cause. Sikhi stands for helping everyone, sewa and true selflessness true nobility is expressed by Whaeguru Ji Ka Khalsa Wheaguru Ji ke Fateh Ji
  10. VJKK VJKFji I would just like to ask exactly where do gianis and raagis get trained apart from damdami taksal (maybe nanaksar, rarasahib, sgpc/panthic, akj, nihang) and the addresses of such locations exactly. I remember watching them in a BBC documentary about 1984 and was shocked how much they lack of equipments, tools and technology study aids. Are there any other training places where gianis are trained, I think we should donate computers to them- internet connections, books and much much surplus of pens, pencils, stationary, whiteboards, classrooms built and good facilities for them. Have teachers hired to teach them english, maths, science, religious education (other faiths), I.T. Aswell as donating lots and lots of books to these gianis are there any donation points set up, It is very unfortunate that the future of Sikhism is so under-funded. Lot of encylopedias of books on a whole range of things and huge encyclopedias of Sikhi for them. Education is the backbone of Sikhism, these students from damdami taksal should have the finest education in persian, sanskrit, hindi, braj, punjabi, arabic, english many scholarly pieces Guru Gobind Singh was highly educated these gianis are our future they should know alot of stuff and teach us and our children our futures more about life, sikhi and everything else. For a Sikh university it is no where near as sophisticated as it should be- compared to other universities of the whole world it should be a much bigger complex housing more then it does a bigger area coverage maybe starting small and building up- our aim could be bigger then oxford and cambridge. Which could potential house every jatha under singular teaching, teaching every rehat and the mutual ideas put into panthic rehat or we could house other institution's but we need to start such projects. So let's crawl before we can walk and run, starting with basic donations. Has anyone donated anything to these students it is sad to see how unlooked after such youngsters are. Can anyone take this to maybe television (sikh channels) and internet funding such gianis and raagis should get more attention. By funding this education we could potentially end all of the problems that exist in the Sikh quom/panth as well as problems within humanity. Please lets donate for the future of our Sikhi and give all these future gianis everything they need in terms of books, stationary, computer, modern facilities which are available in the west and made available to priests from other religions. There are alot of orphans and boys and girls all across punjab and india who could have a future in such a career of being priests(raagis/gianis/scholars) but we need to start the investment into there and our future. Thankyou Das.
  11. My own opinon is everything has jiv (life) we need as jiv (atma) ourselves need jiv to live. However we have to pay in karam for taking such greater jiv- The soul evolves from minerals into plants then into animals then to human form it take 8.4 lifes to get to this one and we pay higher for higher forms of life. The greatest bhagats eat little sleep little and talk little because each one takes more karam and that price that needs to be payed in our own bhagati effects the bhagti itself. The more simran, sewa and satsangat and naam that flows from nitnem and Sikhi alone through spirtual contemplation helps to attain mukhti but if we eat mass and eggs for instance they require much much more bhagti. The primary reason many people do not eat it, is because they are given rehat by panj pyare not to. However maharaj says only fools argue about not to eat meat they do not cotemplate spirtual contemplation. So keep doing your simran keep doing naamjapna. Avoid eating egg for your bhagti. We have to thank god for everything we take even swas we breath.
  12. Please watch this video on how information is passed along it brings about alot of insight. http://www.ted.com/t...s_to_teach.html I feel Sikhism has been passed down since 1699 by word of mouth as the 5th largest religion in the world that has undergone alot of genoicide on multiple occasions it has really done well for itself. The new information age as well as the reformations that have taken place have done alot. What would you feel about the feasibility of placing libraries (or mini libraries) in every Gurdwara or at least even one possibly starting from our own local gurdwaras we can donate do dhaan of Sri dasam granth possible be even Suraj Prakash, Bhai Nand Lal goyas writings (rehatnama, etc.) Kabit swayie bhai gurdas ji, bhai gurdas ji vaaran, books written by Gursikhs, and many books on Sikhi and if possible even books on other religions and those books for gianis to use and if possible for other sangat. Gurdwaras stand as a point of parchar, to help all of humanity, to make people better people, to stop drugs, alcohol abuse, to make people better members of society and the world and should really hold as bare minimum such books, how would funding such a project be is it feasible and is it possible to propogate this idea. Perhaps proposing leaflets as well in every gurdwara for free. To overcome information scarcity.
  13. http://www.esnips.com/web/santjarnail http://www.esnips.com/user/khalsa
  14. miq ivic rqn jvwhr mwixk jy iek gur kI isK suxI ] math vich rathan javaahar maanik jae eik gur kee sikh sunee || Within the mind are gems, jewels and rubies, if you listen to the Guru's Teachings, even once. gurw iek dyih buJweI ] guraa eik dhaehi bujhaaee || The Guru has given me this one understanding:
  15. Khalsa raj is not facism. But the idea people have of it is; just to clarify I have met Sikhs who want to kill Hindus and Muslims to form a universal world dominated khalistan universal intercontinental state, having Punjab as the capital (basing hatred on more hatred- "blood for blood"). Not the state of a peaceful world with sarbat da pala in mind. And I am not against Khalistan, your responses indicates your own states of mind be it as it may. This whole idea of hate, raging anger, and intense ego just kills our own dharma. That being said within Sikhs themselves have the belief of world domination is not just isolated to this set of people (there are more pinkys out there from "pinky and the brain - cartoon"), we have Muslims who are speading hatred through the same message, so did as the Nazi (with anti-semiticism), now neo-nazi parties (http://en.wikipedia....wiki/Neo-Nazism) such as the BNP and skin heads have a facist idea. Sikhs are not the first people to dream of a Utopia (http://en.wikipedia.org/wiki/Utopia). Sikhism has left its mark on the world through ideas such as equality in hierarchy which came post-french revolution ("Raeni rahai soiee Sikh mera, ohu Sahib mai uska chera. He is a Sikh who follows the discipline/teachings, he is my master and I his slave."), additionally Guru Tegh Bahadurs martydom for the right to practice religion. These ideals now exist with basic Human rights. So what I am saying is We are all Human, there are good and bad people in all religions all types of people everywhere, do not judge and sterotype people (http://en.wikipedia....wiki/Stereotype), just because a few people are nutters, this does not directly mean "there people" are all the same. Lets stop fuelling the fire of racism (http://en.wikipedia.org/wiki/Racism). Separatism (http://en.wikipedia....wiki/Separatism) is an issue which can only be solved by social integration (http://www.ehow.com/...ntegration.html), so go make friends with all. Even though it is human nature to dismiss and hate what we do not understand, being knowledge and people; [which is another state of ego itself]. We all need more interfaith dialogue. There are good Muslims, good Sikhs, good Hindus, good "White-Indigenous-British (according to Nick G.)" out there, stop living in a world of hate come into peaceful mindsets and live your chardi khala experience. Also the raj which was formed by Hari Singh Nalwa, Akali Phoola Singh is an excellent example of what secularist (http://en.wikipedia....wiki/Secularity) state should be like, giving equal places in power to Hindus, Muslims, even european gentlemens within the state, Punjab has always been a multi-ethnically, multi-racial, multi-linguistic, multi-religious society, which is what Britian has now evolved to become. Just to define Fascism so you understand what it is... A system of government marked by centralization of authority under a dictator, stringent socioeconomic controls, suppression of the opposition through terror and censorship, and typically a policy of belligerent nationalism and racism. A political philosophy or movement based on or advocating such a system of government. Oppressive, dictatorial control. (Source: ANSWER.COM) Das does sarbhat da pala ardas, so bless everyone
  16. The relations such as; that ethnically we descended from the same tribal ethnicities (Scynitian, Aryan, Dravidan, Greeks, Ancient Mesopotamum, etc.) and races that pre-existed modern colonian british India. That Guru Nanak was born in a time when they ruled and Muslim thought effected the thought of Sikhs from then on, that Guru nanak visited many muslim nations, had great dialogue with many Muslims throughout his time on the earth in physical form. That Guru sahiban requested Sia Mian Mir (Syed) to lay the foundation stone of Harmander Sahib. That Sikhs were composed of Muslim devotees prior to 1947, people who had and still have sharda for Guru Nanak as a Pir/Fakir (Pir Nanak, Nanak Shah Fakir Musalman ka pir). That Guru Hargobind Sahib built a Mosque for Muslim devotees. That Sikhs under Guru Gobind Singh fought a huge war for Bahadur Shah to ascend to the throne of Hindustan after Aurangzeb, that Guru Gobind Singhs court had Muslim poets as well. That Sikhs and Muslims lived in peace until extremists political and religious (both sides) stirred up hatred, but love still exisited amongst communities. The Afghani Sikh community had to face the Taliban but they had Muslims who still befriended them shared love with them. Guru Nanak revelled in Mecca to great Islamic scholars that the real sunnah of the prophet muhammad was kesh. Amongst sufis and Sikhs we share a beard, turban tradition. That the Sikh school of thought by some scholars was classed in parallel with Sufi Islamic tradation. That many Sufi saints lifes work of bani was given satkar and called divine words and incorporated in shabad Guru and when we bow, we bow to those before. That even today within the Sikh community we have people who have bloodlines coming from Muslims and Muslims from Sikhs. That Muslims (and Hindus) fought together side by side in many battles in political struggles against Mughal forces (this piece of history is twisted to say that Sikhs fought Muslims, Sikhs Hindus and Muslims fought against each other for political purposes). That Bhai Kaniya ji saw Guru in all even in a Muslim soldier who was sent to kill Sikhs and gave him water and recovered him. That our God is in all people even Muslims (if you do not see god in all you do not see god at all). Alot of people (Sikhs for this case) have problems with the WA HABI (saudi) Sunni Muslims, as other Shia, Ahmedia and Sufi muslims call them Nutters such as Bin Laden, Captain hook and the rest of these kaur to khan lot as well as the attacking Britian nutters. Remember we have Sikh nutters who want to kills all hindus, muslims and make everyone Sikh and create khalistan in the whole entire world. A utopic nation by means of facism, instead of tolerance, resepect and love. And as maharaj said; Aval alah nūr upā▫i▫ā kuḏraṯ ke sabẖ banḏe. First, Allah created the Light; then, by His Creative Power, He made all mortal beings. Ėk nūr ṯe sabẖ jag upji▫ā ka▫un bẖale ko manḏe. ||1|| From the One Light, the entire universe welled up. So who is good, and who is bad? ||1|| SGGS ANG 1349 .... Mātī ek anek bẖāʼnṯ kar sājī sājanhārai. The clay is the same, but the Fashioner has fashioned it in various ways. SGGS ANG 1350
  17. Once you have been given karah prasad degh in gurdwara do not use a tissue rub the oil which is left in your hands on your face this prasad will help, also charan toor, the dust of the feet of the holy congregation you can do sewa of jhoora or do sewa of wiping the floor place the charan toor the dust of the feet of saints on your face it will cleanse you your sins, humble you remove your ego and maharaj will bestoy kesh. As for a scientific answer hair growth is dependent on multiple factors as you are at a young age you will still be going through puberty. As a Sikh one of the main purposes of beard mostache is it is kesh, uncut hair, and you are accepting divine order and for your body to be in the form that God has created. It does not matter if you do not even get a beard of little beard or a big beard because either way God has blessed you and you have accepted his will, his divine order.
  18. Here is the code of my firefox toolbar so far const URLCHK = "http://www.student.city.ac.uk/~abch543/disso/getUrl.php?param="; const REDIRECT = "chrome://antiphishing/content/phishing.html"; // antiphishing = { onLoad: function() { // initialization code this.initialized = true; }, onMenuItemCommand: function() { window.open("chrome://antiphishing/content/hello.xul", "", "chrome"); } }; window.addEventListener("load", function(e) { antiphishing.onLoad(e); }, false); ////new code to sniff page change Progress Listeners from Mozilla Development Centre // myExt_urlBarListener = { QueryInterface: function(aIID) { if (aIID.equals(Components.interfaces.nsIWebProgressListener) || aIID.equals(Components.interfaces.nsISupportsWeakReference) || aIID.equals(Components.interfaces.nsISupports)) return this; throw Components.results.NS_NOINTERFACE; }, onLocationChange: function(aProgress, aRequest, aURI) { myExtension.processNewURL(aURI); }, onStateChange: function(a, b, c, d) {}, onProgressChange: function(a, b, c, d, e, f) {}, onStatusChange: function(a, b, c, d) {}, onSecurityChange: function(a, b, c) {} }; // myExtension = { oldURL: null, init: function() { // Listen for webpage loads gBrowser.addProgressListener(myExt_urlBarListener, Components.interfaces.nsIWebProgress.NOTIFY_LOCATION); }, uninit: function() { gBrowser.removeProgressListener(myExt_urlBarListener); }, processNewURL: function(aURI) { if (aURI.spec == this.oldURL) return; this.MakeMyRequest(aURI); //this is calling the function which is displaying an alert box everytime i go to a new page needs to be changed for my lookupblocked function this.oldURL = aURI.spec; }, MakeMyRequest: function(zxurl) { // url = zxurl.host; // url1 = url.replace(new RegExp(/^www\./i),"");//removes www // url2 = url1.replace(new RegExp(/\/$/),"");//removes leading forward slashes // now i need to strip off following directories and subdomains //alert(url2); // oRequest = new XMLHttpRequest(); // urlS= URLCHK + escape(url2); oRequest.open("GET", urlS, true); //this section of code is being called fault is below somewhere //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// oRequest.onreadystatechange = function(){ //this function is being called if (oRequest.readyState == 4) { // textout = oRequest.responseText; //results is outputing a value of nothing being shown something has gone wrong here if (textout=="false") { gBrowser.loadURI(REDIRECT); } else{ } } } oRequest.send(null); }, //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// }; window.addEventListener("load", function() {myExtension.init()}, false); window.addEventListener("unload", function() {myExtension.uninit()}, false); Now I want to also get my application to query into Phishtank checkers database aswell, I am not exactly sure if this is the code I need to look at but its here; /* PhishTank SiteChecker Written by MASA Mail: allyourbasearebelongtous.com@gmail.com Website: http://gamespotting.net/ Please see the license for more info on what you can and can't do with this code. */ //startup vars // safePrefs1 = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("security."); // phishtankPrefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("extensions.phishtank."); // homepagePref = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("browser.startup."); function pterror(e) { // consoleService = Components.classes["@mozilla.org/consoleservice;1"].getService(Components.interfaces.nsIConsoleService); consoleService.logStringMessage(e); } // phishtank = { startup: function(){ //when the tab is changed // cont = document.getElementById("content"); cont.tabContainer.addEventListener("select", function() { phishtank.refreshInformation(); }, true); //on page load document.addEventListener("load", function() { phishtank.refreshInformation(); }, true); phishtank.refreshInformation(); }, //this is the fetching stuff refreshInformation: function() { if(phishtankPrefs.getBoolPref("firsttime") == true) { window.content.location = "http://phishtanksitechecker.com/installed.php"; phishtankPrefs.setBoolPref("firsttime",false); } // httpRequest = null; //this gets the url // theurl=getBrowser().currentURI.spec; //this is the misc extension objects // thestatusbar = document.getElementById('phishtank'); // phishstatusbar = document.getElementById('phishtanktext'); // stringsBundle = document.getElementById("string-bundle"); // tooltipstuff = document.getElementById("phishtank_tooltip_info"); //disabled pref string // blockoff = phishtankPrefs.getBoolPref("disabled"); //no error phishtankPrefs.setBoolPref("error",false); //icon pref string // iconpref = phishtankPrefs.getBoolPref("fishy"); //this is the icon // phishstatusicon = document.getElementById('phishtankicon'); //this is for the fishy icon. We check the prefs to see if it is on. if(iconpref == true) phishstatusicon.hidden = false; else phishstatusicon.hidden = true; //this is the pref that contains the status bar hiding // staton = phishtankPrefs.getBoolPref("hidestatusbar"); // homepage = homepagePref.getCharPref("homepage"); if(staton == true) thestatusbar.hidden = true; else thestatusbar.hidden = false; //check if the extension is disabled or not if(blockoff != true && theurl != "chrome://phishtank/content/phishview.xul") phishstatusicon.src="chrome://phishtank/content/fish.png"; if(blockoff == true && theurl != "chrome://phishtank/content/phishview.xul") { phishstatusicon.src="chrome://phishtank/content/fishdisabled.png"; // disabledword = stringsBundle.getString('disabledString'); phishstatusbar.value = disabledword; tooltipstuff.value = disabledword; } //for some reason I have a feeling it would be better to place this here phishtankPrefs.setBoolPref("notdata",true); // protoman =getBrowser().currentURI.scheme; // thefin = btoa(theurl); if(theurl == "chrome://phishtank/content/phishblock.xul" || theurl == "chrome://phishtank/content/phishview.xul") { // isphish = stringsBundle.getString('phishString'); phishstatusbar.value = isphish; // isphishexplained = stringsBundle.getString('phishexpainedString'); tooltipstuff.value = isphishexplained; if(theurl == "chrome://phishtank/content/phishview.xul") { getBrowser().docShell.allowAuth = false; getBrowser().docShell.allowPlugins = false; } if(theurl == "chrome://phishtank/content/phishblock.xul") { getBrowser().docShell.allowAuth = true; getBrowser().docShell.allowPlugins = true; } } else { //it wouldn't work anywhere else getBrowser().docShell.allowAuth = true; getBrowser().docShell.allowPlugins = true; SendPhishdata(thefin, protoman); } //global function that deals with our http requests //calls the server to ask if site is safe function SendPhishdata(url,protoguy) { if(blockoff == true) { //sitechecker is disabled } else { if(window.navigator.onLine) { if(protoguy != "http" && protoguy != "ftp" && protoguy != "https") { if(theurl == "chrome://phishtank/content/phishblock.xul" || theurl == "chrome://phishtank/content/phishview.xul") { // isphish = stringsBundle.getString('phishString'); phishstatusbar.value = isphish; // isphishexplained = stringsBundle.getString('phishexpainedString'); tooltipstuff.value = isphishexplained; } } else { httpRequest = new XMLHttpRequest(); //new version trys the post idea. // fullUrl = "http://checkurl.phishtank.com/checkurl/"; httpRequest.open("POST", fullUrl, true); httpRequest.onload = phishDataReceived; httpRequest.onerror = Errord; try { httpRequest.setRequestHeader('Using','PhishTankSiteChecker(fX)'); httpRequest.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); httpRequest.send("url="+url); } catch(e) { pterror(e); } } } else { // offlinemsg="You are not online!"; pterror(offlinemsg); } } } function Errord() { phishtankPrefs.setBoolPref("error",true); // iserror = stringsBundle.getString('errorString'); // iserrorexplained = stringsBundle.getString('errorexplainedString'); phishstatusbar.value = iserror; tooltipstuff.value = iserrorexplained; // readystate = httpRequest.readyState; // PTOS = navigator.platform; // online = window.navigator.onLine; // errormessage = "CDE: CheckURL Site ERROR |"+readystate+"|"+online+"|"+PTOS+" on website:\n "+theurl; pterror(errormessage); } function blockPhish(output,selectedbrowser) { // theurlsav = output.getElementsByTagName('url').item(0).firstChild.data; //this get's the detail page for the phish site // detailpage = output.getElementsByTagName('phish_id').item(0).firstChild.data; //status bar says it's a phishing site //but first we get the info in the user's language // isphish = stringsBundle.getString('phishString'); phishstatusbar.value = isphish; // isphishexplained = stringsBundle.getString('phishexpainedString'); tooltipstuff.value = isphishexplained; //save the url and details for the block goon(''+theurlsav+''); tankpage(''+detailpage+''); //we load our blocked phishing page only when disabled is false if(selectedbrowser == null) loadURI('chrome://phishtank/content/phishblock.xul',null,null); else selectedbrowser.loadURI('chrome://phishtank/content/phishblock.xul',null,null); } function phishDataReceived() { // output = httpRequest.responseXML; //if the status is not availble. // indatabase = output.getElementsByTagName('in_database').item(0); if(indatabase) { // notexsist = indatabase.firstChild.data; if(notexsist == "false" && phishtankPrefs.getBoolPref("notdata") != false) { phishtankPrefs.setBoolPref("notdata",true); } } if(!output || httpRequest.status != "200") { phishtankPrefs.setBoolPref("error",true); // iserror = stringsBundle.getString('errorString'); // iserrorexplained = stringsBundle.getString('errorexplainedString'); phishstatusbar.value = iserror; tooltipstuff.value = iserrorexplained; } if(output && theurl != "http://www.phishtank.com" && theurl !="chrome://phishtank/content/phishblock.xul" && blockoff != true && theurl != "chrome://phishtank/content/phishview.xul") { //this is "is real" not "isreal" try { // isreal2 = output.getElementsByTagName('valid').item(0); } catch(e) { // errormessage = "Warning! There was a problem validating the PT feed! OS: "+navigator.platform+" Details: "+e; pterror(errormessage); } //we put this check because without it, the error console would be full of errors. if(isreal2) { // isitphish = isreal2.firstChild.data; // theurlsav = output.getElementsByTagName('url').item(0).firstChild.data; if(isitphish == "true" && getBrowser().mCurrentBrowser.currentURI.spec.match(theurlsav) != null) blockPhish(output); else if(isitphish == "true") { // num = gBrowser.browsers.length; for (// i = 0; i < num; i++) { // b = gBrowser.getBrowserAtIndex(i); try { if(b.currentURI.spec == theurlsav) { blockPhish(output,b); } } catch(e) { Components.utils.reportError(e); } } } } else { //the site is safe and the status bar says so //but! first we get the info in the user's language // issafe = stringsBundle.getString('safeString'); phishstatusbar.value = issafe; // issafeexplained = stringsBundle.getString('safeexplainedString'); tooltipstuff.value = issafeexplained; } /* this is if the site in the database is missing a slash at the end (always possible) the following will check it too This is the Blood hound feature. */ if(indatabase) { //check if bloodhound has run already. //bloodhound has that one pref before that sets it to true when a tab changes or a page loads // check = phishtankPrefs.getBoolPref("notdata"); // databaseno = indatabase.firstChild.data; if(databaseno == "false" && check == true) { // urllength = theurl.length; // number = urllength-1; // whatsmissin = theurl.charAt(number); if(whatsmissin == "/") // test9 = theurl.slice(0,number); else // test9 = theurl+"/"; if(check == true) { // thefixedfin = btoa(test9); SendPhishdata(thefixedfin, "http:"); //so we don't run BloodHound again until the page changes again. phishtankPrefs.setBoolPref("notdata",false); } } } } //closes recieve code } //closes all data funtion } //closes // } window.addEventListener("load", function(e) { phishtank.startup(); }, false); //set our prefs for the block page function goon(aurl) { //this saves this so we can later referance the phish url phishtankPrefs.setCharPref("urlgoon",aurl); } function tankpage(theurl) { //the phishtank detail page phishtankPrefs.setCharPref("detailpage",theurl); } my php document is <?php /** * Connects to the database. * Return false if connection failed. * Be sure to change the $database_name. $database_username , and * $database_password values to reflect your database settings. */ //function to start database connection function db_connect() { //name of the mysql database $database_name = 'xxxxxxxxx'; //username for mysql database $database_username = 'xxxxxxx'; //password for mysql database $database_password = 'xxxxxxxx'; //result is equated to persistent connection with mysql database $result = mysql_pconnect('localhost',$database_username, $database_password); //if not connected return false if (!$result) return false; //if not connected to the database specifed retrun false if (!mysql_select_db($database_name)) return false; //return the connection return $result; } $conn = db_connect(); // Connect to database if ($conn) { $url = $_GET['param']; // The parameter passed to us $query = "select url from url where url = '$url'"; $result = mysql_query($query,$conn); $count = mysql_num_rows($result); // asigned the number of rows which are obtained by the query as count. function returns the number of rows in a recordset. if ($count > 0) { //this section of code is executed if there is more then 1 row obtained, so if the URL is present in my search $present = "true"; } else{ $present = "false"; } } if (isset($present)) { $return_value = $present; } else { $return_value = "invalid".",".$_GET['param']; // Include Zip for debugging purposes } echo $return_value; // This will become the response value for the XMLHttpRequest object ?> My progress listner is ok, So I would be looking to combine the ajax also into looking into phishtank, would this be called a webservice? I found this on phishtanks website http://www.phishtank...ndividual-urls/ The test they outline is converting the existing URL into base64 which I played about using http://www.motobit.c...der-encoder.asp and I sent some through to get a XML document back which just said not in database, I don't quite understand the usefullness or harnessing that Perhaps the php document could contain its own request to ajax and search the phishtank database.
  19. I have been working on a firefox toolbar which is an anti-phishing URL detector as per my previous post here http://forums.mozillazine.org/viewtopic.php?f=19&t=1490965 I want to now use the database that is here http://www.phishtank.com/developer_info.php with my program, now I am confused I have found out it uses the REST protocol which does 4 things GET POST ... etc. which is a webservice and is supposed to be easier to SOAP, I think with soap you need to setup a webserver like glass fish or apache and edit that using axis set up programs and very long long thing to do, is REST really easy? found this half useful tutorial http://www.peej.co.uk/articles/rich-user-experience.html and explaination video http://www.youtube.com/watch?v=L21y39nry8I He said that once you get the XML document you just use cURL and XMLSImple, I know it will have to use AJAX to get my document. But I have no idea how to structure this, the small segment of code needs to use ajax to take my variable URL (which might be google.com) send it through to phishtank database, get a response in XML format or something that is decodable, and get its status so if it says its safe or phishing, if it says its safe thats Ok my code proceeds webpage loads if not its blocked, im ok with this latter part, its just getting the information using AJAX and PHP on a browser end, does anyone have any sample code .php, .js .html files which get something similar or could someone suggest how I could do it?
  20. Before was Masar Ranghar in 1740 , his head was cut off and kicked like a football back. Then 1757, Ahmad Shah Abdali, during the reign of the British they built a clock tower there. It is spoken amongst many Sikhs the British stole many gems, diamonds and riches from Harmander Sahib and the complex from inside and outside. This is probably one of the main reasons Sikhs rebelled against the British. Then Operation Bluestar in 1984. There are people from the Indian goverment who have already threatned another attack after 1984 . The reason Muslims do not allow non-muslims into mecca is because of a fear or a mass genocide when a whole group of people come together its easier to kill them, every ruling faction of India has known this, and to have a rulling government within a government even by means of religion is considered a threat unless you make them come to see your way be it by means of money, brainwashing, killing, etc. As well as before this was the fight amongst our own Sikhs and the rise of Singh sabha and creation of SGPC, the massands who were said to have altered gurbani and have prosititues dance around to have booze and meat on premises. http://www.suite101....dia_probe/83021
  21. The descendent of Sain Mian Mir has in his possession (pir makhdoom of lahore) items belong to Guru arjan dev ji, and a diary that belonged to Sia Mian Mir, his diary has alot of Sikh history that is still unknown to us, his diary says otherwise and says Mian mir was asked to lay the foundation stone, however when he did a mason moved the stone and Guru Arjan Dev ji said because he has done this now the foundation stones of harmander sahib will be shaken again and again referring to holocausts, Baba Deep Singh ji dharam yudh, 1984 etc.
  22. aren't you the guy that keeps retaking amrit for random things like masturbation and stuff, your making a mockery of the amrit sanchar. If you are having to keep retaking amrit you need to sort yourself out, keep your full rehat for 1 year then go and retake amrit what is the point of going again and again its just an insult to Guru sahib.
  23. If your going to be in a city like delhi or in punjab there are loads of internet cafes, the net is common now in India, be careful of viruses though. Otherwise you may want to just dialup through the home line or get broadband installed something sify broadband might be nice. Internet has become a daily necessity.
  24. brother why listen to this katchi bani; katchi bani is katchi. No need to pay any attention to this brother, but if you do get a chance wack this person in the face for me.
×
×
  • Create New...

Important Information

Terms of Use