"=Sources=== 
 Now, let examine what some other sources are saying about Imre Thokoly and Upper Hungary: 
 *  - Quotation: ""Thokoly was received with great pomp by the pasha of Buda in the summer of 1682 and at once a joint army of kurucok and Turks embarked on the conquest of Hungary. They spedily captured the north-eastern strongholds of Košice, Prešov, Levoča and, at the cost of 4000 Turkish dead. Fidiakovo. Thereupon the pasha Ibrahim delivered to Thokoly the antham of Mehmed IV which declared Thokoly to be king of all Hungary and Croatia, as tributary vassal of the sultan..."" 
 *  - Quotation: ""Thokoly was crowned the king of central Hungary by the governor of Buda, Ibrahim pasha, and thus became a Turkish vassal."" 
 *  - Quotation: ""In 1682 the Turks decided to help Imre Thokoly, the Hungarian leader, and Thokoly agreed to be a vassal of the sultan."" 
 *  - Quotation: ""the insurrection continued until it culminated in the expulsion of the Germans out of the whole of Upper Hungary by Thokoly. He was recognised by the sultan as vassal king of Upper Hungary"" 
 *  - Quotation: ""In 1682 a Turkish army invaded Northern Hungary and placed Thokoly on the throne of Northern Hungary as a vassal of Kara Mustafa."" 

 I doubt that all these sources are wrong, and there are more in google books search:    

 =="