Kayıtlar

OJS Her Dergi İçin Ayrı Domain Tanımlama

Resim
I don't know how many people understood the above discussion and could actually implement "Individual Domain name for each journal within one OJS installation". I undertook following steps and one can actually setup the server in 10 mins: 1. Register additional multiple domain names and set up A record to point to your server where OJS is installed, say  http://www.myjournalservice.com . (with and without www) 2. Go to myjournalservice.com admin and create additional journals with journal path MYJOURNAL1, MYJOURNAL2 etc. (we will use  http://www.myjournal1.com  &  http://www.myjournal2.com  to access these journals) 3. Edit your httpd.conf to add virtual hosts: CODE:  SELECT ALL <VirtualHost YOUR_IP_ADDRESS:80>     ServerName myjournal1.com     ServerAlias www.myjournal1.com     DocumentRoot /home/MYJOURNALSERVICE/public_html     ServerAdmin webmaster@myjournalservice.com     ## User publizer # Needed for Cpanel::ApacheConf     <IfModule mod_suph

OJS - Türkçe Dil Hatası (Boş Sayfa)

Resim
Fatal error: Call to undefined method DBConnection::getInstance() in /home/teorivep/public_html/lib/pkp/classes/db/DBConnection.inc.php on line 232  Hatası alıyosanız ; Kurulumdan sonra türkçeyi seçtiğinizde sayfa boş geliyorsa ; (lib/pkp/classes/i18n/PKPLocale.inc.php) dosyasında bulunan (satır 107-112) if (!@setlocale(LC_ALL, $sysLocale, $locale)) {             // For PHP < 4.3.0             if(setlocale(LC_ALL, $sysLocale) != $sysLocale) {                 setlocale(LC_ALL, $locale);             }         } satırlarını siler yada // kapatırsanız sorun düzeliyor...

C# ile Host dosyasına site ekleme

C# ile Host dosyasına site ekleme Önce host dosyasının yedeğini alırız ve daha sonra sites.txt içindeki siteleri tek tek host dosyasına yazarız.                ? 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 File.Copy( "C:\\WINDOWS\\system32\\drivers\\etc\\hosts" , "C:\\WINDOWS\\system32\\drivers\\etc\\copy_of_hosts.bak" , true ); StreamReader sr = new StreamReader( "sites.txt" ); StreamWriter sw = new StreamWriter( "C:\\WINDOWS\\system32\\drivers\\etc\\hosts" , true ); while (!sr.EndOfStream) { string s = sr.ReadLine(); Console.WriteLine(s + " erişime engellendi!" ); sw.WriteLine( "127.0.0.1\t" + s); } sw.Close(); sr.Close(); Console.WriteLine( "Tüm siteler yasaklandı. Lütfen bir tuşa basın…" ); Console.ReadKey( false );

Başka Siteye Veri Gönderip Cevap Almak

Başka Siteye Veri Gönderip Cevap Almak String sonuc = “”; String gonderilecekveri = “key=1089d5205f6032df5e294e”; StreamWriter gonder = null; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(“ http://api.whois.com/whoisapi.aspx “); request.Method = “POST”; request.ContentLength = gonderilecekveri.Length; request.ContentType = “application/x-www-form-urlencoded”; gonder = new StreamWriter(request.GetRequestStream()); gonder.Write(gonderilecekveri); gonder.Close(); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); using (StreamReader sr = new StreamReader(response.GetResponseStream())) { sonuc = sr.ReadToEnd(); sonuc = Regex.Replace(sonuc, @”<input type=”"hidden”" name=”"__VIEWSTATE”" id=”"__VIEWSTATE”" value=”".*”" />”, “”); sr.Close(); } Label1.Text = “<pre>” + sonuc + “</pre>”; request.Abort(); response.Close(); request = null; response = null;

JAvascript Css Eklentiler Türkçe

http://www.cssaddons.com/

C# WMI ile DNS Zone İşlemeriş

C# WMI ile Zone Silme ? 01 02 03 04 05 06 07 08 09 10 11 //ManagementObjectSearcher ile Zone'ları where ile istenilen zone'u select ederiz ( Yada where bildirilmeden tüm zone'lar silinebilir). //Silme işlemi yapılacağından select ve where query sorugunuzu ve işleminizi dikkatli yapınız. ManagementObjectSearcher mosr = new ManagementObjectSearcher( @"\ROOT\MicrosoftDNS" , "SELECT * FROM MicrosoftDNS_Zone WHERE ContainerName = 'sedatkartal.com'" ); foreach (ManagementObject contr in mosr.Get()) { //Where ile bildirilen zone'u sileriz contr.Delete(); } s C# WMI ile Zone Listeleme ? 01 02 03 04 05 06 07 08 09 10 11 12 //ManagementObjectSearcher sınıfı ile dns zone 'leri select ederiz. ManagementObjectSearcher mosr = new ManagementObjectSearcher( @"\ROOT\MicrosoftDNS" , "SELECT * FROM MicrosoftDNS_Zone" );   foreach