IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası
  sohbet

Yeni Konu aç Cevapla
 
LinkBack Seçenekler Stil
Alt 15 Şubat 2009, 19:19   #1
Çevrimiçi
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Unreal CR Edit (CR JAVA Edit)




Kod:   Kodu kopyalamak için üzerine çift tıklayın!
cd Unreal3.2/include

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
pico common.h

giriş yapıyoruz.

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
/************************************************************************ * Unreal Internet Relay Chat Daemon, include/common.h * Copyright (C) 1990 Armin Gruner * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 1, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * $Id: common.h,v 1.1.1.1.2.21 2006/06/16 18:29:14 syzop Exp $ */ #ifndef __common_include__ #define __common_include__ #include <time.h> #ifdef _WIN32 #include <malloc.h> #ifdef INET6 #include <winsock2.h> #include <ws2tcpip.h> #endif #include <windows.h> #ifndef INET6 #include <winsock.h> #endif #include <process.h> #include <io.h> #endif #include "types.h" #include "config.h" #ifdef PARAMH #include <sys/param.h> #endif #if !defined(IN_ADDR) #include "sys.h" #endif #include "ircsprintf.h" #ifdef DEVELOP_CVS #define ID_Copyright(x) static char id_copyright[] = x #define ID_Notes(x) static char id_notes[] = x #else #define ID_Copyright(x) #define ID_Notes(x) #endif #define BMAGIC 0x4675636B596F754661736369737473 #define BASE_VERSION "Unreal3.2" #ifndef _WIN32 #define FDwrite(x,y,z) write(x, y, z) #else #define FDwrite(x,y,z) send(x, y, z, 0) #endif #ifndef NULL #define NULL 0 #endif #ifdef TRUE #undef TRUE #endif #ifdef FALSE #undef FALSE #endif #define FALSE (0) #define TRUE (!FALSE) #ifndef UNSURE #define UNSURE (2) #endif #if 0 #ifndef MALLOCH char *malloc(), *calloc(); void free(); #else #include MALLOCH #endif #endif #define TS time_t extern int match(const char *, const char *); #define mycmp(a,b) \ ( (toupper(a[0])!=toupper(b[0])) || smycmp((a)+1,(b)+1) ) extern int smycmp(const char *, const char *); #ifndef GLIBC2_x extern int myncmp(const char *, const char *, int); #endif #ifdef NEED_STRTOK extern char *strtok2(char *, char *); #endif #ifdef NEED_STRTOKEN extern char *strtoken(char **, char *, char *); #endif #ifdef NEED_INET_ADDR extern unsigned long inet_addr(char *); #endif #if defined(NEED_INET_NTOA) || defined(NEED_INET_NETOF) && !defined(_WIN32) #include <netinet/in.h> #endif #ifdef NEED_INET_NTOA extern char *inet_ntoa(struct IN_ADDR); #endif #ifdef NEED_INET_NETOF extern int inet_netof(struct IN_ADDR); #endif #ifndef HAVE_INET_NTOP const char *inet_ntop(int, const void *, char *, size_t); #endif #ifndef HAVE_INET_PTON int inet_pton(int af, const char *src, void *dst); #endif MODVAR int global_count, max_global_count; extern char *myctime(time_t); extern char *strtoken(char **, char *, char *); #define PRECISE_CHECK #ifndef MAX #define MAX(a, b) ((a) > (b) ? (a) : (b)) #endif #ifndef MIN #define MIN(a, b) ((a) < (b) ? (a) : (b)) #endif #define DupString(x,y) do{int l=strlen(y);x=MyMalloc(l+1);(void)memcpy(x,y, l+1);}while(0) extern MODVAR u_char tolowertab[], touppertab[]; #if defined(NICK_GB2312) || defined(NICK_GBK) || defined(NICK_GBK_JAP) #define USE_LOCALE #include <ctype.h> #endif #ifndef USE_LOCALE #undef tolower #define tolower(c) (tolowertab[(u_char)(c)]) #undef toupper #define toupper(c) (touppertab[(u_char)(c)]) #undef isalpha #undef isdigit #undef isxdigit #undef isalnum #undef isprint #undef isascii #undef isgraph #undef ispunct #undef islower #undef isupper #undef isspace #undef iscntrl #endif extern MODVAR unsigned char char_atribs[]; #define PRINT 1 #define CNTRL 2 #define ALPHA 4 #define PUNCT 8 #define DIGIT 16 #define SPACE 32 #define ALLOW 64 #define ALLOWN 128 #ifndef KLINE_TEMP #define KLINE_PERM 0 #define KLINE_TEMP 1 #define KLINE_AKILL 2 #define KLINE_EXCEPT 3 #endif #define isallowed(c) (char_atribs[(u_char)(c)]&ALLOW) #ifndef USE_LOCALE #define iscntrl(c) (char_atribs[(u_char)(c)]&CNTRL) #define isalpha(c) (char_atribs[(u_char)(c)]&ALPHA) #define isspace(c) (char_atribs[(u_char)(c)]&SPACE) #define islower(c) ((char_atribs[(u_char)(c)]&ALPHA) && ((u_char)(c) > 0x5f)) #define isupper(c) ((char_atribs[(u_char)(c)]&ALPHA) && ((u_char)(c) < 0x60)) #define isdigit(c) (char_atribs[(u_char)(c)]&DIGIT) #define isxdigit(c) (isdigit(c) || ('a' <= (c) && (c) <= 'f') || \ ('A' <= (c) && (c) <= 'F')) #define isalnum(c) (char_atribs[(u_char)(c)]&(DIGIT|ALPHA)) #define isprint(c) (char_atribs[(u_char)(c)]&PRINT) #define isascii(c) ((u_char)(c) >= 0 && (u_char)(c) <= 0x7f) #define isgraph(c) ((char_atribs[(u_char)(c)]&PRINT) && ((u_char)(c) != 0x32)) #define ispunct(c) (!(char_atribs[(u_char)(c)]&(CNTRL|ALPHA|DIGIT))) #endif #define iswseperator(c) (!isalnum(c) && !((u_char)c >= 128)) #ifndef MALLOCD #define MyFree free #define MyMalloc malloc #define MyRealloc realloc #else #define MyFree(x) do {debug(DEBUG_MALLOC, "%s:%i: free %02x", __FILE__, __LINE__, x); free(x); } while(0) #define MyMalloc(x) StsMalloc(x, __FILE__, __LINE__) #define MyRealloc realloc static char *StsMalloc(size_t size, char *file, long line) { void *x; x = malloc(size); debug(DEBUG_MALLOC, "%s:%i: malloc %02x", file, line, x); return x; } #endif extern struct SLink *find_user_link( /* struct SLink *, struct Client * */ ); /* * Protocol support text. DO NO CHANGE THIS unless you know what * you are doing. */ /* IRCu/Hybrid/Unreal way now :) -Stskeeps */ #ifdef EXTCMODE #define EXPAR1 extchmstr[0] #define EXPAR2 extchmstr[1] #define EXPAR3 extchmstr[2] #define EXPAR4 extchmstr[3] #else #define EXPAR1 "" #define EXPAR2 "" #define EXPAR3 "" #define EXPAR4 "" #endif /* EXTCMODE */ #ifdef PREFIX_AQ #define CHPFIX "(qaohv)~&@%+" #define CHPAR1 "beI" #else #define CHPFIX "(ohv)@%+" #define CHPAR1 "beIqa" #endif /* PREFIX_AQ */ #define CHPAR2 "kfL" #define CHPAR3 "l" #define CHPAR4 "psmntirRcOAQKVCuzNSM" /* Server-Server PROTOCTL -Stskeeps * Please check send_proto() for more. -- Syzop */ #define PROTOCTL_SERVER "NOQUIT" \ " TOKEN" \ " NICKv2" \ " SJOIN" \ " SJOIN2" \ " UMODE2" \ " VL" \ " SJ3" \ " NS" \ " SJB64" \ " TKLEXT" \ " NICKIP" #ifdef _WIN32 /* * Used to display a string to the GUI interface. * Windows' internal strerror() function doesn't work with socket errors. */ extern int DisplayString(HWND hWnd, char *InBuf, ...); #else typedef int SOCKET; #define INVALID_SOCKET -1 #endif #if defined(__FreeBSD__) || defined(__APPLE__) extern char *malloc_options; #endif extern int lu_noninv, lu_inv, lu_serv, lu_oper, lu_unknown, lu_channel, lu_lu, lu_lulocal, lu_lserv, lu_clu, lu_mlu, lu_cglobalu, lu_mglobalu; MODVAR TS now; #ifndef _WIN32 #if defined(__STDC__) #define __const const #define __signed signed #define __volatile volatile #ifndef __GNUC__ #define __inline #endif #else #ifndef __GNUC__ #define __const #define __inline #define __signed #define __volatile #ifndef NO_ANSI_KEYWORDS #define const /* delete ANSI C keywords */ #define inline #define signed #define volatile #endif #endif #endif #else #define inline __inline #endif #define READBUF_SIZE 8192 #endif /* __common_include__ */

#define BASE_VERSION "Unreal3.2" satırında "Unreal3.2" yazan yeri "CR1.8.3-Server.Com" olarak değiştiriyoruz. Kaydedip Cıkıyoruz.

Ardından;

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
pico version.h

giriyoruz;

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
/* ** ** version.h ** UnrealIRCd ** $Id: version.h,v 1.1.1.1.2.22 2006/06/16 18:29:14 syzop Exp $ */ #ifndef __versioninclude #define __versioninclude 1 /* * Mark of settings */ #ifdef DEBUGMODE #define DEBUGMODESET "+(debug)" #else #define DEBUGMODESET "" #endif /**/ #ifdef DEBUG #define DEBUGSET "(Debug)" #else #define DEBUGSET "" #endif /**/ #define COMPILEINFO DEBUGMODESET DEBUGSET /* Version info follows, current: Unreal3.2.3 * Please be sure to update ALL fields when changing the version. * Also don't forget to bump the protocol version every release. */ /** These UNREAL_VERSION_* macros can be used so (3rd party) modules * can easily distinguish versions. */ /** The generation version number (eg: 3 for Unreal3*) */ #define UNREAL_VERSION_GENERATION 3 /** The major version number (eg: 2 for Unreal3.2*) */ #define UNREAL_VERSION_MAJOR 2 /** The minor version number (eg: 1 for Unreal3.2.1), negative numbers for unstable/alpha/beta */ #define UNREAL_VERSION_MINOR 5 /** Year + week of the year (with Monday as first day of the week). * Can be useful if the above 3 versionids are insufficient for you (eg: you want to support CVS). * This is updated automatically on the CVS server every Monday. so don't touch it. */ #define UNREAL_VERSION_TIME 200624 #define UnrealProtocol 2308 #define PATCH1 "3" #define PATCH2 "2." #define PATCH3 "5." #define PATCH4 "" #define PATCH5 "" #define PATCH6 "" #define PATCH7 "" #define PATCH8 COMPILEINFO #define PATCH9 "" /* release header */ #define Rh BASE_VERSION #define VERSIONONLY PATCH1 PATCH2 PATCH3 PATCH4 PATCH5 PATCH6 PATCH7 #endif /* __versioninclude */

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
#define PATCH1 "3" #define PATCH2 "2." #define PATCH3 "5."


Yukardaki satırları;

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
#define PATCH1 "" #define PATCH2 "" #define PATCH3 ""

olarak değiştiriyoruz.

kaydedin cıkın



Kod:   Kodu kopyalamak için üzerine çift tıklayın!
make clean

Kod:   Kodu kopyalamak için üzerine çift tıklayın!
make

ve sunucuya rest cekiyorz.

Alıntıdır

 
Alıntı ile Cevapla

IRCForumlari.NET Reklamlar
sohbet odaları sohbet odaları Benimmekan Mobil Sohbet
Cevapla

Etiketler
cr, edit, java, unreal


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
Seçenekler
Stil

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Açık
Refbacks are Açık


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Unreal & IRCSERVICES Edit Acil.. dAtA Unreal IRCd 4 20 Ocak 2010 16:36
Unreal CR - Edit GhostLy Unreal IRCd 3 14 Ağustos 2007 13:47
Java giriş için Unreal edit kgbX Unreal IRCd 1 05 Ağustos 2007 01:19
Yas 8 Unreal System Edit.. RNBTEAM Hey Sen! Beni Tanıyor Musun? 18 12 Ağustos 2006 00:24