Program market

Ocak 28, 2007

SMF Forumda Üyeler Büyük harfle yazımı yazıyor

Kategori: Php, SMF, Smf Dersanesi, Web Master Kaynakları — Super Admin @ 11:48 am

Sources/Post.php yi açın .

(Bul)

        // Validate the poll...

(Hemen Üstüne Ekle)

	$lower = 0; $upper = 0;
	for ($i = 0; $i < strlen($_POST['subject']); $i++) {
		$chr = $_POST['subject'][$i];
		if ($chr >= 'a' && $chr <= 'z') $lower++;
		elseif ($chr >= 'A' && $chr <= 'Z') $upper++;
	}
	if ($lower < $upper && $upper > strlen($_POST['subject'])/3)
		$_POST['subject'] = ucwords(strtolower($_POST['subject']));

	$lower = 0; $upper = 0;
	for ($i = 0; $i < strlen($_POST['message']); $i++) {
		$chr = $_POST['message'][$i];
		if ($chr >= 'a' && $chr <= 'z') $lower++;
		elseif ($chr >= 'A' && $chr <= 'Z') $upper++;
	}
	if ($lower < $upper && $upper > strlen($_POST['message'])/3)
		$_POST['message'] = ucwords(strtolower($_POST['message']));

Otomatik Olarak Büyük Harfleri Küçültür  : PROGRAMCI >>> Programcı gibi ..

Denenmiştir …

4 Yorumlar »

  1. Bu kod yazılar veritabanına kayıt edilirken mi çalışıyor?

    Comment yazan: mustafau — Mart 6, 2007 @ 5:00 pm

  2. herhalde index.php dosyasının içine koyucaz ölemi ??

    Comment yazan: EFEKAN — Mart 8, 2007 @ 1:23 pm

  3. Sources klasöründeki post.php dosyasına yazılacak

    Comment yazan: tovbekar — Mart 8, 2007 @ 2:11 pm

  4. Hi

    I want to all of you know, World is mine, and yoursite good

    G’night

    Comment yazan: GramBorder — Mart 20, 2007 @ 11:02 am


Bu yazıya yapılan yorumlar için RSS beslemeleri. URI'nin geri izlemesini yap.

Yorum yapın

WordPress.com'dan blog alın.