From: Frederik Vanrenterghem Date: Tue, 29 Nov 2022 13:06:55 +0000 (+0800) Subject: Verwijder verouderde bestanden. X-Git-Url: http://git.vanrenterghem.biz/www.vanrenterghem.biz.git/commitdiff_plain/83ab5456767602f2a9860a7db7247f002ec96945 Verwijder verouderde bestanden. --- diff --git a/DumpingGround/20071229_1300_wave_height.png b/DumpingGround/20071229_1300_wave_height.png deleted file mode 100644 index 9a2c251..0000000 Binary files a/DumpingGround/20071229_1300_wave_height.png and /dev/null differ diff --git a/DumpingGround/20071230_0700_wave_height.png b/DumpingGround/20071230_0700_wave_height.png deleted file mode 100644 index fd71142..0000000 Binary files a/DumpingGround/20071230_0700_wave_height.png and /dev/null differ diff --git a/DumpingGround/bookreviews.shtmls b/DumpingGround/bookreviews.shtmls deleted file mode 100644 index 1a9f6cd..0000000 --- a/DumpingGround/bookreviews.shtmls +++ /dev/null @@ -1,91 +0,0 @@ - -http://www.librarything.com/profile_reviews.php?view=frederikv - -frederikv's reviews from LibraryThing - -The Secret History by Donna Tartt -http://www.librarything.com/work/book/115647110 - - frederikv's review: "Great novel. The introduction actually already reveals the key plot element, which makes it more enjoyable to read unless you're into who-did-it kind of crime stories (or unless you skimmed over the intro and had to be reminded about this well into the book by your wife). It's part 2 that really make this book stand out. The reflections on why the characters did what they did are great. You'll get pulled in!" - -Wed, 21 Jan 2015 08:25:45 -0500 - - -Surfari by Tim Baker -http://www.librarything.com/work/book/93764554 - - frederikv's review: ""Never let the truth get in the way of a good story" comes to mind reading this book. The setting - a surf writer taking his family on a year-long roadtrip along the Australian coast - is perfect stuff to dream about as a surfer with a day job that doesn't require him to travel the world breaks. The day-to-day hassles that make this trip a lot less epic than imagined unfortunately cause some pain reading the author's tale. While this is obviously done on purpose, it doesn't really work perfectly. It leaves a rather plain story of a family trip in an expensive 4WD (of which we read a little too much, to satisfy the sponsor) down under, reminding the reader that the grass isn't always greener on the other side. That in itself is an accomplishment not to discard." - -Mon, 04 Feb 2013 00:44:24 -0500 - - - -Occy: The Rise and Fall and Rise of Mark Occhilupo by Mark Occhilupo - -http://www.librarything.com/work/book/93764563 - - frederikv's review: "The voice of Occy filters through really well in this partial auto-biography, partial biography of the icon surfer Mark Occhilupo. Maybe not enough a critical account of his life - the role of drugs and alcohol in his fall are a bit too shaded for instance - this book does let the reader into the life of a professional surfer with a remarkably long time at the top. Mixing the main story with quotes from colleagues, friends and family is something of a trademark of Tim Baker, and for some reason it works a bit less well in this book compared to how he used this style in Bustin' Down the Door." - -Mon, 04 Feb 2013 00:44:52 -0500 - - -Bustin' Down the Door by Tim Baker -http://www.librarything.com/work/book/93764602 - - frederikv's review: "Great account of how professional surfing came about. Tim Baker leads Rabbit Bartholomew in putting his life story on paper, from a young kid surfing on the Gold Coast to being the CEO of the Association of Surfing Professionals. - - The book touches on the lives of other surfers on the world circuit. Reading the book in combination with Surfers Code from Shaun Tomson, Occy by Tim Baker and The Life from Malcolm Knox makes the stories even stronger, as you'll read different views on the same situations." - -Mon, 04 Feb 2013 00:49:13 -0500 - - - -Kook: What Surfing Taught Me About Love, Life, and Catching the Perfect Wave by Peter Heller - -http://www.librarything.com/work/book/73906982 - - frederikv's review: ""Surfing is an addiction". It is impossible not to believe Peter Heller when he writes this simple statement, after having read him describing several months of his quest to become a surfer. He takes his reader along on a journey from California south deep into Mexico, all the while truthfully describing his progress on the surfboard. The book is about a 40-something who decides to become a true surfer in 6 months: from novice to surfing big, fast waves in only half a year. To that end, he travels with his girlfriend from surfspot to surfspot along the Pacific coast, and meets several interesting characters along the way. If you've ever wanted or actually tried to surf, or if you can admire someone's dedication to achieve a challenging goal, this book should be a good pick for you." - -Mon, 30 May 2011 12:33:03 -0400 - - - -Don't Tell Mum I Work on the Rigs: (She Thinks I'm a Piano Player in a Whorehouse) by Paul Carter - -http://www.librarything.com/work/book/73907012 - - frederikv's review: "Not so much an autobiography as a collection of anecdotes, this book still manages to capture your attention until you finish it. With a bit more attention from the editor, this could have been a truly funny and sometimes shocking account of Paul Carter's life in the oil business. Now it's still a capturing overview of the life-defining moments the author experienced while working on oil rigs all over the world." - -Mon, 30 May 2011 12:34:04 -0400 - - - -Tegenvoeters een reis door Australië by Bill Bryson - -http://www.librarything.com/work/book/73906799 - - frederikv's review: "Bryson's love for the counrty is obvious througout the book, not only because he explicitly proclaims it a number of times. The mix of dry humour and odd details about places you may have visited yourself works really well." - -Mon, 30 May 2011 12:26:59 -0400 - - - -Team of Rivals: The Political Genius of Abraham Lincoln by Doris Kearns Goodwin - -http://www.librarything.com/work/book/41405834 - - frederikv's review: "Focusing on the intriguing choices made by Lincoln as his cabinet members, this account of the US civil war period is a good read. The book deviates a little from its main purpose throughout the high-level account of the civil war that is included. In that section, we learn a bit about the relationship that Lincoln had with his generals. That isn't the best worked out part of the book though. In a way, one could skip this part altogether and still capture the main message of the book: Lincoln was a master at putting the right people in the right place politically." - -Fri, 06 Feb 2009 12:46:32 -0500 - - - -21: Bringing Down the House - Movie Tie-In: The Inside Story of Six M.I.T. Students Who Took Vegas for Millions by Ben Mezrich - -http://www.librarything.com/work/book/39906758 - - frederikv's review: "Reads like a movie." - -Fri, 02 Jan 2009 05:50:16 -0500 - - diff --git a/DumpingGround/powers.shtml b/DumpingGround/powers.shtml deleted file mode 100644 index 8232f31..0000000 --- a/DumpingGround/powers.shtml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - -Frederik Vanrenterghem's homepage - http://www.vanrenterghem.biz/ - - - -

1. Never outshine the master

-

Always make those above you feel comfortably superior. In your desire to please or impress them, do not go too far in displaying your talents or you might accomplish the opposite - inspire fear and insecurity. Make your masters appear more brilliant than they are and you will attain the heights of power.

-

2. Never put too much trust in friends, learn how to use enemies

-

Be wary of friends - they will betray you more quickly, for they are easily aroused to envy. They also become spoiled and tyrannical. But hire a former enemy and he will be more loyal than a friend, because he has more to prove. In fact, you have more to fear from friends than from enemies. If you have no enemies, find a way to make them.

-

3. Conceal your intentions

-

Keep people off-balance and in the dark by never revealing the purpose behind your actions. If they have no clue what you are up to, they cannot prepare a defense. Guide them far enough down the wrong path, envelop them in enough smoke, and by the time they realize your intentions, it will be too late.

- diff --git a/JossWhedonandTelevisionCreativity.shtml b/JossWhedonandTelevisionCreativity.shtml deleted file mode 100644 index a05f624..0000000 --- a/JossWhedonandTelevisionCreativity.shtml +++ /dev/null @@ -1,417 +0,0 @@ - - - - - - - http://frederik.gotdns.org:1976 Joss Whedon and Television Creativity - - - - -

A Religion in Narrative?


Joss Whedon and Television Creativity

- -David Lavery
- -Middle Tennessee State University
- -Paper given at the Blood, Text, and Fears Conference, University of East Anglia, Norwich, England, October 2002
-
-I'm a very hard-line, angry atheist. . . . Yet I am fascinated by the concept of devotion.
-Joss Whedon
-
- - -

-At the end of the first episode of the new season of Buffy the Vampire Slayer, now -beginning its seventh, and possibly last, season, an episode written by series' creator Joss Whedon, -all the Big Bads from the first six seasons reappear. Warren morphs into Glory -into Adam into Mayor Wilkins into Drusilla and finally into The Master, each picking up in turn, -an oration delivered to the newly ensoulled, newly returned to Sunnydale, mentally disturbed Spike. -

- -

-Play Clip -

- -

-SPIKE: The thing is . . . I had a speech. I learned it all. Oh, God. She won't understand, she won't understand. -
-WARREN: Of course she won't understand, Sparky. I'm beyond her understanding. She's a girl. Sugar and spice and everything...useless unless you're baking. I'm more than that. More than flesh . . . -
-GLORY: . . . more than blood. I'm . . . you know, I honestly don't think there's a human word fabulous enough for me. Oh, my name will be on everyone's lips, assuming their lips haven't been torn off. But not just yet. That's alright, though . . . -
-ADAM: . . . I can be patient. Everything is well within parameters. She's exactly where I want her to be. And so are you, Number 17. You're right where you belong . . . -
-THE MAYOR: . . . So what'd you think? You'd get your soul back and everything'd be Jim Dandy? Soul's slipperier than a greased weasel. Why do you think I sold mine? (laughs) Well, you probably thought that you'd be your own man, and I respect that, but . . . -
-DRUSILLA: . . . you never will. You'll always be mine. You'll always be in the dark with me, singing our little songs. You like our little songs, don't you? You've always liked them, right from the beginning. And that's where we're going . . . -
-THE MASTER: . . . right back to the beginning. Not the Bang . . . not the Word . . . the true beginning. The next few months are going to be quite a ride. And I think we're all going to learn something about ourselves in the process. You'll learn you're a pathetic schmuck, if it hasn't sunk in already. Look at you. Trying to do what's right, just like her. You still don't get it. It's not about right, not about wrong . . . -
-BUFFY: . . . it's about power. -

-

-"Back to the beginning." "In our end is our beginning," as we know from Eliot, and -if "the last of earth left to discover is that which was the beginning," as "Little Gidding" tells us, then it -shouldn't surprise us that Whedon might seek there the narrative secret of his creation as it begins -its possible end. Nor should it surprise us that the morphing finally reveals not a Big Bad but -Buffy herself. For is it not Sarah Michelle Gellar's possible departure from Buffy that inspired -all this talk of beginnings? (That the show just might go on without either its star or creator is both -"the beauty and horror of it" [Longworth 218].) And was it not concerning Gellar's character -that we heard (spoken by Tara, ventriloquized by the First Slayer) the admonition, "You think you -know . . . what's to come . . . what you are. You haven't even begun," -Janus-words which this critic has always taken to be a meta-commentary-about the series itself, about -its narrative potential as much as they are about its eponymous hero. "It's about power," she -announces to Spike. Though we will no doubt need to follow the trajectory of Season 7's -arc to its end before we know for certain what the "it" refers to, we have already met the "power." -"You could never hope to know the source of our power," Über-Buffy scolds Adam before ripping out -his uranium power core in Season Four's penultimate "Primeval." Adam might not know, but we -have glimpsed its essence: Buffy's power source is narrative. -

-

- -Emily Nussbaum reports in a recent profile of Joss Whedon in the The New York Times that she -witnessed "a dewy young woman" who "leaned forward and gripped [Whedon's] hand between hers, -pulling him in for enforced eye contact: 'I just want you to know - we trust you. We know you know what you're -doing. We know it will be great'." Asked in an interview about such fan idolization of his series -and himself, Whedon modestly deflects the question, insisting that such adulation is not really personal. -

-

- -It's about the show, and I feel the same way about it. I get the same way. It's not like being a rock star. -It doesn't feel like they're reacting to me. It's really sweet when people react like that, -and I love the praise, but to me, what they're getting emotional about is the show. -And that's the best feeling in the world. There's nothing creepy about it. I feel like there's a religion -in narrative, and I feel the same way they do. I feel like we're both paying homage to something else; -they're not paying homage to me. (Onion AV Club Interview; [author's] italics) - -

-

-"They" may not be but I am - continuing a process I began in the Afterword to Fighting the Forces, -a brief essay I called "The Genius of Joss Whedon" and which I hope to continue in a -book comparing and contrasting the creative processes of thirty-something Whedon and fifty-something -David Chase, the television lifer who created The Sopranos. All I can offer here -today is a preliminary intelligence report on the avatar of this narrative religion. -As John Briggs and Jonathan Gray have just admirably demonstrated, it is wise, after all, -before reality and myth begin to blur, to establish whatever truth we can about the founder of a new faith. -

- -

-Of course such attention to the creator of a television series was, until recently, -extremely rare. Since television arose in a time in which the "death of the author" -was proclaimed by such important intellectual figures as Roland Barthes and Michel Foucault, and even -the "death of the auteur," that supposed movie creator - first promulgated by French cineastes -like François Truffaut and American critics like Andrew Sarris - capable of giving individual, -even autobiographical, shape and substance to the highly collaborative process of cinematic creation, -was likewise proclaimed, serious consideration of authorship in the often anonymous medium of television -has been suspect from the beginning. -

-

-But literary authors, oblivious to their extinction, continue to publish, cash in royalty checks -(as William Gass once quipped), and appear on talk shows, movie directors continue to attract a -good deal of attention, and now even television auteurs have become prominent in the way -we think and write about the medium. The major figures at century's end - Steven Bochco -(L.A. Law, Hill Street Blues, NYPD Blue), Joshua Brand and John Falsey (St. Elsewhere, Northern Exposure) - -began to yield prominence to emerging new talents. Indeed, at the beginning of a new millennium -we seem to be witnessing in the US the emergence of a number of significant, -and sometimes prolific, television auteurs: David E. Kelley (Picket Fences, The Practice, -Ally McBeal, Boston Public), J. J. Abrams (Felicity, Alias), Aaron Sorkin (Sports Night, West Wing), -David Chase (The Sopranos), and Joss Whedon, spoken of, in a recent Entertainment -Weekly piece, as the next new Bochco (Jensen). - - -

-

-We know quite a lot about Whedon's influences. -A graduate of Wesleyan University with a degree in film studies, Whedon, we know, -loves Dickens. We know that he is the "world's biggest Sondheim fan" (and -once dreamed, long before authoring the fabulous "Once More with Feeling," -of creating a musical based on the Oliver North hearings). We know that -Edward Gorey, Marvel Comics, especially early Spiderman and John -Byrne-era X-Men, Frank Miller and Alan Moore are all major inspirations. -That he greatly admires Steven Soderberg and Ang Lee and the Wachowski brothers -(he speaks of wishing to eat their brains in order to acquire their genius). -That he has watched admiringly The Simpsons, Twin Peaks, West Wing, -The Sopranos, Party of Five ("a brilliant show," according to Whedon, -which often "made me cry uncontrollably," but "suffered ultimately from a -lack of rocket launchers"), and My So-Called Life (he has called Buffy -a genetic splicing of it and The X-Files, and in a satellite seminar -on "Writing for Teens on Television" Whedon bows down, literally, before My -So-Called's creator Winnie Holzman). But we know, too, that he was a -"PBS kid," "into the highbrow British stuff that my mother [Lee Stearns] -watched," who wasn't really raised on American television (Longworth -207-208). -

-

-We know he loves movies- that in his college days he'd "go out and see three classic films, -stagger home at 2 a.m. and then watch whatever was on HBO" (Nussbaum), and, thanks to his commentary on -the Buffy DVDs, where he mentions Hitchcock, DePalma, Lynch, Leone, Abel Ferrara, Luc Besson, -Sam Peckinpah, Tim Burton, Marcel Ophuls, Woody Allen, we know something about the directors whose -work he remembers (not always favorably) and sometimes emulates. -

-

-We know that he counts Wesleyan University scholar Richard Slotkin, author of books like -Gunfighter Nation, Fatal Environment, and Regeneration Through Violence which examine the -deep cultural roots of American "mythogenesis," "the creation, 'in both maker and audience, -[of tales that are] mystical and religious, drawing heavily on the unconscious and the -deepest levels of the psyche, defining relationships between human and divine things, -between temporalities and ultimates" [Slotkin, quoted by Tucker] and that he once greatly admired Sartre's -Nausea. We can be fairly certain that a man who is convinced that -

-

-ultimately, stories come from violence, they come from sex. They come from death. -They come from the dark places that everybody has to go to. . . . If you raise a kid to think -everything is sunshine and flowers, they're going to get into the real world and die. . . . -That's the reason fairy tales are so creepy, because we need to encapsulate these things, -to inoculate ourselves against them, so that when we're confronted by the genuine horror that -is day-to-day life we don't go insane [Longworth 213) . . . -

-

-has read Bettelheim's The Uses of Enchantment. We can assume that someone who refers -routinely to the "baroque" stage in the evolution of genre has absorbed Thomas Schatz' Hollywood Genres: -Formulas, Filmmaking, and the Studio System and who speaks of understanding "the motivation -of the man with the murderous gaze, . . . of the terrible objectifying male" (Longworth 215) has mastered -the ideas of Laura Mulvey. The great directors of the 1970s and 80s often were film school -grads. Tarantino established the 1990's video store auteur tradition. Though himself -a former video store employee and cognizant of the new auteurhood trajectory - he has quipped that -"Actors wait tables, directors work at video stores" (Onion AV Club Interview) - Whedon may well -represent yet a new career path: the film studies auteur, just as likely to be familiar -with critical schools and narratological theory as with lenses and filters and a -spect ratios. Perhaps this is why those of us assembled here feel such an attraction to his work. -

-

-We know that Buffy the Vampire Slayer was a recombinant hybrid of his obsessions: -"We wanted to make that sort of short-attention-span, The Simpsons, cull-from-every -genre all the time thing. You know, if we take this moment from Nosferatu, and this moment -from Pretty in Pink, that'll make this possible. A little Jane Eyre in there, and then a -little Lethal Weapon 4. Not 3, but 4. And I think this'll work" (Onion AV Club Interview). -

-

-We know that, in addition to being executive producer extraordinaire, Whedon -has written/co-written twenty+ episodes of Buffy and directed nineteen, in addition to -several episodes of Angel and of his new series Firefly as well. Though by his own -admission he knew very little about directing and virtually nothing about creating a television -show prior to helming BtVS, Whedon, we know, has turned out some of the series' - and contemporary television's - -most memorable, and most innovative, episodes, including "Innocence", in which Angel loses -his soul and becomes the evil boyfriend from Hell Angelus after having sex with Buffy; "Becoming" (I and II), -which was the first time the series shot on a soundstage and used historical settings -and costumes; "Hush," a marvelous experiment, which broke him, he admits, out of a -devolution into a "sort of a hack TV director" (Longworth 220), in which almost half the episode -transpires in silence after fairy tale monsters The Gentleman steal the voices of Sunnydale; "Restless," -an all-dream episode, "basically a forty-minute poem" (as Whedon describes it [Longworth 220]), which I have -described as a kind of television 8 1/2 and Rhonda Wilcox has compared to Eliot's "The Wasteland"; -"The Body," an emotionally-wrenching depiction of the aftermath of Buffy's mother's death; and -"Once More with Feeling," an ingenious all-singing, all-dancing musical, the fulfillment -of a long-time Whedon ambition. Whedon written and/or directed episodes exhibit stylistic and -verbal signatures too complex to explore here. -

-

-And we know that it is not just his own episodes that show his influence. "I have control over all the shows," -Whedon explained to ET Online two years ago. -

-

-I'm responsible for all the shows. That means that I break the stories. I often come up with the -ideas and I certainly break the stories with the writers so that we all know what's going to happen. -Then once the writers are done, I rewrite every script. . . . Then I oversee production and edit -every show, work with the composers and sound mixers. Inevitably every single show has my name on -it somewhere and it is my responsibility to make it good. . . . Every week that show is on, I'm standing -in the back row, biting my nails, hoping people like it, so I feel a great responsibility. -The good thing is that I'm surrounded by people who are much smarter than I am. So gradually -I have been able to let certain things take care of themselves, because my crew, my writers, -my post-production crew, everybody is so competent, that I don't have to run around quite as much as I used to. -

-

-Now again masterminding not only Buffy (due to Marti Noxon's maternity leave) and Angel -(due to David Greenwalt's departure for ABC), not to mention his own new series, the sci-fi/western Firefly, -the new spinoff Ripper (for British television), and a still-in-production Buffy -cartoon series - all as part of his plans for "total world domination" (Adalian) by his Mutant Enemy -production company, it would seem that Whedon's dream of peace and quiet will not be coming true any time soon. -

-

-We know, too, that, though now deeply entangled in television, Whedon, like Sopranos creator -Chase, really wants to make movies. He admits that his original dream after college had long been -to "head toward the movie world" (Interview with David Bianculli). Though it was in the movies -that he made his first breakthrough, when Fran Rubel Kuzui butchered his screenplay of BtVS in -1992, though he has contributed, often as a highly paid - and sometimes uncredited - "script doctor" to -a variety of films both before (Speed [1994], Toy Story [1995], Waterworld [1995], -Twister [1996]) and after (Alien Resurrection [1997], X-Men [2000], Titan A.E. [2000]), -Buffy the Vampire Slayer the television series came on the air in 1997; though Anthony Stewart -Head has remarked that "It's only a matter of time before we lose him to the cinema" (BBC Interview), -Whedon himself confesses that "I have always felt my movie career was an abysmal failure" (quoted in Tracy 44). -According to The Internet Movie Data Base, Whedon once directed an episode of the television -sitcom Boy Meets World. Though Whedon denies having done so, he does insist that he is far -prouder of the Boy Meets World episode he never directed than he is of his work on Alien: Resurrection. -

-

-In the medium in which he has experienced his greatest success, we know that Whedon can claim a -unique genealogy. A third generation contributor to television, perhaps the only one in existence - both Whedon's -grandfather and father wrote for TV[1] - he speaks warmly of an important parental admonition: "The best -advice [my father] every gave me . . . was, 'If you have a good story, you don't need jokes. If you don't -have a good story, no amount of jokes can save you.' I'm not really that interested in jokes. I like -the more dramatic stuff. But that tenet of 'the story is god' is the most important thing I could have -learned" (Onion AV Club interview). Whedon himself, we know, would contribute to both Roseanne and -Parenthood prior to the making of the original BtVS film. -

-

-But he dreamed of directing, as he confessed to The Onion: -

-

-I'm sure a lot writers want to direct because they're bitter, which is not a reason to direct. -I want to speak visually, and writing is just a way of communicating visually. That's what it's all about. -But nobody would even consider me to direct. So I said, "I'll create a television show, and I'll -use it as a film school, and I'll teach myself to direct on TV." -

-

-In a recent article in Slayage, I have summarized and commented upon Whedon's DVD revelations -about his education as a maker of television, and I will only summarize them briefly here. -

-

-The "dog and pony show" of series television production apparently provided a rapid education -for Joss Whedon, who had no prior hands-on experience with making TV. As he acknowledges at the outset -of his commentary on "Innocence," every aspiring television auteur thinks of his work, however, -minor it may be, as equal in weight and importance to Citizen Kane ("a black and white film," -Whedon reminds us, should we not know, "about a bald guy"). In reality, the strict parameters -imposed on creative inclinations by small budget and time constraints force novice and -veteran alike to find less expensive and more expeditious paths to quality. "Freedom," Robert Frost once -observed, "is swinging easy in harness." Though he began as "Mister-I-don't-know-how-to-make-a-television-show," -Joss Whedon has mastered the TV harness as well as any of his contemporaries, and he -concedes that what he really "love[s] about my show is the amount of cheese that we can sort of get away -with, the amount of how little money we have and how we make it look a little more epic than it is." "I've -been described as Ed Wood," Whedon admits, "and I've been assured that this is a compliment, -because of the amount of work we have to get done in so short a time. Especially with Buffy, which -is a very hard show to make, because we have the action and the special effects, and we -have to be very careful about the performances, making it all work. So you get that -overload thing" (Onion AV Club Interview). -

-

-The aspiring filmmaker continues to chafe at the bit, however. In an interview in The Watchers's Guide, -Vol. 2, for example, he confesses that "I'm getting to the point now where I'm like, 'Okay, I've told a -lot of stories. I've churned it out.' I just feel like I want to step back and do something where I can't -use the excuse of 'I only had a week'" (323). But Whedon nevertheless thinks of his experience in -television as highly educational and recommends it: -

- -

-I think everybody who makes movies should be forced to do television. . . . -Because you have to finish. You have to get it done, and there are a lot of decisions made -just for the sake of making decisions. You do something because it's efficient and because it gets the -story told and it connects to the audience. (Interview in The Watcher's Guide, Vol. 2: 323) -

-

-We possess at least a preliminary understanding of Whedon's basic television aesthetics. We know that -he expects the medium to be smart. "I hate it when people talk about Buffy as being campy . . ," -he tells Nussbaum. "I hate camp. I don't enjoy dumb TV. I believe Aaron Spelling -has single-handedly lowered SAT scores." We know that, in concurrence with the Gene Youngblood -axiom that entertainment gives the audience what it wants while art contributes what it never dreamed it -needed, he does not want his narrative religion to be merely entertainment. "Don't give people what they want," -he tells The Onion, -

-

-give them what they need. What they want is for Sam and Diane to get together. Don't -give it to them. Trust me. . . . People want the easy path, a happy resolution, but in the end, they're -more interested in . . . No one's going to go see the story of Othello going to get a peaceful -divorce. People want the tragedy. They need things to go wrong, they need the tension. In my -characters there's a core of trust and love that I'm very committed to. These guys would die for -each other, and it's very beautiful. But at the same time, you can't keep that safety. Things have -to go wrong, bad things have to happen. -

-

-"One of the things TV is about," Whedon tells James Longworth (211), "is comfort, is knowing -exactly where you are. I know they're going to invite Jessica Fletcher over, one of -them is going to get killed, she very politely is going to solve it. I know what's going -to happen when I tune in to a particular show." But Whedon's narrative style takes a different approach: -

-

-With Buffy we'll do French farce one week and Medea the next week. We try very hard structurally -not to fall into a pattern either, so there's not a shoot-out in a warehouse every -episode. I'm very much committed to keeping the audience off their feet. It's sort of antithetical to -what TV is devised to do. (Longworth 211) -

-

-But we know too that Whedon's religion must entertain if it is to have adherents: "It's better to be a -spy in the house of love, you know? . . . If I made 'Buffy the Lesbian Separatist,' a series of lectures on -PBS on why there should be feminism, no one would be coming to the party, and it would be boring. -The idea of changing culture is important to me, and it can only be done in a popular medium" (Nussbaum). -

-

-In The Stuff Our Dreams Are Made Of: How Science Fiction Conquered Reality, the always -irreverant Thomas Disch, contemplating the follies of Scientology, wonders out loud why it is that the -only science fiction writer ever to found a religion had to be such an awful one. -Why, oh why, could it not have been, say, Philip K. Dick whose theologizing found disciples -and not the reprehensible L. Ron Hubbard? The "religion in narrative" now gestating - the magazine The Door, -we should take note, recently named Buffy the Vampire Slayer its "theologian of the year" and the -series has attracted a great deal of attention from CESNUR, as the presence of such scholars as -Gordon Melton and Massimo Introvigne at this conference testifies - should produce no such qualms. It's -difficult to imagine it in better hands than those of the "very hard-line, angry atheist" Joss Whedon. -

- -

Notes

- -[1] After a career in radio (writing for such shows as The Great Gildersleeve), Whedon's grandfather went on to contribute to Donna Reed, Mayberry RFD, Dick Van Dyke Show, Room 222. His father wrote for Captain Kangaroo, The Dick Cavett Show, The Electric Company, Alice, Benson, Golden Girls, and It?s a Living. - -Bibliography - -Adalian, Josef. ?Whedon Widens Mutant?s Reach.? Variety 1 April 2002. - -Buffy the Vampire Slayer: The Complete First Season on DVD. Twentieth Century Fox 1997. - -Buffy the Vampire Slayer: The Complete Second Season on DVD. Twentieth Century Fox 2002. - -Disch, Thomas M. The Dreams Our Stuff is Made of: How Science Fiction Conquered the World. NY: The Free Press, 1998. - -Holder, Nancy with Jeff Mariotte and Maryelizabeth Hart. Buffy the Vampire Slayer: The Watcher?s Guide. Vol. 2. New York: Pocket Books, 2000. - -Jensen, Jeff. "Galaxy Quest: Buffy the Vampire Slayer Mastermind Joss Whedon Launches an Intergalatic Western That Comes Complete with a Tight-Pants-Wearing Captain, A Space Hooker, and a Behind-the-Scenes Showdown." Entertainment Weekly 13 Sept. 2002: 96-99. - -Lavery, David. "Emotional Resonance and Rocket Launchers": Joss Whedon's Commentaries on the Buffy the Vampire Slayer DVDs.? Slayage: The Online International Journal of Buffy Studies. http://www.slayage.tv/essays/slayage6/Lavery.htm. - -___. "The Genius of Joss Whedon." Fighting the Forces: What's at Stake in Buffy the Vampire Slayer. Lanham, MD: Rowman and Littlefield, 2002: 251-56. - -Nussbaum, Emily. ?Must See Metaphysics.? New York Times 22 September 2002. - -Slotkin, Richard. Fatal Environment: The Myth of the Frontier in the Age of Industrialization, 1800-1890. New York: HarperPerennial, 1986. - -___. Gunfighter Nation: The Myth of the Frontier in Twentieth Centiry America. New York: HarperPerennial, 1992. - -___. Regeneration Through Violence: The Mythology of the American Frontier, 1600-1860. Middletown, CT: Wesleyan University Press, 1973. - -Tracy, Kathleen. The Girl?s Got Bite: The Unofficial Guide to Buffy?s World. LosAngeles: Renaissance Books, 1998. - -Tucker, Ken ?High Stakes Poker.? Entertainment Weekly 1 October 1999: 20-23. - -Whedon, Joss. ?The Creator Speaks: Joss Whedon on Sex, Death, Gaping Holes and Horrible Things Ahead.? http://www.eonline.com/Features/Features/Buffy/TheCreatorSpeaks/index.html. - -___. Interview with BBC Online http://www.bbc.co.uk/buffy/reallife/jossinterview.shtml - -___. Interview with darkhorse.com. http://www.darkhorse.com/news/interviews.sku_97796int/ - -___. Interview with David Bianculli. Fresh Air 9 May 2000. Available online at http://whyy.org/cgi-bin/FAshowretrieve.cgi?2876 - -___. Interview with ET Online http://www.theslayershow.com/chat8.html - -___. Interview with Fanforum http://www.fanforum.com/buffy/news/786.shtml - -___. Interview with Fraxis. http://websites.cable.ntl.com/~fraxis/the_ww/features/whedon.html - -___. Interview. The Watcher?s Guide, Vol. 2. - -___. Interview with The Watcher?s Web. http://websites.cable.ntl.com/~fraxis/the_ww/features/epk/joss.html - -___. Interview. "Welcome to the Hellmouth/The Harvest." Videocassette. Twentieth Century Fox, 1998. - -___. Interview. ?Angel + The Puppet Show.? Videocassette. Twentieth Century Fox, 1998. - -___. ?joss says" (Thu May 27 08:26:10 1999). Online posting. 27 May 1999. The Bronze VIP Posting Board Archives. 25 July 2000. http://www-pub.cise.ufl.edu/cgiwrap/hsiao/buffy/get-archive?date=1990527. - -___. ?Joss Whedon.? The Onion AV Club. http://www.theonionavclub.com/avclub3731/avfeature_3731.html - -___. ?Joss Whedon: Feminist.? TV Creators: Conversations with America?s Top Producers of Television Drama, Volume 2. Ed. James L. Longworth. Syracuse: Syracuse University Press, 2002: 197-220. - -Wilcox, Rhonda V. "T. S. Eliot Comes to Television: Buffy's "Restlesss." Popular Culture Association in the South, Charlotte, NC, October 2002. - - - - - - \ No newline at end of file diff --git a/Linux/.A20.html.swp b/Linux/.A20.html.swp deleted file mode 100644 index a1be3a5..0000000 Binary files a/Linux/.A20.html.swp and /dev/null differ diff --git a/Linux/A20.html b/Linux/A20.html deleted file mode 100644 index 2b08f0f..0000000 --- a/Linux/A20.html +++ /dev/null @@ -1,11 +0,0 @@ -To compile - -dpkg --add-architecture armhf -apt-get install crossbuild-essential-armhf - -using u-boot-2015.01 - -make A20-OLinuXino-Lime2_config ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- - - diff --git a/Linux/BT-0101M.htm b/Linux/BT-0101M.htm deleted file mode 100644 index 202108f..0000000 --- a/Linux/BT-0101M.htm +++ /dev/null @@ -1,146 +0,0 @@ - - -CC&C---Products - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - - -
-


-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

-

 

-

 

-

 

-

¡@

-

¡@

-

¡@

-

¡@

-

¡@

-

¡@

-

¡@

-

¡@

-

¡@

-

¡@

-
-

-
- - - - - - - - - - - -

-
-

-

BT-0101M

-
- -
¡@ -
-

-
- 8F,No.150,Jian Yi Rd.,Chung Ho City,Taipei Hsien, Taiwan,R.O.C.
- Tel: 886-2-8226-5088 Fax: 886-2-8226-5077
- E-Mail adress : marketing@ccandc.com.tw -
-
-
-
- \ No newline at end of file diff --git a/Linux/BT-0101M_files/00.gif b/Linux/BT-0101M_files/00.gif deleted file mode 100644 index 109bfc3..0000000 Binary files a/Linux/BT-0101M_files/00.gif and /dev/null differ diff --git a/Linux/BT-0101M_files/BT-0107.gif b/Linux/BT-0101M_files/BT-0107.gif deleted file mode 100644 index 39e6cfc..0000000 Binary files a/Linux/BT-0101M_files/BT-0107.gif and /dev/null differ diff --git a/Linux/BT-0101M_files/b-cf.JPG b/Linux/BT-0101M_files/b-cf.JPG deleted file mode 100644 index 4d07b7c..0000000 Binary files a/Linux/BT-0101M_files/b-cf.JPG and /dev/null differ diff --git a/Linux/BT-0101M_files/pro_r1_c1.jpg b/Linux/BT-0101M_files/pro_r1_c1.jpg deleted file mode 100644 index e1933d3..0000000 Binary files a/Linux/BT-0101M_files/pro_r1_c1.jpg and /dev/null differ diff --git a/Linux/BT-0101M_files/spacer.gif b/Linux/BT-0101M_files/spacer.gif deleted file mode 100644 index fc25609..0000000 Binary files a/Linux/BT-0101M_files/spacer.gif and /dev/null differ diff --git a/Linux/BT-0101M_files/ti_pro.gif b/Linux/BT-0101M_files/ti_pro.gif deleted file mode 100644 index be595c6..0000000 Binary files a/Linux/BT-0101M_files/ti_pro.gif and /dev/null differ diff --git a/Linux/BT-0101M_files/top_r1_c3.gif b/Linux/BT-0101M_files/top_r1_c3.gif deleted file mode 100644 index 8446edc..0000000 Binary files a/Linux/BT-0101M_files/top_r1_c3.gif and /dev/null differ diff --git a/Linux/BT-0101M_files/top_r2_c3.gif b/Linux/BT-0101M_files/top_r2_c3.gif deleted file mode 100644 index 457ca4e..0000000 Binary files a/Linux/BT-0101M_files/top_r2_c3.gif and /dev/null differ diff --git a/Linux/BT-0101M_files/top_r2_c4.gif b/Linux/BT-0101M_files/top_r2_c4.gif deleted file mode 100644 index 0aca521..0000000 Binary files a/Linux/BT-0101M_files/top_r2_c4.gif and /dev/null differ diff --git a/Linux/BT-0101M_files/top_r2_c5.gif b/Linux/BT-0101M_files/top_r2_c5.gif deleted file mode 100644 index 8103e6a..0000000 Binary files a/Linux/BT-0101M_files/top_r2_c5.gif and /dev/null differ diff --git a/Linux/BT-0101M_files/top_r2_c6.gif b/Linux/BT-0101M_files/top_r2_c6.gif deleted file mode 100644 index dbf7b40..0000000 Binary files a/Linux/BT-0101M_files/top_r2_c6.gif and /dev/null differ diff --git a/Linux/BT-0101M_files/top_r2_c7.gif b/Linux/BT-0101M_files/top_r2_c7.gif deleted file mode 100644 index 1875415..0000000 Binary files a/Linux/BT-0101M_files/top_r2_c7.gif and /dev/null differ diff --git a/Linux/BT-0101M_files/top_r2_c8.gif b/Linux/BT-0101M_files/top_r2_c8.gif deleted file mode 100644 index 381a151..0000000 Binary files a/Linux/BT-0101M_files/top_r2_c8.gif and /dev/null differ diff --git a/Linux/BT-0101M_files/top_r2_c9.gif b/Linux/BT-0101M_files/top_r2_c9.gif deleted file mode 100644 index 4f3f5ca..0000000 Binary files a/Linux/BT-0101M_files/top_r2_c9.gif and /dev/null differ diff --git a/Linux/GPRS_on_iPAQ_running_Familiar.shtml b/Linux/GPRS_on_iPAQ_running_Familiar.shtml deleted file mode 100644 index d04d00a..0000000 --- a/Linux/GPRS_on_iPAQ_running_Familiar.shtml +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - vanrenterghem.biz - GNU/Linux - Connecting to GPRS network with iPAQ PDA running Familiar Linux - - - - - - -

GPRS network connection for the iPAQ

-

Introduction

-

-In this document, I outline the steps necessary to get an iPAQ running Familiar Linux on the net via GPRS using a Bluetooth-capable phone. -

- -

Hard- and software

- -

Provider

-

-Belgian wireless carrier Base. -

-

Steps

-

Get Bluetooth working

-

-There's various HOWTO's available on getting Bluetooth functioning on (Familiar) Linux. Tip: use Bluez. If you are using the Opie image of Familiar 0.8.4, -you will have to replace /bin/bluepin with a shell script like this one: -

- -#!/bin/sh
-echo -n PIN:
-cat /etc/bluetooth/pin
-exit 0
-
-

Find the hardware address of the phone

-

-Use hcitool to find the various bluetooth devices in your neighbourhood. Provided you've made the phone broadcast its presence, it should show up in the scan. -

- -~ # hcitool scan
-Scanning ...
-   <address> <friendly name> -
-

Find the channel for dial-up networking

-

-Check on what channel the phone provides dial-up networking (DUN): -

- -sdptool search --bdaddr <bd> DUN - -

-where <bd> is the hardware address of your mobile phone as detected by hcitool scan. -

-

Bind rfcomm

-

-I decided to bind /dev/rfcomm0 to the DUN channel of my phone. -

- -/etc/init.d # cat bind_dun
-rfcomm bind 0 <bdaddr> <channel>
-mknod -m 666 /dev/rfcomm0 c 216 0
-
-

Configure PPP

-

-I assume you have the point-to-point protocol set up on your device already. If not, ipkg search *ppp* is your friend. -

-

-On Familiar 0.8.x, the pppd options were changed versus 0.7.x. The file now only contains a minimal lock as option. I -prefer the following: -

- ----------------- cut and paste from here ----------------
-cat > /etc/ppp/options << EOF
--detach
-defaultroute
-nocrtscts
-lock
-noauth
-lcp-echo-interval 5
-lcp-echo-failure 3
-usepeerdns
-460800
-local
-asyncmap 0
-EOF
------------------------- end cut ------------------------
-
-

-Now you'll need a chat script to tell the phone what to do. -

- ----------------- cut and paste from here ----------------
-cat > /etc/ppp/chat.gprs.base << EOF
-ABORT "BUSY"
-"" "\d"
-SAY "Resetting modem\n"
-"" "atz"
-SAY "Dialing\n"
-OK 'AT+cgdcont=1,"IP","gprs.base.be"'
-OK "ATD*99#"
-TIMEOUT 60
-CONNECT ''
-SAY "Connected\n"
-EOF
------------------------- end cut ------------------------
- -
-

-You'll also need to provide some additional options for pppd: -

- ----------------- cut and paste from here ----------------
-cat > /etc/ppp/peers/base_gprs << EOF
-debug
-noauth
-usepeerdns
-/dev/rfcomm0 460800
-460800
-user base
-password base
-local
-nocrtscts
-defaultroute
-noipdefault
-connect '/usr/sbin/chat -f /etc/ppp/chat.gprs.base -r /dev/console'
-EOF
------------------------- end cut ------------------------
-
-

Get connected

-

-Start pppd as follows: -

- -~ # pppd call base_gprs - -

-If all goes well (and only if you changed the /etc/ppp/options file), you should see something like this: -

- -Reseting modem
-Dialing...
-Connected
-Serial connection established.
-using channel 13
-Using interface ppp0
-Connect: ppp0 <--> /dev/rfcomm0
-
- -

Check routing

-

-As I had a default route already (via the USB connection in the cradle), I had to replace it: -

- -route del default
-route add default ppp0
-
-

- - - - - diff --git a/Linux/HOWTO_run_GSR_on_Familiar_0.8.2.shtml b/Linux/HOWTO_run_GSR_on_Familiar_0.8.2.shtml deleted file mode 100644 index 003ccac..0000000 --- a/Linux/HOWTO_run_GSR_on_Familiar_0.8.2.shtml +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - -vanrenterghem.biz - GNU/Linux - Running GSR on Familiar Linux 0.8.2 - - - - - -

Running GSR on Familiar Linux 0.8.2

-

Introduction

-

-Installing GMail SMTP Relay -on my iPAQ was a mistake. I incorrectly believed it would act as a local SMTP server -and send all its data via a HTTPS connection to Google. Turns out the former is true, but the latter sadly isn't. As -I spent a considerable amount of time trying to get this thing to work, I've documented hereunder what needs to be done. -

-

On to business...

-

-The first requirement isn't available in the World feed, so -you'll have to download SMTP-Server yourself. - -Simply copy the required modules to the right place in /usr/lib/perl5. README is your friend. - -Next, do -

-

- -ipkg install perl-module-arm-linux-io-socket perl-module-io-socket-inet perl-module-strict \
-perl-module-vars perl-module-warnings-register perl-module-warnings perl-module-carp perl-module-exporter \
-perl-module-arm-linux-io-handle perl-module-symbol perl-module-selectsaver perl-module-io \
-perl-module-arm-linux-xsloader perl-module-socket perl-module-sys-hostname perl-module-arm-linux-errno \
-perl-module-io-socket-unix perl-module-arm-linux-config perl-module-sys-hostname perl-module-io-socket-inet \
-perl-module-exporter-heavy perl-module-autoloader
-
-

-

-I also took a small detour install CPAN. In retrospect, that isn't entirely necessary, but I can't tell -which of the following modules might not have been necessary: -

-

- -ipkg install perl-module-cpan perl-module-cwd perl-module-dirhandle perl-module-extutils-makemaker \
-perl-module-file-basename perl-module-file-path perl-module-file-copy perl-module-file-find \
-perl-module-filehandle perl-module-text-parsewords perl-module-text-wrap perl-module-file-spec \
-perl-module-extutils-mm perl-module-extutils-liblist perl-module-file-spec-unix perl-module-extutils-liblist-kid \
-perl-module-extutils-mm-unix perl-module-extutils-mm-any perl-module-extutils-my perl-module-arm-linux-io-file \
-perl-module-arm-linux-io-handle perl-module-arm-linux-io-seekable perl-module-fcntl perl-module-arm-linux-safe \
-perl-module-opcode perl-module-subs perl-module-re perl-module-text-tabs perl-module-arm-linux-lib \
-perl-module-overload perl-module-cpan-firsttime perl-module-term-readline
-
-

-

-At this point, you need to get ready to compile some modules on your own, because that whole CPAN module will make you -very angry. Trust me. -

-

-First, prepare your iPAQ for native development. Next, -replace the busybox gzip with the real one (rm /bin/gzip && ipkg install gzip). -

-

-Just so you keep the hang of it, install some more modules. -

-

-ipkg install perl-module-extutils-manifest perl-module-carp-heavy perl-module-scalar-util \
-perl-module-test perl-module-digest-md5 perl-module-digest-base perl-module-data-dumper -
-

-

-You'll also need the Perl development files. Install them with a simple ipkg install perl-dev_5.8.4-r2_arm.ipk. -

-

-You are now ready to install some crypto on your machine. OK, you actually already did that with the MD5 module above, but you -probably didn't notice that. -

-

-ipkg install openssl -

-

-Get the OpenSSL development files too. By now you know what to do with such a file. Actually, someone that didn't know that at the top of this document, in all -likelihood stopped reading quite some time ago. -

-

-We now need to compile and install IO::Socket::SSL. To do that we need, guess what, some more modules... -

-

-ipkg install perl-module-extutils-command perl-module-file-compare perl-module-file-glob \
-perl-module-extutils-install perl-module-extutils-packlist perl-module-autosplit perl-module-file-spec-functions \
-perl-module-extutils-command-mm perl-module-pod-man perl-module-pod-parselink perl-module-pod-parser \
-perl-module-pod-inputobjects perl-module-getopt-long perl-module-constant -
-

-

-Another requirement we have to deal with first is Net::SSLeay. In order to compile that one, we need even more Perl modules. I know, it seems hardly possible to have even more -modules, but I guess that's the beauty of modular systems... -

-

-ipkg install perl-module-extutils-mkbootstrap perl-module-dynaloader perl-module-mime-base64 -

-

You'll also need to get Digest::HMAC yourself, as it's not in the feed. Untar it and move the 3 files we need to the right position: cp lib/Digest/HMAC* /usr/lib/perl5/5.8.4/Digest/ -

-

-By now you should be ready to compile IO::Socket::SSL, so go ahead with that. -

-

-Download and compile TermReadKey. Also -download and compile Proc::Daemon. Now -install just a few more modules, and you're ready to roll!!! -

-

-ipkg install perl-module-test-harness perl-module-test-harness-straps perl-module-test-harness-assert \
-perl-module-test-harness-iterator perl-module-benchmark perl-module-sys-syslog perl-module-arm-linux-io-select -
-

-

About compiling Perl modules on Familiar 0.8.2

-

-You will soon find out who the maintainer of Perl in this distribution is, as he seems to have made a minor mistake somewhere, which -results in all your self-compiled modules being installed in /home/koen/OE/build/tmp/familiar/work/arm-linux/perl-5.8.4-r2/image/usr/. That -is only a minor inconvenience though; simply move them to the corresponding location in /usr/lib/perl5/ and you are -good to go. -

-

Acknowledgments

-

-A special thanks to the people that keep releasing all these goodies, especially the Familiar and -the OpenEmbedded folks!!! -

- - - - diff --git a/Linux/Installing_Debian_on_Lime2.shtml b/Linux/Installing_Debian_on_Lime2.shtml deleted file mode 100644 index b529428..0000000 --- a/Linux/Installing_Debian_on_Lime2.shtml +++ /dev/null @@ -1,494 +0,0 @@ - - - - - - - vanrenterghem.biz - GNU/Linux - Debian armhf on A20-OLinuXino-Lime2 - - - - - - -

Installing Debian GNU/Linux to your A20-OLinuXino-Lime2.

-

-So you bought an open hardware Lime2 board, and -now would like to install Debian on it, without resorting to pre-compiled images offered on the Olimex wiki. Since -February 2015, this is actually possible using Debian-provided binaries. -

-

Prepare u-boot

-

-Easiest is to use u-boot from unstable, and extract /usr/lib/u-boot/A20-OLinuXino-Lime2/u-boot-sunxi-with-spl.bin from it. -Alternatively, you will need to cross-compile u-boot for your A20 board on your Debian GNU/Linux box. The needed architecture -for this processor is armhf. -

-

- -sudo dpkg --add-architecture armhf
-sudo update
-sudo apt-get install crossbuild-essential-armhf
-
-

-Download the latest release of u-boot, -at the time of writing u-boot-2015.01. -This version already supports everything needed to get Debian on your Lime2 using an SD card, USB stick and -a network install of the OS. We will install Debian (and u-boot) to the SD card. The USB stick is only used -during the installation process, and can be re-used for other purposes once all is done. (As of April 2015, it -is also possible to do without an USB stick altogether and install from an SD card.) -

-

-Compile u-boot as follows: -

-

- -make A20-OLinuXino-Lime2_config ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
-make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -
-

-

Copy u-boot to an SD card

-

-Copy the compiled or extracted u-boot image to your micro SD card. No need for partitioning it - one VFAT or ext2 partition should do. -

-

- -sudo dd if=~/Downloads/u-boot-2015.01/u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8 - -

-

Prepare the Debian Installer

-

-At the time of writing, the weekly images of the CD build are broken, so the excellent tutorial on installing Debian on the Allwinner cannot be fully followed. Instead, unpack the hd-media image of d-i -on your USB stick. Next, download 2 files. -

- -wget http://d-i.debian.org/daily-images/armhf/daily/netboot/vmlinuz
-wget http://d-i.debian.org/daily-images/armhf/daily/netboot/initrd.gz
-
-

-and overwrite the copy of vmlinuz on the USB stick with this one. -

-

-We will modify the initrd.gz image slightly. -Since you may not have a console cable, it's useful to perform the install using preseeding. This way, the Debian -installer will get its answers from a file instead of through your input. I opted to automate as many answers as possible, -except for the partitioning. These can be answered by logging in to the installer using SSH. It's truly an awesome, -versatile tool, d-i! -

-

-First, create preseed.cfg. For Debian Jessie, the following file will work. -

-

- - -#### Contents of the preconfiguration file (for jessie)
-### Localization
-# Preseeding only locale sets language, country and locale.
-d-i debian-installer/locale string en_AU
-
-# The values can also be preseeded individually for greater flexibility.
-#d-i debian-installer/language string en
-#d-i debian-installer/country string NL
-#d-i debian-installer/locale string en_GB.UTF-8
-
-# Keyboard selection.
-d-i keyboard-configuration/xkb-keymap select au
-# d-i keyboard-configuration/toggle select No toggling
-
-### Network configuration
-# netcfg will choose an interface that has link if possible. This makes it
-# skip displaying a list if there is more than one interface.
-d-i netcfg/choose_interface select auto
-
-# To pick a particular interface instead:
-#d-i netcfg/choose_interface select eth1
-
-# To set a different link detection timeout (default is 3 seconds).
-# Values are interpreted as seconds.
-#d-i netcfg/link_wait_timeout string 10
-
-# If you have a slow dhcp server and the installer times out waiting for
-# it, this might be useful.
-#d-i netcfg/dhcp_timeout string 60
-#d-i netcfg/dhcpv6_timeout string 60
-
-# If you prefer to configure the network manually, uncomment this line and
-# the static network configuration below.
-d-i netcfg/disable_autoconfig boolean true
-
-# If you want the preconfiguration file to work on systems both with and
-# without a dhcp server, uncomment these lines and the static network
-# configuration below.
-#d-i netcfg/dhcp_failed note
-#d-i netcfg/dhcp_options select Configure network manually
-
-# Static network configuration.
-#
-# IPv4 example
-d-i netcfg/get_ipaddress string 192.168.2.10
-d-i netcfg/get_netmask string 255.255.255.0
-d-i netcfg/get_gateway string 192.168.2.1
-d-i netcfg/get_nameservers string 192.168.2.1
-d-i netcfg/confirm_static boolean true
-#
-# Any hostname and domain names assigned from dhcp take precedence over
-# values set here. However, setting the values still prevents the questions
-# from being shown, even if values come from dhcp.
-d-i netcfg/get_hostname string YOURHOSTNAME
-d-i netcfg/get_domain string YOURDOMAIN.TLD
-
-# If you want to force a hostname, regardless of what either the DHCP
-# server returns or what the reverse DNS entry for the IP is, uncomment
-# and adjust the following line.
-#d-i netcfg/hostname string somehost
-
-# Disable that annoying WEP key dialog.
-d-i netcfg/wireless_wep string
-# The wacky dhcp hostname that some ISPs use as a password of sorts.
-#d-i netcfg/dhcp_hostname string radish
-
-# If non-free firmware is needed for the network or other hardware, you can
-# configure the installer to always try to load it, without prompting. Or
-# change to false to disable asking.
-d-i hw-detect/load_firmware boolean true
-
-### Network console
-# Use the following settings if you wish to make use of the network-console
-# component for remote installation over SSH. This only makes sense if you
-# intend to perform the remainder of the installation manually.
-d-i anna/choose_modules string network-console
-#d-i network-console/authorized_keys_url string http://10.0.0.1/openssh-key
-d-i network-console/password password STRONGPASSWORD
-d-i network-console/password-again password STRONGPASSWORD
-
-### Mirror settings
-# If you select ftp, the mirror/country string does not need to be set.
-#d-i mirror/protocol string ftp
-d-i mirror/country string Australia
-d-i mirror/http/hostname string ftp.au.debian.org
-d-i mirror/http/directory string /debian
-d-i mirror/http/proxy string
-
-# Suite to install.
-d-i mirror/suite string testing
-# Suite to use for loading installer components (optional).
-#d-i mirror/udeb/suite string testing
-
-### Account setup
-# Skip creation of a root account (normal user account will be able to
-# use sudo).
-#d-i passwd/root-login boolean false
-# Alternatively, to skip creation of a normal user account.
-#d-i passwd/make-user boolean false
-
-# Root password, either in clear text
-d-i passwd/root-password password VERYSTRONG
-d-i passwd/root-password-again password VERYSTRONG
-# or encrypted using an MD5 hash.
-#d-i passwd/root-password-crypted password [MD5 hash]
-
-# To create a normal user account.
-d-i passwd/user-fullname string Your Full Name
-d-i passwd/username string yoursystemname
-# Normal user's password, either in clear text
-d-i passwd/user-password password REALLYSTRONG
-d-i passwd/user-password-again password REALLYSTRONG
-# or encrypted using an MD5 hash.
-#d-i passwd/user-password-crypted password [MD5 hash]
-# Create the first user with the specified UID instead of the default.
-#d-i passwd/user-uid string 1010
-
-# The user account will be added to some standard initial groups. To
-# override that, use this.
-#d-i passwd/user-default-groups string audio cdrom video
-
-### Clock and time zone setup
-# Controls whether or not the hardware clock is set to UTC.
-d-i clock-setup/utc boolean true
-
-# You may set this to any valid setting for $TZ; see the contents of
-# /usr/share/zoneinfo/ for valid values.
-d-i time/zone string Australia/Perth
-
-# Controls whether to use NTP to set the clock during the install
-d-i clock-setup/ntp boolean true
-# NTP server to use. The default is almost always fine here.
-#d-i clock-setup/ntp-server string ntp.example.com
-
-### Partitioning
-
-## Partitioning example
-# If the system has free space you can choose to only partition that space.
-# This is only honoured if partman-auto/method (below) is not set.
-#d-i partman-auto/init_automatically_partition select biggest_free
-
-# Alternatively, you may specify a disk to partition. If the system has only
-# one disk the installer will default to using that, but otherwise the device
-# name must be given in traditional, non-devfs format (so e.g. /dev/hda or
-# /dev/sda, and not e.g. /dev/discs/disc0/disc).
-# For example, to use the first SCSI/SATA hard disk:
-#d-i partman-auto/disk string /dev/sda
-# The SD card of your OLinuXino-Lime2 will probably be mmcblk0
-#d-i partman-auto/disk string /dev/mmcblk0
-
-# In addition, you'll need to specify the method to use.
-# The presently available methods are:
-# - regular: use the usual partition types for your architecture
-# - lvm: use LVM to partition the disk
-# - crypto: use LVM within an encrypted partition
-#d-i partman-auto/method string lvm
-
-# If one of the disks that are going to be automatically partitioned
-# contains an old LVM configuration, the user will normally receive a
-# warning. This can be preseeded away...
-#d-i partman-lvm/device_remove_lvm boolean true
-# The same applies to pre-existing software RAID array:
-#d-i partman-md/device_remove_md boolean true
-# And the same goes for the confirmation to write the lvm partitions.
-#d-i partman-lvm/confirm boolean true
-#d-i partman-lvm/confirm_nooverwrite boolean true
-
-# You can choose one of the three predefined partitioning recipes:
-# - atomic: all files in one partition
-# - home: separate /home partition
-# - multi: separate /home, /var, and /tmp partitions
-#d-i partman-auto/choose_recipe select atomic
-
-# This makes partman automatically partition without confirmation, provided
-# that you told it what to do using one of the methods above.
-#d-i partman-partitioning/confirm_write_new_label boolean true
-#d-i partman/choose_partition select finish
-#d-i partman/confirm boolean true
-#d-i partman/confirm_nooverwrite boolean true
-
-
-# This makes partman automatically partition without confirmation.
-#d-i partman-md/confirm boolean true
-#d-i partman-partitioning/confirm_write_new_label boolean true
-#d-i partman/choose_partition select finish
-#d-i partman/confirm boolean true
-#d-i partman/confirm_nooverwrite boolean true
-
-## Controlling how partitions are mounted
-# The default is to mount by UUID, but you can also choose "traditional" to
-# use traditional device names, or "label" to try filesystem labels before
-# falling back to UUIDs.
-d-i partman/mount_style select uuid
-
-### Base system installation
-# Configure APT to not install recommended packages by default. Use of this
-# option can result in an incomplete system and should only be used by very
-# experienced users.
-#d-i base-installer/install-recommends boolean false
-
-# The kernel image (meta) package to be installed; "none" can be used if no
-# kernel is to be installed.
-#d-i base-installer/kernel/image string linux-image-586
-
-### Apt setup
-# You can choose to install non-free and contrib software.
-#d-i apt-setup/non-free boolean true
-#d-i apt-setup/contrib boolean true
-# Uncomment this if you don't want to use a network mirror.
-#d-i apt-setup/use_mirror boolean false
-# Select which update services to use; define the mirrors to be used.
-# Values shown below are the normal defaults.
-d-i apt-setup/services-select multiselect security, updates
-d-i apt-setup/security_host string security.debian.org
-
-# Additional repositories, local[0-9] available
-#d-i apt-setup/local0/repository string \
-# http://local.server/debian stable main
-#d-i apt-setup/local0/comment string local server
-# Enable deb-src lines
-#d-i apt-setup/local0/source boolean true
-# URL to the public key of the local repository; you must provide a key or
-# apt will complain about the unauthenticated repository and so the
-# sources.list line will be left commented out
-#d-i apt-setup/local0/key string http://local.server/key
-
-# By default the installer requires that repositories be authenticated
-# using a known gpg key. This setting can be used to disable that
-# authentication. Warning: Insecure, not recommended.
-#d-i debian-installer/allow_unauthenticated boolean true
-
-### Package selection
-tasksel tasksel/first multiselect standard
-
-# Individual additional packages to install
-d-i pkgsel/include string openssh-server
-# Whether to upgrade packages after debootstrap.
-# Allowed values: none, safe-upgrade, full-upgrade
-d-i pkgsel/upgrade select none
-
-# Some versions of the installer can report back on what software you have
-# installed, and what software you use. The default is not to report back,
-# but sending reports helps the project determine what software is most
-# popular and include it on CDs.
-popularity-contest popularity-contest/participate boolean false
-
-### Boot loader installation
-# Grub is the default boot loader (for x86). If you want lilo installed
-# instead, uncomment this:
-#d-i grub-installer/skip boolean true
-# To also skip installing lilo, and install no bootloader, uncomment this
-# too:
-#d-i lilo-installer/skip boolean true
-
-
-# This is fairly safe to set, it makes grub install automatically to the MBR
-# if no other operating system is detected on the machine.
-d-i grub-installer/only_debian boolean true
-
-# This one makes grub-installer install to the MBR if it also finds some other
-# OS, which is less safe as it might not be able to boot that other OS.
-d-i grub-installer/with_other_os boolean true
-
-# Due notably to potential USB sticks, the location of the MBR can not be
-# determined safely in general, so this needs to be specified:
-#d-i grub-installer/bootdev string /dev/sda
-# To install to the first device (assuming it is not a USB stick):
-#d-i grub-installer/bootdev string default
-
-# Alternatively, if you want to install to a location other than the mbr,
-# uncomment and edit these lines:
-#d-i grub-installer/only_debian boolean false
-#d-i grub-installer/with_other_os boolean false
-#d-i grub-installer/bootdev string (hd0,1)
-# To install grub to multiple disks:
-#d-i grub-installer/bootdev string (hd0,1) (hd1,1) (hd2,1)
-
-# Optional password for grub, either in clear text
-#d-i grub-installer/password password r00tme
-#d-i grub-installer/password-again password r00tme
-# or encrypted using an MD5 hash, see grub-md5-crypt(8).
-#d-i grub-installer/password-crypted password [MD5 hash]
-
-# Use the following option to add additional boot parameters for the
-# installed system (if supported by the bootloader installer).
-# Note: options passed to the installer will be added automatically.
-#d-i debian-installer/add-kernel-opts string nousb
-
-### Finishing up the installation
-# During installations from serial console, the regular virtual consoles
-# (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next
-# line to prevent this.
-d-i finish-install/keep-consoles boolean true
-
-# Avoid that last message about the install being complete.
-d-i finish-install/reboot_in_progress note
-
-
-

-

-Next, add your preseed.cfg to the downloaded initrd.gz -

- -mkdir /tmp/initrd && cd /tmp/initrd
-gzip -d < ~/Downloads/initrd.gz |cpio --extract --verbose --make-directories --no-absolute-filenames
-cp ~/preseed.cfg .
-find . | cpio -H newc --create --verbose | gzip -9 > ../initrd.gz
-
-

-Copy the new initrd.gz to your USB stick. -

-

Install Debian on your Lime2

-

-If you want to follow along on a console (not really necessary, but easier to debug things this way.) -

- -sudo apt-get install minicom -sudo minicom --device /dev/ttyUSB0 - -

-Now plug in the micro SD card as well as the USB stick and power up your Lime2. After a little while, you will -be able to ssh installer@192.168.2.10 with your chosen password to set up the partitions. A while later, -your Lime2 will be ready to use! -

- -

Installing wireless

-

-I purchased a USB Wireless N WIFI dongle based on an Atheros chip. At the moment, this is the only chipset with -a free firmware implementation supporting 802.11n. Please consider doing the same, to ensure this technology remains -available for customers. -

-

-Build and install the firmware as explained on the Debian wiki. -This will take a while, as the whole toolchain to build the firmware will be compiled for some reason. -

-

-Once you've installed the compiled firmware as explained, plug in the wifi dongle. The firmware will be -loaded automatically. -

- -

Configuring your Lime2 as a wireless access point

-

-Given the total lack of support for free software on ADSL2 modems, I have a very simple one and use my Lime2 -board as wireless router. This instead of acquiring an expensive modem/router combo running proprietary software. The combined price is equivalent, and I have an option of installing some other software on the Lime2 too. Too bad one needs to ringfence an ADSL2 modem in your own house as if it's part of the internet, but that seems to be today's reality. -

-

-On the Lime2, install the following: -

-

- -sudo apt-get install iw wireless-tools hostapd isc-dhcp-server
-

-

-Edit 3 files as in the examples below.
-

- -

/etc/network/interfaces

- -

-auto wlan
-iface wlan0 inet static
- address 192.168.3.1
- netmask 255.255.255.0
- hostapd /etc/hostapd/hostapd.conf
-

-

/etc/hostapd/hostapd.conf

-

- -interface=wlan0
-driver=nl80211
-ssid=YOURSSID
-hw_mode=g
-
-# 802.11n support
-ieee80211n=1
-wmm_enabled=1
-
-# set country code
-country_code=AU
-ieee80211d=1
-
-channel=9
-wpa=2
-wpa_passphrase=PASSPHRASE
-wpa_key_mgmt=WPA-PSK
-wpa_pairwise=TKIP CCMP
-wpa_ptk_rekey=600
-macaddr_acl=0
-
-

-

/etc/dhcp/dhcpd.conf

-

-To configure your DHCP server, get your OpenNic DNS servers in the area - most of the server operators respect your privacy by not maintaining logs. -

-

- -subnet 192.168.3.0 netmask 255.255.255.0 {
- range 192.168.3.20 192.168.3.100;
- option domain-name-servers 103.25.56.238, 111.223.227.125;
- option routers 192.168.3.1;
- interface wlan0;
- }
-
-

-

-Restart networking & start the DHCP server, or reboot the system and you should be good to go. -

- - - - diff --git a/Linux/e_changefocus_sh.shtml~ b/Linux/e_changefocus_sh.shtml~ deleted file mode 100644 index 4247b3a..0000000 --- a/Linux/e_changefocus_sh.shtml~ +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - frederik.gotdns.org:1976 - e_changefocus.sh - - - -

e_changefocus.sh

-

-Purpose: This script was written to be bound to the extra keys on my Logitech Cordless Desktop Deluxe wireless keyboard. This way, I can click on f.i. the E-Mail button to either launch my mail program, or transfer the application to the current desktop.
-

-

-Requirements: Enlightenment window manager -

-

-Script: -

-#!/bin/bash
-
-# This script gets the current desktop and area
-# and checks if the prog $1 (identifier) is running
-# and moves a running $1 to current desktop/area
-# or starts $2 (command)
-# e.g. $1 = Evolution and $2 = evolution
-
-eesh -ewait "goto_desktop ?"| \
-cut -f2 -d: |\
-while read desktop; do
-	eesh -ewait "goto_area ?"| \
-	cut -f2 -d: |\
-	while read area; do
-		if eesh -ewait "window_list" | grep $1 
-		then
-			eesh -ewait "window_list" | \
-                        grep $1| \
-			cut -f1 -d: |\
-			while read win_id; do 
-				eesh -e "win_op ${win_id} move 80 0"; 
-				eesh -e "win_op ${win_id} desk ${desktop}";
-				eesh -e "win_op ${win_id} area ${area}";
-			done 
-		else 
-			$2 &
-		fi
-	done
-done
-
- -Syntax highlighted by Code2HTML, v. 0.9.1 -

- - - diff --git a/Linux/e_launchOrMoveApp_sh.shtml b/Linux/e_launchOrMoveApp_sh.shtml deleted file mode 100644 index 72e9f92..0000000 --- a/Linux/e_launchOrMoveApp_sh.shtml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - vanrenterghem.biz - e_launchOrMoveApp.sh - - - - - -

e_launchOrMoveApp.sh

-

-Purpose: This script was written to be bound to the extra keys on my Logitech Cordless Desktop Deluxe wireless keyboard. This way, I can click on f.i. the E-Mail button to either launch my mail program, or transfer the application to the current desktop.
-

-

-Requirements: Enlightenment window manager -

-

-
-
-#!/bin/bash
-
-# This script gets the current desktop and area
-# and checks if the prog $1 (identifier) is running
-# and moves a running $1 to current desktop/area
-# or starts $2 (command)
-# e.g. $1 = Evolution and $2 = evolution
-
-eesh -ewait "goto_desktop ?"| \
-cut -f2 -d: |\
-while read desktop; do
-	eesh -ewait "goto_area ?"| \
-	cut -f2 -d: |\
-	while read area; do
-		if eesh -ewait "window_list" | grep $1 
-		then
-			eesh -ewait "window_list" | \
-                        grep $1| \
-			cut -f1 -d: |\
-			while read win_id; do 
-				eesh -e "win_op ${win_id} move 80 0"; 
-				eesh -e "win_op ${win_id} desk ${desktop}";
-				eesh -e "win_op ${win_id} area ${area}";
-			done 
-		else 
-			$2 &
-		fi
-	done
-done
-
-
-

-and in ~/.enlightenment/keybindings.cfg: -
-
-__NEXT_ACTION
-    __KEY logitech_mail
-    __EVENT __KEY_PRESS
-    __ACTION __A_EXEC ~/scripts/e_launchOrMoveApp.sh Evolution evolution
-
-
-

- - - diff --git a/Linux/e_launchOrMoveApp_sh.shtml~ b/Linux/e_launchOrMoveApp_sh.shtml~ deleted file mode 100644 index f4cf3dc..0000000 --- a/Linux/e_launchOrMoveApp_sh.shtml~ +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - frederik.gotdns.org:1976 - e_launchOrMoveApp.sh - - - -

e_launchOrMoveApp.sh

-

-Purpose: This script was written to be bound to the extra keys on my Logitech Cordless Desktop Deluxe wireless keyboard. This way, I can click on f.i. the E-Mail button to either launch my mail program, or transfer the application to the current desktop.
-

-

-Requirements: Enlightenment window manager -

-

-
-
-#!/bin/bash
-
-# This script gets the current desktop and area
-# and checks if the prog $1 (identifier) is running
-# and moves a running $1 to current desktop/area
-# or starts $2 (command)
-# e.g. $1 = Evolution and $2 = evolution
-
-eesh -ewait "goto_desktop ?"| \
-cut -f2 -d: |\
-while read desktop; do
-	eesh -ewait "goto_area ?"| \
-	cut -f2 -d: |\
-	while read area; do
-		if eesh -ewait "window_list" | grep $1 
-		then
-			eesh -ewait "window_list" | \
-                        grep $1| \
-			cut -f1 -d: |\
-			while read win_id; do 
-				eesh -e "win_op ${win_id} move 80 0"; 
-				eesh -e "win_op ${win_id} desk ${desktop}";
-				eesh -e "win_op ${win_id} area ${area}";
-			done 
-		else 
-			$2 &
-		fi
-	done
-done
-
-
-

-and in keybindings.cfg: -
-
-
-__NEXT_ACTION
-    __KEY logitech_mail
-    __EVENT __KEY_PRESS
-    __ACTION __A_EXEC /scripts/e_launchOrMoveApp.sh Evolution evolution
-
-
-

- - - diff --git a/Linux/iPAQ_and_obexserver.shtml b/Linux/iPAQ_and_obexserver.shtml deleted file mode 100644 index a870b34..0000000 --- a/Linux/iPAQ_and_obexserver.shtml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - vanrenterghem.biz - GNU/Linux - Sending files from Motorola V500 to Familiar Linux iPAQ - - - - - - -

Sending files from Motorola V500 to Familiar Linux iPAQ

-

Introduction

-

-The goal of this page is explaining how one can send files from a Bluetooth-capable phone to an iPAQ running Familiar Linux. Sending files to the phone is done with ussp-push apparently, but I haven't tried that yet. -

-

Hardware

- -

The details

-

-It's rather straightforward really. Only thing to do is: -

- -~ # sdptool add --channel=10 OPUSH
-~ # obexserver -
-

-Once that's running (you'll need to install openobex and libopenobex from the feed probably), you can simply send a file from your phone and it will end up in /tmp/. -

-

-The hard part is finding obexserver, as there doesn't appear to be an .ipk available anywhere. I found a pre-compiled version in an old chat-log. It works for me, but it might be filled with malware for all I know, so I'll try to build it from source sometime. -

- - - - - diff --git a/Linux/imode_on_iPAQ_running_Familiar.shtml b/Linux/imode_on_iPAQ_running_Familiar.shtml deleted file mode 100644 index 6294ec3..0000000 --- a/Linux/imode_on_iPAQ_running_Familiar.shtml +++ /dev/null @@ -1,183 +0,0 @@ - - - - - - - vanrenterghem.biz - GNU/Linux - Connecting to i-Mode with iPAQ - - - - - - -

i-Mode connection for the iPAQ

-

Introduction

-

-A while back, my father donated his old iPAQ to me. Being a fan of free software, I immediately decided to put an alternative operating system on the unit. With Familiar, a free alternative was available, and it even provided me with a dpkg lookalike ipkg! -With this system set up, I could do most things one can do with a PDA - maintain a calendar, take notes, play music, ... When cradled, I could connect it to the Internet via my desktop PC. -Obviously a PDA isn't meant to be cradled all the time, so I had to find a way to connect it to the net while on the road as well. -The hard part turned out to be finding a bluetooth card I could use with this OS, as at the time of writing this document, not a whole lot of Compact Flash cards are supported yet - partly because some manufacturers don't provide specifications required to write the drivers, partly because the ARM kernel used in Familiar isn't fully at par with the one used on i386 systems yet. -In this document, I outline the steps necessary to get on the net via i-Mode (~GPRS) using a Bluetooth-capable phone. -

- -

Hard- and software

- -

Provider

-

-Belgian wireless carrier Base with I-mode -

-

Steps

-

Get Bluetooth working

-

-There's various HOWTO's available on getting Bluetooth functioning on (Familiar) Linux. Tip: use Bluez. If you are using the Opie image of Familiar 0.8.2, -you will have to replace /bin/bluepin with a shell script like this one: -

- -#!/bin/sh
-echo -n PIN:
-cat /etc/bluetooth/pin
-exit 0
-
-

Find the hardware address of the phone

-

-Use hcitool to find the various bluetooth devices in your neighbourhood. Provided you've made the phone broadcast its presence, it should show up in the scan. -

- -~ # hcitool scan
-Scanning ...
-   <address> <friendly name> -
-

Find the channel for dial-up networking

-

-Check on what channel the phone provides dial-up networking (DUN): -

- -sdptool search --bdaddr <bd> DUN - -

-where <bd> is the hardware address of your mobile phone as detected by hcitool scan. -

-

Bind rfcomm

-

-I decided to bind /dev/rfcomm0 to the DUN channel of my phone. -

- -/etc/init.d # cat bind_dun
-rfcomm bind 0 <bdaddr> <channel>
-mknod -m 666 /dev/rfcomm0 c 216 0
-
-

Configure PPP

-

-I assume you have the point-to-point protocol set up on your device already. If not, ipkg search *ppp* is your friend. -

-

-On Familiar 0.8.x, the pppd options were changed versus 0.7.x. The file now only contains a minimal lock as option. I -prefer the following: -

- ----------------- cut and paste from here ----------------
-cat > /etc/ppp/options << EOF
--detach
-defaultroute
-nocrtscts
-lock
-noauth
-lcp-echo-interval 5
-lcp-echo-failure 3
-usepeerdns
-115200
-local
-asyncmap 0
-EOF
------------------------- end cut ------------------------
-
-

-Now you'll need a chat script to tell the phone what to do. -

- ----------------- cut and paste from here ----------------
-cat > /etc/ppp/chat.imode << EOF
-ABORT "BUSY"
-"" "\d"
-SAY "reseting modem\n"
-"" "atz"
-SAY "dialing\n"
-OK 'AT+cgdcont=1,"IP","portalmmm.nl"'
-OK "ATD*99#"
-TIMEOUT 60
-CONNECT ''
-SAY "connected\n"
-EOF
------------------------- end cut ------------------------
- -
-

-You'll also need to provide some additional options for pppd: -

- ----------------- cut and paste from here ----------------
-cat > /etc/ppp/peers/imode << EOF
-debug
-noauth
-usepeerdns
-/dev/rfcomm0 115200
-115200
-local
-nocrtscts
-defaultroute
-noipdefault
-connect '/usr/sbin/chat -f /etc/ppp/chat.imode -r /dev/console'
-EOF
------------------------- end cut ------------------------
-
-

Get connected

-

-Start pppd as follows: -

- -~ # pppd call imode - -

-If all goes well (and only if you changed the /etc/ppp/options file), you should see something like this: -

- -reseting modem
-dialing
-connected
-Serial connection established.
-using channel 1
-Using interface ppp0
-Connect: ppp0 <--> /dev/rfcomm0
-
- -

Check routing

-

-As I had a default route already (via the USB connection in the cradle), I had to replace it: -

- -route del default
-route add default ppp0
-
-

Set proxy

-

-In order to browse the net, you'll need to set the proxy still. In casu I use http://10.10.100.10:5080. -

-

Photo

-

-... and obviously no HOWTO document is truly complete without some sort of picture. -

-

-Picture of Compaq iPAQ and Motorola V500 camera phone -

- - - - - diff --git a/Linux/index.shtml b/Linux/index.shtml deleted file mode 100644 index c754f98..0000000 --- a/Linux/index.shtml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - -vanrenterghem.biz - GNU/Linux - - - - - -

GNU/Linux stuff

-

-Here's some random GNU/Linux stuff which may be of use. -

-

March 2015: A tutorial on installing Debian GNU/Linux on the A20-OLinuXino-Lime2 board. -

-

On this page:

- - - -

Miscellaneous information about running Linux on an iPAQ

-

-I'm currently using using Familiar Linux version 0.8.4. -

- - -

Scripts

-

Logitech Cordless Desktop Deluxe

-

I've written a small howto on how to get the extra keys on a Logitech Cordless Desktop Deluxe to work -in the X Window System under Debian.

-

Enlightenment scripting sample

-

This script - e_launchOrMove can be bound to the extra keys on f.i. a -Logitech Cordless Desktop Deluxe wireless keyboard. It launches a program, or moves it to the current Enlightenmentdesktop.

-

The GIMP scripting

-

While creating the site, I wrote a script to generate a quarter circle. Using that script, and 3 others, the corners of the -navigation bar can be generated automatically.

-

Serial console (very) mini-HOWTO

-

Since I read about serial consoles being one of the many advantages of UNIX-like systems, I decided I needed some hands-on -experience with them. While it seemed difficult at first, the hardest part turned out to be finding a power cable to connect the -second box to the power grid.
-Here's the mini-HOWTO on getting a serial console to work

-

Screenshots

-

No amateur geek site is complete without a section dedicated to the beauty of his -desktop. As I am truly commited to geekness, I follow suit.

-

My desktop on January 4th, 2003 Look, I'm putting up the pictures of my Miami -trip.
-My desktop on March 9th, 2003 Incidentally, I was also working on my site that day.

- - - diff --git a/Linux/index.shtml~ b/Linux/index.shtml~ deleted file mode 100644 index b5bccf4..0000000 --- a/Linux/index.shtml~ +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - -vanrenterghem.biz - GNU/Linux - - - - - -

GNU/Linux stuff

-

Here's some random GNU/Linux stuff -which may be of use.

-

On this page:

- -

Scripts

-

Logitech Cordless Desktop Deluxe

-

I've written a small howto on how -to get the extra keys on a Logitech Cordless Desktop Deluxe to work -in the X Window -System under Debian.

-

Enlightenment scripting sample

-

This script - -e_launchOrMove can be bound to the extra keys on f.i. a -Logitech Cordless Desktop Deluxe wireless keyboard. It launches a -program, or moves it to the current Enlightenment -desktop.

-

The GIMP scripting

-

While creating the site, I wrote a script to generate a quarter -circle. Using that script, and 3 others, the corners of the -navigation bar can be generated automatically.

-

Serial console -(very) mini-HOWTO

-

Since I read about serial consoles being one of the many -advantages of UNIX-like systems, I decided I needed some hands-on -experience with them. While it seemed difficult at first, the -hardest part turned out to be finding a power cable to connect the -second box to the power grid.
-Here's the -mini-HOWTO on getting a serial console to work

-

Screenshots

-

No amateur geek site is complete without a section dedicated to -the beauty of his -desktop. As I am truly commited to geekness, I follow suit.

-

My desktop on -January 4th, 2003 Look, I'm putting up the pictures of my Miami -trip.
-My desktop on March -9th, 2003 Incidentally, I was also working on my site that -day.

- - - diff --git a/Linux/leftnav.shtml b/Linux/leftnav.shtml deleted file mode 100644 index 3a1002e..0000000 --- a/Linux/leftnav.shtml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - -
-Scripts -
-Other stuff -
\ No newline at end of file diff --git a/Linux/leftnav.shtml~ b/Linux/leftnav.shtml~ deleted file mode 100644 index 8e68a53..0000000 --- a/Linux/leftnav.shtml~ +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - -
-Scripts -
-Other stuff -
\ No newline at end of file diff --git a/Linux/logitech.shtml b/Linux/logitech.shtml deleted file mode 100644 index d172007..0000000 --- a/Linux/logitech.shtml +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - vanrenterghem.biz - GNU/Linux - Logitech Cordless Desktop Deluxe Keyboard - - - - - -

Getting the extra keys on a Logitech Cordless Desktop Deluxe to work in Debian's X

-

Last tested May 16, 2004 - on X 4.3.0-dfsg in Debian Sid

-

Step 1

-

-Append the following to the file /usr/X11R6/lib/X11/XKeysymDB:
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - -
logitech_standby:10090000
logitech_mail:10090001
logitech_sms:10090002
logitech_webcam:10090003
logitech_mute:10090004
logitech_up:10090005
logitech_down:10090006
logitech_media:10090007
logitech_home:10090008
logitech_search:10090009
logitech_F1:1009000A
logitech_F2:1009000B
logitech_F3:1009000C
logitech_F4:1009000D
logitech_F5:1009000E
logitech_F6:1009000F
logitech_F7:10090010
logitech_F8:10090011
logitech_F9:10090012
logitech_F10:10090013
logitech_F11:10090014
logitech_F12:10090015
-
-Make sure the values in the second row are unique for this file. -
-

-

Step 2

-

-Next, add this to ~/.xmodmap:
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - -
keycode 187=logitech_F1
keycode 188=logitech_F2
keycode 118=logitech_F3
keycode 119=logitech_F4
keycode 120=logitech_F5
keycode 121=logitech_F6
keycode 122=logitech_F7
keycode 194=logitech_F8
keycode 195=logitech_F9
keycode 196=logitech_F10
keycode 215=logitech_F11
keycode 216=logitech_F12
keycode 236=logitech_mail
keycode 145=logitech_sms
keycode 146=logitech_webcam
keycode 160=logitech_mute
keycode 176=logitech_up
keycode 174=logitech_down
keycode 237=logitech_media
keycode 178=logitech_home
keycode 229=logitech_search
keycode 223=logitech_standby
-
-You'll need to make sure the keycodes are identical on your system. Use -xev to determine the keycodes.
-

-That's it, your extra Logitech Cordless Desktop Deluxe keys are now supported -in the X Window System. In order for them to actually do something, -you'll need to make your window manager aware of their existence. As I'm -using Enlightenment, I'll describe what -to do if you want that window manager to do something meaningful -when you press those extra keys. -

-

Step 3

-

-Modify one of the keybinding sections in ~/.enlightenment/keybindings.cfg as such:

-

-
-
-__NEXT_ACTION
- __KEY logitech_webcam
- __EVENT __KEY_PRESS
- __ACTION __A_EXEC /home/frederik/scripts/e_launchOrMoveApp.sh Gqcam gqcam
-
-
-

-

-Replace the last part with the executable of your choice. As you notice, you're able to pass variables to your command by adding them on the line. -

- - - \ No newline at end of file diff --git a/Linux/logitech.shtml~ b/Linux/logitech.shtml~ deleted file mode 100644 index c40b927..0000000 --- a/Linux/logitech.shtml~ +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - vanrenterghem.biz - GNU/Linux - Logitech Cordless Desktop Deluxe Keyboard - - - - - -

Getting the extra keys on a Logitech Cordless Desktop Deluxe to work in Debian's X

-

Last tested May 16, 2004 - on X 4.3.0-dfsg in Debian Sid

-

Step 1

-

-Append the following to the file /usr/X11R6/lib/X11/XKeysymDB:
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - -
logitech_standby:10090000
logitech_mail:10090001
logitech_sms:10090002
logitech_webcam:10090003
logitech_mute:10090004
logitech_up:10090005
logitech_down:10090006
logitech_media:10090007
logitech_home:10090008
logitech_search:10090009
logitech_F1:1009000A
logitech_F2:1009000B
logitech_F3:1009000C
logitech_F4:1009000D
logitech_F5:1009000E
logitech_F6:1009000F
logitech_F7:10090010
logitech_F8:10090011
logitech_F9:10090012
logitech_F10:10090013
logitech_F11:10090014
logitech_F12:10090015
-
-Make sure the values in the second row are unique for this file. -
-

-

Step 2

-

-Next, add this to ~/.xmodmap:
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - -
keycode 187=logitech_F1
keycode 188=logitech_F2
keycode 118=logitech_F3
keycode 119=logitech_F4
keycode 120=logitech_F5
keycode 121=logitech_F6
keycode 122=logitech_F7
keycode 194=logitech_F8
keycode 195=logitech_F9
keycode 196=logitech_F10
keycode 215=logitech_F11
keycode 216=logitech_F12
keycode 236=logitech_mail
keycode 145=logitech_sms
keycode 146=logitech_webcam
keycode 160=logitech_mute
keycode 176=logitech_up
keycode 174=logitech_down
keycode 237=logitech_media
keycode 178=logitech_home
keycode 229=logitech_search
keycode 223=logitech_standby
-
-You'll need to make sure the keycodes are identical on your system. Use - to determine the keycodes.
-

-That's it, your extra Logitech Cordless Desktop Deluxe keys are now supported -in the X Window System. In order for them to actually do something, -you'll need to make your window manager aware of their existence. As I'm -using Enlightenment, I'll describe what -to do if you want that window manager to do something meaningful -when you press those extra keys. -

-

Step 3

-

-Modify one of the keybinding sections in ~/.enlightenment/keybindings.cfg as such:

-

-
-
-__NEXT_ACTION
- __KEY logitech_webcam
- __EVENT __KEY_PRESS
- __ACTION __A_EXEC /home/frederik/scripts/e_launchOrMoveApp.sh Gqcam gqcam
-
-
-

-

-Replace the last part with the executable of your choice. As you notice, you're able to pass variables to your command by adding them on the line. -

- - - \ No newline at end of file diff --git a/Linux/varia.shtml b/Linux/varia.shtml deleted file mode 100644 index d15dc61..0000000 --- a/Linux/varia.shtml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - frederik.gotdns.org:1976 - GNU/Linux - - - -

GNU/Linux stuff

-

-Here's some random GNU/Linux stuff which may be of use. -

- - - - - - -
- - - - - - - - - - -
- - Serial console -
-
-
- - - - - \ No newline at end of file diff --git a/Linux/varia.shtml~ b/Linux/varia.shtml~ deleted file mode 100644 index ad93563..0000000 --- a/Linux/varia.shtml~ +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - frederik.gotdns.org:1976 - GNU/Linux - - - -

GNU/Linux stuff

-

-Here's some random GNU/Linux stuff which may be of use. -

- - - - - - -
- - - - - - - - - - -
- - Serial console -
-
-
- - - - - \ No newline at end of file diff --git a/Linux/website_quarter_circle_ll.pl.shtml b/Linux/website_quarter_circle_ll.pl.shtml deleted file mode 100644 index 78f4f67..0000000 --- a/Linux/website_quarter_circle_ll.pl.shtml +++ /dev/null @@ -1,84 +0,0 @@ - - -vanrenterghem.biz - website_quarter_circle_ll.pl.html - - - - - - - - -

website_quarter_circle_ll.pl

-

-Purpose: This script was written to create the lowerleft quarter circle of the main navigation bar on the site. It should be no surprise I wrote 3 more scripts generate the 3 other circle parts. I chose scripting these pictures over drawing them manually out of consciousness of my own lack of drawing skills.
-

-

- -Requirements: The GNU Image Manipulation Program, aka the GIMP and Perl -

-

-Output: Sample output image of the script -

-

-
-
-#!/usr/bin/perl -w
-
-use Gimp qw( :auto );
-use Gimp::Fu;
-
-#Gimp::set_trace(TRACE_CALL);
-
-sub website_quarter_circle_ll {
-        my $width=8;
-        my $height=$width;
-        my ($image,$layer);
-        my $circle_color = [187,221,255];
-        my $webpage_color = [255,255,255];
-
-        gimp_palette_set_background($circle_color);
-
-        $image = gimp_image_new($width, $height, RGB);
-        $layer = gimp_layer_new($image, $width, $height, RGBA_IMAGE, "Button", 100, NORMAL_MODE);
-
-        gimp_image_add_layer($image, $layer, 0);
-    gimp_edit_clear($layer);
-
-
-    gimp_ellipse_select($image,-0*$height, -1*$width, $width*2, $height*2, 0, 1, 0, 0.5);
-
-
-    gimp_bucket_fill($layer, BG_BUCKET_FILL, NORMAL_MODE, 100, 0, 0, 5, 5);
-
-        gimp_selection_invert($image);
-        gimp_palette_set_background($webpage_color);
-        gimp_bucket_fill($layer, BG_BUCKET_FILL, NORMAL_MODE, 100, 0, 0, 5, 5);
-        gimp_selection_none($image);
-
-        gimp_convert_indexed($image, 0, 0, 8,0,0, "");
-                return $image;
-    }
-
-register
-      "website_quarter_circle_ll",                 # fill in name 
-      "Create Website Toolbar lowerleft corner button",  # a small description 
-      "A script to create a quarter circle in Gimp",       # a help text 
-      "Frederik Vanrenterghem",            # Your name 
-      "",        # Your copyright 
-      "2002-10-21",              # Date 
-      "<Toolbox>/Xtns/Perl-Fu/Website/CreateQuarterCircleLL",   # menu path 
-      "*",                       # Image types 
-      [
-
-      ],
-      \&website_quarter_circle_ll;
-
-exit main()
-
- -
-

- - - diff --git a/Linux/while_oef.cpp.shtml b/Linux/while_oef.cpp.shtml deleted file mode 100644 index b666319..0000000 --- a/Linux/while_oef.cpp.shtml +++ /dev/null @@ -1,34 +0,0 @@ - - -~/code/while_oef.cpp.html - - - - - - - - -
-#include <iostream>
-using namespace std;
-int main()
-{
-  int x=0,y=1,z,i=1,n;
-  cout << "Geef een natuurlijk getal: ";
-  cin >> n;
-  cout << "De reeks gaat als volgt: ";
-  while (i++<n)
-          {
-                  z=x+y;
-                  y=x;
-                  x=z;
-                  cout << z <<", ";
-          }
-  cout << x+y << "." << endl;
-  return 0;
-}
-
- - - diff --git a/News/email_from_dannyz.shtml b/News/email_from_dannyz.shtml deleted file mode 100644 index 7a2938a..0000000 --- a/News/email_from_dannyz.shtml +++ /dev/null @@ -1,103 +0,0 @@ - - -~/downloads/email_from_dannyz.html - - - - - - - -
-From dannyz@videotron.ca Thu Dec 16 23:58:50 2004
-Return-path: <dannyz@videotron.ca>
-Envelope-to: ***@vanrenterghem.biz
-Delivery-date: Thu, 16 Dec 2004 17:58:54 -0500
-Received: from [24.201.245.36] (helo=relais.videotron.ca)
-        by host.server26.com with esmtp (Exim 4.43)
-        id 1Cf4aE-0004HP-8u
-        for ***@vanrenterghem.biz; Thu, 16 Dec 2004 17:58:54 -0500
-Received: from GENERALPC ([24.202.142.246]) by VL-MO-MR010.ip.videotron.ca
- (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep  8 2003))
- with SMTP id <0I8U0090X7U6JU@VL-MO-MR010.ip.videotron.ca> for
- ***@vanrenterghem.biz; Thu, 16 Dec 2004 17:58:55 -0500 (EST)
-Date: Thu, 16 Dec 2004 17:58:50 -0500 (Eastern Standard Time)
-From: Danny Zawahery <dannyz@videotron.ca>
-Subject: Re: Congratulations! You are the buyer for
- "Socket Bluetooth CF Card for Pocket PC, PDA and Mobile!"
-To: ***@vanrenterghem.biz
-Message-id: <41C2132A.000004.02828@GENERALPC>
-MIME-version: 1.0
-X-Mailer: IncrediMail (2501361)
-Content-type: multipart/related;
- boundary="Boundary_(ID_uEMxxxM88BOSkIcTlUDDKg)"; type="multipart/alternative"
-X-Priority: 3
-X-FID: BA285063-5BCE-11D4-AF8D-0050DAC67E11
-References: <20041216193153.GA16000@vanrenterghem.biz>
-X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on maui
-X-Spam-Level: 
-X-Spam-Status: No, score=0.9 required=5.0 tests=AWL,BAYES_20,BIZ_TLD,
-        CONGRATULATIONS,HTML_MESSAGE,HTML_TAG_EXIST_TBODY,MANY_EXCLAMATIONS,
-        MILLION_USD,YOU_WON autolearn=no version=3.0.1
-
-
-
-Hi,
-
-
-
-What we meant by socket, is not the brand,  but the fact that this unit fits
-into a CF socket. A socket is basically where you fit the card into. The
-item description clearly indicates that this is infact a third party
-manufacturer which produced the item. If you're not pleased with the card or
-that it doesn't meet your requirements, please feel free to ship it back to
-us. I'll gladly refund your item price.
-
-
-
-Thanks. And sorry for the misunderstanding.
-
-
-
-Best Regards,
-
-D. Z
-
-
-
--------Original Message-------
-
-
-
-From: Frederik Vanrenterghem
-
-Date: 12/16/04 14:33:19
-
-To: dannyz@videotron.ca
-
-Subject: Re: Congratulations! You are the buyer for "Socket Bluetooth CF
-Card for Pocket PC, PDA and Mobile!"
-
-
-
-Danny,
-
-
-
-I received the card, but noticed it doesn't seem to be a Socket
-
-bluetooth card, contrary to what was mentioned in your offer. Can you
-
-confirm you sent the correct card?
-
-
-
-Thx,
-
-Frederik
-
-
-
- - - diff --git a/News/index.php b/News/index.php deleted file mode 100644 index 3e7814b..0000000 --- a/News/index.php +++ /dev/null @@ -1,106 +0,0 @@ -\n"); -printf("\n"); -printf("\n"); -printf("\n"); -printf("\n"); -printf("\n"); -printf("http://frederik.gotdns.org:1976 - News\n"); -printf("\n"); -printf("\n"); -printf("\n"); -printf("\n"); -printf("\n"); - -printf("
\n"); -// Print the header -printf("\n"); -include("../header.shtml"); - -// Print the page title -printf("

Blog

\n\n"); - -// Define the variables - -$dbserver="localhost"; -$usernaam="webnews"; -$paswoord="BlaBla123"; -$database="website"; -$tabel="newsContent"; -$maxShown=5; - -if(isset($_GET['begin'])&&is_numeric($_GET['begin'])){ -$begin=$_GET['begin']; -} -else { -$begin=0; -} - -// -- Table structure for table 'newsContent' -// -- -// -// CREATE TABLE newsContent ( -// title varchar(40) default NULL, -// date date default NULL, -// body text -// ) - -// Connect to database - -$db=mysql_connect($dbserver,$usernaam,$paswoord) or die ("Geen connectie met server"); -mysql_select_db($database,$db) or die ("Database bestaat niet"); - -// Count the number of news items in the table - -$aantalNewsItems=mysql_query("SELECT COUNT(*) from $tabel") or die ('An error occured while retrieving data from the database. Please contact the webmaster if this problem persists.'); -$aantalNewsItemsNo=mysql_fetch_row($aantalNewsItems); - - -// LIMIT x, y will limit the results to y rows, starting from x - -$resultatenreeks=mysql_query("SELECT * FROM $tabel ORDER BY DATE DESC LIMIT $begin, $maxShown") or die ('An error occured while retrieving data from the database. Please contact the webmaster if this problem persists.'); - -while ($resultatenrij = mysql_fetch_row($resultatenreeks)) { - -// Put the results in a table, one table per result - printf("\n"); - printf("
\n"); - printf("

%s

%s

%s

\n", - $resultatenrij[0], $resultatenrij[1], $resultatenrij[1], $resultatenrij[2]); - printf("
\n"); - -} - -// Add some navigation - still to add option to modify maxShown -if($aantalNewsItemsNo[0]>$maxShown) -{ - printf("\n"); - printf("
\n"); - // Only show the option for the previous items on post-first-page - if($begin>0 AND $aantalNewsItemsNo[0]>($maxShown*2)) - {printf("

Show items ".($begin-$maxShown+1) . " to " . ($begin) . "

\n");} - // Show the next items, make sure not to mention a non-existing number of items with the min function - if($aantalNewsItemsNo[0]>($maxShown+$begin)) - {printf("

Show items ".($begin+$maxShown+1) . " to " . min(($maxShown*2+$begin),$aantalNewsItemsNo[0]) . "

\n");} - // Once we have shown all items, show the option to return to the first items - else - {printf("

Show items ".(1) . " to " . ($maxShown) . "

\n");} - printf("\n"); - printf("
\n"); -} - -printf("
\n"); -printf("

XML RSS icon

\n"); -printf("
\n"); - -// Print the footer -printf("\n"); -printf("
\n"); -printf("\n"); -printf("\n"); -printf("\n"); -?> - - diff --git a/News/index.php~ b/News/index.php~ deleted file mode 100644 index acd1294..0000000 --- a/News/index.php~ +++ /dev/null @@ -1,101 +0,0 @@ -\n"); -printf("\n"); -printf("\n"); -printf("\n"); -printf("\n"); -printf("\n"); -printf("http://frederik.gotdns.org:1976 - News\n"); -printf("\n"); -printf("\n"); -printf("\n"); -printf("\n"); -printf("\n"); - -printf("
\n"); -// Print the header -printf("\n"); -include("../header.shtml"); - -// Print the page title -printf("

News Page

\n\n"); - -// Define the variables - -$dbserver="localhost"; -$usernaam="frederik"; -$paswoord="Fred1210"; -$database="website"; -$tabel="newsContent"; -$maxShown=5; - -if(!isset($begin)){$begin=0;} - -// -- Table structure for table 'newsContent' -// -- -// -// CREATE TABLE newsContent ( -// title varchar(40) default NULL, -// date date default NULL, -// body text -// ) - -// Connect to database - -$db=mysql_connect($dbserver,$usernaam,$paswoord) or die ("Geen connectie met server"); -mysql_select_db($database,$db) or die ("Database bestaat niet"); - -// Count the number of news items in the table - -$aantalNewsItems=mysql_query("SELECT COUNT(*) from $tabel") or die ('An error occured while retrieving data from the database. Please contact the webmaster if this problem persists.'); -$aantalNewsItemsNo=mysql_fetch_row($aantalNewsItems); - - -// LIMIT x, y will limit the results to y rows, starting from x - -$resultatenreeks=mysql_query("SELECT * FROM $tabel ORDER BY DATE DESC LIMIT $begin, $maxShown") or die ('An error occured while retrieving data from the database. Please contact the webmaster if this problem persists.'); - -while ($resultatenrij = mysql_fetch_row($resultatenreeks)) { - -// Put the results in a table, one table per result - printf("\n"); - printf("
\n"); - printf("

%s

%s

%s

\n", - $resultatenrij[0], $resultatenrij[1], $resultatenrij[1], $resultatenrij[2]); - printf("
\n"); - -} - -// Add some navigation - still to add option to modify maxShown -if($aantalNewsItemsNo[0]>$maxShown) -{ - printf("\n"); - printf("
\n"); - // Only show the option for the previous items on post-first-page - if($begin>0 AND $aantalNewsItemsNo[0]>($maxShown*2)) - {printf("

Show items ".($begin-$maxShown+1) . " to " . ($begin) . "

\n");} - // Show the next items, make sure not to mention a non-existing number of items with the min function - if($aantalNewsItemsNo[0]>($maxShown+$begin)) - {printf("

Show items ".($begin+$maxShown+1) . " to " . min(($maxShown*2+$begin),$aantalNewsItemsNo[0]) . "

\n");} - // Once we have shown all items, show the option to return to the first items - else - {printf("

Show items ".(1) . " to " . ($maxShown) . "

\n");} - printf("\n"); - printf("
\n"); -} - -printf("
\n"); -printf("

XML RSS icon

\n"); -printf("
\n"); - -// Print the footer -printf("\n"); -printf("
\n"); -printf("\n"); -printf("\n"); -printf("\n"); -?> - - diff --git a/News/index_table.php b/News/index_table.php deleted file mode 100644 index ba2a4d5..0000000 --- a/News/index_table.php +++ /dev/null @@ -1,103 +0,0 @@ - - - - - - http://frederik.gotdns.org:1976 - News - - - -\n"); -include("../header.shtml"); - -// Print the page title -printf("

News Page

\n\n"); - -// Define the variables - -$dbserver="localhost"; -$usernaam="frederik"; -$paswoord="Fred1210"; -$database="website"; -$tabel="newsContent"; -$maxShown=5; - -if(!isset($begin)){$begin=0;} - -if(ereg('[^0-9]', $begin)) { - die ('Invalid input format in URL. Please contact the webmaster if this problem persists.'); -} - -// -- Table structure for table 'newsContent' -// -- -// -// CREATE TABLE newsContent ( -// title varchar(40) default NULL, -// date date default NULL, -// body text -// ) - -// Connect to database - -$db=mysql_connect($dbserver,$usernaam,$paswoord) or die ("Geen connectie met server"); -mysql_select_db($database,$db) or die ("Database bestaat niet"); - -// Count the number of news items in the table - -$aantalNewsItems=mysql_query("SELECT COUNT(*) from $tabel"); -$aantalNewsItemsNo=mysql_fetch_row($aantalNewsItems); - - -// LIMIT x, y will limit the results to y rows, starting from x - -$resultatenreeks=mysql_query("SELECT * FROM $tabel ORDER BY date DESC LIMIT $begin, $maxShown") or die ('An error occured while retrieving data from the database. Please contact the webmaster if this problem persists.'); - - -while ($resultatenrij = mysql_fetch_row($resultatenreeks)) { - -// Put the results in a table, one table per result - printf("\n"); - printf("
-
cornerul -%s -cornerur -%s
-%s

\n\n", - $resultatenrij[0], $resultatenrij[1], $resultatenrij[1], $resultatenrij[2]); - -} - -// Add some navigation - still to add option to modify maxShown -if($aantalNewsItemsNo[0]>$maxShown) -{ - printf("\n"); - printf("
\n"); - // Only show the option for the previous items on post-first-page - if($begin>0 AND $aantalNewsItemsNo[0]>($maxShown*2)) - {printf("Show items ".($begin-$maxShown+1) . " to " . ($begin) . "
\n");} - // Show the next items, make sure not to mention a non-existing number of items with the min function - if($aantalNewsItemsNo[0]>($maxShown+$begin)) - {printf("
Show items ".($begin+$maxShown+1) . " to " . min(($maxShown*2+$begin),$aantalNewsItemsNo[0]) . "
\n");} - // Once we have shown all items, show the option to return to the first items - else - {printf("Show items ".(1) . " to " . ($maxShown) . "\n");} - printf("\n"); -} - -// Include a link to an XML RSS feed -printf("

XML RSS icon

\n"); -// Print the footer -printf("\n"); -include("../footer.php"); -?> - - - - diff --git a/News/permalink.php b/News/permalink.php deleted file mode 100644 index e8a8ae3..0000000 --- a/News/permalink.php +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - Frederik Vanrenterghem's Blog - - - - - -\n"); -include("../header.shtml"); - -// Check the input -// We expect a $berichtID=YYYY-MM-DD as parameters - -if(!isset($_GET['berichtID'])){ -die ('
Please specify a date when invoking this script.'); -} -else { -$berichtID=$_GET['berichtID']; -} - -if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $berichtID, $regs)) { - $datum="$regs[1]$regs[2]$regs[3]"; -} else { - die ('
Invalid date format. Check the URL or contact the webmaster if this problem persists.'); -} - - -// Print the page title -printf("

News from $berichtID

\n\n"); - -// Define the variables -// frederik.gotdns.org:1976 db - -$dbserver="localhost"; -$usernaam="webnews"; -$paswoord="BlaBla123"; -$database="website"; -$tabel="newsContent"; - -// vanrenterghem.biz db -//$dbserver="localhost"; -//$usernaam="frederik_fred"; -//$paswoord="fred"; -//$database="frederik_News"; -//$tabel="newsContent"; - - -// -- Table structure for table 'newsContent' -// -- -// -// CREATE TABLE newsContent ( -// title varchar(40) default NULL, -// date date default NULL, -// body text -// ) - -// Connect to database - -$db=mysql_connect($dbserver,$usernaam,$paswoord) or die ("Geen connectie met server"); -mysql_select_db($database,$db) or die ("Database bestaat niet"); - - -$resultatenreeks=mysql_query("SELECT * FROM $tabel WHERE date=$datum") or die ('An error occured while retrieving data from the database. Please contact the webmaster if this problem persists.'); - - -while ($resultatenrij = mysql_fetch_row($resultatenreeks)) { - -// Put the results in a table, one table per result - printf("\n"); - printf("
-
cornerul -%s -cornerur -%s
-%s

\n\n", - $resultatenrij[0], $resultatenrij[1], $resultatenrij[2]); - -} - -// Print the footer -printf("\n"); -include("../footer.php"); -?> - - - - diff --git a/News/permalink.php~ b/News/permalink.php~ deleted file mode 100644 index 6c9e7c5..0000000 --- a/News/permalink.php~ +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - http://frederik.gotdns.org:1976 - News - - -\n"); -include("../header.shtml"); - -// Check the input -// We expect a $berichtID=YYYY-MM-DD as parameters - -if(!isset($berichtID)){die ('
Please specify a date when invoking this script.');} - -if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $berichtID, $regs)) { - $datum="$regs[1]$regs[2]$regs[3]"; -} else { - die ('
Invalid date format. Check the URL or contact the webmaster if this problem persists.'); -} - - -// Print the page title -printf("

News from $berichtID

\n\n"); - -// Define the variables - -$dbserver="localhost"; -$usernaam="frederik"; -$paswoord="Fred1210"; -$database="website"; -$tabel="newsContent"; -$maxShown=5; - - - -// -- Table structure for table 'newsContent' -// -- -// -// CREATE TABLE newsContent ( -// title varchar(40) default NULL, -// date date default NULL, -// body text -// ) - -// Connect to database - -$db=mysql_connect($dbserver,$usernaam,$paswoord) or die ("Geen connectie met server"); -mysql_select_db($database,$db) or die ("Database bestaat niet"); - - -$resultatenreeks=mysql_query("SELECT * FROM $tabel WHERE date=$datum") or die ('An error occured while retrieving data from the database. Please contact the webmaster if this problem persists.'); - - -while ($resultatenrij = mysql_fetch_row($resultatenreeks)) { - -// Put the results in a table, one table per result - printf("\n"); - printf("
-
cornerul -%s -cornerur -%s
-%s

\n\n", - $resultatenrij[0], $resultatenrij[1], $resultatenrij[2]); - -} - -// Print the footer -printf("\n"); -include("../footer.php"); -?> - - - - diff --git a/Pictures/index.shtml b/Pictures/index.shtml deleted file mode 100755 index 5eed041..0000000 --- a/Pictures/index.shtml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - Vacation pictures a.o. - vanrenterghem.biz - - - - - -

-This section has been password-protected to satisfy privacy concerns that emerged after reading up on online identity thefts. If you're -interested in viewing the content, sign up on the Forum and check the Administration board for -instructions. -

-
-

-Link to index page - password required
-Proceed to the password-protected section. -

-
- - - diff --git a/Pictures/index.shtml~ b/Pictures/index.shtml~ deleted file mode 100755 index eae8962..0000000 --- a/Pictures/index.shtml~ +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - Frederik Vanrenterghem's Pictures - http://frederik.gotdns.org:1976/Pictures/ - - - -

-Site moved to www.vanrenterghem.biz. -

- - - diff --git a/Pictures/index_beforemove.shtml b/Pictures/index_beforemove.shtml deleted file mode 100755 index d62d027..0000000 --- a/Pictures/index_beforemove.shtml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - Frederik Vanrenterghem's Pictures - http://frederik.gotdns.org:1976/Pictures/ - - - -

-Vacation in Miami, August 2002
-Karting with FedEx, September 02
-Knokke trip, October 02
-Pumpkin carving
-All Saints
-Memphis trip
-Christmas Eve 2002
-Christmas 2002
-New Year's Eve 2002
-New Year's party with family, January 2003
-Chopping wood at Filip & Katrien's place, January 11, 2003
-Snowy day, February 1, 2003
-Ski vacation, Tignes, February 1-9, 2003
-Cross-state trip (TN, MS, AL), February 23, 2003
-Vacation in Marbella, Spain, April 2003.
-Paintball, Merchtem, April 22, 2003.
-Confirmation Felix, May 11, 2003.
-Biking, May 29, 2003.
-Opio, France, June 8-12, 2003.
-Vacation in Barcelona, Spain, June 28 - July 10, 2003.
-

- - - - diff --git a/Pictures/old_index.shtml b/Pictures/old_index.shtml deleted file mode 100755 index 28df20f..0000000 --- a/Pictures/old_index.shtml +++ /dev/null @@ -1,70 +0,0 @@ - -pictures - - - - - -
dsc00376 -
Click on one of the size names below to enlarge this image
  - Sm  - Med  - Lg   -
dsc00378 -
Click on one of the size names below to enlarge this image
  - Sm  - Med  - Lg   -
dsc00384 -
Click on one of the size names below to enlarge this image
  - Sm  - Med  - Lg   -
1 -

Album generated by - BINS 1.1.16 - on Sun Oct 27 22:35:44 2002. -        -

diff --git a/Surfing/index.shtml b/Surfing/index.shtml deleted file mode 100644 index ff5d0dc..0000000 --- a/Surfing/index.shtml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - -http://vanrenterghem.biz/ - Surf's up dudes! - - - - - -

Surfing

-

-I'll need to put some thought in organising this section... Right now, it's just a bunch of links to sites useful for the wave surfing amateur in Belgium. -

-

Wave height

-

-Knokke -Oostende -

-

What's MagicSeaweed telling us?

-

-Thanks to the folks at MagicSeaweed, there's even charts of the surf conditions in Ostend and Knokke! -

-

- - - -

- - -
- -

- - - diff --git a/awstat.html b/awstat.html deleted file mode 100644 index 8511a7b..0000000 --- a/awstat.html +++ /dev/null @@ -1,599 +0,0 @@ - - - - - - - - -Statistics for edward.vanrenterghem.biz (2013-02) - main - - - - - - - - -  -
- -
- - - - -
Statistics for: edward.vanrenterghem.bizAwstats Web Site
Last Update: 04 Feb 2013 - 04:26
Reported period: - - - -
-
-
- - - - - - - - - - - - -
When:Monthly history   Days of month   Days of week   Hours  
Who:Countries   Full list -   Hosts   Full list -   Last visit -   Unresolved IP Address -   Robots/Spiders visitors   Full list -   Last visit -  
Navigation:Visits duration   File type   Downloads   Full list -   Viewed -   Full list -   Entry -   Exit -   Operating Systems   Versions -   Unknown -   Browsers   Versions -   Unknown -  
Referrers:Origin   Referring search engines -   Referring sites -   Search   Search Keyphrases -   Search Keywords -  
Others:Miscellaneous   HTTP Status codes   Pages not found -  
-
- - -
Summary  
- - - - - - - - - - - -
Reported period -Month Feb 2013
First visitNA
Last visitNA
 Unique visitorsNumber of visitsPagesHitsBandwidth
Viewed traffic *0
 
0
(0 visits/visitor)
0
(0 Pages/Visit)
0
(0 Hits/Visit)
0
(0 KB/Visit)
Not viewed traffic * 
 
000
* Not viewed traffic includes traffic generated by robots, worms, or replies with special HTTP status codes.
-
- - 
- - -
Monthly history  
- - -
-
- - - - - - - - - - - - - - - - -
 Unique visitors: 3Number of visits: 402Pages: 7268Hits: 19546Bandwidth: 718.90 MBUnique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Unique visitors: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0 
 Jan
2013
Feb
2013
Mar
2013
Apr
2013
May
2013
Jun
2013
Jul
2013
Aug
2013
Sep
2013
Oct
2013
Nov
2013
Dec
2013
 
-
- - - - - - - - - - - - - - - -
MonthUnique visitorsNumber of visitsPagesHitsBandwidth
Jan 201334027,26819,546718.90 MB
Feb 201300000
Mar 201300000
Apr 201300000
May 201300000
Jun 201300000
Jul 201300000
Aug 201300000
Sep 201300000
Oct 201300000
Nov 201300000
Dec 201300000
Total34027,26819,546718.90 MB
-
-
-

- - -  - - 
- - -
Days of month  
- - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0Number of visits: 0Pages: 0Hits: 0Bandwidth: 0 Number of visits: 0.00Pages: 0.00Hits: 0.00Bandwidth: 0.00
01
Feb
02
Feb
03
Feb
04
Feb
05
Feb
06
Feb
07
Feb
08
Feb
09
Feb
10
Feb
11
Feb
12
Feb
13
Feb
14
Feb
15
Feb
16
Feb
17
Feb
18
Feb
19
Feb
20
Feb
21
Feb
22
Feb
23
Feb
24
Feb
25
Feb
26
Feb
27
Feb
28
Feb
 Average
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DayNumber of visitsPagesHitsBandwidth
01 Feb 20130000
02 Feb 20130000
03 Feb 20130000
04 Feb 20130000
05 Feb 20130000
06 Feb 20130000
07 Feb 20130000
08 Feb 20130000
09 Feb 20130000
10 Feb 20130000
11 Feb 20130000
12 Feb 20130000
13 Feb 20130000
14 Feb 20130000
15 Feb 20130000
16 Feb 20130000
17 Feb 20130000
18 Feb 20130000
19 Feb 20130000
20 Feb 20130000
21 Feb 20130000
22 Feb 20130000
23 Feb 20130000
24 Feb 20130000
25 Feb 20130000
26 Feb 20130000
27 Feb 20130000
28 Feb 20130000
Average0000
Total0000
-
-

- - 
- - -
Days of week  
- - -
- - - - - - - - - - - - -
Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0
MonTueWedThuFriSatSun
-
- - - - - - - - -
DayPagesHitsBandwidth
Mon000
Tue000
Wed000
Thu000
Fri000
Sat000
Sun000
-
-

- - 
- - -
Hours  
- - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0Pages: 0Hits: 0Bandwidth: 0
01234567891011121314151617181920212223
0:00 - 1:00 am1:00 - 2:00 am2:00 - 3:00 am3:00 - 4:00 am4:00 - 5:00 am5:00 - 6:00 am6:00 - 7:00 am7:00 - 8:00 am8:00 - 9:00 am9:00 - 10:00 am10:00 - 11:00 am11:00 - 12:00 am0:00 - 1:00 pm1:00 - 2:00 pm2:00 - 3:00 pm3:00 - 4:00 pm4:00 - 5:00 pm5:00 - 6:00 pm6:00 - 7:00 pm7:00 - 8:00 pm8:00 - 9:00 pm9:00 - 10:00 pm10:00 - 11:00 pm11:00 - 12:00 pm
-
- -
- - - - - - - - - - - - - -
HoursPagesHitsBandwidth
00000
01000
02000
03000
04000
05000
06000
07000
08000
09000
10000
11000
-
 
- - - - - - - - - - - - - - -
HoursPagesHitsBandwidth
12000
13000
14000
15000
16000
17000
18000
19000
20000
21000
22000
23000
-
-
-

- - -  - - 
- - -
Visitors domains/countries (Top 10)   -   Full list  
- - -
 Domains/CountriesPagesHitsBandwidth 

- - 
- - -
Hosts (Top 10)   -   Full list   -   Last visit   -   Unresolved IP Address  
- - -
Hosts : 0 Known, 0 Unknown (unresolved ip)
0 Unique visitors
PagesHitsBandwidthLast visit

- - 
- - -
Robots/Spiders visitors (Top 10)   -   Full list   -   Last visit  
- - -
0 different robots*HitsBandwidthLast visit
* Robots shown here gave hits or traffic "not viewed" by visitors, so they are not included in other charts.
-
- - -  - - 
- - -
Visits duration  
- - - - - - - - - -
Number of visits: 0 - Average: ? sNumber of visitsPercent
0s-30s  
30s-2mn  
2mn-5mn  
5mn-15mn  
15mn-30mn  
30mn-1h  
1h+  

- - 
- - -
File type  
- - -
File typeHitsPercentBandwidthPercent

- - 
- - -
Downloads (Top 10)   -   Full list  
- - -
Downloads: 0Hits206 HitsBandwidthAverage size

- -   
- - -
Pages-URL (Top 10)   -   Full list   -   Entry   -   Exit  
- - -
0 different pages-urlViewedAverage sizeEntryExit 

- - 
- - -
Operating Systems (Top 10)   -   Full list/Versions   -   Unknown  
- - -
 Operating SystemsHitsPercent

- - 
- - -
Browsers (Top 10)   -   Full list/Versions   -   Unknown  
- - -
 BrowsersGrabberHitsPercent

- - -  - - 
- - -
Connect to site from  
- - - - - - - - -
OriginPagesPercentHitsPercent
Direct address / Bookmark / Link in email...    
Links from an Internet Search Engine - Full list
-
    
Links from an external page (other web sites except search engines) - Full list
-
    
Unknown Origin    

- - -  - -  
- - -
- - -
Search Keyphrases (Top 10)
Full list
 
- - -
0 different keyphrasesSearchPercent

- -
  - - -
Search Keywords (Top 10)
Full list
 
- - -
0 different keywordsSearchPercent

- -
- -  - - 
- - -
Miscellaneous  
- - - -
Miscellaneous  
Successful hits on favicon.ico0 / 0 Visitors 

- - 
- - -
HTTP Status codes  
- - -
HTTP Status codes*HitsPercentBandwidth
* Codes shown here gave hits or traffic "not viewed" by visitors, so they are not included in other charts.
-
- -

-Advanced Web Statistics 7.0 (build 1.971) - Created by awstats (plugins: hashfiles)
- - - diff --git a/cgi-bin/foto.php~ b/cgi-bin/foto.php~ deleted file mode 100755 index 2008a5b..0000000 --- a/cgi-bin/foto.php~ +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - http://frederik.gotdns.org:1976 - Picture - - -\n"); -include $ROOT."/header.shtml"; - -// Print the page title -printf("


\n"); -printf("\n\n"); -printf("

Back to index page."); - -// Print the footer -printf("\n"); -include $ROOT."/footer.php"; -?> - - - \ No newline at end of file diff --git a/disclaimer.shtml b/disclaimer.shtml deleted file mode 100644 index 044e311..0000000 --- a/disclaimer.shtml +++ /dev/null @@ -1,9 +0,0 @@ -


-
- - - -If you are illegally in the country, were caught by surprise in a place you -weren't supposed to be, are extremely sensitive towards personal privacy or -simply want your picture to be removed from the site, contact the webmaster. \ No newline at end of file diff --git a/gmailsmtp.pl b/gmailsmtp.pl deleted file mode 100644 index 7d3c2e3..0000000 --- a/gmailsmtp.pl +++ /dev/null @@ -1,462 +0,0 @@ -#!/usr/bin/perl -#--------------------------------------------------------------------------------# -# PROGRAM: gmailsmtp.pl # -# This program was designed to act as a proxy SMTP server on a # -# linux system that relays its outbound mail through a gmail # -# account via HTTPS. # -# # -# Copyright (C) 2005 Frederik Vanrenterghem # -# # -# 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 2 # -# of the License, 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.# -# # -# CREATED: 2005/05/21 by Frederik Vanrenterghem # -# # -# VERSION: 0.1.0 # -# # -# CREDITS: James C. Specht, Jr. # -# For his gsr.pl v.0.8.0, which supplied the majority # -# of the code for v.0.1.0 # -# # -#--------------------------------------------------------------------------------# - -use Mail::Webmail::Gmail; -use Net::SMTP::Server; -use Net::SMTP::Server::Client; -use IO::Socket::INET; -use IO::Socket::SSL; -use Net::SSLeay; -use Digest::HMAC_MD5 qw(hmac_md5_hex); -use MIME::Base64 qw(encode_base64 decode_base64); -use Getopt::Long; -use Term::ReadKey; -use Proc::Daemon; -use Sys::Syslog; - -$SIG{CHLD} = 'IGNORE'; - -my ($configfile,$ehlo_ok,$from,@to,$msgsrc,$dohelp,$sock,$code,$text,$more, - %features,$server,$conn,$verbose,$version,$daemon,$relayfile,@relayIP, - $pidfile,$client); - -$configfile="/usr/local/etc/gmailsmtp.conf"; -$relayfile="/usr/local/etc/gmailsmtp.relay"; -$pidfile="/usr/local/var/run/gmailsmtp.pid"; -$verbose=0; -$daemon=0; -$version="0.1.0"; - -# Get command line options. -GetOptions ('config-file=s' => \$configfile, - 'relay-file=s' => \$relayfile, - 'verbose:1' => \$verbose, - 'daemon:1' => \$daemon, - 'help:1' => \$dohelp ); - -require "$configfile"; - -if ($dohelp == 1 ) {&usage();} - -# Force this process out as a daemon. -if ($daemon >= 1) { - Proc::Daemon::Init; - # Since we are a daemon process log to syslog facility. - openlog('gmailsmtp','pid','mail'); - syslog('info','gmailsmtp.pl daemon process loading'); - $verbose=0; - # Write our pid out. - open(FPID, ">$pidfile"); - print FPID "$$"; - close(FPID); -} - -$ehlo_ok = 1; - -if ($gmailserver =~ /^(.*):(.*)$/) { - $gmailserver = $1; - $gmailport = $2; -} - -if ($daemon >= 1) - { syslog('info',"Gmail relay set to $gmailserver:$gmailport"); } - -if (!defined ($gmailusername)) { - dienice ("Missing \$gmailusername in $configfile!"); -} - -syslog('info',"Gmail user account is $gmailusername") if ($daemon >= 1); - -if ($gmailpassword eq "") { - # We are a daemon so we can't asked for the gmail account password! - if ($daemon >= 1) { - syslog('info',"Missing \$gmailpassword in $configile!"); - syslog('info','Aborting startup!'); - exit; - } - printf ("Enter password for %s : ", $gmailusername); - # Set echo off. - ReadMode (2); - $gmailpassword = <>; - # Restore echo. - ReadMode (0); - printf ("\n"); - - exit if (! defined ($gmailpassword)); - chop ($gmailpassword); -} - -# Build the relayIP table -BuildRelayIPTable(); - -&StartSMTPServer(); -closelog(); -exit(); - -sub StartSMTPServer -{ - my $i, $IPaddr, $size, $nrcpt; - - $server = new Net::SMTP::Server($localserver,$localport) || - dienice ("Unable to start SMTP Server on $localserver:$localport!"); - - while($conn = $server->accept()) { - printf("\nNew connection!\n\n") if ($verbose >= 1); - - my $pid = fork(); - - if ($pid) {undef($conn);} # this is the parent process - dienice ("Can't create child process!") unless defined $pid; - unless($pid) { # $pid == 0 means we're the child - - $client = new Net::SMTP::Server::Client($conn) || - dienice ("Unable to start SMTP client connection!"); - - # Capture the IP address of our client. - $IPaddr = $client->{SOCK}->peerhost(); - - syslog('info',"Incoming connection from [$IPaddr]") if ($daemon >= 1); - printf("\nConnection from [$IPaddr]\n") if ($verbose >= 1); - - # Do we allow this IP to relay through us? - if (AllowRelay($IPaddr) == 0) { - warnnice("Connection refused to [$IPaddr]"); - } - - if ($client->process) { - if ($verbose >= 1 ) { - printf("MAIL FROM: $client->{FROM}\n"); - for ($i=0; $i <= $#client->{TO}; $i++) { - printf("RCPT TO: $client->{TO}[i]\n"); - } - printf("DATA:\n\n$client->{MSG}\n"); - } - # Now relay the msg on. - $from = $client->{FROM}; - for ($i=0; $i <= $#client->{TO}; $i++) - { $to[$i] = $client->{TO}[$i];} - $msgsrc = $client->{MSG}; - - if ($daemon >= 1) { - $size = length($msgsrc); - $nrcpt = $#to + 1; - syslog('info',"from=$from, size=$size, nrcpt=$nrcpt"); - for ($i=0; $i <= $#to; $i++) - { syslog('info',"to=$to[$i]"); } - } - - printf("Relay via GMail account $gmailusername...\n") if ($verbose >= 1); - if ($daemon >= 1) - { syslog('info',"relay via GMail account $gmailusername"); } - - &RelayOurMSG(); - #$client->shutdown; - exit 1; - } - } - undef $client; - } -} - -sub RelayOurMSG -{ -###nieuw vanaf hier -if ($verbose >= 1) - {printf("Connecting to GMail...\n");} - my ( $gmail ) = Mail::Webmail::Gmail->new( - username => $gmailusername, password => $gmailpassword, proxy_name=> $proxy_name, ); - -if ($verbose >= 1) - {printf("Connection to Gmail established.\n");} - -if ($verbose >= 1) - {printf("Attempting to send message.\n");} - - my $msgid = $gmail->send_message - ( to => $to[0], - subject => time(), - msgbody => $msgsrc ); - print "Msgid: $msgid\n"; - if ( $msgid ) { - if ( $gmail->error() ) { - if ($verbose >= 1) - {printf("We ran into a problem. Attempting to display the problem...\n");} - print $gmail->error_msg(); - } else { - ### Create new label ### - if ($verbose >= 1) - {printf("Creating new label\n");} - my $test_label = "tl_" . time(); - $gmail->edit_labels( label => $test_label, action => 'create' ); - if ( $gmail->error() ) { - print $gmail->error_msg(); - } else { - ### Add this label to our new message ### - $gmail->edit_labels( label => $test_label, action => 'add', 'msgid' => $msgid ); - if ( $gmail->error() ) { - print $gmail->error_msg(); - } else { - print "Added label: $test_label to message $msgid\n"; - } - } - } - } -###tot hier - - # Good bye... - if ($verbose >= 1) - {printf("Message sent succesfully.\n");} - if ($daemon >= 1) { - syslog('info',"Message relay successful"); - } -} - -# This is the main SMTP "engine". -sub run_smtp -{ - - - # We can do a relay-test now if a recipient was set. - if ($#to >= 0) { - if (!defined ($from)) { - $from = "<$gmailusername>"; - if ($verbose >= 1) - {printf("From: address not set. Using $gmailusername.\n");} - if ($daemon >= 1) - {syslog('info',"From: address not set. Using $gmailusername.");} - } - &send_line ($sock, "MAIL FROM: %s\n", $from); - ($code, $text, $more) = &get_line ($sock); - if ($code != 250) { warnnice ("MAIL FROM failed: '$code $text'\n"); } - - my $i; - for ($i=0; $i <= $#to; $i++) { - &send_line ($sock, "RCPT TO: %s\n", $to[$i]); - ($code, $text, $more) = &get_line ($sock); - if ($code != 250) { - warnnice ("RCPT TO ".$to[$i]." "."failed: '$code $text'\n"); - } - } - } - - # Wow, we should even send something! - if (defined ($msgsrc)) - { - &send_line ($sock, "DATA\n"); - ($code, $text, $more) = &get_line ($sock); - if ($code != 354) { warnnice ("DATA failed: '$code $text'\n"); } - - if ($verbose >= 1) { - printf("Sending the following.\n\n"); - printf("$msgsrc\n"); - } - - $sock->printf ("$msgsrc\r\n.\r\n"); - - ($code, $text, $more) = &get_line ($sock); - if ($code != 250) { warnnice ("DATA not sent: '$code $text'\n"); } - } - - # Perfect. Everything succeeded! - return 1; -} - -# Get one line of response from the server. -sub get_line ($) -{ - my $sock = shift; - my ($code, $sep, $text) = ($sock->getline() =~ /(\d+)(.)([^\r]*)/); - my $more; - if ($sep eq "-") { $more = 1; } else { $more = 0; } - printf ("[%d] '%s'\n", $code, $text) if ($verbose >= 1); - return ($code, $text, $more); -} - -# Send one line back to the server -sub send_line ($@) -{ - my $socket = shift; - my @args = @_; - - printf ("> ") if ($verbose >= 1); - printf (@args) if ($verbose >= 1); - $socket->printf (@args); -} - -# Helper function to encode CRAM-MD5 challenge -sub encode_cram_md5 ($$$) -{ - my ($ticket64, $username, $password) = @_; - my $ticket = decode_base64($ticket64) or - dienice ("Unable to decode Base64 encoded string '$ticket64'"); - - my $password_md5 = hmac_md5_hex($ticket, $password); - return encode_base64 ("$username $password_md5", ""); -} - -# Store all server's ESMTP features to a hash. -sub say_hello ($$$$) -{ - my ($sock, $ehlo_ok, $gmailhello, $featref) = @_; - my ($feat, $param); - my $hello_cmd = $ehlo_ok ? "EHLO" : "HELO"; - - &send_line ($sock, "$hello_cmd $gmailhello\n"); - my ($code, $text, $more) = &get_line ($sock); - - if ($code != 250) { warnnice ("$hello_cmd failed: '$code $text'\n"); } - - # Empty the hash - %{$featref} = (); - - ($feat, $param) = ($text =~ /^(\w+)[= ]*(.*)$/); - $featref->{$feat} = $param; - - # Load all features presented by the server into the hash - while ($more == 1) { - ($code, $text, $more) = &get_line ($sock); - ($feat, $param) = ($text =~ /^(\w+)[= ]*(.*)$/); - $featref->{$feat} = $param; - } - - return 1; -} - -sub warnnice { - my ($txt) = @_; - - if ( $daemon >= 1 ) { - syslog('info', $txt); - syslog('info', 'Connection terminated!'); - } - else { - printf("\n$txt\n"); - printf("Connection terminated!\n"); - } - if ($sock) { - printf("Shutdown!!!!!\n"); - &send_line ($sock, "QUIT\n"); - } - if ($client) { $client->shutdown;} - exit 1; -} - -sub dienice { - my ($txt) = @_; - - if ( $daemon >= 1 ) { - syslog('info', $txt); - syslog('info',"Aborting"); - } - else { - printf("\n$txt\n"); - printf("Aborting\n\n"); - } - if ($client) {$client->shutdown;} - exit 1; -} - -sub AllowRelay($) { - - my $IP = shift; - my $i; - - for ($i=0; $i <= $#relayIP; $i++) { - if ($IP =~ /^$relayIP[$i]/) { return "1";} - } - - # Did not find a match. - return "0"; -} - -sub BuildRelayIPTable { - - my ($i); - - $i=0; - - if ($verbose >= 1) { printf("Loading relay table from $relayfile\n");} - if ($daemon >= 1) { syslog('info',"Loading relay table from $relayfile");} - - open(INFILE, "$relayfile") || dienice("Cannot open relay file $relayfile!"); - while($line = ) { - $line =~ s/#.*//; # ignore comments by erasing them - next if $line =~ /^(\s)*$/; # skip blank lines - chomp($line); - if ($verbose >= 1) { printf("Adding [$line] to relay table\n");} - if ($daemon >= 1) {syslog('info',"Adding [$line] to relay table");} - - $relayIP[$i++] = $line; - } - close(INFILE); -} - -sub usage () -{ - printf ("\nA simple SMTP server that relays local email through a gmail account via HTTPS. - -Author: Frederik Vanrenterghem - http://vanrenterghem.biz/ - -Version: $version - -Usage: gmailsmtp.pl [--options] - - --config-file= The location of the gmailsmtp.conf file. - (default: /usr/local/etc/gmailsmtp.conf) - --relay-file= The location of the gmailsmtp.relay file. - (default: /usr/local/etc/gmailsmtp.relay) - --verbose Be verbose instead of silent. - --daemon Start as daemon process. - --help Shows you this output. - -Current Options: - - \$gmailserver = [$gmailserver] - \$gmailport = [$gmailport] - \$gmailusername = [$gmailusername]\n"); - - if ($gmailpassword ne "") { - printf (" \$gmailpassword = [is set]\n"); - } else { - printf (" \$gmailpassword = [is NOT set]\n"); - } - - printf (" \$gmailhello = [$gmailhello] - \$localserver = [$localserver] - \$localport = [$localport] -"); - exit (0); -} - - \ No newline at end of file diff --git a/header_first.shtml b/header_first.shtml deleted file mode 100644 index 9ad948d..0000000 --- a/header_first.shtml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - -
- - -Home -About me -Forum -News -Pictures -Search - - -
- - - -
- diff --git a/header_xmas.shtml b/header_xmas.shtml deleted file mode 100644 index 612e75e..0000000 --- a/header_xmas.shtml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - -
- - - - -Home -About me -Forum -News -Pictures -Linux - - - - -
- - - -
- diff --git a/index_beforemove.shtml b/index_beforemove.shtml deleted file mode 100644 index 4cbcf66..0000000 --- a/index_beforemove.shtml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - Frederik Vanrenterghem's homepage - http://frederik.gotdns.org:1976/ - - - -
- -

Front page

-

-Front pages are boring. By definition. Even if they contain all sorts of fun images. Proceed to the news section. -

-

-debian logo -

-

- -

- - - - diff --git a/index_current_site.shtml b/index_current_site.shtml deleted file mode 100644 index 5c5d608..0000000 --- a/index_current_site.shtml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - Frederik Vanrenterghem's homepage - http://www.vanrenterghem.biz/ - - - -
- -

vanrenterghem.biz

-

Time for business

-

-For the functionaly retarded: you can navigate within this site by clicking -on the buttons in the navigation bar on top of every page. Since you like -duplication, you can also click on any of the links below. -

-

-Home You are here.
-About me This section contains information about the owner of this site, me.
-Forum This is the most active part of the site, the messageboards. It is also the only part of this site I did not write myself.
-News On the News section, I post whatever pops up in my head. It is all far more interesting than what you would think and talk about. Read it, it will make you smarter.
-Pictures Guess what, there are even pictures of me and others on this site.
-GNU/Linux A free operating system, with almost all types of software available with the source code for you to compile.
-

-

-debian logo -

- - - - - diff --git a/index_new.shtml b/index_new.shtml deleted file mode 100644 index 8c774dd..0000000 --- a/index_new.shtml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - Frederik Vanrenterghem's homepage - http://frederik.gotdns.org:1976/ - - - -
- -

Front page

-

-Site moved to www.vanrenterghem.biz. -

-

-debian logo -

-

- -

- - - - diff --git a/phpBB2/COPYING b/phpBB2/COPYING deleted file mode 100644 index ce992b2..0000000 --- a/phpBB2/COPYING +++ /dev/null @@ -1,281 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 675 Mass Ave, Cambridge, MA 02139, USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - diff --git a/phpBB2/admin/admin_board.php b/phpBB2/admin/admin_board.php deleted file mode 100644 index 2b47608..0000000 --- a/phpBB2/admin/admin_board.php +++ /dev/null @@ -1,366 +0,0 @@ -sql_query($sql)) -{ - message_die(CRITICAL_ERROR, "Could not query config information in admin_board", "", __LINE__, __FILE__, $sql); -} -else -{ - while( $row = $db->sql_fetchrow($result) ) - { - $config_name = $row['config_name']; - $config_value = $row['config_value']; - $default_config[$config_name] = isset($HTTP_POST_VARS['submit']) ? str_replace("'", "\'", $config_value) : $config_value; - - $new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name]; - - if ($config_name == 'cookie_name') - { - $new['cookie_name'] = str_replace('.', '_', $new['cookie_name']); - } - - // Attempt to prevent a common mistake with this value, - // http:// is the protocol and not part of the server name - if ($config_name == 'server_name') - { - $new['server_name'] = str_replace('http://', '', $new['server_name']); - } - - // Attempt to prevent a mistake with this value. - if ($config_name == 'avatar_path') - { - $new['avatar_path'] = trim($new['avatar_path']); - if (strstr($new['avatar_path'], "\0") || !is_dir($phpbb_root_path . $new['avatar_path']) || !is_writable($phpbb_root_path . $new['avatar_path'])) - { - $new['avatar_path'] = $default_config['avatar_path']; - } - } - - if( isset($HTTP_POST_VARS['submit']) ) - { - $sql = "UPDATE " . CONFIG_TABLE . " SET - config_value = '" . str_replace("\'", "''", $new[$config_name]) . "' - WHERE config_name = '$config_name'"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Failed to update general configuration for $config_name", "", __LINE__, __FILE__, $sql); - } - } - } - - if( isset($HTTP_POST_VARS['submit']) ) - { - $message = $lang['Config_updated'] . "

" . sprintf($lang['Click_return_config'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } -} - -$style_select = style_select($new['default_style'], 'default_style', "../templates"); -$lang_select = language_select($new['default_lang'], 'default_lang', "language"); -$timezone_select = tz_select($new['board_timezone'], 'board_timezone'); - -$disable_board_yes = ( $new['board_disable'] ) ? "checked=\"checked\"" : ""; -$disable_board_no = ( !$new['board_disable'] ) ? "checked=\"checked\"" : ""; - -$cookie_secure_yes = ( $new['cookie_secure'] ) ? "checked=\"checked\"" : ""; -$cookie_secure_no = ( !$new['cookie_secure'] ) ? "checked=\"checked\"" : ""; - -$html_tags = $new['allow_html_tags']; - -$override_user_style_yes = ( $new['override_user_style'] ) ? "checked=\"checked\"" : ""; -$override_user_style_no = ( !$new['override_user_style'] ) ? "checked=\"checked\"" : ""; - -$html_yes = ( $new['allow_html'] ) ? "checked=\"checked\"" : ""; -$html_no = ( !$new['allow_html'] ) ? "checked=\"checked\"" : ""; - -$bbcode_yes = ( $new['allow_bbcode'] ) ? "checked=\"checked\"" : ""; -$bbcode_no = ( !$new['allow_bbcode'] ) ? "checked=\"checked\"" : ""; - -$activation_none = ( $new['require_activation'] == USER_ACTIVATION_NONE ) ? "checked=\"checked\"" : ""; -$activation_user = ( $new['require_activation'] == USER_ACTIVATION_SELF ) ? "checked=\"checked\"" : ""; -$activation_admin = ( $new['require_activation'] == USER_ACTIVATION_ADMIN ) ? "checked=\"checked\"" : ""; - -$confirm_yes = ($new['enable_confirm']) ? 'checked="checked"' : ''; -$confirm_no = (!$new['enable_confirm']) ? 'checked="checked"' : ''; - -$allow_autologin_yes = ($new['allow_autologin']) ? 'checked="checked"' : ''; -$allow_autologin_no = (!$new['allow_autologin']) ? 'checked="checked"' : ''; - -$board_email_form_yes = ( $new['board_email_form'] ) ? "checked=\"checked\"" : ""; -$board_email_form_no = ( !$new['board_email_form'] ) ? "checked=\"checked\"" : ""; - -$gzip_yes = ( $new['gzip_compress'] ) ? "checked=\"checked\"" : ""; -$gzip_no = ( !$new['gzip_compress'] ) ? "checked=\"checked\"" : ""; - -$privmsg_on = ( !$new['privmsg_disable'] ) ? "checked=\"checked\"" : ""; -$privmsg_off = ( $new['privmsg_disable'] ) ? "checked=\"checked\"" : ""; - -$prune_yes = ( $new['prune_enable'] ) ? "checked=\"checked\"" : ""; -$prune_no = ( !$new['prune_enable'] ) ? "checked=\"checked\"" : ""; - -$smile_yes = ( $new['allow_smilies'] ) ? "checked=\"checked\"" : ""; -$smile_no = ( !$new['allow_smilies'] ) ? "checked=\"checked\"" : ""; - -$sig_yes = ( $new['allow_sig'] ) ? "checked=\"checked\"" : ""; -$sig_no = ( !$new['allow_sig'] ) ? "checked=\"checked\"" : ""; - -$namechange_yes = ( $new['allow_namechange'] ) ? "checked=\"checked\"" : ""; -$namechange_no = ( !$new['allow_namechange'] ) ? "checked=\"checked\"" : ""; - -$avatars_local_yes = ( $new['allow_avatar_local'] ) ? "checked=\"checked\"" : ""; -$avatars_local_no = ( !$new['allow_avatar_local'] ) ? "checked=\"checked\"" : ""; -$avatars_remote_yes = ( $new['allow_avatar_remote'] ) ? "checked=\"checked\"" : ""; -$avatars_remote_no = ( !$new['allow_avatar_remote'] ) ? "checked=\"checked\"" : ""; -$avatars_upload_yes = ( $new['allow_avatar_upload'] ) ? "checked=\"checked\"" : ""; -$avatars_upload_no = ( !$new['allow_avatar_upload'] ) ? "checked=\"checked\"" : ""; - -$smtp_yes = ( $new['smtp_delivery'] ) ? "checked=\"checked\"" : ""; -$smtp_no = ( !$new['smtp_delivery'] ) ? "checked=\"checked\"" : ""; - -$template->set_filenames(array( - "body" => "admin/board_config_body.tpl") -); - -// -// Escape any quotes in the site description for proper display in the text -// box on the admin page -// -$new['site_desc'] = str_replace('"', '"', $new['site_desc']); -$new['sitename'] = str_replace('"', '"', strip_tags($new['sitename'])); -$template->assign_vars(array( - "S_CONFIG_ACTION" => append_sid("admin_board.$phpEx"), - - "L_YES" => $lang['Yes'], - "L_NO" => $lang['No'], - "L_CONFIGURATION_TITLE" => $lang['General_Config'], - "L_CONFIGURATION_EXPLAIN" => $lang['Config_explain'], - "L_GENERAL_SETTINGS" => $lang['General_settings'], - "L_SERVER_NAME" => $lang['Server_name'], - "L_SERVER_NAME_EXPLAIN" => $lang['Server_name_explain'], - "L_SERVER_PORT" => $lang['Server_port'], - "L_SERVER_PORT_EXPLAIN" => $lang['Server_port_explain'], - "L_SCRIPT_PATH" => $lang['Script_path'], - "L_SCRIPT_PATH_EXPLAIN" => $lang['Script_path_explain'], - "L_SITE_NAME" => $lang['Site_name'], - "L_SITE_DESCRIPTION" => $lang['Site_desc'], - "L_DISABLE_BOARD" => $lang['Board_disable'], - "L_DISABLE_BOARD_EXPLAIN" => $lang['Board_disable_explain'], - "L_ACCT_ACTIVATION" => $lang['Acct_activation'], - "L_NONE" => $lang['Acc_None'], - "L_USER" => $lang['Acc_User'], - "L_ADMIN" => $lang['Acc_Admin'], - "L_VISUAL_CONFIRM" => $lang['Visual_confirm'], - "L_VISUAL_CONFIRM_EXPLAIN" => $lang['Visual_confirm_explain'], - "L_ALLOW_AUTOLOGIN" => $lang['Allow_autologin'], - "L_ALLOW_AUTOLOGIN_EXPLAIN" => $lang['Allow_autologin_explain'], - "L_AUTOLOGIN_TIME" => $lang['Autologin_time'], - "L_AUTOLOGIN_TIME_EXPLAIN" => $lang['Autologin_time_explain'], - "L_COOKIE_SETTINGS" => $lang['Cookie_settings'], - "L_COOKIE_SETTINGS_EXPLAIN" => $lang['Cookie_settings_explain'], - "L_COOKIE_DOMAIN" => $lang['Cookie_domain'], - "L_COOKIE_NAME" => $lang['Cookie_name'], - "L_COOKIE_PATH" => $lang['Cookie_path'], - "L_COOKIE_SECURE" => $lang['Cookie_secure'], - "L_COOKIE_SECURE_EXPLAIN" => $lang['Cookie_secure_explain'], - "L_SESSION_LENGTH" => $lang['Session_length'], - "L_PRIVATE_MESSAGING" => $lang['Private_Messaging'], - "L_INBOX_LIMIT" => $lang['Inbox_limits'], - "L_SENTBOX_LIMIT" => $lang['Sentbox_limits'], - "L_SAVEBOX_LIMIT" => $lang['Savebox_limits'], - "L_DISABLE_PRIVATE_MESSAGING" => $lang['Disable_privmsg'], - "L_ENABLED" => $lang['Enabled'], - "L_DISABLED" => $lang['Disabled'], - "L_ABILITIES_SETTINGS" => $lang['Abilities_settings'], - "L_MAX_POLL_OPTIONS" => $lang['Max_poll_options'], - "L_FLOOD_INTERVAL" => $lang['Flood_Interval'], - "L_FLOOD_INTERVAL_EXPLAIN" => $lang['Flood_Interval_explain'], - "L_SEARCH_FLOOD_INTERVAL" => $lang['Search_Flood_Interval'], - "L_SEARCH_FLOOD_INTERVAL_EXPLAIN" => $lang['Search_Flood_Interval_explain'], - - 'L_MAX_LOGIN_ATTEMPTS' => $lang['Max_login_attempts'], - 'L_MAX_LOGIN_ATTEMPTS_EXPLAIN' => $lang['Max_login_attempts_explain'], - 'L_LOGIN_RESET_TIME' => $lang['Login_reset_time'], - 'L_LOGIN_RESET_TIME_EXPLAIN' => $lang['Login_reset_time_explain'], - 'MAX_LOGIN_ATTEMPTS' => $new['max_login_attempts'], - 'LOGIN_RESET_TIME' => $new['login_reset_time'], - - "L_BOARD_EMAIL_FORM" => $lang['Board_email_form'], - "L_BOARD_EMAIL_FORM_EXPLAIN" => $lang['Board_email_form_explain'], - "L_TOPICS_PER_PAGE" => $lang['Topics_per_page'], - "L_POSTS_PER_PAGE" => $lang['Posts_per_page'], - "L_HOT_THRESHOLD" => $lang['Hot_threshold'], - "L_DEFAULT_STYLE" => $lang['Default_style'], - "L_OVERRIDE_STYLE" => $lang['Override_style'], - "L_OVERRIDE_STYLE_EXPLAIN" => $lang['Override_style_explain'], - "L_DEFAULT_LANGUAGE" => $lang['Default_language'], - "L_DATE_FORMAT" => $lang['Date_format'], - "L_SYSTEM_TIMEZONE" => $lang['System_timezone'], - "L_ENABLE_GZIP" => $lang['Enable_gzip'], - "L_ENABLE_PRUNE" => $lang['Enable_prune'], - "L_ALLOW_HTML" => $lang['Allow_HTML'], - "L_ALLOW_BBCODE" => $lang['Allow_BBCode'], - "L_ALLOWED_TAGS" => $lang['Allowed_tags'], - "L_ALLOWED_TAGS_EXPLAIN" => $lang['Allowed_tags_explain'], - "L_ALLOW_SMILIES" => $lang['Allow_smilies'], - "L_SMILIES_PATH" => $lang['Smilies_path'], - "L_SMILIES_PATH_EXPLAIN" => $lang['Smilies_path_explain'], - "L_ALLOW_SIG" => $lang['Allow_sig'], - "L_MAX_SIG_LENGTH" => $lang['Max_sig_length'], - "L_MAX_SIG_LENGTH_EXPLAIN" => $lang['Max_sig_length_explain'], - "L_ALLOW_NAME_CHANGE" => $lang['Allow_name_change'], - "L_AVATAR_SETTINGS" => $lang['Avatar_settings'], - "L_ALLOW_LOCAL" => $lang['Allow_local'], - "L_ALLOW_REMOTE" => $lang['Allow_remote'], - "L_ALLOW_REMOTE_EXPLAIN" => $lang['Allow_remote_explain'], - "L_ALLOW_UPLOAD" => $lang['Allow_upload'], - "L_MAX_FILESIZE" => $lang['Max_filesize'], - "L_MAX_FILESIZE_EXPLAIN" => $lang['Max_filesize_explain'], - "L_MAX_AVATAR_SIZE" => $lang['Max_avatar_size'], - "L_MAX_AVATAR_SIZE_EXPLAIN" => $lang['Max_avatar_size_explain'], - "L_AVATAR_STORAGE_PATH" => $lang['Avatar_storage_path'], - "L_AVATAR_STORAGE_PATH_EXPLAIN" => $lang['Avatar_storage_path_explain'], - "L_AVATAR_GALLERY_PATH" => $lang['Avatar_gallery_path'], - "L_AVATAR_GALLERY_PATH_EXPLAIN" => $lang['Avatar_gallery_path_explain'], - "L_COPPA_SETTINGS" => $lang['COPPA_settings'], - "L_COPPA_FAX" => $lang['COPPA_fax'], - "L_COPPA_MAIL" => $lang['COPPA_mail'], - "L_COPPA_MAIL_EXPLAIN" => $lang['COPPA_mail_explain'], - "L_EMAIL_SETTINGS" => $lang['Email_settings'], - "L_ADMIN_EMAIL" => $lang['Admin_email'], - "L_EMAIL_SIG" => $lang['Email_sig'], - "L_EMAIL_SIG_EXPLAIN" => $lang['Email_sig_explain'], - "L_USE_SMTP" => $lang['Use_SMTP'], - "L_USE_SMTP_EXPLAIN" => $lang['Use_SMTP_explain'], - "L_SMTP_SERVER" => $lang['SMTP_server'], - "L_SMTP_USERNAME" => $lang['SMTP_username'], - "L_SMTP_USERNAME_EXPLAIN" => $lang['SMTP_username_explain'], - "L_SMTP_PASSWORD" => $lang['SMTP_password'], - "L_SMTP_PASSWORD_EXPLAIN" => $lang['SMTP_password_explain'], - "L_SUBMIT" => $lang['Submit'], - "L_RESET" => $lang['Reset'], - - "SERVER_NAME" => $new['server_name'], - "SCRIPT_PATH" => $new['script_path'], - "SERVER_PORT" => $new['server_port'], - "SITENAME" => $new['sitename'], - "SITE_DESCRIPTION" => $new['site_desc'], - "S_DISABLE_BOARD_YES" => $disable_board_yes, - "S_DISABLE_BOARD_NO" => $disable_board_no, - "ACTIVATION_NONE" => USER_ACTIVATION_NONE, - "ACTIVATION_NONE_CHECKED" => $activation_none, - "ACTIVATION_USER" => USER_ACTIVATION_SELF, - "ACTIVATION_USER_CHECKED" => $activation_user, - "ACTIVATION_ADMIN" => USER_ACTIVATION_ADMIN, - "ACTIVATION_ADMIN_CHECKED" => $activation_admin, - "CONFIRM_ENABLE" => $confirm_yes, - "CONFIRM_DISABLE" => $confirm_no, - 'ALLOW_AUTOLOGIN_YES' => $allow_autologin_yes, - 'ALLOW_AUTOLOGIN_NO' => $allow_autologin_no, - 'AUTOLOGIN_TIME' => (int) $new['max_autologin_time'], - "BOARD_EMAIL_FORM_ENABLE" => $board_email_form_yes, - "BOARD_EMAIL_FORM_DISABLE" => $board_email_form_no, - "MAX_POLL_OPTIONS" => $new['max_poll_options'], - "FLOOD_INTERVAL" => $new['flood_interval'], - "SEARCH_FLOOD_INTERVAL" => $new['search_flood_interval'], - "TOPICS_PER_PAGE" => $new['topics_per_page'], - "POSTS_PER_PAGE" => $new['posts_per_page'], - "HOT_TOPIC" => $new['hot_threshold'], - "STYLE_SELECT" => $style_select, - "OVERRIDE_STYLE_YES" => $override_user_style_yes, - "OVERRIDE_STYLE_NO" => $override_user_style_no, - "LANG_SELECT" => $lang_select, - "L_DATE_FORMAT_EXPLAIN" => $lang['Date_format_explain'], - "DEFAULT_DATEFORMAT" => $new['default_dateformat'], - "TIMEZONE_SELECT" => $timezone_select, - "S_PRIVMSG_ENABLED" => $privmsg_on, - "S_PRIVMSG_DISABLED" => $privmsg_off, - "INBOX_LIMIT" => $new['max_inbox_privmsgs'], - "SENTBOX_LIMIT" => $new['max_sentbox_privmsgs'], - "SAVEBOX_LIMIT" => $new['max_savebox_privmsgs'], - "COOKIE_DOMAIN" => $new['cookie_domain'], - "COOKIE_NAME" => $new['cookie_name'], - "COOKIE_PATH" => $new['cookie_path'], - "SESSION_LENGTH" => $new['session_length'], - "S_COOKIE_SECURE_ENABLED" => $cookie_secure_yes, - "S_COOKIE_SECURE_DISABLED" => $cookie_secure_no, - "GZIP_YES" => $gzip_yes, - "GZIP_NO" => $gzip_no, - "PRUNE_YES" => $prune_yes, - "PRUNE_NO" => $prune_no, - "HTML_TAGS" => $html_tags, - "HTML_YES" => $html_yes, - "HTML_NO" => $html_no, - "BBCODE_YES" => $bbcode_yes, - "BBCODE_NO" => $bbcode_no, - "SMILE_YES" => $smile_yes, - "SMILE_NO" => $smile_no, - "SIG_YES" => $sig_yes, - "SIG_NO" => $sig_no, - "SIG_SIZE" => $new['max_sig_chars'], - "NAMECHANGE_YES" => $namechange_yes, - "NAMECHANGE_NO" => $namechange_no, - "AVATARS_LOCAL_YES" => $avatars_local_yes, - "AVATARS_LOCAL_NO" => $avatars_local_no, - "AVATARS_REMOTE_YES" => $avatars_remote_yes, - "AVATARS_REMOTE_NO" => $avatars_remote_no, - "AVATARS_UPLOAD_YES" => $avatars_upload_yes, - "AVATARS_UPLOAD_NO" => $avatars_upload_no, - "AVATAR_FILESIZE" => $new['avatar_filesize'], - "AVATAR_MAX_HEIGHT" => $new['avatar_max_height'], - "AVATAR_MAX_WIDTH" => $new['avatar_max_width'], - "AVATAR_PATH" => $new['avatar_path'], - "AVATAR_GALLERY_PATH" => $new['avatar_gallery_path'], - "SMILIES_PATH" => $new['smilies_path'], - "INBOX_PRIVMSGS" => $new['max_inbox_privmsgs'], - "SENTBOX_PRIVMSGS" => $new['max_sentbox_privmsgs'], - "SAVEBOX_PRIVMSGS" => $new['max_savebox_privmsgs'], - "EMAIL_FROM" => $new['board_email'], - "EMAIL_SIG" => $new['board_email_sig'], - "SMTP_YES" => $smtp_yes, - "SMTP_NO" => $smtp_no, - "SMTP_HOST" => $new['smtp_host'], - "SMTP_USERNAME" => $new['smtp_username'], - "SMTP_PASSWORD" => $new['smtp_password'], - "COPPA_MAIL" => $new['coppa_mail'], - "COPPA_FAX" => $new['coppa_fax']) -); - -$template->pparse("body"); - -include('./page_footer_admin.'.$phpEx); - -?> diff --git a/phpBB2/admin/admin_db_utilities.php b/phpBB2/admin/admin_db_utilities.php deleted file mode 100644 index d08db79..0000000 --- a/phpBB2/admin/admin_db_utilities.php +++ /dev/null @@ -1,1008 +0,0 @@ -= '4.0.0') ? @ini_get('file_uploads') : @get_cfg_var('file_uploads'); - - if( (empty($file_uploads) || $file_uploads != 0) && (strtolower($file_uploads) != 'off') && (@phpversion() != '4.0.4pl1') ) - { - $module['General']['Restore_DB'] = $filename . "?perform=restore"; - } - - return; -} - -// -// Load default header -// -$no_page_header = TRUE; -$phpbb_root_path = "./../"; -require($phpbb_root_path . 'extension.inc'); -require('./pagestart.' . $phpEx); -include($phpbb_root_path . 'includes/sql_parse.'.$phpEx); - -// -// Set VERBOSE to 1 for debugging info.. -// -define("VERBOSE", 0); - -// -// Increase maximum execution time, but don't complain about it if it isn't -// allowed. -// -@set_time_limit(1200); - -// ----------------------- -// The following functions are adapted from phpMyAdmin and upgrade_20.php -// -function gzip_PrintFourChars($Val) -{ - for ($i = 0; $i < 4; $i ++) - { - $return .= chr($Val % 256); - $Val = floor($Val / 256); - } - return $return; -} - - - -// -// This function is used for grabbing the sequences for postgres... -// -function pg_get_sequences($crlf, $backup_type) -{ - global $db; - - $get_seq_sql = "SELECT relname FROM pg_class WHERE NOT relname ~ 'pg_.*' - AND relkind = 'S' ORDER BY relname"; - - $seq = $db->sql_query($get_seq_sql); - - if( !$num_seq = $db->sql_numrows($seq) ) - { - - $return_val = "# No Sequences Found $crlf"; - - } - else - { - $return_val = "# Sequences $crlf"; - $i_seq = 0; - - while($i_seq < $num_seq) - { - $row = $db->sql_fetchrow($seq); - $sequence = $row['relname']; - - $get_props_sql = "SELECT * FROM $sequence"; - $seq_props = $db->sql_query($get_props_sql); - - if($db->sql_numrows($seq_props) > 0) - { - $row1 = $db->sql_fetchrow($seq_props); - - if($backup_type == 'structure') - { - $row['last_value'] = 1; - } - - $return_val .= "CREATE SEQUENCE $sequence start " . $row['last_value'] . ' increment ' . $row['increment_by'] . ' maxvalue ' . $row['max_value'] . ' minvalue ' . $row['min_value'] . ' cache ' . $row['cache_value'] . "; $crlf"; - - } // End if numrows > 0 - - if(($row['last_value'] > 1) && ($backup_type != 'structure')) - { - $return_val .= "SELECT NEXTVALE('$sequence'); $crlf"; - unset($row['last_value']); - } - - $i_seq++; - - } // End while.. - - } // End else... - - return $returnval; - -} // End function... - -// -// The following functions will return the "CREATE TABLE syntax for the -// varying DBMS's -// -// This function returns, will return the table def's for postgres... -// -function get_table_def_postgresql($table, $crlf) -{ - global $drop, $db; - - $schema_create = ""; - // - // Get a listing of the fields, with their associated types, etc. - // - - $field_query = "SELECT a.attnum, a.attname AS field, t.typname as type, a.attlen AS length, a.atttypmod as lengthvar, a.attnotnull as notnull - FROM pg_class c, pg_attribute a, pg_type t - WHERE c.relname = '$table' - AND a.attnum > 0 - AND a.attrelid = c.oid - AND a.atttypid = t.oid - ORDER BY a.attnum"; - $result = $db->sql_query($field_query); - - if(!$result) - { - message_die(GENERAL_ERROR, "Failed in get_table_def (show fields)", "", __LINE__, __FILE__, $field_query); - } // end if.. - - if ($drop == 1) - { - $schema_create .= "DROP TABLE $table;$crlf"; - } // end if - - // - // Ok now we actually start building the SQL statements to restore the tables - // - - $schema_create .= "CREATE TABLE $table($crlf"; - - while ($row = $db->sql_fetchrow($result)) - { - // - // Get the data from the table - // - $sql_get_default = "SELECT d.adsrc AS rowdefault - FROM pg_attrdef d, pg_class c - WHERE (c.relname = '$table') - AND (c.oid = d.adrelid) - AND d.adnum = " . $row['attnum']; - $def_res = $db->sql_query($sql_get_default); - - if (!$def_res) - { - unset($row['rowdefault']); - } - else - { - $row['rowdefault'] = @pg_result($def_res, 0, 'rowdefault'); - } - - if ($row['type'] == 'bpchar') - { - // Internally stored as bpchar, but isn't accepted in a CREATE TABLE statement. - $row['type'] = 'char'; - } - - $schema_create .= ' ' . $row['field'] . ' ' . $row['type']; - - if (eregi('char', $row['type'])) - { - if ($row['lengthvar'] > 0) - { - $schema_create .= '(' . ($row['lengthvar'] -4) . ')'; - } - } - - if (eregi('numeric', $row['type'])) - { - $schema_create .= '('; - $schema_create .= sprintf("%s,%s", (($row['lengthvar'] >> 16) & 0xffff), (($row['lengthvar'] - 4) & 0xffff)); - $schema_create .= ')'; - } - - if (!empty($row['rowdefault'])) - { - $schema_create .= ' DEFAULT ' . $row['rowdefault']; - } - - if ($row['notnull'] == 't') - { - $schema_create .= ' NOT NULL'; - } - - $schema_create .= ",$crlf"; - - } - // - // Get the listing of primary keys. - // - - $sql_pri_keys = "SELECT ic.relname AS index_name, bc.relname AS tab_name, ta.attname AS column_name, i.indisunique AS unique_key, i.indisprimary AS primary_key - FROM pg_class bc, pg_class ic, pg_index i, pg_attribute ta, pg_attribute ia - WHERE (bc.oid = i.indrelid) - AND (ic.oid = i.indexrelid) - AND (ia.attrelid = i.indexrelid) - AND (ta.attrelid = bc.oid) - AND (bc.relname = '$table') - AND (ta.attrelid = i.indrelid) - AND (ta.attnum = i.indkey[ia.attnum-1]) - ORDER BY index_name, tab_name, column_name "; - $result = $db->sql_query($sql_pri_keys); - - if(!$result) - { - message_die(GENERAL_ERROR, "Failed in get_table_def (show fields)", "", __LINE__, __FILE__, $sql_pri_keys); - } - - while ( $row = $db->sql_fetchrow($result)) - { - if ($row['primary_key'] == 't') - { - if (!empty($primary_key)) - { - $primary_key .= ', '; - } - - $primary_key .= $row['column_name']; - $primary_key_name = $row['index_name']; - - } - else - { - // - // We have to store this all this info because it is possible to have a multi-column key... - // we can loop through it again and build the statement - // - $index_rows[$row['index_name']]['table'] = $table; - $index_rows[$row['index_name']]['unique'] = ($row['unique_key'] == 't') ? ' UNIQUE ' : ''; - $index_rows[$row['index_name']]['column_names'] .= $row['column_name'] . ', '; - } - } - - if (!empty($index_rows)) - { - while(list($idx_name, $props) = each($index_rows)) - { - $props['column_names'] = ereg_replace(", $", "" , $props['column_names']); - $index_create .= 'CREATE ' . $props['unique'] . " INDEX $idx_name ON $table (" . $props['column_names'] . ");$crlf"; - } - } - - if (!empty($primary_key)) - { - $schema_create .= " CONSTRAINT $primary_key_name PRIMARY KEY ($primary_key),$crlf"; - } - - // - // Generate constraint clauses for CHECK constraints - // - $sql_checks = "SELECT rcname as index_name, rcsrc - FROM pg_relcheck, pg_class bc - WHERE rcrelid = bc.oid - AND bc.relname = '$table' - AND NOT EXISTS ( - SELECT * - FROM pg_relcheck as c, pg_inherits as i - WHERE i.inhrelid = pg_relcheck.rcrelid - AND c.rcname = pg_relcheck.rcname - AND c.rcsrc = pg_relcheck.rcsrc - AND c.rcrelid = i.inhparent - )"; - $result = $db->sql_query($sql_checks); - - if (!$result) - { - message_die(GENERAL_ERROR, "Failed in get_table_def (show fields)", "", __LINE__, __FILE__, $sql_checks); - } - - // - // Add the constraints to the sql file. - // - while ($row = $db->sql_fetchrow($result)) - { - $schema_create .= ' CONSTRAINT ' . $row['index_name'] . ' CHECK ' . $row['rcsrc'] . ",$crlf"; - } - - $schema_create = ereg_replace(',' . $crlf . '$', '', $schema_create); - $index_create = ereg_replace(',' . $crlf . '$', '', $index_create); - - $schema_create .= "$crlf);$crlf"; - - if (!empty($index_create)) - { - $schema_create .= $index_create; - } - - // - // Ok now we've built all the sql return it to the calling function. - // - return (stripslashes($schema_create)); - -} - -// -// This function returns the "CREATE TABLE" syntax for mysql dbms... -// -function get_table_def_mysql($table, $crlf) -{ - global $drop, $db; - - $schema_create = ""; - $field_query = "SHOW FIELDS FROM $table"; - $key_query = "SHOW KEYS FROM $table"; - - // - // If the user has selected to drop existing tables when doing a restore. - // Then we add the statement to drop the tables.... - // - if ($drop == 1) - { - $schema_create .= "DROP TABLE IF EXISTS $table;$crlf"; - } - - $schema_create .= "CREATE TABLE $table($crlf"; - - // - // Ok lets grab the fields... - // - $result = $db->sql_query($field_query); - if(!$result) - { - message_die(GENERAL_ERROR, "Failed in get_table_def (show fields)", "", __LINE__, __FILE__, $field_query); - } - - while ($row = $db->sql_fetchrow($result)) - { - $schema_create .= ' ' . $row['Field'] . ' ' . $row['Type']; - - if(!empty($row['Default'])) - { - $schema_create .= ' DEFAULT \'' . $row['Default'] . '\''; - } - - if($row['Null'] != "YES") - { - $schema_create .= ' NOT NULL'; - } - - if($row['Extra'] != "") - { - $schema_create .= ' ' . $row['Extra']; - } - - $schema_create .= ",$crlf"; - } - // - // Drop the last ',$crlf' off ;) - // - $schema_create = ereg_replace(',' . $crlf . '$', "", $schema_create); - - // - // Get any Indexed fields from the database... - // - $result = $db->sql_query($key_query); - if(!$result) - { - message_die(GENERAL_ERROR, "FAILED IN get_table_def (show keys)", "", __LINE__, __FILE__, $key_query); - } - - while($row = $db->sql_fetchrow($result)) - { - $kname = $row['Key_name']; - - if(($kname != 'PRIMARY') && ($row['Non_unique'] == 0)) - { - $kname = "UNIQUE|$kname"; - } - - if(!is_array($index[$kname])) - { - $index[$kname] = array(); - } - - $index[$kname][] = $row['Column_name']; - } - - while(list($x, $columns) = @each($index)) - { - $schema_create .= ", $crlf"; - - if($x == 'PRIMARY') - { - $schema_create .= ' PRIMARY KEY (' . implode($columns, ', ') . ')'; - } - elseif (substr($x,0,6) == 'UNIQUE') - { - $schema_create .= ' UNIQUE ' . substr($x,7) . ' (' . implode($columns, ', ') . ')'; - } - else - { - $schema_create .= " KEY $x (" . implode($columns, ', ') . ')'; - } - } - - $schema_create .= "$crlf);"; - - if(get_magic_quotes_runtime()) - { - return(stripslashes($schema_create)); - } - else - { - return($schema_create); - } - -} // End get_table_def_mysql - - -// -// This fuction will return a tables create definition to be used as an sql -// statement. -// -// -// The following functions Get the data from the tables and format it as a -// series of INSERT statements, for each different DBMS... -// After every row a custom callback function $handler gets called. -// $handler must accept one parameter ($sql_insert); -// -// -// Here is the function for postgres... -// -function get_table_content_postgresql($table, $handler) -{ - global $db; - - // - // Grab all of the data from current table. - // - - $result = $db->sql_query("SELECT * FROM $table"); - - if (!$result) - { - message_die(GENERAL_ERROR, "Failed in get_table_content (select *)", "", __LINE__, __FILE__, "SELECT * FROM $table"); - } - - $i_num_fields = $db->sql_numfields($result); - - for ($i = 0; $i < $i_num_fields; $i++) - { - $aryType[] = $db->sql_fieldtype($i, $result); - $aryName[] = $db->sql_fieldname($i, $result); - } - - $iRec = 0; - - while($row = $db->sql_fetchrow($result)) - { - $schema_vals = ''; - $schema_fields = ''; - $schema_insert = ''; - // - // Build the SQL statement to recreate the data. - // - for($i = 0; $i < $i_num_fields; $i++) - { - $strVal = $row[$aryName[$i]]; - if (eregi("char|text|bool", $aryType[$i])) - { - $strQuote = "'"; - $strEmpty = ""; - $strVal = addslashes($strVal); - } - elseif (eregi("date|timestamp", $aryType[$i])) - { - if (empty($strVal)) - { - $strQuote = ""; - } - else - { - $strQuote = "'"; - } - } - else - { - $strQuote = ""; - $strEmpty = "NULL"; - } - - if (empty($strVal) && $strVal != "0") - { - $strVal = $strEmpty; - } - - $schema_vals .= " $strQuote$strVal$strQuote,"; - $schema_fields .= " $aryName[$i],"; - - } - - $schema_vals = ereg_replace(",$", "", $schema_vals); - $schema_vals = ereg_replace("^ ", "", $schema_vals); - $schema_fields = ereg_replace(",$", "", $schema_fields); - $schema_fields = ereg_replace("^ ", "", $schema_fields); - - // - // Take the ordered fields and their associated data and build it - // into a valid sql statement to recreate that field in the data. - // - $schema_insert = "INSERT INTO $table ($schema_fields) VALUES($schema_vals);"; - - $handler(trim($schema_insert)); - } - - return(true); - -}// end function get_table_content_postgres... - -// -// This function is for getting the data from a mysql table. -// - -function get_table_content_mysql($table, $handler) -{ - global $db; - - // Grab the data from the table. - if (!($result = $db->sql_query("SELECT * FROM $table"))) - { - message_die(GENERAL_ERROR, "Failed in get_table_content (select *)", "", __LINE__, __FILE__, "SELECT * FROM $table"); - } - - // Loop through the resulting rows and build the sql statement. - if ($row = $db->sql_fetchrow($result)) - { - $handler("\n#\n# Table Data for $table\n#\n"); - $field_names = array(); - - // Grab the list of field names. - $num_fields = $db->sql_numfields($result); - $table_list = '('; - for ($j = 0; $j < $num_fields; $j++) - { - $field_names[$j] = $db->sql_fieldname($j, $result); - $table_list .= (($j > 0) ? ', ' : '') . $field_names[$j]; - - } - $table_list .= ')'; - - do - { - // Start building the SQL statement. - $schema_insert = "INSERT INTO $table $table_list VALUES("; - - // Loop through the rows and fill in data for each column - for ($j = 0; $j < $num_fields; $j++) - { - $schema_insert .= ($j > 0) ? ', ' : ''; - - if(!isset($row[$field_names[$j]])) - { - // - // If there is no data for the column set it to null. - // There was a problem here with an extra space causing the - // sql file not to reimport if the last column was null in - // any table. Should be fixed now :) JLH - // - $schema_insert .= 'NULL'; - } - elseif ($row[$field_names[$j]] != '') - { - $schema_insert .= '\'' . addslashes($row[$field_names[$j]]) . '\''; - } - else - { - $schema_insert .= '\'\''; - } - } - - $schema_insert .= ');'; - - // Go ahead and send the insert statement to the handler function. - $handler(trim($schema_insert)); - - } - while ($row = $db->sql_fetchrow($result)); - } - - return(true); -} - -function output_table_content($content) -{ - global $tempfile; - - //fwrite($tempfile, $content . "\n"); - //$backup_sql .= $content . "\n"; - echo $content ."\n"; - return; -} -// -// End Functions -// ------------- - - -// -// Begin program proper -// -if( isset($HTTP_GET_VARS['perform']) || isset($HTTP_POST_VARS['perform']) ) -{ - $perform = (isset($HTTP_POST_VARS['perform'])) ? $HTTP_POST_VARS['perform'] : $HTTP_GET_VARS['perform']; - - switch($perform) - { - case 'backup': - - $error = false; - switch(SQL_LAYER) - { - case 'oracle': - $error = true; - break; - case 'db2': - $error = true; - break; - case 'msaccess': - $error = true; - break; - case 'mssql': - case 'mssql-odbc': - $error = true; - break; - } - - if ($error) - { - include('./page_header_admin.'.$phpEx); - - $template->set_filenames(array( - "body" => "admin/admin_message_body.tpl") - ); - - $template->assign_vars(array( - "MESSAGE_TITLE" => $lang['Information'], - "MESSAGE_TEXT" => $lang['Backups_not_supported']) - ); - - $template->pparse("body"); - - include('./page_footer_admin.'.$phpEx); - } - - $tables = array('auth_access', 'banlist', 'categories', 'config', 'disallow', 'forums', 'forum_prune', 'groups', 'posts', 'posts_text', 'privmsgs', 'privmsgs_text', 'ranks', 'search_results', 'search_wordlist', 'search_wordmatch', 'sessions', 'smilies', 'themes', 'themes_name', 'topics', 'topics_watch', 'user_group', 'users', 'vote_desc', 'vote_results', 'vote_voters', 'words', 'confirm', 'sessions_keys'); - - $additional_tables = (isset($HTTP_POST_VARS['additional_tables'])) ? $HTTP_POST_VARS['additional_tables'] : ( (isset($HTTP_GET_VARS['additional_tables'])) ? $HTTP_GET_VARS['additional_tables'] : "" ); - - $backup_type = (isset($HTTP_POST_VARS['backup_type'])) ? $HTTP_POST_VARS['backup_type'] : ( (isset($HTTP_GET_VARS['backup_type'])) ? $HTTP_GET_VARS['backup_type'] : "" ); - - $gzipcompress = (!empty($HTTP_POST_VARS['gzipcompress'])) ? $HTTP_POST_VARS['gzipcompress'] : ( (!empty($HTTP_GET_VARS['gzipcompress'])) ? $HTTP_GET_VARS['gzipcompress'] : 0 ); - - $drop = (!empty($HTTP_POST_VARS['drop'])) ? intval($HTTP_POST_VARS['drop']) : ( (!empty($HTTP_GET_VARS['drop'])) ? intval($HTTP_GET_VARS['drop']) : 0 ); - - if(!empty($additional_tables)) - { - if(ereg(",", $additional_tables)) - { - $additional_tables = split(",", $additional_tables); - - for($i = 0; $i < count($additional_tables); $i++) - { - $tables[] = trim($additional_tables[$i]); - } - - } - else - { - $tables[] = trim($additional_tables); - } - } - - if( !isset($HTTP_POST_VARS['backupstart']) && !isset($HTTP_GET_VARS['backupstart'])) - { - include('./page_header_admin.'.$phpEx); - - $template->set_filenames(array( - "body" => "admin/db_utils_backup_body.tpl") - ); - $s_hidden_fields = ""; - - $template->assign_vars(array( - "L_DATABASE_BACKUP" => $lang['Database_Utilities'] . " : " . $lang['Backup'], - "L_BACKUP_EXPLAIN" => $lang['Backup_explain'], - "L_FULL_BACKUP" => $lang['Full_backup'], - "L_STRUCTURE_BACKUP" => $lang['Structure_backup'], - "L_DATA_BACKUP" => $lang['Data_backup'], - "L_ADDITIONAL_TABLES" => $lang['Additional_tables'], - "L_START_BACKUP" => $lang['Start_backup'], - "L_BACKUP_OPTIONS" => $lang['Backup_options'], - "L_GZIP_COMPRESS" => $lang['Gzip_compress'], - "L_NO" => $lang['No'], - "L_YES" => $lang['Yes'], - - "S_HIDDEN_FIELDS" => $s_hidden_fields, - "S_DBUTILS_ACTION" => append_sid("admin_db_utilities.$phpEx")) - ); - $template->pparse("body"); - - break; - - } - else if( !isset($HTTP_POST_VARS['startdownload']) && !isset($HTTP_GET_VARS['startdownload']) ) - { - if(is_array($additional_tables)) - { - $additional_tables = implode(',', $additional_tables); - } - $template->set_filenames(array( - "body" => "admin/admin_message_body.tpl") - ); - - $template->assign_vars(array( - "META" => '', - - "MESSAGE_TITLE" => $lang['Database_Utilities'] . " : " . $lang['Backup'], - "MESSAGE_TEXT" => $lang['Backup_download']) - ); - - include('./page_header_admin.'.$phpEx); - - $template->pparse("body"); - - include('./page_footer_admin.'.$phpEx); - - } - header("Pragma: no-cache"); - $do_gzip_compress = FALSE; - if( $gzipcompress ) - { - $phpver = phpversion(); - - if($phpver >= "4.0") - { - if(extension_loaded("zlib")) - { - $do_gzip_compress = TRUE; - } - } - } - if($do_gzip_compress) - { - @ob_start(); - @ob_implicit_flush(0); - header("Content-Type: application/x-gzip; name=\"phpbb_db_backup.sql.gz\""); - header("Content-disposition: attachment; filename=phpbb_db_backup.sql.gz"); - } - else - { - header("Content-Type: text/x-delimtext; name=\"phpbb_db_backup.sql\""); - header("Content-disposition: attachment; filename=phpbb_db_backup.sql"); - } - - // - // Build the sql script file... - // - echo "#\n"; - echo "# phpBB Backup Script\n"; - echo "# Dump of tables for $dbname\n"; - echo "#\n# DATE : " . gmdate("d-m-Y H:i:s", time()) . " GMT\n"; - echo "#\n"; - - if(SQL_LAYER == 'postgresql') - { - echo "\n" . pg_get_sequences("\n", $backup_type); - } - for($i = 0; $i < count($tables); $i++) - { - $table_name = $tables[$i]; - - switch (SQL_LAYER) - { - case 'postgresql': - $table_def_function = "get_table_def_postgresql"; - $table_content_function = "get_table_content_postgresql"; - break; - - case 'mysql': - case 'mysql4': - $table_def_function = "get_table_def_mysql"; - $table_content_function = "get_table_content_mysql"; - break; - } - - if($backup_type != 'data') - { - echo "#\n# TABLE: " . $table_prefix . $table_name . "\n#\n"; - echo $table_def_function($table_prefix . $table_name, "\n") . "\n"; - } - - if($backup_type != 'structure') - { - $table_content_function($table_prefix . $table_name, "output_table_content"); - } - } - - if($do_gzip_compress) - { - $Size = ob_get_length(); - $Crc = crc32(ob_get_contents()); - $contents = gzcompress(ob_get_contents()); - ob_end_clean(); - echo "\x1f\x8b\x08\x00\x00\x00\x00\x00".substr($contents, 0, strlen($contents) - 4).gzip_PrintFourChars($Crc).gzip_PrintFourChars($Size); - } - exit; - - break; - - case 'restore': - if(!isset($HTTP_POST_VARS['restore_start'])) - { - // - // Define Template files... - // - include('./page_header_admin.'.$phpEx); - - $template->set_filenames(array( - "body" => "admin/db_utils_restore_body.tpl") - ); - - $s_hidden_fields = ""; - - $template->assign_vars(array( - "L_DATABASE_RESTORE" => $lang['Database_Utilities'] . " : " . $lang['Restore'], - "L_RESTORE_EXPLAIN" => $lang['Restore_explain'], - "L_SELECT_FILE" => $lang['Select_file'], - "L_START_RESTORE" => $lang['Start_Restore'], - - "S_DBUTILS_ACTION" => append_sid("admin_db_utilities.$phpEx"), - "S_HIDDEN_FIELDS" => $s_hidden_fields) - ); - $template->pparse("body"); - - break; - - } - else - { - // - // Handle the file upload .... - // If no file was uploaded report an error... - // - $backup_file_name = (!empty($HTTP_POST_FILES['backup_file']['name'])) ? $HTTP_POST_FILES['backup_file']['name'] : ""; - $backup_file_tmpname = ($HTTP_POST_FILES['backup_file']['tmp_name'] != "none") ? $HTTP_POST_FILES['backup_file']['tmp_name'] : ""; - $backup_file_type = (!empty($HTTP_POST_FILES['backup_file']['type'])) ? $HTTP_POST_FILES['backup_file']['type'] : ""; - - if($backup_file_tmpname == "" || $backup_file_name == "") - { - message_die(GENERAL_MESSAGE, $lang['Restore_Error_no_file']); - } - // - // If I file was actually uploaded, check to make sure that we - // are actually passed the name of an uploaded file, and not - // a hackers attempt at getting us to process a local system - // file. - // - if( file_exists(phpbb_realpath($backup_file_tmpname)) ) - { - if( preg_match("/^(text\/[a-zA-Z]+)|(application\/(x\-)?gzip(\-compressed)?)|(application\/octet-stream)$/is", $backup_file_type) ) - { - if( preg_match("/\.gz$/is",$backup_file_name) ) - { - $do_gzip_compress = FALSE; - $phpver = phpversion(); - if($phpver >= "4.0") - { - if(extension_loaded("zlib")) - { - $do_gzip_compress = TRUE; - } - } - - if($do_gzip_compress) - { - $gz_ptr = gzopen($backup_file_tmpname, 'rb'); - $sql_query = ""; - while( !gzeof($gz_ptr) ) - { - $sql_query .= gzgets($gz_ptr, 100000); - } - } - else - { - message_die(GENERAL_ERROR, $lang['Restore_Error_decompress']); - } - } - else - { - $sql_query = fread(fopen($backup_file_tmpname, 'r'), filesize($backup_file_tmpname)); - } - // - // Comment this line out to see if this fixes the stuff... - // - //$sql_query = stripslashes($sql_query); - } - else - { - message_die(GENERAL_ERROR, $lang['Restore_Error_filename'] ." $backup_file_type $backup_file_name"); - } - } - else - { - message_die(GENERAL_ERROR, $lang['Restore_Error_uploading']); - } - - if($sql_query != "") - { - // Strip out sql comments... - $sql_query = remove_remarks($sql_query); - $pieces = split_sql_file($sql_query, ";"); - - $sql_count = count($pieces); - for($i = 0; $i < $sql_count; $i++) - { - $sql = trim($pieces[$i]); - - if(!empty($sql) and $sql[0] != "#") - { - if(VERBOSE == 1) - { - echo "Executing: $sql\n
"; - flush(); - } - - $result = $db->sql_query($sql); - - if(!$result && ( !(SQL_LAYER == 'postgresql' && eregi("drop table", $sql) ) ) ) - { - message_die(GENERAL_ERROR, "Error importing backup file", "", __LINE__, __FILE__, $sql); - } - } - } - } - - include('./page_header_admin.'.$phpEx); - - $template->set_filenames(array( - "body" => "admin/admin_message_body.tpl") - ); - - $message = $lang['Restore_success']; - - $template->assign_vars(array( - "MESSAGE_TITLE" => $lang['Database_Utilities'] . " : " . $lang['Restore'], - "MESSAGE_TEXT" => $message) - ); - - $template->pparse("body"); - break; - } - break; - } -} - -include('./page_footer_admin.'.$phpEx); - -?> diff --git a/phpBB2/admin/admin_disallow.php b/phpBB2/admin/admin_disallow.php deleted file mode 100644 index a620230..0000000 --- a/phpBB2/admin/admin_disallow.php +++ /dev/null @@ -1,146 +0,0 @@ -sql_query( $sql ); - if ( !$result ) - { - message_die(GENERAL_ERROR, "Could not add disallowed user.", "",__LINE__, __FILE__, $sql); - } - $message = $lang['Disallow_successful']; - } - - $message .= "

" . sprintf($lang['Click_return_disallowadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); -} -else if( isset($HTTP_POST_VARS['delete_name']) ) -{ - $disallowed_id = ( isset($HTTP_POST_VARS['disallowed_id']) ) ? intval( $HTTP_POST_VARS['disallowed_id'] ) : intval( $HTTP_GET_VARS['disallowed_id'] ); - - $sql = "DELETE FROM " . DISALLOW_TABLE . " - WHERE disallow_id = $disallowed_id"; - $result = $db->sql_query($sql); - if( !$result ) - { - message_die(GENERAL_ERROR, "Couldn't removed disallowed user.", "",__LINE__, __FILE__, $sql); - } - - $message .= $lang['Disallowed_deleted'] . "

" . sprintf($lang['Click_return_disallowadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - -} - -// -// Grab the current list of disallowed usernames... -// -$sql = "SELECT * - FROM " . DISALLOW_TABLE; -$result = $db->sql_query($sql); -if( !$result ) -{ - message_die(GENERAL_ERROR, "Couldn't get disallowed users.", "", __LINE__, __FILE__, $sql ); -} - -$disallowed = $db->sql_fetchrowset($result); - -// -// Ok now generate the info for the template, which will be put out no matter -// what mode we are in. -// -$disallow_select = ''; - -$template->set_filenames(array( - "body" => "admin/disallow_body.tpl") -); - -$template->assign_vars(array( - "S_DISALLOW_SELECT" => $disallow_select, - "S_FORM_ACTION" => append_sid("admin_disallow.$phpEx"), - - "L_INFO" => $output_info, - "L_DISALLOW_TITLE" => $lang['Disallow_control'], - "L_DISALLOW_EXPLAIN" => $lang['Disallow_explain'], - "L_DELETE" => $lang['Delete_disallow'], - "L_DELETE_DISALLOW" => $lang['Delete_disallow_title'], - "L_DELETE_EXPLAIN" => $lang['Delete_disallow_explain'], - "L_ADD" => $lang['Add_disallow'], - "L_ADD_DISALLOW" => $lang['Add_disallow_title'], - "L_ADD_EXPLAIN" => $lang['Add_disallow_explain'], - "L_USERNAME" => $lang['Username']) -); - -$template->pparse("body"); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/admin/admin_forum_prune.php b/phpBB2/admin/admin_forum_prune.php deleted file mode 100644 index 50cc397..0000000 --- a/phpBB2/admin/admin_forum_prune.php +++ /dev/null @@ -1,199 +0,0 @@ -sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not obtain list of forums for pruning', '', __LINE__, __FILE__, $sql); -} - -$forum_rows = array(); -while( $row = $db->sql_fetchrow($result) ) -{ - $forum_rows[] = $row; -} - -// -// Check for submit to be equal to Prune. If so then proceed with the pruning. -// -if( isset($HTTP_POST_VARS['doprune']) ) -{ - $prunedays = ( isset($HTTP_POST_VARS['prunedays']) ) ? intval($HTTP_POST_VARS['prunedays']) : 0; - - // Convert days to seconds for timestamp functions... - $prunedate = time() - ( $prunedays * 86400 ); - - $template->set_filenames(array( - 'body' => 'admin/forum_prune_result_body.tpl') - ); - - for($i = 0; $i < count($forum_rows); $i++) - { - $p_result = prune($forum_rows[$i]['forum_id'], $prunedate); - sync('forum', $forum_rows[$i]['forum_id']); - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('prune_results', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'FORUM_NAME' => $forum_rows[$i]['forum_name'], - 'FORUM_TOPICS' => $p_result['topics'], - 'FORUM_POSTS' => $p_result['posts']) - ); - } - - $template->assign_vars(array( - 'L_FORUM_PRUNE' => $lang['Forum_Prune'], - 'L_FORUM' => $lang['Forum'], - 'L_TOPICS_PRUNED' => $lang['Topics_pruned'], - 'L_POSTS_PRUNED' => $lang['Posts_pruned'], - 'L_PRUNE_RESULT' => $lang['Prune_success']) - ); -} -else -{ - // - // If they haven't selected a forum for pruning yet then - // display a select box to use for pruning. - // - if( empty($HTTP_POST_VARS[POST_FORUM_URL]) ) - { - // - // Output a selection table if no forum id has been specified. - // - $template->set_filenames(array( - 'body' => 'admin/forum_prune_select_body.tpl') - ); - - $select_list = ''; - - // - // Assign the template variables. - // - $template->assign_vars(array( - 'L_FORUM_PRUNE' => $lang['Forum_Prune'], - 'L_SELECT_FORUM' => $lang['Select_a_Forum'], - 'L_LOOK_UP' => $lang['Look_up_Forum'], - - 'S_FORUMPRUNE_ACTION' => append_sid("admin_forum_prune.$phpEx"), - 'S_FORUMS_SELECT' => $select_list) - ); - } - else - { - $forum_id = intval($HTTP_POST_VARS[POST_FORUM_URL]); - - // - // Output the form to retrieve Prune information. - // - $template->set_filenames(array( - 'body' => 'admin/forum_prune_body.tpl') - ); - - $forum_name = ( $forum_id == -1 ) ? $lang['All_Forums'] : $forum_rows[0]['forum_name']; - - $prune_data = $lang['Prune_topics_not_posted'] . " "; - $prune_data .= ' ' . $lang['Days']; - - $hidden_input = ''; - - // - // Assign the template variables. - // - $template->assign_vars(array( - 'FORUM_NAME' => $forum_name, - - 'L_FORUM' => $lang['Forum'], - 'L_FORUM_PRUNE' => $lang['Forum_Prune'], - 'L_FORUM_PRUNE_EXPLAIN' => $lang['Forum_Prune_explain'], - 'L_DO_PRUNE' => $lang['Do_Prune'], - - 'S_FORUMPRUNE_ACTION' => append_sid("admin_forum_prune.$phpEx"), - 'S_PRUNE_DATA' => $prune_data, - 'S_HIDDEN_VARS' => $hidden_input) - ); - } -} -// -// Actually output the page here. -// -$template->pparse('body'); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/admin/admin_forumauth.php b/phpBB2/admin/admin_forumauth.php deleted file mode 100644 index 12f540e..0000000 --- a/phpBB2/admin/admin_forumauth.php +++ /dev/null @@ -1,328 +0,0 @@ - array(AUTH_ALL, AUTH_ALL, AUTH_ALL, AUTH_ALL, AUTH_REG, AUTH_REG, AUTH_MOD, AUTH_MOD, AUTH_REG, AUTH_REG), - 1 => array(AUTH_ALL, AUTH_ALL, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_MOD, AUTH_MOD, AUTH_REG, AUTH_REG), - 2 => array(AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_MOD, AUTH_MOD, AUTH_REG, AUTH_REG), - 3 => array(AUTH_ALL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_MOD, AUTH_ACL, AUTH_ACL), - 4 => array(AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_MOD, AUTH_ACL, AUTH_ACL), - 5 => array(AUTH_ALL, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD), - 6 => array(AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD), -); - -$simple_auth_types = array($lang['Public'], $lang['Registered'], $lang['Registered'] . ' [' . $lang['Hidden'] . ']', $lang['Private'], $lang['Private'] . ' [' . $lang['Hidden'] . ']', $lang['Moderators'], $lang['Moderators'] . ' [' . $lang['Hidden'] . ']'); - -$forum_auth_fields = array('auth_view', 'auth_read', 'auth_post', 'auth_reply', 'auth_edit', 'auth_delete', 'auth_sticky', 'auth_announce', 'auth_vote', 'auth_pollcreate'); - -$field_names = array( - 'auth_view' => $lang['View'], - 'auth_read' => $lang['Read'], - 'auth_post' => $lang['Post'], - 'auth_reply' => $lang['Reply'], - 'auth_edit' => $lang['Edit'], - 'auth_delete' => $lang['Delete'], - 'auth_sticky' => $lang['Sticky'], - 'auth_announce' => $lang['Announce'], - 'auth_vote' => $lang['Vote'], - 'auth_pollcreate' => $lang['Pollcreate']); - -$forum_auth_levels = array('ALL', 'REG', 'PRIVATE', 'MOD', 'ADMIN'); -$forum_auth_const = array(AUTH_ALL, AUTH_REG, AUTH_ACL, AUTH_MOD, AUTH_ADMIN); - -if(isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_URL])) -{ - $forum_id = (isset($HTTP_POST_VARS[POST_FORUM_URL])) ? intval($HTTP_POST_VARS[POST_FORUM_URL]) : intval($HTTP_GET_VARS[POST_FORUM_URL]); - $forum_sql = "AND forum_id = $forum_id"; -} -else -{ - unset($forum_id); - $forum_sql = ''; -} - -if( isset($HTTP_GET_VARS['adv']) ) -{ - $adv = intval($HTTP_GET_VARS['adv']); -} -else -{ - unset($adv); -} - -// -// Start program proper -// -if( isset($HTTP_POST_VARS['submit']) ) -{ - $sql = ''; - - if(!empty($forum_id)) - { - if(isset($HTTP_POST_VARS['simpleauth'])) - { - $simple_ary = $simple_auth_ary[intval($HTTP_POST_VARS['simpleauth'])]; - - for($i = 0; $i < count($simple_ary); $i++) - { - $sql .= ( ( $sql != '' ) ? ', ' : '' ) . $forum_auth_fields[$i] . ' = ' . $simple_ary[$i]; - } - - if (is_array($simple_ary)) - { - $sql = "UPDATE " . FORUMS_TABLE . " SET $sql WHERE forum_id = $forum_id"; - } - } - else - { - for($i = 0; $i < count($forum_auth_fields); $i++) - { - $value = intval($HTTP_POST_VARS[$forum_auth_fields[$i]]); - - if ( $forum_auth_fields[$i] == 'auth_vote' ) - { - if ( $HTTP_POST_VARS['auth_vote'] == AUTH_ALL ) - { - $value = AUTH_REG; - } - } - - $sql .= ( ( $sql != '' ) ? ', ' : '' ) .$forum_auth_fields[$i] . ' = ' . $value; - } - - $sql = "UPDATE " . FORUMS_TABLE . " SET $sql WHERE forum_id = $forum_id"; - } - - if ( $sql != '' ) - { - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update auth table', '', __LINE__, __FILE__, $sql); - } - } - - $forum_sql = ''; - $adv = 0; - } - - $template->assign_vars(array( - 'META' => '') - ); - $message = $lang['Forum_auth_updated'] . '

' . sprintf($lang['Click_return_forumauth'], '', ""); - message_die(GENERAL_MESSAGE, $message); - -} // End of submit - -// -// Get required information, either all forums if -// no id was specified or just the requsted if it -// was -// -$sql = "SELECT f.* - FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c - WHERE c.cat_id = f.cat_id - $forum_sql - ORDER BY c.cat_order ASC, f.forum_order ASC"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, "Couldn't obtain forum list", "", __LINE__, __FILE__, $sql); -} - -$forum_rows = $db->sql_fetchrowset($result); -$db->sql_freeresult($result); - -if( empty($forum_id) ) -{ - // - // Output the selection table if no forum id was - // specified - // - $template->set_filenames(array( - 'body' => 'admin/auth_select_body.tpl') - ); - - $select_list = ''; - - $template->assign_vars(array( - 'L_AUTH_TITLE' => $lang['Auth_Control_Forum'], - 'L_AUTH_EXPLAIN' => $lang['Forum_auth_explain'], - 'L_AUTH_SELECT' => $lang['Select_a_Forum'], - 'L_LOOK_UP' => $lang['Look_up_Forum'], - - 'S_AUTH_ACTION' => append_sid("admin_forumauth.$phpEx"), - 'S_AUTH_SELECT' => $select_list) - ); - -} -else -{ - // - // Output the authorisation details if an id was - // specified - // - $template->set_filenames(array( - 'body' => 'admin/auth_forum_body.tpl') - ); - - $forum_name = $forum_rows[0]['forum_name']; - - @reset($simple_auth_ary); - while( list($key, $auth_levels) = each($simple_auth_ary)) - { - $matched = 1; - for($k = 0; $k < count($auth_levels); $k++) - { - $matched_type = $key; - - if ( $forum_rows[0][$forum_auth_fields[$k]] != $auth_levels[$k] ) - { - $matched = 0; - } - } - - if ( $matched ) - { - break; - } - } - - // - // If we didn't get a match above then we - // automatically switch into 'advanced' mode - // - if ( !isset($adv) && !$matched ) - { - $adv = 1; - } - - $s_column_span == 0; - - if ( empty($adv) ) - { - $simple_auth = ''; - - $template->assign_block_vars('forum_auth_titles', array( - 'CELL_TITLE' => $lang['Simple_mode']) - ); - $template->assign_block_vars('forum_auth_data', array( - 'S_AUTH_LEVELS_SELECT' => $simple_auth) - ); - - $s_column_span++; - } - else - { - // - // Output values of individual - // fields - // - for($j = 0; $j < count($forum_auth_fields); $j++) - { - $custom_auth[$j] = '  '; - - $cell_title = $field_names[$forum_auth_fields[$j]]; - - $template->assign_block_vars('forum_auth_titles', array( - 'CELL_TITLE' => $cell_title) - ); - $template->assign_block_vars('forum_auth_data', array( - 'S_AUTH_LEVELS_SELECT' => $custom_auth[$j]) - ); - - $s_column_span++; - } - } - - $adv_mode = ( empty($adv) ) ? '1' : '0'; - $switch_mode = append_sid("admin_forumauth.$phpEx?" . POST_FORUM_URL . "=" . $forum_id . "&adv=". $adv_mode); - $switch_mode_text = ( empty($adv) ) ? $lang['Advanced_mode'] : $lang['Simple_mode']; - $u_switch_mode = '' . $switch_mode_text . ''; - - $s_hidden_fields = ''; - - $template->assign_vars(array( - 'FORUM_NAME' => $forum_name, - - 'L_FORUM' => $lang['Forum'], - 'L_AUTH_TITLE' => $lang['Auth_Control_Forum'], - 'L_AUTH_EXPLAIN' => $lang['Forum_auth_explain'], - 'L_SUBMIT' => $lang['Submit'], - 'L_RESET' => $lang['Reset'], - - 'U_SWITCH_MODE' => $u_switch_mode, - - 'S_FORUMAUTH_ACTION' => append_sid("admin_forumauth.$phpEx"), - 'S_COLUMN_SPAN' => $s_column_span, - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); - -} - -include('./page_header_admin.'.$phpEx); - -$template->pparse('body'); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/admin/admin_forums.php b/phpBB2/admin/admin_forums.php deleted file mode 100644 index 9974eda..0000000 --- a/phpBB2/admin/admin_forums.php +++ /dev/null @@ -1,1028 +0,0 @@ - AUTH_ALL, - "auth_read" => AUTH_ALL, - "auth_post" => AUTH_REG, - "auth_reply" => AUTH_REG, - "auth_edit" => AUTH_REG, - "auth_delete" => AUTH_REG, - "auth_sticky" => AUTH_MOD, - "auth_announce" => AUTH_MOD, - "auth_vote" => AUTH_REG, - "auth_pollcreate" => AUTH_REG -); - -// -// Mode setting -// -if( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) ) -{ - $mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; - $mode = htmlspecialchars($mode); -} -else -{ - $mode = ""; -} - -// ------------------ -// Begin function block -// -function get_info($mode, $id) -{ - global $db; - - switch($mode) - { - case 'category': - $table = CATEGORIES_TABLE; - $idfield = 'cat_id'; - $namefield = 'cat_title'; - break; - - case 'forum': - $table = FORUMS_TABLE; - $idfield = 'forum_id'; - $namefield = 'forum_name'; - break; - - default: - message_die(GENERAL_ERROR, "Wrong mode for generating select list", "", __LINE__, __FILE__); - break; - } - $sql = "SELECT count(*) as total - FROM $table"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get Forum/Category information", "", __LINE__, __FILE__, $sql); - } - $count = $db->sql_fetchrow($result); - $count = $count['total']; - - $sql = "SELECT * - FROM $table - WHERE $idfield = $id"; - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get Forum/Category information", "", __LINE__, __FILE__, $sql); - } - - if( $db->sql_numrows($result) != 1 ) - { - message_die(GENERAL_ERROR, "Forum/Category doesn't exist or multiple forums/categories with ID $id", "", __LINE__, __FILE__); - } - - $return = $db->sql_fetchrow($result); - $return['number'] = $count; - return $return; -} - -function get_list($mode, $id, $select) -{ - global $db; - - switch($mode) - { - case 'category': - $table = CATEGORIES_TABLE; - $idfield = 'cat_id'; - $namefield = 'cat_title'; - break; - - case 'forum': - $table = FORUMS_TABLE; - $idfield = 'forum_id'; - $namefield = 'forum_name'; - break; - - default: - message_die(GENERAL_ERROR, "Wrong mode for generating select list", "", __LINE__, __FILE__); - break; - } - - $sql = "SELECT * - FROM $table"; - if( $select == 0 ) - { - $sql .= " WHERE $idfield <> $id"; - } - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get list of Categories/Forums", "", __LINE__, __FILE__, $sql); - } - - $cat_list = ""; - - while( $row = $db->sql_fetchrow($result) ) - { - $s = ""; - if ($row[$idfield] == $id) - { - $s = " selected=\"selected\""; - } - $catlist .= "\n"; - } - - return($catlist); -} - -function renumber_order($mode, $cat = 0) -{ - global $db; - - switch($mode) - { - case 'category': - $table = CATEGORIES_TABLE; - $idfield = 'cat_id'; - $orderfield = 'cat_order'; - $cat = 0; - break; - - case 'forum': - $table = FORUMS_TABLE; - $idfield = 'forum_id'; - $orderfield = 'forum_order'; - $catfield = 'cat_id'; - break; - - default: - message_die(GENERAL_ERROR, "Wrong mode for generating select list", "", __LINE__, __FILE__); - break; - } - - $sql = "SELECT * FROM $table"; - if( $cat != 0) - { - $sql .= " WHERE $catfield = $cat"; - } - $sql .= " ORDER BY $orderfield ASC"; - - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get list of Categories", "", __LINE__, __FILE__, $sql); - } - - $i = 10; - $inc = 10; - - while( $row = $db->sql_fetchrow($result) ) - { - $sql = "UPDATE $table - SET $orderfield = $i - WHERE $idfield = " . $row[$idfield]; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't update order fields", "", __LINE__, __FILE__, $sql); - } - $i += 10; - } - -} -// -// End function block -// ------------------ - -// -// Begin program proper -// -if( isset($HTTP_POST_VARS['addforum']) || isset($HTTP_POST_VARS['addcategory']) ) -{ - $mode = ( isset($HTTP_POST_VARS['addforum']) ) ? "addforum" : "addcat"; - - if( $mode == "addforum" ) - { - list($cat_id) = each($HTTP_POST_VARS['addforum']); - $cat_id = intval($cat_id); - // - // stripslashes needs to be run on this because slashes are added when the forum name is posted - // - $forumname = stripslashes($HTTP_POST_VARS['forumname'][$cat_id]); - } -} - -if( !empty($mode) ) -{ - switch($mode) - { - case 'addforum': - case 'editforum': - // - // Show form to create/modify a forum - // - if ($mode == 'editforum') - { - // $newmode determines if we are going to INSERT or UPDATE after posting? - - $l_title = $lang['Edit_forum']; - $newmode = 'modforum'; - $buttonvalue = $lang['Update']; - - $forum_id = intval($HTTP_GET_VARS[POST_FORUM_URL]); - - $row = get_info('forum', $forum_id); - - $cat_id = $row['cat_id']; - $forumname = $row['forum_name']; - $forumdesc = $row['forum_desc']; - $forumstatus = $row['forum_status']; - - // - // start forum prune stuff. - // - if( $row['prune_enable'] ) - { - $prune_enabled = "checked=\"checked\""; - $sql = "SELECT * - FROM " . PRUNE_TABLE . " - WHERE forum_id = $forum_id"; - if(!$pr_result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Auto-Prune: Couldn't read auto_prune table.", __LINE__, __FILE__); - } - - $pr_row = $db->sql_fetchrow($pr_result); - } - else - { - $prune_enabled = ''; - } - } - else - { - $l_title = $lang['Create_forum']; - $newmode = 'createforum'; - $buttonvalue = $lang['Create_forum']; - - $forumdesc = ''; - $forumstatus = FORUM_UNLOCKED; - $forum_id = ''; - $prune_enabled = ''; - } - - $catlist = get_list('category', $cat_id, TRUE); - - $forumstatus == ( FORUM_LOCKED ) ? $forumlocked = "selected=\"selected\"" : $forumunlocked = "selected=\"selected\""; - - // These two options ($lang['Status_unlocked'] and $lang['Status_locked']) seem to be missing from - // the language files. - $lang['Status_unlocked'] = isset($lang['Status_unlocked']) ? $lang['Status_unlocked'] : 'Unlocked'; - $lang['Status_locked'] = isset($lang['Status_locked']) ? $lang['Status_locked'] : 'Locked'; - - $statuslist = "\n"; - $statuslist .= "\n"; - - $template->set_filenames(array( - "body" => "admin/forum_edit_body.tpl") - ); - - $s_hidden_fields = ''; - - $template->assign_vars(array( - 'S_FORUM_ACTION' => append_sid("admin_forums.$phpEx"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_SUBMIT_VALUE' => $buttonvalue, - 'S_CAT_LIST' => $catlist, - 'S_STATUS_LIST' => $statuslist, - 'S_PRUNE_ENABLED' => $prune_enabled, - - 'L_FORUM_TITLE' => $l_title, - 'L_FORUM_EXPLAIN' => $lang['Forum_edit_delete_explain'], - 'L_FORUM_SETTINGS' => $lang['Forum_settings'], - 'L_FORUM_NAME' => $lang['Forum_name'], - 'L_CATEGORY' => $lang['Category'], - 'L_FORUM_DESCRIPTION' => $lang['Forum_desc'], - 'L_FORUM_STATUS' => $lang['Forum_status'], - 'L_AUTO_PRUNE' => $lang['Forum_pruning'], - 'L_ENABLED' => $lang['Enabled'], - 'L_PRUNE_DAYS' => $lang['prune_days'], - 'L_PRUNE_FREQ' => $lang['prune_freq'], - 'L_DAYS' => $lang['Days'], - - 'PRUNE_DAYS' => ( isset($pr_row['prune_days']) ) ? $pr_row['prune_days'] : 7, - 'PRUNE_FREQ' => ( isset($pr_row['prune_freq']) ) ? $pr_row['prune_freq'] : 1, - 'FORUM_NAME' => $forumname, - 'DESCRIPTION' => $forumdesc) - ); - $template->pparse("body"); - break; - - case 'createforum': - // - // Create a forum in the DB - // - if( trim($HTTP_POST_VARS['forumname']) == "" ) - { - message_die(GENERAL_ERROR, "Can't create a forum without a name"); - } - - $sql = "SELECT MAX(forum_order) AS max_order - FROM " . FORUMS_TABLE . " - WHERE cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]); - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get order number from forums table", "", __LINE__, __FILE__, $sql); - } - $row = $db->sql_fetchrow($result); - - $max_order = $row['max_order']; - $next_order = $max_order + 10; - - $sql = "SELECT MAX(forum_id) AS max_id - FROM " . FORUMS_TABLE; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get order number from forums table", "", __LINE__, __FILE__, $sql); - } - $row = $db->sql_fetchrow($result); - - $max_id = $row['max_id']; - $next_id = $max_id + 1; - - // - // Default permissions of public :: - // - $field_sql = ""; - $value_sql = ""; - while( list($field, $value) = each($forum_auth_ary) ) - { - $field_sql .= ", $field"; - $value_sql .= ", $value"; - - } - - // There is no problem having duplicate forum names so we won't check for it. - $sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable" . $field_sql . ") - VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't insert row in forums table", "", __LINE__, __FILE__, $sql); - } - - if( $HTTP_POST_VARS['prune_enable'] ) - { - - if( $HTTP_POST_VARS['prune_days'] == "" || $HTTP_POST_VARS['prune_freq'] == "") - { - message_die(GENERAL_MESSAGE, $lang['Set_prune_data']); - } - - $sql = "INSERT INTO " . PRUNE_TABLE . " (forum_id, prune_days, prune_freq) - VALUES('" . $next_id . "', " . intval($HTTP_POST_VARS['prune_days']) . ", " . intval($HTTP_POST_VARS['prune_freq']) . ")"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't insert row in prune table", "", __LINE__, __FILE__, $sql); - } - } - - $message = $lang['Forums_updated'] . "

" . sprintf($lang['Click_return_forumadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - break; - - case 'modforum': - // Modify a forum in the DB - if( isset($HTTP_POST_VARS['prune_enable'])) - { - if( $HTTP_POST_VARS['prune_enable'] != 1 ) - { - $HTTP_POST_VARS['prune_enable'] = 0; - } - } - - $sql = "UPDATE " . FORUMS_TABLE . " - SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . " - WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]); - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't update forum information", "", __LINE__, __FILE__, $sql); - } - - if( $HTTP_POST_VARS['prune_enable'] == 1 ) - { - if( $HTTP_POST_VARS['prune_days'] == "" || $HTTP_POST_VARS['prune_freq'] == "" ) - { - message_die(GENERAL_MESSAGE, $lang['Set_prune_data']); - } - - $sql = "SELECT * - FROM " . PRUNE_TABLE . " - WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]); - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get forum Prune Information","",__LINE__, __FILE__, $sql); - } - - if( $db->sql_numrows($result) > 0 ) - { - $sql = "UPDATE " . PRUNE_TABLE . " - SET prune_days = " . intval($HTTP_POST_VARS['prune_days']) . ", prune_freq = " . intval($HTTP_POST_VARS['prune_freq']) . " - WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]); - } - else - { - $sql = "INSERT INTO " . PRUNE_TABLE . " (forum_id, prune_days, prune_freq) - VALUES(" . intval($HTTP_POST_VARS[POST_FORUM_URL]) . ", " . intval($HTTP_POST_VARS['prune_days']) . ", " . intval($HTTP_POST_VARS['prune_freq']) . ")"; - } - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't Update Forum Prune Information","",__LINE__, __FILE__, $sql); - } - } - - $message = $lang['Forums_updated'] . "

" . sprintf($lang['Click_return_forumadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - break; - - case 'addcat': - // Create a category in the DB - if( trim($HTTP_POST_VARS['categoryname']) == '') - { - message_die(GENERAL_ERROR, "Can't create a category without a name"); - } - - $sql = "SELECT MAX(cat_order) AS max_order - FROM " . CATEGORIES_TABLE; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get order number from categories table", "", __LINE__, __FILE__, $sql); - } - $row = $db->sql_fetchrow($result); - - $max_order = $row['max_order']; - $next_order = $max_order + 10; - - // - // There is no problem having duplicate forum names so we won't check for it. - // - $sql = "INSERT INTO " . CATEGORIES_TABLE . " (cat_title, cat_order) - VALUES ('" . str_replace("\'", "''", $HTTP_POST_VARS['categoryname']) . "', $next_order)"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't insert row in categories table", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Forums_updated'] . "

" . sprintf($lang['Click_return_forumadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - break; - - case 'editcat': - // - // Show form to edit a category - // - $newmode = 'modcat'; - $buttonvalue = $lang['Update']; - - $cat_id = intval($HTTP_GET_VARS[POST_CAT_URL]); - - $row = get_info('category', $cat_id); - $cat_title = $row['cat_title']; - - $template->set_filenames(array( - "body" => "admin/category_edit_body.tpl") - ); - - $s_hidden_fields = ''; - - $template->assign_vars(array( - 'CAT_TITLE' => $cat_title, - - 'L_EDIT_CATEGORY' => $lang['Edit_Category'], - 'L_EDIT_CATEGORY_EXPLAIN' => $lang['Edit_Category_explain'], - 'L_CATEGORY' => $lang['Category'], - - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_SUBMIT_VALUE' => $buttonvalue, - 'S_FORUM_ACTION' => append_sid("admin_forums.$phpEx")) - ); - - $template->pparse("body"); - break; - - case 'modcat': - // Modify a category in the DB - $sql = "UPDATE " . CATEGORIES_TABLE . " - SET cat_title = '" . str_replace("\'", "''", $HTTP_POST_VARS['cat_title']) . "' - WHERE cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]); - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't update forum information", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Forums_updated'] . "

" . sprintf($lang['Click_return_forumadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - break; - - case 'deleteforum': - // Show form to delete a forum - $forum_id = intval($HTTP_GET_VARS[POST_FORUM_URL]); - - $select_to = ''; - - $buttonvalue = $lang['Move_and_Delete']; - - $newmode = 'movedelforum'; - - $foruminfo = get_info('forum', $forum_id); - $name = $foruminfo['forum_name']; - - $template->set_filenames(array( - "body" => "admin/forum_delete_body.tpl") - ); - - $s_hidden_fields = ''; - - $template->assign_vars(array( - 'NAME' => $name, - - 'L_FORUM_DELETE' => $lang['Forum_delete'], - 'L_FORUM_DELETE_EXPLAIN' => $lang['Forum_delete_explain'], - 'L_MOVE_CONTENTS' => $lang['Move_contents'], - 'L_FORUM_NAME' => $lang['Forum_name'], - - "S_HIDDEN_FIELDS" => $s_hidden_fields, - 'S_FORUM_ACTION' => append_sid("admin_forums.$phpEx"), - 'S_SELECT_TO' => $select_to, - 'S_SUBMIT_VALUE' => $buttonvalue) - ); - - $template->pparse("body"); - break; - - case 'movedelforum': - // - // Move or delete a forum in the DB - // - $from_id = intval($HTTP_POST_VARS['from_id']); - $to_id = intval($HTTP_POST_VARS['to_id']); - $delete_old = intval($HTTP_POST_VARS['delete_old']); - - // Either delete or move all posts in a forum - if($to_id == -1) - { - // Delete polls in this forum - $sql = "SELECT v.vote_id - FROM " . VOTE_DESC_TABLE . " v, " . TOPICS_TABLE . " t - WHERE t.forum_id = $from_id - AND v.topic_id = t.topic_id"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, "Couldn't obtain list of vote ids", "", __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - $vote_ids = ''; - do - { - $vote_ids = (($vote_ids != '') ? ', ' : '') . $row['vote_id']; - } - while ($row = $db->sql_fetchrow($result)); - - $sql = "DELETE FROM " . VOTE_DESC_TABLE . " - WHERE vote_id IN ($vote_ids)"; - $db->sql_query($sql); - - $sql = "DELETE FROM " . VOTE_RESULTS_TABLE . " - WHERE vote_id IN ($vote_ids)"; - $db->sql_query($sql); - - $sql = "DELETE FROM " . VOTE_USERS_TABLE . " - WHERE vote_id IN ($vote_ids)"; - $db->sql_query($sql); - } - $db->sql_freeresult($result); - - include($phpbb_root_path . "includes/prune.$phpEx"); - prune($from_id, 0, true); // Delete everything from forum - } - else - { - $sql = "SELECT * - FROM " . FORUMS_TABLE . " - WHERE forum_id IN ($from_id, $to_id)"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't verify existence of forums", "", __LINE__, __FILE__, $sql); - } - - if($db->sql_numrows($result) != 2) - { - message_die(GENERAL_ERROR, "Ambiguous forum ID's", "", __LINE__, __FILE__); - } - $sql = "UPDATE " . TOPICS_TABLE . " - SET forum_id = $to_id - WHERE forum_id = $from_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't move topics to other forum", "", __LINE__, __FILE__, $sql); - } - $sql = "UPDATE " . POSTS_TABLE . " - SET forum_id = $to_id - WHERE forum_id = $from_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't move posts to other forum", "", __LINE__, __FILE__, $sql); - } - sync('forum', $to_id); - } - - // Alter Mod level if appropriate - 2.0.4 - $sql = "SELECT ug.user_id - FROM " . AUTH_ACCESS_TABLE . " a, " . USER_GROUP_TABLE . " ug - WHERE a.forum_id <> $from_id - AND a.auth_mod = 1 - AND ug.group_id = a.group_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain moderator list", "", __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - $user_ids = ''; - do - { - $user_ids .= (($user_ids != '') ? ', ' : '' ) . $row['user_id']; - } - while ($row = $db->sql_fetchrow($result)); - - $sql = "SELECT ug.user_id - FROM " . AUTH_ACCESS_TABLE . " a, " . USER_GROUP_TABLE . " ug - WHERE a.forum_id = $from_id - AND a.auth_mod = 1 - AND ug.group_id = a.group_id - AND ug.user_id NOT IN ($user_ids)"; - if( !$result2 = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain moderator list", "", __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result2)) - { - $user_ids = ''; - do - { - $user_ids .= (($user_ids != '') ? ', ' : '' ) . $row['user_id']; - } - while ($row = $db->sql_fetchrow($result2)); - - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . USER . " - WHERE user_id IN ($user_ids) - AND user_level <> " . ADMIN; - $db->sql_query($sql); - } - $db->sql_freeresult($result); - - } - $db->sql_freeresult($result2); - - $sql = "DELETE FROM " . FORUMS_TABLE . " - WHERE forum_id = $from_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete forum", "", __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " - WHERE forum_id = $from_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete forum", "", __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . PRUNE_TABLE . " - WHERE forum_id = $from_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete forum prune information!", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Forums_updated'] . "

" . sprintf($lang['Click_return_forumadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - break; - - case 'deletecat': - // - // Show form to delete a category - // - $cat_id = intval($HTTP_GET_VARS[POST_CAT_URL]); - - $buttonvalue = $lang['Move_and_Delete']; - $newmode = 'movedelcat'; - $catinfo = get_info('category', $cat_id); - $name = $catinfo['cat_title']; - - if ($catinfo['number'] == 1) - { - $sql = "SELECT count(*) as total - FROM ". FORUMS_TABLE; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get Forum count", "", __LINE__, __FILE__, $sql); - } - $count = $db->sql_fetchrow($result); - $count = $count['total']; - - if ($count > 0) - { - message_die(GENERAL_ERROR, $lang['Must_delete_forums']); - } - else - { - $select_to = $lang['Nowhere_to_move']; - } - } - else - { - $select_to = ''; - } - - $template->set_filenames(array( - "body" => "admin/forum_delete_body.tpl") - ); - - $s_hidden_fields = ''; - - $template->assign_vars(array( - 'NAME' => $name, - - 'L_FORUM_DELETE' => $lang['Forum_delete'], - 'L_FORUM_DELETE_EXPLAIN' => $lang['Forum_delete_explain'], - 'L_MOVE_CONTENTS' => $lang['Move_contents'], - 'L_FORUM_NAME' => $lang['Forum_name'], - - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_FORUM_ACTION' => append_sid("admin_forums.$phpEx"), - 'S_SELECT_TO' => $select_to, - 'S_SUBMIT_VALUE' => $buttonvalue) - ); - - $template->pparse("body"); - break; - - case 'movedelcat': - // - // Move or delete a category in the DB - // - $from_id = intval($HTTP_POST_VARS['from_id']); - $to_id = intval($HTTP_POST_VARS['to_id']); - - if (!empty($to_id)) - { - $sql = "SELECT * - FROM " . CATEGORIES_TABLE . " - WHERE cat_id IN ($from_id, $to_id)"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't verify existence of categories", "", __LINE__, __FILE__, $sql); - } - if($db->sql_numrows($result) != 2) - { - message_die(GENERAL_ERROR, "Ambiguous category ID's", "", __LINE__, __FILE__); - } - - $sql = "UPDATE " . FORUMS_TABLE . " - SET cat_id = $to_id - WHERE cat_id = $from_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't move forums to other category", "", __LINE__, __FILE__, $sql); - } - } - - $sql = "DELETE FROM " . CATEGORIES_TABLE ." - WHERE cat_id = $from_id"; - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete category", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Forums_updated'] . "

" . sprintf($lang['Click_return_forumadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - break; - - case 'forum_order': - // - // Change order of forums in the DB - // - $move = intval($HTTP_GET_VARS['move']); - $forum_id = intval($HTTP_GET_VARS[POST_FORUM_URL]); - - $forum_info = get_info('forum', $forum_id); - - $cat_id = $forum_info['cat_id']; - - $sql = "UPDATE " . FORUMS_TABLE . " - SET forum_order = forum_order + $move - WHERE forum_id = $forum_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't change category order", "", __LINE__, __FILE__, $sql); - } - - renumber_order('forum', $forum_info['cat_id']); - $show_index = TRUE; - - break; - - case 'cat_order': - // - // Change order of categories in the DB - // - $move = intval($HTTP_GET_VARS['move']); - $cat_id = intval($HTTP_GET_VARS[POST_CAT_URL]); - - $sql = "UPDATE " . CATEGORIES_TABLE . " - SET cat_order = cat_order + $move - WHERE cat_id = $cat_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't change category order", "", __LINE__, __FILE__, $sql); - } - - renumber_order('category'); - $show_index = TRUE; - - break; - - case 'forum_sync': - sync('forum', intval($HTTP_GET_VARS[POST_FORUM_URL])); - $show_index = TRUE; - - break; - - default: - message_die(GENERAL_MESSAGE, $lang['No_mode']); - break; - } - - if ($show_index != TRUE) - { - include('./page_footer_admin.'.$phpEx); - exit; - } -} - -// -// Start page proper -// -$template->set_filenames(array( - "body" => "admin/forum_admin_body.tpl") -); - -$template->assign_vars(array( - 'S_FORUM_ACTION' => append_sid("admin_forums.$phpEx"), - 'L_FORUM_TITLE' => $lang['Forum_admin'], - 'L_FORUM_EXPLAIN' => $lang['Forum_admin_explain'], - 'L_CREATE_FORUM' => $lang['Create_forum'], - 'L_CREATE_CATEGORY' => $lang['Create_category'], - 'L_EDIT' => $lang['Edit'], - 'L_DELETE' => $lang['Delete'], - 'L_MOVE_UP' => $lang['Move_up'], - 'L_MOVE_DOWN' => $lang['Move_down'], - 'L_RESYNC' => $lang['Resync']) -); - -$sql = "SELECT cat_id, cat_title, cat_order - FROM " . CATEGORIES_TABLE . " - ORDER BY cat_order"; -if( !$q_categories = $db->sql_query($sql) ) -{ - message_die(GENERAL_ERROR, "Could not query categories list", "", __LINE__, __FILE__, $sql); -} - -if( $total_categories = $db->sql_numrows($q_categories) ) -{ - $category_rows = $db->sql_fetchrowset($q_categories); - - $sql = "SELECT * - FROM " . FORUMS_TABLE . " - ORDER BY cat_id, forum_order"; - if(!$q_forums = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not query forums information", "", __LINE__, __FILE__, $sql); - } - - if( $total_forums = $db->sql_numrows($q_forums) ) - { - $forum_rows = $db->sql_fetchrowset($q_forums); - } - - // - // Okay, let's build the index - // - $gen_cat = array(); - - for($i = 0; $i < $total_categories; $i++) - { - $cat_id = $category_rows[$i]['cat_id']; - - $template->assign_block_vars("catrow", array( - 'S_ADD_FORUM_SUBMIT' => "addforum[$cat_id]", - 'S_ADD_FORUM_NAME' => "forumname[$cat_id]", - - 'CAT_ID' => $cat_id, - 'CAT_DESC' => $category_rows[$i]['cat_title'], - - 'U_CAT_EDIT' => append_sid("admin_forums.$phpEx?mode=editcat&" . POST_CAT_URL . "=$cat_id"), - 'U_CAT_DELETE' => append_sid("admin_forums.$phpEx?mode=deletecat&" . POST_CAT_URL . "=$cat_id"), - 'U_CAT_MOVE_UP' => append_sid("admin_forums.$phpEx?mode=cat_order&move=-15&" . POST_CAT_URL . "=$cat_id"), - 'U_CAT_MOVE_DOWN' => append_sid("admin_forums.$phpEx?mode=cat_order&move=15&" . POST_CAT_URL . "=$cat_id"), - 'U_VIEWCAT' => append_sid($phpbb_root_path."index.$phpEx?" . POST_CAT_URL . "=$cat_id")) - ); - - for($j = 0; $j < $total_forums; $j++) - { - $forum_id = $forum_rows[$j]['forum_id']; - - if ($forum_rows[$j]['cat_id'] == $cat_id) - { - - $template->assign_block_vars("catrow.forumrow", array( - 'FORUM_NAME' => $forum_rows[$j]['forum_name'], - 'FORUM_DESC' => $forum_rows[$j]['forum_desc'], - 'ROW_COLOR' => $row_color, - 'NUM_TOPICS' => $forum_rows[$j]['forum_topics'], - 'NUM_POSTS' => $forum_rows[$j]['forum_posts'], - - 'U_VIEWFORUM' => append_sid($phpbb_root_path."viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"), - 'U_FORUM_EDIT' => append_sid("admin_forums.$phpEx?mode=editforum&" . POST_FORUM_URL . "=$forum_id"), - 'U_FORUM_DELETE' => append_sid("admin_forums.$phpEx?mode=deleteforum&" . POST_FORUM_URL . "=$forum_id"), - 'U_FORUM_MOVE_UP' => append_sid("admin_forums.$phpEx?mode=forum_order&move=-15&" . POST_FORUM_URL . "=$forum_id"), - 'U_FORUM_MOVE_DOWN' => append_sid("admin_forums.$phpEx?mode=forum_order&move=15&" . POST_FORUM_URL . "=$forum_id"), - 'U_FORUM_RESYNC' => append_sid("admin_forums.$phpEx?mode=forum_sync&" . POST_FORUM_URL . "=$forum_id")) - ); - - }// if ... forumid == catid - - } // for ... forums - - } // for ... categories - -}// if ... total_categories - -$template->pparse("body"); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/admin/admin_groups.php b/phpBB2/admin/admin_groups.php deleted file mode 100644 index 1392dde..0000000 --- a/phpBB2/admin/admin_groups.php +++ /dev/null @@ -1,417 +0,0 @@ -set_filenames(array( - 'body' => 'admin/group_edit_body.tpl') - ); - - if ( isset($HTTP_POST_VARS['edit']) ) - { - // - // They're editing. Grab the vars. - // - $sql = "SELECT * - FROM " . GROUPS_TABLE . " - WHERE group_single_user <> " . TRUE . " - AND group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql); - } - - if ( !($group_info = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_MESSAGE, $lang['Group_not_exist']); - } - - $mode = 'editgroup'; - $template->assign_block_vars('group_edit', array()); - - } - else if ( isset($HTTP_POST_VARS['new']) ) - { - $group_info = array ( - 'group_name' => '', - 'group_description' => '', - 'group_moderator' => '', - 'group_type' => GROUP_OPEN); - $group_open = ' checked="checked"'; - - $mode = 'newgroup'; - - } - - // - // Ok, now we know everything about them, let's show the page. - // - if ($group_info['group_moderator'] != '') - { - $sql = "SELECT user_id, username - FROM " . USERS_TABLE . " - WHERE user_id = " . $group_info['group_moderator']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user info for moderator list', '', __LINE__, __FILE__, $sql); - } - - if ( !($row = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user info for moderator list', '', __LINE__, __FILE__, $sql); - } - - $group_moderator = $row['username']; - } - else - { - $group_moderator = ''; - } - - $group_open = ( $group_info['group_type'] == GROUP_OPEN ) ? ' checked="checked"' : ''; - $group_closed = ( $group_info['group_type'] == GROUP_CLOSED ) ? ' checked="checked"' : ''; - $group_hidden = ( $group_info['group_type'] == GROUP_HIDDEN ) ? ' checked="checked"' : ''; - - $s_hidden_fields = ''; - - $template->assign_vars(array( - 'GROUP_NAME' => $group_info['group_name'], - 'GROUP_DESCRIPTION' => $group_info['group_description'], - 'GROUP_MODERATOR' => $group_moderator, - - 'L_GROUP_TITLE' => $lang['Group_administration'], - 'L_GROUP_EDIT_DELETE' => ( isset($HTTP_POST_VARS['new']) ) ? $lang['New_group'] : $lang['Edit_group'], - 'L_GROUP_NAME' => $lang['group_name'], - 'L_GROUP_DESCRIPTION' => $lang['group_description'], - 'L_GROUP_MODERATOR' => $lang['group_moderator'], - 'L_FIND_USERNAME' => $lang['Find_username'], - 'L_GROUP_STATUS' => $lang['group_status'], - 'L_GROUP_OPEN' => $lang['group_open'], - 'L_GROUP_CLOSED' => $lang['group_closed'], - 'L_GROUP_HIDDEN' => $lang['group_hidden'], - 'L_GROUP_DELETE' => $lang['group_delete'], - 'L_GROUP_DELETE_CHECK' => $lang['group_delete_check'], - 'L_SUBMIT' => $lang['Submit'], - 'L_RESET' => $lang['Reset'], - 'L_DELETE_MODERATOR' => $lang['delete_group_moderator'], - 'L_DELETE_MODERATOR_EXPLAIN' => $lang['delete_moderator_explain'], - 'L_YES' => $lang['Yes'], - - 'U_SEARCH_USER' => append_sid("../search.$phpEx?mode=searchuser"), - - 'S_GROUP_OPEN_TYPE' => GROUP_OPEN, - 'S_GROUP_CLOSED_TYPE' => GROUP_CLOSED, - 'S_GROUP_HIDDEN_TYPE' => GROUP_HIDDEN, - 'S_GROUP_OPEN_CHECKED' => $group_open, - 'S_GROUP_CLOSED_CHECKED' => $group_closed, - 'S_GROUP_HIDDEN_CHECKED' => $group_hidden, - 'S_GROUP_ACTION' => append_sid("admin_groups.$phpEx"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); - - $template->pparse('body'); - -} -else if ( isset($HTTP_POST_VARS['group_update']) ) -{ - // - // Ok, they are submitting a group, let's save the data based on if it's new or editing - // - if ( isset($HTTP_POST_VARS['group_delete']) ) - { - // - // Reset User Moderator Level - // - - // Is Group moderating a forum ? - $sql = "SELECT auth_mod FROM " . AUTH_ACCESS_TABLE . " - WHERE group_id = " . $group_id; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select auth_access', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - if (intval($row['auth_mod']) == 1) - { - // Yes, get the assigned users and update their Permission if they are no longer moderator of one of the forums - $sql = "SELECT user_id FROM " . USER_GROUP_TABLE . " - WHERE group_id = " . $group_id; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select user_group', '', __LINE__, __FILE__, $sql); - } - - $rows = $db->sql_fetchrowset($result); - for ($i = 0; $i < count($rows); $i++) - { - $sql = "SELECT g.group_id FROM " . AUTH_ACCESS_TABLE . " a, " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug - WHERE (a.auth_mod = 1) AND (g.group_id = a.group_id) AND (a.group_id = ug.group_id) AND (g.group_id = ug.group_id) - AND (ug.user_id = " . intval($rows[$i]['user_id']) . ") AND (ug.group_id <> " . $group_id . ")"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain moderator permissions', '', __LINE__, __FILE__, $sql); - } - - if ($db->sql_numrows($result) == 0) - { - $sql = "UPDATE " . USERS_TABLE . " SET user_level = " . USER . " - WHERE user_level = " . MOD . " AND user_id = " . intval($rows[$i]['user_id']); - - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update moderator permissions', '', __LINE__, __FILE__, $sql); - } - } - } - } - - // - // Delete Group - // - $sql = "DELETE FROM " . GROUPS_TABLE . " - WHERE group_id = " . $group_id; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update group', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . USER_GROUP_TABLE . " - WHERE group_id = " . $group_id; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update user_group', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " - WHERE group_id = " . $group_id; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update auth_access', '', __LINE__, __FILE__, $sql); - } - - $message = $lang['Deleted_group'] . '

' . sprintf($lang['Click_return_groupsadmin'], '', '') . '

' . sprintf($lang['Click_return_admin_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - $group_type = isset($HTTP_POST_VARS['group_type']) ? intval($HTTP_POST_VARS['group_type']) : GROUP_OPEN; - $group_name = isset($HTTP_POST_VARS['group_name']) ? htmlspecialchars(trim($HTTP_POST_VARS['group_name'])) : ''; - $group_description = isset($HTTP_POST_VARS['group_description']) ? trim($HTTP_POST_VARS['group_description']) : ''; - $group_moderator = isset($HTTP_POST_VARS['username']) ? $HTTP_POST_VARS['username'] : ''; - $delete_old_moderator = isset($HTTP_POST_VARS['delete_old_moderator']) ? true : false; - - if ( $group_name == '' ) - { - message_die(GENERAL_MESSAGE, $lang['No_group_name']); - } - else if ( $group_moderator == '' ) - { - message_die(GENERAL_MESSAGE, $lang['No_group_moderator']); - } - - $this_userdata = get_userdata($group_moderator, true); - $group_moderator = $this_userdata['user_id']; - - if ( !$group_moderator ) - { - message_die(GENERAL_MESSAGE, $lang['No_group_moderator']); - } - - if( $mode == "editgroup" ) - { - $sql = "SELECT * - FROM " . GROUPS_TABLE . " - WHERE group_single_user <> " . TRUE . " - AND group_id = " . $group_id; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql); - } - - if( !($group_info = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_MESSAGE, $lang['Group_not_exist']); - } - - if ( $group_info['group_moderator'] != $group_moderator ) - { - if ( $delete_old_moderator ) - { - $sql = "DELETE FROM " . USER_GROUP_TABLE . " - WHERE user_id = " . $group_info['group_moderator'] . " - AND group_id = " . $group_id; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update group moderator', '', __LINE__, __FILE__, $sql); - } - } - - $sql = "SELECT user_id - FROM " . USER_GROUP_TABLE . " - WHERE user_id = $group_moderator - AND group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Failed to obtain current group moderator info', '', __LINE__, __FILE__, $sql); - } - - if ( !($row = $db->sql_fetchrow($result)) ) - { - $sql = "INSERT INTO " . USER_GROUP_TABLE . " (group_id, user_id, user_pending) - VALUES (" . $group_id . ", " . $group_moderator . ", 0)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update group moderator', '', __LINE__, __FILE__, $sql); - } - } - } - - $sql = "UPDATE " . GROUPS_TABLE . " - SET group_type = $group_type, group_name = '" . str_replace("\'", "''", $group_name) . "', group_description = '" . str_replace("\'", "''", $group_description) . "', group_moderator = $group_moderator - WHERE group_id = $group_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update group', '', __LINE__, __FILE__, $sql); - } - - $message = $lang['Updated_group'] . '

' . sprintf($lang['Click_return_groupsadmin'], '', '') . '

' . sprintf($lang['Click_return_admin_index'], '', '');; - - message_die(GENERAL_MESSAGE, $message); - } - else if( $mode == 'newgroup' ) - { - $sql = "INSERT INTO " . GROUPS_TABLE . " (group_type, group_name, group_description, group_moderator, group_single_user) - VALUES ($group_type, '" . str_replace("\'", "''", $group_name) . "', '" . str_replace("\'", "''", $group_description) . "', $group_moderator, '0')"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert new group', '', __LINE__, __FILE__, $sql); - } - $new_group_id = $db->sql_nextid(); - - $sql = "INSERT INTO " . USER_GROUP_TABLE . " (group_id, user_id, user_pending) - VALUES ($new_group_id, $group_moderator, 0)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert new user-group info', '', __LINE__, __FILE__, $sql); - } - - $message = $lang['Added_new_group'] . '

' . sprintf($lang['Click_return_groupsadmin'], '', '') . '

' . sprintf($lang['Click_return_admin_index'], '', '');; - - message_die(GENERAL_MESSAGE, $message); - - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_group_action']); - } - } -} -else -{ - $sql = "SELECT group_id, group_name - FROM " . GROUPS_TABLE . " - WHERE group_single_user <> " . TRUE . " - ORDER BY group_name"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain group list', '', __LINE__, __FILE__, $sql); - } - - $select_list = ''; - if ( $row = $db->sql_fetchrow($result) ) - { - $select_list .= ''; - } - - $template->set_filenames(array( - 'body' => 'admin/group_select_body.tpl') - ); - - $template->assign_vars(array( - 'L_GROUP_TITLE' => $lang['Group_administration'], - 'L_GROUP_EXPLAIN' => $lang['Group_admin_explain'], - 'L_GROUP_SELECT' => $lang['Select_group'], - 'L_LOOK_UP' => $lang['Look_up_group'], - 'L_CREATE_NEW_GROUP' => $lang['New_group'], - - 'S_GROUP_ACTION' => append_sid("admin_groups.$phpEx"), - 'S_GROUP_SELECT' => $select_list) - ); - - if ( $select_list != '' ) - { - $template->assign_block_vars('select_box', array()); - } - - $template->pparse('body'); -} - -include('./page_footer_admin.'.$phpEx); - -?> diff --git a/phpBB2/admin/admin_mass_email.php b/phpBB2/admin/admin_mass_email.php deleted file mode 100644 index fc70efe..0000000 --- a/phpBB2/admin/admin_mass_email.php +++ /dev/null @@ -1,213 +0,0 @@ -' . $lang['Empty_subject'] : $lang['Empty_subject']; - } - - if ( empty($message) ) - { - $error = true; - $error_msg .= ( !empty($error_msg) ) ? '
' . $lang['Empty_message'] : $lang['Empty_message']; - } - - $group_id = intval($HTTP_POST_VARS[POST_GROUPS_URL]); - - $sql = ( $group_id != -1 ) ? "SELECT u.user_email FROM " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " ug WHERE ug.group_id = $group_id AND ug.user_pending <> " . TRUE . " AND u.user_id = ug.user_id" : "SELECT user_email FROM " . USERS_TABLE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select group members', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $bcc_list = array(); - do - { - $bcc_list[] = $row['user_email']; - } - while ( $row = $db->sql_fetchrow($result) ); - - $db->sql_freeresult($result); - } - else - { - $message = ( $group_id != -1 ) ? $lang['Group_not_exist'] : $lang['No_such_user']; - - $error = true; - $error_msg .= ( !empty($error_msg) ) ? '
' . $message : $message; - } - - if ( !$error ) - { - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - - // - // Let's do some checking to make sure that mass mail functions - // are working in win32 versions of php. - // - if ( preg_match('/[c-z]:\\\.*/i', getenv('PATH')) && !$board_config['smtp_delivery']) - { - $ini_val = ( @phpversion() >= '4.0.0' ) ? 'ini_get' : 'get_cfg_var'; - - // We are running on windows, force delivery to use our smtp functions - // since php's are broken by default - $board_config['smtp_delivery'] = 1; - $board_config['smtp_host'] = @$ini_val('SMTP'); - } - - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - for ($i = 0; $i < count($bcc_list); $i++) - { - $emailer->bcc($bcc_list[$i]); - } - - $email_headers = 'X-AntiAbuse: Board servername - ' . $board_config['server_name'] . "\n"; - $email_headers .= 'X-AntiAbuse: User_id - ' . $userdata['user_id'] . "\n"; - $email_headers .= 'X-AntiAbuse: Username - ' . $userdata['username'] . "\n"; - $email_headers .= 'X-AntiAbuse: User IP - ' . decode_ip($user_ip) . "\n"; - - $emailer->use_template('admin_send_email'); - $emailer->email_address($board_config['board_email']); - $emailer->set_subject($subject); - $emailer->extra_headers($email_headers); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'BOARD_EMAIL' => $board_config['board_email'], - 'MESSAGE' => $message) - ); - $emailer->send(); - $emailer->reset(); - - message_die(GENERAL_MESSAGE, $lang['Email_sent'] . '

' . sprintf($lang['Click_return_admin_index'], '', '')); - } -} - -if ( $error ) -{ - $template->set_filenames(array( - 'reg_header' => 'error_body.tpl') - ); - $template->assign_vars(array( - 'ERROR_MESSAGE' => $error_msg) - ); - $template->assign_var_from_handle('ERROR_BOX', 'reg_header'); -} - -// -// Initial selection -// - -$sql = "SELECT group_id, group_name - FROM ".GROUPS_TABLE . " - WHERE group_single_user <> 1"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not obtain list of groups', '', __LINE__, __FILE__, $sql); -} - -$select_list = ''; - -// -// Generate page -// -include('./page_header_admin.'.$phpEx); - -$template->set_filenames(array( - 'body' => 'admin/user_email_body.tpl') -); - -$template->assign_vars(array( - 'MESSAGE' => $message, - 'SUBJECT' => $subject, - - 'L_EMAIL_TITLE' => $lang['Email'], - 'L_EMAIL_EXPLAIN' => $lang['Mass_email_explain'], - 'L_COMPOSE' => $lang['Compose'], - 'L_RECIPIENTS' => $lang['Recipients'], - 'L_EMAIL_SUBJECT' => $lang['Subject'], - 'L_EMAIL_MSG' => $lang['Message'], - 'L_EMAIL' => $lang['Email'], - 'L_NOTICE' => $notice, - - 'S_USER_ACTION' => append_sid('admin_mass_email.'.$phpEx), - 'S_GROUP_SELECT' => $select_list) -); - -$template->pparse('body'); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/admin/admin_ranks.php b/phpBB2/admin/admin_ranks.php deleted file mode 100644 index 3cdfe46..0000000 --- a/phpBB2/admin/admin_ranks.php +++ /dev/null @@ -1,349 +0,0 @@ -sql_query($sql)) - { - message_die(GENERAL_ERROR, "Couldn't obtain rank data", "", __LINE__, __FILE__, $sql); - } - - $rank_info = $db->sql_fetchrow($result); - $s_hidden_fields .= ''; - - } - else - { - $rank_info['rank_special'] = 0; - } - - $s_hidden_fields .= ''; - - $rank_is_special = ( $rank_info['rank_special'] ) ? "checked=\"checked\"" : ""; - $rank_is_not_special = ( !$rank_info['rank_special'] ) ? "checked=\"checked\"" : ""; - - $template->set_filenames(array( - "body" => "admin/ranks_edit_body.tpl") - ); - - $template->assign_vars(array( - "RANK" => $rank_info['rank_title'], - "SPECIAL_RANK" => $rank_is_special, - "NOT_SPECIAL_RANK" => $rank_is_not_special, - "MINIMUM" => ( $rank_is_special ) ? "" : $rank_info['rank_min'], - "IMAGE" => ( $rank_info['rank_image'] != "" ) ? $rank_info['rank_image'] : "", - "IMAGE_DISPLAY" => ( $rank_info['rank_image'] != "" ) ? '' : "", - - "L_RANKS_TITLE" => $lang['Ranks_title'], - "L_RANKS_TEXT" => $lang['Ranks_explain'], - "L_RANK_TITLE" => $lang['Rank_title'], - "L_RANK_SPECIAL" => $lang['Rank_special'], - "L_RANK_MINIMUM" => $lang['Rank_minimum'], - "L_RANK_IMAGE" => $lang['Rank_image'], - "L_RANK_IMAGE_EXPLAIN" => $lang['Rank_image_explain'], - "L_SUBMIT" => $lang['Submit'], - "L_RESET" => $lang['Reset'], - "L_YES" => $lang['Yes'], - "L_NO" => $lang['No'], - - "S_RANK_ACTION" => append_sid("admin_ranks.$phpEx"), - "S_HIDDEN_FIELDS" => $s_hidden_fields) - ); - - } - else if( $mode == "save" ) - { - // - // Ok, they sent us our info, let's update it. - // - - $rank_id = ( isset($HTTP_POST_VARS['id']) ) ? intval($HTTP_POST_VARS['id']) : 0; - $rank_title = ( isset($HTTP_POST_VARS['title']) ) ? trim($HTTP_POST_VARS['title']) : ""; - $special_rank = ( $HTTP_POST_VARS['special_rank'] == 1 ) ? TRUE : 0; - $min_posts = ( isset($HTTP_POST_VARS['min_posts']) ) ? intval($HTTP_POST_VARS['min_posts']) : -1; - $rank_image = ( (isset($HTTP_POST_VARS['rank_image'])) ) ? trim($HTTP_POST_VARS['rank_image']) : ""; - - if( $rank_title == "" ) - { - message_die(GENERAL_MESSAGE, $lang['Must_select_rank']); - } - - if( $special_rank == 1 ) - { - $max_posts = -1; - $min_posts = -1; - } - - // - // The rank image has to be a jpg, gif or png - // - if($rank_image != "") - { - if ( !preg_match("/(\.gif|\.png|\.jpg)$/is", $rank_image)) - { - $rank_image = ""; - } - } - - if ($rank_id) - { - if (!$special_rank) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_rank = 0 - WHERE user_rank = $rank_id"; - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, $lang['No_update_ranks'], "", __LINE__, __FILE__, $sql); - } - } - $sql = "UPDATE " . RANKS_TABLE . " - SET rank_title = '" . str_replace("\'", "''", $rank_title) . "', rank_special = $special_rank, rank_min = $min_posts, rank_image = '" . str_replace("\'", "''", $rank_image) . "' - WHERE rank_id = $rank_id"; - - $message = $lang['Rank_updated']; - } - else - { - $sql = "INSERT INTO " . RANKS_TABLE . " (rank_title, rank_special, rank_min, rank_image) - VALUES ('" . str_replace("\'", "''", $rank_title) . "', $special_rank, $min_posts, '" . str_replace("\'", "''", $rank_image) . "')"; - - $message = $lang['Rank_added']; - } - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't update/insert into ranks table", "", __LINE__, __FILE__, $sql); - } - - $message .= "

" . sprintf($lang['Click_return_rankadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - } - else if( $mode == "delete" ) - { - // - // Ok, they want to delete their rank - // - - if( isset($HTTP_POST_VARS['id']) || isset($HTTP_GET_VARS['id']) ) - { - $rank_id = ( isset($HTTP_POST_VARS['id']) ) ? intval($HTTP_POST_VARS['id']) : intval($HTTP_GET_VARS['id']); - } - else - { - $rank_id = 0; - } - - $confirm = isset($HTTP_POST_VARS['confirm']); - - if( $rank_id && $confirm ) - { - $sql = "DELETE FROM " . RANKS_TABLE . " - WHERE rank_id = $rank_id"; - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete rank data", "", __LINE__, __FILE__, $sql); - } - - $sql = "UPDATE " . USERS_TABLE . " - SET user_rank = 0 - WHERE user_rank = $rank_id"; - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, $lang['No_update_ranks'], "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Rank_removed'] . "

" . sprintf($lang['Click_return_rankadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - } - elseif( $rank_id && !$confirm) - { - // Present the confirmation screen to the user - $template->set_filenames(array( - 'body' => 'admin/confirm_body.tpl') - ); - - $hidden_fields = ''; - - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Confirm'], - 'MESSAGE_TEXT' => $lang['Confirm_delete_rank'], - - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - - 'S_CONFIRM_ACTION' => append_sid("admin_ranks.$phpEx"), - 'S_HIDDEN_FIELDS' => $hidden_fields) - ); - } - else - { - message_die(GENERAL_MESSAGE, $lang['Must_select_rank']); - } - } - - $template->pparse("body"); - - include('./page_footer_admin.'.$phpEx); -} - -// -// Show the default page -// -$template->set_filenames(array( - "body" => "admin/ranks_list_body.tpl") -); - -$sql = "SELECT * FROM " . RANKS_TABLE . " - ORDER BY rank_min ASC, rank_special ASC"; -if( !$result = $db->sql_query($sql) ) -{ - message_die(GENERAL_ERROR, "Couldn't obtain ranks data", "", __LINE__, __FILE__, $sql); -} -$rank_count = $db->sql_numrows($result); - -$rank_rows = $db->sql_fetchrowset($result); - -$template->assign_vars(array( - "L_RANKS_TITLE" => $lang['Ranks_title'], - "L_RANKS_TEXT" => $lang['Ranks_explain'], - "L_RANK" => $lang['Rank_title'], - "L_RANK_MINIMUM" => $lang['Rank_minimum'], - "L_SPECIAL_RANK" => $lang['Rank_special'], - "L_EDIT" => $lang['Edit'], - "L_DELETE" => $lang['Delete'], - "L_ADD_RANK" => $lang['Add_new_rank'], - "L_ACTION" => $lang['Action'], - - "S_RANKS_ACTION" => append_sid("admin_ranks.$phpEx")) -); - -for($i = 0; $i < $rank_count; $i++) -{ - $rank = $rank_rows[$i]['rank_title']; - $special_rank = $rank_rows[$i]['rank_special']; - $rank_id = $rank_rows[$i]['rank_id']; - $rank_min = $rank_rows[$i]['rank_min']; - - if( $special_rank == 1 ) - { - $rank_min = $rank_max = "-"; - } - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $rank_is_special = ( $special_rank ) ? $lang['Yes'] : $lang['No']; - - $template->assign_block_vars("ranks", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - "RANK" => $rank, - "SPECIAL_RANK" => $rank_is_special, - "RANK_MIN" => $rank_min, - - "U_RANK_EDIT" => append_sid("admin_ranks.$phpEx?mode=edit&id=$rank_id"), - "U_RANK_DELETE" => append_sid("admin_ranks.$phpEx?mode=delete&id=$rank_id")) - ); -} - -$template->pparse("body"); - -include('./page_footer_admin.'.$phpEx); - -?> diff --git a/phpBB2/admin/admin_smilies.php b/phpBB2/admin/admin_smilies.php deleted file mode 100644 index b43d925..0000000 --- a/phpBB2/admin/admin_smilies.php +++ /dev/null @@ -1,597 +0,0 @@ -sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete current smilies", "", __LINE__, __FILE__, $sql); - } - } - else - { - $sql = "SELECT code - FROM ". SMILIES_TABLE; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get current smilies", "", __LINE__, __FILE__, $sql); - } - - $cur_smilies = $db->sql_fetchrowset($result); - - for( $i = 0; $i < count($cur_smilies); $i++ ) - { - $k = $cur_smilies[$i]['code']; - $smiles[$k] = 1; - } - } - - $fcontents = @file($phpbb_root_path . $board_config['smilies_path'] . '/'. $smile_pak); - - if( empty($fcontents) ) - { - message_die(GENERAL_ERROR, "Couldn't read smiley pak file", "", __LINE__, __FILE__, $sql); - } - - for( $i = 0; $i < count($fcontents); $i++ ) - { - $smile_data = explode($delimeter, trim(addslashes($fcontents[$i]))); - - for( $j = 2; $j < count($smile_data); $j++) - { - // - // Replace > and < with the proper html_entities for matching. - // - $smile_data[$j] = str_replace("<", "<", $smile_data[$j]); - $smile_data[$j] = str_replace(">", ">", $smile_data[$j]); - $k = $smile_data[$j]; - - if( $smiles[$k] == 1 ) - { - if( !empty($replace_existing) ) - { - $sql = "UPDATE " . SMILIES_TABLE . " - SET smile_url = '" . str_replace("\'", "''", $smile_data[0]) . "', emoticon = '" . str_replace("\'", "''", $smile_data[1]) . "' - WHERE code = '" . str_replace("\'", "''", $smile_data[$j]) . "'"; - } - else - { - $sql = ''; - } - } - else - { - $sql = "INSERT INTO " . SMILIES_TABLE . " (code, smile_url, emoticon) - VALUES('" . str_replace("\'", "''", $smile_data[$j]) . "', '" . str_replace("\'", "''", $smile_data[0]) . "', '" . str_replace("\'", "''", $smile_data[1]) . "')"; - } - - if( $sql != '' ) - { - $result = $db->sql_query($sql); - if( !$result ) - { - message_die(GENERAL_ERROR, "Couldn't update smilies!", "", __LINE__, __FILE__, $sql); - } - } - } - } - - $message = $lang['smiley_import_success'] . "

" . sprintf($lang['Click_return_smileadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - } - else - { - // - // Display the script to get the smile_pak cfg file... - // - $smile_paks_select = ""; - - $hidden_vars = ""; - - $template->set_filenames(array( - "body" => "admin/smile_import_body.tpl") - ); - - $template->assign_vars(array( - "L_SMILEY_TITLE" => $lang['smiley_title'], - "L_SMILEY_EXPLAIN" => $lang['smiley_import_inst'], - "L_SMILEY_IMPORT" => $lang['smiley_import'], - "L_SELECT_LBL" => $lang['choose_smile_pak'], - "L_IMPORT" => $lang['import'], - "L_CONFLICTS" => $lang['smile_conflicts'], - "L_DEL_EXISTING" => $lang['del_existing_smileys'], - "L_REPLACE_EXISTING" => $lang['replace_existing'], - "L_KEEP_EXISTING" => $lang['keep_existing'], - - "S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx"), - "S_SMILE_SELECT" => $smile_paks_select, - "S_HIDDEN_FIELDS" => $hidden_vars) - ); - - $template->pparse("body"); - } -} -else if( isset($HTTP_POST_VARS['export_pack']) || isset($HTTP_GET_VARS['export_pack']) ) -{ - // - // Export our smiley config as a smiley pak... - // - if ( $HTTP_GET_VARS['export_pack'] == "send" ) - { - $sql = "SELECT * - FROM " . SMILIES_TABLE; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Could not get smiley list", "", __LINE__, __FILE__, $sql); - } - - $resultset = $db->sql_fetchrowset($result); - - $smile_pak = ""; - for($i = 0; $i < count($resultset); $i++ ) - { - $smile_pak .= $resultset[$i]['smile_url'] . $delimeter; - $smile_pak .= $resultset[$i]['emoticon'] . $delimeter; - $smile_pak .= $resultset[$i]['code'] . "\n"; - } - - header("Content-Type: text/x-delimtext; name=\"smiles.pak\""); - header("Content-disposition: attachment; filename=smiles.pak"); - - echo $smile_pak; - - exit; - } - - $message = sprintf($lang['export_smiles'], "", "") . "

" . sprintf($lang['Click_return_smileadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - -} -else if( isset($HTTP_POST_VARS['add']) || isset($HTTP_GET_VARS['add']) ) -{ - // - // Admin has selected to add a smiley. - // - - $template->set_filenames(array( - "body" => "admin/smile_edit_body.tpl") - ); - - $filename_list = ""; - for( $i = 0; $i < count($smiley_images); $i++ ) - { - $filename_list .= ''; - } - - $s_hidden_fields = ''; - - $template->assign_vars(array( - "L_SMILEY_TITLE" => $lang['smiley_title'], - "L_SMILEY_CONFIG" => $lang['smiley_config'], - "L_SMILEY_EXPLAIN" => $lang['smile_desc'], - "L_SMILEY_CODE" => $lang['smiley_code'], - "L_SMILEY_URL" => $lang['smiley_url'], - "L_SMILEY_EMOTION" => $lang['smiley_emot'], - "L_SUBMIT" => $lang['Submit'], - "L_RESET" => $lang['Reset'], - - "SMILEY_IMG" => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smiley_images[0], - - "S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx"), - "S_HIDDEN_FIELDS" => $s_hidden_fields, - "S_FILENAME_OPTIONS" => $filename_list, - "S_SMILEY_BASEDIR" => $phpbb_root_path . $board_config['smilies_path']) - ); - - $template->pparse("body"); -} -else if ( $mode != "" ) -{ - switch( $mode ) - { - case 'delete': - // - // Admin has selected to delete a smiley. - // - - $smiley_id = ( !empty($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id']; - $smiley_id = intval($smiley_id); - - $confirm = isset($HTTP_POST_VARS['confirm']); - - if( $confirm ) - { - $sql = "DELETE FROM " . SMILIES_TABLE . " - WHERE smilies_id = " . $smiley_id; - $result = $db->sql_query($sql); - if( !$result ) - { - message_die(GENERAL_ERROR, "Couldn't delete smiley", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['smiley_del_success'] . "

" . sprintf($lang['Click_return_smileadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - // Present the confirmation screen to the user - $template->set_filenames(array( - 'body' => 'admin/confirm_body.tpl') - ); - - $hidden_fields = ''; - - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Confirm'], - 'MESSAGE_TEXT' => $lang['Confirm_delete_smiley'], - - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - - 'S_CONFIRM_ACTION' => append_sid("admin_smilies.$phpEx"), - 'S_HIDDEN_FIELDS' => $hidden_fields) - ); - $template->pparse('body'); - } - break; - - case 'edit': - // - // Admin has selected to edit a smiley. - // - - $smiley_id = ( !empty($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id']; - $smiley_id = intval($smiley_id); - - $sql = "SELECT * - FROM " . SMILIES_TABLE . " - WHERE smilies_id = " . $smiley_id; - $result = $db->sql_query($sql); - if( !$result ) - { - message_die(GENERAL_ERROR, 'Could not obtain emoticon information', "", __LINE__, __FILE__, $sql); - } - $smile_data = $db->sql_fetchrow($result); - - $filename_list = ""; - for( $i = 0; $i < count($smiley_images); $i++ ) - { - if( $smiley_images[$i] == $smile_data['smile_url'] ) - { - $smiley_selected = "selected=\"selected\""; - $smiley_edit_img = $smiley_images[$i]; - } - else - { - $smiley_selected = ""; - } - - $filename_list .= ''; - } - - $template->set_filenames(array( - "body" => "admin/smile_edit_body.tpl") - ); - - $s_hidden_fields = ''; - - $template->assign_vars(array( - "SMILEY_CODE" => $smile_data['code'], - "SMILEY_EMOTICON" => $smile_data['emoticon'], - - "L_SMILEY_TITLE" => $lang['smiley_title'], - "L_SMILEY_CONFIG" => $lang['smiley_config'], - "L_SMILEY_EXPLAIN" => $lang['smile_desc'], - "L_SMILEY_CODE" => $lang['smiley_code'], - "L_SMILEY_URL" => $lang['smiley_url'], - "L_SMILEY_EMOTION" => $lang['smiley_emot'], - "L_SUBMIT" => $lang['Submit'], - "L_RESET" => $lang['Reset'], - - "SMILEY_IMG" => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smiley_edit_img, - - "S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx"), - "S_HIDDEN_FIELDS" => $s_hidden_fields, - "S_FILENAME_OPTIONS" => $filename_list, - "S_SMILEY_BASEDIR" => $phpbb_root_path . $board_config['smilies_path']) - ); - - $template->pparse("body"); - break; - - case "save": - // - // Admin has submitted changes while editing a smiley. - // - - // - // Get the submitted data, being careful to ensure that we only - // accept the data we are looking for. - // - $smile_code = ( isset($HTTP_POST_VARS['smile_code']) ) ? trim($HTTP_POST_VARS['smile_code']) : ''; - $smile_url = ( isset($HTTP_POST_VARS['smile_url']) ) ? trim($HTTP_POST_VARS['smile_url']) : ''; - $smile_url = phpbb_ltrim(basename($smile_url), "'"); - $smile_emotion = ( isset($HTTP_POST_VARS['smile_emotion']) ) ? htmlspecialchars(trim($HTTP_POST_VARS['smile_emotion'])) : ''; - $smile_id = ( isset($HTTP_POST_VARS['smile_id']) ) ? intval($HTTP_POST_VARS['smile_id']) : 0; - $smile_code = trim($smile_code); - $smile_url = trim($smile_url); - - // If no code was entered complain ... - if ($smile_code == '' || $smile_url == '') - { - message_die(GENERAL_MESSAGE, $lang['Fields_empty']); - } - - // - // Convert < and > to proper htmlentities for parsing. - // - $smile_code = str_replace('<', '<', $smile_code); - $smile_code = str_replace('>', '>', $smile_code); - - // - // Proceed with updating the smiley table. - // - $sql = "UPDATE " . SMILIES_TABLE . " - SET code = '" . str_replace("\'", "''", $smile_code) . "', smile_url = '" . str_replace("\'", "''", $smile_url) . "', emoticon = '" . str_replace("\'", "''", $smile_emotion) . "' - WHERE smilies_id = $smile_id"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't update smilies info", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['smiley_edit_success'] . "

" . sprintf($lang['Click_return_smileadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - break; - - case "savenew": - // - // Admin has submitted changes while adding a new smiley. - // - - // - // Get the submitted data being careful to ensure the the data - // we recieve and process is only the data we are looking for. - // - $smile_code = ( isset($HTTP_POST_VARS['smile_code']) ) ? $HTTP_POST_VARS['smile_code'] : ''; - $smile_url = ( isset($HTTP_POST_VARS['smile_url']) ) ? $HTTP_POST_VARS['smile_url'] : ''; - $smile_url = phpbb_ltrim(basename($smile_url), "'"); - $smile_emotion = ( isset($HTTP_POST_VARS['smile_emotion']) ) ? htmlspecialchars(trim($HTTP_POST_VARS['smile_emotion'])) : ''; - $smile_code = trim($smile_code); - $smile_url = trim($smile_url); - - // If no code was entered complain ... - if ($smile_code == '' || $smile_url == '') - { - message_die(GENERAL_MESSAGE, $lang['Fields_empty']); - } - - // - // Convert < and > to proper htmlentities for parsing. - // - $smile_code = str_replace('<', '<', $smile_code); - $smile_code = str_replace('>', '>', $smile_code); - - // - // Save the data to the smiley table. - // - $sql = "INSERT INTO " . SMILIES_TABLE . " (code, smile_url, emoticon) - VALUES ('" . str_replace("\'", "''", $smile_code) . "', '" . str_replace("\'", "''", $smile_url) . "', '" . str_replace("\'", "''", $smile_emotion) . "')"; - $result = $db->sql_query($sql); - if( !$result ) - { - message_die(GENERAL_ERROR, "Couldn't insert new smiley", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['smiley_add_success'] . "

" . sprintf($lang['Click_return_smileadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - break; - } -} -else -{ - - // - // This is the main display of the page before the admin has selected - // any options. - // - $sql = "SELECT * - FROM " . SMILIES_TABLE; - $result = $db->sql_query($sql); - if( !$result ) - { - message_die(GENERAL_ERROR, "Couldn't obtain smileys from database", "", __LINE__, __FILE__, $sql); - } - - $smilies = $db->sql_fetchrowset($result); - - $template->set_filenames(array( - "body" => "admin/smile_list_body.tpl") - ); - - $template->assign_vars(array( - "L_ACTION" => $lang['Action'], - "L_SMILEY_TITLE" => $lang['smiley_title'], - "L_SMILEY_TEXT" => $lang['smile_desc'], - "L_DELETE" => $lang['Delete'], - "L_EDIT" => $lang['Edit'], - "L_SMILEY_ADD" => $lang['smile_add'], - "L_CODE" => $lang['Code'], - "L_EMOT" => $lang['Emotion'], - "L_SMILE" => $lang['Smile'], - "L_IMPORT_PACK" => $lang['import_smile_pack'], - "L_EXPORT_PACK" => $lang['export_smile_pack'], - - "S_HIDDEN_FIELDS" => $s_hidden_fields, - "S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx")) - ); - - // - // Loop throuh the rows of smilies setting block vars for the template. - // - for($i = 0; $i < count($smilies); $i++) - { - // - // Replace htmlentites for < and > with actual character. - // - $smilies[$i]['code'] = str_replace('<', '<', $smilies[$i]['code']); - $smilies[$i]['code'] = str_replace('>', '>', $smilies[$i]['code']); - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars("smiles", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - - "SMILEY_IMG" => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smilies[$i]['smile_url'], - "CODE" => $smilies[$i]['code'], - "EMOT" => $smilies[$i]['emoticon'], - - "U_SMILEY_EDIT" => append_sid("admin_smilies.$phpEx?mode=edit&id=" . $smilies[$i]['smilies_id']), - "U_SMILEY_DELETE" => append_sid("admin_smilies.$phpEx?mode=delete&id=" . $smilies[$i]['smilies_id'])) - ); - } - - // - // Spit out the page. - // - $template->pparse("body"); -} - -// -// Page Footer -// -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/admin/admin_styles.php b/phpBB2/admin/admin_styles.php deleted file mode 100644 index 200aa4a..0000000 --- a/phpBB2/admin/admin_styles.php +++ /dev/null @@ -1,941 +0,0 @@ -sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Could not insert theme data!", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Theme_installed'] . "

" . sprintf($lang['Click_return_styleadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - - $installable_themes = array(); - - if( $dir = @opendir($phpbb_root_path. "templates/") ) - { - while( $sub_dir = @readdir($dir) ) - { - if( !is_file(phpbb_realpath($phpbb_root_path . 'templates/' .$sub_dir)) && !is_link(phpbb_realpath($phpbb_root_path . 'templates/' .$sub_dir)) && $sub_dir != "." && $sub_dir != ".." && $sub_dir != "CVS" ) - { - if( @file_exists(@phpbb_realpath($phpbb_root_path. "templates/" . $sub_dir . "/theme_info.cfg")) ) - { - include($phpbb_root_path. "templates/" . $sub_dir . "/theme_info.cfg"); - - for($i = 0; $i < count($$sub_dir); $i++) - { - $working_data = $$sub_dir; - - $style_name = $working_data[$i]['style_name']; - - $sql = "SELECT themes_id - FROM " . THEMES_TABLE . " - WHERE style_name = '" . str_replace("\'", "''", $style_name) . "'"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not query themes table!", "", __LINE__, __FILE__, $sql); - } - - if(!$db->sql_numrows($result)) - { - $installable_themes[] = $working_data[$i]; - } - } - } - } - } - - $template->set_filenames(array( - "body" => "admin/styles_addnew_body.tpl") - ); - - $template->assign_vars(array( - "L_STYLES_TITLE" => $lang['Styles_admin'], - "L_STYLES_ADD_TEXT" => $lang['Styles_addnew_explain'], - "L_STYLE" => $lang['Style'], - "L_TEMPLATE" => $lang['Template'], - "L_INSTALL" => $lang['Install'], - "L_ACTION" => $lang['Action']) - ); - - for($i = 0; $i < count($installable_themes); $i++) - { - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars("styles", array( - "ROW_CLASS" => $row_class, - "ROW_COLOR" => "#" . $row_color, - "STYLE_NAME" => $installable_themes[$i]['style_name'], - "TEMPLATE_NAME" => $installable_themes[$i]['template_name'], - - "U_STYLES_INSTALL" => append_sid("admin_styles.$phpEx?mode=addnew&style=" . urlencode($installable_themes[$i]['style_name']) . "&install_to=" . urlencode($installable_themes[$i]['template_name']))) - ); - - } - $template->pparse("body"); - - } - closedir($dir); - } - break; - - case "create": - case "edit": - $submit = ( isset($HTTP_POST_VARS['submit']) ) ? TRUE : 0; - - if( $submit ) - { - // - // DAMN! Thats alot of data to validate... - // - $updated['style_name'] = $HTTP_POST_VARS['style_name']; - $updated['template_name'] = $HTTP_POST_VARS['template_name']; - $updated['head_stylesheet'] = $HTTP_POST_VARS['head_stylesheet']; - $updated['body_background'] = $HTTP_POST_VARS['body_background']; - $updated['body_bgcolor'] = $HTTP_POST_VARS['body_bgcolor']; - $updated['body_text'] = $HTTP_POST_VARS['body_text']; - $updated['body_link'] = $HTTP_POST_VARS['body_link']; - $updated['body_vlink'] = $HTTP_POST_VARS['body_vlink']; - $updated['body_alink'] = $HTTP_POST_VARS['body_alink']; - $updated['body_hlink'] = $HTTP_POST_VARS['body_hlink']; - $updated['tr_color1'] = $HTTP_POST_VARS['tr_color1']; - $updated_name['tr_color1_name'] = $HTTP_POST_VARS['tr_color1_name']; - $updated['tr_color2'] = $HTTP_POST_VARS['tr_color2']; - $updated_name['tr_color2_name'] = $HTTP_POST_VARS['tr_color2_name']; - $updated['tr_color3'] = $HTTP_POST_VARS['tr_color3']; - $updated_name['tr_color3_name'] = $HTTP_POST_VARS['tr_color3_name']; - $updated['tr_class1'] = $HTTP_POST_VARS['tr_class1']; - $updated_name['tr_class1_name'] = $HTTP_POST_VARS['tr_class1_name']; - $updated['tr_class2'] = $HTTP_POST_VARS['tr_class2']; - $updated_name['tr_class2_name'] = $HTTP_POST_VARS['tr_class2_name']; - $updated['tr_class3'] = $HTTP_POST_VARS['tr_class3']; - $updated_name['tr_class3_name'] = $HTTP_POST_VARS['tr_class3_name']; - $updated['th_color1'] = $HTTP_POST_VARS['th_color1']; - $updated_name['th_color1_name'] = $HTTP_POST_VARS['th_color1_name']; - $updated['th_color2'] = $HTTP_POST_VARS['th_color2']; - $updated_name['th_color2_name'] = $HTTP_POST_VARS['th_color2_name']; - $updated['th_color3'] = $HTTP_POST_VARS['th_color3']; - $updated_name['th_color3_name'] = $HTTP_POST_VARS['th_color3_name']; - $updated['th_class1'] = $HTTP_POST_VARS['th_class1']; - $updated_name['th_class1_name'] = $HTTP_POST_VARS['th_class1_name']; - $updated['th_class2'] = $HTTP_POST_VARS['th_class2']; - $updated_name['th_class2_name'] = $HTTP_POST_VARS['th_class2_name']; - $updated['th_class3'] = $HTTP_POST_VARS['th_class3']; - $updated_name['th_class3_name'] = $HTTP_POST_VARS['th_class3_name']; - $updated['td_color1'] = $HTTP_POST_VARS['td_color1']; - $updated_name['td_color1_name'] = $HTTP_POST_VARS['td_color1_name']; - $updated['td_color2'] = $HTTP_POST_VARS['td_color2']; - $updated_name['td_color2_name'] = $HTTP_POST_VARS['td_color2_name']; - $updated['td_color3'] = $HTTP_POST_VARS['td_color3']; - $updated_name['td_color3_name'] = $HTTP_POST_VARS['td_color3_name']; - $updated['td_class1'] = $HTTP_POST_VARS['td_class1']; - $updated_name['td_class1_name'] = $HTTP_POST_VARS['td_class1_name']; - $updated['td_class2'] = $HTTP_POST_VARS['td_class2']; - $updated_name['td_class2_name'] = $HTTP_POST_VARS['td_class2_name']; - $updated['td_class3'] = $HTTP_POST_VARS['td_class3']; - $updated_name['td_class3_name'] = $HTTP_POST_VARS['td_class3_name']; - $updated['fontface1'] = $HTTP_POST_VARS['fontface1']; - $updated_name['fontface1_name'] = $HTTP_POST_VARS['fontface1_name']; - $updated['fontface2'] = $HTTP_POST_VARS['fontface2']; - $updated_name['fontface2_name'] = $HTTP_POST_VARS['fontface2_name']; - $updated['fontface3'] = $HTTP_POST_VARS['fontface3']; - $updated_name['fontface3_name'] = $HTTP_POST_VARS['fontface3_name']; - $updated['fontsize1'] = intval($HTTP_POST_VARS['fontsize1']); - $updated_name['fontsize1_name'] = $HTTP_POST_VARS['fontsize1_name']; - $updated['fontsize2'] = intval($HTTP_POST_VARS['fontsize2']); - $updated_name['fontsize2_name'] = $HTTP_POST_VARS['fontsize2_name']; - $updated['fontsize3'] = intval($HTTP_POST_VARS['fontsize3']); - $updated_name['fontsize3_name'] = $HTTP_POST_VARS['fontsize3_name']; - $updated['fontcolor1'] = $HTTP_POST_VARS['fontcolor1']; - $updated_name['fontcolor1_name'] = $HTTP_POST_VARS['fontcolor1_name']; - $updated['fontcolor2'] = $HTTP_POST_VARS['fontcolor2']; - $updated_name['fontcolor2_name'] = $HTTP_POST_VARS['fontcolor2_name']; - $updated['fontcolor3'] = $HTTP_POST_VARS['fontcolor3']; - $updated_name['fontcolor3_name'] = $HTTP_POST_VARS['fontcolor3_name']; - $updated['span_class1'] = $HTTP_POST_VARS['span_class1']; - $updated_name['span_class1_name'] = $HTTP_POST_VARS['span_class1_name']; - $updated['span_class2'] = $HTTP_POST_VARS['span_class2']; - $updated_name['span_class2_name'] = $HTTP_POST_VARS['span_class2_name']; - $updated['span_class3'] = $HTTP_POST_VARS['span_class3']; - $updated_name['span_class3_name'] = $HTTP_POST_VARS['span_class3_name']; - $style_id = intval($HTTP_POST_VARS['style_id']); - // - // Wheeeew! Thank heavens for copy and paste and search and replace :D - // - - if($mode == "edit") - { - $sql = "UPDATE " . THEMES_TABLE . " SET "; - $count = 0; - - while(list($key, $val) = each($updated)) - { - if($count != 0) - { - $sql .= ", "; - } - - // - // I don't like this but it'll keep MSSQL from throwing - // an error and save me alot of typing - // - $sql .= ( stristr($key, "fontsize") ) ? "$key = $val" : "$key = '" . str_replace("\'", "''", $val) . "'"; - - $count++; - } - - $sql .= " WHERE themes_id = $style_id"; - - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not update themes table!", "", __LINE__, __FILE__, $sql); - } - - // - // Check if there's a names table entry for this style - // - $sql = "SELECT themes_id - FROM " . THEMES_NAME_TABLE . " - WHERE themes_id = $style_id"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not get data from themes_name table", "", __LINE__, __FILE__, $sql); - } - - if($db->sql_numrows($result) > 0) - { - $sql = "UPDATE " . THEMES_NAME_TABLE . " - SET "; - $count = 0; - while(list($key, $val) = each($updated_name)) - { - if($count != 0) - { - $sql .= ", "; - } - - $sql .= "$key = '$val'"; - - $count++; - } - - $sql .= " WHERE themes_id = $style_id"; - } - else - { - // - // Nope, no names entry so we create a new one. - // - $sql = "INSERT INTO " . THEMES_NAME_TABLE . " (themes_id, "; - while(list($key, $val) = each($updated_name)) - { - $fields[] = $key; - $vals[] = str_replace("\'", "''", $val); - } - - for($i = 0; $i < count($fields); $i++) - { - if($i > 0) - { - $sql .= ", "; - } - $sql .= $fields[$i]; - } - - $sql .= ") VALUES ($style_id, "; - for($i = 0; $i < count($vals); $i++) - { - if($i > 0) - { - $sql .= ", "; - } - $sql .= "'" . $vals[$i] . "'"; - } - - $sql .= ")"; - } - - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not update themes name table!", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Theme_updated'] . "

" . sprintf($lang['Click_return_styleadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - // - // First, check if we already have a style by this name - // - $sql = "SELECT themes_id - FROM " . THEMES_TABLE . " - WHERE style_name = '" . str_replace("\'", "''", $updated['style_name']) . "'"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not query themes table", "", __LINE__, __FILE__, $sql); - } - - if($db->sql_numrows($result)) - { - message_die(GENERAL_ERROR, $lang['Style_exists'], $lang['Error']); - } - - while(list($key, $val) = each($updated)) - { - $field_names[] = $key; - - if(stristr($key, "fontsize")) - { - $values[] = "$val"; - } - else - { - $values[] = "'" . str_replace("\'", "''", $val) . "'"; - } - } - - $sql = "INSERT - INTO " . THEMES_TABLE . " ("; - for($i = 0; $i < count($field_names); $i++) - { - if($i != 0) - { - $sql .= ", "; - } - $sql .= $field_names[$i]; - } - - $sql .= ") VALUES ("; - for($i = 0; $i < count($values); $i++) - { - if($i != 0) - { - $sql .= ", "; - } - $sql .= $values[$i]; - } - $sql .= ")"; - - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not update themes table!", "", __LINE__, __FILE__, $sql); - } - - $style_id = $db->sql_nextid(); - - // - // Insert names data - // - $sql = "INSERT INTO " . THEMES_NAME_TABLE . " (themes_id, "; - while(list($key, $val) = each($updated_name)) - { - $fields[] = $key; - $vals[] = $val; - } - - for($i = 0; $i < count($fields); $i++) - { - if($i > 0) - { - $sql .= ", "; - } - $sql .= $fields[$i]; - } - - $sql .= ") VALUES ($style_id, "; - for($i = 0; $i < count($vals); $i++) - { - if($i > 0) - { - $sql .= ", "; - } - $sql .= "'" . $vals[$i] . "'"; - } - - $sql .= ")"; - - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not insert themes name table!", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Theme_created'] . "

" . sprintf($lang['Click_return_styleadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - } - else - { - if($mode == "edit") - { - $themes_title = $lang['Edit_theme']; - $themes_explain = $lang['Edit_theme_explain']; - - $style_id = intval($HTTP_GET_VARS['style_id']); - - $selected_names = array(); - $selected_values = array(); - // - // Fetch the Theme Info from the db - // - $sql = "SELECT * - FROM " . THEMES_TABLE . " - WHERE themes_id = $style_id"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not get data from themes table", "", __LINE__, __FILE__, $sql); - } - - if ( $selected_values = $db->sql_fetchrow($result) ) - { - while(list($key, $val) = @each($selected_values)) - { - $selected[$key] = $val; - } - } - - // - // Fetch the Themes Name data - // - $sql = "SELECT * - FROM " . THEMES_NAME_TABLE . " - WHERE themes_id = $style_id"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not get data from themes name table", "", __LINE__, __FILE__, $sql); - } - - if ( $selected_names = $db->sql_fetchrow($result) ) - { - while(list($key, $val) = @each($selected_names)) - { - $selected[$key] = $val; - } - } - - $s_hidden_fields = ''; - } - else - { - $themes_title = $lang['Create_theme']; - $themes_explain = $lang['Create_theme_explain']; - } - - $template->set_filenames(array( - "body" => "admin/styles_edit_body.tpl") - ); - - if( $dir = @opendir($phpbb_root_path . 'templates/') ) - { - $s_template_select = ''; - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_template_dir']); - } - - $s_hidden_fields .= ''; - - $template->assign_vars(array( - "L_THEMES_TITLE" => $themes_title, - "L_THEMES_EXPLAIN" => $themes_explain, - "L_THEME_NAME" => $lang['Theme_name'], - "L_TEMPLATE" => $lang['Template'], - "L_THEME_SETTINGS" => $lang['Theme_settings'], - "L_THEME_ELEMENT" => $lang['Theme_element'], - "L_SIMPLE_NAME" => $lang['Simple_name'], - "L_VALUE" => $lang['Value'], - "L_STYLESHEET" => $lang['Stylesheet'], - "L_STYLESHEET_EXPLAIN" => $lang['Stylesheet_explain'], - "L_BACKGROUND_IMAGE" => $lang['Background_image'], - "L_BACKGROUND_COLOR" => $lang['Background_color'], - "L_BODY_TEXT_COLOR" => $lang['Text_color'], - "L_BODY_LINK_COLOR" => $lang['Link_color'], - "L_BODY_VLINK_COLOR" => $lang['VLink_color'], - "L_BODY_ALINK_COLOR" => $lang['ALink_color'], - "L_BODY_HLINK_COLOR" => $lang['HLink_color'], - "L_TR_COLOR1" => $lang['Tr_color1'], - "L_TR_COLOR2" => $lang['Tr_color2'], - "L_TR_COLOR3" => $lang['Tr_color3'], - "L_TR_CLASS1" => $lang['Tr_class1'], - "L_TR_CLASS2" => $lang['Tr_class2'], - "L_TR_CLASS3" => $lang['Tr_class3'], - "L_TH_COLOR1" => $lang['Th_color1'], - "L_TH_COLOR2" => $lang['Th_color2'], - "L_TH_COLOR3" => $lang['Th_color3'], - "L_TH_CLASS1" => $lang['Th_class1'], - "L_TH_CLASS2" => $lang['Th_class2'], - "L_TH_CLASS3" => $lang['Th_class3'], - "L_TD_COLOR1" => $lang['Td_color1'], - "L_TD_COLOR2" => $lang['Td_color2'], - "L_TD_COLOR3" => $lang['Td_color3'], - "L_TD_CLASS1" => $lang['Td_class1'], - "L_TD_CLASS2" => $lang['Td_class2'], - "L_TD_CLASS3" => $lang['Td_class3'], - "L_FONTFACE_1" => $lang['fontface1'], - "L_FONTFACE_2" => $lang['fontface2'], - "L_FONTFACE_3" => $lang['fontface3'], - "L_FONTSIZE_1" => $lang['fontsize1'], - "L_FONTSIZE_2" => $lang['fontsize2'], - "L_FONTSIZE_3" => $lang['fontsize3'], - "L_FONTCOLOR_1" => $lang['fontcolor1'], - "L_FONTCOLOR_2" => $lang['fontcolor2'], - "L_FONTCOLOR_3" => $lang['fontcolor3'], - "L_SPAN_CLASS_1" => $lang['span_class1'], - "L_SPAN_CLASS_2" => $lang['span_class2'], - "L_SPAN_CLASS_3" => $lang['span_class3'], - "L_SAVE_SETTINGS" => $lang['Save_Settings'], - "THEME_NAME" => $selected['style_name'], - "HEAD_STYLESHEET" => $selected['head_stylesheet'], - "BODY_BACKGROUND" => $selected['body_background'], - "BODY_BGCOLOR" => $selected['body_bgcolor'], - "BODY_TEXT_COLOR" => $selected['body_text'], - "BODY_LINK_COLOR" => $selected['body_link'], - "BODY_VLINK_COLOR" => $selected['body_vlink'], - "BODY_ALINK_COLOR" => $selected['body_alink'], - "BODY_HLINK_COLOR" => $selected['body_hlink'], - "TR_COLOR1" => $selected['tr_color1'], - "TR_COLOR2" => $selected['tr_color2'], - "TR_COLOR3" => $selected['tr_color3'], - "TR_CLASS1" => $selected['tr_class1'], - "TR_CLASS2" => $selected['tr_class2'], - "TR_CLASS3" => $selected['tr_class3'], - "TH_COLOR1" => $selected['th_color1'], - "TH_COLOR2" => $selected['th_color2'], - "TH_COLOR3" => $selected['th_color3'], - "TH_CLASS1" => $selected['th_class1'], - "TH_CLASS2" => $selected['th_class2'], - "TH_CLASS3" => $selected['th_class3'], - "TD_COLOR1" => $selected['td_color1'], - "TD_COLOR2" => $selected['td_color2'], - "TD_COLOR3" => $selected['td_color3'], - "TD_CLASS1" => $selected['td_class1'], - "TD_CLASS2" => $selected['td_class2'], - "TD_CLASS3" => $selected['td_class3'], - "FONTFACE1" => $selected['fontface1'], - "FONTFACE2" => $selected['fontface2'], - "FONTFACE3" => $selected['fontface3'], - "FONTSIZE1" => $selected['fontsize1'], - "FONTSIZE2" => $selected['fontsize2'], - "FONTSIZE3" => $selected['fontsize3'], - "FONTCOLOR1" => $selected['fontcolor1'], - "FONTCOLOR2" => $selected['fontcolor2'], - "FONTCOLOR3" => $selected['fontcolor3'], - "SPAN_CLASS1" => $selected['span_class1'], - "SPAN_CLASS2" => $selected['span_class2'], - "SPAN_CLASS3" => $selected['span_class3'], - - "TR_COLOR1_NAME" => $selected['tr_color1_name'], - "TR_COLOR2_NAME" => $selected['tr_color2_name'], - "TR_COLOR3_NAME" => $selected['tr_color3_name'], - "TR_CLASS1_NAME" => $selected['tr_class1_name'], - "TR_CLASS2_NAME" => $selected['tr_class2_name'], - "TR_CLASS3_NAME" => $selected['tr_class3_name'], - "TH_COLOR1_NAME" => $selected['th_color1_name'], - "TH_COLOR2_NAME" => $selected['th_color2_name'], - "TH_COLOR3_NAME" => $selected['th_color3_name'], - "TH_CLASS1_NAME" => $selected['th_class1_name'], - "TH_CLASS2_NAME" => $selected['th_class2_name'], - "TH_CLASS3_NAME" => $selected['th_class3_name'], - "TD_COLOR1_NAME" => $selected['td_color1_name'], - "TD_COLOR2_NAME" => $selected['td_color2_name'], - "TD_COLOR3_NAME" => $selected['td_color3_name'], - "TD_CLASS1_NAME" => $selected['td_class1_name'], - "TD_CLASS2_NAME" => $selected['td_class2_name'], - "TD_CLASS3_NAME" => $selected['td_class3_name'], - "FONTFACE1_NAME" => $selected['fontface1_name'], - "FONTFACE2_NAME" => $selected['fontface2_name'], - "FONTFACE3_NAME" => $selected['fontface3_name'], - "FONTSIZE1_NAME" => $selected['fontsize1_name'], - "FONTSIZE2_NAME" => $selected['fontsize2_name'], - "FONTSIZE3_NAME" => $selected['fontsize3_name'], - "FONTCOLOR1_NAME" => $selected['fontcolor1_name'], - "FONTCOLOR2_NAME" => $selected['fontcolor2_name'], - "FONTCOLOR3_NAME" => $selected['fontcolor3_name'], - "SPAN_CLASS1_NAME" => $selected['span_class1_name'], - "SPAN_CLASS2_NAME" => $selected['span_class2_name'], - "SPAN_CLASS3_NAME" => $selected['span_class3_name'], - - "S_THEME_ACTION" => append_sid("admin_styles.$phpEx"), - "S_TEMPLATE_SELECT" => $s_template_select, - "S_HIDDEN_FIELDS" => $s_hidden_fields) - ); - - $template->pparse("body"); - } - break; - - case "export"; - if($HTTP_POST_VARS['export_template']) - { - $template_name = $HTTP_POST_VARS['export_template']; - - $sql = "SELECT * - FROM " . THEMES_TABLE . " - WHERE template_name = '" . str_replace("\'", "''", $template_name) . "'"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not get theme data for selected template", "", __LINE__, __FILE__, $sql); - } - - $theme_rowset = $db->sql_fetchrowset($result); - - if( count($theme_rowset) == 0 ) - { - message_die(GENERAL_MESSAGE, $lang['No_themes']); - } - - $theme_data = ''; // Done this to prevent highlighting editors getting confused! - - @umask(0111); - - $fp = @fopen($phpbb_root_path . 'templates/' . basename($template_name) . '/theme_info.cfg', 'w'); - - if( !$fp ) - { - // - // Unable to open the file writeable do something here as an attempt - // to get around that... - // - $s_hidden_fields = ''; - $s_hidden_fields .= ''; - - $download_form = '
' . $s_hidden_fields; - - $template->set_filenames(array( - "body" => "message_body.tpl") - ); - - $template->assign_vars(array( - "MESSAGE_TITLE" => $lang['Export_themes'], - "MESSAGE_TEXT" => $lang['Download_theme_cfg'] . "

" . $download_form) - ); - - $template->pparse('body'); - exit(); - } - - $result = @fputs($fp, $theme_data, strlen($theme_data)); - fclose($fp); - - $message = $lang['Theme_info_saved'] . "

" . sprintf($lang['Click_return_styleadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - } - else if($HTTP_POST_VARS['send_file']) - { - - header("Content-Type: text/x-delimtext; name=\"theme_info.cfg\""); - header("Content-disposition: attachment; filename=theme_info.cfg"); - - echo stripslashes($HTTP_POST_VARS['theme_info']); - } - else - { - $template->set_filenames(array( - "body" => "admin/styles_exporter.tpl") - ); - - if( $dir = @opendir($phpbb_root_path . 'templates/') ) - { - $s_template_select = ''; - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_template_dir']); - } - - $template->assign_vars(array( - "L_STYLE_EXPORTER" => $lang['Export_themes'], - "L_EXPORTER_EXPLAIN" => $lang['Export_explain'], - "L_TEMPLATE_SELECT" => $lang['Select_template'], - "L_SUBMIT" => $lang['Submit'], - - "S_EXPORTER_ACTION" => append_sid("admin_styles.$phpEx?mode=export"), - "S_TEMPLATE_SELECT" => $s_template_select) - ); - - $template->pparse("body"); - - } - break; - - case "delete": - $style_id = ( isset($HTTP_GET_VARS['style_id']) ) ? intval($HTTP_GET_VARS['style_id']) : intval($HTTP_POST_VARS['style_id']); - - if( !$confirm ) - { - if($style_id == $board_config['default_style']) - { - message_die(GENERAL_MESSAGE, $lang['Cannot_remove_style']); - } - - $hidden_fields = ''; - - // - // Set template files - // - $template->set_filenames(array( - "confirm" => "admin/confirm_body.tpl") - ); - - $template->assign_vars(array( - "MESSAGE_TITLE" => $lang['Confirm'], - "MESSAGE_TEXT" => $lang['Confirm_delete_style'], - - "L_YES" => $lang['Yes'], - "L_NO" => $lang['No'], - - "S_CONFIRM_ACTION" => append_sid("admin_styles.$phpEx"), - "S_HIDDEN_FIELDS" => $hidden_fields) - ); - - $template->pparse("confirm"); - - } - else - { - // - // The user has confirmed the delete. Remove the style, the style element - // names and update any users who might be using this style - // - $sql = "DELETE FROM " . THEMES_TABLE . " - WHERE themes_id = $style_id"; - if(!$result = $db->sql_query($sql, BEGIN_TRANSACTION)) - { - message_die(GENERAL_ERROR, "Could not remove style data!", "", __LINE__, __FILE__, $sql); - } - - // - // There may not be any theme name data so don't throw an error - // if the SQL dosan't work - // - $sql = "DELETE FROM " . THEMES_NAME_TABLE . " - WHERE themes_id = $style_id"; - $db->sql_query($sql); - - $sql = "UPDATE " . USERS_TABLE . " - SET user_style = " . $board_config['default_style'] . " - WHERE user_style = $style_id"; - if(!$result = $db->sql_query($sql, END_TRANSACTION)) - { - message_die(GENERAL_ERROR, "Could not update user style information", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Style_removed'] . "

" . sprintf($lang['Click_return_styleadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - break; - - default: - - $sql = "SELECT themes_id, template_name, style_name - FROM " . THEMES_TABLE . " - ORDER BY template_name"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not get style information!", "", __LINE__, __FILE__, $sql); - } - - $style_rowset = $db->sql_fetchrowset($result); - - $template->set_filenames(array( - "body" => "admin/styles_list_body.tpl") - ); - - $template->assign_vars(array( - "L_STYLES_TITLE" => $lang['Styles_admin'], - "L_STYLES_TEXT" => $lang['Styles_explain'], - "L_STYLE" => $lang['Style'], - "L_TEMPLATE" => $lang['Template'], - "L_EDIT" => $lang['Edit'], - "L_DELETE" => $lang['Delete']) - ); - - for($i = 0; $i < count($style_rowset); $i++) - { - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars("styles", array( - "ROW_CLASS" => $row_class, - "ROW_COLOR" => $row_color, - "STYLE_NAME" => $style_rowset[$i]['style_name'], - "TEMPLATE_NAME" => $style_rowset[$i]['template_name'], - - "U_STYLES_EDIT" => append_sid("admin_styles.$phpEx?mode=edit&style_id=" . $style_rowset[$i]['themes_id']), - "U_STYLES_DELETE" => append_sid("admin_styles.$phpEx?mode=delete&style_id=" . $style_rowset[$i]['themes_id'])) - ); - } - - $template->pparse("body"); - break; -} - -if (empty($HTTP_POST_VARS['send_file'])) -{ - include('./page_footer_admin.'.$phpEx); -} - -?> \ No newline at end of file diff --git a/phpBB2/admin/admin_ug_auth.php b/phpBB2/admin/admin_ug_auth.php deleted file mode 100644 index 0588ffe..0000000 --- a/phpBB2/admin/admin_ug_auth.php +++ /dev/null @@ -1,999 +0,0 @@ - 'mode', 'user_id' => POST_USERS_URL, 'group_id' => POST_GROUPS_URL, 'adv' => 'adv'); - -while( list($var, $param) = @each($params) ) -{ - if ( !empty($HTTP_POST_VARS[$param]) || !empty($HTTP_GET_VARS[$param]) ) - { - $$var = ( !empty($HTTP_POST_VARS[$param]) ) ? $HTTP_POST_VARS[$param] : $HTTP_GET_VARS[$param]; - } - else - { - $$var = ""; - } -} - -$user_id = intval($user_id); -$group_id = intval($group_id); -$adv = intval($adv); -$mode = htmlspecialchars($mode); - -// -// Start program - define vars -// -$forum_auth_fields = array('auth_view', 'auth_read', 'auth_post', 'auth_reply', 'auth_edit', 'auth_delete', 'auth_sticky', 'auth_announce', 'auth_vote', 'auth_pollcreate'); - -$auth_field_match = array( - 'auth_view' => AUTH_VIEW, - 'auth_read' => AUTH_READ, - 'auth_post' => AUTH_POST, - 'auth_reply' => AUTH_REPLY, - 'auth_edit' => AUTH_EDIT, - 'auth_delete' => AUTH_DELETE, - 'auth_sticky' => AUTH_STICKY, - 'auth_announce' => AUTH_ANNOUNCE, - 'auth_vote' => AUTH_VOTE, - 'auth_pollcreate' => AUTH_POLLCREATE); - -$field_names = array( - 'auth_view' => $lang['View'], - 'auth_read' => $lang['Read'], - 'auth_post' => $lang['Post'], - 'auth_reply' => $lang['Reply'], - 'auth_edit' => $lang['Edit'], - 'auth_delete' => $lang['Delete'], - 'auth_sticky' => $lang['Sticky'], - 'auth_announce' => $lang['Announce'], - 'auth_vote' => $lang['Vote'], - 'auth_pollcreate' => $lang['Pollcreate']); - -// --------------- -// Start Functions -// -function check_auth($type, $key, $u_access, $is_admin) -{ - $auth_user = 0; - - if( count($u_access) ) - { - for($j = 0; $j < count($u_access); $j++) - { - $result = 0; - switch($type) - { - case AUTH_ACL: - $result = $u_access[$j][$key]; - - case AUTH_MOD: - $result = $result || $u_access[$j]['auth_mod']; - - case AUTH_ADMIN: - $result = $result || $is_admin; - break; - } - - $auth_user = $auth_user || $result; - } - } - else - { - $auth_user = $is_admin; - } - - return $auth_user; -} -// -// End Functions -// ------------- - -if ( isset($HTTP_POST_VARS['submit']) && ( ( $mode == 'user' && $user_id ) || ( $mode == 'group' && $group_id ) ) ) -{ - $user_level = ''; - if ( $mode == 'user' ) - { - // - // Get group_id for this user_id - // - $sql = "SELECT g.group_id, u.user_level - FROM " . USER_GROUP_TABLE . " ug, " . USERS_TABLE . " u, " . GROUPS_TABLE . " g - WHERE u.user_id = $user_id - AND ug.user_id = u.user_id - AND g.group_id = ug.group_id - AND g.group_single_user = " . TRUE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select info from user/user_group table', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - - $group_id = $row['group_id']; - $user_level = $row['user_level']; - - $db->sql_freeresult($result); - } - - // - // Carry out requests - // - if ( $mode == 'user' && $HTTP_POST_VARS['userlevel'] == 'admin' && $user_level != ADMIN ) - { - // - // Make user an admin (if already user) - // - if ( $userdata['user_id'] != $user_id ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . ADMIN . " - WHERE user_id = $user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " - WHERE group_id = $group_id - AND auth_mod = 0"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't delete auth access info", "", __LINE__, __FILE__, $sql); - } - - // - // Delete any entries in auth_access, they are not required if user is becoming an - // admin - // - $sql = "UPDATE " . AUTH_ACCESS_TABLE . " - SET auth_view = 0, auth_read = 0, auth_post = 0, auth_reply = 0, auth_edit = 0, auth_delete = 0, auth_sticky = 0, auth_announce = 0 - WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't update auth access", "", __LINE__, __FILE__, $sql); - } - } - - $message = $lang['Auth_updated'] . '

' . sprintf($lang['Click_return_userauth'], '', '') . '

' . sprintf($lang['Click_return_admin_index'], '', ''); - message_die(GENERAL_MESSAGE, $message); - } - else - { - if ( $mode == 'user' && $HTTP_POST_VARS['userlevel'] == 'user' && $user_level == ADMIN ) - { - // - // Make admin a user (if already admin) ... ignore if you're trying - // to change yourself from an admin to user! - // - if ( $userdata['user_id'] != $user_id ) - { - $sql = "UPDATE " . AUTH_ACCESS_TABLE . " - SET auth_view = 0, auth_read = 0, auth_post = 0, auth_reply = 0, auth_edit = 0, auth_delete = 0, auth_sticky = 0, auth_announce = 0 - WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update auth access', '', __LINE__, __FILE__, $sql); - } - - // - // Update users level, reset to USER - // - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . USER . " - WHERE user_id = $user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql); - } - } - - $message = $lang['Auth_updated'] . '

' . sprintf($lang['Click_return_userauth'], '', '') . '

' . sprintf($lang['Click_return_admin_index'], '', ''); - } - else - { - - $change_mod_list = ( isset($HTTP_POST_VARS['moderator']) ) ? $HTTP_POST_VARS['moderator'] : false; - - if ( empty($adv) ) - { - $change_acl_list = ( isset($HTTP_POST_VARS['private']) ) ? $HTTP_POST_VARS['private'] : false; - } - else - { - $change_acl_list = array(); - for($j = 0; $j < count($forum_auth_fields); $j++) - { - $auth_field = $forum_auth_fields[$j]; - - while( list($forum_id, $value) = @each($HTTP_POST_VARS['private_' . $auth_field]) ) - { - $change_acl_list[$forum_id][$auth_field] = $value; - } - } - } - - $sql = 'SELECT f.* - FROM ' . FORUMS_TABLE . ' f, ' . CATEGORIES_TABLE . ' c - WHERE f.cat_id = c.cat_id - ORDER BY c.cat_order, f.forum_order'; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain forum information", "", __LINE__, __FILE__, $sql); - } - - $forum_access = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $forum_access[] = $row; - } - $db->sql_freeresult($result); - - $sql = ( $mode == 'user' ) ? "SELECT aa.* FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE. " g WHERE ug.user_id = $user_id AND g.group_id = ug.group_id AND aa.group_id = ug.group_id AND g.group_single_user = " . TRUE : "SELECT * FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain user/group permissions", "", __LINE__, __FILE__, $sql); - } - - $auth_access = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $auth_access[$row['forum_id']] = $row; - } - $db->sql_freeresult($result); - - $forum_auth_action = array(); - $update_acl_status = array(); - $update_mod_status = array(); - - for($i = 0; $i < count($forum_access); $i++) - { - $forum_id = $forum_access[$i]['forum_id']; - - if ( - ( isset($auth_access[$forum_id]['auth_mod']) && $change_mod_list[$forum_id]['auth_mod'] != $auth_access[$forum_id]['auth_mod'] ) || - ( !isset($auth_access[$forum_id]['auth_mod']) && !empty($change_mod_list[$forum_id]['auth_mod']) ) - ) - { - $update_mod_status[$forum_id] = $change_mod_list[$forum_id]['auth_mod']; - - if ( !$update_mod_status[$forum_id] ) - { - $forum_auth_action[$forum_id] = 'delete'; - } - else if ( !isset($auth_access[$forum_id]['auth_mod']) ) - { - $forum_auth_action[$forum_id] = 'insert'; - } - else - { - $forum_auth_action[$forum_id] = 'update'; - } - } - - for($j = 0; $j < count($forum_auth_fields); $j++) - { - $auth_field = $forum_auth_fields[$j]; - - if( $forum_access[$i][$auth_field] == AUTH_ACL && isset($change_acl_list[$forum_id][$auth_field]) ) - { - if ( ( empty($auth_access[$forum_id]['auth_mod']) && - ( isset($auth_access[$forum_id][$auth_field]) && $change_acl_list[$forum_id][$auth_field] != $auth_access[$forum_id][$auth_field] ) || - ( !isset($auth_access[$forum_id][$auth_field]) && !empty($change_acl_list[$forum_id][$auth_field]) ) ) || - !empty($update_mod_status[$forum_id]) - ) - { - $update_acl_status[$forum_id][$auth_field] = ( !empty($update_mod_status[$forum_id]) ) ? 0 : $change_acl_list[$forum_id][$auth_field]; - - if ( isset($auth_access[$forum_id][$auth_field]) && empty($update_acl_status[$forum_id][$auth_field]) && $forum_auth_action[$forum_id] != 'insert' && $forum_auth_action[$forum_id] != 'update' ) - { - $forum_auth_action[$forum_id] = 'delete'; - } - else if ( !isset($auth_access[$forum_id][$auth_field]) && !( $forum_auth_action[$forum_id] == 'delete' && empty($update_acl_status[$forum_id][$auth_field]) ) ) - { - $forum_auth_action[$forum_id] = 'insert'; - } - else if ( isset($auth_access[$forum_id][$auth_field]) && !empty($update_acl_status[$forum_id][$auth_field]) ) - { - $forum_auth_action[$forum_id] = 'update'; - } - } - else if ( ( empty($auth_access[$forum_id]['auth_mod']) && - ( isset($auth_access[$forum_id][$auth_field]) && $change_acl_list[$forum_id][$auth_field] == $auth_access[$forum_id][$auth_field] ) ) && $forum_auth_action[$forum_id] == 'delete' ) - { - $forum_auth_action[$forum_id] = 'update'; - } - } - } - } - - // - // Checks complete, make updates to DB - // - $delete_sql = ''; - while( list($forum_id, $action) = @each($forum_auth_action) ) - { - if ( $action == 'delete' ) - { - $delete_sql .= ( ( $delete_sql != '' ) ? ', ' : '' ) . $forum_id; - } - else - { - if ( $action == 'insert' ) - { - $sql_field = ''; - $sql_value = ''; - while ( list($auth_type, $value) = @each($update_acl_status[$forum_id]) ) - { - $sql_field .= ( ( $sql_field != '' ) ? ', ' : '' ) . $auth_type; - $sql_value .= ( ( $sql_value != '' ) ? ', ' : '' ) . $value; - } - $sql_field .= ( ( $sql_field != '' ) ? ', ' : '' ) . 'auth_mod'; - $sql_value .= ( ( $sql_value != '' ) ? ', ' : '' ) . ( ( !isset($update_mod_status[$forum_id]) ) ? 0 : $update_mod_status[$forum_id]); - - $sql = "INSERT INTO " . AUTH_ACCESS_TABLE . " (forum_id, group_id, $sql_field) - VALUES ($forum_id, $group_id, $sql_value)"; - } - else - { - $sql_values = ''; - while ( list($auth_type, $value) = @each($update_acl_status[$forum_id]) ) - { - $sql_values .= ( ( $sql_values != '' ) ? ', ' : '' ) . $auth_type . ' = ' . $value; - } - $sql_values .= ( ( $sql_values != '' ) ? ', ' : '' ) . 'auth_mod = ' . ( ( !isset($update_mod_status[$forum_id]) ) ? 0 : $update_mod_status[$forum_id]); - - $sql = "UPDATE " . AUTH_ACCESS_TABLE . " - SET $sql_values - WHERE group_id = $group_id - AND forum_id = $forum_id"; - } - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't update private forum permissions", "", __LINE__, __FILE__, $sql); - } - } - } - - if ( $delete_sql != '' ) - { - $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " - WHERE group_id = $group_id - AND forum_id IN ($delete_sql)"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't delete permission entries", "", __LINE__, __FILE__, $sql); - } - } - - $l_auth_return = ( $mode == 'user' ) ? $lang['Click_return_userauth'] : $lang['Click_return_groupauth']; - $message = $lang['Auth_updated'] . '

' . sprintf($l_auth_return, '', '') . '

' . sprintf($lang['Click_return_admin_index'], '', ''); - } - - // - // Update user level to mod for appropriate users - // - $sql = "SELECT u.user_id - FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . USERS_TABLE . " u - WHERE ug.group_id = aa.group_id - AND u.user_id = ug.user_id - AND ug.user_pending = 0 - AND u.user_level NOT IN (" . MOD . ", " . ADMIN . ") - GROUP BY u.user_id - HAVING SUM(aa.auth_mod) > 0"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain user/group permissions", "", __LINE__, __FILE__, $sql); - } - - $set_mod = ''; - while( $row = $db->sql_fetchrow($result) ) - { - $set_mod .= ( ( $set_mod != '' ) ? ', ' : '' ) . $row['user_id']; - } - $db->sql_freeresult($result); - - // - // Update user level to user for appropriate users - // - switch ( SQL_LAYER ) - { - case 'postgresql': - $sql = "SELECT u.user_id - FROM " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " ug, " . AUTH_ACCESS_TABLE . " aa - WHERE ug.user_id = u.user_id - AND aa.group_id = ug.group_id - AND u.user_level NOT IN (" . USER . ", " . ADMIN . ") - GROUP BY u.user_id - HAVING SUM(aa.auth_mod) = 0 - UNION ( - SELECT u.user_id - FROM " . USERS_TABLE . " u - WHERE NOT EXISTS ( - SELECT aa.auth_mod - FROM " . USER_GROUP_TABLE . " ug, " . AUTH_ACCESS_TABLE . " aa - WHERE ug.user_id = u.user_id - AND aa.group_id = ug.group_id - ) - AND u.user_level NOT IN (" . USER . ", " . ADMIN . ") - GROUP BY u.user_id - )"; - break; - case 'oracle': - $sql = "SELECT u.user_id - FROM " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " ug, " . AUTH_ACCESS_TABLE . " aa - WHERE ug.user_id = u.user_id(+) - AND aa.group_id = ug.group_id(+) - AND u.user_level NOT IN (" . USER . ", " . ADMIN . ") - GROUP BY u.user_id - HAVING SUM(aa.auth_mod) = 0"; - break; - default: - $sql = "SELECT u.user_id - FROM ( ( " . USERS_TABLE . " u - LEFT JOIN " . USER_GROUP_TABLE . " ug ON ug.user_id = u.user_id ) - LEFT JOIN " . AUTH_ACCESS_TABLE . " aa ON aa.group_id = ug.group_id ) - WHERE u.user_level NOT IN (" . USER . ", " . ADMIN . ") - GROUP BY u.user_id - HAVING SUM(aa.auth_mod) = 0"; - break; - } - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain user/group permissions", "", __LINE__, __FILE__, $sql); - } - - $unset_mod = ""; - while( $row = $db->sql_fetchrow($result) ) - { - $unset_mod .= ( ( $unset_mod != '' ) ? ', ' : '' ) . $row['user_id']; - } - $db->sql_freeresult($result); - - if ( $set_mod != '' ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . MOD . " - WHERE user_id IN ($set_mod)"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't update user level", "", __LINE__, __FILE__, $sql); - } - } - - if ( $unset_mod != '' ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . USER . " - WHERE user_id IN ($unset_mod)"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't update user level", "", __LINE__, __FILE__, $sql); - } - } - - $sql = 'SELECT user_id FROM ' . USER_GROUP_TABLE . " - WHERE group_id = $group_id"; - $result = $db->sql_query($sql); - - $group_user = array(); - while ($row = $db->sql_fetchrow($result)) - { - $group_user[$row['user_id']] = $row['user_id']; - } - $db->sql_freeresult($result); - - $sql = "SELECT ug.user_id, COUNT(auth_mod) AS is_auth_mod - FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug - WHERE ug.user_id IN (" . implode(', ', $group_user) . ") - AND aa.group_id = ug.group_id - AND aa.auth_mod = 1 - GROUP BY ug.user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain moderator status', '', __LINE__, __FILE__, $sql); - } - - while ($row = $db->sql_fetchrow($result)) - { - if ($row['is_auth_mod']) - { - unset($group_user[$row['user_id']]); - } - } - $db->sql_freeresult($result); - - if (sizeof($group_user)) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . USER . " - WHERE user_id IN (" . implode(', ', $group_user) . ") AND user_level = " . MOD; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql); - } - } - - message_die(GENERAL_MESSAGE, $message); - } -} -else if ( ( $mode == 'user' && ( isset($HTTP_POST_VARS['username']) || $user_id ) ) || ( $mode == 'group' && $group_id ) ) -{ - if ( isset($HTTP_POST_VARS['username']) ) - { - $this_userdata = get_userdata($HTTP_POST_VARS['username'], true); - if ( !is_array($this_userdata) ) - { - message_die(GENERAL_MESSAGE, $lang['No_such_user']); - } - $user_id = $this_userdata['user_id']; - } - - // - // Front end - // - $sql = "SELECT f.* - FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c - WHERE f.cat_id = c.cat_id - ORDER BY c.cat_order, f.forum_order ASC"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain forum information", "", __LINE__, __FILE__, $sql); - } - - $forum_access = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $forum_access[] = $row; - } - $db->sql_freeresult($result); - - if( empty($adv) ) - { - for($i = 0; $i < count($forum_access); $i++) - { - $forum_id = $forum_access[$i]['forum_id']; - - $forum_auth_level[$forum_id] = AUTH_ALL; - - for($j = 0; $j < count($forum_auth_fields); $j++) - { - $forum_access[$i][$forum_auth_fields[$j]] . ' :: '; - if ( $forum_access[$i][$forum_auth_fields[$j]] == AUTH_ACL ) - { - $forum_auth_level[$forum_id] = AUTH_ACL; - $forum_auth_level_fields[$forum_id][] = $forum_auth_fields[$j]; - } - } - } - } - - $sql = "SELECT u.user_id, u.username, u.user_level, g.group_id, g.group_name, g.group_single_user, ug.user_pending FROM " . USERS_TABLE . " u, " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug WHERE "; - $sql .= ( $mode == 'user' ) ? "u.user_id = $user_id AND ug.user_id = u.user_id AND g.group_id = ug.group_id" : "g.group_id = $group_id AND ug.group_id = g.group_id AND u.user_id = ug.user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain user/group information", "", __LINE__, __FILE__, $sql); - } - $ug_info = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $ug_info[] = $row; - } - $db->sql_freeresult($result); - - $sql = ( $mode == 'user' ) ? "SELECT aa.*, g.group_single_user FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE. " g WHERE ug.user_id = $user_id AND g.group_id = ug.group_id AND aa.group_id = ug.group_id AND g.group_single_user = 1" : "SELECT * FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain user/group permissions", "", __LINE__, __FILE__, $sql); - } - - $auth_access = array(); - $auth_access_count = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $auth_access[$row['forum_id']][] = $row; - $auth_access_count[$row['forum_id']]++; - } - $db->sql_freeresult($result); - - $is_admin = ( $mode == 'user' ) ? ( ( $ug_info[0]['user_level'] == ADMIN && $ug_info[0]['user_id'] != ANONYMOUS ) ? 1 : 0 ) : 0; - - for($i = 0; $i < count($forum_access); $i++) - { - $forum_id = $forum_access[$i]['forum_id']; - - unset($prev_acl_setting); - for($j = 0; $j < count($forum_auth_fields); $j++) - { - $key = $forum_auth_fields[$j]; - $value = $forum_access[$i][$key]; - - switch( $value ) - { - case AUTH_ALL: - case AUTH_REG: - $auth_ug[$forum_id][$key] = 1; - break; - - case AUTH_ACL: - $auth_ug[$forum_id][$key] = ( !empty($auth_access_count[$forum_id]) ) ? check_auth(AUTH_ACL, $key, $auth_access[$forum_id], $is_admin) : 0; - $auth_field_acl[$forum_id][$key] = $auth_ug[$forum_id][$key]; - - if ( isset($prev_acl_setting) ) - { - if ( $prev_acl_setting != $auth_ug[$forum_id][$key] && empty($adv) ) - { - $adv = 1; - } - } - - $prev_acl_setting = $auth_ug[$forum_id][$key]; - - break; - - case AUTH_MOD: - $auth_ug[$forum_id][$key] = ( !empty($auth_access_count[$forum_id]) ) ? check_auth(AUTH_MOD, $key, $auth_access[$forum_id], $is_admin) : 0; - break; - - case AUTH_ADMIN: - $auth_ug[$forum_id][$key] = $is_admin; - break; - - default: - $auth_ug[$forum_id][$key] = 0; - break; - } - } - - // - // Is user a moderator? - // - $auth_ug[$forum_id]['auth_mod'] = ( !empty($auth_access_count[$forum_id]) ) ? check_auth(AUTH_MOD, 'auth_mod', $auth_access[$forum_id], 0) : 0; - } - - $i = 0; - @reset($auth_ug); - while( list($forum_id, $user_ary) = @each($auth_ug) ) - { - if ( empty($adv) ) - { - if ( $forum_auth_level[$forum_id] == AUTH_ACL ) - { - $allowed = 1; - - for($j = 0; $j < count($forum_auth_level_fields[$forum_id]); $j++) - { - if ( !$auth_ug[$forum_id][$forum_auth_level_fields[$forum_id][$j]] ) - { - $allowed = 0; - } - } - - $optionlist_acl = ''; - } - else - { - $optionlist_acl = ' '; - } - } - else - { - for($j = 0; $j < count($forum_access); $j++) - { - if ( $forum_access[$j]['forum_id'] == $forum_id ) - { - for($k = 0; $k < count($forum_auth_fields); $k++) - { - $field_name = $forum_auth_fields[$k]; - - if( $forum_access[$j][$field_name] == AUTH_ACL ) - { - $optionlist_acl_adv[$forum_id][$k] = ''; - - } - } - } - } - } - - $optionlist_mod = ''; - - $row_class = ( !( $i % 2 ) ) ? 'row2' : 'row1'; - $row_color = ( !( $i % 2 ) ) ? $theme['td_color1'] : $theme['td_color2']; - - $template->assign_block_vars('forums', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'FORUM_NAME' => $forum_access[$i]['forum_name'], - - 'U_FORUM_AUTH' => append_sid("admin_forumauth.$phpEx?f=" . $forum_access[$i]['forum_id']), - - 'S_MOD_SELECT' => $optionlist_mod) - ); - - if( !$adv ) - { - $template->assign_block_vars('forums.aclvalues', array( - 'S_ACL_SELECT' => $optionlist_acl) - ); - } - else - { - for($j = 0; $j < count($forum_auth_fields); $j++) - { - $template->assign_block_vars('forums.aclvalues', array( - 'S_ACL_SELECT' => $optionlist_acl_adv[$forum_id][$j]) - ); - } - } - - $i++; - } -// @reset($auth_user); - - if ( $mode == 'user' ) - { - $t_username = $ug_info[0]['username']; - $s_user_type = ( $is_admin ) ? '' : ''; - } - else - { - $t_groupname = $ug_info[0]['group_name']; - } - - $name = array(); - $id = array(); - for($i = 0; $i < count($ug_info); $i++) - { - if( ( $mode == 'user' && !$ug_info[$i]['group_single_user'] ) || $mode == 'group' ) - { - $name[] = ( $mode == 'user' ) ? $ug_info[$i]['group_name'] : $ug_info[$i]['username']; - $id[] = ( $mode == 'user' ) ? intval($ug_info[$i]['group_id']) : intval($ug_info[$i]['user_id']); - } - } - - $t_usergroup_list = $t_pending_list = ''; - if( count($name) ) - { - for($i = 0; $i < count($ug_info); $i++) - { - $ug = ( $mode == 'user' ) ? 'group&' . POST_GROUPS_URL : 'user&' . POST_USERS_URL; - - if (!$ug_info[$i]['user_pending']) - { - $t_usergroup_list .= ( ( $t_usergroup_list != '' ) ? ', ' : '' ) . '' . $name[$i] . ''; - } - else - { - $t_pending_list .= ( ( $t_pending_list != '' ) ? ', ' : '' ) . '' . $name[$i] . ''; - } - } - } - - $t_usergroup_list = ($t_usergroup_list == '') ? $lang['None'] : $t_usergroup_list; - $t_pending_list = ($t_pending_list == '') ? $lang['None'] : $t_pending_list; - - $s_column_span = 2; // Two columns always present - if( !$adv ) - { - $template->assign_block_vars('acltype', array( - 'L_UG_ACL_TYPE' => $lang['Simple_Permission']) - ); - $s_column_span++; - } - else - { - for($i = 0; $i < count($forum_auth_fields); $i++) - { - $cell_title = $field_names[$forum_auth_fields[$i]]; - - $template->assign_block_vars('acltype', array( - 'L_UG_ACL_TYPE' => $cell_title) - ); - $s_column_span++; - } - } - - // - // Dump in the page header ... - // - include('./page_header_admin.'.$phpEx); - - $template->set_filenames(array( - "body" => 'admin/auth_ug_body.tpl') - ); - - $adv_switch = ( empty($adv) ) ? 1 : 0; - $u_ug_switch = ( $mode == 'user' ) ? POST_USERS_URL . "=" . $user_id : POST_GROUPS_URL . "=" . $group_id; - $switch_mode = append_sid("admin_ug_auth.$phpEx?mode=$mode&" . $u_ug_switch . "&adv=$adv_switch"); - $switch_mode_text = ( empty($adv) ) ? $lang['Advanced_mode'] : $lang['Simple_mode']; - $u_switch_mode = '' . $switch_mode_text . ''; - - $s_hidden_fields = ''; - $s_hidden_fields .= ( $mode == 'user' ) ? '' : ''; - - if ( $mode == 'user' ) - { - $template->assign_block_vars('switch_user_auth', array()); - - $template->assign_vars(array( - 'USERNAME' => $t_username, - 'USER_LEVEL' => $lang['User_Level'] . " : " . $s_user_type, - 'USER_GROUP_MEMBERSHIPS' => $lang['Group_memberships'] . ' : ' . $t_usergroup_list) - ); - } - else - { - $template->assign_block_vars("switch_group_auth", array()); - - $template->assign_vars(array( - 'USERNAME' => $t_groupname, - 'GROUP_MEMBERSHIP' => $lang['Usergroup_members'] . ' : ' . $t_usergroup_list . '
' . $lang['Pending_members'] . ' : ' . $t_pending_list) - ); - } - - $template->assign_vars(array( - 'L_USER_OR_GROUPNAME' => ( $mode == 'user' ) ? $lang['Username'] : $lang['Group_name'], - - 'L_AUTH_TITLE' => ( $mode == 'user' ) ? $lang['Auth_Control_User'] : $lang['Auth_Control_Group'], - 'L_AUTH_EXPLAIN' => ( $mode == 'user' ) ? $lang['User_auth_explain'] : $lang['Group_auth_explain'], - 'L_MODERATOR_STATUS' => $lang['Moderator_status'], - 'L_PERMISSIONS' => $lang['Permissions'], - 'L_SUBMIT' => $lang['Submit'], - 'L_RESET' => $lang['Reset'], - 'L_FORUM' => $lang['Forum'], - - 'U_USER_OR_GROUP' => append_sid("admin_ug_auth.$phpEx"), - 'U_SWITCH_MODE' => $u_switch_mode, - - 'S_COLUMN_SPAN' => $s_column_span, - 'S_AUTH_ACTION' => append_sid("admin_ug_auth.$phpEx"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); -} -else -{ - // - // Select a user/group - // - include('./page_header_admin.'.$phpEx); - - $template->set_filenames(array( - 'body' => ( $mode == 'user' ) ? 'admin/user_select_body.tpl' : 'admin/auth_select_body.tpl') - ); - - if ( $mode == 'user' ) - { - $template->assign_vars(array( - 'L_FIND_USERNAME' => $lang['Find_username'], - - 'U_SEARCH_USER' => append_sid("../search.$phpEx?mode=searchuser")) - ); - } - else - { - $sql = "SELECT group_id, group_name - FROM " . GROUPS_TABLE . " - WHERE group_single_user <> " . TRUE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't get group list", "", __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $select_list = ''; - } - - $template->assign_vars(array( - 'S_AUTH_SELECT' => $select_list) - ); - } - - $s_hidden_fields = ''; - - $l_type = ( $mode == 'user' ) ? 'USER' : 'AUTH'; - - $template->assign_vars(array( - 'L_' . $l_type . '_TITLE' => ( $mode == 'user' ) ? $lang['Auth_Control_User'] : $lang['Auth_Control_Group'], - 'L_' . $l_type . '_EXPLAIN' => ( $mode == 'user' ) ? $lang['User_auth_explain'] : $lang['Group_auth_explain'], - 'L_' . $l_type . '_SELECT' => ( $mode == 'user' ) ? $lang['Select_a_User'] : $lang['Select_a_Group'], - 'L_LOOK_UP' => ( $mode == 'user' ) ? $lang['Look_up_User'] : $lang['Look_up_Group'], - - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_' . $l_type . '_ACTION' => append_sid("admin_ug_auth.$phpEx")) - ); - -} - -$template->pparse('body'); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/admin/admin_user_ban.php b/phpBB2/admin/admin_user_ban.php deleted file mode 100644 index 73743bf..0000000 --- a/phpBB2/admin/admin_user_ban.php +++ /dev/null @@ -1,452 +0,0 @@ -sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain banlist information", "", __LINE__, __FILE__, $sql); - } - - $current_banlist = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - - $kill_session_sql = ''; - for($i = 0; $i < count($user_list); $i++) - { - $in_banlist = false; - for($j = 0; $j < count($current_banlist); $j++) - { - if ( $user_list[$i] == $current_banlist[$j]['ban_userid'] ) - { - $in_banlist = true; - } - } - - if ( !$in_banlist ) - { - $kill_session_sql .= ( ( $kill_session_sql != '' ) ? ' OR ' : '' ) . "session_user_id = " . $user_list[$i]; - - $sql = "INSERT INTO " . BANLIST_TABLE . " (ban_userid) - VALUES (" . $user_list[$i] . ")"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't insert ban_userid info into database", "", __LINE__, __FILE__, $sql); - } - } - } - - for($i = 0; $i < count($ip_list); $i++) - { - $in_banlist = false; - for($j = 0; $j < count($current_banlist); $j++) - { - if ( $ip_list[$i] == $current_banlist[$j]['ban_ip'] ) - { - $in_banlist = true; - } - } - - if ( !$in_banlist ) - { - if ( preg_match('/(ff\.)|(\.ff)/is', chunk_split($ip_list[$i], 2, '.')) ) - { - $kill_ip_sql = "session_ip LIKE '" . str_replace('.', '', preg_replace('/(ff\.)|(\.ff)/is', '%', chunk_split($ip_list[$i], 2, "."))) . "'"; - } - else - { - $kill_ip_sql = "session_ip = '" . $ip_list[$i] . "'"; - } - - $kill_session_sql .= ( ( $kill_session_sql != '' ) ? ' OR ' : '' ) . $kill_ip_sql; - - $sql = "INSERT INTO " . BANLIST_TABLE . " (ban_ip) - VALUES ('" . $ip_list[$i] . "')"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't insert ban_ip info into database", "", __LINE__, __FILE__, $sql); - } - } - } - - // - // Now we'll delete all entries from the session table with any of the banned - // user or IP info just entered into the ban table ... this will force a session - // initialisation resulting in an instant ban - // - if ( $kill_session_sql != '' ) - { - $sql = "DELETE FROM " . SESSIONS_TABLE . " - WHERE $kill_session_sql"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete banned sessions from database", "", __LINE__, __FILE__, $sql); - } - } - - for($i = 0; $i < count($email_list); $i++) - { - $in_banlist = false; - for($j = 0; $j < count($current_banlist); $j++) - { - if ( $email_list[$i] == $current_banlist[$j]['ban_email'] ) - { - $in_banlist = true; - } - } - - if ( !$in_banlist ) - { - $sql = "INSERT INTO " . BANLIST_TABLE . " (ban_email) - VALUES ('" . str_replace("\'", "''", $email_list[$i]) . "')"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't insert ban_email info into database", "", __LINE__, __FILE__, $sql); - } - } - } - - $where_sql = ''; - - if ( isset($HTTP_POST_VARS['unban_user']) ) - { - $user_list = $HTTP_POST_VARS['unban_user']; - - for($i = 0; $i < count($user_list); $i++) - { - if ( $user_list[$i] != -1 ) - { - $where_sql .= ( ( $where_sql != '' ) ? ', ' : '' ) . intval($user_list[$i]); - } - } - } - - if ( isset($HTTP_POST_VARS['unban_ip']) ) - { - $ip_list = $HTTP_POST_VARS['unban_ip']; - - for($i = 0; $i < count($ip_list); $i++) - { - if ( $ip_list[$i] != -1 ) - { - $where_sql .= ( ( $where_sql != '' ) ? ', ' : '' ) . str_replace("\'", "''", $ip_list[$i]); - } - } - } - - if ( isset($HTTP_POST_VARS['unban_email']) ) - { - $email_list = $HTTP_POST_VARS['unban_email']; - - for($i = 0; $i < count($email_list); $i++) - { - if ( $email_list[$i] != -1 ) - { - $where_sql .= ( ( $where_sql != '' ) ? ', ' : '' ) . str_replace("\'", "''", $email_list[$i]); - } - } - } - - if ( $where_sql != '' ) - { - $sql = "DELETE FROM " . BANLIST_TABLE . " - WHERE ban_id IN ($where_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete ban info from database", "", __LINE__, __FILE__, $sql); - } - } - - $message = $lang['Ban_update_sucessful'] . '

' . sprintf($lang['Click_return_banadmin'], '', '') . '

' . sprintf($lang['Click_return_admin_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - -} -else -{ - $template->set_filenames(array( - 'body' => 'admin/user_ban_body.tpl') - ); - - $template->assign_vars(array( - 'L_BAN_TITLE' => $lang['Ban_control'], - 'L_BAN_EXPLAIN' => $lang['Ban_explain'], - 'L_BAN_EXPLAIN_WARN' => $lang['Ban_explain_warn'], - 'L_IP_OR_HOSTNAME' => $lang['IP_hostname'], - 'L_EMAIL_ADDRESS' => $lang['Email_address'], - 'L_SUBMIT' => $lang['Submit'], - 'L_RESET' => $lang['Reset'], - - 'S_BANLIST_ACTION' => append_sid("admin_user_ban.$phpEx")) - ); - - $template->assign_vars(array( - 'L_BAN_USER' => $lang['Ban_username'], - 'L_BAN_USER_EXPLAIN' => $lang['Ban_username_explain'], - 'L_BAN_IP' => $lang['Ban_IP'], - 'L_BAN_IP_EXPLAIN' => $lang['Ban_IP_explain'], - 'L_BAN_EMAIL' => $lang['Ban_email'], - 'L_BAN_EMAIL_EXPLAIN' => $lang['Ban_email_explain']) - ); - - $userban_count = 0; - $ipban_count = 0; - $emailban_count = 0; - - $sql = "SELECT b.ban_id, u.user_id, u.username - FROM " . BANLIST_TABLE . " b, " . USERS_TABLE . " u - WHERE u.user_id = b.ban_userid - AND b.ban_userid <> 0 - AND u.user_id <> " . ANONYMOUS . " - ORDER BY u.user_id ASC"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select current user_id ban list', '', __LINE__, __FILE__, $sql); - } - - $user_list = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - - $select_userlist = ''; - for($i = 0; $i < count($user_list); $i++) - { - $select_userlist .= ''; - $userban_count++; - } - - if( $select_userlist == '' ) - { - $select_userlist = ''; - } - - $select_userlist = ''; - - $sql = "SELECT ban_id, ban_ip, ban_email - FROM " . BANLIST_TABLE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select current ip ban list', '', __LINE__, __FILE__, $sql); - } - - $banlist = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - - $select_iplist = ''; - $select_emaillist = ''; - - for($i = 0; $i < count($banlist); $i++) - { - $ban_id = $banlist[$i]['ban_id']; - - if ( !empty($banlist[$i]['ban_ip']) ) - { - $ban_ip = str_replace('255', '*', decode_ip($banlist[$i]['ban_ip'])); - $select_iplist .= ''; - $ipban_count++; - } - else if ( !empty($banlist[$i]['ban_email']) ) - { - $ban_email = $banlist[$i]['ban_email']; - $select_emaillist .= ''; - $emailban_count++; - } - } - - if ( $select_iplist == '' ) - { - $select_iplist = ''; - } - - if ( $select_emaillist == '' ) - { - $select_emaillist = ''; - } - - $select_iplist = ''; - $select_emaillist = ''; - - $template->assign_vars(array( - 'L_UNBAN_USER' => $lang['Unban_username'], - 'L_UNBAN_USER_EXPLAIN' => $lang['Unban_username_explain'], - 'L_UNBAN_IP' => $lang['Unban_IP'], - 'L_UNBAN_IP_EXPLAIN' => $lang['Unban_IP_explain'], - 'L_UNBAN_EMAIL' => $lang['Unban_email'], - 'L_UNBAN_EMAIL_EXPLAIN' => $lang['Unban_email_explain'], - 'L_USERNAME' => $lang['Username'], - 'L_LOOK_UP' => $lang['Look_up_User'], - 'L_FIND_USERNAME' => $lang['Find_username'], - - 'U_SEARCH_USER' => append_sid("./../search.$phpEx?mode=searchuser"), - 'S_UNBAN_USERLIST_SELECT' => $select_userlist, - 'S_UNBAN_IPLIST_SELECT' => $select_iplist, - 'S_UNBAN_EMAILLIST_SELECT' => $select_emaillist, - 'S_BAN_ACTION' => append_sid("admin_user_ban.$phpEx")) - ); -} - -$template->pparse('body'); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/admin/admin_userlist.php b/phpBB2/admin/admin_userlist.php deleted file mode 100644 index 11ced3f..0000000 --- a/phpBB2/admin/admin_userlist.php +++ /dev/null @@ -1,975 +0,0 @@ -'; - - unset($user_id); - $i++; - } - - $template->set_filenames(array( - 'body' => 'confirm_body.tpl') - ); - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Delete'], - 'MESSAGE_TEXT' => $lang['Confirm_user_deleted'], - - 'U_INDEX' => '', - 'L_INDEX' => '', - - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - - 'S_CONFIRM_ACTION' => append_sid('admin_userlist.'.$phpEx.'?mode=delete'), - 'S_HIDDEN_FIELDS' => $hidden_fields) - ); - } - else - { - // delete users - $i = 0; - while( $i < count($user_ids) ) - { - $user_id = intval($user_ids[$i]); - - $sql = "SELECT u.username, g.group_id - FROM " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g - WHERE ug.user_id = $user_id - AND g.group_id = ug.group_id - AND g.group_single_user = 1"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain group information for this user', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - - $sql = "UPDATE " . POSTS_TABLE . " - SET poster_id = " . DELETED . ", post_username = '" . $row['username'] . "' - WHERE poster_id = $user_id"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update posts for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "UPDATE " . TOPICS_TABLE . " - SET topic_poster = " . DELETED . " - WHERE topic_poster = $user_id"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update topics for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "UPDATE " . VOTE_USERS_TABLE . " - SET vote_user_id = " . DELETED . " - WHERE vote_user_id = $user_id"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update votes for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "SELECT group_id - FROM " . GROUPS_TABLE . " - WHERE group_moderator = $user_id"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql); - } - - while ( $row_group = $db->sql_fetchrow($result) ) - { - $group_moderator[] = $row_group['group_id']; - } - - if ( count($group_moderator) ) - { - $update_moderator_id = implode(', ', $group_moderator); - - $sql = "UPDATE " . GROUPS_TABLE . " - SET group_moderator = " . $userdata['user_id'] . " - WHERE group_moderator IN ($update_moderator_id)"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql); - } - } - - $sql = "DELETE FROM " . USERS_TABLE . " - WHERE user_id = $user_id"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete user', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . USER_GROUP_TABLE . " - WHERE user_id = $user_id"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete user from user_group table', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . GROUPS_TABLE . " - WHERE group_id = " . $row['group_id']; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " - WHERE group_id = " . $row['group_id']; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " - WHERE user_id = $user_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete user from topic watch table', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . BANLIST_TABLE . " - WHERE ban_userid = $user_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete user from banlist table', '', __LINE__, __FILE__, $sql); - } - - $sql = "SELECT privmsgs_id - FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_from_userid = $user_id - OR privmsgs_to_userid = $user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select all users private messages', '', __LINE__, __FILE__, $sql); - } - - // This little bit of code directly from the private messaging section. - while ( $row_privmsgs = $db->sql_fetchrow($result) ) - { - $mark_list[] = $row_privmsgs['privmsgs_id']; - } - - if ( count($mark_list) ) - { - $delete_sql_id = implode(', ', $mark_list); - - $delete_text_sql = "DELETE FROM " . PRIVMSGS_TEXT_TABLE . " - WHERE privmsgs_text_id IN ($delete_sql_id)"; - $delete_sql = "DELETE FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_id IN ($delete_sql_id)"; - - if ( !$db->sql_query($delete_sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete private message info', '', __LINE__, __FILE__, $delete_sql); - } - - if ( !$db->sql_query($delete_text_sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete private message text', '', __LINE__, __FILE__, $delete_text_sql); - } - } - - unset($user_id); - $i++; - } - - $message = $lang['User_deleted_successfully'] . "

" . sprintf($lang['Click_return_userlist'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - break; - - case 'ban': - - // - // see if cancel has been hit and redirect if it has - // shouldn't get to this point if it has been hit but - // do this just in case - // - if ( $cancel ) - { - redirect($phpbb_root_path . 'admin/admin_userlist.'.$phpEx); - } - - // - // check confirm and either ban or show confirm message - // - if ( !$confirm ) - { - $i = 0; - $hidden_fields = ''; - while( $i < count($user_ids) ) - { - $user_id = intval($user_ids[$i]); - $hidden_fields .= ''; - - unset($user_id); - $i++; - } - - $template->set_filenames(array( - 'body' => 'confirm_body.tpl') - ); - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Ban'], - 'MESSAGE_TEXT' => $lang['Confirm_user_ban'], - - 'U_INDEX' => '', - 'L_INDEX' => '', - - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - - 'S_CONFIRM_ACTION' => append_sid('admin_userlist.'.$phpEx.'?mode=ban'), - 'S_HIDDEN_FIELDS' => $hidden_fields) - ); - } - else - { - // ban users - $i = 0; - while( $i < count($user_ids) ) - { - $user_id = intval($user_ids[$i]); - - $sql = "INSERT INTO " . BANLIST_TABLE . " ( ban_userid ) - VALUES ( '$user_id' )"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain ban user', '', __LINE__, __FILE__, $sql); - } - - unset($user_id); - $i++; - } - - $message = $lang['User_banned_successfully'] . "

" . sprintf($lang['Click_return_userlist'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - break; - - case 'activate': - - // - // activate or deactive the seleted users - // - $i = 0; - while( $i < count($user_ids) ) - { - $user_id = intval($user_ids[$i]); - $sql = "SELECT user_active FROM " . USERS_TABLE . " - WHERE user_id = $user_id"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user information', '', __LINE__, __FILE__, $sql); - } - $row = $db->sql_fetchrow($result); - $db->sql_freeresult($result); - - $new_status = ( $row['user_active'] ) ? 0 : 1; - - $sql = "UPDATE " . USERS_TABLE . " - SET user_active = '$new_status' - WHERE user_id = $user_id"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update user status', '', __LINE__, __FILE__, $sql); - } - - unset($user_id); - $i++; - } - - $message = $lang['User_status_updated'] . "

" . sprintf($lang['Click_return_userlist'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - break; - - case 'group': - - // - // add users to a group - // - if ( !$confirm ) - { - // show form to select which group to add users to - $i = 0; - $hidden_fields = ''; - while( $i < count($user_ids) ) - { - $user_id = intval($user_ids[$i]); - $hidden_fields .= ''; - - unset($user_id); - $i++; - } - - $template->set_filenames(array( - 'body' => 'admin/userlist_group.tpl') - ); - - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Add_group'], - 'MESSAGE_TEXT' => $lang['Add_group_explain'], - - 'L_GROUP' => $lang['Group'], - - 'S_GROUP_VARIABLE' => POST_GROUPS_URL, - 'S_ACTION' => append_sid($phpbb_root_path . 'admin/admin_userlist.'.$phpEx.'?mode=group'), - 'L_GO' => $lang['Go'], - 'L_CANCEL' => $lang['Cancel'], - 'L_SELECT' => $lang['Select_one'], - 'S_HIDDEN_FIELDS' => $hidden_fields) - ); - - $sql = "SELECT group_id, group_name FROM " . GROUPS_TABLE . " - WHERE group_single_user <> " . TRUE . " - ORDER BY group_name"; - - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not query groups', '', __LINE__, __FILE__, $sql); - } - - // loop through groups - while ( $row = $db->sql_fetchrow($result) ) - { - $template->assign_block_vars('grouprow',array( - 'GROUP_NAME' => $row['group_name'], - 'GROUP_ID' => $row['group_id']) - ); - } - } - else - { - // add the users to the selected group - $group_id = intval($HTTP_POST_VARS[POST_GROUPS_URL]); - - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $i = 0; - while( $i < count($user_ids) ) - { - $user_id = intval($user_ids[$i]); - - // - // For security, get the ID of the group moderator. - // - switch(SQL_LAYER) - { - /*case 'postgresql': - $sql = "SELECT g.group_moderator, g.group_type, aa.auth_mod - FROM " . GROUPS_TABLE . " g, " . AUTH_ACCESS_TABLE . " aa - WHERE g.group_id = $group_id - AND aa.group_id = g.group_id - UNION ( - SELECT g.group_moderator, g.group_type, NULL - FROM " . GROUPS_TABLE . " g - WHERE g.group_id = $group_id - AND NOT EXISTS ( - SELECT aa.group_id - FROM " . AUTH_ACCESS_TABLE . " aa - WHERE aa.group_id = g.group_id - ) - )"; - break;*/ - - case 'oracle': - $sql = "SELECT g.group_moderator, g.group_type, aa.auth_mod - FROM " . GROUPS_TABLE . " g, " . AUTH_ACCESS_TABLE . " aa - WHERE g.group_id = $group_id - AND aa.group_id = g.group_id(+)"; - break; - - default: - $sql = "SELECT g.group_moderator, g.group_type, aa.auth_mod - FROM ( " . GROUPS_TABLE . " g - LEFT JOIN " . AUTH_ACCESS_TABLE . " aa ON aa.group_id = g.group_id ) - WHERE g.group_id = $group_id"; - break; - } - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get moderator information', '', __LINE__, __FILE__, $sql); - } - - $group_info = $db->sql_fetchrow($result); - - $sql = "SELECT user_id, user_email, user_lang, user_level - FROM " . USERS_TABLE . " - WHERE user_id = $user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not get user information", $lang['Error'], __LINE__, __FILE__, $sql); - } - $row = $db->sql_fetchrow($result); - - $sql = "SELECT ug.user_id, u.user_level - FROM " . USER_GROUP_TABLE . " ug, " . USERS_TABLE . " u - WHERE u.user_id = " . $row['user_id'] . " - AND ug.user_id = u.user_id - AND ug.group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get user information', '', __LINE__, __FILE__, $sql); - } - - if ( !($db->sql_fetchrow($result)) ) - { - $sql = "INSERT INTO " . USER_GROUP_TABLE . " (user_id, group_id, user_pending) - VALUES (" . $row['user_id'] . ", $group_id, 0)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not add user to group', '', __LINE__, __FILE__, $sql); - } - - if ( $row['user_level'] != ADMIN && $row['user_level'] != MOD && $group_info['auth_mod'] ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . MOD . " - WHERE user_id = " . $row['user_id']; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql); - } - } - - // - // Get the group name - // Email the user and tell them they're in the group - // - $group_sql = "SELECT group_name - FROM " . GROUPS_TABLE . " - WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($group_sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get group information', '', __LINE__, __FILE__, $group_sql); - } - - $group_name_row = $db->sql_fetchrow($result); - - $group_name = $group_name_row['group_name']; - - $script_name = preg_replace('/^\/?(.*?)\/?$/', "\\1", trim($board_config['script_path'])); - $script_name = ( $script_name != '' ) ? $script_name . '/groupcp.'.$phpEx : 'groupcp.'.$phpEx; - $server_name = trim($board_config['server_name']); - $server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://'; - $server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/'; - - $server_url = $server_protocol . $server_name . $server_port . $script_name; - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->use_template('group_added', $row['user_lang']); - $emailer->email_address($row['user_email']); - $emailer->set_subject($lang['Group_added']); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'GROUP_NAME' => $group_name, - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
', "\n", "-- \n" . $board_config['board_email_sig']) : '', - - 'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . "=$group_id") - ); - $emailer->send(); - $emailer->reset(); - - } - - unset($user_id); - $i++; - } - - $message = $lang['User_add_group_successfully'] . "

" . sprintf($lang['Click_return_userlist'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - break; - - default: - - // - // get and display all of the users - // - $template->set_filenames(array( - 'body' => 'admin/userlist_body.tpl') - ); - - // - // gets for alphanum - // - $alpha_range = array(); - $alpha_letters = array(); - $alpha_letters = range('A','Z'); - $alpha_start = array($lang['All'], '#'); - $alpha_range = array_merge($alpha_start, $alpha_letters); - - $i = 0; - while( $i < count($alpha_range) ) - { - - if ( $alpha_range[$i] != $lang['All'] ) - { - if ( $alpha_range[$i] != '#' ) - { - $temp = strtolower($alpha_range[$i]); - } - else - { - $temp = 'num'; - } - $alphanum_search_url = append_sid($phpbb_root_path . "admin/admin_userlist.$phpEx?sort=$sort&order=$sort_order&show=$show&alphanum=$temp"); - } - else - { - $alphanum_search_url = append_sid($phpbb_root_path . "admin/admin_userlist.$phpEx?sort=$sort&order=$sort_order&show=$show"); - } - - if ( ( $alphanum == $temp ) || ( $alpha_range[$i] == $lang['All'] && empty($alphanum) ) ) - { - $alpha_range[$i] = '' . $alpha_range[$i] . ''; - } - - $template->assign_block_vars('alphanumsearch', array( - 'SEARCH_SIZE' => floor(100/count($alpha_range)) . '%', - 'SEARCH_TERM' => $alpha_range[$i], - 'SEARCH_LINK' => $alphanum_search_url) - ); - - $i++; - } - - $hidden_fields = ''; - $hidden_fields .= ''; - - // - // set up template varibles - // - $template->assign_vars(array( - 'L_TITLE' => $lang['Userlist'], - 'L_DESCRIPTION' => $lang['Userlist_description'], - - 'L_OPEN_CLOSE' => $lang['Open_close'], - 'L_ACTIVE' => $lang['Active'], - 'L_USERNAME' => $lang['Username'], - 'L_GROUP' => $lang['Group'], - 'L_RANK' => $lang['Rank'], - 'L_POSTS' => $lang['Posts'], - 'L_FIND_ALL_POSTS' => $lang['Find_all_posts'], - 'L_JOINED' => $lang['Joined'], - 'L_ACTIVTY' => $lang['Last_activity'], - 'L_MANAGE' => $lang['User_manage'], - 'L_PERMISSIONS' => $lang['Permissions'], - 'L_EMAIL' => $lang['Email'], - 'L_PM' => $lang['Private_Message'], - 'L_WEBSITE' => $lang['Website'], - - 'S_USER_VARIABLE' => POST_USERS_URL, - 'S_ACTION' => append_sid($phpbb_root_path . 'admin/admin_userlist.'.$phpEx), - 'L_GO' => $lang['Go'], - 'L_SELECT' => $lang['Select_one'], - 'L_DELETE' => $lang['Delete'], - 'L_BAN' => $lang['Ban'], - 'L_ACTIVATE_DEACTIVATE' => $lang['Activate_deactivate'], - 'L_ADD_GROUP' => $lang['Add_group'], - - 'S_SHOW' => $show, - 'L_SORT_BY' => $lang['Sort_by'], - 'L_USER_ID' => $lang['User_id'], - 'L_USER_LEVEL' => $lang['User_level'], - 'L_ASCENDING' => $lang['Ascending'], - 'L_DESCENDING' => $lang['Descending'], - 'L_SHOW' => $lang['Show'], - 'S_SORT' => $lang['Sort'], - 'S_HIDDEN_FIELDS' => $hidden_fields) - ); - - $order_by = "ORDER BY $sort $order "; - - $sql = "SELECT * - FROM " . USERS_TABLE . " - WHERE user_id <> " . ANONYMOUS . " - $alpha_where - $order_by - LIMIT $start, $show"; - - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not query users', '', __LINE__, __FILE__, $sql); - } - - // loop through users - $i = 1; - while ( $row = $db->sql_fetchrow($result) ) - { - // - // users avatar - // - $avatar_img = ''; - if ( $row['user_avatar_type'] && $row['user_allowavatar'] ) - { - switch( $row['user_avatar_type'] ) - { - case USER_AVATAR_UPLOAD: - $avatar_img = ( $board_config['allow_avatar_upload'] ) ? '' : ''; - break; - case USER_AVATAR_REMOTE: - $avatar_img = ( $board_config['allow_avatar_remote'] ) ? '' : ''; - break; - case USER_AVATAR_GALLERY: - $avatar_img = ( $board_config['allow_avatar_local'] ) ? '' : ''; - break; - } - } - - // - // users rank - // - $rank_sql = "SELECT * - FROM " . RANKS_TABLE . " - ORDER BY rank_special, rank_min"; - if ( !($rank_result = $db->sql_query($rank_sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain ranks information', '', __LINE__, __FILE__, $sql); - } - - while ( $rank_row = $db->sql_fetchrow($rank_result) ) - { - $ranksrow[] = $rank_row; - } - $db->sql_freeresult($rank_result); - - $poster_rank = ''; - $rank_image = ''; - if ( $row['user_rank'] ) - { - for($ji = 0; $ji < count($ranksrow); $ji++) - { - if ( $row['user_rank'] == $ranksrow[$ji]['rank_id'] && $ranksrow[$ji]['rank_special'] ) - { - $poster_rank = $ranksrow[$ji]['rank_title']; - $rank_image = ( $ranksrow[$ji]['rank_image'] ) ? '' . $poster_rank . '
' : ''; - } - } - } - else - { - for($ji = 0; $ji < count($ranksrow); $ji++) - { - if ( $row['user_posts'] >= $ranksrow[$ji]['rank_min'] && !$ranksrow[$ji]['rank_special'] ) - { - $poster_rank = $ranksrow[$ji]['rank_title']; - $rank_image = ( $ranksrow[$ji]['rank_image'] ) ? '' . $poster_rank . '
' : ''; - } - } - } - - // - // user's color depending on their level - // - $style_color = ''; - if ( $row['user_level'] == ADMIN ) - { - $row['username'] = '' . $row['username'] . ''; - $style_color = 'style="color:#' . $theme['fontcolor3'] . '"'; - } - else if ( $row['user_level'] == MOD ) - { - $row['username'] = '' . $row['username'] . ''; - $style_color = 'style="color:#' . $theme['fontcolor2'] . '"'; - } - - // - // setup user row template varibles - // - $template->assign_block_vars('user_row', array( - 'ROW_NUMBER' => $i + ( $HTTP_GET_VARS['start'] + 1 ), - 'ROW_CLASS' => ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'], - - 'USER_ID' => $row['user_id'], - 'ACTIVE' => ( $row['user_active'] == TRUE ) ? $lang['Yes'] : $lang['No'], - 'STYLE_COLOR' => $style_color, - 'USERNAME' => $row['username'], - 'U_PROFILE' => append_sid($phpbb_root_path . 'profile.'.$phpEx.'?mode=viewprofile&' . POST_USERS_URL . '=' . $row['user_id']), - - 'RANK' => $poster_rank, - 'I_RANK' => $rank_image, - 'I_AVATAR' => $avatar_img, - - 'JOINED' => create_date('d M Y', $row['user_regdate'], $board_config['board_timezone']), - 'LAST_ACTIVITY' => ( !empty($row['user_session_time']) ) ? create_date('d M Y', $row['user_session_time'], $board_config['board_timezone']) : $lang['Never'], - - 'POSTS' => ( $row['user_posts'] ) ? $row['user_posts'] : 0, - 'U_SEARCH' => append_sid($phpbb_root_path . 'search.'.$phpEx.'?search_author=' . urlencode(strip_tags($row['username'])) . '&showresults=posts'), - - 'U_WEBSITE' => ( $row['user_website'] ) ? $row['user_website'] : '', - - 'EMAIL' => $row['user_email'], - 'U_PM' => append_sid($phpbb_root_path . 'privmsg.' . $phpEx . '?mode=post&' . POST_USERS_URL . '='. $row['user_id']), - 'U_MANAGE' => append_sid($phpbb_root_path . 'admin/admin_users.'.$phpEx.'?mode=edit&' . POST_USERS_URL . '=' . $row['user_id']), - 'U_PERMISSIONS' => append_sid($phpbb_root_path . 'admin/admin_ug_auth.'.$phpEx.'?mode=user&' . POST_USERS_URL . '=' . $row['user_id'])) - ); - - // - // get the users group information - // - $group_sql = "SELECT * FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g - WHERE ug.user_id = " . $row['user_id'] . " - AND g.group_single_user <> 1 - AND g.group_id = ug.group_id"; - - if( !($group_result = $db->sql_query($group_sql)) ) - { - message_die(GENERAL_ERROR, 'Could not query groups', '', __LINE__, __FILE__, $group_sql); - } - $g = 0; - while ( $group_row = $db->sql_fetchrow($group_result) ) - { - // - // assign the group varibles - // - if ( $group_row['group_moderator'] == $row['user_id'] ) - { - $group_status = $lang['Moderator']; - } - else if ( $group_row['user_pending'] == true ) - { - $group_status = $lang['Pending']; - } - else - { - $group_status = $lang['Member']; - } - - $template->assign_block_vars('user_row.group_row', array( - 'GROUP_NAME' => $group_row['group_name'], - 'GROUP_STATUS' => $group_status, - 'U_GROUP' => $phpbb_root_path . 'groupcp.'.$phpEx.'?'.POST_GROUPS_URL.'='.$group_row['group_id']) - ); - $g++; - } - - if ( $g == 0 ) - { - $template->assign_block_vars('user_row.no_group_row', array( - 'L_NONE' => $lang['None']) - ); - } - - $i++; - } - $db->sql_freeresult($result); - - $count_sql = "SELECT count(user_id) AS total - FROM " . USERS_TABLE . " - WHERE user_id <> " . ANONYMOUS . " $alpha_where"; - - if ( !($count_result = $db->sql_query($count_sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting total users', '', __LINE__, __FILE__, $sql); - } - - if ( $total = $db->sql_fetchrow($count_result) ) - { - $total_members = $total['total']; - - $pagination = generate_pagination($phpbb_root_path . "admin/admin_userlist.$phpEx?sort=$sort&order=$sort_order&show=$show" . ( ( isset($alphanum) ) ? "&alphanum=$alphanum" : '' ), $total_members, $show, $start); - } - - $template->assign_vars(array( - 'PAGINATION' => $pagination, - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $show ) + 1 ), ceil( $total_members / $show ))) - ); - - break; - -} // switch() - -$template->pparse('body'); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/admin/admin_users.php b/phpBB2/admin/admin_users.php deleted file mode 100644 index cf567e6..0000000 --- a/phpBB2/admin/admin_users.php +++ /dev/null @@ -1,1173 +0,0 @@ -#'); -$html_entities_replace = array('<', '>'); - -// -// Set mode -// -if( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) -{ - $mode = ( isset( $HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; - $mode = htmlspecialchars($mode); -} -else -{ - $mode = ''; -} - -// -// Begin program -// -if ( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username']) || isset($HTTP_GET_VARS[POST_USERS_URL]) || isset( $HTTP_POST_VARS[POST_USERS_URL]) ) ) -{ - // - // Ok, the profile has been modified and submitted, let's update - // - if ( ( $mode == 'save' && isset( $HTTP_POST_VARS['submit'] ) ) || isset( $HTTP_POST_VARS['avatargallery'] ) || isset( $HTTP_POST_VARS['submitavatar'] ) || isset( $HTTP_POST_VARS['cancelavatar'] ) ) - { - $user_id = intval($HTTP_POST_VARS['id']); - - if (!($this_userdata = get_userdata($user_id))) - { - message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] ); - } - - if( $HTTP_POST_VARS['deleteuser'] && ( $userdata['user_id'] != $user_id ) ) - { - $sql = "SELECT g.group_id - FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g - WHERE ug.user_id = $user_id - AND g.group_id = ug.group_id - AND g.group_single_user = 1"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain group information for this user', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - - $sql = "UPDATE " . POSTS_TABLE . " - SET poster_id = " . DELETED . ", post_username = '" . str_replace("\\'", "''", addslashes($this_userdata['username'])) . "' - WHERE poster_id = $user_id"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update posts for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "UPDATE " . TOPICS_TABLE . " - SET topic_poster = " . DELETED . " - WHERE topic_poster = $user_id"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update topics for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "UPDATE " . VOTE_USERS_TABLE . " - SET vote_user_id = " . DELETED . " - WHERE vote_user_id = $user_id"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update votes for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "SELECT group_id - FROM " . GROUPS_TABLE . " - WHERE group_moderator = $user_id"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql); - } - - while ( $row_group = $db->sql_fetchrow($result) ) - { - $group_moderator[] = $row_group['group_id']; - } - - if ( count($group_moderator) ) - { - $update_moderator_id = implode(', ', $group_moderator); - - $sql = "UPDATE " . GROUPS_TABLE . " - SET group_moderator = " . $userdata['user_id'] . " - WHERE group_moderator IN ($update_moderator_id)"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql); - } - } - - $sql = "DELETE FROM " . USERS_TABLE . " - WHERE user_id = $user_id"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete user', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . USER_GROUP_TABLE . " - WHERE user_id = $user_id"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete user from user_group table', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . GROUPS_TABLE . " - WHERE group_id = " . $row['group_id']; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " - WHERE group_id = " . $row['group_id']; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " - WHERE user_id = $user_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete user from topic watch table', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . BANLIST_TABLE . " - WHERE ban_userid = $user_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete user from banlist table', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . SESSIONS_TABLE . " - WHERE session_user_id = $user_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete sessions for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . SESSIONS_KEYS_TABLE . " - WHERE user_id = $user_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete auto-login keys for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "SELECT privmsgs_id - FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_from_userid = $user_id - OR privmsgs_to_userid = $user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select all users private messages', '', __LINE__, __FILE__, $sql); - } - - // This little bit of code directly from the private messaging section. - while ( $row_privmsgs = $db->sql_fetchrow($result) ) - { - $mark_list[] = $row_privmsgs['privmsgs_id']; - } - - if ( count($mark_list) ) - { - $delete_sql_id = implode(', ', $mark_list); - - $delete_text_sql = "DELETE FROM " . PRIVMSGS_TEXT_TABLE . " - WHERE privmsgs_text_id IN ($delete_sql_id)"; - $delete_sql = "DELETE FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_id IN ($delete_sql_id)"; - - if ( !$db->sql_query($delete_sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete private message info', '', __LINE__, __FILE__, $delete_sql); - } - - if ( !$db->sql_query($delete_text_sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete private message text', '', __LINE__, __FILE__, $delete_text_sql); - } - } - - $message = $lang['User_deleted'] . '

' . sprintf($lang['Click_return_useradmin'], '', '') . '

' . sprintf($lang['Click_return_admin_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - - $username = ( !empty($HTTP_POST_VARS['username']) ) ? phpbb_clean_username($HTTP_POST_VARS['username']) : ''; - $email = ( !empty($HTTP_POST_VARS['email']) ) ? trim(strip_tags(htmlspecialchars( $HTTP_POST_VARS['email'] ) )) : ''; - - $password = ( !empty($HTTP_POST_VARS['password']) ) ? trim(strip_tags(htmlspecialchars( $HTTP_POST_VARS['password'] ) )) : ''; - $password_confirm = ( !empty($HTTP_POST_VARS['password_confirm']) ) ? trim(strip_tags(htmlspecialchars( $HTTP_POST_VARS['password_confirm'] ) )) : ''; - - $icq = ( !empty($HTTP_POST_VARS['icq']) ) ? trim(strip_tags( $HTTP_POST_VARS['icq'] ) ) : ''; - $aim = ( !empty($HTTP_POST_VARS['aim']) ) ? trim(strip_tags( $HTTP_POST_VARS['aim'] ) ) : ''; - $msn = ( !empty($HTTP_POST_VARS['msn']) ) ? trim(strip_tags( $HTTP_POST_VARS['msn'] ) ) : ''; - $yim = ( !empty($HTTP_POST_VARS['yim']) ) ? trim(strip_tags( $HTTP_POST_VARS['yim'] ) ) : ''; - - $website = ( !empty($HTTP_POST_VARS['website']) ) ? trim(strip_tags( $HTTP_POST_VARS['website'] ) ) : ''; - $location = ( !empty($HTTP_POST_VARS['location']) ) ? trim(strip_tags( $HTTP_POST_VARS['location'] ) ) : ''; - $occupation = ( !empty($HTTP_POST_VARS['occupation']) ) ? trim(strip_tags( $HTTP_POST_VARS['occupation'] ) ) : ''; - $interests = ( !empty($HTTP_POST_VARS['interests']) ) ? trim(strip_tags( $HTTP_POST_VARS['interests'] ) ) : ''; - $signature = ( !empty($HTTP_POST_VARS['signature']) ) ? trim(str_replace('
', "\n", $HTTP_POST_VARS['signature'] ) ) : ''; - - validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature); - - $viewemail = ( isset( $HTTP_POST_VARS['viewemail']) ) ? ( ( $HTTP_POST_VARS['viewemail'] ) ? TRUE : 0 ) : 0; - $allowviewonline = ( isset( $HTTP_POST_VARS['hideonline']) ) ? ( ( $HTTP_POST_VARS['hideonline'] ) ? 0 : TRUE ) : TRUE; - $notifyreply = ( isset( $HTTP_POST_VARS['notifyreply']) ) ? ( ( $HTTP_POST_VARS['notifyreply'] ) ? TRUE : 0 ) : 0; - $notifypm = ( isset( $HTTP_POST_VARS['notifypm']) ) ? ( ( $HTTP_POST_VARS['notifypm'] ) ? TRUE : 0 ) : TRUE; - $popuppm = ( isset( $HTTP_POST_VARS['popup_pm']) ) ? ( ( $HTTP_POST_VARS['popup_pm'] ) ? TRUE : 0 ) : TRUE; - $attachsig = ( isset( $HTTP_POST_VARS['attachsig']) ) ? ( ( $HTTP_POST_VARS['attachsig'] ) ? TRUE : 0 ) : 0; - - $allowhtml = ( isset( $HTTP_POST_VARS['allowhtml']) ) ? intval( $HTTP_POST_VARS['allowhtml'] ) : $board_config['allow_html']; - $allowbbcode = ( isset( $HTTP_POST_VARS['allowbbcode']) ) ? intval( $HTTP_POST_VARS['allowbbcode'] ) : $board_config['allow_bbcode']; - $allowsmilies = ( isset( $HTTP_POST_VARS['allowsmilies']) ) ? intval( $HTTP_POST_VARS['allowsmilies'] ) : $board_config['allow_smilies']; - - $user_style = ( isset( $HTTP_POST_VARS['style'] ) ) ? intval( $HTTP_POST_VARS['style'] ) : $board_config['default_style']; - $user_lang = ( $HTTP_POST_VARS['language'] ) ? $HTTP_POST_VARS['language'] : $board_config['default_lang']; - $user_timezone = ( isset( $HTTP_POST_VARS['timezone']) ) ? doubleval( $HTTP_POST_VARS['timezone'] ) : $board_config['board_timezone']; - $user_dateformat = ( $HTTP_POST_VARS['dateformat'] ) ? trim( $HTTP_POST_VARS['dateformat'] ) : $board_config['default_dateformat']; - - $user_avatar_local = ( isset( $HTTP_POST_VARS['avatarselect'] ) && !empty($HTTP_POST_VARS['submitavatar'] ) && $board_config['allow_avatar_local'] ) ? $HTTP_POST_VARS['avatarselect'] : ( ( isset( $HTTP_POST_VARS['avatarlocal'] ) ) ? $HTTP_POST_VARS['avatarlocal'] : '' ); - $user_avatar_category = ( isset($HTTP_POST_VARS['avatarcatname']) && $board_config['allow_avatar_local'] ) ? htmlspecialchars($HTTP_POST_VARS['avatarcatname']) : '' ; - - $user_avatar_remoteurl = ( !empty($HTTP_POST_VARS['avatarremoteurl']) ) ? trim( $HTTP_POST_VARS['avatarremoteurl'] ) : ''; - $user_avatar_url = ( !empty($HTTP_POST_VARS['avatarurl']) ) ? trim( $HTTP_POST_VARS['avatarurl'] ) : ''; - $user_avatar_loc = ( $HTTP_POST_FILES['avatar']['tmp_name'] != "none") ? $HTTP_POST_FILES['avatar']['tmp_name'] : ''; - $user_avatar_name = ( !empty($HTTP_POST_FILES['avatar']['name']) ) ? $HTTP_POST_FILES['avatar']['name'] : ''; - $user_avatar_size = ( !empty($HTTP_POST_FILES['avatar']['size']) ) ? $HTTP_POST_FILES['avatar']['size'] : 0; - $user_avatar_filetype = ( !empty($HTTP_POST_FILES['avatar']['type']) ) ? $HTTP_POST_FILES['avatar']['type'] : ''; - - $user_avatar = ( empty($user_avatar_loc) ) ? $this_userdata['user_avatar'] : ''; - $user_avatar_type = ( empty($user_avatar_loc) ) ? $this_userdata['user_avatar_type'] : ''; - - $user_status = ( !empty($HTTP_POST_VARS['user_status']) ) ? intval( $HTTP_POST_VARS['user_status'] ) : 0; - $user_allowpm = ( !empty($HTTP_POST_VARS['user_allowpm']) ) ? intval( $HTTP_POST_VARS['user_allowpm'] ) : 0; - $user_rank = ( !empty($HTTP_POST_VARS['user_rank']) ) ? intval( $HTTP_POST_VARS['user_rank'] ) : 0; - $user_allowavatar = ( !empty($HTTP_POST_VARS['user_allowavatar']) ) ? intval( $HTTP_POST_VARS['user_allowavatar'] ) : 0; - - if( isset( $HTTP_POST_VARS['avatargallery'] ) || isset( $HTTP_POST_VARS['submitavatar'] ) || isset( $HTTP_POST_VARS['cancelavatar'] ) ) - { - $username = stripslashes($username); - $email = stripslashes($email); - $password = ''; - $password_confirm = ''; - - $icq = stripslashes($icq); - $aim = htmlspecialchars(stripslashes($aim)); - $msn = htmlspecialchars(stripslashes($msn)); - $yim = htmlspecialchars(stripslashes($yim)); - - $website = htmlspecialchars(stripslashes($website)); - $location = htmlspecialchars(stripslashes($location)); - $occupation = htmlspecialchars(stripslashes($occupation)); - $interests = htmlspecialchars(stripslashes($interests)); - $signature = htmlspecialchars(stripslashes($signature)); - - $user_lang = stripslashes($user_lang); - $user_dateformat = htmlspecialchars(stripslashes($user_dateformat)); - - if ( !isset($HTTP_POST_VARS['cancelavatar'])) - { - $user_avatar = $user_avatar_category . '/' . $user_avatar_local; - $user_avatar_type = USER_AVATAR_GALLERY; - } - } - } - - if( isset( $HTTP_POST_VARS['submit'] ) ) - { - include($phpbb_root_path . 'includes/usercp_avatar.'.$phpEx); - - $error = FALSE; - - if (stripslashes($username) != $this_userdata['username']) - { - unset($rename_user); - - if ( stripslashes(strtolower($username)) != strtolower($this_userdata['username']) ) - { - $result = validate_username($username); - if ( $result['error'] ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $result['error_msg']; - } - else if ( strtolower(str_replace("\\'", "''", $username)) == strtolower($userdata['username']) ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Username_taken']; - } - } - - if (!$error) - { - $username_sql = "username = '" . str_replace("\\'", "''", $username) . "', "; - $rename_user = $username; // Used for renaming usergroup - } - } - - $passwd_sql = ''; - if( !empty($password) && !empty($password_confirm) ) - { - // - // Awww, the user wants to change their password, isn't that cute.. - // - if($password != $password_confirm) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Password_mismatch']; - } - else - { - $password = md5($password); - $passwd_sql = "user_password = '$password', "; - } - } - else if( $password && !$password_confirm ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Password_mismatch']; - } - else if( !$password && $password_confirm ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Password_mismatch']; - } - - if ($signature != '') - { - $sig_length_check = preg_replace('/(\[.*?)(=.*?)\]/is', '\\1]', stripslashes($signature)); - if ( $allowhtml ) - { - $sig_length_check = preg_replace('/(\<.*?)(=.*?)( .*?=.*?)?([ \/]?\>)/is', '\\1\\3\\4', $sig_length_check); - } - - // Only create a new bbcode_uid when there was no uid yet. - if ( $signature_bbcode_uid == '' ) - { - $signature_bbcode_uid = ( $allowbbcode ) ? make_bbcode_uid() : ''; - } - $signature = prepare_message($signature, $allowhtml, $allowbbcode, $allowsmilies, $signature_bbcode_uid); - - if ( strlen($sig_length_check) > $board_config['max_sig_chars'] ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Signature_too_long']; - } - } - - // - // Avatar stuff - // - $avatar_sql = ""; - if( isset($HTTP_POST_VARS['avatardel']) ) - { - if( $this_userdata['user_avatar_type'] == USER_AVATAR_UPLOAD && $this_userdata['user_avatar'] != "" ) - { - if( @file_exists(@phpbb_realpath('./../' . $board_config['avatar_path'] . "/" . $this_userdata['user_avatar'])) ) - { - @unlink('./../' . $board_config['avatar_path'] . "/" . $this_userdata['user_avatar']); - } - } - $avatar_sql = ", user_avatar = '', user_avatar_type = " . USER_AVATAR_NONE; - } - else if( ( $user_avatar_loc != "" || !empty($user_avatar_url) ) && !$error ) - { - // - // Only allow one type of upload, either a - // filename or a URL - // - if( !empty($user_avatar_loc) && !empty($user_avatar_url) ) - { - $error = TRUE; - if( isset($error_msg) ) - { - $error_msg .= "
"; - } - $error_msg .= $lang['Only_one_avatar']; - } - - if( $user_avatar_loc != "" ) - { - if( file_exists(@phpbb_realpath($user_avatar_loc)) && ereg(".jpg$|.gif$|.png$", $user_avatar_name) ) - { - if( $user_avatar_size <= $board_config['avatar_filesize'] && $user_avatar_size > 0) - { - $error_type = false; - - // - // Opera appends the image name after the type, not big, not clever! - // - preg_match("'image\/[x\-]*([a-z]+)'", $user_avatar_filetype, $user_avatar_filetype); - $user_avatar_filetype = $user_avatar_filetype[1]; - - switch( $user_avatar_filetype ) - { - case "jpeg": - case "pjpeg": - case "jpg": - $imgtype = '.jpg'; - break; - case "gif": - $imgtype = '.gif'; - break; - case "png": - $imgtype = '.png'; - break; - default: - $error = true; - $error_msg = (!empty($error_msg)) ? $error_msg . "
" . $lang['Avatar_filetype'] : $lang['Avatar_filetype']; - break; - } - - if( !$error ) - { - list($width, $height) = @getimagesize($user_avatar_loc); - - if( $width <= $board_config['avatar_max_width'] && $height <= $board_config['avatar_max_height'] ) - { - $user_id = $this_userdata['user_id']; - - $avatar_filename = $user_id . $imgtype; - - if( $this_userdata['user_avatar_type'] == USER_AVATAR_UPLOAD && $this_userdata['user_avatar'] != "" ) - { - if( @file_exists(@phpbb_realpath("./../" . $board_config['avatar_path'] . "/" . $this_userdata['user_avatar'])) ) - { - @unlink("./../" . $board_config['avatar_path'] . "/". $this_userdata['user_avatar']); - } - } - @copy($user_avatar_loc, "./../" . $board_config['avatar_path'] . "/$avatar_filename"); - - $avatar_sql = ", user_avatar = '$avatar_filename', user_avatar_type = " . USER_AVATAR_UPLOAD; - } - else - { - $l_avatar_size = sprintf($lang['Avatar_imagesize'], $board_config['avatar_max_width'], $board_config['avatar_max_height']); - - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
" . $l_avatar_size : $l_avatar_size; - } - } - } - else - { - $l_avatar_size = sprintf($lang['Avatar_filesize'], round($board_config['avatar_filesize'] / 1024)); - - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
" . $l_avatar_size : $l_avatar_size; - } - } - else - { - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
" . $lang['Avatar_filetype'] : $lang['Avatar_filetype']; - } - } - else if( !empty($user_avatar_url) ) - { - // - // First check what port we should connect - // to, look for a :[xxxx]/ or, if that doesn't - // exist assume port 80 (http) - // - preg_match("/^(http:\/\/)?([\w\-\.]+)\:?([0-9]*)\/(.*)$/", $user_avatar_url, $url_ary); - - if( !empty($url_ary[4]) ) - { - $port = (!empty($url_ary[3])) ? $url_ary[3] : 80; - - $fsock = @fsockopen($url_ary[2], $port, $errno, $errstr); - if( $fsock ) - { - $base_get = "/" . $url_ary[4]; - - // - // Uses HTTP 1.1, could use HTTP 1.0 ... - // - @fputs($fsock, "GET $base_get HTTP/1.1\r\n"); - @fputs($fsock, "HOST: " . $url_ary[2] . "\r\n"); - @fputs($fsock, "Connection: close\r\n\r\n"); - - unset($avatar_data); - while( !@feof($fsock) ) - { - $avatar_data .= @fread($fsock, $board_config['avatar_filesize']); - } - @fclose($fsock); - - if( preg_match("/Content-Length\: ([0-9]+)[^\/ ][\s]+/i", $avatar_data, $file_data1) && preg_match("/Content-Type\: image\/[x\-]*([a-z]+)[\s]+/i", $avatar_data, $file_data2) ) - { - $file_size = $file_data1[1]; - $file_type = $file_data2[1]; - - switch( $file_type ) - { - case "jpeg": - case "pjpeg": - case "jpg": - $imgtype = '.jpg'; - break; - case "gif": - $imgtype = '.gif'; - break; - case "png": - $imgtype = '.png'; - break; - default: - $error = true; - $error_msg = (!empty($error_msg)) ? $error_msg . "
" . $lang['Avatar_filetype'] : $lang['Avatar_filetype']; - break; - } - - if( !$error && $file_size > 0 && $file_size < $board_config['avatar_filesize'] ) - { - $avatar_data = substr($avatar_data, strlen($avatar_data) - $file_size, $file_size); - - $tmp_filename = tempnam ("/tmp", $this_userdata['user_id'] . "-"); - $fptr = @fopen($tmp_filename, "wb"); - $bytes_written = @fwrite($fptr, $avatar_data, $file_size); - @fclose($fptr); - - if( $bytes_written == $file_size ) - { - list($width, $height) = @getimagesize($tmp_filename); - - if( $width <= $board_config['avatar_max_width'] && $height <= $board_config['avatar_max_height'] ) - { - $user_id = $this_userdata['user_id']; - - $avatar_filename = $user_id . $imgtype; - - if( $this_userdata['user_avatar_type'] == USER_AVATAR_UPLOAD && $this_userdata['user_avatar'] != "") - { - if( file_exists(@phpbb_realpath("./../" . $board_config['avatar_path'] . "/" . $this_userdata['user_avatar'])) ) - { - @unlink("./../" . $board_config['avatar_path'] . "/" . $this_userdata['user_avatar']); - } - } - @copy($tmp_filename, "./../" . $board_config['avatar_path'] . "/$avatar_filename"); - @unlink($tmp_filename); - - $avatar_sql = ", user_avatar = '$avatar_filename', user_avatar_type = " . USER_AVATAR_UPLOAD; - } - else - { - $l_avatar_size = sprintf($lang['Avatar_imagesize'], $board_config['avatar_max_width'], $board_config['avatar_max_height']); - - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
" . $l_avatar_size : $l_avatar_size; - } - } - else - { - // - // Error writing file - // - @unlink($tmp_filename); - message_die(GENERAL_ERROR, "Could not write avatar file to local storage. Please contact the board administrator with this message", "", __LINE__, __FILE__); - } - } - } - else - { - // - // No data - // - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
" . $lang['File_no_data'] : $lang['File_no_data']; - } - } - else - { - // - // No connection - // - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
" . $lang['No_connection_URL'] : $lang['No_connection_URL']; - } - } - else - { - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
" . $lang['Incomplete_URL'] : $lang['Incomplete_URL']; - } - } - else if( !empty($user_avatar_name) ) - { - $l_avatar_size = sprintf($lang['Avatar_filesize'], round($board_config['avatar_filesize'] / 1024)); - - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
" . $l_avatar_size : $l_avatar_size; - } - } - else if( $user_avatar_remoteurl != "" && $avatar_sql == "" && !$error ) - { - if( !preg_match("#^http:\/\/#i", $user_avatar_remoteurl) ) - { - $user_avatar_remoteurl = "http://" . $user_avatar_remoteurl; - } - - if( preg_match("#^(http:\/\/[a-z0-9\-]+?\.([a-z0-9\-]+\.)*[a-z]+\/.*?\.(gif|jpg|png)$)#is", $user_avatar_remoteurl) ) - { - $avatar_sql = ", user_avatar = '" . str_replace("\'", "''", $user_avatar_remoteurl) . "', user_avatar_type = " . USER_AVATAR_REMOTE; - } - else - { - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
" . $lang['Wrong_remote_avatar_format'] : $lang['Wrong_remote_avatar_format']; - } - } - else if( $user_avatar_local != "" && $avatar_sql == "" && !$error ) - { - $avatar_sql = ", user_avatar = '" . str_replace("\'", "''", phpbb_ltrim(basename($user_avatar_category), "'") . '/' . phpbb_ltrim(basename($user_avatar_local), "'")) . "', user_avatar_type = " . USER_AVATAR_GALLERY; - } - - // - // Update entry in DB - // - if( !$error ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank" . $avatar_sql . " - WHERE user_id = $user_id"; - - if( $result = $db->sql_query($sql) ) - { - if( isset($rename_user) ) - { - $sql = "UPDATE " . GROUPS_TABLE . " - SET group_name = '".str_replace("\'", "''", $rename_user)."' - WHERE group_name = '".str_replace("'", "''", $this_userdata['username'] )."'"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not rename users group', '', __LINE__, __FILE__, $sql); - } - } - - // Delete user session, to prevent the user navigating the forum (if logged in) when disabled - if (!$user_status) - { - $sql = "DELETE FROM " . SESSIONS_TABLE . " - WHERE session_user_id = " . $user_id; - - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Error removing user session', '', __LINE__, __FILE__, $sql); - } - } - - // We remove all stored login keys since the password has been updated - // and change the current one (if applicable) - if ( !empty($passwd_sql) ) - { - session_reset_keys($user_id, $user_ip); - } - - $message .= $lang['Admin_user_updated']; - } - else - { - message_die(GENERAL_ERROR, 'Admin_user_fail', '', __LINE__, __FILE__, $sql); - } - - $message .= '

' . sprintf($lang['Click_return_useradmin'], '', '') . '

' . sprintf($lang['Click_return_admin_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - $template->set_filenames(array( - 'reg_header' => 'error_body.tpl') - ); - - $template->assign_vars(array( - 'ERROR_MESSAGE' => $error_msg) - ); - - $template->assign_var_from_handle('ERROR_BOX', 'reg_header'); - - $username = htmlspecialchars(stripslashes($username)); - $email = stripslashes($email); - $password = ''; - $password_confirm = ''; - - $icq = stripslashes($icq); - $aim = htmlspecialchars(str_replace('+', ' ', stripslashes($aim))); - $msn = htmlspecialchars(stripslashes($msn)); - $yim = htmlspecialchars(stripslashes($yim)); - - $website = htmlspecialchars(stripslashes($website)); - $location = htmlspecialchars(stripslashes($location)); - $occupation = htmlspecialchars(stripslashes($occupation)); - $interests = htmlspecialchars(stripslashes($interests)); - $signature = htmlspecialchars(stripslashes($signature)); - - $user_lang = stripslashes($user_lang); - $user_dateformat = htmlspecialchars(stripslashes($user_dateformat)); - } - } - else if( !isset( $HTTP_POST_VARS['submit'] ) && $mode != 'save' && !isset( $HTTP_POST_VARS['avatargallery'] ) && !isset( $HTTP_POST_VARS['submitavatar'] ) && !isset( $HTTP_POST_VARS['cancelavatar'] ) ) - { - if( isset( $HTTP_GET_VARS[POST_USERS_URL]) || isset( $HTTP_POST_VARS[POST_USERS_URL]) ) - { - $user_id = ( isset( $HTTP_POST_VARS[POST_USERS_URL]) ) ? intval( $HTTP_POST_VARS[POST_USERS_URL]) : intval( $HTTP_GET_VARS[POST_USERS_URL]); - $this_userdata = get_userdata($user_id); - if( !$this_userdata ) - { - message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] ); - } - } - else - { - $this_userdata = get_userdata($HTTP_POST_VARS['username'], true); - if( !$this_userdata ) - { - message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] ); - } - } - - // - // Now parse and display it as a template - // - $user_id = $this_userdata['user_id']; - $username = $this_userdata['username']; - $email = $this_userdata['user_email']; - $password = ''; - $password_confirm = ''; - - $icq = $this_userdata['user_icq']; - $aim = htmlspecialchars(str_replace('+', ' ', $this_userdata['user_aim'] )); - $msn = htmlspecialchars($this_userdata['user_msnm']); - $yim = htmlspecialchars($this_userdata['user_yim']); - - $website = htmlspecialchars($this_userdata['user_website']); - $location = htmlspecialchars($this_userdata['user_from']); - $occupation = htmlspecialchars($this_userdata['user_occ']); - $interests = htmlspecialchars($this_userdata['user_interests']); - - $signature = ($this_userdata['user_sig_bbcode_uid'] != '') ? preg_replace('#:' . $this_userdata['user_sig_bbcode_uid'] . '#si', '', $this_userdata['user_sig']) : $this_userdata['user_sig']; - $signature = preg_replace($html_entities_match, $html_entities_replace, $signature); - - $viewemail = $this_userdata['user_viewemail']; - $notifypm = $this_userdata['user_notify_pm']; - $popuppm = $this_userdata['user_popup_pm']; - $notifyreply = $this_userdata['user_notify']; - $attachsig = $this_userdata['user_attachsig']; - $allowhtml = $this_userdata['user_allowhtml']; - $allowbbcode = $this_userdata['user_allowbbcode']; - $allowsmilies = $this_userdata['user_allowsmile']; - $allowviewonline = $this_userdata['user_allow_viewonline']; - - $user_avatar = $this_userdata['user_avatar']; - $user_avatar_type = $this_userdata['user_avatar_type']; - $user_style = $this_userdata['user_style']; - $user_lang = $this_userdata['user_lang']; - $user_timezone = $this_userdata['user_timezone']; - $user_dateformat = htmlspecialchars($this_userdata['user_dateformat']); - - $user_status = $this_userdata['user_active']; - $user_allowavatar = $this_userdata['user_allowavatar']; - $user_allowpm = $this_userdata['user_allow_pm']; - - $COPPA = false; - - $html_status = ($this_userdata['user_allowhtml'] ) ? $lang['HTML_is_ON'] : $lang['HTML_is_OFF']; - $bbcode_status = ($this_userdata['user_allowbbcode'] ) ? $lang['BBCode_is_ON'] : $lang['BBCode_is_OFF']; - $smilies_status = ($this_userdata['user_allowsmile'] ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF']; - } - - if( isset($HTTP_POST_VARS['avatargallery']) && !$error ) - { - if( !$error ) - { - $user_id = intval($HTTP_POST_VARS['id']); - - $template->set_filenames(array( - "body" => "admin/user_avatar_gallery.tpl") - ); - - $dir = @opendir("../" . $board_config['avatar_gallery_path']); - - $avatar_images = array(); - while( $file = @readdir($dir) ) - { - if( $file != "." && $file != ".." && !is_file(phpbb_realpath("./../" . $board_config['avatar_gallery_path'] . "/" . $file)) && !is_link(phpbb_realpath("./../" . $board_config['avatar_gallery_path'] . "/" . $file)) ) - { - $sub_dir = @opendir("../" . $board_config['avatar_gallery_path'] . "/" . $file); - - $avatar_row_count = 0; - $avatar_col_count = 0; - - while( $sub_file = @readdir($sub_dir) ) - { - if( preg_match("/(\.gif$|\.png$|\.jpg)$/is", $sub_file) ) - { - $avatar_images[$file][$avatar_row_count][$avatar_col_count] = $sub_file; - - $avatar_col_count++; - if( $avatar_col_count == 5 ) - { - $avatar_row_count++; - $avatar_col_count = 0; - } - } - } - } - } - - @closedir($dir); - - if( isset($HTTP_POST_VARS['avatarcategory']) ) - { - $category = htmlspecialchars($HTTP_POST_VARS['avatarcategory']); - } - else - { - list($category, ) = each($avatar_images); - } - @reset($avatar_images); - - $s_categories = ""; - while( list($key) = each($avatar_images) ) - { - $selected = ( $key == $category ) ? "selected=\"selected\"" : ""; - if( count($avatar_images[$key]) ) - { - $s_categories .= ''; - } - } - - $s_colspan = 0; - for($i = 0; $i < count($avatar_images[$category]); $i++) - { - $template->assign_block_vars("avatar_row", array()); - - $s_colspan = max($s_colspan, count($avatar_images[$category][$i])); - - for($j = 0; $j < count($avatar_images[$category][$i]); $j++) - { - $template->assign_block_vars("avatar_row.avatar_column", array( - "AVATAR_IMAGE" => "../" . $board_config['avatar_gallery_path'] . '/' . $category . '/' . $avatar_images[$category][$i][$j]) - ); - - $template->assign_block_vars("avatar_row.avatar_option_column", array( - "S_OPTIONS_AVATAR" => $avatar_images[$category][$i][$j]) - ); - } - } - - $coppa = ( ( !$HTTP_POST_VARS['coppa'] && !$HTTP_GET_VARS['coppa'] ) || $mode == "register") ? 0 : TRUE; - - $s_hidden_fields = ''; - $s_hidden_fields .= ''; - - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - - $template->assign_vars(array( - "L_USER_TITLE" => $lang['User_admin'], - "L_USER_EXPLAIN" => $lang['User_admin_explain'], - "L_AVATAR_GALLERY" => $lang['Avatar_gallery'], - "L_SELECT_AVATAR" => $lang['Select_avatar'], - "L_RETURN_PROFILE" => $lang['Return_profile'], - "L_CATEGORY" => $lang['Select_category'], - "L_GO" => $lang['Go'], - - "S_OPTIONS_CATEGORIES" => $s_categories, - "S_COLSPAN" => $s_colspan, - "S_PROFILE_ACTION" => append_sid("admin_users.$phpEx?mode=$mode"), - "S_HIDDEN_FIELDS" => $s_hidden_fields) - ); - } - } - else - { - $s_hidden_fields = ''; - $s_hidden_fields .= ''; - - if( !empty($user_avatar_local) ) - { - $s_hidden_fields .= ''; - } - - if( $user_avatar_type ) - { - switch( $user_avatar_type ) - { - case USER_AVATAR_UPLOAD: - $avatar = ''; - break; - case USER_AVATAR_REMOTE: - $avatar = ''; - break; - case USER_AVATAR_GALLERY: - $avatar = ''; - break; - } - } - else - { - $avatar = ""; - } - - $sql = "SELECT * FROM " . RANKS_TABLE . " - WHERE rank_special = 1 - ORDER BY rank_title"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain ranks data', '', __LINE__, __FILE__, $sql); - } - - $rank_select_box = ''; - while( $row = $db->sql_fetchrow($result) ) - { - $rank = $row['rank_title']; - $rank_id = $row['rank_id']; - - $selected = ( $this_userdata['user_rank'] == $rank_id ) ? ' selected="selected"' : ''; - $rank_select_box .= ''; - } - - $template->set_filenames(array( - "body" => "admin/user_edit_body.tpl") - ); - - // - // Let's do an overall check for settings/versions which would prevent - // us from doing file uploads.... - // - $ini_val = ( phpversion() >= '4.0.0' ) ? 'ini_get' : 'get_cfg_var'; - $form_enctype = ( !@$ini_val('file_uploads') || phpversion() == '4.0.4pl1' || !$board_config['allow_avatar_upload'] || ( phpversion() < '4.0.3' && @$ini_val('open_basedir') != '' ) ) ? '' : 'enctype="multipart/form-data"'; - - $template->assign_vars(array( - 'USERNAME' => $username, - 'EMAIL' => $email, - 'YIM' => $yim, - 'ICQ' => $icq, - 'MSN' => $msn, - 'AIM' => $aim, - 'OCCUPATION' => $occupation, - 'INTERESTS' => $interests, - 'LOCATION' => $location, - 'WEBSITE' => $website, - 'SIGNATURE' => str_replace('
', "\n", $signature), - 'VIEW_EMAIL_YES' => ($viewemail) ? 'checked="checked"' : '', - 'VIEW_EMAIL_NO' => (!$viewemail) ? 'checked="checked"' : '', - 'HIDE_USER_YES' => (!$allowviewonline) ? 'checked="checked"' : '', - 'HIDE_USER_NO' => ($allowviewonline) ? 'checked="checked"' : '', - 'NOTIFY_PM_YES' => ($notifypm) ? 'checked="checked"' : '', - 'NOTIFY_PM_NO' => (!$notifypm) ? 'checked="checked"' : '', - 'POPUP_PM_YES' => ($popuppm) ? 'checked="checked"' : '', - 'POPUP_PM_NO' => (!$popuppm) ? 'checked="checked"' : '', - 'ALWAYS_ADD_SIGNATURE_YES' => ($attachsig) ? 'checked="checked"' : '', - 'ALWAYS_ADD_SIGNATURE_NO' => (!$attachsig) ? 'checked="checked"' : '', - 'NOTIFY_REPLY_YES' => ( $notifyreply ) ? 'checked="checked"' : '', - 'NOTIFY_REPLY_NO' => ( !$notifyreply ) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_BBCODE_YES' => ($allowbbcode) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_BBCODE_NO' => (!$allowbbcode) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_HTML_YES' => ($allowhtml) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_HTML_NO' => (!$allowhtml) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_SMILIES_YES' => ($allowsmilies) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_SMILIES_NO' => (!$allowsmilies) ? 'checked="checked"' : '', - 'AVATAR' => $avatar, - 'LANGUAGE_SELECT' => language_select($user_lang), - 'TIMEZONE_SELECT' => tz_select($user_timezone), - 'STYLE_SELECT' => style_select($user_style, 'style'), - 'DATE_FORMAT' => $user_dateformat, - 'ALLOW_PM_YES' => ($user_allowpm) ? 'checked="checked"' : '', - 'ALLOW_PM_NO' => (!$user_allowpm) ? 'checked="checked"' : '', - 'ALLOW_AVATAR_YES' => ($user_allowavatar) ? 'checked="checked"' : '', - 'ALLOW_AVATAR_NO' => (!$user_allowavatar) ? 'checked="checked"' : '', - 'USER_ACTIVE_YES' => ($user_status) ? 'checked="checked"' : '', - 'USER_ACTIVE_NO' => (!$user_status) ? 'checked="checked"' : '', - 'RANK_SELECT_BOX' => $rank_select_box, - - 'L_USERNAME' => $lang['Username'], - 'L_USER_TITLE' => $lang['User_admin'], - 'L_USER_EXPLAIN' => $lang['User_admin_explain'], - 'L_NEW_PASSWORD' => $lang['New_password'], - 'L_PASSWORD_IF_CHANGED' => $lang['password_if_changed'], - 'L_CONFIRM_PASSWORD' => $lang['Confirm_password'], - 'L_PASSWORD_CONFIRM_IF_CHANGED' => $lang['password_confirm_if_changed'], - 'L_SUBMIT' => $lang['Submit'], - 'L_RESET' => $lang['Reset'], - 'L_ICQ_NUMBER' => $lang['ICQ'], - 'L_MESSENGER' => $lang['MSNM'], - 'L_YAHOO' => $lang['YIM'], - 'L_WEBSITE' => $lang['Website'], - 'L_AIM' => $lang['AIM'], - 'L_LOCATION' => $lang['Location'], - 'L_OCCUPATION' => $lang['Occupation'], - 'L_BOARD_LANGUAGE' => $lang['Board_lang'], - 'L_BOARD_STYLE' => $lang['Board_style'], - 'L_TIMEZONE' => $lang['Timezone'], - 'L_DATE_FORMAT' => $lang['Date_format'], - 'L_DATE_FORMAT_EXPLAIN' => $lang['Date_format_explain'], - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - 'L_INTERESTS' => $lang['Interests'], - 'L_ALWAYS_ALLOW_SMILIES' => $lang['Always_smile'], - 'L_ALWAYS_ALLOW_BBCODE' => $lang['Always_bbcode'], - 'L_ALWAYS_ALLOW_HTML' => $lang['Always_html'], - 'L_HIDE_USER' => $lang['Hide_user'], - 'L_ALWAYS_ADD_SIGNATURE' => $lang['Always_add_sig'], - - 'L_SPECIAL' => $lang['User_special'], - 'L_SPECIAL_EXPLAIN' => $lang['User_special_explain'], - 'L_USER_ACTIVE' => $lang['User_status'], - 'L_ALLOW_PM' => $lang['User_allowpm'], - 'L_ALLOW_AVATAR' => $lang['User_allowavatar'], - - 'L_AVATAR_PANEL' => $lang['Avatar_panel'], - 'L_AVATAR_EXPLAIN' => $lang['Admin_avatar_explain'], - 'L_DELETE_AVATAR' => $lang['Delete_Image'], - 'L_CURRENT_IMAGE' => $lang['Current_Image'], - 'L_UPLOAD_AVATAR_FILE' => $lang['Upload_Avatar_file'], - 'L_UPLOAD_AVATAR_URL' => $lang['Upload_Avatar_URL'], - 'L_AVATAR_GALLERY' => $lang['Select_from_gallery'], - 'L_SHOW_GALLERY' => $lang['View_avatar_gallery'], - 'L_LINK_REMOTE_AVATAR' => $lang['Link_remote_Avatar'], - - 'L_SIGNATURE' => $lang['Signature'], - 'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars'] ), - 'L_NOTIFY_ON_PRIVMSG' => $lang['Notify_on_privmsg'], - 'L_NOTIFY_ON_REPLY' => $lang['Always_notify'], - 'L_POPUP_ON_PRIVMSG' => $lang['Popup_on_privmsg'], - 'L_PREFERENCES' => $lang['Preferences'], - 'L_PUBLIC_VIEW_EMAIL' => $lang['Public_view_email'], - 'L_ITEMS_REQUIRED' => $lang['Items_required'], - 'L_REGISTRATION_INFO' => $lang['Registration_info'], - 'L_PROFILE_INFO' => $lang['Profile_info'], - 'L_PROFILE_INFO_NOTICE' => $lang['Profile_info_warn'], - 'L_EMAIL_ADDRESS' => $lang['Email_address'], - 'S_FORM_ENCTYPE' => $form_enctype, - - 'HTML_STATUS' => $html_status, - 'BBCODE_STATUS' => sprintf($bbcode_status, '', ''), - 'SMILIES_STATUS' => $smilies_status, - - 'L_DELETE_USER' => $lang['User_delete'], - 'L_DELETE_USER_EXPLAIN' => $lang['User_delete_explain'], - 'L_SELECT_RANK' => $lang['Rank_title'], - - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_PROFILE_ACTION' => append_sid("admin_users.$phpEx")) - ); - - if( file_exists(@phpbb_realpath('./../' . $board_config['avatar_path'])) && ($board_config['allow_avatar_upload'] == TRUE) ) - { - if ( $form_enctype != '' ) - { - $template->assign_block_vars('avatar_local_upload', array() ); - } - $template->assign_block_vars('avatar_remote_upload', array() ); - } - - if( file_exists(@phpbb_realpath('./../' . $board_config['avatar_gallery_path'])) && ($board_config['allow_avatar_local'] == TRUE) ) - { - $template->assign_block_vars('avatar_local_gallery', array() ); - } - - if( $board_config['allow_avatar_remote'] == TRUE ) - { - $template->assign_block_vars('avatar_remote_link', array() ); - } - } - - $template->pparse('body'); -} -else -{ - // - // Default user selection box - // - $template->set_filenames(array( - 'body' => 'admin/user_select_body.tpl') - ); - - $template->assign_vars(array( - 'L_USER_TITLE' => $lang['User_admin'], - 'L_USER_EXPLAIN' => $lang['User_admin_explain'], - 'L_USER_SELECT' => $lang['Select_a_User'], - 'L_LOOK_UP' => $lang['Look_up_user'], - 'L_FIND_USERNAME' => $lang['Find_username'], - - 'U_SEARCH_USER' => append_sid("./../search.$phpEx?mode=searchuser"), - - 'S_USER_ACTION' => append_sid("admin_users.$phpEx"), - 'S_USER_SELECT' => $select_list) - ); - $template->pparse('body'); - -} - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/admin/admin_words.php b/phpBB2/admin/admin_words.php deleted file mode 100644 index 1162bd5..0000000 --- a/phpBB2/admin/admin_words.php +++ /dev/null @@ -1,273 +0,0 @@ -set_filenames(array( - "body" => "admin/words_edit_body.tpl") - ); - - $word_info = array('word' => '', 'replacement' => ''); - $s_hidden_fields = ''; - - if( $mode == "edit" ) - { - if( $word_id ) - { - $sql = "SELECT * - FROM " . WORDS_TABLE . " - WHERE word_id = $word_id"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not query words table", "Error", __LINE__, __FILE__, $sql); - } - - $word_info = $db->sql_fetchrow($result); - $s_hidden_fields .= ''; - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_word_selected']); - } - } - - $template->assign_vars(array( - "WORD" => $word_info['word'], - "REPLACEMENT" => $word_info['replacement'], - - "L_WORDS_TITLE" => $lang['Words_title'], - "L_WORDS_TEXT" => $lang['Words_explain'], - "L_WORD_CENSOR" => $lang['Edit_word_censor'], - "L_WORD" => $lang['Word'], - "L_REPLACEMENT" => $lang['Replacement'], - "L_SUBMIT" => $lang['Submit'], - - "S_WORDS_ACTION" => append_sid("admin_words.$phpEx"), - "S_HIDDEN_FIELDS" => $s_hidden_fields) - ); - - $template->pparse("body"); - - include('./page_footer_admin.'.$phpEx); - } - else if( $mode == "save" ) - { - $word_id = ( isset($HTTP_POST_VARS['id']) ) ? intval($HTTP_POST_VARS['id']) : 0; - $word = ( isset($HTTP_POST_VARS['word']) ) ? trim($HTTP_POST_VARS['word']) : ""; - $replacement = ( isset($HTTP_POST_VARS['replacement']) ) ? trim($HTTP_POST_VARS['replacement']) : ""; - - if($word == "" || $replacement == "") - { - message_die(GENERAL_MESSAGE, $lang['Must_enter_word']); - } - - if( $word_id ) - { - $sql = "UPDATE " . WORDS_TABLE . " - SET word = '" . str_replace("\'", "''", $word) . "', replacement = '" . str_replace("\'", "''", $replacement) . "' - WHERE word_id = $word_id"; - $message = $lang['Word_updated']; - } - else - { - $sql = "INSERT INTO " . WORDS_TABLE . " (word, replacement) - VALUES ('" . str_replace("\'", "''", $word) . "', '" . str_replace("\'", "''", $replacement) . "')"; - $message = $lang['Word_added']; - } - - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not insert data into words table", $lang['Error'], __LINE__, __FILE__, $sql); - } - - $message .= "

" . sprintf($lang['Click_return_wordadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - else if( $mode == "delete" ) - { - if( isset($HTTP_POST_VARS['id']) || isset($HTTP_GET_VARS['id']) ) - { - $word_id = ( isset($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id']; - $word_id = intval($word_id); - } - else - { - $word_id = 0; - } - - $confirm = isset($HTTP_POST_VARS['confirm']); - - if( $word_id && $confirm ) - { - $sql = "DELETE FROM " . WORDS_TABLE . " - WHERE word_id = $word_id"; - - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not remove data from words table", $lang['Error'], __LINE__, __FILE__, $sql); - } - - $message = $lang['Word_removed'] . "

" . sprintf($lang['Click_return_wordadmin'], "", "") . "

" . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - elseif( $word_id && !$confirm) - { - // Present the confirmation screen to the user - $template->set_filenames(array( - 'body' => 'admin/confirm_body.tpl') - ); - - $hidden_fields = ''; - - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Confirm'], - 'MESSAGE_TEXT' => $lang['Confirm_delete_word'], - - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - - 'S_CONFIRM_ACTION' => append_sid("admin_words.$phpEx"), - 'S_HIDDEN_FIELDS' => $hidden_fields) - ); - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_word_selected']); - } - } -} -else -{ - $template->set_filenames(array( - "body" => "admin/words_list_body.tpl") - ); - - $sql = "SELECT * - FROM " . WORDS_TABLE . " - ORDER BY word"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Could not query words table", $lang['Error'], __LINE__, __FILE__, $sql); - } - - $word_rows = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - $word_count = count($word_rows); - - $template->assign_vars(array( - "L_WORDS_TITLE" => $lang['Words_title'], - "L_WORDS_TEXT" => $lang['Words_explain'], - "L_WORD" => $lang['Word'], - "L_REPLACEMENT" => $lang['Replacement'], - "L_EDIT" => $lang['Edit'], - "L_DELETE" => $lang['Delete'], - "L_ADD_WORD" => $lang['Add_new_word'], - "L_ACTION" => $lang['Action'], - - "S_WORDS_ACTION" => append_sid("admin_words.$phpEx"), - "S_HIDDEN_FIELDS" => '') - ); - - for($i = 0; $i < $word_count; $i++) - { - $word = $word_rows[$i]['word']; - $replacement = $word_rows[$i]['replacement']; - $word_id = $word_rows[$i]['word_id']; - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars("words", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - "WORD" => $word, - "REPLACEMENT" => $replacement, - - "U_WORD_EDIT" => append_sid("admin_words.$phpEx?mode=edit&id=$word_id"), - "U_WORD_DELETE" => append_sid("admin_words.$phpEx?mode=delete&id=$word_id")) - ); - } -} - -$template->pparse("body"); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/admin/admin_xs.php b/phpBB2/admin/admin_xs.php deleted file mode 100644 index ce171a8..0000000 --- a/phpBB2/admin/admin_xs.php +++ /dev/null @@ -1,36 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2/admin/index.php b/phpBB2/admin/index.php deleted file mode 100644 index 6715d92..0000000 --- a/phpBB2/admin/index.php +++ /dev/null @@ -1,657 +0,0 @@ -set_filenames(array( - "body" => "admin/index_navigate.tpl") - ); - - $template->assign_vars(array( - "U_FORUM_INDEX" => append_sid("../index.$phpEx"), - "U_ADMIN_INDEX" => append_sid("index.$phpEx?pane=right"), - - "L_FORUM_INDEX" => $lang['Main_index'], - "L_ADMIN_INDEX" => $lang['Admin_Index'], - "L_PREVIEW_FORUM" => $lang['Preview_forum']) - ); - - ksort($module); - - while( list($cat, $action_array) = each($module) ) - { - $cat = ( !empty($lang[$cat]) ) ? $lang[$cat] : preg_replace("/_/", " ", $cat); - - $template->assign_block_vars("catrow", array( - "ADMIN_CATEGORY" => $cat) - ); - - ksort($action_array); - - $row_count = 0; - while( list($action, $file) = each($action_array) ) - { - $row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action); - - $template->assign_block_vars("catrow.modulerow", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - - "ADMIN_MODULE" => $action, - "U_ADMIN_MODULE" => append_sid($file)) - ); - $row_count++; - } - } - - $template->pparse("body"); - - include('./page_footer_admin.'.$phpEx); -} -elseif( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'right' ) -{ - - include('./page_header_admin.'.$phpEx); - - $template->set_filenames(array( - "body" => "admin/index_body.tpl") - ); - - $template->assign_vars(array( - "L_WELCOME" => $lang['Welcome_phpBB'], - "L_ADMIN_INTRO" => $lang['Admin_intro'], - "L_FORUM_STATS" => $lang['Forum_stats'], - "L_WHO_IS_ONLINE" => $lang['Who_is_Online'], - "L_USERNAME" => $lang['Username'], - "L_LOCATION" => $lang['Location'], - "L_LAST_UPDATE" => $lang['Last_updated'], - "L_IP_ADDRESS" => $lang['IP_Address'], - "L_STATISTIC" => $lang['Statistic'], - "L_VALUE" => $lang['Value'], - "L_NUMBER_POSTS" => $lang['Number_posts'], - "L_POSTS_PER_DAY" => $lang['Posts_per_day'], - "L_NUMBER_TOPICS" => $lang['Number_topics'], - "L_TOPICS_PER_DAY" => $lang['Topics_per_day'], - "L_NUMBER_USERS" => $lang['Number_users'], - "L_USERS_PER_DAY" => $lang['Users_per_day'], - "L_BOARD_STARTED" => $lang['Board_started'], - "L_AVATAR_DIR_SIZE" => $lang['Avatar_dir_size'], - "L_DB_SIZE" => $lang['Database_size'], - "L_FORUM_LOCATION" => $lang['Forum_Location'], - "L_STARTED" => $lang['Login'], - "L_GZIP_COMPRESSION" => $lang['Gzip_compression']) - ); - - // - // Get forum statistics - // - $total_posts = get_db_stat('postcount'); - $total_users = get_db_stat('usercount'); - $total_topics = get_db_stat('topiccount'); - - $start_date = create_date($board_config['default_dateformat'], $board_config['board_startdate'], $board_config['board_timezone']); - - $boarddays = ( time() - $board_config['board_startdate'] ) / 86400; - - $posts_per_day = sprintf("%.2f", $total_posts / $boarddays); - $topics_per_day = sprintf("%.2f", $total_topics / $boarddays); - $users_per_day = sprintf("%.2f", $total_users / $boarddays); - - $avatar_dir_size = 0; - - if ($avatar_dir = @opendir($phpbb_root_path . $board_config['avatar_path'])) - { - while( $file = @readdir($avatar_dir) ) - { - if( $file != "." && $file != ".." ) - { - $avatar_dir_size += @filesize($phpbb_root_path . $board_config['avatar_path'] . "/" . $file); - } - } - @closedir($avatar_dir); - - // - // This bit of code translates the avatar directory size into human readable format - // Borrowed the code from the PHP.net annoted manual, origanally written by: - // Jesse (jesse@jess.on.ca) - // - if($avatar_dir_size >= 1048576) - { - $avatar_dir_size = round($avatar_dir_size / 1048576 * 100) / 100 . " MB"; - } - else if($avatar_dir_size >= 1024) - { - $avatar_dir_size = round($avatar_dir_size / 1024 * 100) / 100 . " KB"; - } - else - { - $avatar_dir_size = $avatar_dir_size . " Bytes"; - } - - } - else - { - // Couldn't open Avatar dir. - $avatar_dir_size = $lang['Not_available']; - } - - if($posts_per_day > $total_posts) - { - $posts_per_day = $total_posts; - } - - if($topics_per_day > $total_topics) - { - $topics_per_day = $total_topics; - } - - if($users_per_day > $total_users) - { - $users_per_day = $total_users; - } - - // - // DB size ... MySQL only - // - // This code is heavily influenced by a similar routine - // in phpMyAdmin 2.2.0 - // - if( preg_match("/^mysql/", SQL_LAYER) ) - { - $sql = "SELECT VERSION() AS mysql_version"; - if($result = $db->sql_query($sql)) - { - $row = $db->sql_fetchrow($result); - $version = $row['mysql_version']; - - if( preg_match("/^(3\.23|4\.|5\.)/", $version) ) - { - $db_name = ( preg_match("/^(3\.23\.[6-9])|(3\.23\.[1-9][1-9])|(4\.)|(5\.)/", $version) ) ? "`$dbname`" : $dbname; - - $sql = "SHOW TABLE STATUS - FROM " . $db_name; - if($result = $db->sql_query($sql)) - { - $tabledata_ary = $db->sql_fetchrowset($result); - - $dbsize = 0; - for($i = 0; $i < count($tabledata_ary); $i++) - { - if( $tabledata_ary[$i]['Type'] != "MRG_MyISAM" ) - { - if( $table_prefix != "" ) - { - if( strstr($tabledata_ary[$i]['Name'], $table_prefix) ) - { - $dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length']; - } - } - else - { - $dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length']; - } - } - } - } // Else we couldn't get the table status. - } - else - { - $dbsize = $lang['Not_available']; - } - } - else - { - $dbsize = $lang['Not_available']; - } - } - else if( preg_match("/^mssql/", SQL_LAYER) ) - { - $sql = "SELECT ((SUM(size) * 8.0) * 1024.0) as dbsize - FROM sysfiles"; - if( $result = $db->sql_query($sql) ) - { - $dbsize = ( $row = $db->sql_fetchrow($result) ) ? intval($row['dbsize']) : $lang['Not_available']; - } - else - { - $dbsize = $lang['Not_available']; - } - } - else - { - $dbsize = $lang['Not_available']; - } - - if ( is_integer($dbsize) ) - { - if( $dbsize >= 1048576 ) - { - $dbsize = sprintf("%.2f MB", ( $dbsize / 1048576 )); - } - else if( $dbsize >= 1024 ) - { - $dbsize = sprintf("%.2f KB", ( $dbsize / 1024 )); - } - else - { - $dbsize = sprintf("%.2f Bytes", $dbsize); - } - } - - $template->assign_vars(array( - "NUMBER_OF_POSTS" => $total_posts, - "NUMBER_OF_TOPICS" => $total_topics, - "NUMBER_OF_USERS" => $total_users, - "START_DATE" => $start_date, - "POSTS_PER_DAY" => $posts_per_day, - "TOPICS_PER_DAY" => $topics_per_day, - "USERS_PER_DAY" => $users_per_day, - "AVATAR_DIR_SIZE" => $avatar_dir_size, - "DB_SIZE" => $dbsize, - "GZIP_COMPRESSION" => ( $board_config['gzip_compress'] ) ? $lang['ON'] : $lang['OFF']) - ); - // - // End forum statistics - // - - // - // Get users online information. - // - $sql = "SELECT u.user_id, u.username, u.user_session_time, u.user_session_page, s.session_logged_in, s.session_ip, s.session_start - FROM " . USERS_TABLE . " u, " . SESSIONS_TABLE . " s - WHERE s.session_logged_in = " . TRUE . " - AND u.user_id = s.session_user_id - AND u.user_id <> " . ANONYMOUS . " - AND s.session_time >= " . ( time() - 300 ) . " - ORDER BY u.user_session_time DESC"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Couldn't obtain regd user/online information.", "", __LINE__, __FILE__, $sql); - } - $onlinerow_reg = $db->sql_fetchrowset($result); - - $sql = "SELECT session_page, session_logged_in, session_time, session_ip, session_start - FROM " . SESSIONS_TABLE . " - WHERE session_logged_in = 0 - AND session_time >= " . ( time() - 300 ) . " - ORDER BY session_time DESC"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Couldn't obtain guest user/online information.", "", __LINE__, __FILE__, $sql); - } - $onlinerow_guest = $db->sql_fetchrowset($result); - - $sql = "SELECT forum_name, forum_id - FROM " . FORUMS_TABLE; - if($forums_result = $db->sql_query($sql)) - { - while($forumsrow = $db->sql_fetchrow($forums_result)) - { - $forum_data[$forumsrow['forum_id']] = $forumsrow['forum_name']; - } - } - else - { - message_die(GENERAL_ERROR, "Couldn't obtain user/online forums information.", "", __LINE__, __FILE__, $sql); - } - - $reg_userid_ary = array(); - - if( count($onlinerow_reg) ) - { - $registered_users = 0; - - for($i = 0; $i < count($onlinerow_reg); $i++) - { - if( !inarray($onlinerow_reg[$i]['user_id'], $reg_userid_ary) ) - { - $reg_userid_ary[] = $onlinerow_reg[$i]['user_id']; - - $username = $onlinerow_reg[$i]['username']; - - if( $onlinerow_reg[$i]['user_allow_viewonline'] || $userdata['user_level'] == ADMIN ) - { - $registered_users++; - $hidden = FALSE; - } - else - { - $hidden_users++; - $hidden = TRUE; - } - - if( $onlinerow_reg[$i]['user_session_page'] < 1 ) - { - switch($onlinerow_reg[$i]['user_session_page']) - { - case PAGE_INDEX: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_POSTING: - $location = $lang['Posting_message']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_LOGIN: - $location = $lang['Logging_on']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_SEARCH: - $location = $lang['Searching_forums']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_PROFILE: - $location = $lang['Viewing_profile']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_VIEWONLINE: - $location = $lang['Viewing_online']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_VIEWMEMBERS: - $location = $lang['Viewing_member_list']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_PRIVMSGS: - $location = $lang['Viewing_priv_msgs']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_FAQ: - $location = $lang['Viewing_FAQ']; - $location_url = "index.$phpEx?pane=right"; - break; - default: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx?pane=right"; - } - } - else - { - $location_url = append_sid("admin_forums.$phpEx?mode=editforum&" . POST_FORUM_URL . "=" . $onlinerow_reg[$i]['user_session_page']); - $location = $forum_data[$onlinerow_reg[$i]['user_session_page']]; - } - - $row_color = ( $registered_users % 2 ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( $registered_users % 2 ) ? $theme['td_class1'] : $theme['td_class2']; - - $reg_ip = decode_ip($onlinerow_reg[$i]['session_ip']); - - $template->assign_block_vars("reg_user_row", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - "USERNAME" => $username, - "STARTED" => create_date($board_config['default_dateformat'], $onlinerow_reg[$i]['session_start'], $board_config['board_timezone']), - "LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_reg[$i]['user_session_time'], $board_config['board_timezone']), - "FORUM_LOCATION" => $location, - "IP_ADDRESS" => $reg_ip, - - "U_WHOIS_IP" => "http://network-tools.com/default.asp?host=$reg_ip", - "U_USER_PROFILE" => append_sid("admin_users.$phpEx?mode=edit&" . POST_USERS_URL . "=" . $onlinerow_reg[$i]['user_id']), - "U_FORUM_LOCATION" => append_sid($location_url)) - ); - } - } - - } - else - { - $template->assign_vars(array( - "L_NO_REGISTERED_USERS_BROWSING" => $lang['No_users_browsing']) - ); - } - - // - // Guest users - // - if( count($onlinerow_guest) ) - { - $guest_users = 0; - - for($i = 0; $i < count($onlinerow_guest); $i++) - { - $guest_userip_ary[] = $onlinerow_guest[$i]['session_ip']; - $guest_users++; - - if( $onlinerow_guest[$i]['session_page'] < 1 ) - { - switch( $onlinerow_guest[$i]['session_page'] ) - { - case PAGE_INDEX: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_POSTING: - $location = $lang['Posting_message']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_LOGIN: - $location = $lang['Logging_on']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_SEARCH: - $location = $lang['Searching_forums']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_PROFILE: - $location = $lang['Viewing_profile']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_VIEWONLINE: - $location = $lang['Viewing_online']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_VIEWMEMBERS: - $location = $lang['Viewing_member_list']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_PRIVMSGS: - $location = $lang['Viewing_priv_msgs']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_FAQ: - $location = $lang['Viewing_FAQ']; - $location_url = "index.$phpEx?pane=right"; - break; - default: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx?pane=right"; - } - } - else - { - $location_url = append_sid("admin_forums.$phpEx?mode=editforum&" . POST_FORUM_URL . "=" . $onlinerow_guest[$i]['session_page']); - $location = $forum_data[$onlinerow_guest[$i]['session_page']]; - } - - $row_color = ( $guest_users % 2 ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( $guest_users % 2 ) ? $theme['td_class1'] : $theme['td_class2']; - - $guest_ip = decode_ip($onlinerow_guest[$i]['session_ip']); - - $template->assign_block_vars("guest_user_row", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - "USERNAME" => $lang['Guest'], - "STARTED" => create_date($board_config['default_dateformat'], $onlinerow_guest[$i]['session_start'], $board_config['board_timezone']), - "LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_guest[$i]['session_time'], $board_config['board_timezone']), - "FORUM_LOCATION" => $location, - "IP_ADDRESS" => $guest_ip, - - "U_WHOIS_IP" => "http://network-tools.com/default.asp?host=$guest_ip", - "U_FORUM_LOCATION" => append_sid($location_url)) - ); - } - - } - else - { - $template->assign_vars(array( - "L_NO_GUESTS_BROWSING" => $lang['No_users_browsing']) - ); - } - - // Check for new version - $current_version = explode('.', '2' . $board_config['version']); - $minor_revision = (int) $current_version[2]; - - $errno = 0; - $errstr = $version_info = ''; - - if ($fsock = @fsockopen('www.phpbb.com', 80, $errno, $errstr, 10)) - { - @fputs($fsock, "GET /updatecheck/20x.txt HTTP/1.1\r\n"); - @fputs($fsock, "HOST: www.phpbb.com\r\n"); - @fputs($fsock, "Connection: close\r\n\r\n"); - - $get_info = false; - while (!@feof($fsock)) - { - if ($get_info) - { - $version_info .= @fread($fsock, 1024); - } - else - { - if (@fgets($fsock, 1024) == "\r\n") - { - $get_info = true; - } - } - } - @fclose($fsock); - - $version_info = explode("\n", $version_info); - $latest_head_revision = (int) $version_info[0]; - $latest_minor_revision = (int) $version_info[2]; - $latest_version = (int) $version_info[0] . '.' . (int) $version_info[1] . '.' . (int) $version_info[2]; - - if ($latest_head_revision == 2 && $minor_revision == $latest_minor_revision) - { - $version_info = '

' . $lang['Version_up_to_date'] . '

'; - } - else - { - $version_info = '

' . $lang['Version_not_up_to_date']; - $version_info .= '
' . sprintf($lang['Latest_version_info'], $latest_version) . ' ' . sprintf($lang['Current_version_info'], '2' . $board_config['version']) . '

'; - } - } - else - { - if ($errstr) - { - $version_info = '

' . sprintf($lang['Connect_socket_error'], $errstr) . '

'; - } - else - { - $version_info = '

' . $lang['Socket_functions_disabled'] . '

'; - } - } - - $version_info .= '

' . $lang['Mailing_list_subscribe_reminder'] . '

'; - - - $template->assign_vars(array( - 'VERSION_INFO' => $version_info, - 'L_VERSION_INFORMATION' => $lang['Version_information']) - ); - - $template->pparse("body"); - - include('./page_footer_admin.'.$phpEx); - -} -else -{ - // - // Generate frameset - // - $template->set_filenames(array( - "body" => "admin/index_frameset.tpl") - ); - - $template->assign_vars(array( - "S_FRAME_NAV" => append_sid("index.$phpEx?pane=left"), - "S_FRAME_MAIN" => append_sid("index.$phpEx?pane=right")) - ); - - header ("Expires: " . gmdate("D, d M Y H:i:s", time()) . " GMT"); - header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - - $template->pparse("body"); - - $db->sql_close(); - exit; - -} - -?> \ No newline at end of file diff --git a/phpBB2/admin/page_footer_admin.php b/phpBB2/admin/page_footer_admin.php deleted file mode 100644 index 3412489..0000000 --- a/phpBB2/admin/page_footer_admin.php +++ /dev/null @@ -1,75 +0,0 @@ -set_filenames(array( - 'page_footer' => 'admin/page_footer.tpl') -); - -$template->assign_vars(array( - 'PHPBB_VERSION' => ($userdata['user_level'] == ADMIN && $userdata['user_id'] != ANONYMOUS) ? '2' . $board_config['version'] : '', - 'TRANSLATION_INFO' => (isset($lang['TRANSLATION_INFO'])) ? $lang['TRANSLATION_INFO'] : ((isset($lang['TRANSLATION'])) ? $lang['TRANSLATION'] : '')) -); - -$template->pparse('page_footer'); - -// -// Close our DB connection. -// -$db->sql_close(); - -// -// Compress buffered output if required -// and send to browser -// -if( $do_gzip_compress ) -{ - // - // Borrowed from php.net! - // - $gzip_contents = ob_get_contents(); - ob_end_clean(); - - $gzip_size = strlen($gzip_contents); - $gzip_crc = crc32($gzip_contents); - - $gzip_contents = gzcompress($gzip_contents, 9); - $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4); - - echo "\x1f\x8b\x08\x00\x00\x00\x00\x00"; - echo $gzip_contents; - echo pack('V', $gzip_crc); - echo pack('V', $gzip_size); -} - -exit; - -?> \ No newline at end of file diff --git a/phpBB2/admin/page_header_admin.php b/phpBB2/admin/page_header_admin.php deleted file mode 100644 index 6e3428a..0000000 --- a/phpBB2/admin/page_header_admin.php +++ /dev/null @@ -1,150 +0,0 @@ -= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) ) - { - if ( extension_loaded('zlib') ) - { - ob_start('ob_gzhandler'); - } - } - else if ( $phpver > '4.0' ) - { - if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') ) - { - if ( extension_loaded('zlib') ) - { - $do_gzip_compress = TRUE; - ob_start(); - ob_implicit_flush(0); - - header('Content-Encoding: gzip'); - } - } - } -} - -$template->set_filenames(array( - 'header' => 'admin/page_header.tpl') -); - -// Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility -$l_timezone = explode('.', $board_config['board_timezone']); -$l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])]; - -// -// The following assigns all _common_ variables that may be used at any point -// in a template. Note that all URL's should be wrapped in append_sid, as -// should all S_x_ACTIONS for forms. -// -$template->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'PAGE_TITLE' => $page_title, - - 'L_ADMIN' => $lang['Admin'], - 'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']), - 'L_FAQ' => $lang['FAQ'], - - 'U_INDEX' => append_sid('../index.'.$phpEx), - - 'S_TIMEZONE' => sprintf($lang['All_times'], $l_timezone), - 'S_LOGIN_ACTION' => append_sid('../login.'.$phpEx), - 'S_JUMPBOX_ACTION' => append_sid('../viewforum.'.$phpEx), - 'S_CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])), - 'S_CONTENT_DIRECTION' => $lang['DIRECTION'], - 'S_CONTENT_ENCODING' => $lang['ENCODING'], - 'S_CONTENT_DIR_LEFT' => $lang['LEFT'], - 'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'], - - 'T_HEAD_STYLESHEET' => $theme['head_stylesheet'], - 'T_BODY_BACKGROUND' => $theme['body_background'], - 'T_BODY_BGCOLOR' => '#'.$theme['body_bgcolor'], - 'T_BODY_TEXT' => '#'.$theme['body_text'], - 'T_BODY_LINK' => '#'.$theme['body_link'], - 'T_BODY_VLINK' => '#'.$theme['body_vlink'], - 'T_BODY_ALINK' => '#'.$theme['body_alink'], - 'T_BODY_HLINK' => '#'.$theme['body_hlink'], - 'T_TR_COLOR1' => '#'.$theme['tr_color1'], - 'T_TR_COLOR2' => '#'.$theme['tr_color2'], - 'T_TR_COLOR3' => '#'.$theme['tr_color3'], - 'T_TR_CLASS1' => $theme['tr_class1'], - 'T_TR_CLASS2' => $theme['tr_class2'], - 'T_TR_CLASS3' => $theme['tr_class3'], - 'T_TH_COLOR1' => '#'.$theme['th_color1'], - 'T_TH_COLOR2' => '#'.$theme['th_color2'], - 'T_TH_COLOR3' => '#'.$theme['th_color3'], - 'T_TH_CLASS1' => $theme['th_class1'], - 'T_TH_CLASS2' => $theme['th_class2'], - 'T_TH_CLASS3' => $theme['th_class3'], - 'T_TD_COLOR1' => '#'.$theme['td_color1'], - 'T_TD_COLOR2' => '#'.$theme['td_color2'], - 'T_TD_COLOR3' => '#'.$theme['td_color3'], - 'T_TD_CLASS1' => $theme['td_class1'], - 'T_TD_CLASS2' => $theme['td_class2'], - 'T_TD_CLASS3' => $theme['td_class3'], - 'T_FONTFACE1' => $theme['fontface1'], - 'T_FONTFACE2' => $theme['fontface2'], - 'T_FONTFACE3' => $theme['fontface3'], - 'T_FONTSIZE1' => $theme['fontsize1'], - 'T_FONTSIZE2' => $theme['fontsize2'], - 'T_FONTSIZE3' => $theme['fontsize3'], - 'T_FONTCOLOR1' => '#'.$theme['fontcolor1'], - 'T_FONTCOLOR2' => '#'.$theme['fontcolor2'], - 'T_FONTCOLOR3' => '#'.$theme['fontcolor3'], - 'T_SPAN_CLASS1' => $theme['span_class1'], - 'T_SPAN_CLASS2' => $theme['span_class2'], - 'T_SPAN_CLASS3' => $theme['span_class3']) -); - -// Work around for "current" Apache 2 + PHP module which seems to not -// cope with private cache control setting -if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2')) -{ - header ('Cache-Control: no-cache, pre-check=0, post-check=0'); -} -else -{ - header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0'); -} -header ('Expires: 0'); -header ('Pragma: no-cache'); - -$template->pparse('header'); - -?> diff --git a/phpBB2/admin/pagestart.php b/phpBB2/admin/pagestart.php deleted file mode 100644 index 26c269a..0000000 --- a/phpBB2/admin/pagestart.php +++ /dev/null @@ -1,67 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2/admin/xs_cache.php b/phpBB2/admin/xs_cache.php deleted file mode 100644 index 4f01b4f..0000000 --- a/phpBB2/admin/xs_cache.php +++ /dev/null @@ -1,264 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_manage_cache'] . '')); - -$data = ''; - -$skip_files = array( - '.', - '..', - '.htaccess', - 'index.htm', - 'index.html', - 'index.php', - 'attach_config.php', - ); - -// -// clear cache -// -if(isset($HTTP_GET_VARS['clear']) && !defined('DEMO_MODE')) -{ - @set_time_limit(XS_MAX_TIMEOUT); - $clear = $HTTP_GET_VARS['clear']; - if(!$clear) - { - // clear all cache - $match = ''; - } - else - { - $match = XS_TPL_PREFIX . $clear . XS_SEPARATOR; - } - $match_len = strlen($match); - $style_len = strlen(STYLE_EXTENSION); - $backup_len = strlen(XS_BACKUP_EXT); - $dir = $template->cachedir; - $res = @opendir($dir); - if(!$res) - { - $data = $lang['xs_cache_nowrite']; - } - else - { - $num = 0; - $num_error = 0; - while(($file = readdir($res)) !== false) - { - $len = strlen($file); - // delete only files that match pattern, that aren't in exclusion list and that aren't downloaded styles. - if(substr($file, 0, $match_len) === $match && !xs_in_array($file, $skip_files)) - if(substr($file, $len - $style_len) !== STYLE_EXTENSION && substr($file, $len - $backup_len) !== XS_BACKUP_EXT) - { - $res2 = @unlink($dir . $file); - if($res2) - { - $data .= str_replace('{FILE}', $file, $lang['xs_cache_log_deleted']) . "
\n"; - $num ++; - } - elseif(@is_file($dir . $file)) - { - $data .= str_replace('{FILE}', $file, $lang['xs_cache_log_nodelete']) . "
\n"; - $num_error ++; - } - } - } - closedir($res); - if(!$num && !$num_error) - { - if($clear) - { - $data .= str_replace('{TPL}', $clear, $lang['xs_cache_log_nothing']) . "
\n"; - } - else - { - $data .= $lang['xs_cache_log_nothing2'] . "
\n"; - } - } - else - { - $data .= str_replace('{NUM}', $num, $lang['xs_cache_log_count']) . "
\n"; - if($num_error) - { - $data .= str_replace('{NUM}', $num_error, $lang['xs_cache_log_count2']) . "
\n"; - } - } - } -} - - -// -// compile cache -// -if(isset($HTTP_GET_VARS['compile']) && !defined('DEMO_MODE')) -{ - $tpl = $HTTP_GET_VARS['compile']; - @set_time_limit(XS_MAX_TIMEOUT); - $num_errors = 0; - $num_compiled = 0; - if($tpl) - { - $dir = $template->tpldir . $tpl . '/'; - compile_cache($dir, '', $tpl); - } - else - { - $res = opendir('../templates'); - while(($file = readdir($res)) !== false) - { - if($file !== '.' && $file !== '..' && is_dir('../templates/'.$file) && @file_exists('../templates/'.$file.'/overall_header.tpl')) - { - compile_cache('../templates/'.$file.'/', '', $file); - } - } - closedir($res); - } - $data .= str_replace('{NUM}', $num_compiled, $lang['xs_cache_log_compiled']) . "
\n"; - $data .= str_replace('{NUM}', $num_errors, $lang['xs_cache_log_errors']) . "
\n"; -} - -function compile_cache($dir, $subdir, $tpl) -{ - global $data, $template, $num_errors, $num_compiled, $lang; - $str = $dir . $subdir; - $res = @opendir($dir . $subdir); - if(!$res) - { - $data .= str_replace('{DIR}', $dir.$subdir, $lang['xs_cache_log_noaccess']) . "
\n"; - $num_errors ++; - return; - } - while(($file = readdir($res)) !== false) - { - if(@is_dir($str . $file) && $file !== '.' && $file !== '..' && $file !== 'CVS') - { - compile_cache($dir, $subdir . $file . '/', $tpl); - } - elseif(substr($file, strlen($file) - 4) === '.tpl') - { - $res2 = $template->precompile($tpl, $subdir . $file); - if($res2) - { - $data .= str_replace('{FILE}', $dir.$subdir.$file, $lang['xs_cache_log_compiled2']) . "
\n"; - $num_compiled ++; - } - else - { - $data .= str_replace('{FILE}', $dir.$subdir.$file, $lang['xs_cache_log_nocompile']) . "
\n"; - $num_errors ++; - } - } - } - closedir($res); -} - -// -// get list of installed styles -// -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY template_name'; -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -$template->set_filenames(array('body' => XS_TPL_PATH . 'cache.tpl')); - -$prev_id = -1; -$prev_tpl = ''; -$style_names = array(); -$j = 0; -for($i=0; $i 0) - { - $str = implode('
', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_CLEAR' => "xs_cache.{$phpEx}?clear={$str2}&sid={$userdata['session_id']}", - 'U_COMPILE' => "xs_cache.{$phpEx}?compile={$str2}&sid={$userdata['session_id']}", - ) - ); - } - $prev_id = $item['themes_id']; - $prev_tpl = $item['template_name']; - $style_names = array(htmlspecialchars($item['style_name'])); - } -} -if($prev_id > 0) -{ - $str = implode('
', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_CLEAR' => "xs_cache.{$phpEx}?clear={$str2}&sid={$userdata['session_id']}", - 'U_COMPILE' => "xs_cache.{$phpEx}?compile={$str2}&sid={$userdata['session_id']}", - ) - ); -} - -$template->assign_vars(array( - 'U_CLEAR_ALL' => "xs_cache.{$phpEx}?clear=&sid={$userdata['session_id']}", - 'U_COMPILE_ALL' => "xs_cache.{$phpEx}?compile=&sid={$userdata['session_id']}", - 'RESULT' => '

' . $data - ) -); - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_chmod.php b/phpBB2/admin/xs_chmod.php deleted file mode 100644 index 6cec86e..0000000 --- a/phpBB2/admin/xs_chmod.php +++ /dev/null @@ -1,92 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_configuration'] . '')); -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_chmod'] . '')); - -$lang['xs_chmod_return'] = str_replace('{URL}', append_sid('xs_config.'.$phpEx), $lang['xs_chmod_return']); -$lang['xs_chmod_message1'] .= $lang['xs_chmod_return']; -$lang['xs_chmod_error1'] .= $lang['xs_chmod_return']; - -if(defined('DEMO_MODE')) -{ - xs_error($lang['xs_permission_denied']); -} - -if(!get_ftp_config(append_sid('xs_chmod.'.$phpEx), array(), false)) -{ - exit; -} -xs_ftp_connect(append_sid('xs_chmod.'.$phpEx), array(), true); - -if($ftp === XS_FTP_LOCAL) -{ - @mkdir('../cache', 0777); - @chmod('../cache', 0777); - if(xs_dir_writable('../cache')) - { - xs_message($lang['Information'], $lang['xs_chmod_message1']); - } - xs_error($lang['xs_chmod_error1']); -} - -$str = ftp_pwd($ftp); - -if(strlen($str) && substr($str, strlen($str) - 1) !== '/') -{ - $str .= '/'; -} -$res = @ftp_site($ftp, "CHMOD 0777 {$str}cache"); -if(!$res) -{ - @ftp_mkdir($ftp, 'cache'); - $res = @ftp_site($ftp, "CHMOD 0777 {$str}cache"); -} -@ftp_quit($ftp); -if($res) -{ - xs_message($lang['Information'], $lang['xs_chmod_message1']); -} -else -{ - xs_error($lang['xs_chmod_error1']); -} - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_clone.php b/phpBB2/admin/xs_clone.php deleted file mode 100644 index c083730..0000000 --- a/phpBB2/admin/xs_clone.php +++ /dev/null @@ -1,365 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_clone_styles'] . '')); - -$lang['xs_clone_back'] = str_replace('{URL}', append_sid('xs_clone.'.$phpEx), $lang['xs_clone_back']); - -// -// Check required functions -// -if(!@function_exists('gzcompress')) -{ - xs_error($lang['xs_import_nogzip']); -} - -// -// clone style -// -if(!empty($HTTP_POST_VARS['clone_style']) && !defined('DEMO_MODE')) -{ - $style = intval($HTTP_POST_VARS['clone_style']); - $new_name = stripslashes($HTTP_POST_VARS['clone_name']); - // get theme data - $sql = "SELECT * FROM " . THEMES_TABLE . " WHERE themes_id='{$style}'"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_style_info'] . '

' . $lang['xs_clone_back'], __LINE__, __FILE__); - } - $theme = $db->sql_fetchrow($result); - if(empty($theme['themes_id'])) - { - xs_error($lang['xs_no_themes'] . '

' . $lang['xs_clone_back']); - } - if($theme['style_name'] === stripslashes($new_name)) - { - xs_error($lang['xs_clone_taken'] . '

' . $lang['xs_clone_back']); - } - // check for clone - $sql = "SELECT themes_id FROM " . THEMES_TABLE . " WHERE style_name = '" . xs_sql($new_name) . "'"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_theme_data'] . '

' . $lang['xs_clone_back'], __LINE__, __FILE__); - } - $row = $db->sql_fetchrow($result); - if(!empty($row['themes_id'])) - { - xs_error($lang['xs_clone_taken'] . '

' . $lang['xs_clone_back']); - } - // clone it - $vars = array('style_name'); - $values = array(xs_sql($new_name)); - foreach($theme as $var => $value) - { - if(!is_integer($var) && $var !== 'style_name' && $var !== 'themes_id') - { - $vars[] = $var; - $values[] = xs_sql($value); - } - } - $sql = "INSERT INTO " . THEMES_TABLE . " (" . implode(', ', $vars) . ") VALUES ('" . implode("','", $values) . "')"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_error_new_row'] . '

' . $lang['xs_clone_back'], __LINE__, __FILE__); - } - // recache themes - if(defined('XS_MODS_CATEGORY_HIERARCHY210')) - { - if ( empty($themes) ) - { - $themes = new themes(); - } - if ( !empty($themes) ) - { - $themes->read(true); - } - } - xs_message($lang['Information'], $lang['xs_theme_cloned'] . '

' . $lang['xs_clone_back']); -} - -// -// clone template -// -if(!empty($HTTP_POST_VARS['clone_tpl']) && !defined('DEMO_MODE')) -{ - $old_name = xs_tpl_name($HTTP_POST_VARS['clone_tpl']); - $new_name = xs_tpl_name($HTTP_POST_VARS['clone_style_name']); - if(empty($new_name) || $new_name === $old_name) - { - xs_error($lang['xs_invalid_style_name'] . '

' . $lang['xs_clone_back']); - } - // check if template exists - if(@file_exists('../templates/'.$new_name)) - { - xs_error($lang['xs_clone_style_exists'] . '

' . $lang['xs_clone_back']); - } - // check variables - $total = intval($HTTP_POST_VARS['total']); - $vars = array('clone_tpl', 'clone_style_name', 'total'); - $count = 0; - $list = array(); - for($i=0; $i<$total; $i++) - { - $vars[] = 'clone_style_id_'.$i; - $vars[] = 'clone_style_'.$i; - $vars[] = 'clone_style_name_'.$i; - if(!empty($HTTP_POST_VARS['clone_style_'.$i]) && !empty($HTTP_POST_VARS['clone_style_name_'.$i])) - { - // prepare for export - $list[] = intval($HTTP_POST_VARS['clone_style_id_'.$i]); - $HTTP_POST_VARS['export_style_'.$i] = $HTTP_POST_VARS['clone_style_'.$i]; - $HTTP_POST_VARS['export_style_id_'.$i] = $HTTP_POST_VARS['clone_style_id_'.$i]; - $HTTP_POST_VARS['export_style_name_'.$i] = $HTTP_POST_VARS['clone_style_name_'.$i]; - // prepare for import - $HTTP_POST_VARS['import_install_'.$count] = '1'; - $count ++; - } - } - if(!$count) - { - xs_error($lang['xs_clone_no_select'] . '

' . $lang['xs_clone_back']); - } - $request = array(); - for($i=0; $isql_query($sql)) - { - xs_error($lang['xs_no_theme_data'] . $lang['xs_clone_back']); - } - $theme_rowset = $db->sql_fetchrowset($result); - if(count($theme_rowset) == 0) - { - xs_error($lang['xs_no_themes'] . '

' . $lang['xs_clone_back']); - } - $theme_data = xs_generate_themeinfo($theme_rowset, $export, $exportas, $total); - // prepare to pack - $pack_error = ''; - $pack_list = array(); - $pack_replace = array('./theme_info.cfg' => $theme_data); - // pack style - for($i = 0; $i < count($theme_rowset); $i++) - { - $id = $theme_rowset[$i]['themes_id']; - $theme_name = $theme_rowset[$i]['style_name']; - for($j=0; $j<$total; $j++) - { - if(!empty($HTTP_POST_VARS['export_style_name_'.$j]) && $HTTP_POST_VARS['export_style_id_'.$j] == $id) - { - $theme_name = stripslashes($HTTP_POST_VARS['export_style_name_'.$j]); - } - } - $theme_rowset[$i]['style_name'] = $theme_name; - } - $data = pack_style($export, $exportas, $theme_rowset, ''); - // check errors - if($pack_error) - { - xs_error(str_replace('{TPL}', $export, $lang['xs_export_error']) . $pack_error . '

' . $lang['xs_clone_back']); - } - if(!$data) - { - xs_error(str_replace('{TPL}', $export, $lang['xs_export_error2']) . '

' . $lang['xs_clone_back']); - } - // save as file - $filename = 'clone_' . time() . '.tmp'; - $tmp_filename = XS_TEMP_DIR . $filename; - $f = @fopen($tmp_filename, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $tpl_filename, $lang['xs_error_cannot_create_tmp']) . '

' . $lang['xs_clone_back']); - } - fwrite($f, $data); - fclose($f); - // prepare import variables - $total = $count; - $HTTP_POST_VARS['total'] = $count; - $list_only = false; - $get_file = ''; - define('XS_CLONING', true); - $lang['xs_import_back'] = $lang['xs_clone_back']; - include('xs_include_import.' . $phpEx); - include('xs_include_import2.' . $phpEx); -} - - -// -// clone style menu -// -if(!empty($HTTP_GET_VARS['clone'])) -{ - $style = stripslashes($HTTP_GET_VARS['clone']); - $sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " WHERE template_name = '" . xs_sql($style) . "' ORDER BY style_name ASC"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_theme_data'] . '

' . $lang['xs_clone_back'], __LINE__, __FILE__); - } - $theme_rowset = $db->sql_fetchrowset($result); - if(count($theme_rowset) == 0) - { - xs_error($lang['xs_no_themes'] . '

' . $lang['xs_clone_back']); - } - $template->set_filenames(array('body' => XS_TPL_PATH . 'clone2.tpl')); - // clone template - $template->assign_vars(array( - 'FORM_ACTION' => append_sid('xs_clone.'.$phpEx), - 'CLONE_TEMPLATE' => htmlspecialchars($style), - 'STYLE_ID' => $theme_rowset[0]['themes_id'], - 'STYLE_NAME' => htmlspecialchars($theme_rowset[0]['style_name']), - 'TOTAL' => count($theme_rowset), - 'L_CLONE_STYLE3' => str_replace('{STYLE}', htmlspecialchars($style), $lang['xs_clone_style3']) - )); - // clone styles - for($i=0; $iassign_block_vars('styles', array( - 'ID' => $theme_rowset[$i]['themes_id'], - 'TPL' => htmlspecialchars($theme_rowset[$i]['template_name']), - 'STYLE' => htmlspecialchars($theme_rowset[$i]['style_name']), - 'L_CLONE' => str_replace('{STYLE}', htmlspecialchars($theme_rowset[$i]['style_name']), $lang['xs_clone_style2']) - )); - } - if(count($theme_rowset) == 1) - { - $template->assign_block_vars('switch_select_nostyle', array()); - if($theme_rowset[0]['style_name'] === $style) - { - $template->assign_block_vars('switch_onchange', array()); - } - } - else - { - $template->assign_block_vars('switch_select_style', array()); - for($i=0; $iassign_block_vars('switch_select_style.style', array( - 'NUM' => $i, - 'ID' => $theme_rowset[$i]['themes_id'], - 'NAME' => htmlspecialchars($theme_rowset[$i]['style_name']) - )); - } - } - $template->pparse('body'); - xs_exit(); -} - - - -// -// get list of installed styles -// -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY template_name'; -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -$prev_id = -1; -$prev_tpl = ''; -$style_names = array(); -$j = 0; -for($i=0; $i 0) - { - $str = implode('
', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_CLONE' => "xs_clone.{$phpEx}?clone={$str2}&sid={$userdata['session_id']}", - ) - ); - } - $prev_id = $item['themes_id']; - $prev_tpl = $item['template_name']; - $style_names = array(htmlspecialchars($item['style_name'])); - } -} - -if($prev_id > 0) -{ - $str = implode('
', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_CLONE' => "xs_clone.{$phpEx}?clone={$str2}&sid={$userdata['session_id']}", - ) - ); -} - -$template->set_filenames(array('body' => XS_TPL_PATH . 'clone.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_config.php b/phpBB2/admin/xs_config.php deleted file mode 100644 index 348c13f..0000000 --- a/phpBB2/admin/xs_config.php +++ /dev/null @@ -1,217 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_configuration'] . '')); - -$lang['xs_config_updated_explain'] = str_replace('{URL}', append_sid('xs_config.'.$phpEx), $lang['xs_config_updated_explain']); -$lang['xs_config_title'] = str_replace('{VERSION}', $template->xs_versiontxt, $lang['xs_config_title']); -$lang['xs_config_warning_explain'] = str_replace('{URL}', append_sid('xs_chmod.'.$phpEx), $lang['xs_config_warning_explain']); -$lang['xs_config_back'] = str_replace('{URL}', append_sid('xs_config.'.$phpEx), $lang['xs_config_back']); - -// -// Updating configuration -// -if(isset($HTTP_POST_VARS['submit']) && !defined('DEMO_MODE')) -{ - $vars = array('xs_use_cache', 'xs_auto_compile', 'xs_auto_recompile', 'xs_php', 'xs_def_template', 'xs_check_switches', 'xs_warn_includes', 'xs_add_comments', 'xs_ftp_host', 'xs_ftp_login', 'xs_ftp_path', 'xs_shownav'); - // checking navigation config - $shownav = 0; - for($i=0; $iassign_block_vars('left_refresh', array( - 'ACTION' => append_sid('index.' . $phpEx . '?pane=left') - )); - } - $HTTP_POST_VARS['xs_shownav'] = $shownav; - // checking submitted data - $update_time = false; - foreach($vars as $var) - { - $new[$var] = stripslashes(trim($HTTP_POST_VARS[$var])); - if(($var == 'xs_auto_recompile') && !$new['xs_auto_compile']) - { - $new[$var] = 0; - } - if($board_config[$var] !== $new[$var]) - { - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value = '" . xs_sql($new[$var]) . "' WHERE config_name = '{$var}'"; - if( !$db->sql_query($sql) ) - { - xs_error(str_replace('{VAR}', $var, $lang['xs_config_sql_error']) . '

' . $lang['xs_config_back'], __LINE__, __FILE__); - } - $board_config[$var] = $new[$var]; - if($var === 'xs_check_switches') - { - $update_time = true; - } - } - } - if($update_time) - { - $board_config['xs_template_time'] = time() + 10; // set time 10 seconds in future in case if some tpl file would be compiled right now with current settings - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value = '" . $board_config['xs_template_time'] . "' WHERE config_name = 'xs_template_time'"; - if( !$db->sql_query($sql) ) - { - xs_error(str_replace('{VAR}', 'xs_template_time', $lang['xs_config_sql_error']) . '

' . $lang['xs_config_back'], __LINE__, __FILE__); - } - } - // update config cache - if(defined('XS_MODS_CATEGORY_HIERARCHY210')) - { - if ( !empty($config) ) - { - $config->read(true); - } - } - $template->assign_block_vars('switch_updated', array()); - $template->load_config($template->root, false); -} - -// check ftp configuration -$xs_ftp_host = $board_config['xs_ftp_host']; -if(empty($xs_ftp_host) && !empty($HTTP_SERVER_VARS['HTTP_HOST'])) -{ - $str = $HTTP_SERVER_VARS['HTTP_HOST']; - $template->assign_vars(array( - 'HOST_GUESS' => str_replace(array('{HOST}', '{CLICK}'), array($str, 'document.config.xs_ftp_host.value=\''.$str.'\''), $lang['xs_ftp_host_guess']) - )); -} -$dir = getcwd(); -$xs_ftp_login = $board_config['xs_ftp_login']; -if(empty($xs_ftp_login)) -{ - if(substr($dir, 0, 6) === '/home/') - { - $str = substr($dir, 6); - $pos = strpos($str, '/'); - if($pos) - { - $str = substr($str, 0, $pos); - $template->assign_vars(array( - 'LOGIN_GUESS' => str_replace(array('{LOGIN}', '{CLICK}'), array($str, 'document.config.xs_ftp_login.value=\''.$str.'\''), $lang['xs_ftp_login_guess']) - )); - } - } -} -$xs_ftp_path = $board_config['xs_ftp_path']; -if(empty($xs_ftp_path)) -{ - if(substr($dir, 0, 6) === '/home/'); - $str = substr($dir, 6); - $pos = strpos($str, '/'); - if($pos) - { - $str = substr($str, $pos + 1); - $pos = strrpos($str, 'admin'); - if($pos) - { - $str = substr($str, 0, $pos-1); - $template->assign_vars(array( - 'PATH_GUESS' => str_replace(array('{PATH}', '{CLICK}'), array($str, 'document.config.xs_ftp_path.value=\''.$str.'\''), $lang['xs_ftp_path_guess']) - )); - } - } -} - -$template->assign_vars(array( - 'XS_USE_CACHE_0' => $board_config['xs_use_cache'] ? '' : ' checked="checked"', - 'XS_USE_CACHE_1' => $board_config['xs_use_cache'] ? ' checked="checked"' : '', - 'XS_AUTO_COMPILE_0' => $board_config['xs_auto_compile'] ? '' : ' checked="checked"', - 'XS_AUTO_COMPILE_1' => $board_config['xs_auto_compile'] ? ' checked="checked"' : '', - 'XS_AUTO_RECOMPILE_0' => $board_config['xs_auto_recompile'] ? '' : ' checked="checked"', - 'XS_AUTO_RECOMPILE_1' => $board_config['xs_auto_recompile'] ? ' checked="checked"' : '', - 'XS_PHP' => htmlspecialchars($board_config['xs_php']), - 'XS_DEF_TEMPLATE' => htmlspecialchars($board_config['xs_def_template']), - 'XS_CHECK_SWITCHES_0' => !$board_config['xs_check_switches'] ? ' checked="checked"' : '', // no check - 'XS_CHECK_SWITCHES_1' => $board_config['xs_check_switches'] == 1 ? ' checked="checked"' : '', // smart check - 'XS_CHECK_SWITCHES_2' => $board_config['xs_check_switches'] == 2 ? ' checked="checked"' : '', // simple check - 'XS_WARN_INCLUDES_0' => $board_config['xs_warn_includes'] ? '' : ' checked="checked"', - 'XS_WARN_INCLUDES_1' => $board_config['xs_warn_includes'] ? ' checked="checked"' : '', - 'XS_ADD_COMMENTS_0' => $board_config['xs_add_comments'] ? '' : ' checked="checked"', - 'XS_ADD_COMMENTS_1' => $board_config['xs_add_comments'] ? ' checked="checked"' : '', - 'XS_FTP_HOST' => defined('DEMO_MODE') ? '' : $xs_ftp_host, - 'XS_FTP_LOGIN' => defined('DEMO_MODE') ? '' : $xs_ftp_login, - 'XS_FTP_PATH' => defined('DEMO_MODE') ? '' : $xs_ftp_path, - 'FORM_ACTION' => append_sid('xs_config.' . $phpEx), - )); - -for($i=0; $iassign_block_vars('shownav', array( - 'NUM' => $i, - 'LABEL' => $lang['xs_config_shownav'][$i], - 'CHECKED' => (($board_config['xs_shownav'] & $num) > 0) ? 'checked="checked"' : '' - )); - } -} - -// test cache -$tpl_filename = $template->make_filename('_xs_test.tpl'); -$cache_filename = $template->make_filename_cache($tpl_filename); -$str = ''; -if(!xs_check_cache($cache_filename)) -{ - $template->assign_block_vars('switch_xs_warning', array()); -} -@unlink($cache_filename); -$debug_data = $str; -$template->assign_vars(array( - 'XS_DEBUG_HDR1' => sprintf($lang['xs_check_hdr'], '_xs_test.tpl'), - 'XS_DEBUG_FILENAME1' => $tpl_filename, - 'XS_DEBUG_FILENAME2' => $cache_filename, - 'XS_DEBUG_DATA' => $debug_data, - )); - -$template->set_filenames(array('body' => XS_TPL_PATH . 'config.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_download.php b/phpBB2/admin/xs_download.php deleted file mode 100644 index 0732995..0000000 --- a/phpBB2/admin/xs_download.php +++ /dev/null @@ -1,167 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_import_styles'] . '')); -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_download_styles'] . '')); - -// submit url -if(isset($HTTP_GET_VARS['url']) && !defined('DEMO_MODE')) -{ - $id = intval($HTTP_GET_VARS['url']); - $var = 'xs_downloads_' . $id; - $import_data = array( - 'host' => $HTTP_SERVER_VARS['HTTP_HOST'], - 'port' => $HTTP_SERVER_VARS['SERVER_PORT'], - 'url' => str_replace('xs_download.', 'xs_frameset.', $HTTP_SERVER_VARS['PHP_SELF']), - 'session' => $userdata['session_id'], - 'xs' => $template->xs_versiontxt, - 'style' => STYLE_HEADER_VERSION, - ); - $str = ''; - $message = $lang['xs_import_download_warning'] . '

' . $str . '

' . str_replace('{URL}', append_sid('xs_download.'.$phpEx), $lang['xs_download_back']); - xs_message($lang['Information'], $message); -} - - -if(isset($HTTP_GET_VARS['edit'])) -{ - $id = intval($HTTP_GET_VARS['edit']); - $template->assign_block_vars('edit', array( - 'ID' => $id, - 'TITLE' => $board_config['xs_downloads_title_'.$id], - 'URL' => $board_config['xs_downloads_'.$id] - )); -} - -if(isset($HTTP_POST_VARS['edit']) && !defined('DEMO_MODE')) -{ - $id = intval($HTTP_POST_VARS['edit']); - $update = array(); - if(!empty($HTTP_POST_VARS['edit_delete'])) - { - // delete link - $total = $board_config['xs_downloads_count']; - $update['xs_downloads_count'] = $total - 1; - for($i=$id; $i<($total-1); $i++) - { - $update['xs_downloads_'.$i] = $update['xs_downloads_'.($i+1)]; - $update['xs_downloads_title_'.$i] = $update['xs_downloads_title_'.($i+1)]; - } - $update['xs_downloads_'.($total-1)] = ''; - $update['xs_downloads_title_'.($total-1)] = ''; - } - else - { - $update['xs_downloads_'.$id] = stripslashes($HTTP_POST_VARS['edit_url']); - $update['xs_downloads_title_'.$id] = stripslashes($HTTP_POST_VARS['edit_title']); - } - foreach($update as $var => $value) - { - if(isset($board_config[$var])) - { - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value='" . xs_sql($value) . "' WHERE config_name='" . $var . "'"; - } - else - { - $sql = "INSERT INTO " . CONFIG_TABLE . " (config_name, config_value) VALUES ('" . $var . "', '" . xs_sql($value) . "')"; - } - $db->sql_query($sql); - $board_config[$var] = $value; - } - // update config cache - if(defined('XS_MODS_CATEGORY_HIERARCHY210')) - { - if(!empty($config)) - { - $config->read(true); - } - } -} - -if(!empty($HTTP_POST_VARS['add_url']) && !defined('DEMO_MODE')) -{ - $id = $board_config['xs_downloads_count']; - $update = array(); - $update['xs_downloads_'.$id] = stripslashes($HTTP_POST_VARS['add_url']); - $update['xs_downloads_title_'.$id] = stripslashes($HTTP_POST_VARS['add_title']); - $update['xs_downloads_count'] = $board_config['xs_downloads_count'] + 1; - foreach($update as $var => $value) - { - if(isset($board_config[$var])) - { - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value='" . xs_sql($value) . "' WHERE config_name='" . $var . "'"; - } - else - { - $sql = "INSERT INTO " . CONFIG_TABLE . " (config_name, config_value) VALUES ('" . $var . "', '" . xs_sql($value) . "')"; - } - $db->sql_query($sql); - $board_config[$var] = $value; - } - // update config cache - if( defined('XS_MODS_CATEGORY_HIERARCHY210') && !empty($config) ) - { - $config->read(true); - } -} - -for($i=0; $i<$board_config['xs_downloads_count']; $i++) -{ - $row_class = $xs_row_class[$i % 2]; - $template->assign_block_vars('url', array( - 'ROW_CLASS' => $row_class, - 'NUM' => $i, - 'NUM1' => $i + 1, - 'URL' => htmlspecialchars($board_config['xs_downloads_'.$i]), - 'TITLE' => htmlspecialchars($board_config['xs_downloads_title_'.$i]), - 'U_DOWNLOAD' => append_sid('xs_download.'.$phpEx.'?url='.$i), - 'U_EDIT' => append_sid('xs_download.'.$phpEx.'?edit='.$i), - )); -} - -$template->assign_vars(array( - 'U_POST' => append_sid('xs_download.'.$phpEx) - )); - -$template->set_filenames(array('body' => XS_TPL_PATH . 'downloads.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_edit.php b/phpBB2/admin/xs_edit.php deleted file mode 100644 index 24e5bee..0000000 --- a/phpBB2/admin/xs_edit.php +++ /dev/null @@ -1,513 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - - -// check filter -$filter = isset($HTTP_GET_VARS['filter']) ? stripslashes($HTTP_GET_VARS['filter']) : (isset($HTTP_POST_VARS['filter']) ? stripslashes($HTTP_POST_VARS['filter']) : ''); -if(isset($HTTP_POST_VARS['filter_update'])) -{ - $filter_data = array( - 'ext' => trim(stripslashes($HTTP_POST_VARS['filter_ext'])), - 'data' => trim(stripslashes($HTTP_POST_VARS['filter_data'])) - ); - $filter = serialize($filter_data); -} -else -{ - $filter_data = @unserialize($filter); - if(empty($filter_data['ext'])) - { - $filter_data['ext'] = ''; - } - if(empty($filter_data['data'])) - { - $filter_data['data'] = ''; - } -} -$filter_str = '?filter=' . urlencode($filter); - - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_edit_templates'] . '')); - -$editable = array('.htm', '.html', '.tpl', '.css', '.txt', '.cfg', '.xml', '.php', '.htaccess'); - -// get current directory -$current_dir = isset($HTTP_GET_VARS['dir']) ? stripslashes($HTTP_GET_VARS['dir']) : (isset($HTTP_POST_VARS['dir']) ? stripslashes($HTTP_POST_VARS['dir']) : 'templates'); -$current_dir = xs_fix_dir($current_dir); -if(defined('DEMO_MODE') && substr($current_dir, 0, 9) !== 'templates') -{ // limit access to "templates" in demo mode - $current_dir = 'templates'; -} -$dirs = explode('/', $current_dir); -for($i=0; $iassign_vars(array( - 'FILTER_EXT' => htmlspecialchars($filter_data['ext']), - 'FILTER_DATA' => htmlspecialchars($filter_data['data']), - 'FILTER_URL' => append_sid('xs_edit.'.$phpEx), - 'FILTER_DIR' => htmlspecialchars($current_dir), - 'S_FILTER' => '' - )); - - -/* -* show edit form -*/ -if(isset($HTTP_GET_VARS['edit']) && !empty($HTTP_GET_VARS['restore'])) -{ - $file = stripslashes($HTTP_GET_VARS['edit']); - $file = xs_fix_dir($file); - $fullfile = $current_dir_root . $file; - $localfile = '../' . $fullfile; - $hash = md5($localfile); - $backup_name = XS_TEMP_DIR . XS_BACKUP_PREFIX . $hash . '.' . intval($HTTP_GET_VARS['restore']) . XS_BACKUP_EXT; - if(@file_exists($backup_name)) - { - // restore file - $HTTP_POST_VARS['edit'] = $HTTP_GET_VARS['edit']; - $HTTP_POST_VARS['content'] = addslashes(implode('', @file($backup_name))); - unset($HTTP_GET_VARS['edit']); - $return_file = str_replace('{URL}', append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file)), $lang['xs_edittpl_back_edit']); - $return_url = $return_file . '

' . $return_dir; - } -} - - -/* -* save modified file -*/ -if(isset($HTTP_POST_VARS['edit']) && !defined('DEMO_MODE')) -{ - $file = stripslashes($HTTP_POST_VARS['edit']); - $content = stripslashes($HTTP_POST_VARS['content']); - $fullfile = $current_dir_root . $file; - $localfile = '../' . $fullfile; - if(!empty($HTTP_POST_VARS['trim'])) - { - $content = trim($content); - } - if(!empty($HTTP_POST_FILES['upload']['tmp_name']) && @file_exists($HTTP_POST_FILES['upload']['tmp_name'])) - { - $content = @implode('', @file($HTTP_POST_FILES['upload']['tmp_name'])); - } - $params = array( - 'edit' => $file, - 'dir' => $current_dir, - 'content' => $content, - 'filter' => $filter, - ); - $return_file = str_replace('{URL}', append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file)), $lang['xs_edittpl_back_edit']); - $return_url = $return_file . '

' . $return_dir; - // get ftp configuration - $write_local = false; - if(!get_ftp_config(append_sid('xs_edit.'.$phpEx), $params, true)) - { - xs_exit(); - } - xs_ftp_connect(append_sid('xs_edit.'.$phpEx), $params, true); - if($ftp === XS_FTP_LOCAL) - { - $write_local = true; - $local_filename = $localfile; - } - else - { - $local_filename = XS_TEMP_DIR . 'edit_' . time() . '.tmp'; - } - $f = @fopen($local_filename, 'wb'); - if(!$f) - { - xs_error($lang['xs_error_cannot_open'] . '

' . $return_url); - } - fwrite($f, $content); - fclose($f); - if($write_local) - { - xs_message($lang['Information'], $lang['xs_edit_file_saved'] . '

' . $return_url); - } - // generate ftp actions - $actions = array(); - // chdir to template directory - for($i=0; $i 'chdir', - 'dir' => $dirs[$i] - ); - } - $actions[] = array( - 'command' => 'upload', - 'local' => $local_filename, - 'remote' => $fullfile - ); - $ftp_log = array(); - $ftp_error = ''; - $res = ftp_myexec($actions); - echo ""; - @unlink($local_filename); - if($res) - { - xs_message($lang['Information'], $lang['xs_edit_file_saved'] . '

' . $return_url); - } - xs_error($ftp_error . '

' . $return_url); -} - - -/* -* show edit form -*/ -if(isset($HTTP_GET_VARS['edit'])) -{ - $file = stripslashes($HTTP_GET_VARS['edit']); - $file = xs_fix_dir($file); - $fullfile = $current_dir_root . $file; - $localfile = '../' . $fullfile; - $hash = md5($localfile); - if(!@file_exists($localfile)) - { - xs_error($lang['xs_edit_not_found'] . '

' . $return_url); - } - $content = @file($localfile); - if(!is_array($content)) - { - xs_error($lang['xs_edit_not_found'] . '

' . $return_url); - } - $content = implode('', $content); - if(isset($HTTP_GET_VARS['download']) && !defined('DEMO_MODE')) - { - xs_download_file($file, $content); - xs_exit(); - } - if(isset($HTTP_GET_VARS['downloadbackup']) && !defined('DEMO_MODE')) - { - $backup_name = XS_TEMP_DIR . XS_BACKUP_PREFIX . $hash . '.' . intval($HTTP_GET_VARS['downloadbackup']) . XS_BACKUP_EXT; - xs_download_file($file, implode('', @file($backup_name))); - xs_exit(); - } - $return_file = str_replace('{URL}', append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file)), $lang['xs_edittpl_back_edit']); - $return_url = $return_file . '

' . $return_dir; - $template->assign_vars(array( - 'U_ACTION' => append_sid('xs_edit.'.$phpEx), - 'U_BROWSE' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir)), - 'U_EDIT' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file)), - 'U_BACKUP' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dobackup=1&dir='.urlencode($current_dir).'&edit='.urlencode($file)), - 'U_DOWNLOAD' => append_sid('xs_edit.'.$phpEx.$filter_str.'&download=1&dir='.urlencode($current_dir).'&edit='.urlencode($file)), - 'CURRENT_DIR' => htmlspecialchars($current_dir_full), - 'DIR' => htmlspecialchars($current_dir), - 'FILE' => htmlspecialchars($file), - 'FULLFILE' => htmlspecialchars($fullfile), - 'CONTENT' => defined('DEMO_MODE') ? $lang['xs_error_demo_edit'] : htmlspecialchars($content), - ) - ); - if($current_dir_full) - { - $template->assign_block_vars('nav_left',array('ITEM' => '» ' . htmlspecialchars($current_dir_full) . '')); - } - - // show tree - $arr = array(); - $template->assign_block_vars('tree', array( - 'ITEM' => 'phpBB', - 'URL' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='), - 'SEPARATOR' => '', - )); - $back_dir = ''; - for($i=0; $i ($i + 1)) - { - $back_dir = $str; - } - $template->assign_block_vars('tree', array( - 'ITEM' => htmlspecialchars($dirs[$i]), - 'URL' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($str)), - 'SEPARATOR' => '/', - )); - } - - // view backup - if(!empty($HTTP_GET_VARS['viewbackup']) && !defined('DEMO_MODE')) - { - $backup_name = XS_TEMP_DIR . XS_BACKUP_PREFIX . $hash . '.' . intval($HTTP_GET_VARS['viewbackup']) . XS_BACKUP_EXT; - $template->assign_vars(array( - 'CONTENT' => implode('', @file($backup_name)) - ) - ); - } - - // save backup - if(isset($HTTP_GET_VARS['dobackup']) && !defined('DEMO_MODE')) - { - $backup_name = XS_TEMP_DIR . XS_BACKUP_PREFIX . $hash . '.' . time() . XS_BACKUP_EXT; - $f = @fopen($backup_name, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $backup_name, $lang['xs_error_cannot_create_tmp']) . '

' . $return_url); - } - fwrite($f, $content); - fclose($f); - @chmod($backup_name, 0777); - } - - // delete backup - if(isset($HTTP_GET_VARS['delbackup']) && !defined('DEMO_MODE')) - { - $backup_name = XS_TEMP_DIR . XS_BACKUP_PREFIX . $hash . '.' . intval($HTTP_GET_VARS['delbackup']) . XS_BACKUP_EXT; - @unlink($backup_name); - } - - // show backups - $backups = array(); - $res = opendir(XS_TEMP_DIR); - $match = XS_BACKUP_PREFIX . $hash . '.'; - $match_len = strlen($match); - while(($f = readdir($res)) !== false) - { - if(substr($f, 0, $match_len) === $match) - { - $str = substr($f, $match_len, strlen($f) - $match_len - strlen(XS_BACKUP_EXT)); - if(intval($str)) - { - $backups[] = intval($str); - } - } - } - closedir($res); - sort($backups); - for($i=0; $iassign_block_vars('backup', array( - 'TIME' => create_date($board_config['default_dateformat'], $backups[$i], $board_config['board_timezone']), - 'U_RESTORE' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file).'&restore='.$backups[$i]), - 'U_DELETE' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file).'&delbackup='.$backups[$i]), - 'U_DOWNLOAD' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file).'&downloadbackup='.$backups[$i]), - 'U_VIEW' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file).'&viewbackup='.$backups[$i]), - ) - ); - } - - // show template - $template->set_filenames(array('body' => XS_TPL_PATH . 'edit_file.tpl')); - $template->pparse('body'); - xs_exit(); -} - - -/* -* show file browser -*/ - -// show tree -$arr = array(); -$template->assign_block_vars('tree', array( - 'ITEM' => 'phpBB', - 'URL' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='), - 'SEPARATOR' => '', - )); -$back_dir = ''; -for($i=0; $i ($i + 1)) - { - $back_dir = $str; - } - $template->assign_block_vars('tree', array( - 'ITEM' => htmlspecialchars($dirs[$i]), - 'URL' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($str)), - 'SEPARATOR' => '/', - )); -} - -// get list of files/directories -$list_files = array(); // non-editable files -$list_files_editable = array(); // editable files -$list_dirs = array(); // directories -$res = @opendir('../' . $current_dir_full); -if(!$res) -{ - xs_error(str_replace('{DIR}', $current_dir_full, $lang['xs_export_no_open_dir']) . '

' . $return_url_root); -} -while(($file = readdir($res)) !== false) -{ - if($file !== '.' && $file !== '..') - { - $filename = '../' . ($current_dir_full ? $current_dir_full . '/' : '') . $file; - if(is_dir($filename)) - { - $list_dirs[] = $file; - } - else - { - $pos = strrpos($file, '.'); - if($pos !== false) - { - $ext = strtolower(substr($file, $pos)); - $ext1 = substr($ext, 1); - if((!$filter_data['ext'] && xs_in_array($ext, $editable)) || $ext1 === $filter_data['ext']) - { - // check filter - if($filter_data['data']) - { - $content = @implode('', @file($filename)); - if(strpos($content, $filter_data['data']) !== false) - { - $list_files_editable[] = $file; - } - } - else - { - $list_files_editable[] = $file; - } - } - else - { - $list_files[] = $file; - } - } - } - } -} -closedir($res); - -$list_dirs_count = count($list_dirs); -$list_files_count = count($list_files) + count($list_files_editable); - -if($current_dir || count($list_dirs)) -{ - $template->assign_block_vars('begin_dirs', array( - 'COUNT' => count($list_dirs), - 'L_COUNT' => str_replace('{COUNT}', count($list_dirs), $lang['xs_fileman_dircount']) - )); -} -else -{ - $template->assign_block_vars('begin_nodirs', array()); -} -if($current_dir) -{ - $template->assign_block_vars('begin_dirs.dir', array( - 'NAME' => '..', - 'FULLNAME' => htmlspecialchars($back_dir ? $back_dir . '/' : ''), - 'URL' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($back_dir)), - ) - ); -} - -// show subdirectories -sort($list_dirs); -for($i=0; $iassign_block_vars('begin_dirs.dir', array( - 'NAME' => htmlspecialchars($dir), - 'FULLNAME' => htmlspecialchars($current_dir_root . $dir), - 'URL' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($str)), - ) - ); -} - -// show editable files -if(count($list_files_editable)) -{ - $template->assign_block_vars('begin_files', array('COUNT' => count($list_files_editable))); -} -else -{ - $template->assign_block_vars('begin_nofiles', array('COUNT' => count($list_files_editable))); -} -sort($list_files_editable); -// get today start -$today = floor((time() + 3600 * $board_config['board_timezone']) / 86400) * 86400 - (3600 * $board_config['board_timezone']); -for($i=0; $iassign_block_vars('begin_files.file', array( - 'ROW_CLASS' => $row_class, - 'NAME' => htmlspecialchars($file), - 'FULLNAME' => htmlspecialchars($fullfile), - 'SIZE' => @filesize($localfile), - 'TIME' => $filetime, - 'URL' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file)) - ) - ); - if($t < $today) - { - $template->assign_block_vars('begin_files.file.old', array()); - } - else - { - $template->assign_block_vars('begin_files.file.today', array()); - } -} - -$template->set_filenames(array('body' => XS_TPL_PATH . 'edit.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_edit_data.php b/phpBB2/admin/xs_edit_data.php deleted file mode 100644 index 79915f3..0000000 --- a/phpBB2/admin/xs_edit_data.php +++ /dev/null @@ -1,393 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_edit_styles_data'] . '')); - -$lang['xs_edittpl_back_list'] = str_replace('{URL}', append_sid('xs_edit_data.'.$phpEx), $lang['xs_edittpl_back_list']); - -function xs_empty_name() -{ - global $db; - $sql = "SELECT * FROM " . THEMES_NAME_TABLE . " LIMIT 0, 1"; - if(!$result = $db->sql_query($sql)) - { - $data = array(); - } - $data = $db->sql_fetchrow($result); - if($data === false || !@count($data)) - { - $data = array( - 'themes_id' => 0, - 'tr_color1_name' => '', - 'tr_color2_name' => '', - 'tr_color3_name' => '', - 'tr_class1_name' => '', - 'tr_class2_name' => '', - 'tr_class3_name' => '', - 'th_color1_name' => '', - 'th_color2_name' => '', - 'th_color3_name' => '', - 'th_class1_name' => '', - 'th_class2_name' => '', - 'th_class3_name' => '', - 'td_color1_name' => '', - 'td_color2_name' => '', - 'td_color3_name' => '', - 'td_class1_name' => '', - 'td_class2_name' => '', - 'td_class3_name' => '', - 'fontface1_name' => '', - 'fontface2_name' => '', - 'fontface3_name' => '', - 'fontsize1_name' => '', - 'fontsize2_name' => '', - 'fontsize3_name' => '', - 'fontcolor1_name' => '', - 'fontcolor2_name' => '', - 'fontcolor3_name' => '', - 'span_class1_name' => '', - 'span_class2_name' => '', - 'span_class3_name' => '' - ); - - } - $arr = array(); - foreach($data as $var => $value) - { - if($var !== 'themes_id') - { - $arr[$var] = ''; - } - } - return $arr; -} - -function xs_get_vars($theme) -{ - $arr1 = array(); - $arr2 = array(); - $vars_100 = array('head_stylesheet', 'body_background'); - $vars_50 = array('fontface'); - $vars_30 = array('style_name'); - $vars_25 = array('tr_class', 'th_class', 'td_class', 'span_class'); - $vars_6 = array('body_bgcolor', 'body_text', 'body_link', 'body_vlink', 'body_alink', 'body_hlink', 'tr_color', 'th_color', 'td_color', 'fontcolor'); - $vars_5 = array('img_size_poll', 'img_size_privmsg'); - $vars_4 = array('fontsize', 'theme_public'); - foreach($theme as $var => $value) - { - if(!is_integer($var) && $var !== 'themes_id' && $var !== 'template_name') - { - // editable variable - $len = 0; - $sub = substr($var, 0, strlen($var) - 1); - if(xs_in_array($var, $vars_100) || xs_in_array($sub, $vars_100)) - { - $len = 100; - } - elseif(xs_in_array($var, $vars_50) || xs_in_array($sub, $vars_50)) - { - $len = 50; - } - elseif(xs_in_array($var, $vars_30) || xs_in_array($sub, $vars_30)) - { - $len = 30; - } - elseif(xs_in_array($var, $vars_25) || xs_in_array($sub, $vars_25)) - { - $len = 25; - } - elseif(xs_in_array($var, $vars_6) || xs_in_array($sub, $vars_6)) - { - $len = 6; - } - elseif(xs_in_array($var, $vars_5) || xs_in_array($sub, $vars_5)) - { - $len = 5; - } - elseif(xs_in_array($var, $vrs_4) || xs_in_array($sub, $vars_4)) - { - $len = 4; - } - elseif(strpos($var, 'class')) - { - $len = 25; - } - elseif(strpos($var, 'color')) - { - $len = 6; - } - if($len) - { - $item = array( - 'var' => $var, - 'len' => $len, - 'color' => $len == 6 ? true : false, - 'font' => $len == 25 ? true : false, - ); - if($var === 'style_name' || $var === 'head_stylesheet' || $var === 'body_background') - { - $arr1[$var] = $item; - } - else - { - $arr2[$var] = $item; - } - } - } - } - krsort($arr1); - ksort($arr2); - if(defined('XS_MODS_CATEGORY_HIERARCHY210')) - { - // force sort for the added fields - $added = array( - 'style_name' => array(), - 'images_pack' => array('var' => $item['images_pack'], 'len' => 100, 'color' => false, 'font' => false), - 'custom_tpls' => array('var' => $item['custom_tpls'], 'len' => 100, 'color' => false, 'font' => false), - 'head_stylesheet' => array(), - ); - $arr1 = array_merge($added, $arr1); - // we need to add lang entries - global $lang; - $lang['xs_data_images_pack'] = $lang['Images_pack']; - $lang['xs_data_images_pack_explain'] = $lang['Images_pack_explain']; - $lang['xs_data_custom_tpls'] = $lang['Custom_tpls']; - $lang['xs_data_custom_tpls_explain'] = $lang['Custom_tpls_explain']; - } - return array_merge($arr1, $arr2); -} - -// -// submit -// -if(!empty($HTTP_POST_VARS['edit']) && !defined('DEMO_MODE')) -{ - $id = intval($HTTP_POST_VARS['edit']); - $lang['xs_edittpl_back_edit'] = str_replace('{URL}', append_sid('xs_edit_data.'.$phpEx.'?edit='.$id), $lang['xs_edittpl_back_edit']); - $data_item = array(); - $data_item_update = array(); - $data_name = array(); - $data_name_insert_vars = array('themes_id'); - $data_name_insert_values = array($id); - $data_name_update = array(); - foreach($HTTP_POST_VARS as $var => $value) - { - if(substr($var, 0, 5) === 'edit_') - { - $var = substr($var, 5); - $value = stripslashes($value); - $data_item[$var] = $value; - $data_item_update[] = $var . "='" . xs_sql($value) . "'"; - } - elseif(substr($var, 0, 5) === 'name_') - { - $var = substr($var, 5).'_name'; - $value = stripslashes($value); - $data_name[$var] = $value; - $data_name_update[] = $var . "='" . xs_sql($value) . "'"; - $data_name_insert_vars[] = $var; - $data_name_insert_values[] = xs_sql($value); - } - } - // update item - $sql = "UPDATE " . THEMES_TABLE . " SET " . implode(',', $data_item_update) . " WHERE themes_id='{$id}'"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_edittpl_error_updating'] . '

' . $lang['xs_edittpl_back_edit'] . '

' . $lang['xs_edittpl_back_list'], __LINE__, __FILE__); - } - // check if there is name - $sql = "SELECT themes_id FROM " . THEMES_NAME_TABLE . " WHERE themes_id='{$id}'"; - if(!$result = $db->sql_query($sql)) - { - $sql = "INSERT INTO " . THEMES_NAME_TABLE . " (" . implode(',', $data_name_insert_vars) . ") VALUES ('" . implode("', '", $data_name_insert_values) . "')"; - } - $item = $db->sql_fetchrow($result); - if(!is_array($item)) - { - $sql = "INSERT INTO " . THEMES_NAME_TABLE . " (" . implode(',', $data_name_insert_vars) . ") VALUES ('" . implode("', '", $data_name_insert_values) . "')"; - } - else - { - $sql = "UPDATE " . THEMES_NAME_TABLE . " SET " . implode(',', $data_name_update) . " WHERE themes_id='{$id}'"; - } - $db->sql_query($sql); - // regen themes cache - if(defined('XS_MODS_CATEGORY_HIERARCHY210')) - { - if ( empty($themes) ) - { - $themes = new themes(); - } - if ( !empty($themes) ) - { - $themes->read(true); - } - } - xs_message($lang['Information'], $lang['xs_edittpl_style_updated'] . '

' . $lang['xs_edittpl_back_edit'] . '

' . $lang['xs_edittpl_back_list']); -} - -// -// edit style -// -if(!empty($HTTP_GET_VARS['edit'])) -{ - $id = intval($HTTP_GET_VARS['edit']); - $sql = "SELECT * FROM " . THEMES_TABLE . " WHERE themes_id='{$id}'"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); - } - $item = $db->sql_fetchrow($result); - if(empty($item['themes_id'])) - { - xs_error($lang['xs_invalid_style_id'] . '

' . $lang['xs_edittpl_back_list']); - } - $sql = "SELECT * FROM " . THEMES_NAME_TABLE . " WHERE themes_id='{$id}'"; - if(!$result = $db->sql_query($sql)) - { - $item_name = array(); - } - $item_name = $db->sql_fetchrow($result); - if($item_name === false || !@count($item_name)) - { - $item_name = xs_empty_name(); - } - $vars = xs_get_vars($item); - // show variables - $template->assign_vars(array( - 'U_ACTION' => append_sid('xs_edit_data.'.$phpEx), - 'TPL' => htmlspecialchars($item['template-name']), - 'STYLE' => htmlspecialchars($item['style_name']), - 'ID' => $id - ) - ); - // all variables - $i = 0; - foreach($vars as $var => $value) - { - $row_class = $xs_row_class[$i % 2]; - $i++; - if(isset($lang['xs_data_'.$var])) - { - $text = $lang['xs_data_'.$var]; - } - else - { - $str = substr($var, 0, strlen($var) - 1); - $str_fc = substr($var, 0, strlen($var) - 2); - if(isset($lang['xs_data_'.$str_fc])) - { - $str1 = substr($var, strlen($var) - 2); - $text = sprintf($lang['xs_data_'.$str_fc], $str1); - } - else if(isset($lang['xs_data_'.$str])) - { - $str1 = substr($var, strlen($var) - 1); - $text = sprintf($lang['xs_data_'.$str], $str1); - } - else - { - $text = sprintf($lang['xs_data_unknown'], $var); - } - } - $template->assign_block_vars('row', array( - 'ROW_CLASS' => $row_class, - 'VAR' => $var, - 'VALUE' => isset($item[$var]) ? htmlspecialchars($item[$var]) : '', - 'LEN' => $value['len'], - 'SIZE' => $value['len'] < 10 ? 10 : 30, - 'TEXT' => htmlspecialchars($text), - 'EXPLAIN' => isset($lang['xs_data_' . $var . '_explain']) ? $lang['xs_data_' . $var . '_explain'] : '', - ) - ); - if($value['color']) - { - $template->assign_block_vars('row.color', array()); - } - if($value['font']) - { - $template->assign_block_vars('row.font', array()); - } - if(isset($item_name[$var.'_name'])) - { - $template->assign_block_vars('row.name', array( - 'DATA' => $item_name[$var.'_name'] - ) - ); - } - else - { - $template->assign_block_vars('row.noname', array()); - } - } - $template->set_filenames(array('body' => XS_TPL_PATH . 'edit_data.tpl')); - $template->pparse('body'); - xs_exit(); -} - - -// -// show list of installed styles -// -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY style_name'; -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -$template->set_filenames(array('body' => XS_TPL_PATH . 'edit_data_list.tpl')); -for($i=0; $iassign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => htmlspecialchars($item['template_name']), - 'STYLE' => htmlspecialchars($item['style_name']), - 'U_EDIT' => append_sid('xs_edit_data.'.$phpEx.'?edit='.$item['themes_id']) - ) - ); -} - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_export.php b/phpBB2/admin/xs_export.php deleted file mode 100644 index b4a4563..0000000 --- a/phpBB2/admin/xs_export.php +++ /dev/null @@ -1,320 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_export_styles'] . '')); - -$lang['xs_export_back'] = str_replace('{URL}', append_sid('xs_export.'.$phpEx), $lang['xs_export_back']); - -// -// Check required functions -// -if(!@function_exists('gzcompress')) -{ - xs_error($lang['xs_import_nogzip']); -} - - -// -// Export page -// -$export = isset($HTTP_GET_VARS['export']) ? $HTTP_GET_VARS['export'] : ''; -$export = xs_tpl_name($export); -if(!empty($export) && @file_exists($phpbb_root_path . $template_dir . $export . '/theme_info.cfg')) -{ - // Get list of styles - $sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " WHERE template_name = '$export' ORDER BY style_name ASC"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_theme_data'] . '

' . $lang['xs_export_back']); - } - $theme_rowset = $db->sql_fetchrowset($result); - if(count($theme_rowset) == 0) - { - xs_error($lang['xs_no_themes'] . '

' . $lang['xs_export_back']); - } - $template->set_filenames(array('body' => XS_TPL_PATH . 'export2.tpl')); - $xs_send_method = isset($board_config['xs_export_data']) ? $board_config['xs_export_data'] : ''; - $xs_send = @unserialize($xs_send_method); - $xs_send_method = $xs_send['method'] == 'ftp' ? 'ftp' : ($xs_send['method'] == 'file' ? 'file' : 'save'); - $template->assign_vars(array( - 'FORM_ACTION' => append_sid('xs_export.'.$phpEx), - 'EXPORT_TEMPLATE' => htmlspecialchars($export), - 'STYLE_ID' => $theme_rowset[0]['themes_id'], - 'STYLE_NAME' => htmlspecialchars($theme_rowset[0]['style_name']), - 'TOTAL' => count($theme_rowset), - 'SEND_METHOD_'.strtoupper($xs_send_method) => ' checked="checked"', - 'SEND_DATA_DIR' => isset($xs_send['dir']) ? htmlspecialchars($xs_send['dir']) : '', - 'SEND_DATA_HOST' => isset($xs_send['host']) ? htmlspecialchars($xs_send['host']) : '', - 'SEND_DATA_LOGIN' => isset($xs_send['login']) ? htmlspecialchars($xs_send['login']) : '', - 'SEND_DATA_FTPDIR' => isset($xs_send['ftpdir']) ? htmlspecialchars($xs_send['ftpdir']) : '', - 'L_TITLE' => str_replace('{TPL}', $export, $lang['xs_export_style_title']), - )); - if(count($theme_rowset) == 1) - { - $template->assign_block_vars('switch_select_nostyle', array()); - } - else - { - $template->assign_block_vars('switch_select_style', array()); - for($i=0; $iassign_block_vars('switch_select_style.style', array( - 'NUM' => $i, - 'ID' => $theme_rowset[$i]['themes_id'], - 'NAME' => htmlspecialchars($theme_rowset[$i]['style_name']) - )); - } - } - $template->pparse('body'); - xs_exit(); -} - -// -// Export style -// -$export = isset($HTTP_POST_VARS['export']) ? $HTTP_POST_VARS['export'] : ''; -$export = xs_tpl_name($export); -if(!empty($export) && @file_exists($phpbb_root_path . $template_dir . $export . '/theme_info.cfg') && !defined('DEMO_MODE')) -{ - $total = intval($HTTP_POST_VARS['total']); - $comment = substr(stripslashes($HTTP_POST_VARS['export_comment']), 0, 255); - $list = array(); - for($i=0; $i<$total; $i++) - { - if(!empty($HTTP_POST_VARS['export_style_'.$i])) - { - $list[] = intval($HTTP_POST_VARS['export_style_id_'.$i]); - } - } - if(!count($list)) - { - xs_error($lang['xs_export_noselect_themes'] . '

' . $lang['xs_export_back']); - } - // Export as... - $exportas = empty($HTTP_POST_VARS['export_template']) ? $export : $HTTP_POST_VARS['export_template']; - $exportas = xs_tpl_name($exportas); - // Generate theme_info.cfg - $sql = "SELECT * FROM " . THEMES_TABLE . " WHERE template_name = '$export' AND themes_id IN (" . implode(', ', $list) . ")"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_theme_data'] . $lang['xs_export_back']); - } - $theme_rowset = $db->sql_fetchrowset($result); - if(count($theme_rowset) == 0) - { - xs_error($lang['xs_no_themes'] . '

' . $lang['xs_export_back']); - } - $theme_data = xs_generate_themeinfo($theme_rowset, $export, $exportas, $total); - - // prepare to pack - $pack_error = ''; - $pack_list = array(); - $pack_replace = array('./theme_info.cfg' => $theme_data); - - // pack style - for($i=0; $i
' . $lang['xs_export_back']); - } - if(!$data) - { - xs_error(str_replace('{TPL}', $export, $lang['xs_export_error2']) . '

' . $lang['xs_export_back']); - } - - // - // Got file. Sending it. - // - $send_method = isset($HTTP_POST_VARS['export_to']) ? $HTTP_POST_VARS['export_to'] : ''; - $export_filename = empty($HTTP_POST_VARS['export_filename']) ? $exportas . STYLE_EXTENSION : $HTTP_POST_VARS['export_filename']; - if($send_method === 'file') - { - // store on local server - $send_dir = isset($HTTP_POST_VARS['export_to_dir']) ? $HTTP_POST_VARS['export_to_dir'] : ''; - $send_dir = str_replace('\\', '/', stripslashes($send_dir)); - if(empty($send_dir)) - { - $send_dir = XS_TEMP_DIR; - } - if(substr($send_dir, strlen($send_dir) - 1) !== '/') - { - $send_dir .= '/'; - } - $filename = $send_dir . $export_filename; - $f = @fopen($filename, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $filename, $lang['xs_error_cannot_create_file']) . '

' . $lang['xs_export_back']); - } - @fwrite($f, $data); - @fclose($f); - set_export_method('file', array('dir' => $send_dir)); - xs_message($lang['Information'], str_replace('{FILE}', $filename, $lang['xs_export_saved']) . '

' . $lang['xs_export_back']); - } - elseif($send_method === 'ftp') - { - // upload via ftp - $ftp_host = $HTTP_POST_VARS['export_to_ftp_host']; - $ftp_login = $HTTP_POST_VARS['export_to_ftp_login']; - $ftp_pass = $HTTP_POST_VARS['export_to_ftp_pass']; - $ftp_dir = str_replace('\\', '/', $HTTP_POST_VARS['export_to_ftp_dir']); - if($ftp_dir && substr($ftp_dir, strlen($ftp_dir) - 1) !== '/') - { - $ftp_dir .= '/'; - } - // save as temporary file - $filename = XS_TEMP_DIR.'tmp_' . time() . '.tmp'; - $f = @fopen($filename, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $filename, $lang['xs_error_cannot_create_tmp']) . '

' . $lang['xs_export_back']); - } - @fwrite($f, $data); - @fclose($f); - // connect to ftp - $ftp = @ftp_connect($ftp_host); - if(!$ftp) - { - @unlink($filename); - xs_error($lang['xs_ftp_error_noconnect'] . '

' . $lang['xs_export_back']); - } - $res = @ftp_login($ftp, $ftp_login, $ftp_pass); - if(!$res) - { - @unlink($filename); - xs_error($lang['xs_ftp_error_login2'] . '

' . $lang['xs_export_back']); - } - if($ftp_dir) - { - @ftp_chdir($ftp, $ftp_dir); - } - $res = @ftp_put($ftp, $ftp_dir . $export_filename, $filename, FTP_BINARY); - @unlink($filename); - if(!$res) - { - xs_error($lang['xs_export_error_uploading'] . '

' . $lang['xs_export_back']); - } - set_export_method('ftp', array('host' => $ftp_host, 'login' => $ftp_login, 'ftpdir' => $ftp_dir)); - xs_message($lang['Information'], $lang['xs_export_uploaded'] . '

' . $lang['xs_export_back']); - } - // send file - xs_download_file($export_filename, $data, 'application/phpbbstyle'); - xs_exit(); -} - -$template->set_filenames(array('body' => XS_TPL_PATH . 'export.tpl')); - -// -// get list of installed styles -// -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY template_name'; -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -$prev_id = -1; -$prev_tpl = ''; -$style_names = array(); -$j = 0; -for($i=0; $i 0) - { - $str = implode('
', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_EXPORT' => "xs_export.{$phpEx}?export={$str2}&sid={$userdata['session_id']}", - ) - ); - } - $prev_id = $item['themes_id']; - $prev_tpl = $item['template_name']; - $style_names = array(htmlspecialchars($item['style_name'])); - } -} - -if($prev_id > 0) -{ - $str = implode('
', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_EXPORT' => "xs_export.{$phpEx}?export={$str2}&sid={$userdata['session_id']}", - ) - ); -} - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_export_data.php b/phpBB2/admin/xs_export_data.php deleted file mode 100644 index f965f0e..0000000 --- a/phpBB2/admin/xs_export_data.php +++ /dev/null @@ -1,259 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_edit_styles_data'] . '')); - -$lang['xs_export_data_back'] = str_replace('{URL}', append_sid('xs_export_data.'.$phpEx), $lang['xs_export_data_back']); - -// -// export style -// -if(isset($HTTP_GET_VARS['export'])) -{ - $export = str_replace(array('\\', '/'), array('',''), stripslashes($HTTP_GET_VARS['export'])); - // get list of themes for style - $sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " WHERE template_name = '$export' ORDER BY style_name ASC"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_theme_data'] . '

' . $lang['xs_export_data_back']); - } - $theme_rowset = $db->sql_fetchrowset($result); - if(count($theme_rowset) == 0) - { - xs_error($lang['xs_no_themes'] . '

' . $lang['xs_export_data_back']); - } - if(count($theme_rowset) == 1) - { - $HTTP_POST_VARS['export'] = $HTTP_GET_VARS['export']; - $HTTP_POST_VARS['export_total'] = '1'; - $HTTP_POST_VARS['export_id_0'] = $theme_rowset[0]['themes_id']; - $HTTP_POST_VARS['export_check_0'] = 'checked'; - } - else - { - $template->set_filenames(array('body' => XS_TPL_PATH . 'export_data2.tpl')); - $template->assign_vars(array( - 'TOTAL' => count($theme_rowset), - 'EXPORT' => htmlspecialchars($export), - 'U_ACTION' => append_sid("xs_export_data.{$phpEx}") - ) - ); - for($i=0; $iassign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'NUM' => $i, - 'ID' => $theme_rowset[$i]['themes_id'], - 'STYLE' => htmlspecialchars($theme_rowset[$i]['style_name']) - ) - ); - } - $template->pparse('body'); - xs_exit(); - } -} - -if(!empty($HTTP_POST_VARS['export']) && !defined('DEMO_MODE')) -{ - $export = xs_tpl_name($HTTP_POST_VARS['export']); - // get ftp configuration - $params = array('export' => $export); - $total = intval($HTTP_POST_VARS['export_total']); - $count = 0; - for($i=0; $i<$total; $i++) - { - if(!empty($HTTP_POST_VARS['export_check_'.$i])) - { - $params['export_id_'.$count] = intval($HTTP_POST_VARS['export_id_'.$i]); - $params['export_check_'.$count] = 'checked'; - $count ++; - } - } - $params['export_total'] = $count; - if(!$count) - { - xs_error($lang['xs_export_noselect_themes'] . '

' . $lang['xs_export_data_back']); - } - $write_local = false; - if(!get_ftp_config(append_sid('xs_export_data.'.$phpEx), $params, true)) - { - xs_exit(); - } - xs_ftp_connect(append_sid('xs_export_data.'.$phpEx), $params, true); - if($ftp === XS_FTP_LOCAL) - { - $write_local = true; - $local_filename = '../templates/'. $export . '/theme_info.cfg'; - } - else - { - $local_filename = XS_TEMP_DIR . 'export_' . time() . '.tmp'; - } - // get all themes for style - $export_list = array(); - for($i=0; $i<$total; $i++) - { - if(!empty($HTTP_POST_VARS['export_check_'.$i])) - { - $export_list[] = intval($HTTP_POST_VARS['export_id_'.$i]); - } - } - $sql = "SELECT * FROM " . THEMES_TABLE . " WHERE themes_id IN (" . implode(', ', $export_list) . ") ORDER BY style_name ASC"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_style_info'] . '

' . $lang['xs_export_data_back'], __LINE__, __FILE__); - } - $style_rowset = $db->sql_fetchrowset($result); - if(!count($style_rowset)) - { - xs_error($lang['xs_no_style_info'] . '

' . $lang['xs_export_data_back'], __LINE__, __FILE__); - } - $data = xs_generate_themeinfo($style_rowset, $export, $export, 0); - $f = @fopen($local_filename, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $local_filename, $lang['xs_error_cannot_create_file']) . '

' . $lang['xs_export_data_back']); - } - fwrite($f, $data); - fclose($f); - if($write_local) - { - xs_message($lang['Information'], $lang['xs_export_data_saved'] . '

' . $lang['xs_export_data_back']); - } - // generate ftp actions - $actions = array(); - // chdir to template directory - $actions[] = array( - 'command' => 'chdir', - 'dir' => 'templates' - ); - $actions[] = array( - 'command' => 'chdir', - 'dir' => $export - ); - $actions[] = array( - 'command' => 'upload', - 'local' => $local_filename, - 'remote' => 'templates/' . $export . '/theme_info.cfg' - ); - $ftp_log = array(); - $ftp_error = ''; - $res = ftp_myexec($actions); -/* echo ""; */ - @unlink($local_filename); - if($res) - { - xs_message($lang['Information'], $lang['xs_export_data_saved'] . '

' . $lang['xs_export_data_back']); - } - xs_error($ftp_error . '

' . $lang['xs_export_data_back']); -} - - - - -$template->set_filenames(array('body' => XS_TPL_PATH . 'export_data.tpl')); -// -// get list of installed styles -// -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY template_name'; -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -$prev_id = -1; -$prev_tpl = ''; -$style_names = array(); -$j = 0; -for($i=0; $i 0) - { - $str = implode('
', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_EXPORT' => "xs_export_data.{$phpEx}?export={$str2}&sid={$userdata['session_id']}", - ) - ); - } - $prev_id = $item['themes_id']; - $prev_tpl = $item['template_name']; - $style_names = array(htmlspecialchars($item['style_name'])); - } -} - -if($prev_id > 0) -{ - $str = implode('
', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_EXPORT' => "xs_export_data.{$phpEx}?export={$str2}&sid={$userdata['session_id']}", - ) - ); -} - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_frame_top.php b/phpBB2/admin/xs_frame_top.php deleted file mode 100644 index 60783dc..0000000 --- a/phpBB2/admin/xs_frame_top.php +++ /dev/null @@ -1,63 +0,0 @@ -set_filenames(array('body' => XS_TPL_PATH . 'frame_top.tpl')); - -$template->assign_block_vars('left_nav', array( - 'URL' => append_sid('xs_index.'.$phpEx), - 'TEXT' => $lang['xs_menu_lc'] - )); -/* $template->assign_block_vars('left_nav', array( - 'URL' => append_sid('xs_download.'.$phpEx), - 'TEXT' => $lang['xs_download_styles_lc'] - )); */ -$template->assign_block_vars('left_nav', array( - 'URL' => append_sid('xs_import.'.$phpEx), - 'TEXT' => $lang['xs_import_styles_lc'] - )); -$template->assign_block_vars('left_nav', array( - 'URL' => append_sid('xs_install.'.$phpEx), - 'TEXT' => $lang['xs_install_styles_lc'] - )); -$template->assign_block_vars('left_nav', array( - 'URL' => 'http://www.phpbbstyles.com', - 'TEXT' => $lang['xs_support_forum_lc'] - )); - - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_frameset.php b/phpBB2/admin/xs_frameset.php deleted file mode 100644 index 1985aa6..0000000 --- a/phpBB2/admin/xs_frameset.php +++ /dev/null @@ -1,101 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -define('NO_XS_HEADER', true); -include_once('xs_include.' . $phpEx); - -$action = isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''; -$get_data = array(); -foreach($HTTP_GET_VARS as $var => $value) -{ - if($var !== 'action' && $var !== 'sid') - { - $get_data[] = $var . '=' . urlencode(stripslashes($value)); - } -} - -// check for style download command -if(isset($HTTP_POST_VARS['action']) && $HTTP_POST_VARS['action'] === 'web') -{ - $action = 'import'; - $get_data[] = 'get_remote=' . urlencode(stripslashes($HTTP_POST_VARS['source'])); - if(isset($HTTP_POST_VARS['return'])) - { - $get_data[] = 'return=' . urlencode(stripslashes($HTTP_POST_VARS['return'])); - } -} - -$get_data = count($get_data) ? $phpEx . '?' . implode('&', $get_data) : $phpEx; - -$content_url = array( - 'config' => append_sid('xs_config.'.$get_data), - 'install' => append_sid('xs_install.'.$get_data), - 'uninstall' => append_sid('xs_uninstall.'.$get_data), - 'default' => append_sid('xs_styles.'.$get_data), - 'cache' => append_sid('xs_cache.'.$get_data), - 'import' => append_sid('xs_import.'.$get_data), - 'export' => append_sid('xs_export.'.$get_data), - 'clone' => append_sid('xs_clone.'.$get_data), - 'download' => append_sid('xs_download.'.$get_data), - 'edittpl' => append_sid('xs_edit.'.$get_data), - 'editdb' => append_sid('xs_edit_data.'.$get_data), - 'exportdb' => append_sid('xs_export_data.'.$get_data), - 'updates' => append_sid('xs_update.'.$get_data), - 'portal' => append_sid('xs_portal.'.$get_data), - 'style_config' => append_sid('xs_style_config.'.$get_data), - ); - -if(isset($content_url[$action])) -{ - $content = $content_url[$action]; -} -else -{ - $content = append_sid('xs_index.'.$get_data); -} - -$template->set_filenames(array('body' => XS_TPL_PATH . 'frameset.tpl')); -$template->assign_vars(array( - 'FRAME_TOP' => append_sid('xs_frame_top.'.$phpEx), - 'FRAME_MAIN' => $content, - )); - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_import.php b/phpBB2/admin/xs_import.php deleted file mode 100644 index d3c1da7..0000000 --- a/phpBB2/admin/xs_import.php +++ /dev/null @@ -1,391 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_import_styles'] . '')); - -$lang['xs_import_back'] = str_replace('{URL}', append_sid('xs_import.'.$phpEx), $lang['xs_import_back']); - -$return_url = isset($HTTP_POST_VARS['return']) ? stripslashes($HTTP_POST_VARS['return']) : (isset($HTTP_GET_VARS['return']) ? stripslashes($HTTP_GET_VARS['return']) : ''); -$return = $return_url ? '&return=' . urlencode($return_url) : ''; -if($return) -{ - $lang['xs_import_back'] = str_replace('{URL}', $return_url, $lang['xs_import_back_download']); - $HTTP_POST_VARS['return'] = $HTTP_GET_VARS['return'] = addslashes($return_url); -} - -// -// Check required functions -// -if(!@function_exists('gzcompress')) -{ - xs_error($lang['xs_import_nogzip']); -} - -$tpl_filename = $template->make_filename('_xs_test.tpl'); -$cache_filename = $template->make_filename_cache($tpl_filename); -$str = ''; -if(!xs_check_cache($cache_filename)) -{ - xs_error(str_replace(array('{URL1}', '{URL2}'), array(append_sid('xs_chmod.'.$phpEx), append_sid('xs_import.'.$phpEx)), $lang['xs_import_nowrite_cache'])); -} - -// -// include all functions -// -include_once('xs_include_import.'.$phpEx); - -// remove timeout -@set_time_limit(XS_MAX_TIMEOUT); - -// -// check if need to download style -// -if(!empty($HTTP_GET_VARS['get_remote'])) -{ - $HTTP_POST_VARS['action'] = 'web'; - $HTTP_POST_VARS['source'] = $HTTP_GET_VARS['get_remote']; -} - -// -// delete style -// -if(isset($HTTP_GET_VARS['del']) && !defined('DEMO_MODE')) -{ - $str = xs_tpl_name($HTTP_GET_VARS['del']); - @unlink(XS_TEMP_DIR.$str); -} - -// -// import style -// -if(isset($HTTP_GET_VARS['import']) || isset($HTTP_POST_VARS['import'])) -{ - $list_only = isset($HTTP_GET_VARS['list']) ? true : false; - $get_file = isset($HTTP_GET_VARS['get_file']) ? stripslashes($HTTP_GET_VARS['get_file']) : ''; - $filename = isset($HTTP_POST_VARS['import']) ? $HTTP_POST_VARS['import'] : $HTTP_GET_VARS['import']; - $filename = xs_tpl_name($filename); - $write_local = false; - if(!$list_only) - { - if(defined('DEMO_MODE')) - { - xs_error($lang['xs_permission_denied'] . '

' . $lang['xs_import_back']); - } - $params = array('import' => $filename); - $total = intval($HTTP_POST_VARS['total']); - $params['total'] = $total; - $params['import_default'] = isset($HTTP_POST_VARS['import_default']) && strlen($HTTP_POST_VARS['import_default']) ? intval($HTTP_POST_VARS['import_default']) : -1; - for($i=0; $i<$total; $i++) - { - $install = empty($HTTP_POST_VARS['import_install_'.$i]) ? 0 : 1; - $default = $install ? ($params['import_default'] == $i ? 1 : 0) : 0; - $params['import_install_'.$i] = $install; - } - if($return_url) - { - $params['return'] = $return_url; - } - if(!get_ftp_config(append_sid('xs_import.'.$phpEx), $params, true)) - { - xs_exit(); - } - xs_ftp_connect(append_sid('xs_import.'.$phpEx), $params, true); - if($ftp === XS_FTP_LOCAL) - { - $write_local = true; - $write_local_dir = '../templates/'; - } - } - include('xs_include_import2.' . $phpEx); -} - -// -// Download from web -// -if(isset($HTTP_GET_VARS['get_web'])) -{ - $HTTP_POST_VARS['action'] = 'web'; - $HTTP_POST_VARS['source'] = $HTTP_GET_VARS['get_web']; -} -if(isset($HTTP_POST_VARS['action']) && $HTTP_POST_VARS['action'] === 'web' && !defined('DEMO_MODE')) -{ - $src = stripslashes($HTTP_POST_VARS['source']); - $dst = generate_style_name('web'); - $str = @implode('', @file($src)); - if(empty($str)) - { - xs_error(str_replace('{URL}', $src, $lang['xs_import_nodownload']) . '

' . $lang['xs_import_back']); - } - $header = xs_get_style_header('', substr($str, 0, 10240)); - if($header === false) - { - xs_error($lang['xs_style_header_error_reason'] . $xs_header_error . '

' . $lang['xs_import_back']); - } - if($header['filesize'] != strlen($str)) - { - xs_error($lang['xs_style_header_error_incomplete2'] . '

' . $lang['xs_import_back']); - } - $f = @fopen(XS_TEMP_DIR . $dst, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $dst, $lang['xs_error_cannot_create_tmp']) . '

' . $lang['xs_import_back']); - } - fwrite($f, $str); - fclose($f); - xs_message($lang['Information'], str_replace('{URL}', append_sid('xs_import.'.$phpEx.'?importstyle=' . urlencode($dst) . $return), $lang['xs_import_uploaded2']) . '

' . $lang['xs_import_back']); -} - -// -// Copy from file -// -if(isset($HTTP_POST_VARS['action']) && $HTTP_POST_VARS['action'] === 'copy' && !defined('DEMO_MODE')) -{ - $src = stripslashes($HTTP_POST_VARS['source']); - $dst = generate_style_name('copy'); - $str = @implode('', @file($src)); - if(empty($str)) - { - xs_error(str_replace('{URL}', $src, $lang['xs_import_nodownload2']) . '

' . $lang['xs_import_back']); - } - if(substr($str, 0, strlen(STYLE_HEADER_START)) !== STYLE_HEADER_START) - { - xs_error($lang['xs_style_header_error_invalid2'] . '

' . $lang['xs_import_back']); - } - $header = xs_get_style_header('', substr($str, 0, 10240)); - if($header === false) - { - xs_error($lang['xs_style_header_error_reason'] . $xs_header_error . '

' . $lang['xs_import_back']); - } - if($header['filesize'] != strlen($str)) - { - xs_error($lang['xs_style_header_error_incomplete2'] . '

' . $lang['xs_import_back']); - } - $f = @fopen(XS_TEMP_DIR . $dst, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $dst, $lang['xs_error_cannot_create_tmp']) . $lang['xs_import_back']); - } - fwrite($f, $str); - fclose($f); - xs_message($lang['Information'], str_replace('{URL}', append_sid('xs_import.'.$phpEx.'?importstyle=' . urlencode($dst)), $lang['xs_import_uploaded3']) . '

' . $lang['xs_import_back']); -} - - -// -// Upload -// -if(isset($HTTP_POST_VARS['action']) && $HTTP_POST_VARS['action'] === 'upload' && !defined('DEMO_MODE')) -{ - if(empty($HTTP_POST_FILES['source']['tmp_name']) || !@file_exists($HTTP_POST_FILES['source']['tmp_name'])) - { - xs_error($lang['xs_import_nodownload3'] . '

' . $lang['xs_import_back']); - } - $src = $HTTP_POST_FILES['source']['tmp_name']; - $dst = generate_style_name('upload'); - $str = @implode('', @file($src)); - if(empty($str)) - { - xs_error(str_replace('{URL}', $src, $lang['xs_import_nodownload2']) . '

' . $lang['xs_import_back']); - } - if(substr($str, 0, strlen(STYLE_HEADER_START)) !== STYLE_HEADER_START) - { - xs_error($lang['xs_style_header_error_invalid2'] . '

' . $lang['xs_import_back']); - } - $header = xs_get_style_header('', substr($str, 0, 10240)); - if($header === false) - { - xs_error($lang['xs_style_header_error_reason'] . $xs_header_error . '

' . $lang['xs_import_back']); - } - if($header['filesize'] != strlen($str)) - { - xs_error($lang['xs_style_header_error_incomplete2'] . '

' . $lang['xs_import_back']); - } - $f = @fopen(XS_TEMP_DIR . $dst, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $dst, $lang['xs_error_cannot_create_tmp']) . '

' . $lang['xs_import_back']); - } - fwrite($f, $str); - fclose($f); - xs_error(str_replace('{URL}', append_sid('xs_import.'.$phpEx.'?importstyle=' . urlencode($dst)), $lang['xs_import_uploaded4']) . '

' . $lang['xs_import_back']); -} - - -// -// Show import page -// -if(!empty($HTTP_GET_VARS['importstyle'])) -{ - $file = xs_tpl_name($HTTP_GET_VARS['importstyle']); - $header = xs_get_style_header(XS_TEMP_DIR.$file); - if($header === false) - { - xs_error($lang['xs_style_header_error_reason'] . $xs_header_error . '

' . $lang['xs_import_back']); - } - if(@filesize(XS_TEMP_DIR.$file) != $header['filesize']) - { - xs_error($lang['xs_style_header_error_incomplete2'] . '

' . $lang['xs_import_back']); - } - $template->set_filenames(array('import' => XS_TPL_PATH . 'import2.tpl')); - $template->assign_vars(array( - 'FORM_ACTION' => append_sid('xs_import.'.$phpEx), - 'S_RETURN' => $return_url ? '' : '', - 'IMPORT_FILENAME' => htmlspecialchars($file), - 'STYLE_TEMPLATE' => htmlspecialchars($header['template']), - 'STYLE_FILENAME' => htmlspecialchars($file), - 'STYLE_COMMENT' => htmlspecialchars($header['comment']), - 'DATE' => create_date($board_config['default_dateformat'], $header['date'], $board_config['board_timezone']), - 'STYLE_SIZE' => $header['filesize'], - 'STYLE_NAME' => htmlspecialchars($header['styles'][0]), - 'TOTAL' => count($header['styles']), - 'L_XS_IMPORT_TPL' => str_replace('{TPL}', htmlspecialchars($header['template']), $lang['xs_import_tpl']) - )); - if(count($header['styles']) > 1) - { - $template->assign_block_vars('switch_select_style', array()); - for($i=0; $iassign_block_vars('switch_select_style.style', array( - 'NUM' => $i, - 'NAME' => htmlspecialchars($header['styles'][$i]), - )); - } - } - else - { - $template->assign_block_vars('switch_select_nostyle', array()); - } - $template->pparse('import'); - xs_exit(); -} - - -$template->set_filenames(array('body' => XS_TPL_PATH . 'import.tpl')); -// -// Get list of available styles -// -$dir = @opendir(XS_TEMP_DIR); -$files = array(); -if($dir) -{ - while(($file = readdir($dir)) !== false) - { - if(substr($file, strlen($file) - strlen(STYLE_EXTENSION)) === STYLE_EXTENSION) - { - $items = xs_get_style_header(XS_TEMP_DIR.$file); - if(is_array($items)) - { - $items['file'] = $file; - $items['file2'] = substr($file, 0, strlen($file) - strlen(STYLE_EXTENSION)); - if(@filesize(XS_TEMP_DIR.$file) != $items['filesize']) - { - $items['error'] = $lang['xs_import_incomplete_file']; - } - $files[] = $items; - } - else - { - $items = array( - 'filename' => XS_TEMP_DIR.$file, - 'filesize' => @filesize(XS_TEMP_DIR.$file), - 'date' => filemtime(XS_TEMP_DIR.$file), - 'file' => $file, - 'file2' => substr($file, 0, strlen($file) - strlen(STYLE_EXTENSION)), - 'error' => $lang['xs_import_invalid_file'], - 'template' => '-', - 'styles' => array('-'), - 'comment' => '', - 'offset' => 0 - ); - $files[] = $items; - } - } - } - closedir($dir); -} - -if(count($files)) -{ - - for($i=0; $iassign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'FILE' => htmlspecialchars($item['file']), - 'FILE2' => htmlspecialchars($item['file2']), - 'FILENAME' => htmlspecialchars($item['filename']), - 'TEMPLATE' => htmlspecialchars($item['template']), - 'DATE' => create_date($board_config['default_dateformat'], $item['date'], $board_config['board_timezone']), - 'COMMENT' => htmlspecialchars($item['comment']), - 'U_DELETE' => append_sid('xs_import.' . $phpEx . '?del=' . urlencode($item['file'])), - 'U_IMPORT' => append_sid('xs_import.' . $phpEx . '?importstyle=' . urlencode($item['file'])), - 'U_DOWNLOAD' => append_sid('xs_download.' . $phpEx), - 'U_LIST' => append_sid('xs_import.' . $phpEx . '?list=1&import=' . urlencode($item['file'])), - )); - if(empty($item['error'])) - { - for($j=0; $jassign_block_vars('styles.list', array( - 'STYLE' => $item['styles'][$j] - )); - } - $template->assign_block_vars('styles.valid', array()); - } - else - { - $template->assign_block_vars('styles.error', array('ERROR' => htmlspecialchars($item['error']))); - } - } -} -else -{ - $template->assign_block_vars('nostyles', array()); -} -$template->assign_vars(array( - 'U_SCRIPT' => append_sid('xs_import.'.$phpEx), - )); - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_include.php b/phpBB2/admin/xs_include.php deleted file mode 100644 index 1669160..0000000 --- a/phpBB2/admin/xs_include.php +++ /dev/null @@ -1,1264 +0,0 @@ - 0) - { - $module[$module_name][$lang['xs_config_shownav'][$i]] = 'xs_frameset.'.$phpEx.'?action=' . $xs_shownav_action[$i]; - } - } - // add menu for style configuration - foreach($board_config as $var => $value) - { - if(substr($var, 0, 9) === 'xs_style_') - { - $str = substr($var, 9); - $module['Template_Config'][$str] = 'xs_frameset.'.$phpEx.'?action=style_config&tpl='.urlencode($str); - } - } -} - - -if(!empty($setmodules)) -{ - if(@function_exists('jr_admin_get_module_list')) - { - $tmp_mod = $module; - global $module; - $module = $tmp_mod; - xs_admin_override(true); - } - return; -} - -// -// Global defines for eXtreme Styles mod administration panel -// -define('STYLE_HEADER_START', 'xs_style_01'); -define('STYLE_HEADER_END', ''); -define('STYLE_HEADER_VERSION', '1'); -define('STYLE_EXTENSION', '.style'); -define('TAR_HEADER_PACK', 'a100A8A8A8A12A12A8A1A100A6A2A32A32A8A8a155a12'); -define('TAR_HEADER_UNPACK', 'a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/a8checksum/a1typeflag/a100link/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor/a155prefix/a12extra'); -define('XS_MAX_ITEMS_PER_STYLE', 32); -define('XS_TEMP_DIR', '../cache/'); -define('XS_FTP_LOCAL', 'no_ftp'); -define('XS_UPDATE_STYLE', 1); -define('XS_UPDATE_MOD', 2); -define('XS_UPDATE_PHPBB', 3); -define('XS_TPL_PATH', '../../xs_mod/tpl/'); -define('XS_BACKUP_PREFIX', 'backup.'); -define('XS_BACKUP_EXT', '.backup'); -define('XS_MAX_TIMEOUT', 600); // maximum timeout for downloads/import/installation - -$xs_row_class = array('row1', 'row2'); - -$template_dir = 'templates/'; - -$template->assign_vars(array( - 'XS_PATH' => '../xs_mod/', - 'XS_UL' => '', - 'XS_UL2' => '
', - 'XS_LI' => '', - 'XS_LI2' => '', - 'S_HIDDEN_FIELDS' => '', - )); - -if(!defined('NO_XS_HEADER')) -{ - $template->set_filenames(array( - 'xs_header' => XS_TPL_PATH . 'xs_header.tpl', - 'xs_footer' => XS_TPL_PATH . 'xs_footer.tpl', - )); - $template->preparse = 'xs_header'; - $template->postparse = 'xs_footer'; - $template->assign_block_vars('nav_left',array('ITEM' => '' . $lang['xs_menu'] . '')); -} - - -header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); - -// -// Check compatibility with mods -// -if(isset($config->data) && $config->data === $board_config && isset($config->data['mod_cat_hierarchy'])) -{ - define('XS_MODS_CATEGORY_HIERARCHY210', true); -} -elseif(defined('CACHE_THEMES') && @function_exists('cache_themes')) -{ - define('XS_MODS_CATEGORY_HIERARCHY', true); -} -if(isset($theme['theme_public'])) -{ - define('XS_MODS_ADMIN_TEMPLATES', true); -} - - -// -// Get FTP configuration -// -function get_ftp_config($action, $post = array(), $allow_local = false, $show_error = '') -{ - global $template, $board_config, $db, $lang, $HTTP_POST_VARS, $HTTP_SERVER_VARS; - $board_config['xs_ftp_local'] = false; - // check if ftp can be used - if(!@function_exists('ftp_connect')) - { - if($allow_local && xs_dir_writable('../templates/')) - { - $board_config['xs_ftp_local'] = true; - return true; - } - xs_error($lang['xs_ftp_error_fatal']); - } - // check if we have configuration - if(!empty($HTTP_POST_VARS['get_ftp_config'])) - { - $vars = array('xs_ftp_host', 'xs_ftp_login', 'xs_ftp_path'); - for($i=0; $isql_query($sql); - } - } - $board_config['xs_ftp_pass'] = stripslashes($HTTP_POST_VARS['xs_ftp_pass']); - $board_config['xs_ftp_local'] = empty($HTTP_POST_VARS['xs_ftp_local']) ? false : true; - // recache config table - if(defined('XS_MODS_CATEGORY_HIERARCHY210')) - { - global $config; - if ( !empty($config) ) - { - $config->read(true); - } - } - return true; - } - // check ftp configuration - $xs_ftp_host = $board_config['xs_ftp_host']; - if(empty($xs_ftp_host)) - { - $str = $HTTP_SERVER_VARS['HTTP_HOST']; - $template->assign_vars(array( - 'HOST_GUESS' => str_replace(array('{HOST}', '{CLICK}'), array($str, 'document.ftp.xs_ftp_host.value=\''.$str.'\''), $lang['xs_ftp_host_guess']) - )); - } - $dir = getcwd(); - $xs_ftp_login = $board_config['xs_ftp_login']; - if(empty($xs_ftp_login)) - { - if(substr($dir, 0, 6) === '/home/') - { - $str = substr($dir, 6); - $pos = strpos($str, '/'); - if($pos) - { - $str = substr($str, 0, $pos); - $template->assign_vars(array( - 'LOGIN_GUESS' => str_replace(array('{LOGIN}', '{CLICK}'), array($str, 'document.ftp.xs_ftp_login.value=\''.$str.'\''), $lang['xs_ftp_login_guess']) - )); - } - } - } - $xs_ftp_path = $board_config['xs_ftp_path']; - if(empty($xs_ftp_path)) - { - if(substr($dir, 0, 6) === '/home/'); - $str = substr($dir, 6); - $pos = strpos($str, '/'); - if($pos) - { - $str = substr($str, $pos + 1); - $pos = strrpos($str, 'admin'); - if($pos) - { - $str = substr($str, 0, $pos-1); - $template->assign_vars(array( - 'PATH_GUESS' => str_replace(array('{PATH}', '{CLICK}'), array($str, 'document.ftp.xs_ftp_path.value=\''.$str.'\''), $lang['xs_ftp_path_guess']) - )); - } - } - } - if($allow_local && xs_dir_writable('../templates/')) - { - $template->assign_block_vars('xs_ftp_local', array()); - } - else - { - $template->assign_block_vars('xs_ftp_nolocal', array()); - } - $str = ''; - foreach($post as $var => $value) - { - $str .= ''; - } - $template->assign_vars(array( - 'FORM_ACTION' => $action, - 'S_EXTRA_FIELDS' => $str, - 'XS_FTP_HOST' => $xs_ftp_host, - 'XS_FTP_LOGIN' => $xs_ftp_login, - 'XS_FTP_PATH' => $xs_ftp_path, - )); - if($show_error) - { - $template->assign_block_vars('error', array('MSG' => $show_error)); - } - $template->set_filenames(array('config' => XS_TPL_PATH . 'ftp.tpl')); - $template->pparse('config'); - return false; -} - -// connect ftp -function xs_ftp_connect($action, $post = array(), $allow_local = false) -{ - global $ftp, $board_config, $HTTP_POST_VARS, $phpEx, $lang, $template; - $HTTP_POST_VARS['get_ftp_config'] = ''; - if($allow_local && !empty($board_config['xs_ftp_local'])) - { - $ftp = XS_FTP_LOCAL; - return true; - } - $ftp = @ftp_connect($board_config['xs_ftp_host']); - if(!$ftp) - { - get_ftp_config($action, $post, $allow_local, str_replace('{HOST}', $board_config['xs_ftp_host'], $lang['xs_ftp_error_connect'])); - } - $res = @ftp_login($ftp, $board_config['xs_ftp_login'], $board_config['xs_ftp_pass']); - if(!$res) - { - get_ftp_config($action, $post, $allow_local, $lang['xs_ftp_error_login']); - } - $res = @ftp_chdir($ftp, $board_config['xs_ftp_path']); - if(!$res) - { - get_ftp_config($action, $post, $allow_local, str_replace('{DIR}', $board_config['xs_ftp_path'], $lang['xs_ftp_error_chdir'])); - } - // check current directory - $current_dir = @ftp_pwd($ftp); - $list = @ftp_nlist($ftp, $current_dir); - for($i=0; $i $tpl, - 'styles' => $items, - 'date' => @filemtime($filename), - 'comment' => $comment, - 'offset' => $header_size, - 'filename' => $filename, - 'filesize' => $filesize, - ); -} - - -// check if cache is writable -function xs_check_cache($filename) -{ - // check if filename is valid - global $str, $template, $lang; - if(substr($filename, 0, strlen($template->cachedir)) !== $template->cachedir) - { - $str .= $lang['xs_check_filename'] . "
\n"; - return false; - } - else - { - // try to open file - $file = @fopen($filename, 'w'); - if(!$file) - { - $str .= sprintf($lang['xs_check_openfile1'], $filename) . "
\n"; - // try to create directories - $dir = substr($filename, strlen($template->cachedir), strlen($filename)); - $dirs = explode('/', $dir); - $path = $template->cachedir; - @umask(0); - if(!@is_dir($path)) - { - $str .= sprintf($lang['xs_check_nodir'], $path) . "
\n"; - if(!@mkdir($path)) - { - $str .= sprintf($lang['xs_check_nodir2'], $path) . "
\n"; - return false; - } - else - { - $str .= sprintf($lang['xs_check_createddir'], $path) . "
\n"; - @chmod($path, 0777); - } - } - else - { - $str .= sprintf($lang['xs_check_dir'] , $path) . "
\n"; - } - if(count($dirs) > 0) - for($i=0; $i0) - { - $path .= '/'; - } - $path .= $dirs[$i]; - if(!@is_dir($path)) - { - $str .= sprintf($lang['xs_check_nodir'], $path) . "
\n"; - if(!@mkdir($path)) - { - $str .= sprintf($lang['xs_check_nodir2'], $path) . "
\n"; - return false; - } - else - { - $str .= sprintf($lang['xs_check_createddir'], $path) . "
\n"; - @chmod($path, 0777); - } - } - else - { - $str .= sprintf($lang['xs_check_dir'] , $path) . "
\n"; - } - } - // try to open file again after directories were created - $file = @fopen($filename, 'w'); - } - if(!$file) - { - $str .= sprintf($lang['xs_check_openfile2'], $filename) . "
\n"; - return false; - } - $str .= sprintf($lang['xs_check_ok'], $filename) . "
\n"; - fputs($file, ' '); - fclose($file); - @chmod($filename, 0777); - return true; - } -} - -// run ftp commands -function ftp_myexec($list) -{ - global $ftp, $ftp_error, $ftp_log, $ftp_host, $ftp_login, $ftp_pass, $lang; - $ftp_error = ''; - $ftp_log = array(); - if(empty($ftp)) - { - // checking ftp extensions - if(!@function_exists('ftp_connect')) - { - $ftp_log[] = $ftp_error = $lang['xs_ftp_log_disabled']; - return false; - } - // connect to server - $ftp_log[] = str_replace('{HOST}', "{$ftp_login}:*@{$ftp_host}", $lang['xs_ftp_log_connecting']); - $ftp = @ftp_connect($ftp_host); - if(!$ftp) - { - $ftp_log[] = $ftp_error = str_replace('{HOST}', $ftp_host, $lang['xs_ftp_log_noconnect']); - return false; - } - $ftp_log[] = $lang['xs_ftp_log_connected']; - // logging in - $logged_in = @ftp_login($ftp, $ftp_login, $ftp_pass); - if(!$logged_in) - { - $ftp_log[] = $ftp_error = str_replace('{USER}', $ftp_login, $lang['xs_ftp_log_nologin']); - @ftp_close($ftp); - return false; - } - $ftp_log[] = $lang['xs_ftp_log_loggedin']; - } - if(!ftp_myexec2($ftp, $list)) - { - @ftp_close($ftp); - return false; - } - @ftp_close($ftp); - $ftp_log[] = $lang['xs_ftp_log_end']; - return true; -} - -// remove all files via ftp -function ftp_remove_all($ftp) -{ - // get current directory - $root_dir = @ftp_pwd($ftp); - // get list of files - $files = @ftp_nlist($ftp, $root_dir); - // remove files/directories - for($i=0; $isql_query($sql)) - { - return false; - } - $row = $db->sql_fetchrow($result); - if(!empty($row['themes_id'])) - { - return false; - } - $vars = array(); - $values = array(); - foreach($data as $var => $value) - { - $vars[] = xs_sql($var); - $values[] = xs_sql(stripslashes($value)); - } - $sql = "INSERT INTO " . THEMES_TABLE . " (" . implode(', ', $vars) . ") VALUES ('" . implode("', '", $values) . "')"; - if(!$result = $db->sql_query($sql)) - { - return false; - } - // recache themes table - if(defined('XS_MODS_CATEGORY_HIERARCHY210')) - { - global $themes; - if ( empty($themes) ) - { - $themes = new themes(); - } - if ( !empty($themes) ) - { - $themes->read(true); - } - } - // add configuration - global $template; - if($template->add_config($tpl)) - { - define('REFRESH_NAVBAR', true); - } - return true; -} - -// generate theme_info.cfg for template -function xs_generate_themeinfo($theme_rowset, $export, $exportas, $total) -{ - global $HTTP_POST_VARS; - $vars = array('template_name', 'style_name', 'head_stylesheet', 'body_background', 'body_bgcolor', 'body_text', 'body_link', 'body_vlink', 'body_alink', 'body_hlink', 'tr_color1', 'tr_color2', 'tr_color3', 'tr_class1', 'tr_class2', 'tr_class3', 'th_color1', 'th_color2', 'th_color3', 'th_class1', 'th_class2', 'th_class3', 'td_color1', 'td_color2', 'td_color3', 'td_class1', 'td_class2', 'td_class3', 'fontface1', 'fontface2', 'fontface3', 'fontsize1', 'fontsize2', 'fontsize3', 'fontcolor1', 'fontcolor2', 'fontcolor3', 'span_class1', 'span_class2', 'span_class3', 'img_size_poll', 'img_size_privmsg'); - $theme_data = ''; // Done this to prevent highlighting editors getting confused! - return $theme_data; -} - -// Checks if directory is writable -function xs_dir_writable($dir) -{ - $filename = 'tmp_' . time(); - $f = @fopen($dir . $filename, 'wb'); - if($f) - { - fclose($f); - @unlink($dir . $filename); - return true; - } - return false; -} - -// Write to file. Create directory if necessary -function xs_write_file($filename, $data) -{ - $f = @fopen($filename, 'wb'); - if(!$f) - { - // try to create directories - $pos = strrpos($filename, '/'); - if(!$pos) - { - return false; - } - $dir = substr($filename, 0, $pos); - xs_create_dir($dir); - $f = @fopen($filename, 'wb'); - if(!$f) - { - return false; - } - } - fwrite($f, $data); - fclose($f); - @chmod($filename, 0777); - return true; -} - -// Create local directory -function xs_create_dir($dir) -{ - if(!$dir) - { - return false; - } - // remove trailing / - if(substr($dir, strlen($dir) - 1) === '/') - { - $dir = substr($dir, 0, strlen($dir) - 1); - if(!$dir) - { - return false; - } - } - if($dir === '.' || $dir === '..') - { - return false; - } - $res = @mkdir($dir, 0777); - if($res) - { - return true; - } - // try to create previous directory - $pos = strrpos($dir, '/'); - if(!$pos) - { - return false; - } - $dir1 = substr($dir, 0, $pos); - $dir2 = substr($dir, $pos+1); - if($dir2 === '.' || $dir2 === '..') - { - return false; - } - if(!xs_create_dir($dir1)) - { - return false; - } - $res = @mkdir($dir2, 0777); - return $res ? true : false; -} - -// replacement for in_array() (because of compatibility problems) -function xs_in_array($needle, $haystack) -{ - for($i=0; $iset_filenames(array('errormsg' => XS_TPL_PATH . 'message.tpl')); - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Error'], - 'MESSAGE_TEXT' => $error - )); - $template->pparse('errormsg'); - xs_exit(); -} - -// show message and exit -function xs_message($title, $message) -{ - global $template; - $template->set_filenames(array('msg' => XS_TPL_PATH . 'message.tpl')); - $template->assign_vars(array( - 'MESSAGE_TITLE' => $title, - 'MESSAGE_TEXT' => $message - )); - $template->pparse('msg'); - xs_exit(); -} - -// pack style to .style -function pack_style($name, $newname, $themes, $comment) -{ - /* - header format (v0.01): - - header - - header size (4 bytes) - - file size (4 bytes) - - number of entries (1 byte) - - entries sizes (number_of_entries bytes) - - entries - - footer - - gzcompressed tar of style (no crc check in tar) - - entries: - - template name - - comment - - style names - */ - global $phpbb_root_path, $template_dir; - $data = gzcompress(pack_dir($phpbb_root_path . $template_dir . $name, '', $name, $newname)); - $items_data = chr(strlen($newname)) . chr(strlen($comment)); - $items_str = $newname . $comment; - for($i=0; $i $base_dir, - 'mode' => '40777', - 'uid' => '0', - 'gid' => '0', - 'size' => decoct(0), - 'mtime' => decoct(@filemtime($dir)), - 'checksum' => '0', // ignore checksum - 'typeflag' => '5', - 'link' => '', - 'magic' => "ustar", - 'version' => '', - 'uname' => 'user', - 'gname' => 'group', - 'devmajor' => '', - 'devminor' => '', - 'prefix' => '', - 'extra' => '' - ); - $header_str = pack(TAR_HEADER_PACK, $header['filename'], $header['mode'], $header['uid'], $header['gid'], $header['size'], $header['mtime'], $header['checksum'], $header['typeflag'], $header['linkname'], $header['magic'], $header['version'], $header['uname'], $header['gname'], $header['devmajor'], $header['devminor'], $header['prefix'], $header['extra']); - $file_str = ''; - $extra_str = ''; - $str .= $header_str . $file_str . $extra_str; - // add all files - for($i=0; $i'; - if($header['filename'] === './overall_header.tpl') - { - echo 'overall_header.tpl:

', nl2br(htmlspecialchars($file_str)), '


'; - }*/ - $size = strlen($file_str); - $header['size'] = decoct($size); - $header['typeflag'] = '0'; - $header['mode'] = '100666'; - $full_size = floor(($size + 511) / 512) * 512; - $extra_str = $full_size > $size ? str_repeat("\0", $full_size - $size) : ''; - $header_str = pack(TAR_HEADER_PACK, $header['filename'], $header['mode'], $header['uid'], $header['gid'], $header['size'], $header['mtime'], $header['checksum'], $header['typeflag'], $header['linkname'], $header['magic'], $header['version'], $header['uname'], $header['gname'], $header['devmajor'], $header['devminor'], $header['prefix'], $header['extra']); - $str .= $header_str . $file_str . $extra_str; - } - // add all directories - for($i=0; $isql_query($sql); -} - -// send file -function xs_download_file($filename, $content, $content_type = '') -{ - if(empty($content_type)) - { - $content_type = 'application/unknown'; - } - header('Content-Type: ' . $content_type); - header('Content-Length: ' . strlen($content)); - header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT'); - if($filename) - { - header('Content-Disposition: inline; filename="' . $filename . '"'); - } - header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); - header('Pragma: public'); - echo $content; -} - -// strip slashes for sql -function xs_sql($sql, $strip = false) -{ - if($strip) - { - $sql = stripslashes($sql); - } - return str_replace('\\\'', '\'\'', addslashes($sql)); -} - -// clean template name -function xs_tpl_name($name) -{ - return str_replace(array('\\', '/', "'", '"'), array('','','',''), $name); -} - -// close database and maybe do some other stuff -function xs_exit() -{ - global $db; - if(isset($db)) - { - $db->sql_close(); - } - exit; -} - -// check directory name/filename -function xs_fix_dir($dir) -{ - $dir = str_replace('\\', '/', $dir); - $dir = str_replace('../', './', $dir); - while(strlen($dir > 1) && substr($dir, strlen($dir) - 2) === '..') - { - $dir = substr($dir, 0, strlen($dir) - 1); - } - return $dir; -} - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_include_import.php b/phpBB2/admin/xs_include_import.php deleted file mode 100644 index 16ea3a1..0000000 --- a/phpBB2/admin/xs_include_import.php +++ /dev/null @@ -1,121 +0,0 @@ - 'upload', - 'local' => $items[$i]['tmp'], - 'remote' => $items[$i]['file'] - ); - } - } - return $arr; -} - -function generate_actions_dirs($dir = '') -{ - global $dirs; - $arr = array(); - if($dir && substr($dir, strlen($dir) - 1) !== '/') - { - $dir .= '/'; - } - if($dir) - { - // remove trailing / - $pos = strrpos($dir, '/'); - $str = $pos === strlen($dir) - 1 ? substr($dir, 0, $pos) : $dir; - // get last directory name - $pos = strrpos($str, '/'); - $str = $pos ? substr($str, $pos + 1) : $str; - $arr[] = array( - 'command' => 'mkdir', - 'dir' => $str, - 'ignore' => true - ); - $arr[] = array( - 'command' => 'chdir', - 'dir' => $str - ); - } - $arr[] = array( - 'command' => 'exec', - 'list' => generate_actions_files($dir) - ); - // create subdirectories - $len = strlen($dir); - for($i=0; $i 'exec', - 'list' => generate_actions_dirs($dirs[$i]) - ); - } - } - } - return $arr; -} - -function generate_style_name($str) -{ - $str = 'style_' . $str . '_%02d' . STYLE_EXTENSION; - $num = 0; - $found = true; - while($found) - { - $filename = sprintf($str, $num); - $found = @file_exists(XS_TEMP_DIR.$filename); - $num ++; - } - return $filename; -} - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_include_import2.php b/phpBB2/admin/xs_include_import2.php deleted file mode 100644 index 137405c..0000000 --- a/phpBB2/admin/xs_include_import2.php +++ /dev/null @@ -1,522 +0,0 @@ -
' . $lang['xs_import_back']); -} -if($header['filesize'] != filesize($file)) -{ - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_style_header_error_incomplete'] . '

' . $lang['xs_import_back']); -} -$f = @fopen($file, 'rb'); -if(!$f) -{ - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_error_cannot_open'] . '

' . $lang['xs_import_back']); -} -if($write_local) -{ - $write_local_dir .= $header['template'] . '/'; -} -fseek($f, $header['offset'], 0); -$str = fread($f, filesize($file) - $header['offset']); -fclose($f); -$str = @gzuncompress($str); -if($str === false || !strlen($str)) -{ - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_error_decompress_style'] . '

' . $lang['xs_import_back']); -} -// -// unpack tar file -// -$pos = 0; -$tmp_name = XS_TEMP_DIR . 'file_' . $filename . '_%02d.tmp'; -$tmp_count = 0; -$files = array(); // complete list of files -$list_data = array(); // result for list -$dirs = array(); // complete list of directories -$items = array(); // data -while($pos < strlen($str)) -{ - $data = unpack(TAR_HEADER_UNPACK, substr($str, $pos, 512)); - $pos += 512; - $data['filename'] = trim($data['prefix']) . trim($data['filename']); - if(substr($data['filename'], 0, 2) === './') - { - $data['filename'] = substr($data['filename'], 2); - } - if($write_local) - { - $save_filename = $write_local_dir . $data['filename']; - } - else - { - $pos1 = strrpos($data['filename'], '/'); - if($pos1) - { - $data['dir'] = substr($data['filename'], 0, $pos1); - $data['file'] = substr($data['filename'], $pos1 + 1); - } - else - { - $data['dir'] = ''; - $data['file'] = $data['filename']; - } - } - $data['size'] = octdec(trim($data['size'])); - $data['mtime'] = octdec(trim($data['mtime'])); - $data['typeflag'] = octdec(trim($data['typeflag'])); - if($data['typeflag'] === '5') - { - $data['size'] = 0; - if($write_local) - { - xs_create_dir($save_filename); - } - } - $data['offset'] = $pos; - $contents = $data['size'] > 0 ? substr($str, $pos, $data['size']) : ''; - $data['tmp'] = ''; - // adding to list - $is_file = true; - if(intval($data['typeflag']) == 5) - { - $is_file = false; - if($data['filename']) - { - $dirs[] = $data['filename']; - } - } - else - { - if($data['filename']) - { - if(!$list_only) - { - if($write_local) - { - $res = xs_write_file($save_filename, $contents); - if(!$res) - { - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error(str_replace('{FILE}', $save_filename, $lang['xs_error_cannot_create_file']) . '

' . $lang['xs_import_back']); - } - } - else - { - // write to temporary file - $tmp_count ++; - $data['tmp'] = sprintf($tmp_name, $tmp_count); - $f = @fopen($data['tmp'], 'wb'); - if(!$f) - { - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error(str_replace('{FILE}', $data['tmp'], $lang['xs_error_cannot_create_tmp']) . '

' . $lang['xs_import_back']); - } - fwrite($f, $contents); - fclose($f); - } - } - elseif(!empty($get_file) && $get_file === $data['filename']) - { - // show contents of file - $f = $data['filename']; - $ext = strtolower(substr($f, strlen($f) - 4)); - if(empty($HTTP_GET_VARS['get_content']) && xs_in_array($ext, $text_types)) - { - // show as text - $str = '
' . $lang['xs_import_list_contents'] . $f . ' [' . $lang['xs_import_download_lc'] . ']

'; - $str .= ''; - $str .= '
'; - xs_message($lang['Information'], $str); - } - else - { - $do_download = false; - $content_type = ''; - if(empty($HTTP_GET_VARS['get_content'])) - { - if($ext === '.gif') - { - $content_type = 'image/gif'; - } - elseif($ext === '.jpg' || $ext === '.jpe' || $ext === 'jpeg') - { - $content_type = 'image/jpeg'; - } - elseif($ext === '.png') - { - $content_type = 'image/png'; - } - else - { - $do_download = true; - } - } - else - { - $do_download = true; - } - xs_download_file($do_download ? basename($f) : '', $contents, $content_type); - xs_exit(); - } - } - else - { - $list_data[$data['filename']] = $data; - } - $files[] = $data['filename']; - } - } - if(empty($data['filename']) && $is_file) - { - $pos = strlen($str); - } - else - { - $pos += floor(($data['size'] + 511) / 512) * 512; - if($is_file) - { - $items[] = $data; - } - } -} -if($list_only) -{ - // show list of files. used for debug. - $str = '
'; - // main data - $str .= $lang['xs_import_list_filename'] . $header['filename'] . '
'; - $str .= $lang['xs_import_list_template'] . $header['template'] . '
'; - $str .= $lang['xs_import_list_comment'] . $header['comment'] . '
'; - $str .= $lang['xs_import_list_styles'] . implode(', ', $header['styles']) . '
'; - ksort($list_data); - $str .= '
' . str_replace('{NUM}', count($list_data), $lang['xs_import_list_files']) . '
'; - $str .= ''; - foreach($list_data as $var => $value) - { - $str .= ''; - } - $str .= '
' . htmlspecialchars($value['filename']) . ''; - if($value['size'] > 0) - { - $ext = strtolower(substr($var, strlen($var) - 4)); - if(xs_in_array($ext, $text_types) || xs_in_array($ext, $img_types)) - { - $str .= '[' . $lang['xs_import_view_lc'] . '] '; - } - $str .= '[' . $lang['xs_import_download_lc'] . '] '; - } - $str .= str_replace('{NUM}', $value['size'], $lang['xs_import_file_size']) . '
'; - $str .= '
'; - xs_message($lang['Information'], $str); -} -$str = ''; -if(!$write_local) -{ - // - // Generate actions list - // - $actions = array(); - // chdir to template directory - $actions[] = array( - 'command' => 'chdir', - 'dir' => 'templates' - ); - // create directory with template name - $actions[] = array( - 'command' => 'mkdir', - 'dir' => $header['template'], - 'ignore' => true - ); - // change directory - $actions[] = array( - 'command' => 'chdir', - 'dir' => $header['template'] - ); - // create all directories and upload all files - $actions[] = array( - 'command' => 'exec', - 'list' => generate_actions_dirs() - ); - $ftp_log = array(); - $ftp_error = ''; - $res = ftp_myexec($actions); -/* echo ""; */ - // remove temporary files - for($i=0; $i
' . $lang['xs_import_back']); - } -} - -// -// Check if we need to install style -// -$total = intval($HTTP_POST_VARS['total']); -$default = isset($HTTP_POST_VARS['import_default']) && strlen($HTTP_POST_VARS['import_default']) ? intval($HTTP_POST_VARS['import_default']) : -1; -$install = array(); -$default_name = ''; -for($i=0; $i<$total; $i++) -{ - $tmp = empty($HTTP_POST_VARS['import_install_'.$i]) ? 0 : 1; - if($tmp) - { - $set_default = $default == $i ? 1 : 0; - $tmp_name = $header['styles'][$i]; - if($tmp_name) - { - $install[] = $tmp_name; - if($set_default) - { - $default_name = $tmp_name; - } - } - } -} -if(!count($install)) -{ - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_message($lang['Information'], $lang['xs_import_uploaded'] . '

' . $lang['xs_import_back']); -} -// -// Get list of installed styles -// -$tpl = $header['template']; -$sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " WHERE template_name='" . xs_sql($tpl) . "'"; -if(!$result = $db->sql_query($sql)) -{ - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_import_notinstall'] . '

' . $lang['xs_import_back']); -} -$style_rowset = $db->sql_fetchrowset($result); -// run theme_info.cfg -$data = xs_get_themeinfo($tpl); -if(!@count($data)) -{ - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_import_notinstall2'] . '

' . $lang['xs_import_back']); -} -// install styles -$default_id = 0; -for($i=0; $i
' . $lang['xs_import_back']); - } - if($installed) - { - // update - $sql = ''; - foreach($style_data as $var => $value) - { - if($sql) - { - $sql .= ', '; - } - $sql .= xs_sql($var) . " = '" . xs_sql($value) . "'"; - } - $sql = "UPDATE " . THEMES_TABLE . " SET " . $sql . " WHERE themes_id = '{$installed}'"; - } - else - { - // install - $sql = "SELECT MAX(themes_id) AS total FROM " . THEMES_TABLE; - if ( !($result = $db->sql_query($sql)) ) - { - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_import_notinstall4'] . '

' . $lang['xs_import_back']); - } - if ( !($row = $db->sql_fetchrow($result)) ) - { - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_import_notinstall4'] . '

' . $lang['xs_import_back']); - } - $installed = $row['total'] + 1; - $style_data['themes_id'] = $installed; - $sql1 = $sql2 = ''; - foreach($style_data as $var => $value) - { - if($sql1) - { - $sql1 .= ', '; - $sql2 .= ', '; - } - $sql1 .= xs_sql($var); - $sql2 .= "'" . xs_sql($value) . "'"; - } - $sql = "INSERT INTO " . THEMES_TABLE . " (" . $sql1 . ") VALUES (" . $sql2 . ")"; - } - if ( !($result = $db->sql_query($sql)) ) - { - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_import_notinstall5'] . '

' . $lang['xs_import_back']); - } - if($default_name === $style_name) - { - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value='{$installed}' WHERE config_name='default_style'"; - $board_config['default_style'] = $installed; - $db->sql_query($sql); - } -} -if(defined('XS_CLONING')) -{ - @unlink($tmp_filename); -} -if(count($install) && defined('XS_MODS_CATEGORY_HIERARCHY210')) -{ - // recache themes table - if ( empty($themes) ) - { - $themes = new themes(); - } - if ( !empty($themes) ) - { - $themes->read(true); - } -} -if(count($install) && defined('XS_MODS_CATEGORY_HIERARCHY')) -{ - cache_themes(); -} -xs_message($lang['Information'], $lang['xs_import_installed'] . '

' . $lang['xs_import_back']); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_index.php b/phpBB2/admin/xs_index.php deleted file mode 100644 index 3b38a9b..0000000 --- a/phpBB2/admin/xs_index.php +++ /dev/null @@ -1,67 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -if(isset($HTTP_GET_VARS['showwarning'])) -{ - $msg = str_replace('{URL}', append_sid('xs_index.'.$phpEx), $lang['xs_main_comment3']); - xs_message($lang['Information'], $msg); -} - -$template->assign_vars(array( - 'U_CONFIG' => append_sid('xs_config.'.$phpEx), - 'U_DEFAULT_STYLE' => append_sid('xs_styles.'.$phpEx), - 'U_MANAGE_CACHE' => append_sid('xs_cache.'.$phpEx), - 'U_IMPORT_STYLES' => append_sid('xs_import.'.$phpEx), - 'U_EXPORT_STYLES' => append_sid('xs_export.'.$phpEx), - 'U_CLONE_STYLE' => append_sid('xs_clone.'.$phpEx), - 'U_DOWNLOAD_STYLES' => append_sid('xs_download.'.$phpEx), - 'U_INSTALL_STYLES' => append_sid('xs_install.'.$phpEx), - 'U_UNINSTALL_STYLES' => append_sid('xs_uninstall.'.$phpEx), - 'U_EDIT_STYLES' => append_sid('xs_edit.'.$phpEx), - 'U_EDIT_STYLES_DATA' => append_sid('xs_edit_data.'.$phpEx), - 'U_EXPORT_DATA' => append_sid('xs_export_data.'.$phpEx), - 'U_UPDATES' => append_sid('xs_update.'.$phpEx), - )); - -$template->set_filenames(array('body' => XS_TPL_PATH . 'index.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_install.php b/phpBB2/admin/xs_install.php deleted file mode 100644 index 45dc976..0000000 --- a/phpBB2/admin/xs_install.php +++ /dev/null @@ -1,179 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_install_styles'] . '')); - -$lang['xs_install_back'] = str_replace('{URL}', append_sid('xs_install.'.$phpEx), $lang['xs_install_back']); -$lang['xs_goto_default'] = str_replace('{URL}', append_sid('xs_styles.'.$phpEx), $lang['xs_goto_default']); - -// remove timeout. useful for forum with 100+ styles -@set_time_limit(XS_MAX_TIMEOUT); - -// install style -if(!empty($HTTP_GET_VARS['style']) && !defined('DEMO_MODE')) -{ - $style = stripslashes($HTTP_GET_VARS['style']); - $num = intval($HTTP_GET_VARS['num']); - $res = xs_install_style($style, $num); - if(defined('REFRESH_NAVBAR')) - { - $template->assign_block_vars('left_refresh', array( - 'ACTION' => append_sid('index.' . $phpEx . '?pane=left') - )); - } - if($res) - { - if(defined('XS_MODS_CATEGORY_HIERARCHY')) - { - cache_themes(); - } - xs_message($lang['Information'], $lang['xs_install_installed'] . '

' . $lang['xs_install_back'] . '

' . $lang['xs_goto_default']); - } - xs_error($lang['xs_install_error'] . '

' . $lang['xs_install_back']); -} - -// install styles -if(!empty($HTTP_POST_VARS['total']) && !defined('DEMO_MODE')) -{ - $tpl = array(); - $num = array(); - $total = intval($HTTP_POST_VARS['total']); - for($i=0; $i<$total; $i++) - { - if(!empty($HTTP_POST_VARS['install_'.$i])) - { - $tpl[] = stripslashes($HTTP_POST_VARS['install_'.$i.'_style']); - $num[] = intval($HTTP_POST_VARS['install_'.$i.'_num']); - } - } - if(count($tpl)) - { - for($i=0; $iassign_block_vars('left_refresh', array( - 'ACTION' => append_sid('index.' . $phpEx . '?pane=left') - )); - } - if(defined('XS_MODS_CATEGORY_HIERARCHY')) - { - cache_themes(); - } - xs_message($lang['Information'], $lang['xs_install_installed'] . '

' . $lang['xs_install_back'] . '

' . $lang['xs_goto_default']); - } -} - - -// get all installed styles -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY template_name'; -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -// find all styles to install -$res = @opendir('../templates/'); -$styles = array(); -while(($file = readdir($res)) !== false) -{ - if($file !== '.' && $file !== '..' && @file_exists('../templates/'.$file.'/theme_info.cfg') && @file_exists('../templates/'.$file.'/'.$file.'.cfg')) - { - $arr = xs_get_themeinfo($file); - for($i=0; $i
' . $lang['xs_goto_default']); -} - -ksort($styles); - -$j = 0; -foreach($styles as $var => $value) -{ - $row_class = $xs_row_class[$j % 2]; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'STYLE' => htmlspecialchars($value['template_name']), - 'THEME' => htmlspecialchars($value['style_name']), - 'U_INSTALL' => append_sid('xs_install.'.$phpEx.'?style='.urlencode($value['template_name']).'&num='.$value['num']), - 'CB_NAME' => 'install_'.$j, - 'NUM' => $value['num'], - ) - ); - $j++; -} - -$template->assign_vars(array( - 'U_INSTALL' => append_sid('xs_install.'.$phpEx), - 'TOTAL' => count($styles) - )); - -$template->set_filenames(array('body' => XS_TPL_PATH . 'install.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_main.cfg b/phpBB2/admin/xs_main.cfg deleted file mode 100644 index df9ea16..0000000 --- a/phpBB2/admin/xs_main.cfg +++ /dev/null @@ -1,36 +0,0 @@ -xs_versiontxt; -$update['eXtreme Styles']['update_item'] = 'xs'; - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_style_config.php b/phpBB2/admin/xs_style_config.php deleted file mode 100644 index ad1215f..0000000 --- a/phpBB2/admin/xs_style_config.php +++ /dev/null @@ -1,189 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$tpl = isset($HTTP_POST_VARS['tpl']) ? $HTTP_POST_VARS['tpl'] : (isset($HTTP_GET_VARS['tpl']) ? $HTTP_GET_VARS['tpl'] : ''); -$filename = $phpbb_root_path . 'templates/' . $tpl . '/xs_config.cfg'; - -if(empty($tpl)) -{ - xs_error($lang['xs_invalid_style_name']); -} -if(!@file_exists($filename)) -{ - // remove from config - $config_name = 'xs_style_' . $tpl; - $sql = "DELETE FROM " . CONFIG_TABLE . " WHERE config_name='" . addslashes($config_name) . "'"; - $db->sql_query($sql); - // recache config table for cat_hierarchy 2.1.0 - if(isset($GLOBALS['config']) && is_object($GLOBALS['config'])) - { - global $config; - $config->read(true); - } - $template->assign_block_vars('left_refresh', array( - 'ACTION' => append_sid('index.' . $phpEx . '?pane=left') - )); - xs_error($lang['xs_invalid_style_name']); -} - -// get configuration -$style_config = array(); -include($filename); -$data = $template->get_config($tpl, false); -for($i=0; $i $value1) - { - $list[] = $var1; - } - $value = implode(',', $list); - } - else - { - $value = isset($HTTP_POST_VARS['cfg_' . $var]) ? stripslashes($HTTP_POST_VARS['cfg_' . $var]) : 0; - } - $data[$var] = $value; - } - // update config - $str = $template->_serialize($data); - $config_name = 'xs_style_' . $tpl; - if(isset($board_config[$config_name])) - { - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value='" . addslashes($str) . "' WHERE config_name='" . addslashes($config_name) . "'"; - } - else - { - $sql = "INSERT INTO " . CONFIG_TABLE . " (config_name, config_value) VALUES ('" . addslashes($config_name) . "', '" . addslashes($str) . "')"; - } - $db->sql_query($sql); - $board_config[$config_name] = $str; - // recache config table for cat_hierarchy 2.1.0 - if(isset($config) && is_object($config)) - { - $config->read(true); - } -} - - -// show form -$last_cat = ''; -for($i=0; $iassign_block_vars('item', array( - 'VAR' => 'cfg_' . $var, - 'VALUE' => htmlspecialchars($data[$var]), - 'DEF' => $item['default'], - 'TYPE' => $item['type'], - 'TEXT' => htmlspecialchars($item['text']), - 'EXPLAIN' => isset($item['explain']) ? $item['explain'] : '', - )); - if($item['type'] === 'select') - { - foreach($item['selection'] as $var1 => $value1) - { - $template->assign_block_vars('item.select', array( - 'VALUE' => htmlspecialchars($var1), - 'TEXT' => htmlspecialchars($value1), - 'SELECTED' => $data[$var] === $var1 ? 1 : 0, - )); - } - } - if($item['type'] === 'list') - { - $values = explode(',', $data[$var]); - foreach($item['selection'] as $var => $value) - { - $selected = false; - for($j=0; $jassign_block_vars('item.list', array( - 'VALUE' => htmlspecialchars($var), - 'TEXT' => htmlspecialchars($value), - 'SELECTED' => $selected, - )); - $num++; - } - } - if(!empty($item['cat']) && $item['cat'] !== $last_cat) - { - $template->assign_block_vars('item.cat', array( - 'TEXT' => htmlspecialchars($item['cat']) - )); - $last_cat = $item['cat']; - } -} - -$template->assign_vars(array( - 'TPL' => htmlspecialchars($tpl), - 'U_FORM' => 'xs_style_config.'.$phpEx.'?sid='.$userdata['session_id'], - )); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_style_configuration'] . ': ' . $tpl . '')); - -$template->set_filenames(array('body' => XS_TPL_PATH . 'style_config.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_styles.php b/phpBB2/admin/xs_styles.php deleted file mode 100644 index 17d0e05..0000000 --- a/phpBB2/admin/xs_styles.php +++ /dev/null @@ -1,289 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_default_style'] . '')); - -// -// set new default style -// -if(!empty($HTTP_GET_VARS['setdefault']) && !defined('DEMO_MODE')) -{ - $board_config['default_style'] = intval($HTTP_GET_VARS['setdefault']); - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value='" . $board_config['default_style'] . "' WHERE config_name='default_style'"; - if(defined('XS_MODS_ADMIN_TEMPLATES')) - { - $sql = str_replace(' WHERE config_name', ', theme_public=\'1\' WHERE config_name', $sql); - } - $db->sql_query($sql); - if(defined('XS_MODS_CATEGORY_HIERARCHY210')) - { - // recache config table - if ( !empty($config) ) - { - $config->read(true); - } - } -} - -// -// change "override" variable -// -if(isset($HTTP_GET_VARS['setoverride']) && !defined('DEMO_MODE')) -{ - $board_config['override_user_style'] = intval($HTTP_GET_VARS['setoverride']); - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value='" . $board_config['override_user_style'] . "' WHERE config_name='override_user_style'"; - $db->sql_query($sql); - // recache config table - if(defined('XS_MODS_CATEGORY_HIERARCHY210') && !empty($config)) - { - $config->read(true); - } -} - -// -// move all users to some style -// -if(!empty($HTTP_GET_VARS['moveusers']) && !defined('DEMO_MODE')) -{ - $id = intval($HTTP_GET_VARS['moveusers']); - $sql = "UPDATE " . USERS_TABLE . " SET user_style='" . $id . "' WHERE user_id > 0"; - $db->sql_query($sql); -} - -// -// move all users from some style -// -if(!empty($HTTP_GET_VARS['moveaway']) && !defined('DEMO_MODE')) -{ - $id = intval($HTTP_GET_VARS['moveaway']); - $id2 = intval($HTTP_GET_VARS['movestyle']); - if($id2) - { - $sql = "UPDATE " . USERS_TABLE . " SET user_style='" . $id2 . "' WHERE user_style = " . $id; - } - else - { - $sql = "UPDATE " . USERS_TABLE . " SET user_style = NULL WHERE user_style = " . $id; - } - $db->sql_query($sql); -} - -// -// set admin-only style (Admin Templates mod) -// -if(!empty($HTTP_GET_VARS['setadmin']) && !defined('DEMO_MODE')) -{ - $id = intval($HTTP_GET_VARS['setadmin']); - $setadmin = empty($HTTP_GET_VARS['admin']) ? 0 : 1; - $sql = "UPDATE " . THEMES_TABLE . " SET theme_public='{$setadmin}' WHERE themes_id='{$id}'"; - $db->sql_query($sql); - if(defined('XS_MODS_CATEGORY_HIERARCHY210')) - { - // recache themes table - if ( empty($themes) ) - { - $themes = new themes(); - } - if ( !empty($themes) ) - { - $themes->read(true); - } - } -} - -// -// get list of installed styles -// -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY template_name'; -if(defined('XS_MODS_ADMIN_TEMPLATES')) -{ - $sql = str_replace(', style_name', ', style_name, theme_public', $sql); -} -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -$style_override = $board_config['override_user_style']; -$style_default = $board_config['default_style']; -$num_users = 0; -$style_ids = array(); - -for($i=0; $iassign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'STYLE' => $style_rowset[$i]['style_name'], - 'TEMPLATE' => $style_rowset[$i]['template_name'], - 'ID' => $id, - 'TOTAL' => $total, - 'U_TOTAL' => append_sid('xs_styles.' . $phpEx . '?list=' . $id), - 'U_DEFAULT' => append_sid('xs_styles.' . $phpEx . '?setdefault=' . $id), - 'U_OVERRIDE' => append_sid('xs_styles.' . $phpEx . '?setoverride=' . ($style_override ? '0' : '1')), - 'U_SWITCHALL' => append_sid('xs_styles.' . $phpEx . '?moveusers=' . $id), - ) - ); - if($total > 0) - { - $template->assign_block_vars('styles.users', array()); - } - if($id == $style_default) - { - $template->assign_block_vars('styles.default', array()); - if($style_override) - { - $template->assign_block_vars('styles.default.override', array()); - } - else - { - $template->assign_block_vars('styles.default.nooverride', array()); - } - } - else - { - $template->assign_block_vars('styles.nodefault', array()); - if(defined('XS_MODS_ADMIN_TEMPLATES')) - { - if($style_rowset[$i]['theme_public']) - { - $template->assign_block_vars('styles.nodefault.admin_only', array( - 'U_CHANGE' => append_sid('xs_styles.'.$phpEx.'?setadmin='.$id.'&admin=0') - )); - } - else - { - $template->assign_block_vars('styles.nodefault.public', array( - 'U_CHANGE' => append_sid('xs_styles.'.$phpEx.'?setadmin='.$id.'&admin=1') - )); - } - } - } - if($total) - { - $template->assign_block_vars('styles.total', array()); - } - else - { - $template->assign_block_vars('styles.none', array()); - } -} - -// get number of users using default style -$sql = 'SELECT count(user_id) as total FROM ' . USERS_TABLE . ' WHERE user_style = NULL'; -$result = $db->sql_query($sql); -if($result) -{ - $total = $db->sql_fetchrow($result); - $num_default = $total['total']; - $num_users += $num_default; -} - -// get number of users -$sql = 'SELECT count(user_id) as total FROM ' . USERS_TABLE; -$result = $db->sql_query($sql); -if(!$result) -{ - $total_users = 0; -} -else -{ - $total = $db->sql_fetchrow($result); - $total_users = $total['total']; -} - -$template->assign_vars(array( - 'U_SCRIPT' => 'xs_styles.' . $phpEx, - 'NUM_DEFAULT' => $num_default - ) -); - -if($total_users > $num_users) -{ - // fix problem - $sql = 'UPDATE ' . USERS_TABLE . ' SET user_style = NULL WHERE user_style NOT IN (' . implode(', ', $style_ids) . ')'; - $db->sql_query($sql); -} - -// -// get list of users -// -if(isset($HTTP_GET_VARS['list'])) -{ - $id = intval($HTTP_GET_VARS['list']); - $template->assign_block_vars('list_users', array()); - $sql = "SELECT user_id, username FROM " . USERS_TABLE . " WHERE user_style='{$id}' ORDER BY username ASC"; - if(!$result = $db->sql_query($sql)) - { - xs_error('Could not get users list!', __LINE__, __FILE__); - } - $rowset = $db->sql_fetchrowset($result); - for($i=0; $iassign_block_vars('list_users.user', array( - 'NUM' => $i + 1, - 'ID' => $rowset[$i]['user_id'], - 'NAME' => htmlspecialchars($rowset[$i]['username']), - ) - ); - } -} - -$template->set_filenames(array('body' => XS_TPL_PATH . 'styles.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_uninstall.php b/phpBB2/admin/xs_uninstall.php deleted file mode 100644 index 89cb1c6..0000000 --- a/phpBB2/admin/xs_uninstall.php +++ /dev/null @@ -1,258 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_uninstall_styles'] . '')); - -$lang['xs_uninstall_back'] = str_replace('{URL}', append_sid('xs_uninstall.'.$phpEx), $lang['xs_uninstall_back']); -$lang['xs_goto_default'] = str_replace('{URL}', append_sid('xs_styles.'.$phpEx), $lang['xs_goto_default']); - -// -// uninstall style -// -if(isset($HTTP_GET_VARS['remove']) && !defined('DEMO_MODE')) -{ - $remove_id = intval($HTTP_GET_VARS['remove']); - if($board_config['default_style'] == $remove_id) - { - xs_error(str_replace('{URL}', append_sid('xs_styles.'.$phpEx), $lang['xs_uninstall_default']) . '

' . $lang['xs_uninstall_back']); - } - $sql = "SELECT themes_id, template_name, style_name FROM " . THEMES_TABLE . " WHERE themes_id='{$remove_id}'"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_style_info'] . '

' . $lang['xs_uninstall_back'], __LINE__, __FILE__); - } - $row = $db->sql_fetchrow($result); - if(empty($row['themes_id'])) - { - xs_error($lang['xs_no_style_info'] . '

' . $lang['xs_uninstall_back'], __LINE__, __FILE__); - } - $sql = "UPDATE " . USERS_TABLE . " SET user_style=NULL WHERE user_style='{$remove_id}'"; - $db->sql_query($sql); - $sql = "DELETE FROM " . THEMES_TABLE . " WHERE themes_id='{$remove_id}'"; - $db->sql_query($sql); - $template->assign_block_vars('removed', array()); - // remove files - if(!empty($HTTP_GET_VARS['dir'])) - { - $HTTP_POST_VARS['remove'] = addslashes($row['template_name']); - } - // remove config - if(empty($HTTP_GET_VARS['nocfg']) && isset($board_config['xs_style_'.$row['template_name']])) - { - $sql = "DELETE FROM " . CONFIG_TABLE . " WHERE config_name='" . addslashes("xs_style_{$row['template_name']}") . "'"; - $db->sql_query($sql); - $template->assign_block_vars('left_refresh', array( - 'ACTION' => append_sid('index.' . $phpEx . '?pane=left') - )); - // recache config table for cat_hierarchy 2.1.0 - if(isset($GLOBALS['config']) && is_object($GLOBALS['config'])) - { - global $config; - $config->read(true); - } - } - // recache themes table - if(defined('XS_MODS_CATEGORY_HIERARCHY210')) - { - if ( empty($themes) ) - { - $themes = new themes(); - } - if ( !empty($themes) ) - { - $themes->read(true); - } - } -} - -function remove_all($dir) -{ - $res = opendir($dir); - if(!$res) - { - return false; - } - while(($file = readdir($res)) !== false) - { - if($file !== '.' && $file !== '..') - { - $str = $dir . '/' . $file; - if(is_dir($str)) - { - remove_all($str); - @rmdir($str); - } - else - { - @unlink($str); - } - } - } - closedir($res); -} - -// -// remove files -// -if(isset($HTTP_POST_VARS['remove']) && !defined('DEMO_MODE')) -{ - $remove = stripslashes($HTTP_POST_VARS['remove']); - $params = array('remove' => $remove); - if(!get_ftp_config(append_sid('xs_uninstall.'.$phpEx), $params, true)) - { - xs_exit(); - } - xs_ftp_connect(append_sid('xs_uninstall.'.$phpEx), $params, true); - $write_local = false; - if($ftp === XS_FTP_LOCAL) - { - $write_local = true; - $write_local_dir = '../templates/'; - } - if(!$write_local) - { - // - // Generate actions list - // - $actions = array(); - // chdir to templates directory - $actions[] = array( - 'command' => 'chdir', - 'dir' => 'templates' - ); - // chdir to template - $actions[] = array( - 'command' => 'chdir', - 'dir' => $remove - ); - // remove all files - $actions[] = array( - 'command' => 'removeall', - 'ignore' => true - ); - $actions[] = array( - 'command' => 'cdup' - ); - $actions[] = array( - 'command' => 'rmdir', - 'dir' => $remove - ); - $ftp_log = array(); - $ftp_error = ''; - $res = ftp_myexec($actions); -/* echo ""; */ - } - else - { - remove_all('../templates/'.$remove); - @rmdir('../templates/'.$remove); - } - $template->assign_block_vars('removed', array()); -} - - - -// -// get list of installed styles -// -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY template_name, style_name'; -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -$tpl = array(); -for($i=0; $i $styles) -{ - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => htmlspecialchars($tpl), - 'ROWS' => count($styles), - ) - ); - if(count($styles) > 1) - { - for($i=0; $iassign_block_vars('styles.item', array( - 'ID' => $styles[$i]['themes_id'], - 'THEME' => htmlspecialchars($styles[$i]['style_name']), - 'U_DELETE' => append_sid('xs_uninstall.'.$phpEx.'?remove='.$styles[$i]['themes_id'].'&nocfg=1'), - ) - ); - $template->assign_block_vars('styles.item.nodelete', array()); - } - } - else - { - $i = 0; - $template->assign_block_vars('styles.item', array( - 'ID' => $styles[$i]['themes_id'], - 'THEME' => htmlspecialchars($styles[$i]['style_name']), - 'U_DELETE' => append_sid('xs_uninstall.'.$phpEx.'?remove='.$styles[$i]['themes_id']), - ) - ); - $template->assign_block_vars('styles.item.delete', array( - 'U_DELETE' => append_sid('xs_uninstall.'.$phpEx.'?dir=1&remove='.$styles[$i]['themes_id']), - ) - ); - } -} - -$template->set_filenames(array('body' => XS_TPL_PATH . 'uninstall.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/admin/xs_update.php b/phpBB2/admin/xs_update.php deleted file mode 100644 index 660647d..0000000 --- a/phpBB2/admin/xs_update.php +++ /dev/null @@ -1,320 +0,0 @@ -xs_version) || $template->xs_version !== 8) -{ - message_die(GENERAL_ERROR, isset($lang['xs_error_not_installed']) ? $lang['xs_error_not_installed'] : 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_check_for_updates'] . '')); - -$updates = array(); - -function include_update($filename) -{ - $update = array(); - @include($filename); - global $updates; - $updates = array_merge($updates, $update); -} - -if($dir = @opendir($phpbb_root_path. 'templates/')) -{ - while($sub_dir = @readdir($dir)) - if(($sub_dir !== '.') && ($sub_dir !== '..') && ($sub_dir !== 'CVS')) - { - $file = $phpbb_root_path . 'templates/' . $sub_dir . '/xs.cfg'; - if(@file_exists($file)) - { - include_update($file); - } - } - closedir($dir); -} - -// check for xs files in acp. mask: xs_*.cfg -if($dir = @opendir('.')) -{ - while($file = @readdir($dir)) - if(strlen($file) > 6 && substr($file, 0, 3) === 'xs_' && substr($file, strlen($file) - 4) === '.cfg') - { - include_update($file); - } - closedir($dir); -} - - -// nothing to update -if(!count($updates)) -{ - xs_error($lang['xs_update_nothing']); -} - -// show list of available updates -if(!isset($HTTP_GET_VARS['doupdate'])) -{ - $template->set_filenames(array('body' => XS_TPL_PATH . 'update.tpl')); - $template->assign_vars(array( - 'UPDATE_URL' => append_sid('xs_update.'.$phpEx.'?doupdate=1'), - 'L_XS_UPDATE_TOTAL1' => str_replace('{NUM}', count($updates), $lang['xs_update_total1']), - ) - ); - $counter = 0; - @reset($updates); - foreach($updates as $var => $item) - { - $counter ++; - $type = isset($lang['xs_update_types'][$item['update_type']]) ? $item['update_type'] : 0; - $row_class = $xs_row_class[$counter % 2]; - $template->assign_block_vars('row', - array( - 'ROW_CLASS' => $row_class, - 'NUM' => $counter, - 'VAR' => 'item_'.$counter.'_', - 'ITEM' => htmlspecialchars($var), - 'NAME' => htmlspecialchars($item['update_name']), - 'TYPE' => $lang['xs_update_types'][$type], - 'URL' => htmlspecialchars($item['update_url']), - 'VERSION' => htmlspecialchars($item['update_version']) - ) - ); - $template->assign_block_vars('row.'.(empty($item['update_url']) ? 'nourl' : 'url'), array()); - } - $template->pparse('body'); - xs_exit(); -} - -// check updates. - -// getting list of items to update -@reset($updates); -$urls = array(); -$items = array(); -$i=0; -foreach($updates as $var1 => $item) -{ - $i++; - $var = 'item_'.$i.'_'; - if(!empty($HTTP_POST_VARS[$var.'item']) && !empty($HTTP_POST_VARS[$var.'checked']) && $HTTP_POST_VARS[$var.'checked']) - { - $item = $HTTP_POST_VARS[$var.'item']; - if(!empty($updates[$item]['update_url'])) - { - $items[] = $var1; - $found = false; - $url = $updates[$item]['update_url']; - for($j=0; $j'; - $end_text = ''; - $begin_pos = -1; - $end_pos = -1; - // getting begin and end tags for it - for($k=0; ($k= 0) - { - // getting all data for this item in array - for($k=$begin_pos+1; $k<$end_pos; $k++) - { - $arr2 = explode(' ', $arr[$k], 2); - if(count($arr2) == 2) - { - $data[trim($arr2[0])] = trim($arr2[1]); - } - } - } - else - { - $data['error'] = $lang['xs_update_error_noitem']; - } - $updates[$items[$j]]['data'] = $data; - } - } - } -} - -$template->set_filenames(array('body' => XS_TPL_PATH . 'update2.tpl')); - -@reset($updates); -$count_total = 0; -$count_error = 0; -$count_update = 0; -foreach($updates as $var => $item) -{ - if(isset($item['data']) && is_array($item['data'])) - { - $count_total++; - $type = isset($lang['xs_update_types'][$item['update_type']]) ? $item['update_type'] : 0; - $ver1 = htmlspecialchars($item['update_version']); - $row_class = $xs_row_class[$count_total % 2]; - $template->assign_block_vars('row', - array( - 'ROW_CLASS' => $row_class, - 'ITEM' => htmlspecialchars($item['update_name']), - 'TYPE' => $lang['xs_update_types'][$type], - 'VERSION' => $ver1, - ) - ); - if(!empty($item['data']['version'])) - { - $ver2 = htmlspecialchars($item['data']['version']); - $info = isset($item['data']['info']) ? $item['data']['info'] : ''; - if($ver2 !== $ver1 && (!empty($item['data']['update']) || !empty($item['data']['autoupdate']))) - { - $count_update++; - $u_import = (isset($item['data']['style']) && substr($item['data']['style'], 0, 7) === 'http://') ? append_sid('xs_import.'.$phpEx.'?get_web=' . urlencode($item['data']['style'])) : ''; - $template->assign_block_vars('row.update', - array( - 'NUM' => $count_total, - 'VERSION' => $ver2, - 'UPDATE' => isset($item['data']['update']) ? htmlspecialchars($item['data']['update']) : '', - 'U_IMPORT' => $u_import, - 'INFO' => htmlspecialchars($info), - ) - ); - $template->assign_block_vars('row.update.' . (empty($item['data']['update']) ? 'noupdate' : 'updated'), array()); - $template->assign_block_vars('row.update.' . (empty($item['data']['info']) ? 'noinfo' : 'info'), array()); - $template->assign_block_vars('row.update.' . (empty($u_import) ? 'noimport' : 'import'), array()); - } - else - { - $template->assign_block_vars('row.noupdate', - array( - 'VERSION' => $ver2, - 'MESSAGE' => $lang['xs_update_noupdate'], - 'INFO' => empty($info) ? '' : htmlspecialchars($info), - ) - ); - $template->assign_block_vars('row.noupdate.' . (empty($item['data']['info']) ? 'noinfo' : 'info'), array()); - } - } - else - { - if(empty($item['data']['error'])) - { - $item['data']['error'] = $lang['xs_update_error_noitem']; - } - $template->assign_block_vars('row.error', array('ERROR' => htmlspecialchars($item['data']['error']))); - $count_error++; - } - } -} - -$template->assign_vars( - array( - 'COUNT_TOTAL' => str_replace('{NUM}', $count_total, $lang['xs_update_total1']), - 'COUNT_ERROR' => str_replace('{NUM}', $count_error, $lang['xs_update_total2']), - 'COUNT_UPDATE' => str_replace('{NUM}', $count_update, $lang['xs_update_total3']) - ) -); - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2/cache/tpl_Helius.index_body.php b/phpBB2/cache/tpl_Helius.index_body.php deleted file mode 100755 index f2f619e..0000000 --- a/phpBB2/cache/tpl_Helius.index_body.php +++ /dev/null @@ -1,219 +0,0 @@ -_tpldata['switch_xs_enabled.']) ) ? sizeof($this->_tpldata['switch_xs_enabled.']) : 0; -for ($switch_xs_enabled_i = 0; $switch_xs_enabled_i < $switch_xs_enabled_count; $switch_xs_enabled_i++) -{ - $switch_xs_enabled_item = &$this->_tpldata['switch_xs_enabled.'][$switch_xs_enabled_i]; - $switch_xs_enabled_item['S_ROW_COUNT'] = $switch_xs_enabled_i; - $switch_xs_enabled_item['S_NUM_ROWS'] = $switch_xs_enabled_count; - -?> -vars['PRIVATE_MESSAGE_INFO'])) -{ - $this->vars['PRIVATE_MESSAGE_INFO'] = '' . $this->vars['PRIVATE_MESSAGE_INFO'] . ''; -} - -?> - - - - - - -
- _tpldata['switch_user_logged_in.']) ) ? sizeof($this->_tpldata['switch_user_logged_in.']) : 0; -for ($switch_user_logged_in_i = 0; $switch_user_logged_in_i < $switch_user_logged_in_count; $switch_user_logged_in_i++) -{ - $switch_user_logged_in_item = &$this->_tpldata['switch_user_logged_in.'][$switch_user_logged_in_i]; - $switch_user_logged_in_item['S_ROW_COUNT'] = $switch_user_logged_in_i; - $switch_user_logged_in_item['S_NUM_ROWS'] = $switch_user_logged_in_count; - -?> - vars['PRIVATE_MESSAGE_INFO']) ? $this->vars['PRIVATE_MESSAGE_INFO'] : $this->lang('PRIVATE_MESSAGE_INFO'); ?>
- vars['LAST_VISIT_DATE']) ? $this->vars['LAST_VISIT_DATE'] : $this->lang('LAST_VISIT_DATE'); ?>
- - vars['CURRENT_TIME']) ? $this->vars['CURRENT_TIME'] : $this->lang('CURRENT_TIME'); ?>
- vars['S_TIMEZONE']) ? $this->vars['S_TIMEZONE'] : $this->lang('S_TIMEZONE'); ?>
-
vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?>
- _tpldata['switch_user_logged_in.']) ) ? sizeof($this->_tpldata['switch_user_logged_in.']) : 0; -for ($switch_user_logged_in_i = 0; $switch_user_logged_in_i < $switch_user_logged_in_count; $switch_user_logged_in_i++) -{ - $switch_user_logged_in_item = &$this->_tpldata['switch_user_logged_in.'][$switch_user_logged_in_i]; - $switch_user_logged_in_item['S_ROW_COUNT'] = $switch_user_logged_in_i; - $switch_user_logged_in_item['S_NUM_ROWS'] = $switch_user_logged_in_count; - -?> - vars['L_SEARCH_NEW']) ? $this->vars['L_SEARCH_NEW'] : $this->lang('L_SEARCH_NEW'); ?>
vars['L_SEARCH_SELF']) ? $this->vars['L_SEARCH_SELF'] : $this->lang('L_SEARCH_SELF'); ?>
- - vars['L_SEARCH_UNANSWERED']) ? $this->vars['L_SEARCH_UNANSWERED'] : $this->lang('L_SEARCH_UNANSWERED'); ?>
- vars['L_MARK_FORUMS_READ']) ? $this->vars['L_MARK_FORUMS_READ'] : $this->lang('L_MARK_FORUMS_READ'); ?>
- -_tpldata['catrow.']) ) ? sizeof($this->_tpldata['catrow.']) : 0; -for ($catrow_i = 0; $catrow_i < $catrow_count; $catrow_i++) -{ - $catrow_item = &$this->_tpldata['catrow.'][$catrow_i]; - $catrow_item['S_ROW_COUNT'] = $catrow_i; - $catrow_item['S_NUM_ROWS'] = $catrow_count; - -?> -vars['TPL_HDR1']) ? $this->vars['TPL_HDR1'] : $this->lang('TPL_HDR1'); ?>  vars['TPL_HDR2']) ? $this->vars['TPL_HDR2'] : $this->lang('TPL_HDR2'); ?>
- - - - - - - - - - - - - - - -
 vars['L_FORUM']) ? $this->vars['L_FORUM'] : $this->lang('L_FORUM'); ?>  vars['L_TOPICS']) ? $this->vars['L_TOPICS'] : $this->lang('L_TOPICS'); ?>  vars['L_POSTS']) ? $this->vars['L_POSTS'] : $this->lang('L_POSTS'); ?>  vars['L_LASTPOST']) ? $this->vars['L_LASTPOST'] : $this->lang('L_LASTPOST'); ?> 
<?php echo isset($forumrow_item['L_FORUM_FOLDER_ALT']) ? $forumrow_item['L_FORUM_FOLDER_ALT'] : ''; ?>
-

-
vars['TPL_FTR']) ? $this->vars['TPL_FTR'] : $this->lang('TPL_FTR'); ?> - -
- - -vars['TPL_HDR1']) ? $this->vars['TPL_HDR1'] : $this->lang('TPL_HDR1'); ?> vars['L_WHO_IS_ONLINE']) ? $this->vars['L_WHO_IS_ONLINE'] : $this->lang('L_WHO_IS_ONLINE'); ?> vars['TPL_HDR2']) ? $this->vars['TPL_HDR2'] : $this->lang('TPL_HDR2'); ?> - - - - - - - -
<?php echo isset($this->vars['L_WHO_IS_ONLINE']) ? $this->vars['L_WHO_IS_ONLINE'] : $this->lang('L_WHO_IS_ONLINE'); ?>vars['TOTAL_POSTS']) ? $this->vars['TOTAL_POSTS'] : $this->lang('TOTAL_POSTS'); ?>
vars['TOTAL_USERS']) ? $this->vars['TOTAL_USERS'] : $this->lang('TOTAL_USERS'); ?>
vars['NEWEST_USER']) ? $this->vars['NEWEST_USER'] : $this->lang('NEWEST_USER'); ?>
-
vars['TOTAL_USERS_ONLINE']) ? $this->vars['TOTAL_USERS_ONLINE'] : $this->lang('TOTAL_USERS_ONLINE'); ?>   [ vars['L_WHOSONLINE_ADMIN']) ? $this->vars['L_WHOSONLINE_ADMIN'] : $this->lang('L_WHOSONLINE_ADMIN'); ?> ]   [ vars['L_WHOSONLINE_MOD']) ? $this->vars['L_WHOSONLINE_MOD'] : $this->lang('L_WHOSONLINE_MOD'); ?> ]
vars['RECORD_USERS']) ? $this->vars['RECORD_USERS'] : $this->lang('RECORD_USERS'); ?>
vars['LOGGED_IN_USER_LIST']) ? $this->vars['LOGGED_IN_USER_LIST'] : $this->lang('LOGGED_IN_USER_LIST'); ?>
vars['L_ONLINE_EXPLAIN']) ? $this->vars['L_ONLINE_EXPLAIN'] : $this->lang('L_ONLINE_EXPLAIN'); ?>
vars['TPL_FTR']) ? $this->vars['TPL_FTR'] : $this->lang('TPL_FTR'); ?> -
- -_tpldata['switch_user_logged_out.']) ) ? sizeof($this->_tpldata['switch_user_logged_out.']) : 0; -for ($switch_user_logged_out_i = 0; $switch_user_logged_out_i < $switch_user_logged_out_count; $switch_user_logged_out_i++) -{ - $switch_user_logged_out_item = &$this->_tpldata['switch_user_logged_out.'][$switch_user_logged_out_i]; - $switch_user_logged_out_item['S_ROW_COUNT'] = $switch_user_logged_out_i; - $switch_user_logged_out_item['S_NUM_ROWS'] = $switch_user_logged_out_count; - -?> -
-vars['TPL_HDR1']) ? $this->vars['TPL_HDR1'] : $this->lang('TPL_HDR1'); ?>vars['L_LOGIN_LOGOUT']) ? $this->vars['L_LOGIN_LOGOUT'] : $this->lang('L_LOGIN_LOGOUT'); ?>vars['TPL_HDR2']) ? $this->vars['TPL_HDR2'] : $this->lang('TPL_HDR2'); ?> - - - -
vars['L_USERNAME']) ? $this->vars['L_USERNAME'] : $this->lang('L_USERNAME'); ?>: - -    vars['L_PASSWORD']) ? $this->vars['L_PASSWORD'] : $this->lang('L_PASSWORD'); ?>: - - -      vars['L_AUTO_LOGIN']) ? $this->vars['L_AUTO_LOGIN'] : $this->lang('L_AUTO_LOGIN'); ?> - - -     - -
vars['TPL_FTR']) ? $this->vars['TPL_FTR'] : $this->lang('TPL_FTR'); ?> -
-
- - - - - - - - - - - - - -
<?php echo isset($this->vars['L_NEW_POSTS']) ? $this->vars['L_NEW_POSTS'] : $this->lang('L_NEW_POSTS'); ?>vars['L_NEW_POSTS']) ? $this->vars['L_NEW_POSTS'] : $this->lang('L_NEW_POSTS'); ?>  <?php echo isset($this->vars['L_NO_NEW_POSTS']) ? $this->vars['L_NO_NEW_POSTS'] : $this->lang('L_NO_NEW_POSTS'); ?>vars['L_NO_NEW_POSTS']) ? $this->vars['L_NO_NEW_POSTS'] : $this->lang('L_NO_NEW_POSTS'); ?>  <?php echo isset($this->vars['L_FORUM_LOCKED']) ? $this->vars['L_FORUM_LOCKED'] : $this->lang('L_FORUM_LOCKED'); ?>vars['L_FORUM_LOCKED']) ? $this->vars['L_FORUM_LOCKED'] : $this->lang('L_FORUM_LOCKED'); ?>
diff --git a/phpBB2/cache/tpl_Helius.jumpbox.php b/phpBB2/cache/tpl_Helius.jumpbox.php deleted file mode 100755 index ec5db12..0000000 --- a/phpBB2/cache/tpl_Helius.jumpbox.php +++ /dev/null @@ -1,146 +0,0 @@ -_tpldata['switch_xs_enabled.']) ) ? sizeof($this->_tpldata['switch_xs_enabled.']) : 0; -for ($switch_xs_enabled_i = 0; $switch_xs_enabled_i < $switch_xs_enabled_count; $switch_xs_enabled_i++) -{ - $switch_xs_enabled_item = &$this->_tpldata['switch_xs_enabled.'][$switch_xs_enabled_i]; - $switch_xs_enabled_item['S_ROW_COUNT'] = $switch_xs_enabled_i; - $switch_xs_enabled_item['S_NUM_ROWS'] = $switch_xs_enabled_count; - -?> - tags. -// - -$str = $this->vars['S_JUMPBOX_SELECT']; -$options = array(); -// getting header -$pos = strpos($str, ' 0) -{ - $start = substr($str, 0, $pos); - $str = substr($str, $pos, strlen($str)); -} -else -{ - $start = 0; -} -// getting footer -$str = strrev($str); -$pos = strpos($str, strrev('')); -if($pos > 0) -{ - $end = strrev(substr($str, 0, $pos)); - $str = substr($str, $pos, strlen($str)); -} -else -{ - $end = ''; -} -$str = trim(strrev($str)); -// getting all options -while(strlen($str) > 0) -{ - $pos = strpos($str, ''); - if($pos > 0) - { - $pos += 9; - $item = trim(substr($str, 0, $pos)); - $str = trim(substr($str, $pos, strlen($str))); - } - else - { - $item = $str; - $str = ''; - } - $value = ''; - $text = ''; - $selected = false; - $pos = strpos($item, '>') + 1; - // getting text - $text = substr($item, $pos, strlen($item)); - $item = substr($item, 0, $pos); - $pos = strpos($text, '<'); - if($pos) - { - $text = substr($text, 0, $pos); - } - // checking if item is selected - if(strpos($str1, ' selected')) - { - $selected = true; - } - // getting value - $pos = strpos($item, 'value="'); - if($pos) - { - $pos += 7; - $str1 = substr($item, $pos, strlen($item)); - $pos = strpos($str1, '"'); - $value = substr($str1, 0, $pos); - } - $options[] = array( - 'text' => $text, - 'value' => $value, - 'selected' => $selected - ); -} - -$text = $start; -$group = 0; -for($i=0; $i= 2) - { - $item = $options[$i+1]; - $i+=2; - $group = true; - $text .= ''; - } - } - else - { - $text .= ''; -} -$text .= $end; -$this->vars['S_JUMPBOX_SELECT'] = $text; - -?> - - - - - - - -
vars['S_JUMPBOX_SELECT']) ? $this->vars['S_JUMPBOX_SELECT'] : $this->lang('S_JUMPBOX_SELECT'); ?>  
\ No newline at end of file diff --git a/phpBB2/cache/tpl_Helius.overall_footer.php b/phpBB2/cache/tpl_Helius.overall_footer.php deleted file mode 100755 index 202d644..0000000 --- a/phpBB2/cache/tpl_Helius.overall_footer.php +++ /dev/null @@ -1,41 +0,0 @@ - -

vars['ADMIN_LINK']) ? $this->vars['ADMIN_LINK'] : $this->lang('ADMIN_LINK'); ?>
- -Powered by phpBB vars['PHPBB_VERSION']) ? $this->vars['PHPBB_VERSION'] : $this->lang('PHPBB_VERSION'); ?> © 2001-2004 phpBB Group
Designed for Trushkin.net | Themes Database
vars['TRANSLATION_INFO']) ? $this->vars['TRANSLATION_INFO'] : $this->lang('TRANSLATION_INFO'); ?>
- - - - - - diff --git a/phpBB2/cache/tpl_Helius.overall_header.php b/phpBB2/cache/tpl_Helius.overall_header.php deleted file mode 100755 index 7360341..0000000 --- a/phpBB2/cache/tpl_Helius.overall_header.php +++ /dev/null @@ -1,319 +0,0 @@ - - - - - - -vars['META']) ? $this->vars['META'] : $this->lang('META'); ?> -vars['NAV_LINKS']) ? $this->vars['NAV_LINKS'] : $this->lang('NAV_LINKS'); ?> -<?php echo isset($this->vars['SITENAME']) ? $this->vars['SITENAME'] : $this->lang('SITENAME'); ?> :: <?php echo isset($this->vars['PAGE_TITLE']) ? $this->vars['PAGE_TITLE'] : $this->lang('PAGE_TITLE'); ?> - - -_tpldata['switch_enable_pm_popup.']) ) ? sizeof($this->_tpldata['switch_enable_pm_popup.']) : 0; -for ($switch_enable_pm_popup_i = 0; $switch_enable_pm_popup_i < $switch_enable_pm_popup_count; $switch_enable_pm_popup_i++) -{ - $switch_enable_pm_popup_item = &$this->_tpldata['switch_enable_pm_popup.'][$switch_enable_pm_popup_i]; - $switch_enable_pm_popup_item['S_ROW_COUNT'] = $switch_enable_pm_popup_i; - $switch_enable_pm_popup_item['S_NUM_ROWS'] = $switch_enable_pm_popup_count; - -?> - - - - - - - - - - - - -
- - - - - - - - -
- - - _tpldata['switch_user_logged_out.']) ) ? sizeof($this->_tpldata['switch_user_logged_out.']) : 0; -for ($switch_user_logged_out_i = 0; $switch_user_logged_out_i < $switch_user_logged_out_count; $switch_user_logged_out_i++) -{ - $switch_user_logged_out_item = &$this->_tpldata['switch_user_logged_out.'][$switch_user_logged_out_i]; - $switch_user_logged_out_item['S_ROW_COUNT'] = $switch_user_logged_out_i; - $switch_user_logged_out_item['S_NUM_ROWS'] = $switch_user_logged_out_count; - -?> - - - - _tpldata['switch_user_logged_in.']) ) ? sizeof($this->_tpldata['switch_user_logged_in.']) : 0; -for ($switch_user_logged_in_i = 0; $switch_user_logged_in_i < $switch_user_logged_in_count; $switch_user_logged_in_i++) -{ - $switch_user_logged_in_item = &$this->_tpldata['switch_user_logged_in.'][$switch_user_logged_in_i]; - $switch_user_logged_in_item['S_ROW_COUNT'] = $switch_user_logged_in_i; - $switch_user_logged_in_item['S_NUM_ROWS'] = $switch_user_logged_in_count; - -?> - - - - - - - _tpldata['switch_user_logged_in.']) ) ? sizeof($this->_tpldata['switch_user_logged_in.']) : 0; -for ($switch_user_logged_in_i = 0; $switch_user_logged_in_i < $switch_user_logged_in_count; $switch_user_logged_in_i++) -{ - $switch_user_logged_in_item = &$this->_tpldata['switch_user_logged_in.'][$switch_user_logged_in_i]; - $switch_user_logged_in_item['S_ROW_COUNT'] = $switch_user_logged_in_i; - $switch_user_logged_in_item['S_NUM_ROWS'] = $switch_user_logged_in_count; - -?> - - - - - -
<?php echo isset($this->vars['L_LOGIN_LOGOUT']) ? $this->vars['L_LOGIN_LOGOUT'] : $this->lang('L_LOGIN_LOGOUT'); ?><?php echo isset($this->vars['L_REGISTER']) ? $this->vars['L_REGISTER'] : $this->lang('L_REGISTER'); ?><?php echo isset($this->vars['L_PROFILE']) ? $this->vars['L_PROFILE'] : $this->lang('L_PROFILE'); ?><?php echo isset($this->vars['PRIVATE_MESSAGE_INFO']) ? $this->vars['PRIVATE_MESSAGE_INFO'] : $this->lang('PRIVATE_MESSAGE_INFO'); ?><?php echo isset($this->vars['L_FAQ']) ? $this->vars['L_FAQ'] : $this->lang('L_FAQ'); ?><?php echo isset($this->vars['L_MEMBERLIST']) ? $this->vars['L_MEMBERLIST'] : $this->lang('L_MEMBERLIST'); ?><?php echo isset($this->vars['L_SEARCH']) ? $this->vars['L_SEARCH'] : $this->lang('L_SEARCH'); ?><?php echo isset($this->vars['L_USERGROUPS']) ? $this->vars['L_USERGROUPS'] : $this->lang('L_USERGROUPS'); ?><?php echo isset($this->vars['L_LOGIN_LOGOUT']) ? $this->vars['L_LOGIN_LOGOUT'] : $this->lang('L_LOGIN_LOGOUT'); ?><?php echo isset($this->vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?>
vars['SITE_DESCRIPTION']) ? $this->vars['SITE_DESCRIPTION'] : $this->lang('SITE_DESCRIPTION'); ?>
-
- -
- - - - - -
diff --git a/phpBB2/cache/tpl_Helius.viewforum_body.php b/phpBB2/cache/tpl_Helius.viewforum_body.php deleted file mode 100755 index 06c40e1..0000000 --- a/phpBB2/cache/tpl_Helius.viewforum_body.php +++ /dev/null @@ -1,126 +0,0 @@ - -
- - - - - - - - - - -
vars['L_MODERATOR']) ? $this->vars['L_MODERATOR'] : $this->lang('L_MODERATOR'); ?>: vars['MODERATORS']) ? $this->vars['MODERATORS'] : $this->lang('MODERATORS'); ?>
vars['LOGGED_IN_USER_LIST']) ? $this->vars['LOGGED_IN_USER_LIST'] : $this->lang('LOGGED_IN_USER_LIST'); ?>
vars['PAGINATION']) ? $this->vars['PAGINATION'] : $this->lang('PAGINATION'); ?>
<?php echo isset($this->vars['L_POST_NEW_TOPIC']) ? $this->vars['L_POST_NEW_TOPIC'] : $this->lang('L_POST_NEW_TOPIC'); ?>
- -vars['TPL_HDR1']) ? $this->vars['TPL_HDR1'] : $this->lang('TPL_HDR1'); ?>vars['FORUM_NAME']) ? $this->vars['FORUM_NAME'] : $this->lang('FORUM_NAME'); ?>vars['TPL_HDR2']) ? $this->vars['TPL_HDR2'] : $this->lang('TPL_HDR2'); ?> - - - - - - - - _tpldata['topicrow.']) ) ? sizeof($this->_tpldata['topicrow.']) : 0; -for ($topicrow_i = 0; $topicrow_i < $topicrow_count; $topicrow_i++) -{ - $topicrow_item = &$this->_tpldata['topicrow.'][$topicrow_i]; - $topicrow_item['S_ROW_COUNT'] = $topicrow_i; - $topicrow_item['S_NUM_ROWS'] = $topicrow_count; - -?> - - - - - - - - - - _tpldata['switch_no_topics.']) ) ? sizeof($this->_tpldata['switch_no_topics.']) : 0; -for ($switch_no_topics_i = 0; $switch_no_topics_i < $switch_no_topics_count; $switch_no_topics_i++) -{ - $switch_no_topics_item = &$this->_tpldata['switch_no_topics.'][$switch_no_topics_i]; - $switch_no_topics_item['S_ROW_COUNT'] = $switch_no_topics_i; - $switch_no_topics_item['S_NUM_ROWS'] = $switch_no_topics_count; - -?> - - - - - - - -
 vars['L_TOPICS']) ? $this->vars['L_TOPICS'] : $this->lang('L_TOPICS'); ?>  vars['L_REPLIES']) ? $this->vars['L_REPLIES'] : $this->lang('L_REPLIES'); ?>  vars['L_AUTHOR']) ? $this->vars['L_AUTHOR'] : $this->lang('L_AUTHOR'); ?>  vars['L_VIEWS']) ? $this->vars['L_VIEWS'] : $this->lang('L_VIEWS'); ?>  vars['L_LASTPOST']) ? $this->vars['L_LASTPOST'] : $this->lang('L_LASTPOST'); ?> 
<?php echo isset($topicrow_item['L_TOPIC_FOLDER_ALT']) ? $topicrow_item['L_TOPIC_FOLDER_ALT'] : ''; ?>
-

vars['L_NO_TOPICS']) ? $this->vars['L_NO_TOPICS'] : $this->lang('L_NO_TOPICS'); ?>
vars['L_DISPLAY_TOPICS']) ? $this->vars['L_DISPLAY_TOPICS'] : $this->lang('L_DISPLAY_TOPICS'); ?>: vars['S_SELECT_TOPIC_DAYS']) ? $this->vars['S_SELECT_TOPIC_DAYS'] : $this->lang('S_SELECT_TOPIC_DAYS'); ?>  - -
vars['TPL_FTR']) ? $this->vars['TPL_FTR'] : $this->lang('TPL_FTR'); ?> - - - - - - - - - - -
<?php echo isset($this->vars['L_POST_NEW_TOPIC']) ? $this->vars['L_POST_NEW_TOPIC'] : $this->lang('L_POST_NEW_TOPIC'); ?>   vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?> » vars['FORUM_NAME']) ? $this->vars['FORUM_NAME'] : $this->lang('FORUM_NAME'); ?>vars['S_TIMEZONE']) ? $this->vars['S_TIMEZONE'] : $this->lang('S_TIMEZONE'); ?>
vars['PAGINATION']) ? $this->vars['PAGINATION'] : $this->lang('PAGINATION'); ?> -
vars['PAGE_NUMBER']) ? $this->vars['PAGE_NUMBER'] : $this->lang('PAGE_NUMBER'); ?>
-
- - - - - -
vars['JUMPBOX']) ? $this->vars['JUMPBOX'] : $this->lang('JUMPBOX'); ?>
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
<?php echo isset($this->vars['L_NEW_POSTS']) ? $this->vars['L_NEW_POSTS'] : $this->lang('L_NEW_POSTS'); ?>vars['L_NEW_POSTS']) ? $this->vars['L_NEW_POSTS'] : $this->lang('L_NEW_POSTS'); ?>  <?php echo isset($this->vars['L_NO_NEW_POSTS']) ? $this->vars['L_NO_NEW_POSTS'] : $this->lang('L_NO_NEW_POSTS'); ?>vars['L_NO_NEW_POSTS']) ? $this->vars['L_NO_NEW_POSTS'] : $this->lang('L_NO_NEW_POSTS'); ?>
<?php echo isset($this->vars['L_NEW_POSTS_HOT']) ? $this->vars['L_NEW_POSTS_HOT'] : $this->lang('L_NEW_POSTS_HOT'); ?>vars['L_NEW_POSTS_HOT']) ? $this->vars['L_NEW_POSTS_HOT'] : $this->lang('L_NEW_POSTS_HOT'); ?>  <?php echo isset($this->vars['L_NO_NEW_POSTS_HOT']) ? $this->vars['L_NO_NEW_POSTS_HOT'] : $this->lang('L_NO_NEW_POSTS_HOT'); ?>vars['L_NO_NEW_POSTS_HOT']) ? $this->vars['L_NO_NEW_POSTS_HOT'] : $this->lang('L_NO_NEW_POSTS_HOT'); ?>
<?php echo isset($this->vars['L_NEW_POSTS_TOPIC_LOCKED']) ? $this->vars['L_NEW_POSTS_TOPIC_LOCKED'] : $this->lang('L_NEW_POSTS_TOPIC_LOCKED'); ?>vars['L_NEW_POSTS_LOCKED']) ? $this->vars['L_NEW_POSTS_LOCKED'] : $this->lang('L_NEW_POSTS_LOCKED'); ?>  <?php echo isset($this->vars['L_NO_NEW_POSTS_TOPIC_LOCKED']) ? $this->vars['L_NO_NEW_POSTS_TOPIC_LOCKED'] : $this->lang('L_NO_NEW_POSTS_TOPIC_LOCKED'); ?>vars['L_NO_NEW_POSTS_LOCKED']) ? $this->vars['L_NO_NEW_POSTS_LOCKED'] : $this->lang('L_NO_NEW_POSTS_LOCKED'); ?>
vars['S_AUTH_LIST']) ? $this->vars['S_AUTH_LIST'] : $this->lang('S_AUTH_LIST'); ?>
diff --git a/phpBB2/cache/tpl_subSilver.admin.admin_message_body.php b/phpBB2/cache/tpl_subSilver.admin.admin_message_body.php deleted file mode 100644 index 36d68de..0000000 --- a/phpBB2/cache/tpl_subSilver.admin.admin_message_body.php +++ /dev/null @@ -1,17 +0,0 @@ - -

- - - - - - - - -
vars['MESSAGE_TITLE']) ? $this->vars['MESSAGE_TITLE'] : $this->lang('MESSAGE_TITLE'); ?>
vars['MESSAGE_TEXT']) ? $this->vars['MESSAGE_TEXT'] : $this->lang('MESSAGE_TEXT'); ?>
- -
diff --git a/phpBB2/cache/tpl_subSilver.admin.board_config_body.php b/phpBB2/cache/tpl_subSilver.admin.board_config_body.php deleted file mode 100644 index 3bdc344..0000000 --- a/phpBB2/cache/tpl_subSilver.admin.board_config_body.php +++ /dev/null @@ -1,256 +0,0 @@ - -

vars['L_CONFIGURATION_TITLE']) ? $this->vars['L_CONFIGURATION_TITLE'] : $this->lang('L_CONFIGURATION_TITLE'); ?>

- -

vars['L_CONFIGURATION_EXPLAIN']) ? $this->vars['L_CONFIGURATION_EXPLAIN'] : $this->lang('L_CONFIGURATION_EXPLAIN'); ?>

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
vars['L_GENERAL_SETTINGS']) ? $this->vars['L_GENERAL_SETTINGS'] : $this->lang('L_GENERAL_SETTINGS'); ?>
vars['L_SERVER_NAME']) ? $this->vars['L_SERVER_NAME'] : $this->lang('L_SERVER_NAME'); ?>
vars['L_SERVER_PORT']) ? $this->vars['L_SERVER_PORT'] : $this->lang('L_SERVER_PORT'); ?>
vars['L_SERVER_PORT_EXPLAIN']) ? $this->vars['L_SERVER_PORT_EXPLAIN'] : $this->lang('L_SERVER_PORT_EXPLAIN'); ?>
vars['L_SCRIPT_PATH']) ? $this->vars['L_SCRIPT_PATH'] : $this->lang('L_SCRIPT_PATH'); ?>
vars['L_SCRIPT_PATH_EXPLAIN']) ? $this->vars['L_SCRIPT_PATH_EXPLAIN'] : $this->lang('L_SCRIPT_PATH_EXPLAIN'); ?>
vars['L_SITE_NAME']) ? $this->vars['L_SITE_NAME'] : $this->lang('L_SITE_NAME'); ?>
vars['L_SITE_NAME_EXPLAIN']) ? $this->vars['L_SITE_NAME_EXPLAIN'] : $this->lang('L_SITE_NAME_EXPLAIN'); ?>
vars['L_SITE_DESCRIPTION']) ? $this->vars['L_SITE_DESCRIPTION'] : $this->lang('L_SITE_DESCRIPTION'); ?>
vars['L_DISABLE_BOARD']) ? $this->vars['L_DISABLE_BOARD'] : $this->lang('L_DISABLE_BOARD'); ?>
vars['L_DISABLE_BOARD_EXPLAIN']) ? $this->vars['L_DISABLE_BOARD_EXPLAIN'] : $this->lang('L_DISABLE_BOARD_EXPLAIN'); ?>
vars['S_DISABLE_BOARD_YES']) ? $this->vars['S_DISABLE_BOARD_YES'] : $this->lang('S_DISABLE_BOARD_YES'); ?> /> vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>  vars['S_DISABLE_BOARD_NO']) ? $this->vars['S_DISABLE_BOARD_NO'] : $this->lang('S_DISABLE_BOARD_NO'); ?> /> vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_ACCT_ACTIVATION']) ? $this->vars['L_ACCT_ACTIVATION'] : $this->lang('L_ACCT_ACTIVATION'); ?>vars['ACTIVATION_NONE_CHECKED']) ? $this->vars['ACTIVATION_NONE_CHECKED'] : $this->lang('ACTIVATION_NONE_CHECKED'); ?> />vars['L_NONE']) ? $this->vars['L_NONE'] : $this->lang('L_NONE'); ?>   vars['ACTIVATION_USER_CHECKED']) ? $this->vars['ACTIVATION_USER_CHECKED'] : $this->lang('ACTIVATION_USER_CHECKED'); ?> />vars['L_USER']) ? $this->vars['L_USER'] : $this->lang('L_USER'); ?>   vars['ACTIVATION_ADMIN_CHECKED']) ? $this->vars['ACTIVATION_ADMIN_CHECKED'] : $this->lang('ACTIVATION_ADMIN_CHECKED'); ?> />vars['L_ADMIN']) ? $this->vars['L_ADMIN'] : $this->lang('L_ADMIN'); ?>
vars['L_VISUAL_CONFIRM']) ? $this->vars['L_VISUAL_CONFIRM'] : $this->lang('L_VISUAL_CONFIRM'); ?>
vars['L_VISUAL_CONFIRM_EXPLAIN']) ? $this->vars['L_VISUAL_CONFIRM_EXPLAIN'] : $this->lang('L_VISUAL_CONFIRM_EXPLAIN'); ?>
vars['CONFIRM_ENABLE']) ? $this->vars['CONFIRM_ENABLE'] : $this->lang('CONFIRM_ENABLE'); ?> />vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>   vars['CONFIRM_DISABLE']) ? $this->vars['CONFIRM_DISABLE'] : $this->lang('CONFIRM_DISABLE'); ?> />vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_BOARD_EMAIL_FORM']) ? $this->vars['L_BOARD_EMAIL_FORM'] : $this->lang('L_BOARD_EMAIL_FORM'); ?>
vars['L_BOARD_EMAIL_FORM_EXPLAIN']) ? $this->vars['L_BOARD_EMAIL_FORM_EXPLAIN'] : $this->lang('L_BOARD_EMAIL_FORM_EXPLAIN'); ?>
vars['BOARD_EMAIL_FORM_ENABLE']) ? $this->vars['BOARD_EMAIL_FORM_ENABLE'] : $this->lang('BOARD_EMAIL_FORM_ENABLE'); ?> /> vars['L_ENABLED']) ? $this->vars['L_ENABLED'] : $this->lang('L_ENABLED'); ?>  vars['BOARD_EMAIL_FORM_DISABLE']) ? $this->vars['BOARD_EMAIL_FORM_DISABLE'] : $this->lang('BOARD_EMAIL_FORM_DISABLE'); ?> /> vars['L_DISABLED']) ? $this->vars['L_DISABLED'] : $this->lang('L_DISABLED'); ?>
vars['L_FLOOD_INTERVAL']) ? $this->vars['L_FLOOD_INTERVAL'] : $this->lang('L_FLOOD_INTERVAL'); ?>
vars['L_FLOOD_INTERVAL_EXPLAIN']) ? $this->vars['L_FLOOD_INTERVAL_EXPLAIN'] : $this->lang('L_FLOOD_INTERVAL_EXPLAIN'); ?>
vars['L_TOPICS_PER_PAGE']) ? $this->vars['L_TOPICS_PER_PAGE'] : $this->lang('L_TOPICS_PER_PAGE'); ?>
vars['L_POSTS_PER_PAGE']) ? $this->vars['L_POSTS_PER_PAGE'] : $this->lang('L_POSTS_PER_PAGE'); ?>
vars['L_HOT_THRESHOLD']) ? $this->vars['L_HOT_THRESHOLD'] : $this->lang('L_HOT_THRESHOLD'); ?>
vars['L_DEFAULT_STYLE']) ? $this->vars['L_DEFAULT_STYLE'] : $this->lang('L_DEFAULT_STYLE'); ?>vars['STYLE_SELECT']) ? $this->vars['STYLE_SELECT'] : $this->lang('STYLE_SELECT'); ?>
vars['L_OVERRIDE_STYLE']) ? $this->vars['L_OVERRIDE_STYLE'] : $this->lang('L_OVERRIDE_STYLE'); ?>
vars['L_OVERRIDE_STYLE_EXPLAIN']) ? $this->vars['L_OVERRIDE_STYLE_EXPLAIN'] : $this->lang('L_OVERRIDE_STYLE_EXPLAIN'); ?>
vars['OVERRIDE_STYLE_YES']) ? $this->vars['OVERRIDE_STYLE_YES'] : $this->lang('OVERRIDE_STYLE_YES'); ?> /> vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>  vars['OVERRIDE_STYLE_NO']) ? $this->vars['OVERRIDE_STYLE_NO'] : $this->lang('OVERRIDE_STYLE_NO'); ?> /> vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_DEFAULT_LANGUAGE']) ? $this->vars['L_DEFAULT_LANGUAGE'] : $this->lang('L_DEFAULT_LANGUAGE'); ?>vars['LANG_SELECT']) ? $this->vars['LANG_SELECT'] : $this->lang('LANG_SELECT'); ?>
vars['L_DATE_FORMAT']) ? $this->vars['L_DATE_FORMAT'] : $this->lang('L_DATE_FORMAT'); ?>
vars['L_DATE_FORMAT_EXPLAIN']) ? $this->vars['L_DATE_FORMAT_EXPLAIN'] : $this->lang('L_DATE_FORMAT_EXPLAIN'); ?>
vars['L_SYSTEM_TIMEZONE']) ? $this->vars['L_SYSTEM_TIMEZONE'] : $this->lang('L_SYSTEM_TIMEZONE'); ?>vars['TIMEZONE_SELECT']) ? $this->vars['TIMEZONE_SELECT'] : $this->lang('TIMEZONE_SELECT'); ?>
vars['L_ENABLE_GZIP']) ? $this->vars['L_ENABLE_GZIP'] : $this->lang('L_ENABLE_GZIP'); ?>vars['GZIP_YES']) ? $this->vars['GZIP_YES'] : $this->lang('GZIP_YES'); ?> /> vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>  vars['GZIP_NO']) ? $this->vars['GZIP_NO'] : $this->lang('GZIP_NO'); ?> /> vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_ENABLE_PRUNE']) ? $this->vars['L_ENABLE_PRUNE'] : $this->lang('L_ENABLE_PRUNE'); ?>vars['PRUNE_YES']) ? $this->vars['PRUNE_YES'] : $this->lang('PRUNE_YES'); ?> /> vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>  vars['PRUNE_NO']) ? $this->vars['PRUNE_NO'] : $this->lang('PRUNE_NO'); ?> /> vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_COOKIE_SETTINGS']) ? $this->vars['L_COOKIE_SETTINGS'] : $this->lang('L_COOKIE_SETTINGS'); ?>
vars['L_COOKIE_SETTINGS_EXPLAIN']) ? $this->vars['L_COOKIE_SETTINGS_EXPLAIN'] : $this->lang('L_COOKIE_SETTINGS_EXPLAIN'); ?>
vars['L_COOKIE_DOMAIN']) ? $this->vars['L_COOKIE_DOMAIN'] : $this->lang('L_COOKIE_DOMAIN'); ?>
vars['L_COOKIE_NAME']) ? $this->vars['L_COOKIE_NAME'] : $this->lang('L_COOKIE_NAME'); ?>
vars['L_COOKIE_PATH']) ? $this->vars['L_COOKIE_PATH'] : $this->lang('L_COOKIE_PATH'); ?>
vars['L_COOKIE_SECURE']) ? $this->vars['L_COOKIE_SECURE'] : $this->lang('L_COOKIE_SECURE'); ?>
vars['L_COOKIE_SECURE_EXPLAIN']) ? $this->vars['L_COOKIE_SECURE_EXPLAIN'] : $this->lang('L_COOKIE_SECURE_EXPLAIN'); ?>
vars['S_COOKIE_SECURE_DISABLED']) ? $this->vars['S_COOKIE_SECURE_DISABLED'] : $this->lang('S_COOKIE_SECURE_DISABLED'); ?> />vars['L_DISABLED']) ? $this->vars['L_DISABLED'] : $this->lang('L_DISABLED'); ?>   vars['S_COOKIE_SECURE_ENABLED']) ? $this->vars['S_COOKIE_SECURE_ENABLED'] : $this->lang('S_COOKIE_SECURE_ENABLED'); ?> />vars['L_ENABLED']) ? $this->vars['L_ENABLED'] : $this->lang('L_ENABLED'); ?>
vars['L_SESSION_LENGTH']) ? $this->vars['L_SESSION_LENGTH'] : $this->lang('L_SESSION_LENGTH'); ?>
vars['L_PRIVATE_MESSAGING']) ? $this->vars['L_PRIVATE_MESSAGING'] : $this->lang('L_PRIVATE_MESSAGING'); ?>
vars['L_DISABLE_PRIVATE_MESSAGING']) ? $this->vars['L_DISABLE_PRIVATE_MESSAGING'] : $this->lang('L_DISABLE_PRIVATE_MESSAGING'); ?>vars['S_PRIVMSG_ENABLED']) ? $this->vars['S_PRIVMSG_ENABLED'] : $this->lang('S_PRIVMSG_ENABLED'); ?> />vars['L_ENABLED']) ? $this->vars['L_ENABLED'] : $this->lang('L_ENABLED'); ?>   vars['S_PRIVMSG_DISABLED']) ? $this->vars['S_PRIVMSG_DISABLED'] : $this->lang('S_PRIVMSG_DISABLED'); ?> />vars['L_DISABLED']) ? $this->vars['L_DISABLED'] : $this->lang('L_DISABLED'); ?>
vars['L_INBOX_LIMIT']) ? $this->vars['L_INBOX_LIMIT'] : $this->lang('L_INBOX_LIMIT'); ?>
vars['L_SENTBOX_LIMIT']) ? $this->vars['L_SENTBOX_LIMIT'] : $this->lang('L_SENTBOX_LIMIT'); ?>
vars['L_SAVEBOX_LIMIT']) ? $this->vars['L_SAVEBOX_LIMIT'] : $this->lang('L_SAVEBOX_LIMIT'); ?>
vars['L_ABILITIES_SETTINGS']) ? $this->vars['L_ABILITIES_SETTINGS'] : $this->lang('L_ABILITIES_SETTINGS'); ?>
vars['L_MAX_POLL_OPTIONS']) ? $this->vars['L_MAX_POLL_OPTIONS'] : $this->lang('L_MAX_POLL_OPTIONS'); ?>
vars['L_ALLOW_HTML']) ? $this->vars['L_ALLOW_HTML'] : $this->lang('L_ALLOW_HTML'); ?>vars['HTML_YES']) ? $this->vars['HTML_YES'] : $this->lang('HTML_YES'); ?> /> vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>  vars['HTML_NO']) ? $this->vars['HTML_NO'] : $this->lang('HTML_NO'); ?> /> vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_ALLOWED_TAGS']) ? $this->vars['L_ALLOWED_TAGS'] : $this->lang('L_ALLOWED_TAGS'); ?>
vars['L_ALLOWED_TAGS_EXPLAIN']) ? $this->vars['L_ALLOWED_TAGS_EXPLAIN'] : $this->lang('L_ALLOWED_TAGS_EXPLAIN'); ?>
vars['L_ALLOW_BBCODE']) ? $this->vars['L_ALLOW_BBCODE'] : $this->lang('L_ALLOW_BBCODE'); ?>vars['BBCODE_YES']) ? $this->vars['BBCODE_YES'] : $this->lang('BBCODE_YES'); ?> /> vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>  vars['BBCODE_NO']) ? $this->vars['BBCODE_NO'] : $this->lang('BBCODE_NO'); ?> /> vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_ALLOW_SMILIES']) ? $this->vars['L_ALLOW_SMILIES'] : $this->lang('L_ALLOW_SMILIES'); ?>vars['SMILE_YES']) ? $this->vars['SMILE_YES'] : $this->lang('SMILE_YES'); ?> /> vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>  vars['SMILE_NO']) ? $this->vars['SMILE_NO'] : $this->lang('SMILE_NO'); ?> /> vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_SMILIES_PATH']) ? $this->vars['L_SMILIES_PATH'] : $this->lang('L_SMILIES_PATH'); ?>
vars['L_SMILIES_PATH_EXPLAIN']) ? $this->vars['L_SMILIES_PATH_EXPLAIN'] : $this->lang('L_SMILIES_PATH_EXPLAIN'); ?>
vars['L_ALLOW_SIG']) ? $this->vars['L_ALLOW_SIG'] : $this->lang('L_ALLOW_SIG'); ?>vars['SIG_YES']) ? $this->vars['SIG_YES'] : $this->lang('SIG_YES'); ?> /> vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>  vars['SIG_NO']) ? $this->vars['SIG_NO'] : $this->lang('SIG_NO'); ?> /> vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_MAX_SIG_LENGTH']) ? $this->vars['L_MAX_SIG_LENGTH'] : $this->lang('L_MAX_SIG_LENGTH'); ?>
vars['L_MAX_SIG_LENGTH_EXPLAIN']) ? $this->vars['L_MAX_SIG_LENGTH_EXPLAIN'] : $this->lang('L_MAX_SIG_LENGTH_EXPLAIN'); ?>
vars['L_ALLOW_NAME_CHANGE']) ? $this->vars['L_ALLOW_NAME_CHANGE'] : $this->lang('L_ALLOW_NAME_CHANGE'); ?>vars['NAMECHANGE_YES']) ? $this->vars['NAMECHANGE_YES'] : $this->lang('NAMECHANGE_YES'); ?> /> vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>  vars['NAMECHANGE_NO']) ? $this->vars['NAMECHANGE_NO'] : $this->lang('NAMECHANGE_NO'); ?> /> vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_AVATAR_SETTINGS']) ? $this->vars['L_AVATAR_SETTINGS'] : $this->lang('L_AVATAR_SETTINGS'); ?>
vars['L_ALLOW_LOCAL']) ? $this->vars['L_ALLOW_LOCAL'] : $this->lang('L_ALLOW_LOCAL'); ?>vars['AVATARS_LOCAL_YES']) ? $this->vars['AVATARS_LOCAL_YES'] : $this->lang('AVATARS_LOCAL_YES'); ?> /> vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>  vars['AVATARS_LOCAL_NO']) ? $this->vars['AVATARS_LOCAL_NO'] : $this->lang('AVATARS_LOCAL_NO'); ?> /> vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_ALLOW_REMOTE']) ? $this->vars['L_ALLOW_REMOTE'] : $this->lang('L_ALLOW_REMOTE'); ?>
vars['L_ALLOW_REMOTE_EXPLAIN']) ? $this->vars['L_ALLOW_REMOTE_EXPLAIN'] : $this->lang('L_ALLOW_REMOTE_EXPLAIN'); ?>
vars['AVATARS_REMOTE_YES']) ? $this->vars['AVATARS_REMOTE_YES'] : $this->lang('AVATARS_REMOTE_YES'); ?> /> vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>  vars['AVATARS_REMOTE_NO']) ? $this->vars['AVATARS_REMOTE_NO'] : $this->lang('AVATARS_REMOTE_NO'); ?> /> vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_ALLOW_UPLOAD']) ? $this->vars['L_ALLOW_UPLOAD'] : $this->lang('L_ALLOW_UPLOAD'); ?>vars['AVATARS_UPLOAD_YES']) ? $this->vars['AVATARS_UPLOAD_YES'] : $this->lang('AVATARS_UPLOAD_YES'); ?> /> vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>  vars['AVATARS_UPLOAD_NO']) ? $this->vars['AVATARS_UPLOAD_NO'] : $this->lang('AVATARS_UPLOAD_NO'); ?> /> vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_MAX_FILESIZE']) ? $this->vars['L_MAX_FILESIZE'] : $this->lang('L_MAX_FILESIZE'); ?>
vars['L_MAX_FILESIZE_EXPLAIN']) ? $this->vars['L_MAX_FILESIZE_EXPLAIN'] : $this->lang('L_MAX_FILESIZE_EXPLAIN'); ?>
Bytes
vars['L_MAX_AVATAR_SIZE']) ? $this->vars['L_MAX_AVATAR_SIZE'] : $this->lang('L_MAX_AVATAR_SIZE'); ?>
- vars['L_MAX_AVATAR_SIZE_EXPLAIN']) ? $this->vars['L_MAX_AVATAR_SIZE_EXPLAIN'] : $this->lang('L_MAX_AVATAR_SIZE_EXPLAIN'); ?> -
x
vars['L_AVATAR_STORAGE_PATH']) ? $this->vars['L_AVATAR_STORAGE_PATH'] : $this->lang('L_AVATAR_STORAGE_PATH'); ?>
vars['L_AVATAR_STORAGE_PATH_EXPLAIN']) ? $this->vars['L_AVATAR_STORAGE_PATH_EXPLAIN'] : $this->lang('L_AVATAR_STORAGE_PATH_EXPLAIN'); ?>
vars['L_AVATAR_GALLERY_PATH']) ? $this->vars['L_AVATAR_GALLERY_PATH'] : $this->lang('L_AVATAR_GALLERY_PATH'); ?>
vars['L_AVATAR_GALLERY_PATH_EXPLAIN']) ? $this->vars['L_AVATAR_GALLERY_PATH_EXPLAIN'] : $this->lang('L_AVATAR_GALLERY_PATH_EXPLAIN'); ?>
vars['L_COPPA_SETTINGS']) ? $this->vars['L_COPPA_SETTINGS'] : $this->lang('L_COPPA_SETTINGS'); ?>
vars['L_COPPA_FAX']) ? $this->vars['L_COPPA_FAX'] : $this->lang('L_COPPA_FAX'); ?>
vars['L_COPPA_MAIL']) ? $this->vars['L_COPPA_MAIL'] : $this->lang('L_COPPA_MAIL'); ?>
vars['L_COPPA_MAIL_EXPLAIN']) ? $this->vars['L_COPPA_MAIL_EXPLAIN'] : $this->lang('L_COPPA_MAIL_EXPLAIN'); ?>
vars['L_EMAIL_SETTINGS']) ? $this->vars['L_EMAIL_SETTINGS'] : $this->lang('L_EMAIL_SETTINGS'); ?>
vars['L_ADMIN_EMAIL']) ? $this->vars['L_ADMIN_EMAIL'] : $this->lang('L_ADMIN_EMAIL'); ?>
vars['L_EMAIL_SIG']) ? $this->vars['L_EMAIL_SIG'] : $this->lang('L_EMAIL_SIG'); ?>
vars['L_EMAIL_SIG_EXPLAIN']) ? $this->vars['L_EMAIL_SIG_EXPLAIN'] : $this->lang('L_EMAIL_SIG_EXPLAIN'); ?>
vars['L_USE_SMTP']) ? $this->vars['L_USE_SMTP'] : $this->lang('L_USE_SMTP'); ?>
vars['L_USE_SMTP_EXPLAIN']) ? $this->vars['L_USE_SMTP_EXPLAIN'] : $this->lang('L_USE_SMTP_EXPLAIN'); ?>
vars['SMTP_YES']) ? $this->vars['SMTP_YES'] : $this->lang('SMTP_YES'); ?> /> vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>  vars['SMTP_NO']) ? $this->vars['SMTP_NO'] : $this->lang('SMTP_NO'); ?> /> vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_SMTP_SERVER']) ? $this->vars['L_SMTP_SERVER'] : $this->lang('L_SMTP_SERVER'); ?>
vars['L_SMTP_USERNAME']) ? $this->vars['L_SMTP_USERNAME'] : $this->lang('L_SMTP_USERNAME'); ?>
vars['L_SMTP_USERNAME_EXPLAIN']) ? $this->vars['L_SMTP_USERNAME_EXPLAIN'] : $this->lang('L_SMTP_USERNAME_EXPLAIN'); ?>
vars['L_SMTP_PASSWORD']) ? $this->vars['L_SMTP_PASSWORD'] : $this->lang('L_SMTP_PASSWORD'); ?>
vars['L_SMTP_PASSWORD_EXPLAIN']) ? $this->vars['L_SMTP_PASSWORD_EXPLAIN'] : $this->lang('L_SMTP_PASSWORD_EXPLAIN'); ?>
vars['S_HIDDEN_FIELDS']) ? $this->vars['S_HIDDEN_FIELDS'] : $this->lang('S_HIDDEN_FIELDS'); ?>   -
- -
diff --git a/phpBB2/cache/tpl_subSilver.admin.db_utils_backup_body.php b/phpBB2/cache/tpl_subSilver.admin.db_utils_backup_body.php deleted file mode 100644 index e94d85b..0000000 --- a/phpBB2/cache/tpl_subSilver.admin.db_utils_backup_body.php +++ /dev/null @@ -1,37 +0,0 @@ - -

vars['L_DATABASE_BACKUP']) ? $this->vars['L_DATABASE_BACKUP'] : $this->lang('L_DATABASE_BACKUP'); ?>

- -

vars['L_BACKUP_EXPLAIN']) ? $this->vars['L_BACKUP_EXPLAIN'] : $this->lang('L_BACKUP_EXPLAIN'); ?>

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
vars['L_BACKUP_OPTIONS']) ? $this->vars['L_BACKUP_OPTIONS'] : $this->lang('L_BACKUP_OPTIONS'); ?>
vars['L_FULL_BACKUP']) ? $this->vars['L_FULL_BACKUP'] : $this->lang('L_FULL_BACKUP'); ?>
vars['L_STRUCTURE_BACKUP']) ? $this->vars['L_STRUCTURE_BACKUP'] : $this->lang('L_STRUCTURE_BACKUP'); ?>
vars['L_DATA_BACKUP']) ? $this->vars['L_DATA_BACKUP'] : $this->lang('L_DATA_BACKUP'); ?>
vars['L_ADDITIONAL_TABLES']) ? $this->vars['L_ADDITIONAL_TABLES'] : $this->lang('L_ADDITIONAL_TABLES'); ?>
vars['L_GZIP_COMPRESS']) ? $this->vars['L_GZIP_COMPRESS'] : $this->lang('L_GZIP_COMPRESS'); ?>vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>  vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>
vars['S_HIDDEN_FIELDS']) ? $this->vars['S_HIDDEN_FIELDS'] : $this->lang('S_HIDDEN_FIELDS'); ?>
diff --git a/phpBB2/cache/tpl_subSilver.admin.index_body.php b/phpBB2/cache/tpl_subSilver.admin.index_body.php deleted file mode 100644 index 22217b2..0000000 --- a/phpBB2/cache/tpl_subSilver.admin.index_body.php +++ /dev/null @@ -1,119 +0,0 @@ - -

vars['L_WELCOME']) ? $this->vars['L_WELCOME'] : $this->lang('L_WELCOME'); ?>

- -

vars['L_ADMIN_INTRO']) ? $this->vars['L_ADMIN_INTRO'] : $this->lang('L_ADMIN_INTRO'); ?>

- -

vars['L_FORUM_STATS']) ? $this->vars['L_FORUM_STATS'] : $this->lang('L_FORUM_STATS'); ?>

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
vars['L_STATISTIC']) ? $this->vars['L_STATISTIC'] : $this->lang('L_STATISTIC'); ?>vars['L_VALUE']) ? $this->vars['L_VALUE'] : $this->lang('L_VALUE'); ?>vars['L_STATISTIC']) ? $this->vars['L_STATISTIC'] : $this->lang('L_STATISTIC'); ?>vars['L_VALUE']) ? $this->vars['L_VALUE'] : $this->lang('L_VALUE'); ?>
vars['L_NUMBER_POSTS']) ? $this->vars['L_NUMBER_POSTS'] : $this->lang('L_NUMBER_POSTS'); ?>:vars['NUMBER_OF_POSTS']) ? $this->vars['NUMBER_OF_POSTS'] : $this->lang('NUMBER_OF_POSTS'); ?>vars['L_POSTS_PER_DAY']) ? $this->vars['L_POSTS_PER_DAY'] : $this->lang('L_POSTS_PER_DAY'); ?>:vars['POSTS_PER_DAY']) ? $this->vars['POSTS_PER_DAY'] : $this->lang('POSTS_PER_DAY'); ?>
vars['L_NUMBER_TOPICS']) ? $this->vars['L_NUMBER_TOPICS'] : $this->lang('L_NUMBER_TOPICS'); ?>:vars['NUMBER_OF_TOPICS']) ? $this->vars['NUMBER_OF_TOPICS'] : $this->lang('NUMBER_OF_TOPICS'); ?>vars['L_TOPICS_PER_DAY']) ? $this->vars['L_TOPICS_PER_DAY'] : $this->lang('L_TOPICS_PER_DAY'); ?>:vars['TOPICS_PER_DAY']) ? $this->vars['TOPICS_PER_DAY'] : $this->lang('TOPICS_PER_DAY'); ?>
vars['L_NUMBER_USERS']) ? $this->vars['L_NUMBER_USERS'] : $this->lang('L_NUMBER_USERS'); ?>:vars['NUMBER_OF_USERS']) ? $this->vars['NUMBER_OF_USERS'] : $this->lang('NUMBER_OF_USERS'); ?>vars['L_USERS_PER_DAY']) ? $this->vars['L_USERS_PER_DAY'] : $this->lang('L_USERS_PER_DAY'); ?>:vars['USERS_PER_DAY']) ? $this->vars['USERS_PER_DAY'] : $this->lang('USERS_PER_DAY'); ?>
vars['L_BOARD_STARTED']) ? $this->vars['L_BOARD_STARTED'] : $this->lang('L_BOARD_STARTED'); ?>:vars['START_DATE']) ? $this->vars['START_DATE'] : $this->lang('START_DATE'); ?>vars['L_AVATAR_DIR_SIZE']) ? $this->vars['L_AVATAR_DIR_SIZE'] : $this->lang('L_AVATAR_DIR_SIZE'); ?>:vars['AVATAR_DIR_SIZE']) ? $this->vars['AVATAR_DIR_SIZE'] : $this->lang('AVATAR_DIR_SIZE'); ?>
vars['L_DB_SIZE']) ? $this->vars['L_DB_SIZE'] : $this->lang('L_DB_SIZE'); ?>:vars['DB_SIZE']) ? $this->vars['DB_SIZE'] : $this->lang('DB_SIZE'); ?>vars['L_GZIP_COMPRESSION']) ? $this->vars['L_GZIP_COMPRESSION'] : $this->lang('L_GZIP_COMPRESSION'); ?>:vars['GZIP_COMPRESSION']) ? $this->vars['GZIP_COMPRESSION'] : $this->lang('GZIP_COMPRESSION'); ?>
-

vars['L_WHO_IS_ONLINE']) ? $this->vars['L_WHO_IS_ONLINE'] : $this->lang('L_WHO_IS_ONLINE'); ?>

- - - - - - - - - - _tpldata['reg_user_row.']) ) ? sizeof($this->_tpldata['reg_user_row.']) : 0; -for ($reg_user_row_i = 0; $reg_user_row_i < $reg_user_row_count; $reg_user_row_i++) -{ - $reg_user_row_item = &$this->_tpldata['reg_user_row.'][$reg_user_row_i]; - $reg_user_row_item['S_ROW_COUNT'] = $reg_user_row_i; - $reg_user_row_item['S_NUM_ROWS'] = $reg_user_row_count; - -?> - - - - - - - - - - - - _tpldata['guest_user_row.']) ) ? sizeof($this->_tpldata['guest_user_row.']) : 0; -for ($guest_user_row_i = 0; $guest_user_row_i < $guest_user_row_count; $guest_user_row_i++) -{ - $guest_user_row_item = &$this->_tpldata['guest_user_row.'][$guest_user_row_i]; - $guest_user_row_item['S_ROW_COUNT'] = $guest_user_row_i; - $guest_user_row_item['S_NUM_ROWS'] = $guest_user_row_count; - -?> - - - - - - - - -
 vars['L_USERNAME']) ? $this->vars['L_USERNAME'] : $this->lang('L_USERNAME'); ?>  vars['L_STARTED']) ? $this->vars['L_STARTED'] : $this->lang('L_STARTED'); ?>  vars['L_LAST_UPDATE']) ? $this->vars['L_LAST_UPDATE'] : $this->lang('L_LAST_UPDATE'); ?>  vars['L_FORUM_LOCATION']) ? $this->vars['L_FORUM_LOCATION'] : $this->lang('L_FORUM_LOCATION'); ?>  vars['L_IP_ADDRESS']) ? $this->vars['L_IP_ADDRESS'] : $this->lang('L_IP_ADDRESS'); ?> 
          
.
          
- -
- -

vars['L_VERSION_INFORMATION']) ? $this->vars['L_VERSION_INFORMATION'] : $this->lang('L_VERSION_INFORMATION'); ?>

- -vars['VERSION_INFO']) ? $this->vars['VERSION_INFO'] : $this->lang('VERSION_INFO'); ?> - -
diff --git a/phpBB2/cache/tpl_subSilver.admin.index_frameset.php b/phpBB2/cache/tpl_subSilver.admin.index_frameset.php deleted file mode 100644 index 031cec9..0000000 --- a/phpBB2/cache/tpl_subSilver.admin.index_frameset.php +++ /dev/null @@ -1,21 +0,0 @@ - - -phpBB Administration - - - - - - - - - - <body bgcolor="#FFFFFF" text="#000000"> - <p>Sorry, your browser doesn't seem to support frames</p> - </body> - - \ No newline at end of file diff --git a/phpBB2/cache/tpl_subSilver.admin.index_navigate.php b/phpBB2/cache/tpl_subSilver.admin.index_navigate.php deleted file mode 100644 index e73d663..0000000 --- a/phpBB2/cache/tpl_subSilver.admin.index_navigate.php +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - -
- - - - - - - - - - - - - - _tpldata['catrow.']) ) ? sizeof($this->_tpldata['catrow.']) : 0; -for ($catrow_i = 0; $catrow_i < $catrow_count; $catrow_i++) -{ - $catrow_item = &$this->_tpldata['catrow.'][$catrow_i]; - $catrow_item['S_ROW_COUNT'] = $catrow_i; - $catrow_item['S_NUM_ROWS'] = $catrow_count; - -?> - - - - - - - - - -
vars['L_ADMIN']) ? $this->vars['L_ADMIN'] : $this->lang('L_ADMIN'); ?>
vars['L_ADMIN_INDEX']) ? $this->vars['L_ADMIN_INDEX'] : $this->lang('L_ADMIN_INDEX'); ?>
vars['L_FORUM_INDEX']) ? $this->vars['L_FORUM_INDEX'] : $this->lang('L_FORUM_INDEX'); ?>
vars['L_PREVIEW_FORUM']) ? $this->vars['L_PREVIEW_FORUM'] : $this->lang('L_PREVIEW_FORUM'); ?>
-
-
- -
diff --git a/phpBB2/cache/tpl_subSilver.admin.page_footer.php b/phpBB2/cache/tpl_subSilver.admin.page_footer.php deleted file mode 100644 index a59395e..0000000 --- a/phpBB2/cache/tpl_subSilver.admin.page_footer.php +++ /dev/null @@ -1,26 +0,0 @@ - - - -
Powered by phpBB vars['PHPBB_VERSION']) ? $this->vars['PHPBB_VERSION'] : $this->lang('PHPBB_VERSION'); ?> © 2001 phpBB Group
vars['TRANSLATION_INFO']) ? $this->vars['TRANSLATION_INFO'] : $this->lang('TRANSLATION_INFO'); ?>
- - - \ No newline at end of file diff --git a/phpBB2/cache/tpl_subSilver.admin.page_header.php b/phpBB2/cache/tpl_subSilver.admin.page_header.php deleted file mode 100644 index e250cca..0000000 --- a/phpBB2/cache/tpl_subSilver.admin.page_header.php +++ /dev/null @@ -1,230 +0,0 @@ - - - -vars['META']) ? $this->vars['META'] : $this->lang('META'); ?> - - - -<?php echo isset($this->vars['SITENAME']) ? $this->vars['SITENAME'] : $this->lang('SITENAME'); ?> - <?php echo isset($this->vars['L_PHPBB_ADMIN']) ? $this->vars['L_PHPBB_ADMIN'] : $this->lang('L_PHPBB_ADMIN'); ?> - - - - diff --git a/phpBB2/cache/tpl_subSilver.admin.user_select_body.php b/phpBB2/cache/tpl_subSilver.admin.user_select_body.php deleted file mode 100644 index 349e24b..0000000 --- a/phpBB2/cache/tpl_subSilver.admin.user_select_body.php +++ /dev/null @@ -1,17 +0,0 @@ - -

vars['L_USER_TITLE']) ? $this->vars['L_USER_TITLE'] : $this->lang('L_USER_TITLE'); ?>

- -

vars['L_USER_EXPLAIN']) ? $this->vars['L_USER_EXPLAIN'] : $this->lang('L_USER_EXPLAIN'); ?>

- -
- - - - - - -
vars['L_USER_SELECT']) ? $this->vars['L_USER_SELECT'] : $this->lang('L_USER_SELECT'); ?>
vars['S_HIDDEN_FIELDS']) ? $this->vars['S_HIDDEN_FIELDS'] : $this->lang('S_HIDDEN_FIELDS'); ?>
diff --git a/phpBB2/cache/tpl_subSilver.admin.userlist_body.php b/phpBB2/cache/tpl_subSilver.admin.userlist_body.php deleted file mode 100644 index 2710985..0000000 --- a/phpBB2/cache/tpl_subSilver.admin.userlist_body.php +++ /dev/null @@ -1,208 +0,0 @@ - - -

vars['L_TITLE']) ? $this->vars['L_TITLE'] : $this->lang('L_TITLE'); ?>

- -

vars['L_DESCRIPTION']) ? $this->vars['L_DESCRIPTION'] : $this->lang('L_DESCRIPTION'); ?>

- -
- - - - - - - - - - -
 vars['L_SORT_BY']) ? $this->vars['L_SORT_BY'] : $this->lang('L_SORT_BY'); ?>vars['L_SHOW']) ? $this->vars['L_SHOW'] : $this->lang('L_SHOW'); ?>vars['S_HIDDEN_FIELDS']) ? $this->vars['S_HIDDEN_FIELDS'] : $this->lang('S_HIDDEN_FIELDS'); ?>
-
- - - - _tpldata['alphanumsearch.']) ) ? sizeof($this->_tpldata['alphanumsearch.']) : 0; -for ($alphanumsearch_i = 0; $alphanumsearch_i < $alphanumsearch_count; $alphanumsearch_i++) -{ - $alphanumsearch_item = &$this->_tpldata['alphanumsearch.'][$alphanumsearch_i]; - $alphanumsearch_item['S_ROW_COUNT'] = $alphanumsearch_i; - $alphanumsearch_item['S_NUM_ROWS'] = $alphanumsearch_count; - -?> - - - -
- -
- -
- - - - - - - - - _tpldata['user_row.']) ) ? sizeof($this->_tpldata['user_row.']) : 0; -for ($user_row_i = 0; $user_row_i < $user_row_count; $user_row_i++) -{ - $user_row_item = &$this->_tpldata['user_row.'][$user_row_i]; - $user_row_item['S_ROW_COUNT'] = $user_row_i; - $user_row_item['S_NUM_ROWS'] = $user_row_count; - -?> - - - - - - - - - - - - - - - -
 vars['L_USERNAME']) ? $this->vars['L_USERNAME'] : $this->lang('L_USERNAME'); ?>vars['L_ACTIVE']) ? $this->vars['L_ACTIVE'] : $this->lang('L_ACTIVE'); ?>vars['L_JOINED']) ? $this->vars['L_JOINED'] : $this->lang('L_JOINED'); ?>vars['L_ACTIVTY']) ? $this->vars['L_ACTIVTY'] : $this->lang('L_ACTIVTY'); ?>
   vars['L_OPEN_CLOSE']) ? $this->vars['L_OPEN_CLOSE'] : $this->lang('L_OPEN_CLOSE'); ?>>>
- - -
- - - - - - -
vars['PAGE_NUMBER']) ? $this->vars['PAGE_NUMBER'] : $this->lang('PAGE_NUMBER'); ?>vars['PAGINATION']) ? $this->vars['PAGINATION'] : $this->lang('PAGINATION'); ?>
-
- -
\ No newline at end of file diff --git a/phpBB2/cache/tpl_subSilver.agreement.php b/phpBB2/cache/tpl_subSilver.agreement.php deleted file mode 100644 index 4130d38..0000000 --- a/phpBB2/cache/tpl_subSilver.agreement.php +++ /dev/null @@ -1,23 +0,0 @@ - - - - - -
vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?>
- - - - - - - - -
vars['SITENAME']) ? $this->vars['SITENAME'] : $this->lang('SITENAME'); ?> - vars['REGISTRATION']) ? $this->vars['REGISTRATION'] : $this->lang('REGISTRATION'); ?>
- - - -

vars['AGREEMENT']) ? $this->vars['AGREEMENT'] : $this->lang('AGREEMENT'); ?>



diff --git a/phpBB2/cache/tpl_subSilver.confirm_body.php b/phpBB2/cache/tpl_subSilver.confirm_body.php deleted file mode 100644 index 464abc8..0000000 --- a/phpBB2/cache/tpl_subSilver.confirm_body.php +++ /dev/null @@ -1,21 +0,0 @@ - - - - - -
- - - - - - - - -
vars['MESSAGE_TITLE']) ? $this->vars['MESSAGE_TITLE'] : $this->lang('MESSAGE_TITLE'); ?>

vars['MESSAGE_TEXT']) ? $this->vars['MESSAGE_TEXT'] : $this->lang('MESSAGE_TEXT'); ?>

vars['S_HIDDEN_FIELDS']) ? $this->vars['S_HIDDEN_FIELDS'] : $this->lang('S_HIDDEN_FIELDS'); ?>  
- -
diff --git a/phpBB2/cache/tpl_subSilver.error_body.php b/phpBB2/cache/tpl_subSilver.error_body.php deleted file mode 100644 index f49ef1a..0000000 --- a/phpBB2/cache/tpl_subSilver.error_body.php +++ /dev/null @@ -1,22 +0,0 @@ - - - - - -
- - - - - - - - - -
 
vars['ERROR_MESSAGE']) ? $this->vars['ERROR_MESSAGE'] : $this->lang('ERROR_MESSAGE'); ?>
 
- -
diff --git a/phpBB2/cache/tpl_subSilver.faq_body.php b/phpBB2/cache/tpl_subSilver.faq_body.php deleted file mode 100644 index bb3c4ca..0000000 --- a/phpBB2/cache/tpl_subSilver.faq_body.php +++ /dev/null @@ -1,116 +0,0 @@ - - - - - -
- - - - - - - - - - - -
vars['L_FAQ_TITLE']) ? $this->vars['L_FAQ_TITLE'] : $this->lang('L_FAQ_TITLE'); ?>
- _tpldata['faq_block_link.']) ) ? sizeof($this->_tpldata['faq_block_link.']) : 0; -for ($faq_block_link_i = 0; $faq_block_link_i < $faq_block_link_count; $faq_block_link_i++) -{ - $faq_block_link_item = &$this->_tpldata['faq_block_link.'][$faq_block_link_i]; - $faq_block_link_item['S_ROW_COUNT'] = $faq_block_link_i; - $faq_block_link_item['S_NUM_ROWS'] = $faq_block_link_count; - -?> -
- -
- -
- -
 
- -
- -_tpldata['faq_block.']) ) ? sizeof($this->_tpldata['faq_block.']) : 0; -for ($faq_block_i = 0; $faq_block_i < $faq_block_count; $faq_block_i++) -{ - $faq_block_item = &$this->_tpldata['faq_block.'][$faq_block_i]; - $faq_block_item['S_ROW_COUNT'] = $faq_block_i; - $faq_block_item['S_NUM_ROWS'] = $faq_block_count; - -?> - - - - - - - - - - - - -


vars['L_BACK_TO_TOP']) ? $this->vars['L_BACK_TO_TOP'] : $this->lang('L_BACK_TO_TOP'); ?>
- -
- - - - - - -
vars['S_TIMEZONE']) ? $this->vars['S_TIMEZONE'] : $this->lang('S_TIMEZONE'); ?>

vars['JUMPBOX']) ? $this->vars['JUMPBOX'] : $this->lang('JUMPBOX'); ?>
diff --git a/phpBB2/cache/tpl_subSilver.groupcp_user_body.php b/phpBB2/cache/tpl_subSilver.groupcp_user_body.php deleted file mode 100644 index f6f4cfe..0000000 --- a/phpBB2/cache/tpl_subSilver.groupcp_user_body.php +++ /dev/null @@ -1,140 +0,0 @@ - - - - - -
vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?>
- - - _tpldata['switch_groups_joined.']) ) ? sizeof($this->_tpldata['switch_groups_joined.']) : 0; -for ($switch_groups_joined_i = 0; $switch_groups_joined_i < $switch_groups_joined_count; $switch_groups_joined_i++) -{ - $switch_groups_joined_item = &$this->_tpldata['switch_groups_joined.'][$switch_groups_joined_i]; - $switch_groups_joined_item['S_ROW_COUNT'] = $switch_groups_joined_i; - $switch_groups_joined_item['S_NUM_ROWS'] = $switch_groups_joined_count; - -?> - - - - - - - - - - - - - - - - - _tpldata['switch_groups_remaining.']) ) ? sizeof($this->_tpldata['switch_groups_remaining.']) : 0; -for ($switch_groups_remaining_i = 0; $switch_groups_remaining_i < $switch_groups_remaining_count; $switch_groups_remaining_i++) -{ - $switch_groups_remaining_item = &$this->_tpldata['switch_groups_remaining.'][$switch_groups_remaining_i]; - $switch_groups_remaining_item['S_ROW_COUNT'] = $switch_groups_remaining_i; - $switch_groups_remaining_item['S_NUM_ROWS'] = $switch_groups_remaining_count; - -?> - - - - - - - - -
vars['L_GROUP_MEMBERSHIP_DETAILS']) ? $this->vars['L_GROUP_MEMBERSHIP_DETAILS'] : $this->lang('L_GROUP_MEMBERSHIP_DETAILS'); ?>
vars['L_YOU_BELONG_GROUPS']) ? $this->vars['L_YOU_BELONG_GROUPS'] : $this->lang('L_YOU_BELONG_GROUPS'); ?> - - - - - -
vars['GROUP_MEMBER_SELECT']) ? $this->vars['GROUP_MEMBER_SELECT'] : $this->lang('GROUP_MEMBER_SELECT'); ?> - vars['S_HIDDEN_FIELDS']) ? $this->vars['S_HIDDEN_FIELDS'] : $this->lang('S_HIDDEN_FIELDS'); ?> -
-
vars['L_PENDING_GROUPS']) ? $this->vars['L_PENDING_GROUPS'] : $this->lang('L_PENDING_GROUPS'); ?> - - - - - -
vars['GROUP_PENDING_SELECT']) ? $this->vars['GROUP_PENDING_SELECT'] : $this->lang('GROUP_PENDING_SELECT'); ?> - vars['S_HIDDEN_FIELDS']) ? $this->vars['S_HIDDEN_FIELDS'] : $this->lang('S_HIDDEN_FIELDS'); ?> -
-
vars['L_JOIN_A_GROUP']) ? $this->vars['L_JOIN_A_GROUP'] : $this->lang('L_JOIN_A_GROUP'); ?>
vars['L_SELECT_A_GROUP']) ? $this->vars['L_SELECT_A_GROUP'] : $this->lang('L_SELECT_A_GROUP'); ?> - - - - - -
vars['GROUP_LIST_SELECT']) ? $this->vars['GROUP_LIST_SELECT'] : $this->lang('GROUP_LIST_SELECT'); ?> - vars['S_HIDDEN_FIELDS']) ? $this->vars['S_HIDDEN_FIELDS'] : $this->lang('S_HIDDEN_FIELDS'); ?> -
-
- - - - - -
vars['S_TIMEZONE']) ? $this->vars['S_TIMEZONE'] : $this->lang('S_TIMEZONE'); ?>
- -
- - - - - -
vars['JUMPBOX']) ? $this->vars['JUMPBOX'] : $this->lang('JUMPBOX'); ?>
diff --git a/phpBB2/cache/tpl_subSilver.index_body.php b/phpBB2/cache/tpl_subSilver.index_body.php deleted file mode 100644 index f96615d..0000000 --- a/phpBB2/cache/tpl_subSilver.index_body.php +++ /dev/null @@ -1,182 +0,0 @@ - - - - - -
- _tpldata['switch_user_logged_in.']) ) ? sizeof($this->_tpldata['switch_user_logged_in.']) : 0; -for ($switch_user_logged_in_i = 0; $switch_user_logged_in_i < $switch_user_logged_in_count; $switch_user_logged_in_i++) -{ - $switch_user_logged_in_item = &$this->_tpldata['switch_user_logged_in.'][$switch_user_logged_in_i]; - $switch_user_logged_in_item['S_ROW_COUNT'] = $switch_user_logged_in_i; - $switch_user_logged_in_item['S_NUM_ROWS'] = $switch_user_logged_in_count; - -?> - vars['LAST_VISIT_DATE']) ? $this->vars['LAST_VISIT_DATE'] : $this->lang('LAST_VISIT_DATE'); ?>
- - vars['CURRENT_TIME']) ? $this->vars['CURRENT_TIME'] : $this->lang('CURRENT_TIME'); ?>
vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?>
- _tpldata['switch_user_logged_in.']) ) ? sizeof($this->_tpldata['switch_user_logged_in.']) : 0; -for ($switch_user_logged_in_i = 0; $switch_user_logged_in_i < $switch_user_logged_in_count; $switch_user_logged_in_i++) -{ - $switch_user_logged_in_item = &$this->_tpldata['switch_user_logged_in.'][$switch_user_logged_in_i]; - $switch_user_logged_in_item['S_ROW_COUNT'] = $switch_user_logged_in_i; - $switch_user_logged_in_item['S_NUM_ROWS'] = $switch_user_logged_in_count; - -?> - vars['L_SEARCH_NEW']) ? $this->vars['L_SEARCH_NEW'] : $this->lang('L_SEARCH_NEW'); ?>
vars['L_SEARCH_SELF']) ? $this->vars['L_SEARCH_SELF'] : $this->lang('L_SEARCH_SELF'); ?>
- - vars['L_SEARCH_UNANSWERED']) ? $this->vars['L_SEARCH_UNANSWERED'] : $this->lang('L_SEARCH_UNANSWERED'); ?>
- - - - - - - - - _tpldata['catrow.']) ) ? sizeof($this->_tpldata['catrow.']) : 0; -for ($catrow_i = 0; $catrow_i < $catrow_count; $catrow_i++) -{ - $catrow_item = &$this->_tpldata['catrow.'][$catrow_i]; - $catrow_item['S_ROW_COUNT'] = $catrow_i; - $catrow_item['S_NUM_ROWS'] = $catrow_count; - -?> - - - - - - - - - - - - - - -
 vars['L_FORUM']) ? $this->vars['L_FORUM'] : $this->lang('L_FORUM'); ?>  vars['L_TOPICS']) ? $this->vars['L_TOPICS'] : $this->lang('L_TOPICS'); ?>  vars['L_POSTS']) ? $this->vars['L_POSTS'] : $this->lang('L_POSTS'); ?>  vars['L_LASTPOST']) ? $this->vars['L_LASTPOST'] : $this->lang('L_LASTPOST'); ?> 
 
<?php echo isset($forumrow_item['L_FORUM_FOLDER_ALT']) ? $forumrow_item['L_FORUM_FOLDER_ALT'] : ''; ?>
-

-
- - - - - - -
vars['L_MARK_FORUMS_READ']) ? $this->vars['L_MARK_FORUMS_READ'] : $this->lang('L_MARK_FORUMS_READ'); ?>vars['S_TIMEZONE']) ? $this->vars['S_TIMEZONE'] : $this->lang('S_TIMEZONE'); ?>
- - - - - - - - - - - - -
vars['L_WHO_IS_ONLINE']) ? $this->vars['L_WHO_IS_ONLINE'] : $this->lang('L_WHO_IS_ONLINE'); ?>
<?php echo isset($this->vars['L_WHO_IS_ONLINE']) ? $this->vars['L_WHO_IS_ONLINE'] : $this->lang('L_WHO_IS_ONLINE'); ?>vars['TOTAL_POSTS']) ? $this->vars['TOTAL_POSTS'] : $this->lang('TOTAL_POSTS'); ?>
vars['TOTAL_USERS']) ? $this->vars['TOTAL_USERS'] : $this->lang('TOTAL_USERS'); ?>
vars['NEWEST_USER']) ? $this->vars['NEWEST_USER'] : $this->lang('NEWEST_USER'); ?>
-
vars['TOTAL_USERS_ONLINE']) ? $this->vars['TOTAL_USERS_ONLINE'] : $this->lang('TOTAL_USERS_ONLINE'); ?>   [ vars['L_WHOSONLINE_ADMIN']) ? $this->vars['L_WHOSONLINE_ADMIN'] : $this->lang('L_WHOSONLINE_ADMIN'); ?> ]   [ vars['L_WHOSONLINE_MOD']) ? $this->vars['L_WHOSONLINE_MOD'] : $this->lang('L_WHOSONLINE_MOD'); ?> ]
vars['RECORD_USERS']) ? $this->vars['RECORD_USERS'] : $this->lang('RECORD_USERS'); ?>
vars['LOGGED_IN_USER_LIST']) ? $this->vars['LOGGED_IN_USER_LIST'] : $this->lang('LOGGED_IN_USER_LIST'); ?>
- - - - - -
vars['L_ONLINE_EXPLAIN']) ? $this->vars['L_ONLINE_EXPLAIN'] : $this->lang('L_ONLINE_EXPLAIN'); ?>
- -_tpldata['switch_user_logged_out.']) ) ? sizeof($this->_tpldata['switch_user_logged_out.']) : 0; -for ($switch_user_logged_out_i = 0; $switch_user_logged_out_i < $switch_user_logged_out_count; $switch_user_logged_out_i++) -{ - $switch_user_logged_out_item = &$this->_tpldata['switch_user_logged_out.'][$switch_user_logged_out_i]; - $switch_user_logged_out_item['S_ROW_COUNT'] = $switch_user_logged_out_i; - $switch_user_logged_out_item['S_NUM_ROWS'] = $switch_user_logged_out_count; - -?> -
- - - - - - - -
vars['L_LOGIN_LOGOUT']) ? $this->vars['L_LOGIN_LOGOUT'] : $this->lang('L_LOGIN_LOGOUT'); ?>
vars['L_USERNAME']) ? $this->vars['L_USERNAME'] : $this->lang('L_USERNAME'); ?>: - -    vars['L_PASSWORD']) ? $this->vars['L_PASSWORD'] : $this->lang('L_PASSWORD'); ?>: - -      vars['L_AUTO_LOGIN']) ? $this->vars['L_AUTO_LOGIN'] : $this->lang('L_AUTO_LOGIN'); ?> - -     - -
-
- - -
- - - - - - - - - - - - -
<?php echo isset($this->vars['L_NEW_POSTS']) ? $this->vars['L_NEW_POSTS'] : $this->lang('L_NEW_POSTS'); ?>vars['L_NEW_POSTS']) ? $this->vars['L_NEW_POSTS'] : $this->lang('L_NEW_POSTS'); ?>  <?php echo isset($this->vars['L_NO_NEW_POSTS']) ? $this->vars['L_NO_NEW_POSTS'] : $this->lang('L_NO_NEW_POSTS'); ?>vars['L_NO_NEW_POSTS']) ? $this->vars['L_NO_NEW_POSTS'] : $this->lang('L_NO_NEW_POSTS'); ?>  <?php echo isset($this->vars['L_FORUM_LOCKED']) ? $this->vars['L_FORUM_LOCKED'] : $this->lang('L_FORUM_LOCKED'); ?>vars['L_FORUM_LOCKED']) ? $this->vars['L_FORUM_LOCKED'] : $this->lang('L_FORUM_LOCKED'); ?>
diff --git a/phpBB2/cache/tpl_subSilver.jumpbox.php b/phpBB2/cache/tpl_subSilver.jumpbox.php deleted file mode 100644 index 4c81095..0000000 --- a/phpBB2/cache/tpl_subSilver.jumpbox.php +++ /dev/null @@ -1,10 +0,0 @@ - -
- - - -
vars['L_JUMP_TO']) ? $this->vars['L_JUMP_TO'] : $this->lang('L_JUMP_TO'); ?>: vars['S_JUMPBOX_SELECT']) ? $this->vars['S_JUMPBOX_SELECT'] : $this->lang('S_JUMPBOX_SELECT'); ?> 
diff --git a/phpBB2/cache/tpl_subSilver.login_body.php b/phpBB2/cache/tpl_subSilver.login_body.php deleted file mode 100644 index c3d19b2..0000000 --- a/phpBB2/cache/tpl_subSilver.login_body.php +++ /dev/null @@ -1,48 +0,0 @@ - -
- - - - - -
- - - - - - - - -
vars['L_ENTER_PASSWORD']) ? $this->vars['L_ENTER_PASSWORD'] : $this->lang('L_ENTER_PASSWORD'); ?>
- - - - - - - - - - - - - - - - - - - - -
 
vars['L_USERNAME']) ? $this->vars['L_USERNAME'] : $this->lang('L_USERNAME'); ?>: - -
vars['L_PASSWORD']) ? $this->vars['L_PASSWORD'] : $this->lang('L_PASSWORD'); ?>: - -
vars['L_AUTO_LOGIN']) ? $this->vars['L_AUTO_LOGIN'] : $this->lang('L_AUTO_LOGIN'); ?>:
vars['S_HIDDEN_FIELDS']) ? $this->vars['S_HIDDEN_FIELDS'] : $this->lang('S_HIDDEN_FIELDS'); ?>
vars['L_SEND_PASSWORD']) ? $this->vars['L_SEND_PASSWORD'] : $this->lang('L_SEND_PASSWORD'); ?>
- -
diff --git a/phpBB2/cache/tpl_subSilver.memberlist_body.php b/phpBB2/cache/tpl_subSilver.memberlist_body.php deleted file mode 100644 index ab1430f..0000000 --- a/phpBB2/cache/tpl_subSilver.memberlist_body.php +++ /dev/null @@ -1,74 +0,0 @@ - -
- - - - - -
vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?>vars['L_SELECT_SORT_METHOD']) ? $this->vars['L_SELECT_SORT_METHOD'] : $this->lang('L_SELECT_SORT_METHOD'); ?>: vars['S_MODE_SELECT']) ? $this->vars['S_MODE_SELECT'] : $this->lang('S_MODE_SELECT'); ?>  vars['L_ORDER']) ? $this->vars['L_ORDER'] : $this->lang('L_ORDER'); ?> vars['S_ORDER_SELECT']) ? $this->vars['S_ORDER_SELECT'] : $this->lang('S_ORDER_SELECT'); ?>   - -
- - - - - - - - - - - - _tpldata['memberrow.']) ) ? sizeof($this->_tpldata['memberrow.']) : 0; -for ($memberrow_i = 0; $memberrow_i < $memberrow_count; $memberrow_i++) -{ - $memberrow_item = &$this->_tpldata['memberrow.'][$memberrow_i]; - $memberrow_item['S_ROW_COUNT'] = $memberrow_i; - $memberrow_item['S_NUM_ROWS'] = $memberrow_count; - -?> - - - - - - - - - - - - - - -
# vars['L_USERNAME']) ? $this->vars['L_USERNAME'] : $this->lang('L_USERNAME'); ?>vars['L_EMAIL']) ? $this->vars['L_EMAIL'] : $this->lang('L_EMAIL'); ?>vars['L_FROM']) ? $this->vars['L_FROM'] : $this->lang('L_FROM'); ?>vars['L_JOINED']) ? $this->vars['L_JOINED'] : $this->lang('L_JOINED'); ?>vars['L_POSTS']) ? $this->vars['L_POSTS'] : $this->lang('L_POSTS'); ?>vars['L_WEBSITE']) ? $this->vars['L_WEBSITE'] : $this->lang('L_WEBSITE'); ?>
        
 
- - - - -
- - - - - - -
vars['PAGE_NUMBER']) ? $this->vars['PAGE_NUMBER'] : $this->lang('PAGE_NUMBER'); ?>vars['S_TIMEZONE']) ? $this->vars['S_TIMEZONE'] : $this->lang('S_TIMEZONE'); ?>
vars['PAGINATION']) ? $this->vars['PAGINATION'] : $this->lang('PAGINATION'); ?>
- - - - - -
vars['JUMPBOX']) ? $this->vars['JUMPBOX'] : $this->lang('JUMPBOX'); ?>
diff --git a/phpBB2/cache/tpl_subSilver.message_body.php b/phpBB2/cache/tpl_subSilver.message_body.php deleted file mode 100644 index 9727aef..0000000 --- a/phpBB2/cache/tpl_subSilver.message_body.php +++ /dev/null @@ -1,31 +0,0 @@ - - - - - -
- - - - - - - - -
vars['MESSAGE_TITLE']) ? $this->vars['MESSAGE_TITLE'] : $this->lang('MESSAGE_TITLE'); ?>
- - - - - - - - - -
 
vars['MESSAGE_TEXT']) ? $this->vars['MESSAGE_TEXT'] : $this->lang('MESSAGE_TEXT'); ?>
 
- -
diff --git a/phpBB2/cache/tpl_subSilver.overall_footer.php b/phpBB2/cache/tpl_subSilver.overall_footer.php deleted file mode 100644 index c77b82d..0000000 --- a/phpBB2/cache/tpl_subSilver.overall_footer.php +++ /dev/null @@ -1,23 +0,0 @@ - -

vars['ADMIN_LINK']) ? $this->vars['ADMIN_LINK'] : $this->lang('ADMIN_LINK'); ?>
- -Powered by phpBB © 2001, 2005 phpBB Group
vars['TRANSLATION_INFO']) ? $this->vars['TRANSLATION_INFO'] : $this->lang('TRANSLATION_INFO'); ?>
-
- - - diff --git a/phpBB2/cache/tpl_subSilver.overall_header.php b/phpBB2/cache/tpl_subSilver.overall_header.php deleted file mode 100644 index b3b4491..0000000 --- a/phpBB2/cache/tpl_subSilver.overall_header.php +++ /dev/null @@ -1,288 +0,0 @@ - - - - - -vars['META']) ? $this->vars['META'] : $this->lang('META'); ?> -vars['NAV_LINKS']) ? $this->vars['NAV_LINKS'] : $this->lang('NAV_LINKS'); ?> -<?php echo isset($this->vars['SITENAME']) ? $this->vars['SITENAME'] : $this->lang('SITENAME'); ?> :: <?php echo isset($this->vars['PAGE_TITLE']) ? $this->vars['PAGE_TITLE'] : $this->lang('PAGE_TITLE'); ?> - - - - - -_tpldata['switch_enable_pm_popup.']) ) ? sizeof($this->_tpldata['switch_enable_pm_popup.']) : 0; -for ($switch_enable_pm_popup_i = 0; $switch_enable_pm_popup_i < $switch_enable_pm_popup_count; $switch_enable_pm_popup_i++) -{ - $switch_enable_pm_popup_item = &$this->_tpldata['switch_enable_pm_popup.'][$switch_enable_pm_popup_i]; - $switch_enable_pm_popup_item['S_ROW_COUNT'] = $switch_enable_pm_popup_i; - $switch_enable_pm_popup_item['S_NUM_ROWS'] = $switch_enable_pm_popup_count; - -?> - - - - - - - - - - - - - - - - - - - - _tpldata['poll_option_rows.']) ) ? sizeof($this->_tpldata['poll_option_rows.']) : 0; -for ($poll_option_rows_i = 0; $poll_option_rows_i < $poll_option_rows_count; $poll_option_rows_i++) -{ - $poll_option_rows_item = &$this->_tpldata['poll_option_rows.'][$poll_option_rows_i]; - $poll_option_rows_item['S_ROW_COUNT'] = $poll_option_rows_i; - $poll_option_rows_item['S_NUM_ROWS'] = $poll_option_rows_count; - -?> - - - - - - - - - - - - - - _tpldata['switch_poll_delete_toggle.']) ) ? sizeof($this->_tpldata['switch_poll_delete_toggle.']) : 0; -for ($switch_poll_delete_toggle_i = 0; $switch_poll_delete_toggle_i < $switch_poll_delete_toggle_count; $switch_poll_delete_toggle_i++) -{ - $switch_poll_delete_toggle_item = &$this->_tpldata['switch_poll_delete_toggle.'][$switch_poll_delete_toggle_i]; - $switch_poll_delete_toggle_item['S_ROW_COUNT'] = $switch_poll_delete_toggle_i; - $switch_poll_delete_toggle_item['S_NUM_ROWS'] = $switch_poll_delete_toggle_count; - -?> - - - - - diff --git a/phpBB2/cache/tpl_subSilver.posting_preview.php b/phpBB2/cache/tpl_subSilver.posting_preview.php deleted file mode 100644 index 8444d6c..0000000 --- a/phpBB2/cache/tpl_subSilver.posting_preview.php +++ /dev/null @@ -1,27 +0,0 @@ - -
- - - - -
- - - - - - - - -
 <?php echo isset($this->vars['L_FAQ']) ? $this->vars['L_FAQ'] : $this->lang('L_FAQ'); ?>vars['L_FAQ']) ? $this->vars['L_FAQ'] : $this->lang('L_FAQ'); ?>   <?php echo isset($this->vars['L_SEARCH']) ? $this->vars['L_SEARCH'] : $this->lang('L_SEARCH'); ?>vars['L_SEARCH']) ? $this->vars['L_SEARCH'] : $this->lang('L_SEARCH'); ?>   <?php echo isset($this->vars['L_MEMBERLIST']) ? $this->vars['L_MEMBERLIST'] : $this->lang('L_MEMBERLIST'); ?>vars['L_MEMBERLIST']) ? $this->vars['L_MEMBERLIST'] : $this->lang('L_MEMBERLIST'); ?>   <?php echo isset($this->vars['L_USERGROUPS']) ? $this->vars['L_USERGROUPS'] : $this->lang('L_USERGROUPS'); ?>vars['L_USERGROUPS']) ? $this->vars['L_USERGROUPS'] : $this->lang('L_USERGROUPS'); ?>  - _tpldata['switch_user_logged_out.']) ) ? sizeof($this->_tpldata['switch_user_logged_out.']) : 0; -for ($switch_user_logged_out_i = 0; $switch_user_logged_out_i < $switch_user_logged_out_count; $switch_user_logged_out_i++) -{ - $switch_user_logged_out_item = &$this->_tpldata['switch_user_logged_out.'][$switch_user_logged_out_i]; - $switch_user_logged_out_item['S_ROW_COUNT'] = $switch_user_logged_out_i; - $switch_user_logged_out_item['S_NUM_ROWS'] = $switch_user_logged_out_count; - -?> -  <?php echo isset($this->vars['L_REGISTER']) ? $this->vars['L_REGISTER'] : $this->lang('L_REGISTER'); ?>vars['L_REGISTER']) ? $this->vars['L_REGISTER'] : $this->lang('L_REGISTER'); ?>  - -
 <?php echo isset($this->vars['L_PROFILE']) ? $this->vars['L_PROFILE'] : $this->lang('L_PROFILE'); ?>vars['L_PROFILE']) ? $this->vars['L_PROFILE'] : $this->lang('L_PROFILE'); ?>   <?php echo isset($this->vars['PRIVATE_MESSAGE_INFO']) ? $this->vars['PRIVATE_MESSAGE_INFO'] : $this->lang('PRIVATE_MESSAGE_INFO'); ?>vars['PRIVATE_MESSAGE_INFO']) ? $this->vars['PRIVATE_MESSAGE_INFO'] : $this->lang('PRIVATE_MESSAGE_INFO'); ?>   <?php echo isset($this->vars['L_LOGIN_LOGOUT']) ? $this->vars['L_LOGIN_LOGOUT'] : $this->lang('L_LOGIN_LOGOUT'); ?>vars['L_LOGIN_LOGOUT']) ? $this->vars['L_LOGIN_LOGOUT'] : $this->lang('L_LOGIN_LOGOUT'); ?> 
- -
diff --git a/phpBB2/cache/tpl_subSilver.posting_body.php b/phpBB2/cache/tpl_subSilver.posting_body.php deleted file mode 100644 index 967f406..0000000 --- a/phpBB2/cache/tpl_subSilver.posting_body.php +++ /dev/null @@ -1,695 +0,0 @@ - - -_tpldata['privmsg_extensions.']) ) ? sizeof($this->_tpldata['privmsg_extensions.']) : 0; -for ($privmsg_extensions_i = 0; $privmsg_extensions_i < $privmsg_extensions_count; $privmsg_extensions_i++) -{ - $privmsg_extensions_item = &$this->_tpldata['privmsg_extensions.'][$privmsg_extensions_i]; - $privmsg_extensions_item['S_ROW_COUNT'] = $privmsg_extensions_i; - $privmsg_extensions_item['S_NUM_ROWS'] = $privmsg_extensions_count; - -?> - - - - -
- - - - - - - - - - - -
vars['INBOX_IMG']) ? $this->vars['INBOX_IMG'] : $this->lang('INBOX_IMG'); ?>vars['INBOX_LINK']) ? $this->vars['INBOX_LINK'] : $this->lang('INBOX_LINK'); ?>  vars['SENTBOX_IMG']) ? $this->vars['SENTBOX_IMG'] : $this->lang('SENTBOX_IMG'); ?>vars['SENTBOX_LINK']) ? $this->vars['SENTBOX_LINK'] : $this->lang('SENTBOX_LINK'); ?>  vars['OUTBOX_IMG']) ? $this->vars['OUTBOX_IMG'] : $this->lang('OUTBOX_IMG'); ?>vars['OUTBOX_LINK']) ? $this->vars['OUTBOX_LINK'] : $this->lang('OUTBOX_LINK'); ?>  vars['SAVEBOX_IMG']) ? $this->vars['SAVEBOX_IMG'] : $this->lang('SAVEBOX_IMG'); ?>vars['SAVEBOX_LINK']) ? $this->vars['SAVEBOX_LINK'] : $this->lang('SAVEBOX_LINK'); ?>  
-
- -
- - -
- -vars['POST_PREVIEW_BOX']) ? $this->vars['POST_PREVIEW_BOX'] : $this->lang('POST_PREVIEW_BOX'); ?> -vars['ERROR_BOX']) ? $this->vars['ERROR_BOX'] : $this->lang('ERROR_BOX'); ?> - - - - - - -
vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?> - _tpldata['switch_not_privmsg.']) ) ? sizeof($this->_tpldata['switch_not_privmsg.']) : 0; -for ($switch_not_privmsg_i = 0; $switch_not_privmsg_i < $switch_not_privmsg_count; $switch_not_privmsg_i++) -{ - $switch_not_privmsg_item = &$this->_tpldata['switch_not_privmsg.'][$switch_not_privmsg_i]; - $switch_not_privmsg_item['S_ROW_COUNT'] = $switch_not_privmsg_i; - $switch_not_privmsg_item['S_NUM_ROWS'] = $switch_not_privmsg_count; - -?> - -> vars['FORUM_NAME']) ? $this->vars['FORUM_NAME'] : $this->lang('FORUM_NAME'); ?>
- - - - - - _tpldata['switch_username_select.']) ) ? sizeof($this->_tpldata['switch_username_select.']) : 0; -for ($switch_username_select_i = 0; $switch_username_select_i < $switch_username_select_count; $switch_username_select_i++) -{ - $switch_username_select_item = &$this->_tpldata['switch_username_select.'][$switch_username_select_i]; - $switch_username_select_item['S_ROW_COUNT'] = $switch_username_select_i; - $switch_username_select_item['S_NUM_ROWS'] = $switch_username_select_count; - -?> - - - - - - _tpldata['switch_privmsg.']) ) ? sizeof($this->_tpldata['switch_privmsg.']) : 0; -for ($switch_privmsg_i = 0; $switch_privmsg_i < $switch_privmsg_count; $switch_privmsg_i++) -{ - $switch_privmsg_item = &$this->_tpldata['switch_privmsg.'][$switch_privmsg_i]; - $switch_privmsg_item['S_ROW_COUNT'] = $switch_privmsg_i; - $switch_privmsg_item['S_NUM_ROWS'] = $switch_privmsg_count; - -?> - - - - - - - - - - - - - - - - - - vars['POLLBOX']) ? $this->vars['POLLBOX'] : $this->lang('POLLBOX'); ?> - - - -
vars['L_POST_A']) ? $this->vars['L_POST_A'] : $this->lang('L_POST_A'); ?>
vars['L_USERNAME']) ? $this->vars['L_USERNAME'] : $this->lang('L_USERNAME'); ?>
vars['L_USERNAME']) ? $this->vars['L_USERNAME'] : $this->lang('L_USERNAME'); ?> 
vars['L_SUBJECT']) ? $this->vars['L_SUBJECT'] : $this->lang('L_SUBJECT'); ?> - -
- - - - - - - -
vars['L_MESSAGE_BODY']) ? $this->vars['L_MESSAGE_BODY'] : $this->lang('L_MESSAGE_BODY'); ?>

- - - - - _tpldata['smilies_row.']) ) ? sizeof($this->_tpldata['smilies_row.']) : 0; -for ($smilies_row_i = 0; $smilies_row_i < $smilies_row_count; $smilies_row_i++) -{ - $smilies_row_item = &$this->_tpldata['smilies_row.'][$smilies_row_i]; - $smilies_row_item['S_ROW_COUNT'] = $smilies_row_i; - $smilies_row_item['S_NUM_ROWS'] = $smilies_row_count; - -?> - - - - - - - _tpldata['switch_smilies_extra.']) ) ? sizeof($this->_tpldata['switch_smilies_extra.']) : 0; -for ($switch_smilies_extra_i = 0; $switch_smilies_extra_i < $switch_smilies_extra_count; $switch_smilies_extra_i++) -{ - $switch_smilies_extra_item = &$this->_tpldata['switch_smilies_extra.'][$switch_smilies_extra_i]; - $switch_smilies_extra_item['S_ROW_COUNT'] = $switch_smilies_extra_i; - $switch_smilies_extra_item['S_NUM_ROWS'] = $switch_smilies_extra_count; - -?> - - - - -
vars['L_EMOTICONS']) ? $this->vars['L_EMOTICONS'] : $this->lang('L_EMOTICONS'); ?>
<?php echo isset($smilies_col_item['SMILEY_DESC']) ? $smilies_col_item['SMILEY_DESC'] : ''; ?>
vars['L_MORE_SMILIES']) ? $this->vars['L_MORE_SMILIES'] : $this->lang('L_MORE_SMILIES'); ?>
-
-
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - -
- - - - - -
 vars['L_FONT_COLOR']) ? $this->vars['L_FONT_COLOR'] : $this->lang('L_FONT_COLOR'); ?>: -  vars['L_FONT_SIZE']) ? $this->vars['L_FONT_SIZE'] : $this->lang('L_FONT_SIZE'); ?>: - vars['L_BBCODE_CLOSE_TAGS']) ? $this->vars['L_BBCODE_CLOSE_TAGS'] : $this->lang('L_BBCODE_CLOSE_TAGS'); ?>
-
- -
- -
-
vars['L_OPTIONS']) ? $this->vars['L_OPTIONS'] : $this->lang('L_OPTIONS'); ?>
vars['HTML_STATUS']) ? $this->vars['HTML_STATUS'] : $this->lang('HTML_STATUS'); ?>
vars['BBCODE_STATUS']) ? $this->vars['BBCODE_STATUS'] : $this->lang('BBCODE_STATUS'); ?>
vars['SMILIES_STATUS']) ? $this->vars['SMILIES_STATUS'] : $this->lang('SMILIES_STATUS'); ?>
- - _tpldata['switch_html_checkbox.']) ) ? sizeof($this->_tpldata['switch_html_checkbox.']) : 0; -for ($switch_html_checkbox_i = 0; $switch_html_checkbox_i < $switch_html_checkbox_count; $switch_html_checkbox_i++) -{ - $switch_html_checkbox_item = &$this->_tpldata['switch_html_checkbox.'][$switch_html_checkbox_i]; - $switch_html_checkbox_item['S_ROW_COUNT'] = $switch_html_checkbox_i; - $switch_html_checkbox_item['S_NUM_ROWS'] = $switch_html_checkbox_count; - -?> - - - - - - _tpldata['switch_bbcode_checkbox.']) ) ? sizeof($this->_tpldata['switch_bbcode_checkbox.']) : 0; -for ($switch_bbcode_checkbox_i = 0; $switch_bbcode_checkbox_i < $switch_bbcode_checkbox_count; $switch_bbcode_checkbox_i++) -{ - $switch_bbcode_checkbox_item = &$this->_tpldata['switch_bbcode_checkbox.'][$switch_bbcode_checkbox_i]; - $switch_bbcode_checkbox_item['S_ROW_COUNT'] = $switch_bbcode_checkbox_i; - $switch_bbcode_checkbox_item['S_NUM_ROWS'] = $switch_bbcode_checkbox_count; - -?> - - - - - - _tpldata['switch_smilies_checkbox.']) ) ? sizeof($this->_tpldata['switch_smilies_checkbox.']) : 0; -for ($switch_smilies_checkbox_i = 0; $switch_smilies_checkbox_i < $switch_smilies_checkbox_count; $switch_smilies_checkbox_i++) -{ - $switch_smilies_checkbox_item = &$this->_tpldata['switch_smilies_checkbox.'][$switch_smilies_checkbox_i]; - $switch_smilies_checkbox_item['S_ROW_COUNT'] = $switch_smilies_checkbox_i; - $switch_smilies_checkbox_item['S_NUM_ROWS'] = $switch_smilies_checkbox_count; - -?> - - - - - - _tpldata['switch_signature_checkbox.']) ) ? sizeof($this->_tpldata['switch_signature_checkbox.']) : 0; -for ($switch_signature_checkbox_i = 0; $switch_signature_checkbox_i < $switch_signature_checkbox_count; $switch_signature_checkbox_i++) -{ - $switch_signature_checkbox_item = &$this->_tpldata['switch_signature_checkbox.'][$switch_signature_checkbox_i]; - $switch_signature_checkbox_item['S_ROW_COUNT'] = $switch_signature_checkbox_i; - $switch_signature_checkbox_item['S_NUM_ROWS'] = $switch_signature_checkbox_count; - -?> - - - - - - _tpldata['switch_notify_checkbox.']) ) ? sizeof($this->_tpldata['switch_notify_checkbox.']) : 0; -for ($switch_notify_checkbox_i = 0; $switch_notify_checkbox_i < $switch_notify_checkbox_count; $switch_notify_checkbox_i++) -{ - $switch_notify_checkbox_item = &$this->_tpldata['switch_notify_checkbox.'][$switch_notify_checkbox_i]; - $switch_notify_checkbox_item['S_ROW_COUNT'] = $switch_notify_checkbox_i; - $switch_notify_checkbox_item['S_NUM_ROWS'] = $switch_notify_checkbox_count; - -?> - - - - - - _tpldata['switch_delete_checkbox.']) ) ? sizeof($this->_tpldata['switch_delete_checkbox.']) : 0; -for ($switch_delete_checkbox_i = 0; $switch_delete_checkbox_i < $switch_delete_checkbox_count; $switch_delete_checkbox_i++) -{ - $switch_delete_checkbox_item = &$this->_tpldata['switch_delete_checkbox.'][$switch_delete_checkbox_i]; - $switch_delete_checkbox_item['S_ROW_COUNT'] = $switch_delete_checkbox_i; - $switch_delete_checkbox_item['S_NUM_ROWS'] = $switch_delete_checkbox_count; - -?> - - - - - - _tpldata['switch_type_toggle.']) ) ? sizeof($this->_tpldata['switch_type_toggle.']) : 0; -for ($switch_type_toggle_i = 0; $switch_type_toggle_i < $switch_type_toggle_count; $switch_type_toggle_i++) -{ - $switch_type_toggle_item = &$this->_tpldata['switch_type_toggle.'][$switch_type_toggle_i]; - $switch_type_toggle_item['S_ROW_COUNT'] = $switch_type_toggle_i; - $switch_type_toggle_item['S_NUM_ROWS'] = $switch_type_toggle_count; - -?> - - - - - -
- vars['S_HTML_CHECKED']) ? $this->vars['S_HTML_CHECKED'] : $this->lang('S_HTML_CHECKED'); ?> /> - vars['L_DISABLE_HTML']) ? $this->vars['L_DISABLE_HTML'] : $this->lang('L_DISABLE_HTML'); ?>
- vars['S_BBCODE_CHECKED']) ? $this->vars['S_BBCODE_CHECKED'] : $this->lang('S_BBCODE_CHECKED'); ?> /> - vars['L_DISABLE_BBCODE']) ? $this->vars['L_DISABLE_BBCODE'] : $this->lang('L_DISABLE_BBCODE'); ?>
- vars['S_SMILIES_CHECKED']) ? $this->vars['S_SMILIES_CHECKED'] : $this->lang('S_SMILIES_CHECKED'); ?> /> - vars['L_DISABLE_SMILIES']) ? $this->vars['L_DISABLE_SMILIES'] : $this->lang('L_DISABLE_SMILIES'); ?>
- vars['S_SIGNATURE_CHECKED']) ? $this->vars['S_SIGNATURE_CHECKED'] : $this->lang('S_SIGNATURE_CHECKED'); ?> /> - vars['L_ATTACH_SIGNATURE']) ? $this->vars['L_ATTACH_SIGNATURE'] : $this->lang('L_ATTACH_SIGNATURE'); ?>
- vars['S_NOTIFY_CHECKED']) ? $this->vars['S_NOTIFY_CHECKED'] : $this->lang('S_NOTIFY_CHECKED'); ?> /> - vars['L_NOTIFY_ON_REPLY']) ? $this->vars['L_NOTIFY_ON_REPLY'] : $this->lang('L_NOTIFY_ON_REPLY'); ?>
- - vars['L_DELETE_POST']) ? $this->vars['L_DELETE_POST'] : $this->lang('L_DELETE_POST'); ?>
vars['S_TYPE_TOGGLE']) ? $this->vars['S_TYPE_TOGGLE'] : $this->lang('S_TYPE_TOGGLE'); ?>
-
vars['S_HIDDEN_FORM_FIELDS']) ? $this->vars['S_HIDDEN_FORM_FIELDS'] : $this->lang('S_HIDDEN_FORM_FIELDS'); ?> 
- - - - - -
vars['S_TIMEZONE']) ? $this->vars['S_TIMEZONE'] : $this->lang('S_TIMEZONE'); ?>
-
- - - - - -
vars['JUMPBOX']) ? $this->vars['JUMPBOX'] : $this->lang('JUMPBOX'); ?>
- -vars['TOPIC_REVIEW_BOX']) ? $this->vars['TOPIC_REVIEW_BOX'] : $this->lang('TOPIC_REVIEW_BOX'); ?> diff --git a/phpBB2/cache/tpl_subSilver.posting_poll_body.php b/phpBB2/cache/tpl_subSilver.posting_poll_body.php deleted file mode 100644 index 0323fa4..0000000 --- a/phpBB2/cache/tpl_subSilver.posting_poll_body.php +++ /dev/null @@ -1,65 +0,0 @@ - -
vars['L_ADD_A_POLL']) ? $this->vars['L_ADD_A_POLL'] : $this->lang('L_ADD_A_POLL'); ?>
vars['L_ADD_POLL_EXPLAIN']) ? $this->vars['L_ADD_POLL_EXPLAIN'] : $this->lang('L_ADD_POLL_EXPLAIN'); ?>
vars['L_POLL_QUESTION']) ? $this->vars['L_POLL_QUESTION'] : $this->lang('L_POLL_QUESTION'); ?>
vars['L_POLL_OPTION']) ? $this->vars['L_POLL_OPTION'] : $this->lang('L_POLL_OPTION'); ?>  
vars['L_POLL_OPTION']) ? $this->vars['L_POLL_OPTION'] : $this->lang('L_POLL_OPTION'); ?>  
vars['L_POLL_LENGTH']) ? $this->vars['L_POLL_LENGTH'] : $this->lang('L_POLL_LENGTH'); ?> vars['L_DAYS']) ? $this->vars['L_DAYS'] : $this->lang('L_DAYS'); ?>   vars['L_POLL_LENGTH_EXPLAIN']) ? $this->vars['L_POLL_LENGTH_EXPLAIN'] : $this->lang('L_POLL_LENGTH_EXPLAIN'); ?>
vars['L_POLL_DELETE']) ? $this->vars['L_POLL_DELETE'] : $this->lang('L_POLL_DELETE'); ?>
- - - - - - - - - - - - -
vars['L_PREVIEW']) ? $this->vars['L_PREVIEW'] : $this->lang('L_PREVIEW'); ?>
<?php echo isset($this->vars['L_POST']) ? $this->vars['L_POST'] : $this->lang('L_POST'); ?>vars['L_POSTED']) ? $this->vars['L_POSTED'] : $this->lang('L_POSTED'); ?>: vars['POST_DATE']) ? $this->vars['POST_DATE'] : $this->lang('POST_DATE'); ?>     vars['L_POST_SUBJECT']) ? $this->vars['L_POST_SUBJECT'] : $this->lang('L_POST_SUBJECT'); ?>: vars['POST_SUBJECT']) ? $this->vars['POST_SUBJECT'] : $this->lang('POST_SUBJECT'); ?>
- - - -
- vars['MESSAGE']) ? $this->vars['MESSAGE'] : $this->lang('MESSAGE'); ?> -
- -
diff --git a/phpBB2/cache/tpl_subSilver.posting_smilies.php b/phpBB2/cache/tpl_subSilver.posting_smilies.php deleted file mode 100644 index 4aac458..0000000 --- a/phpBB2/cache/tpl_subSilver.posting_smilies.php +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - -
- - - - - - - - - -
vars['L_EMOTICONS']) ? $this->vars['L_EMOTICONS'] : $this->lang('L_EMOTICONS'); ?>
- _tpldata['smilies_row.']) ) ? sizeof($this->_tpldata['smilies_row.']) : 0; -for ($smilies_row_i = 0; $smilies_row_i < $smilies_row_count; $smilies_row_i++) -{ - $smilies_row_item = &$this->_tpldata['smilies_row.'][$smilies_row_i]; - $smilies_row_item['S_ROW_COUNT'] = $smilies_row_i; - $smilies_row_item['S_NUM_ROWS'] = $smilies_row_count; - -?> - - - - - - - _tpldata['switch_smilies_extra.']) ) ? sizeof($this->_tpldata['switch_smilies_extra.']) : 0; -for ($switch_smilies_extra_i = 0; $switch_smilies_extra_i < $switch_smilies_extra_count; $switch_smilies_extra_i++) -{ - $switch_smilies_extra_item = &$this->_tpldata['switch_smilies_extra.'][$switch_smilies_extra_i]; - $switch_smilies_extra_item['S_ROW_COUNT'] = $switch_smilies_extra_i; - $switch_smilies_extra_item['S_NUM_ROWS'] = $switch_smilies_extra_count; - -?> - - - - -
<?php echo isset($smilies_col_item['SMILEY_DESC']) ? $smilies_col_item['SMILEY_DESC'] : ''; ?>
vars['L_MORE_SMILIES']) ? $this->vars['L_MORE_SMILIES'] : $this->lang('L_MORE_SMILIES'); ?>

vars['L_CLOSE_WINDOW']) ? $this->vars['L_CLOSE_WINDOW'] : $this->lang('L_CLOSE_WINDOW'); ?>
diff --git a/phpBB2/cache/tpl_subSilver.posting_topic_review.php b/phpBB2/cache/tpl_subSilver.posting_topic_review.php deleted file mode 100644 index fcb7b13..0000000 --- a/phpBB2/cache/tpl_subSilver.posting_topic_review.php +++ /dev/null @@ -1,88 +0,0 @@ - -_tpldata['switch_inline_mode.']) ) ? sizeof($this->_tpldata['switch_inline_mode.']) : 0; -for ($switch_inline_mode_i = 0; $switch_inline_mode_i < $switch_inline_mode_count; $switch_inline_mode_i++) -{ - $switch_inline_mode_item = &$this->_tpldata['switch_inline_mode.'][$switch_inline_mode_i]; - $switch_inline_mode_item['S_ROW_COUNT'] = $switch_inline_mode_i; - $switch_inline_mode_item['S_NUM_ROWS'] = $switch_inline_mode_count; - -?> - - - - - - - -
vars['L_TOPIC_REVIEW']) ? $this->vars['L_TOPIC_REVIEW'] : $this->lang('L_TOPIC_REVIEW'); ?>
- diff --git a/phpBB2/cache/tpl_subSilver.privmsgs_body.php b/phpBB2/cache/tpl_subSilver.privmsgs_body.php deleted file mode 100644 index b150005..0000000 --- a/phpBB2/cache/tpl_subSilver.privmsgs_body.php +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - - - -
- - - - - - - - - - - -
vars['INBOX_IMG']) ? $this->vars['INBOX_IMG'] : $this->lang('INBOX_IMG'); ?>vars['INBOX']) ? $this->vars['INBOX'] : $this->lang('INBOX'); ?>  vars['SENTBOX_IMG']) ? $this->vars['SENTBOX_IMG'] : $this->lang('SENTBOX_IMG'); ?>vars['SENTBOX']) ? $this->vars['SENTBOX'] : $this->lang('SENTBOX'); ?>  vars['OUTBOX_IMG']) ? $this->vars['OUTBOX_IMG'] : $this->lang('OUTBOX_IMG'); ?>vars['OUTBOX']) ? $this->vars['OUTBOX'] : $this->lang('OUTBOX'); ?>  vars['SAVEBOX_IMG']) ? $this->vars['SAVEBOX_IMG'] : $this->lang('SAVEBOX_IMG'); ?>vars['SAVEBOX']) ? $this->vars['SAVEBOX'] : $this->lang('SAVEBOX'); ?>  
-
- _tpldata['switch_box_size_notice.']) ) ? sizeof($this->_tpldata['switch_box_size_notice.']) : 0; -for ($switch_box_size_notice_i = 0; $switch_box_size_notice_i < $switch_box_size_notice_count; $switch_box_size_notice_i++) -{ - $switch_box_size_notice_item = &$this->_tpldata['switch_box_size_notice.'][$switch_box_size_notice_i]; - $switch_box_size_notice_item['S_ROW_COUNT'] = $switch_box_size_notice_i; - $switch_box_size_notice_item['S_NUM_ROWS'] = $switch_box_size_notice_count; - -?> - - - - - - - - - - - - -
vars['BOX_SIZE_STATUS']) ? $this->vars['BOX_SIZE_STATUS'] : $this->lang('BOX_SIZE_STATUS'); ?>
- - - - -
<?php echo isset($this->vars['INBOX_LIMIT_PERCENT']) ? $this->vars['INBOX_LIMIT_PERCENT'] : $this->lang('INBOX_LIMIT_PERCENT'); ?>
-
0%50%100%
- -
- -
- -
- - - - - - -
vars['POST_PM_IMG']) ? $this->vars['POST_PM_IMG'] : $this->lang('POST_PM_IMG'); ?> vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?>vars['L_DISPLAY_MESSAGES']) ? $this->vars['L_DISPLAY_MESSAGES'] : $this->lang('L_DISPLAY_MESSAGES'); ?>: - - -
- - - - - - - - - - _tpldata['listrow.']) ) ? sizeof($this->_tpldata['listrow.']) : 0; -for ($listrow_i = 0; $listrow_i < $listrow_count; $listrow_i++) -{ - $listrow_item = &$this->_tpldata['listrow.'][$listrow_i]; - $listrow_item['S_ROW_COUNT'] = $listrow_i; - $listrow_item['S_NUM_ROWS'] = $listrow_count; - -?> - - - - - - - - - _tpldata['switch_no_messages.']) ) ? sizeof($this->_tpldata['switch_no_messages.']) : 0; -for ($switch_no_messages_i = 0; $switch_no_messages_i < $switch_no_messages_count; $switch_no_messages_i++) -{ - $switch_no_messages_item = &$this->_tpldata['switch_no_messages.'][$switch_no_messages_i]; - $switch_no_messages_item['S_ROW_COUNT'] = $switch_no_messages_i; - $switch_no_messages_item['S_NUM_ROWS'] = $switch_no_messages_count; - -?> - - - - - - - -
 vars['L_FLAG']) ? $this->vars['L_FLAG'] : $this->lang('L_FLAG'); ?>  vars['L_SUBJECT']) ? $this->vars['L_SUBJECT'] : $this->lang('L_SUBJECT'); ?>  vars['L_FROM_OR_TO']) ? $this->vars['L_FROM_OR_TO'] : $this->lang('L_FROM_OR_TO'); ?>  vars['L_DATE']) ? $this->vars['L_DATE'] : $this->lang('L_DATE'); ?>  vars['L_MARK']) ? $this->vars['L_MARK'] : $this->lang('L_MARK'); ?> 
<?php echo isset($listrow_item['L_PRIVMSG_FOLDER_ALT']) ? $listrow_item['L_PRIVMSG_FOLDER_ALT'] : ''; ?>   - -
vars['L_NO_MESSAGES']) ? $this->vars['L_NO_MESSAGES'] : $this->lang('L_NO_MESSAGES'); ?>
vars['S_HIDDEN_FIELDS']) ? $this->vars['S_HIDDEN_FIELDS'] : $this->lang('S_HIDDEN_FIELDS'); ?> - -   - -   - -
- - - - - - - -
vars['POST_PM_IMG']) ? $this->vars['POST_PM_IMG'] : $this->lang('POST_PM_IMG'); ?>vars['PAGE_NUMBER']) ? $this->vars['PAGE_NUMBER'] : $this->lang('PAGE_NUMBER'); ?>vars['L_MARK_ALL']) ? $this->vars['L_MARK_ALL'] : $this->lang('L_MARK_ALL'); ?> :: vars['L_UNMARK_ALL']) ? $this->vars['L_UNMARK_ALL'] : $this->lang('L_UNMARK_ALL'); ?>
vars['PAGINATION']) ? $this->vars['PAGINATION'] : $this->lang('PAGINATION'); ?>
vars['S_TIMEZONE']) ? $this->vars['S_TIMEZONE'] : $this->lang('S_TIMEZONE'); ?>
-
- - - - - -
vars['JUMPBOX']) ? $this->vars['JUMPBOX'] : $this->lang('JUMPBOX'); ?>
diff --git a/phpBB2/cache/tpl_subSilver.privmsgs_preview.php b/phpBB2/cache/tpl_subSilver.privmsgs_preview.php deleted file mode 100644 index c49b0b3..0000000 --- a/phpBB2/cache/tpl_subSilver.privmsgs_preview.php +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -
vars['L_PREVIEW']) ? $this->vars['L_PREVIEW'] : $this->lang('L_PREVIEW'); ?>
vars['L_FROM']) ? $this->vars['L_FROM'] : $this->lang('L_FROM'); ?>:vars['MESSAGE_FROM']) ? $this->vars['MESSAGE_FROM'] : $this->lang('MESSAGE_FROM'); ?>
vars['L_TO']) ? $this->vars['L_TO'] : $this->lang('L_TO'); ?>:vars['MESSAGE_TO']) ? $this->vars['MESSAGE_TO'] : $this->lang('MESSAGE_TO'); ?>
vars['L_POSTED']) ? $this->vars['L_POSTED'] : $this->lang('L_POSTED'); ?>:vars['POST_DATE']) ? $this->vars['POST_DATE'] : $this->lang('POST_DATE'); ?>
vars['L_SUBJECT']) ? $this->vars['L_SUBJECT'] : $this->lang('L_SUBJECT'); ?>:vars['POST_SUBJECT']) ? $this->vars['POST_SUBJECT'] : $this->lang('POST_SUBJECT'); ?>
vars['MESSAGE']) ? $this->vars['MESSAGE'] : $this->lang('MESSAGE'); ?>
- -
diff --git a/phpBB2/cache/tpl_subSilver.privmsgs_read_body.php b/phpBB2/cache/tpl_subSilver.privmsgs_read_body.php deleted file mode 100644 index c19bb86..0000000 --- a/phpBB2/cache/tpl_subSilver.privmsgs_read_body.php +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - - - - - -
vars['INBOX_IMG']) ? $this->vars['INBOX_IMG'] : $this->lang('INBOX_IMG'); ?>vars['INBOX']) ? $this->vars['INBOX'] : $this->lang('INBOX'); ?>  vars['SENTBOX_IMG']) ? $this->vars['SENTBOX_IMG'] : $this->lang('SENTBOX_IMG'); ?>vars['SENTBOX']) ? $this->vars['SENTBOX'] : $this->lang('SENTBOX'); ?>  vars['OUTBOX_IMG']) ? $this->vars['OUTBOX_IMG'] : $this->lang('OUTBOX_IMG'); ?>vars['OUTBOX']) ? $this->vars['OUTBOX'] : $this->lang('OUTBOX'); ?>  vars['SAVEBOX_IMG']) ? $this->vars['SAVEBOX_IMG'] : $this->lang('SAVEBOX_IMG'); ?>vars['SAVEBOX']) ? $this->vars['SAVEBOX'] : $this->lang('SAVEBOX'); ?>
- -
- -
- - - - - -
vars['REPLY_PM_IMG']) ? $this->vars['REPLY_PM_IMG'] : $this->lang('REPLY_PM_IMG'); ?> vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
vars['BOX_NAME']) ? $this->vars['BOX_NAME'] : $this->lang('BOX_NAME'); ?> :: vars['L_MESSAGE']) ? $this->vars['L_MESSAGE'] : $this->lang('L_MESSAGE'); ?>
vars['L_FROM']) ? $this->vars['L_FROM'] : $this->lang('L_FROM'); ?>:vars['MESSAGE_FROM']) ? $this->vars['MESSAGE_FROM'] : $this->lang('MESSAGE_FROM'); ?>
vars['L_TO']) ? $this->vars['L_TO'] : $this->lang('L_TO'); ?>:vars['MESSAGE_TO']) ? $this->vars['MESSAGE_TO'] : $this->lang('MESSAGE_TO'); ?>
vars['L_POSTED']) ? $this->vars['L_POSTED'] : $this->lang('L_POSTED'); ?>:vars['POST_DATE']) ? $this->vars['POST_DATE'] : $this->lang('POST_DATE'); ?>
vars['L_SUBJECT']) ? $this->vars['L_SUBJECT'] : $this->lang('L_SUBJECT'); ?>:vars['POST_SUBJECT']) ? $this->vars['POST_SUBJECT'] : $this->lang('POST_SUBJECT'); ?> vars['QUOTE_PM_IMG']) ? $this->vars['QUOTE_PM_IMG'] : $this->lang('QUOTE_PM_IMG'); ?> vars['EDIT_PM_IMG']) ? $this->vars['EDIT_PM_IMG'] : $this->lang('EDIT_PM_IMG'); ?>
vars['MESSAGE']) ? $this->vars['MESSAGE'] : $this->lang('MESSAGE'); ?>
- - - - -
vars['PROFILE_IMG']) ? $this->vars['PROFILE_IMG'] : $this->lang('PROFILE_IMG'); ?> vars['PM_IMG']) ? $this->vars['PM_IMG'] : $this->lang('PM_IMG'); ?> vars['EMAIL_IMG']) ? $this->vars['EMAIL_IMG'] : $this->lang('EMAIL_IMG'); ?> - vars['WWW_IMG']) ? $this->vars['WWW_IMG'] : $this->lang('WWW_IMG'); ?> vars['AIM_IMG']) ? $this->vars['AIM_IMG'] : $this->lang('AIM_IMG'); ?> vars['YIM_IMG']) ? $this->vars['YIM_IMG'] : $this->lang('YIM_IMG'); ?> vars['MSN_IMG']) ? $this->vars['MSN_IMG'] : $this->lang('MSN_IMG'); ?> 
-
vars['S_HIDDEN_FIELDS']) ? $this->vars['S_HIDDEN_FIELDS'] : $this->lang('S_HIDDEN_FIELDS'); ?> - -   - -
- - - - - -
vars['REPLY_PM_IMG']) ? $this->vars['REPLY_PM_IMG'] : $this->lang('REPLY_PM_IMG'); ?>vars['S_TIMEZONE']) ? $this->vars['S_TIMEZONE'] : $this->lang('S_TIMEZONE'); ?>
-
- - - - - -
vars['JUMPBOX']) ? $this->vars['JUMPBOX'] : $this->lang('JUMPBOX'); ?>
diff --git a/phpBB2/cache/tpl_subSilver.profile_add_body.php b/phpBB2/cache/tpl_subSilver.profile_add_body.php deleted file mode 100644 index c5c1a03..0000000 --- a/phpBB2/cache/tpl_subSilver.profile_add_body.php +++ /dev/null @@ -1,413 +0,0 @@ - -
vars['S_FORM_ENCTYPE']) ? $this->vars['S_FORM_ENCTYPE'] : $this->lang('S_FORM_ENCTYPE'); ?> method="post"> - -vars['ERROR_BOX']) ? $this->vars['ERROR_BOX'] : $this->lang('ERROR_BOX'); ?> - - - - - -
vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?>
- - - - - - - - - _tpldata['switch_namechange_disallowed.']) ) ? sizeof($this->_tpldata['switch_namechange_disallowed.']) : 0; -for ($switch_namechange_disallowed_i = 0; $switch_namechange_disallowed_i < $switch_namechange_disallowed_count; $switch_namechange_disallowed_i++) -{ - $switch_namechange_disallowed_item = &$this->_tpldata['switch_namechange_disallowed.'][$switch_namechange_disallowed_i]; - $switch_namechange_disallowed_item['S_ROW_COUNT'] = $switch_namechange_disallowed_i; - $switch_namechange_disallowed_item['S_NUM_ROWS'] = $switch_namechange_disallowed_count; - -?> - - - - - - _tpldata['switch_namechange_allowed.']) ) ? sizeof($this->_tpldata['switch_namechange_allowed.']) : 0; -for ($switch_namechange_allowed_i = 0; $switch_namechange_allowed_i < $switch_namechange_allowed_count; $switch_namechange_allowed_i++) -{ - $switch_namechange_allowed_item = &$this->_tpldata['switch_namechange_allowed.'][$switch_namechange_allowed_i]; - $switch_namechange_allowed_item['S_ROW_COUNT'] = $switch_namechange_allowed_i; - $switch_namechange_allowed_item['S_NUM_ROWS'] = $switch_namechange_allowed_count; - -?> - - - - - - - - - - _tpldata['switch_edit_profile.']) ) ? sizeof($this->_tpldata['switch_edit_profile.']) : 0; -for ($switch_edit_profile_i = 0; $switch_edit_profile_i < $switch_edit_profile_count; $switch_edit_profile_i++) -{ - $switch_edit_profile_item = &$this->_tpldata['switch_edit_profile.'][$switch_edit_profile_i]; - $switch_edit_profile_item['S_ROW_COUNT'] = $switch_edit_profile_i; - $switch_edit_profile_item['S_NUM_ROWS'] = $switch_edit_profile_count; - -?> - - - - - - - - - - - - - - - _tpldata['switch_confirm.']) ) ? sizeof($this->_tpldata['switch_confirm.']) : 0; -for ($switch_confirm_i = 0; $switch_confirm_i < $switch_confirm_count; $switch_confirm_i++) -{ - $switch_confirm_item = &$this->_tpldata['switch_confirm.'][$switch_confirm_i]; - $switch_confirm_item['S_ROW_COUNT'] = $switch_confirm_i; - $switch_confirm_item['S_NUM_ROWS'] = $switch_confirm_count; - -?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - _tpldata['switch_avatar_block.']) ) ? sizeof($this->_tpldata['switch_avatar_block.']) : 0; -for ($switch_avatar_block_i = 0; $switch_avatar_block_i < $switch_avatar_block_count; $switch_avatar_block_i++) -{ - $switch_avatar_block_item = &$this->_tpldata['switch_avatar_block.'][$switch_avatar_block_i]; - $switch_avatar_block_item['S_ROW_COUNT'] = $switch_avatar_block_i; - $switch_avatar_block_item['S_NUM_ROWS'] = $switch_avatar_block_count; - -?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
vars['L_REGISTRATION_INFO']) ? $this->vars['L_REGISTRATION_INFO'] : $this->lang('L_REGISTRATION_INFO'); ?>
vars['L_ITEMS_REQUIRED']) ? $this->vars['L_ITEMS_REQUIRED'] : $this->lang('L_ITEMS_REQUIRED'); ?>
vars['L_USERNAME']) ? $this->vars['L_USERNAME'] : $this->lang('L_USERNAME'); ?>: *vars['USERNAME']) ? $this->vars['USERNAME'] : $this->lang('USERNAME'); ?>
vars['L_USERNAME']) ? $this->vars['L_USERNAME'] : $this->lang('L_USERNAME'); ?>: *
vars['L_EMAIL_ADDRESS']) ? $this->vars['L_EMAIL_ADDRESS'] : $this->lang('L_EMAIL_ADDRESS'); ?>: *
vars['L_CURRENT_PASSWORD']) ? $this->vars['L_CURRENT_PASSWORD'] : $this->lang('L_CURRENT_PASSWORD'); ?>: *
- vars['L_CONFIRM_PASSWORD_EXPLAIN']) ? $this->vars['L_CONFIRM_PASSWORD_EXPLAIN'] : $this->lang('L_CONFIRM_PASSWORD_EXPLAIN'); ?>
- -
vars['L_NEW_PASSWORD']) ? $this->vars['L_NEW_PASSWORD'] : $this->lang('L_NEW_PASSWORD'); ?>: *
- vars['L_PASSWORD_IF_CHANGED']) ? $this->vars['L_PASSWORD_IF_CHANGED'] : $this->lang('L_PASSWORD_IF_CHANGED'); ?>
- -
vars['L_CONFIRM_PASSWORD']) ? $this->vars['L_CONFIRM_PASSWORD'] : $this->lang('L_CONFIRM_PASSWORD'); ?>: *
- vars['L_PASSWORD_CONFIRM_IF_CHANGED']) ? $this->vars['L_PASSWORD_CONFIRM_IF_CHANGED'] : $this->lang('L_PASSWORD_CONFIRM_IF_CHANGED'); ?>
- -
vars['L_CONFIRM_CODE_IMPAIRED']) ? $this->vars['L_CONFIRM_CODE_IMPAIRED'] : $this->lang('L_CONFIRM_CODE_IMPAIRED'); ?>

vars['CONFIRM_IMG']) ? $this->vars['CONFIRM_IMG'] : $this->lang('CONFIRM_IMG'); ?>

vars['L_CONFIRM_CODE']) ? $this->vars['L_CONFIRM_CODE'] : $this->lang('L_CONFIRM_CODE'); ?>: *
vars['L_CONFIRM_CODE_EXPLAIN']) ? $this->vars['L_CONFIRM_CODE_EXPLAIN'] : $this->lang('L_CONFIRM_CODE_EXPLAIN'); ?>
 
vars['L_PROFILE_INFO']) ? $this->vars['L_PROFILE_INFO'] : $this->lang('L_PROFILE_INFO'); ?>
vars['L_PROFILE_INFO_NOTICE']) ? $this->vars['L_PROFILE_INFO_NOTICE'] : $this->lang('L_PROFILE_INFO_NOTICE'); ?>
vars['L_ICQ_NUMBER']) ? $this->vars['L_ICQ_NUMBER'] : $this->lang('L_ICQ_NUMBER'); ?>: - -
vars['L_AIM']) ? $this->vars['L_AIM'] : $this->lang('L_AIM'); ?>: - -
vars['L_MESSENGER']) ? $this->vars['L_MESSENGER'] : $this->lang('L_MESSENGER'); ?>: - -
vars['L_YAHOO']) ? $this->vars['L_YAHOO'] : $this->lang('L_YAHOO'); ?>: - -
vars['L_WEBSITE']) ? $this->vars['L_WEBSITE'] : $this->lang('L_WEBSITE'); ?>: - -
vars['L_LOCATION']) ? $this->vars['L_LOCATION'] : $this->lang('L_LOCATION'); ?>: - -
vars['L_OCCUPATION']) ? $this->vars['L_OCCUPATION'] : $this->lang('L_OCCUPATION'); ?>: - -
vars['L_INTERESTS']) ? $this->vars['L_INTERESTS'] : $this->lang('L_INTERESTS'); ?>: - -
vars['L_SIGNATURE']) ? $this->vars['L_SIGNATURE'] : $this->lang('L_SIGNATURE'); ?>:
vars['L_SIGNATURE_EXPLAIN']) ? $this->vars['L_SIGNATURE_EXPLAIN'] : $this->lang('L_SIGNATURE_EXPLAIN'); ?>

vars['HTML_STATUS']) ? $this->vars['HTML_STATUS'] : $this->lang('HTML_STATUS'); ?>
vars['BBCODE_STATUS']) ? $this->vars['BBCODE_STATUS'] : $this->lang('BBCODE_STATUS'); ?>
vars['SMILIES_STATUS']) ? $this->vars['SMILIES_STATUS'] : $this->lang('SMILIES_STATUS'); ?>
- -
 
vars['L_PREFERENCES']) ? $this->vars['L_PREFERENCES'] : $this->lang('L_PREFERENCES'); ?>
vars['L_PUBLIC_VIEW_EMAIL']) ? $this->vars['L_PUBLIC_VIEW_EMAIL'] : $this->lang('L_PUBLIC_VIEW_EMAIL'); ?>: - vars['VIEW_EMAIL_YES']) ? $this->vars['VIEW_EMAIL_YES'] : $this->lang('VIEW_EMAIL_YES'); ?> /> - vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>   - vars['VIEW_EMAIL_NO']) ? $this->vars['VIEW_EMAIL_NO'] : $this->lang('VIEW_EMAIL_NO'); ?> /> - vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_HIDE_USER']) ? $this->vars['L_HIDE_USER'] : $this->lang('L_HIDE_USER'); ?>: - vars['HIDE_USER_YES']) ? $this->vars['HIDE_USER_YES'] : $this->lang('HIDE_USER_YES'); ?> /> - vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>   - vars['HIDE_USER_NO']) ? $this->vars['HIDE_USER_NO'] : $this->lang('HIDE_USER_NO'); ?> /> - vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_NOTIFY_ON_REPLY']) ? $this->vars['L_NOTIFY_ON_REPLY'] : $this->lang('L_NOTIFY_ON_REPLY'); ?>:
- vars['L_NOTIFY_ON_REPLY_EXPLAIN']) ? $this->vars['L_NOTIFY_ON_REPLY_EXPLAIN'] : $this->lang('L_NOTIFY_ON_REPLY_EXPLAIN'); ?>
- vars['NOTIFY_REPLY_YES']) ? $this->vars['NOTIFY_REPLY_YES'] : $this->lang('NOTIFY_REPLY_YES'); ?> /> - vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>   - vars['NOTIFY_REPLY_NO']) ? $this->vars['NOTIFY_REPLY_NO'] : $this->lang('NOTIFY_REPLY_NO'); ?> /> - vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_NOTIFY_ON_PRIVMSG']) ? $this->vars['L_NOTIFY_ON_PRIVMSG'] : $this->lang('L_NOTIFY_ON_PRIVMSG'); ?>: - vars['NOTIFY_PM_YES']) ? $this->vars['NOTIFY_PM_YES'] : $this->lang('NOTIFY_PM_YES'); ?> /> - vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>   - vars['NOTIFY_PM_NO']) ? $this->vars['NOTIFY_PM_NO'] : $this->lang('NOTIFY_PM_NO'); ?> /> - vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_POPUP_ON_PRIVMSG']) ? $this->vars['L_POPUP_ON_PRIVMSG'] : $this->lang('L_POPUP_ON_PRIVMSG'); ?>:
vars['L_POPUP_ON_PRIVMSG_EXPLAIN']) ? $this->vars['L_POPUP_ON_PRIVMSG_EXPLAIN'] : $this->lang('L_POPUP_ON_PRIVMSG_EXPLAIN'); ?>
- vars['POPUP_PM_YES']) ? $this->vars['POPUP_PM_YES'] : $this->lang('POPUP_PM_YES'); ?> /> - vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>   - vars['POPUP_PM_NO']) ? $this->vars['POPUP_PM_NO'] : $this->lang('POPUP_PM_NO'); ?> /> - vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_ALWAYS_ADD_SIGNATURE']) ? $this->vars['L_ALWAYS_ADD_SIGNATURE'] : $this->lang('L_ALWAYS_ADD_SIGNATURE'); ?>: - vars['ALWAYS_ADD_SIGNATURE_YES']) ? $this->vars['ALWAYS_ADD_SIGNATURE_YES'] : $this->lang('ALWAYS_ADD_SIGNATURE_YES'); ?> /> - vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>   - vars['ALWAYS_ADD_SIGNATURE_NO']) ? $this->vars['ALWAYS_ADD_SIGNATURE_NO'] : $this->lang('ALWAYS_ADD_SIGNATURE_NO'); ?> /> - vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_ALWAYS_ALLOW_BBCODE']) ? $this->vars['L_ALWAYS_ALLOW_BBCODE'] : $this->lang('L_ALWAYS_ALLOW_BBCODE'); ?>: - vars['ALWAYS_ALLOW_BBCODE_YES']) ? $this->vars['ALWAYS_ALLOW_BBCODE_YES'] : $this->lang('ALWAYS_ALLOW_BBCODE_YES'); ?> /> - vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>   - vars['ALWAYS_ALLOW_BBCODE_NO']) ? $this->vars['ALWAYS_ALLOW_BBCODE_NO'] : $this->lang('ALWAYS_ALLOW_BBCODE_NO'); ?> /> - vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_ALWAYS_ALLOW_HTML']) ? $this->vars['L_ALWAYS_ALLOW_HTML'] : $this->lang('L_ALWAYS_ALLOW_HTML'); ?>: - vars['ALWAYS_ALLOW_HTML_YES']) ? $this->vars['ALWAYS_ALLOW_HTML_YES'] : $this->lang('ALWAYS_ALLOW_HTML_YES'); ?> /> - vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>   - vars['ALWAYS_ALLOW_HTML_NO']) ? $this->vars['ALWAYS_ALLOW_HTML_NO'] : $this->lang('ALWAYS_ALLOW_HTML_NO'); ?> /> - vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_ALWAYS_ALLOW_SMILIES']) ? $this->vars['L_ALWAYS_ALLOW_SMILIES'] : $this->lang('L_ALWAYS_ALLOW_SMILIES'); ?>: - vars['ALWAYS_ALLOW_SMILIES_YES']) ? $this->vars['ALWAYS_ALLOW_SMILIES_YES'] : $this->lang('ALWAYS_ALLOW_SMILIES_YES'); ?> /> - vars['L_YES']) ? $this->vars['L_YES'] : $this->lang('L_YES'); ?>   - vars['ALWAYS_ALLOW_SMILIES_NO']) ? $this->vars['ALWAYS_ALLOW_SMILIES_NO'] : $this->lang('ALWAYS_ALLOW_SMILIES_NO'); ?> /> - vars['L_NO']) ? $this->vars['L_NO'] : $this->lang('L_NO'); ?>
vars['L_BOARD_LANGUAGE']) ? $this->vars['L_BOARD_LANGUAGE'] : $this->lang('L_BOARD_LANGUAGE'); ?>:vars['LANGUAGE_SELECT']) ? $this->vars['LANGUAGE_SELECT'] : $this->lang('LANGUAGE_SELECT'); ?>
vars['L_BOARD_STYLE']) ? $this->vars['L_BOARD_STYLE'] : $this->lang('L_BOARD_STYLE'); ?>:vars['STYLE_SELECT']) ? $this->vars['STYLE_SELECT'] : $this->lang('STYLE_SELECT'); ?>
vars['L_TIMEZONE']) ? $this->vars['L_TIMEZONE'] : $this->lang('L_TIMEZONE'); ?>:vars['TIMEZONE_SELECT']) ? $this->vars['TIMEZONE_SELECT'] : $this->lang('TIMEZONE_SELECT'); ?>
vars['L_DATE_FORMAT']) ? $this->vars['L_DATE_FORMAT'] : $this->lang('L_DATE_FORMAT'); ?>:
- vars['L_DATE_FORMAT_EXPLAIN']) ? $this->vars['L_DATE_FORMAT_EXPLAIN'] : $this->lang('L_DATE_FORMAT_EXPLAIN'); ?>
- -
 
vars['L_AVATAR_PANEL']) ? $this->vars['L_AVATAR_PANEL'] : $this->lang('L_AVATAR_PANEL'); ?>
- - - - -
vars['L_AVATAR_EXPLAIN']) ? $this->vars['L_AVATAR_EXPLAIN'] : $this->lang('L_AVATAR_EXPLAIN'); ?>vars['L_CURRENT_IMAGE']) ? $this->vars['L_CURRENT_IMAGE'] : $this->lang('L_CURRENT_IMAGE'); ?>
vars['AVATAR']) ? $this->vars['AVATAR'] : $this->lang('AVATAR'); ?>
 vars['L_DELETE_AVATAR']) ? $this->vars['L_DELETE_AVATAR'] : $this->lang('L_DELETE_AVATAR'); ?>
vars['L_UPLOAD_AVATAR_FILE']) ? $this->vars['L_UPLOAD_AVATAR_FILE'] : $this->lang('L_UPLOAD_AVATAR_FILE'); ?>:
vars['L_UPLOAD_AVATAR_URL']) ? $this->vars['L_UPLOAD_AVATAR_URL'] : $this->lang('L_UPLOAD_AVATAR_URL'); ?>:
vars['L_UPLOAD_AVATAR_URL_EXPLAIN']) ? $this->vars['L_UPLOAD_AVATAR_URL_EXPLAIN'] : $this->lang('L_UPLOAD_AVATAR_URL_EXPLAIN'); ?>
vars['L_LINK_REMOTE_AVATAR']) ? $this->vars['L_LINK_REMOTE_AVATAR'] : $this->lang('L_LINK_REMOTE_AVATAR'); ?>:
vars['L_LINK_REMOTE_AVATAR_EXPLAIN']) ? $this->vars['L_LINK_REMOTE_AVATAR_EXPLAIN'] : $this->lang('L_LINK_REMOTE_AVATAR_EXPLAIN'); ?>
vars['L_AVATAR_GALLERY']) ? $this->vars['L_AVATAR_GALLERY'] : $this->lang('L_AVATAR_GALLERY'); ?>:
vars['S_HIDDEN_FIELDS']) ? $this->vars['S_HIDDEN_FIELDS'] : $this->lang('S_HIDDEN_FIELDS'); ?>  
- -
diff --git a/phpBB2/cache/tpl_subSilver.profile_send_pass.php b/phpBB2/cache/tpl_subSilver.profile_send_pass.php deleted file mode 100644 index 98eb07a..0000000 --- a/phpBB2/cache/tpl_subSilver.profile_send_pass.php +++ /dev/null @@ -1,39 +0,0 @@ - -
- - - - -
vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?>
- - - - - - - - - - - - - - - - - - -
vars['L_SEND_PASSWORD']) ? $this->vars['L_SEND_PASSWORD'] : $this->lang('L_SEND_PASSWORD'); ?>
vars['L_ITEMS_REQUIRED']) ? $this->vars['L_ITEMS_REQUIRED'] : $this->lang('L_ITEMS_REQUIRED'); ?>
vars['L_USERNAME']) ? $this->vars['L_USERNAME'] : $this->lang('L_USERNAME'); ?>: * - -
vars['L_EMAIL_ADDRESS']) ? $this->vars['L_EMAIL_ADDRESS'] : $this->lang('L_EMAIL_ADDRESS'); ?>: * - -
vars['S_HIDDEN_FIELDS']) ? $this->vars['S_HIDDEN_FIELDS'] : $this->lang('S_HIDDEN_FIELDS'); ?> - -    - -
-
diff --git a/phpBB2/cache/tpl_subSilver.profile_view_body.php b/phpBB2/cache/tpl_subSilver.profile_view_body.php deleted file mode 100644 index d7ae8b3..0000000 --- a/phpBB2/cache/tpl_subSilver.profile_view_body.php +++ /dev/null @@ -1,95 +0,0 @@ - - - - - -
vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?>
- - - - - - - - - - - - - - - - - - - -
vars['L_VIEWING_PROFILE']) ? $this->vars['L_VIEWING_PROFILE'] : $this->lang('L_VIEWING_PROFILE'); ?>
vars['L_AVATAR']) ? $this->vars['L_AVATAR'] : $this->lang('L_AVATAR'); ?>vars['L_ABOUT_USER']) ? $this->vars['L_ABOUT_USER'] : $this->lang('L_ABOUT_USER'); ?>
vars['AVATAR_IMG']) ? $this->vars['AVATAR_IMG'] : $this->lang('AVATAR_IMG'); ?>
vars['POSTER_RANK']) ? $this->vars['POSTER_RANK'] : $this->lang('POSTER_RANK'); ?>
- - - - - - - - - - - - - - - - - - - - - - - - -
vars['L_JOINED']) ? $this->vars['L_JOINED'] : $this->lang('L_JOINED'); ?>: vars['JOINED']) ? $this->vars['JOINED'] : $this->lang('JOINED'); ?>
vars['L_TOTAL_POSTS']) ? $this->vars['L_TOTAL_POSTS'] : $this->lang('L_TOTAL_POSTS'); ?>: vars['POSTS']) ? $this->vars['POSTS'] : $this->lang('POSTS'); ?>
[vars['POST_PERCENT_STATS']) ? $this->vars['POST_PERCENT_STATS'] : $this->lang('POST_PERCENT_STATS'); ?> / vars['POST_DAY_STATS']) ? $this->vars['POST_DAY_STATS'] : $this->lang('POST_DAY_STATS'); ?>]
vars['L_SEARCH_USER_POSTS']) ? $this->vars['L_SEARCH_USER_POSTS'] : $this->lang('L_SEARCH_USER_POSTS'); ?>
vars['L_LOCATION']) ? $this->vars['L_LOCATION'] : $this->lang('L_LOCATION'); ?>: vars['LOCATION']) ? $this->vars['LOCATION'] : $this->lang('LOCATION'); ?>
vars['L_WEBSITE']) ? $this->vars['L_WEBSITE'] : $this->lang('L_WEBSITE'); ?>: vars['WWW']) ? $this->vars['WWW'] : $this->lang('WWW'); ?>
vars['L_OCCUPATION']) ? $this->vars['L_OCCUPATION'] : $this->lang('L_OCCUPATION'); ?>: vars['OCCUPATION']) ? $this->vars['OCCUPATION'] : $this->lang('OCCUPATION'); ?>
vars['L_INTERESTS']) ? $this->vars['L_INTERESTS'] : $this->lang('L_INTERESTS'); ?>: vars['INTERESTS']) ? $this->vars['INTERESTS'] : $this->lang('INTERESTS'); ?>
-
vars['L_CONTACT']) ? $this->vars['L_CONTACT'] : $this->lang('L_CONTACT'); ?> vars['USERNAME']) ? $this->vars['USERNAME'] : $this->lang('USERNAME'); ?>
- - - - - - - - - - - - - - - - - - - - - - - - -
vars['L_EMAIL_ADDRESS']) ? $this->vars['L_EMAIL_ADDRESS'] : $this->lang('L_EMAIL_ADDRESS'); ?>:vars['EMAIL_IMG']) ? $this->vars['EMAIL_IMG'] : $this->lang('EMAIL_IMG'); ?>
vars['L_PM']) ? $this->vars['L_PM'] : $this->lang('L_PM'); ?>:vars['PM_IMG']) ? $this->vars['PM_IMG'] : $this->lang('PM_IMG'); ?>
vars['L_MESSENGER']) ? $this->vars['L_MESSENGER'] : $this->lang('L_MESSENGER'); ?>:vars['MSN']) ? $this->vars['MSN'] : $this->lang('MSN'); ?>
vars['L_YAHOO']) ? $this->vars['L_YAHOO'] : $this->lang('L_YAHOO'); ?>:vars['YIM_IMG']) ? $this->vars['YIM_IMG'] : $this->lang('YIM_IMG'); ?>
vars['L_AIM']) ? $this->vars['L_AIM'] : $this->lang('L_AIM'); ?>:vars['AIM_IMG']) ? $this->vars['AIM_IMG'] : $this->lang('AIM_IMG'); ?>
vars['L_ICQ_NUMBER']) ? $this->vars['L_ICQ_NUMBER'] : $this->lang('L_ICQ_NUMBER'); ?>:
-
- - - - - -

vars['JUMPBOX']) ? $this->vars['JUMPBOX'] : $this->lang('JUMPBOX'); ?>
diff --git a/phpBB2/cache/tpl_subSilver.search_username.php b/phpBB2/cache/tpl_subSilver.search_username.php deleted file mode 100644 index dba5d71..0000000 --- a/phpBB2/cache/tpl_subSilver.search_username.php +++ /dev/null @@ -1,49 +0,0 @@ - - - -
- - - - -
- - - - - - -
vars['L_SEARCH_USERNAME']) ? $this->vars['L_SEARCH_USERNAME'] : $this->lang('L_SEARCH_USERNAME'); ?>

 

vars['L_SEARCH_EXPLAIN']) ? $this->vars['L_SEARCH_EXPLAIN'] : $this->lang('L_SEARCH_EXPLAIN'); ?>
- _tpldata['switch_select_name.']) ) ? sizeof($this->_tpldata['switch_select_name.']) : 0; -for ($switch_select_name_i = 0; $switch_select_name_i < $switch_select_name_count; $switch_select_name_i++) -{ - $switch_select_name_item = &$this->_tpldata['switch_select_name.'][$switch_select_name_i]; - $switch_select_name_item['S_ROW_COUNT'] = $switch_select_name_i; - $switch_select_name_item['S_NUM_ROWS'] = $switch_select_name_count; - -?> - vars['L_UPDATE_USERNAME']) ? $this->vars['L_UPDATE_USERNAME'] : $this->lang('L_UPDATE_USERNAME'); ?>
 

- -
vars['L_CLOSE_WINDOW']) ? $this->vars['L_CLOSE_WINDOW'] : $this->lang('L_CLOSE_WINDOW'); ?>
-
diff --git a/phpBB2/cache/tpl_subSilver.simple_footer.php b/phpBB2/cache/tpl_subSilver.simple_footer.php deleted file mode 100644 index 92f3d6a..0000000 --- a/phpBB2/cache/tpl_subSilver.simple_footer.php +++ /dev/null @@ -1,23 +0,0 @@ - -

- -Powered by phpBB © 2001, 2005 phpBB Group
- - - - - - diff --git a/phpBB2/cache/tpl_subSilver.simple_header.php b/phpBB2/cache/tpl_subSilver.simple_header.php deleted file mode 100644 index b19169a..0000000 --- a/phpBB2/cache/tpl_subSilver.simple_header.php +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - - - - - -vars['META']) ? $this->vars['META'] : $this->lang('META'); ?> -<?php echo isset($this->vars['SITENAME']) ? $this->vars['SITENAME'] : $this->lang('SITENAME'); ?> :: <?php echo isset($this->vars['PAGE_TITLE']) ? $this->vars['PAGE_TITLE'] : $this->lang('PAGE_TITLE'); ?> - - - - - - - - - - diff --git a/phpBB2/cache/tpl_subSilver.viewforum_body.php b/phpBB2/cache/tpl_subSilver.viewforum_body.php deleted file mode 100644 index d7702b8..0000000 --- a/phpBB2/cache/tpl_subSilver.viewforum_body.php +++ /dev/null @@ -1,132 +0,0 @@ - -
- - - - - - - - - - -
vars['FORUM_NAME']) ? $this->vars['FORUM_NAME'] : $this->lang('FORUM_NAME'); ?>
vars['L_MODERATOR']) ? $this->vars['L_MODERATOR'] : $this->lang('L_MODERATOR'); ?>: vars['MODERATORS']) ? $this->vars['MODERATORS'] : $this->lang('MODERATORS'); ?>

vars['LOGGED_IN_USER_LIST']) ? $this->vars['LOGGED_IN_USER_LIST'] : $this->lang('LOGGED_IN_USER_LIST'); ?>
vars['PAGINATION']) ? $this->vars['PAGINATION'] : $this->lang('PAGINATION'); ?>
<?php echo isset($this->vars['L_POST_NEW_TOPIC']) ? $this->vars['L_POST_NEW_TOPIC'] : $this->lang('L_POST_NEW_TOPIC'); ?>
- - - - - - - - - - _tpldata['topicrow.']) ) ? sizeof($this->_tpldata['topicrow.']) : 0; -for ($topicrow_i = 0; $topicrow_i < $topicrow_count; $topicrow_i++) -{ - $topicrow_item = &$this->_tpldata['topicrow.'][$topicrow_i]; - $topicrow_item['S_ROW_COUNT'] = $topicrow_i; - $topicrow_item['S_NUM_ROWS'] = $topicrow_count; - -?> - - - - - - - - - - _tpldata['switch_no_topics.']) ) ? sizeof($this->_tpldata['switch_no_topics.']) : 0; -for ($switch_no_topics_i = 0; $switch_no_topics_i < $switch_no_topics_count; $switch_no_topics_i++) -{ - $switch_no_topics_item = &$this->_tpldata['switch_no_topics.'][$switch_no_topics_i]; - $switch_no_topics_item['S_ROW_COUNT'] = $switch_no_topics_i; - $switch_no_topics_item['S_NUM_ROWS'] = $switch_no_topics_count; - -?> - - - - - - - -
 vars['L_TOPICS']) ? $this->vars['L_TOPICS'] : $this->lang('L_TOPICS'); ?>  vars['L_REPLIES']) ? $this->vars['L_REPLIES'] : $this->lang('L_REPLIES'); ?>  vars['L_AUTHOR']) ? $this->vars['L_AUTHOR'] : $this->lang('L_AUTHOR'); ?>  vars['L_VIEWS']) ? $this->vars['L_VIEWS'] : $this->lang('L_VIEWS'); ?>  vars['L_LASTPOST']) ? $this->vars['L_LASTPOST'] : $this->lang('L_LASTPOST'); ?> 
<?php echo isset($topicrow_item['L_TOPIC_FOLDER_ALT']) ? $topicrow_item['L_TOPIC_FOLDER_ALT'] : ''; ?>
-

vars['L_NO_TOPICS']) ? $this->vars['L_NO_TOPICS'] : $this->lang('L_NO_TOPICS'); ?>
vars['L_DISPLAY_TOPICS']) ? $this->vars['L_DISPLAY_TOPICS'] : $this->lang('L_DISPLAY_TOPICS'); ?>: vars['S_SELECT_TOPIC_DAYS']) ? $this->vars['S_SELECT_TOPIC_DAYS'] : $this->lang('S_SELECT_TOPIC_DAYS'); ?>  - -
- - - - - - - - - - -
<?php echo isset($this->vars['L_POST_NEW_TOPIC']) ? $this->vars['L_POST_NEW_TOPIC'] : $this->lang('L_POST_NEW_TOPIC'); ?>   vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?> -> vars['FORUM_NAME']) ? $this->vars['FORUM_NAME'] : $this->lang('FORUM_NAME'); ?>vars['S_TIMEZONE']) ? $this->vars['S_TIMEZONE'] : $this->lang('S_TIMEZONE'); ?>
vars['PAGINATION']) ? $this->vars['PAGINATION'] : $this->lang('PAGINATION'); ?> -
vars['PAGE_NUMBER']) ? $this->vars['PAGE_NUMBER'] : $this->lang('PAGE_NUMBER'); ?>
-
- - - - - -
vars['JUMPBOX']) ? $this->vars['JUMPBOX'] : $this->lang('JUMPBOX'); ?>
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
<?php echo isset($this->vars['L_NEW_POSTS']) ? $this->vars['L_NEW_POSTS'] : $this->lang('L_NEW_POSTS'); ?>vars['L_NEW_POSTS']) ? $this->vars['L_NEW_POSTS'] : $this->lang('L_NEW_POSTS'); ?>  <?php echo isset($this->vars['L_NO_NEW_POSTS']) ? $this->vars['L_NO_NEW_POSTS'] : $this->lang('L_NO_NEW_POSTS'); ?>vars['L_NO_NEW_POSTS']) ? $this->vars['L_NO_NEW_POSTS'] : $this->lang('L_NO_NEW_POSTS'); ?>  <?php echo isset($this->vars['L_ANNOUNCEMENT']) ? $this->vars['L_ANNOUNCEMENT'] : $this->lang('L_ANNOUNCEMENT'); ?>vars['L_ANNOUNCEMENT']) ? $this->vars['L_ANNOUNCEMENT'] : $this->lang('L_ANNOUNCEMENT'); ?>
<?php echo isset($this->vars['L_NEW_POSTS_HOT']) ? $this->vars['L_NEW_POSTS_HOT'] : $this->lang('L_NEW_POSTS_HOT'); ?>vars['L_NEW_POSTS_HOT']) ? $this->vars['L_NEW_POSTS_HOT'] : $this->lang('L_NEW_POSTS_HOT'); ?>  <?php echo isset($this->vars['L_NO_NEW_POSTS_HOT']) ? $this->vars['L_NO_NEW_POSTS_HOT'] : $this->lang('L_NO_NEW_POSTS_HOT'); ?>vars['L_NO_NEW_POSTS_HOT']) ? $this->vars['L_NO_NEW_POSTS_HOT'] : $this->lang('L_NO_NEW_POSTS_HOT'); ?>  <?php echo isset($this->vars['L_STICKY']) ? $this->vars['L_STICKY'] : $this->lang('L_STICKY'); ?>vars['L_STICKY']) ? $this->vars['L_STICKY'] : $this->lang('L_STICKY'); ?>
<?php echo isset($this->vars['L_NEW_POSTS_LOCKED']) ? $this->vars['L_NEW_POSTS_LOCKED'] : $this->lang('L_NEW_POSTS_LOCKED'); ?>vars['L_NEW_POSTS_LOCKED']) ? $this->vars['L_NEW_POSTS_LOCKED'] : $this->lang('L_NEW_POSTS_LOCKED'); ?>  <?php echo isset($this->vars['L_NO_NEW_POSTS_LOCKED']) ? $this->vars['L_NO_NEW_POSTS_LOCKED'] : $this->lang('L_NO_NEW_POSTS_LOCKED'); ?>vars['L_NO_NEW_POSTS_LOCKED']) ? $this->vars['L_NO_NEW_POSTS_LOCKED'] : $this->lang('L_NO_NEW_POSTS_LOCKED'); ?>
vars['S_AUTH_LIST']) ? $this->vars['S_AUTH_LIST'] : $this->lang('S_AUTH_LIST'); ?>
diff --git a/phpBB2/cache/tpl_subSilver.viewonline_body.php b/phpBB2/cache/tpl_subSilver.viewonline_body.php deleted file mode 100644 index 0dda8a3..0000000 --- a/phpBB2/cache/tpl_subSilver.viewonline_body.php +++ /dev/null @@ -1,87 +0,0 @@ - - - - - -
vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?>
- - - - - - - - - - - _tpldata['reg_user_row.']) ) ? sizeof($this->_tpldata['reg_user_row.']) : 0; -for ($reg_user_row_i = 0; $reg_user_row_i < $reg_user_row_count; $reg_user_row_i++) -{ - $reg_user_row_item = &$this->_tpldata['reg_user_row.'][$reg_user_row_i]; - $reg_user_row_item['S_ROW_COUNT'] = $reg_user_row_i; - $reg_user_row_item['S_NUM_ROWS'] = $reg_user_row_count; - -?> - - - - - - - - - - - - - _tpldata['guest_user_row.']) ) ? sizeof($this->_tpldata['guest_user_row.']) : 0; -for ($guest_user_row_i = 0; $guest_user_row_i < $guest_user_row_count; $guest_user_row_i++) -{ - $guest_user_row_item = &$this->_tpldata['guest_user_row.'][$guest_user_row_i]; - $guest_user_row_item['S_ROW_COUNT'] = $guest_user_row_i; - $guest_user_row_item['S_NUM_ROWS'] = $guest_user_row_count; - -?> - - - - - - -
 vars['L_USERNAME']) ? $this->vars['L_USERNAME'] : $this->lang('L_USERNAME'); ?>  vars['L_LAST_UPDATE']) ? $this->vars['L_LAST_UPDATE'] : $this->lang('L_LAST_UPDATE'); ?>  vars['L_FORUM_LOCATION']) ? $this->vars['L_FORUM_LOCATION'] : $this->lang('L_FORUM_LOCATION'); ?> 
vars['TOTAL_REGISTERED_USERS_ONLINE']) ? $this->vars['TOTAL_REGISTERED_USERS_ONLINE'] : $this->lang('TOTAL_REGISTERED_USERS_ONLINE'); ?>
      
.
vars['TOTAL_GUEST_USERS_ONLINE']) ? $this->vars['TOTAL_GUEST_USERS_ONLINE'] : $this->lang('TOTAL_GUEST_USERS_ONLINE'); ?>
      
- - - - - - -
vars['L_ONLINE_EXPLAIN']) ? $this->vars['L_ONLINE_EXPLAIN'] : $this->lang('L_ONLINE_EXPLAIN'); ?>vars['S_TIMEZONE']) ? $this->vars['S_TIMEZONE'] : $this->lang('S_TIMEZONE'); ?>
- -
- - - - - -
vars['JUMPBOX']) ? $this->vars['JUMPBOX'] : $this->lang('JUMPBOX'); ?>
- diff --git a/phpBB2/cache/tpl_subSilver.viewtopic_body.php b/phpBB2/cache/tpl_subSilver.viewtopic_body.php deleted file mode 100644 index ff003b8..0000000 --- a/phpBB2/cache/tpl_subSilver.viewtopic_body.php +++ /dev/null @@ -1,110 +0,0 @@ - - - - - -
vars['TOPIC_TITLE']) ? $this->vars['TOPIC_TITLE'] : $this->lang('TOPIC_TITLE'); ?>
- vars['PAGINATION']) ? $this->vars['PAGINATION'] : $this->lang('PAGINATION'); ?>
-  
- - - - - - -
<?php echo isset($this->vars['L_POST_NEW_TOPIC']) ? $this->vars['L_POST_NEW_TOPIC'] : $this->lang('L_POST_NEW_TOPIC'); ?>   <?php echo isset($this->vars['L_POST_REPLY_TOPIC']) ? $this->vars['L_POST_REPLY_TOPIC'] : $this->lang('L_POST_REPLY_TOPIC'); ?>   vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?> - -> vars['FORUM_NAME']) ? $this->vars['FORUM_NAME'] : $this->lang('FORUM_NAME'); ?>
- - - - - - vars['POLL_DISPLAY']) ? $this->vars['POLL_DISPLAY'] : $this->lang('POLL_DISPLAY'); ?> - - - - - _tpldata['postrow.']) ) ? sizeof($this->_tpldata['postrow.']) : 0; -for ($postrow_i = 0; $postrow_i < $postrow_count; $postrow_i++) -{ - $postrow_item = &$this->_tpldata['postrow.'][$postrow_i]; - $postrow_item['S_ROW_COUNT'] = $postrow_i; - $postrow_item['S_NUM_ROWS'] = $postrow_count; - -?> - - - - - - - - - - - - - - - -
vars['L_VIEW_PREVIOUS_TOPIC']) ? $this->vars['L_VIEW_PREVIOUS_TOPIC'] : $this->lang('L_VIEW_PREVIOUS_TOPIC'); ?> :: vars['L_VIEW_NEXT_TOPIC']) ? $this->vars['L_VIEW_NEXT_TOPIC'] : $this->lang('L_VIEW_NEXT_TOPIC'); ?>  
vars['L_AUTHOR']) ? $this->vars['L_AUTHOR'] : $this->lang('L_AUTHOR'); ?>vars['L_MESSAGE']) ? $this->vars['L_MESSAGE'] : $this->lang('L_MESSAGE'); ?>







- - - - - - - - - - -
<?php echo isset($postrow_item['L_MINI_POST_ALT']) ? $postrow_item['L_MINI_POST_ALT'] : ''; ?>vars['L_POSTED']) ? $this->vars['L_POSTED'] : $this->lang('L_POSTED'); ?>:     vars['L_POST_SUBJECT']) ? $this->vars['L_POST_SUBJECT'] : $this->lang('L_POST_SUBJECT'); ?>:

vars['L_BACK_TO_TOP']) ? $this->vars['L_BACK_TO_TOP'] : $this->lang('L_BACK_TO_TOP'); ?> - - - -
- - - -
vars['L_DISPLAY_POSTS']) ? $this->vars['L_DISPLAY_POSTS'] : $this->lang('L_DISPLAY_POSTS'); ?>: vars['S_SELECT_POST_DAYS']) ? $this->vars['S_SELECT_POST_DAYS'] : $this->lang('S_SELECT_POST_DAYS'); ?> vars['S_SELECT_POST_ORDER']) ? $this->vars['S_SELECT_POST_ORDER'] : $this->lang('S_SELECT_POST_ORDER'); ?> 
- - - - - - - - - - -
<?php echo isset($this->vars['L_POST_NEW_TOPIC']) ? $this->vars['L_POST_NEW_TOPIC'] : $this->lang('L_POST_NEW_TOPIC'); ?>   <?php echo isset($this->vars['L_POST_REPLY_TOPIC']) ? $this->vars['L_POST_REPLY_TOPIC'] : $this->lang('L_POST_REPLY_TOPIC'); ?>   vars['L_INDEX']) ? $this->vars['L_INDEX'] : $this->lang('L_INDEX'); ?> - -> vars['FORUM_NAME']) ? $this->vars['FORUM_NAME'] : $this->lang('FORUM_NAME'); ?>vars['S_TIMEZONE']) ? $this->vars['S_TIMEZONE'] : $this->lang('S_TIMEZONE'); ?>
vars['PAGINATION']) ? $this->vars['PAGINATION'] : $this->lang('PAGINATION'); ?> -
vars['PAGE_NUMBER']) ? $this->vars['PAGE_NUMBER'] : $this->lang('PAGE_NUMBER'); ?>
- - - - - - -
vars['S_WATCH_TOPIC']) ? $this->vars['S_WATCH_TOPIC'] : $this->lang('S_WATCH_TOPIC'); ?>
-  
- vars['S_TOPIC_ADMIN']) ? $this->vars['S_TOPIC_ADMIN'] : $this->lang('S_TOPIC_ADMIN'); ?>
vars['JUMPBOX']) ? $this->vars['JUMPBOX'] : $this->lang('JUMPBOX'); ?>vars['S_AUTH_LIST']) ? $this->vars['S_AUTH_LIST'] : $this->lang('S_AUTH_LIST'); ?>
diff --git a/phpBB2/cache/tpl_subSilver.viewtopic_poll_ballot.php b/phpBB2/cache/tpl_subSilver.viewtopic_poll_ballot.php deleted file mode 100644 index 0569d84..0000000 --- a/phpBB2/cache/tpl_subSilver.viewtopic_poll_ballot.php +++ /dev/null @@ -1,45 +0,0 @@ - -
- - - - - - - - - - - - - -
vars['POLL_QUESTION']) ? $this->vars['POLL_QUESTION'] : $this->lang('POLL_QUESTION'); ?>
- _tpldata['poll_option.']) ) ? sizeof($this->_tpldata['poll_option.']) : 0; -for ($poll_option_i = 0; $poll_option_i < $poll_option_count; $poll_option_i++) -{ - $poll_option_item = &$this->_tpldata['poll_option.'][$poll_option_i]; - $poll_option_item['S_ROW_COUNT'] = $poll_option_i; - $poll_option_item['S_NUM_ROWS'] = $poll_option_count; - -?> - - - - - -
 
- -
vars['L_VIEW_RESULTS']) ? $this->vars['L_VIEW_RESULTS'] : $this->lang('L_VIEW_RESULTS'); ?>
vars['S_HIDDEN_FIELDS']) ? $this->vars['S_HIDDEN_FIELDS'] : $this->lang('S_HIDDEN_FIELDS'); ?>
- \ No newline at end of file diff --git a/phpBB2/cache/tpl_subSilver.viewtopic_poll_result.php b/phpBB2/cache/tpl_subSilver.viewtopic_poll_result.php deleted file mode 100644 index e72b61d..0000000 --- a/phpBB2/cache/tpl_subSilver.viewtopic_poll_result.php +++ /dev/null @@ -1,55 +0,0 @@ - - -
- - - - - - - - - - -
vars['POLL_QUESTION']) ? $this->vars['POLL_QUESTION'] : $this->lang('POLL_QUESTION'); ?>
- - _tpldata['poll_option.']) ) ? sizeof($this->_tpldata['poll_option.']) : 0; -for ($poll_option_i = 0; $poll_option_i < $poll_option_count; $poll_option_i++) -{ - $poll_option_item = &$this->_tpldata['poll_option.'][$poll_option_i]; - $poll_option_item['S_ROW_COUNT'] = $poll_option_i; - $poll_option_item['S_NUM_ROWS'] = $poll_option_count; - -?> - - - - - - - -
- - - - - - -
<?php echo isset($poll_option_item['POLL_OPTION_PERCENT']) ? $poll_option_item['POLL_OPTION_PERCENT'] : ''; ?>
-
  [ ]
-
vars['L_TOTAL_VOTES']) ? $this->vars['L_TOTAL_VOTES'] : $this->lang('L_TOTAL_VOTES'); ?> : vars['TOTAL_VOTES']) ? $this->vars['TOTAL_VOTES'] : $this->lang('TOTAL_VOTES'); ?>
-
- - diff --git a/phpBB2/common.php b/phpBB2/common.php deleted file mode 100644 index 1588481..0000000 --- a/phpBB2/common.php +++ /dev/null @@ -1,236 +0,0 @@ -= '5.0.0' && (!@ini_get('register_long_arrays') || @ini_get('register_long_arrays') == '0' || strtolower(@ini_get('register_long_arrays')) == 'off')) -{ - $HTTP_POST_VARS = $_POST; - $HTTP_GET_VARS = $_GET; - $HTTP_SERVER_VARS = $_SERVER; - $HTTP_COOKIE_VARS = $_COOKIE; - $HTTP_ENV_VARS = $_ENV; - $HTTP_POST_FILES = $_FILES; - - // _SESSION is the only superglobal which is conditionally set - if (isset($_SESSION)) - { - $HTTP_SESSION_VARS = $_SESSION; - } -} - -// Protect against GLOBALS tricks -if (isset($HTTP_POST_VARS['GLOBALS']) || isset($HTTP_POST_FILES['GLOBALS']) || isset($HTTP_GET_VARS['GLOBALS']) || isset($HTTP_COOKIE_VARS['GLOBALS'])) -{ - die("Hacking attempt"); -} - -// Protect against HTTP_SESSION_VARS tricks -if (isset($HTTP_SESSION_VARS) && !is_array($HTTP_SESSION_VARS)) -{ - die("Hacking attempt"); -} - -if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on') -{ - // PHP4+ path - $not_unset = array('HTTP_GET_VARS', 'HTTP_POST_VARS', 'HTTP_COOKIE_VARS', 'HTTP_SERVER_VARS', 'HTTP_SESSION_VARS', 'HTTP_ENV_VARS', 'HTTP_POST_FILES', 'phpEx', 'phpbb_root_path'); - - // Not only will array_merge give a warning if a parameter - // is not an array, it will actually fail. So we check if - // HTTP_SESSION_VARS has been initialised. - if (!isset($HTTP_SESSION_VARS) || !is_array($HTTP_SESSION_VARS)) - { - $HTTP_SESSION_VARS = array(); - } - - // Merge all into one extremely huge array; unset - // this later - $input = array_merge($HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $HTTP_SESSION_VARS, $HTTP_ENV_VARS, $HTTP_POST_FILES); - - unset($input['input']); - unset($input['not_unset']); - - while (list($var,) = @each($input)) - { - if (in_array($var, $not_unset)) - { - die('Hacking attempt!'); - } - unset($$var); - } - - unset($input); -} - -// -// addslashes to vars if magic_quotes_gpc is off -// this is a security precaution to prevent someone -// trying to break out of a SQL statement. -// -if( !get_magic_quotes_gpc() ) -{ - if( is_array($HTTP_GET_VARS) ) - { - while( list($k, $v) = each($HTTP_GET_VARS) ) - { - if( is_array($HTTP_GET_VARS[$k]) ) - { - while( list($k2, $v2) = each($HTTP_GET_VARS[$k]) ) - { - $HTTP_GET_VARS[$k][$k2] = addslashes($v2); - } - @reset($HTTP_GET_VARS[$k]); - } - else - { - $HTTP_GET_VARS[$k] = addslashes($v); - } - } - @reset($HTTP_GET_VARS); - } - - if( is_array($HTTP_POST_VARS) ) - { - while( list($k, $v) = each($HTTP_POST_VARS) ) - { - if( is_array($HTTP_POST_VARS[$k]) ) - { - while( list($k2, $v2) = each($HTTP_POST_VARS[$k]) ) - { - $HTTP_POST_VARS[$k][$k2] = addslashes($v2); - } - @reset($HTTP_POST_VARS[$k]); - } - else - { - $HTTP_POST_VARS[$k] = addslashes($v); - } - } - @reset($HTTP_POST_VARS); - } - - if( is_array($HTTP_COOKIE_VARS) ) - { - while( list($k, $v) = each($HTTP_COOKIE_VARS) ) - { - if( is_array($HTTP_COOKIE_VARS[$k]) ) - { - while( list($k2, $v2) = each($HTTP_COOKIE_VARS[$k]) ) - { - $HTTP_COOKIE_VARS[$k][$k2] = addslashes($v2); - } - @reset($HTTP_COOKIE_VARS[$k]); - } - else - { - $HTTP_COOKIE_VARS[$k] = addslashes($v); - } - } - @reset($HTTP_COOKIE_VARS); - } -} - -// -// Define some basic configuration arrays this also prevents -// malicious rewriting of language and otherarray values via -// URI params -// -$board_config = array(); -$userdata = array(); -$theme = array(); -$images = array(); -$lang = array(); -$nav_links = array(); -$dss_seeded = false; -$gen_simple_header = FALSE; - -include($phpbb_root_path . 'config.'.$phpEx); - -if( !defined("PHPBB_INSTALLED") ) -{ - header('Location: ' . $phpbb_root_path . 'install/install.' . $phpEx); - exit; -} - -include($phpbb_root_path . 'includes/constants.'.$phpEx); -include($phpbb_root_path . 'includes/template.'.$phpEx); -include($phpbb_root_path . 'includes/sessions.'.$phpEx); -include($phpbb_root_path . 'includes/auth.'.$phpEx); -include($phpbb_root_path . 'includes/functions.'.$phpEx); -include($phpbb_root_path . 'includes/db.'.$phpEx); - -// We do not need this any longer, unset for safety purposes -unset($dbpasswd); - -// -// Obtain and encode users IP -// -// I'm removing HTTP_X_FORWARDED_FOR ... this may well cause other problems such as -// private range IP's appearing instead of the guilty routable IP, tough, don't -// even bother complaining ... go scream and shout at the idiots out there who feel -// "clever" is doing harm rather than good ... karma is a great thing ... :) -// -$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : getenv('REMOTE_ADDR') ); -$user_ip = encode_ip($client_ip); - -// -// Setup forum wide options, if this fails -// then we output a CRITICAL_ERROR since -// basic forum information is not available -// -$sql = "SELECT * - FROM " . CONFIG_TABLE; -if( !($result = $db->sql_query($sql)) ) -{ - message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql); -} - -while ( $row = $db->sql_fetchrow($result) ) -{ - $board_config[$row['config_name']] = $row['config_value']; -} - -if (file_exists('install') || file_exists('contrib')) -{ - message_die(GENERAL_MESSAGE, 'Please_remove_install_contrib'); -} - -// -// Show 'Board is disabled' message if needed. -// -if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") ) -{ - message_die(GENERAL_MESSAGE, 'Board_disable', 'Information'); -} - -?> \ No newline at end of file diff --git a/phpBB2/config.php b/phpBB2/config.php deleted file mode 100644 index 94fa560..0000000 --- a/phpBB2/config.php +++ /dev/null @@ -1,18 +0,0 @@ - diff --git a/phpBB2/db/db2.php b/phpBB2/db/db2.php deleted file mode 100644 index 1ab5284..0000000 --- a/phpBB2/db/db2.php +++ /dev/null @@ -1,421 +0,0 @@ -persistency = $persistency; - $this->user = $sqluser; - $this->password = $sqlpassword; - $this->dbname = $database; - - $this->server = $sqlserver; - - if($this->persistency) - { - $this->db_connect_id = odbc_pconnect($this->server, "", ""); - } - else - { - $this->db_connect_id = odbc_connect($this->server, "", ""); - } - - if($this->db_connect_id) - { - @odbc_autocommit($this->db_connect_id, off); - - return $this->db_connect_id; - } - else - { - return false; - } - } - // - // Other base methods - // - function sql_close() - { - if($this->db_connect_id) - { - if($this->query_result) - { - @odbc_free_result($this->query_result); - } - $result = @odbc_close($this->db_connect_id); - return $result; - } - else - { - return false; - } - } - - - // - // Query method - // - function sql_query($query = "", $transaction = FALSE) - { - // - // Remove any pre-existing queries - // - unset($this->query_result); - unset($this->row); - if($query != "") - { - $this->num_queries++; - - if(!eregi("^INSERT ",$query)) - { - if(eregi("LIMIT", $query)) - { - preg_match("/^(.*)LIMIT ([0-9]+)[, ]*([0-9]+)*/s", $query, $limits); - - $query = $limits[1]; - if($limits[3]) - { - $row_offset = $limits[2]; - $num_rows = $limits[3]; - } - else - { - $row_offset = 0; - $num_rows = $limits[2]; - } - - $query .= " FETCH FIRST ".($row_offset+$num_rows)." ROWS ONLY OPTIMIZE FOR ".($row_offset+$num_rows)." ROWS"; - - $this->query_result = odbc_exec($this->db_connect_id, $query); - - $query_limit_offset = $row_offset; - $this->result_numrows[$this->query_result] = $num_rows; - } - else - { - $this->query_result = odbc_exec($this->db_connect_id, $query); - - $row_offset = 0; - $this->result_numrows[$this->query_result] = 5E6; - } - - $result_id = $this->query_result; - if($this->query_result && eregi("^SELECT", $query)) - { - - for($i = 1; $i < odbc_num_fields($result_id)+1; $i++) - { - $this->result_field_names[$result_id][] = odbc_field_name($result_id, $i); - } - - $i = $row_offset + 1; - $k = 0; - while(odbc_fetch_row($result_id, $i) && $k < $this->result_numrows[$result_id]) - { - - for($j = 1; $j < count($this->result_field_names[$result_id])+1; $j++) - { - $this->result_rowset[$result_id][$k][$this->result_field_names[$result_id][$j-1]] = odbc_result($result_id, $j); - } - $i++; - $k++; - } - - $this->result_numrows[$result_id] = $k; - $this->row_index[$result_id] = 0; - } - else - { - $this->result_numrows[$result_id] = @odbc_num_rows($result_id); - $this->row_index[$result_id] = 0; - } - } - else - { - if(eregi("^(INSERT|UPDATE) ", $query)) - { - $query = preg_replace("/\\\'/s", "''", $query); - } - - $this->query_result = odbc_exec($this->db_connect_id, $query); - - if($this->query_result) - { - $sql_id = "VALUES(IDENTITY_VAL_LOCAL())"; - - $id_result = odbc_exec($this->db_connect_id, $sql_id); - if($id_result) - { - $row_result = odbc_fetch_row($id_result); - if($row_result) - { - $this->next_id[$this->query_result] = odbc_result($id_result, 1); - } - } - } - - odbc_commit($this->db_connect_id); - - $this->query_limit_offset[$this->query_result] = 0; - $this->result_numrows[$this->query_result] = 0; - } - - return $this->query_result; - } - else - { - return false; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - return $this->result_numrows[$query_id]; - } - else - { - return false; - } - } - function sql_affectedrows($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - return $this->result_numrows[$query_id]; - } - else - { - return false; - } - } - function sql_numfields($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = count($this->result_field_names[$query_id]); - return $result; - } - else - { - return false; - } - } - function sql_fieldname($offset, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = $this->result_field_names[$query_id][$offset]; - return $result; - } - else - { - return false; - } - } - function sql_fieldtype($offset, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @odbc_field_type($query_id, $offset); - return $result; - } - else - { - return false; - } - } - function sql_fetchrow($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - if($this->row_index[$query_id] < $this->result_numrows[$query_id]) - { - $result = $this->result_rowset[$query_id][$this->row_index[$query_id]]; - $this->row_index[$query_id]++; - return $result; - } - else - { - return false; - } - } - else - { - return false; - } - } - function sql_fetchrowset($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $this->row_index[$query_id] = $this->result_numrows[$query_id]; - return $this->result_rowset[$query_id]; - } - else - { - return false; - } - } - function sql_fetchfield($field, $row = -1, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - if($row < $this->result_numrows[$query_id]) - { - if($row == -1) - { - $getrow = $this->row_index[$query_id]-1; - } - else - { - $getrow = $row; - } - - return $this->result_rowset[$query_id][$getrow][$this->result_field_names[$query_id][$field]]; - - } - else - { - return false; - } - } - else - { - return false; - } - } - function sql_rowseek($offset, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $this->row_index[$query_id] = 0; - return true; - } - else - { - return false; - } - } - function sql_nextid($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - return $this->next_id[$query_id]; - } - else - { - return false; - } - } - function sql_freeresult($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @odbc_free_result($query_id); - return $result; - } - else - { - return false; - } - } - function sql_error($query_id = 0) - { -// $result['code'] = @odbc_error($this->db_connect_id); -// $result['message'] = @odbc_errormsg($this->db_connect_id); - - return ""; - } - -} // class sql_db - -} // if ... define - -?> \ No newline at end of file diff --git a/phpBB2/db/index.htm b/phpBB2/db/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2/db/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2/db/msaccess.php b/phpBB2/db/msaccess.php deleted file mode 100644 index 733fa3c..0000000 --- a/phpBB2/db/msaccess.php +++ /dev/null @@ -1,389 +0,0 @@ -persistency = $persistency; - $this->server = $sqlserver; - $this->user = $sqluser; - $this->password = $sqlpassword; - $this->dbname = $database; - - $this->db_connect_id = ($this->persistency) ? odbc_pconnect($this->server, $this->user, $this->password) : odbc_connect($this->server, $this->user, $this->password); - - return ( $this->db_connect_id ) ? $this->db_connect_id : false; - } - // - // Other base methods - // - function sql_close() - { - if($this->db_connect_id) - { - if( $this->in_transaction ) - { - @odbc_commit($this->db_connect_id); - } - - if( count($this->result_rowset) ) - { - unset($this->result_rowset); - unset($this->field_names); - unset($this->field_types); - unset($this->num_rows); - unset($this->current_row); - } - - return @odbc_close($this->db_connect_id); - } - else - { - return false; - } - } - - // - // Query method - // - function sql_query($query = "", $transaction = FALSE) - { - if( $query != "" ) - { - $this->num_queries++; - - if( $transaction == BEGIN_TRANSACTION && !$this->in_transaction ) - { - if( !odbc_autocommit($this->db_connect_id, false) ) - { - return false; - } - $this->in_transaction = TRUE; - } - - $query = str_replace("LOWER(", "LCASE(", $query); - - if( preg_match("/^SELECT(.*?)(LIMIT ([0-9]+)[, ]*([0-9]+)*)?$/s", $query, $limits) ) - { - $query = $limits[1]; - - if( !empty($limits[2]) ) - { - $row_offset = ( $limits[4] ) ? $limits[3] : ""; - $num_rows = ( $limits[4] ) ? $limits[4] : $limits[3]; - - $query = "TOP " . ( $row_offset + $num_rows ) . $query; - } - - $this->result = odbc_exec($this->db_connect_id, "SELECT $query"); - - if( $this->result ) - { - if( empty($this->field_names[$this->result]) ) - { - for($i = 1; $i < odbc_num_fields($this->result) + 1; $i++) - { - $this->field_names[$this->result][] = odbc_field_name($this->result, $i); - $this->field_types[$this->result][] = odbc_field_type($this->result, $i); - } - } - - $this->current_row[$this->result] = 0; - $this->result_rowset[$this->result] = array(); - - $row_outer = ( isset($row_offset) ) ? $row_offset + 1 : 1; - $row_outer_max = ( isset($num_rows) ) ? $row_offset + $num_rows + 1 : 1E9; - $row_inner = 0; - - while( odbc_fetch_row($this->result, $row_outer) && $row_outer < $row_outer_max ) - { - for($j = 0; $j < count($this->field_names[$this->result]); $j++) - { - $this->result_rowset[$this->result][$row_inner][$this->field_names[$this->result][$j]] = stripslashes(odbc_result($this->result, $j + 1)); - } - - $row_outer++; - $row_inner++; - } - - $this->num_rows[$this->result] = count($this->result_rowset[$this->result]); - - odbc_free_result($this->result); - } - - } - else if( eregi("^INSERT ", $query) ) - { - $this->result = odbc_exec($this->db_connect_id, $query); - - if( $this->result ) - { - $result_id = odbc_exec($this->db_connect_id, "SELECT @@IDENTITY"); - if( $result_id ) - { - if( odbc_fetch_row($result_id) ) - { - $this->next_id[$this->db_connect_id] = odbc_result($result_id, 1); - $this->affected_rows[$this->db_connect_id] = odbc_num_rows($this->result); - } - } - } - } - else - { - $this->result = odbc_exec($this->db_connect_id, $query); - - if( $this->result ) - { - $this->affected_rows[$this->db_connect_id] = odbc_num_rows($this->result); - } - } - - if( !$this->result ) - { - if( $this->in_transaction ) - { - odbc_rollback($this->db_connect_id); - odbc_autocommit($this->db_connect_id, true); - $this->in_transaction = FALSE; - } - - return false; - } - - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if ( !@odbc_commit($this->db_connect_id) ) - { - odbc_rollback($this->db_connect_id); - odbc_autocommit($this->db_connect_id, true); - return false; - } - odbc_autocommit($this->db_connect_id, true); - } - - return $this->result; - } - else - { - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if ( !@odbc_commit($this->db_connect_id) ) - { - odbc_rollback($this->db_connect_id); - odbc_autocommit($this->db_connect_id, true); - return false; - } - odbc_autocommit($this->db_connect_id, true); - } - - return true; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? $this->num_rows[$query_id] : false; - } - - function sql_numfields($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? count($this->field_names[$query_id]) : false; - } - - function sql_fieldname($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? $this->field_names[$query_id][$offset] : false; - } - - function sql_fieldtype($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? $this->field_types[$query_id][$offset] : false; - } - - function sql_fetchrow($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - return ( $this->num_rows[$query_id] && $this->current_row[$query_id] < $this->num_rows[$query_id] ) ? $this->result_rowset[$query_id][$this->current_row[$query_id]++] : false; - } - else - { - return false; - } - } - - function sql_fetchrowset($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - return ( $this->num_rows[$query_id] ) ? $this->result_rowset[$query_id] : false; - } - else - { - return false; - } - } - - function sql_fetchfield($field, $row = -1, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - if( $row < $this->num_rows[$query_id] ) - { - $getrow = ($row == -1) ? $this->current_row[$query_id] - 1 : $row; - - return $this->result_rowset[$query_id][$getrow][$this->field_names[$query_id][$field]]; - } - else - { - return false; - } - } - else - { - return false; - } - } - - function sql_rowseek($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - $this->current_row[$query_id] = $offset - 1; - return true; - } - else - { - return false; - } - } - - function sql_nextid() - { - return ( $this->next_id[$this->db_connect_id] ) ? $this->next_id[$this->db_connect_id] : false; - } - - function sql_affectedrows() - { - return ( $this->affected_rows[$this->db_connect_id] ) ? $this->affected_rows[$this->db_connect_id] : false; - } - - function sql_freeresult($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - unset($this->num_rows[$query_id]); - unset($this->current_row[$query_id]); - unset($this->result_rowset[$query_id]); - unset($this->field_names[$query_id]); - unset($this->field_types[$query_id]); - - return true; - } - - function sql_error() - { - $error['code'] = "";//odbc_error($this->db_connect_id); - $error['message'] = "Error";//odbc_errormsg($this->db_connect_id); - - return $error; - } - -} // class sql_db - -} // if ... define - -?> \ No newline at end of file diff --git a/phpBB2/db/mssql-odbc.php b/phpBB2/db/mssql-odbc.php deleted file mode 100644 index 93abe0a..0000000 --- a/phpBB2/db/mssql-odbc.php +++ /dev/null @@ -1,387 +0,0 @@ -persistency = $persistency; - $this->server = $sqlserver; - $this->user = $sqluser; - $this->password = $sqlpassword; - $this->dbname = $database; - - $this->db_connect_id = ($this->persistency) ? odbc_pconnect($this->server, $this->user, $this->password) : odbc_connect($this->server, $this->user, $this->password); - - return ( $this->db_connect_id ) ? $this->db_connect_id : false; - } - // - // Other base methods - // - function sql_close() - { - if($this->db_connect_id) - { - if( $this->in_transaction ) - { - @odbc_commit($this->db_connect_id); - } - - if( count($this->result_rowset) ) - { - unset($this->result_rowset); - unset($this->field_names); - unset($this->field_types); - unset($this->num_rows); - unset($this->current_row); - } - - return @odbc_close($this->db_connect_id); - } - else - { - return false; - } - } - - // - // Query method - // - function sql_query($query = "", $transaction = FALSE) - { - if( $query != "" ) - { - $this->num_queries++; - - if( $transaction == BEGIN_TRANSACTION && !$this->in_transaction ) - { - if( !odbc_autocommit($this->db_connect_id, false) ) - { - return false; - } - $this->in_transaction = TRUE; - } - - if( preg_match("/^SELECT(.*?)(LIMIT ([0-9]+)[, ]*([0-9]+)*)?$/s", $query, $limits) ) - { - $query = $limits[1]; - - if( !empty($limits[2]) ) - { - $row_offset = ( $limits[4] ) ? $limits[3] : ""; - $num_rows = ( $limits[4] ) ? $limits[4] : $limits[3]; - - $query = "TOP " . ( $row_offset + $num_rows ) . $query; - } - - $this->result = odbc_exec($this->db_connect_id, "SELECT $query"); - - if( $this->result ) - { - if( empty($this->field_names[$this->result]) ) - { - for($i = 1; $i < odbc_num_fields($this->result) + 1; $i++) - { - $this->field_names[$this->result][] = odbc_field_name($this->result, $i); - $this->field_types[$this->result][] = odbc_field_type($this->result, $i); - } - } - - $this->current_row[$this->result] = 0; - $this->result_rowset[$this->result] = array(); - - $row_outer = ( isset($row_offset) ) ? $row_offset + 1 : 1; - $row_outer_max = ( isset($num_rows) ) ? $row_offset + $num_rows + 1 : 1E9; - $row_inner = 0; - - while( odbc_fetch_row($this->result, $row_outer) && $row_outer < $row_outer_max ) - { - for($j = 0; $j < count($this->field_names[$this->result]); $j++) - { - $this->result_rowset[$this->result][$row_inner][$this->field_names[$this->result][$j]] = stripslashes(odbc_result($this->result, $j + 1)); - } - - $row_outer++; - $row_inner++; - } - - $this->num_rows[$this->result] = count($this->result_rowset[$this->result]); - } - - } - else if( eregi("^INSERT ", $query) ) - { - $this->result = odbc_exec($this->db_connect_id, $query); - - if( $this->result ) - { - $result_id = odbc_exec($this->db_connect_id, "SELECT @@IDENTITY"); - if( $result_id ) - { - if( odbc_fetch_row($result_id) ) - { - $this->next_id[$this->db_connect_id] = odbc_result($result_id, 1); - $this->affected_rows[$this->db_connect_id] = odbc_num_rows($this->result); - } - } - } - } - else - { - $this->result = odbc_exec($this->db_connect_id, $query); - - if( $this->result ) - { - $this->affected_rows[$this->db_connect_id] = odbc_num_rows($this->result); - } - } - - if( !$this->result ) - { - if( $this->in_transaction ) - { - odbc_rollback($this->db_connect_id); - odbc_autocommit($this->db_connect_id, true); - $this->in_transaction = FALSE; - } - - return false; - } - - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if ( !odbc_commit($this->db_connect_id) ) - { - odbc_rollback($this->db_connect_id); - odbc_autocommit($this->db_connect_id, true); - return false; - } - odbc_autocommit($this->db_connect_id, true); - } - - odbc_free_result($this->result); - - return $this->result; - } - else - { - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if ( !@odbc_commit($this->db_connect_id) ) - { - odbc_rollback($this->db_connect_id); - odbc_autocommit($this->db_connect_id, true); - return false; - } - odbc_autocommit($this->db_connect_id, true); - } - - return true; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? $this->num_rows[$query_id] : false; - } - - function sql_numfields($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? count($this->field_names[$query_id]) : false; - } - - function sql_fieldname($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? $this->field_names[$query_id][$offset] : false; - } - - function sql_fieldtype($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? $this->field_types[$query_id][$offset] : false; - } - - function sql_fetchrow($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - return ( $this->num_rows[$query_id] && $this->current_row[$query_id] < $this->num_rows[$query_id] ) ? $this->result_rowset[$query_id][$this->current_row[$query_id]++] : false; - } - else - { - return false; - } - } - - function sql_fetchrowset($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - return ( $this->num_rows[$query_id] ) ? $this->result_rowset[$query_id] : false; - } - else - { - return false; - } - } - - function sql_fetchfield($field, $row = -1, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - if( $row < $this->num_rows[$query_id] ) - { - $getrow = ( $row == -1 ) ? $this->current_row[$query_id] - 1 : $row; - - return $this->result_rowset[$query_id][$getrow][$this->field_names[$query_id][$field]]; - - } - else - { - return false; - } - } - else - { - return false; - } - } - - function sql_rowseek($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - $this->current_row[$query_id] = $offset - 1; - return true; - } - else - { - return false; - } - } - - function sql_nextid() - { - return ( $this->next_id[$this->db_connect_id] ) ? $this->next_id[$this->db_connect_id] : false; - } - - function sql_affectedrows() - { - return ( $this->affected_rows[$this->db_connect_id] ) ? $this->affected_rows[$this->db_connect_id] : false; - } - - function sql_freeresult($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - unset($this->num_rows[$query_id]); - unset($this->current_row[$query_id]); - unset($this->result_rowset[$query_id]); - unset($this->field_names[$query_id]); - unset($this->field_types[$query_id]); - - return true; - } - - function sql_error() - { - $error['code'] = odbc_error($this->db_connect_id); - $error['message'] = odbc_errormsg($this->db_connect_id); - - return $error; - } - -} // class sql_db - -} // if ... define - -?> \ No newline at end of file diff --git a/phpBB2/db/mssql.php b/phpBB2/db/mssql.php deleted file mode 100644 index c03a7aa..0000000 --- a/phpBB2/db/mssql.php +++ /dev/null @@ -1,418 +0,0 @@ -persistency = $persistency; - $this->user = $sqluser; - $this->password = $sqlpassword; - $this->server = $sqlserver; - $this->dbname = $database; - - $this->db_connect_id = ( $this->persistency ) ? @mssql_pconnect($this->server, $this->user, $this->password) : @mssql_connect($this->server, $this->user, $this->password); - - if( $this->db_connect_id && $this->dbname != "" ) - { - if( !mssql_select_db($this->dbname, $this->db_connect_id) ) - { - mssql_close($this->db_connect_id); - return false; - } - } - - return $this->db_connect_id; - } - - // - // Other base methods - // - function sql_close() - { - if($this->db_connect_id) - { - // - // Commit any remaining transactions - // - if( $this->in_transaction ) - { - @mssql_query("COMMIT", $this->db_connect_id); - } - - return @mssql_close($this->db_connect_id); - } - else - { - return false; - } - } - - - // - // Query method - // - function sql_query($query = '', $transaction = FALSE) - { - // - // Remove any pre-existing queries - // - unset($this->result); - unset($this->row); - - if ( $query != '' ) - { - $this->num_queries++; - - if ( $transaction == BEGIN_TRANSACTION && !$this->in_transaction ) - { - if ( !@mssql_query('BEGIN TRANSACTION', $this->db_connect_id) ) - { - return false; - } - $this->in_transaction = TRUE; - } - - // - // Does query contain any LIMIT code? If so pull out relevant start and num_results - // This isn't terribly easy with MSSQL, whatever you do will potentially impact - // performance compared to an 'in-built' limit - // - // Another issue is the 'lack' of a returned true value when a query is valid but has - // no result set (as with all the other DB interfaces). It seems though that it's - // 'fair' to say that if a query returns a false result (ie. no resource id) then the - // SQL was valid but had no result set. If the query returns nothing but the rowcount - // returns something then there's a problem. This may well be a false assumption though - // ... needs checking under Windows itself. - // - if( preg_match('#^SELECT(.*?)(LIMIT ([0-9]+)[, ]*([0-9]+)*)?$#s', $query, $limits) ) - { - $query = $limits[1]; - - if( !empty($limits[2]) ) - { - $row_offset = ( $limits[4] ) ? $limits[3] : ""; - $num_rows = ( $limits[4] ) ? $limits[4] : $limits[3]; - - $query = 'TOP ' . ( $row_offset + $num_rows ) . $query; - } - - $this->result = @mssql_query("SELECT $query", $this->db_connect_id); - - if( $this->result ) - { - $this->limit_offset[$this->result] = ( !empty($row_offset) ) ? $row_offset : 0; - - if( $row_offset > 0 ) - { - @mssql_data_seek($this->result, $row_offset); - } - } - } - else if( preg_match('#^INSERT #i', $query) ) - { - if( @mssql_query($query, $this->db_connect_id) ) - { - $this->result = time() + microtime(); - - $result_id = @mssql_query('SELECT @@IDENTITY AS id, @@ROWCOUNT as affected', $this->db_connect_id); - if( $result_id ) - { - if( $row = @mssql_fetch_array($result_id) ) - { - $this->next_id[$this->db_connect_id] = $row['id']; - $this->affected_rows[$this->db_connect_id] = $row['affected']; - } - } - } - } - else - { - if( @mssql_query($query, $this->db_connect_id) ) - { - $this->result = time() + microtime(); - - $result_id = @mssql_query('SELECT @@ROWCOUNT as affected', $this->db_connect_id); - if( $result_id ) - { - if( $row = @mssql_fetch_array($result_id) ) - { - $this->affected_rows[$this->db_connect_id] = $row['affected']; - } - } - } - } - - if( !$this->result ) - { - if( $this->in_transaction ) - { - @mssql_query('ROLLBACK', $this->db_connect_id); - $this->in_transaction = FALSE; - } - - return false; - } - - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if( !@mssql_query('COMMIT', $this->db_connect_id) ) - { - @mssql_query("ROLLBACK", $this->db_connect_id); - return false; - } - } - - return $this->result; - } - else - { - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if( !@mssql_query('COMMIT', $this->db_connect_id) ) - { - @mssql_query('ROLLBACK', $this->db_connect_id); - return false; - } - } - - return true; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - return ( !empty($this->limit_offset[$query_id]) ) ? @mssql_num_rows($query_id) - $this->limit_offset[$query_id] : @mssql_num_rows($query_id); - } - else - { - return false; - } - } - - function sql_numfields($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? @mssql_num_fields($query_id) : false; - } - - function sql_fieldname($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? @mssql_field_name($query_id, $offset) : false; - } - - function sql_fieldtype($offset, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->result; - } - - return ( $query_id ) ? @mssql_field_type($query_id, $offset) : false; - } - - function sql_fetchrow($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - empty($row); - - $row = @mssql_fetch_array($query_id); - - while( list($key, $value) = @each($row) ) - { - $row[$key] = ($value === ' ') ? '' : stripslashes($value); - } - @reset($row); - - return $row; - } - else - { - return false; - } - } - - function sql_fetchrowset($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - $i = 0; - empty($rowset); - - while( $row = @mssql_fetch_array($query_id)) - { - while( list($key, $value) = @each($row) ) - { - $rowset[$i][$key] = ($value === ' ') ? '' : stripslashes($value); - } - $i++; - } - @reset($rowset); - - return $rowset; - } - else - { - return false; - } - } - - function sql_fetchfield($field, $row = -1, $query_id) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - if( $row != -1 ) - { - if( $this->limit_offset[$query_id] > 0 ) - { - $result = ( !empty($this->limit_offset[$query_id]) ) ? @mssql_result($this->result, ($this->limit_offset[$query_id] + $row), $field) : false; - } - else - { - $result = @mssql_result($this->result, $row, $field); - } - } - else - { - if( empty($this->row[$query_id]) ) - { - $this->row[$query_id] = @mssql_fetch_array($query_id); - $result = ($this->row[$query_id][$field] === ' ') ? '' : stripslashes($this->row[$query_id][$field]); - } - } - - return $result; - } - else - { - return false; - } - } - - function sql_rowseek($rownum, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - return ( !empty($this->limit_offset[$query_id]) ) ? @mssql_data_seek($query_id, ($this->limit_offset[$query_id] + $rownum)) : @mssql_data_seek($query_id, $rownum); - } - else - { - return false; - } - } - - function sql_nextid() - { - return ( $this->next_id[$this->db_connect_id] ) ? $this->next_id[$this->db_connect_id] : false; - } - - function sql_affectedrows() - { - return ( $this->affected_rows[$this->db_connect_id] ) ? $this->affected_rows[$this->db_connect_id] : false; - } - - function sql_freeresult($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? @mssql_free_result($query_id) : false; - } - - function sql_error($query_id = 0) - { - $result['message'] = @mssql_get_last_message(); - return $result; - } - -} // class sql_db - -} // if ... define - -?> \ No newline at end of file diff --git a/phpBB2/db/mysql.php b/phpBB2/db/mysql.php deleted file mode 100644 index 47886e3..0000000 --- a/phpBB2/db/mysql.php +++ /dev/null @@ -1,335 +0,0 @@ -persistency = $persistency; - $this->user = $sqluser; - $this->password = $sqlpassword; - $this->server = $sqlserver; - $this->dbname = $database; - - if($this->persistency) - { - $this->db_connect_id = @mysql_pconnect($this->server, $this->user, $this->password); - } - else - { - $this->db_connect_id = @mysql_connect($this->server, $this->user, $this->password); - } - if($this->db_connect_id) - { - if($database != "") - { - $this->dbname = $database; - $dbselect = @mysql_select_db($this->dbname); - if(!$dbselect) - { - @mysql_close($this->db_connect_id); - $this->db_connect_id = $dbselect; - } - } - return $this->db_connect_id; - } - else - { - return false; - } - } - - // - // Other base methods - // - function sql_close() - { - if($this->db_connect_id) - { - if($this->query_result) - { - @mysql_free_result($this->query_result); - } - $result = @mysql_close($this->db_connect_id); - return $result; - } - else - { - return false; - } - } - - // - // Base query method - // - function sql_query($query = "", $transaction = FALSE) - { - // Remove any pre-existing queries - unset($this->query_result); - if($query != "") - { - $this->num_queries++; - - $this->query_result = @mysql_query($query, $this->db_connect_id); - } - if($this->query_result) - { - unset($this->row[$this->query_result]); - unset($this->rowset[$this->query_result]); - return $this->query_result; - } - else - { - return ( $transaction == END_TRANSACTION ) ? true : false; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @mysql_num_rows($query_id); - return $result; - } - else - { - return false; - } - } - function sql_affectedrows() - { - if($this->db_connect_id) - { - $result = @mysql_affected_rows($this->db_connect_id); - return $result; - } - else - { - return false; - } - } - function sql_numfields($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @mysql_num_fields($query_id); - return $result; - } - else - { - return false; - } - } - function sql_fieldname($offset, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @mysql_field_name($query_id, $offset); - return $result; - } - else - { - return false; - } - } - function sql_fieldtype($offset, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @mysql_field_type($query_id, $offset); - return $result; - } - else - { - return false; - } - } - function sql_fetchrow($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $this->row[$query_id] = @mysql_fetch_array($query_id); - return $this->row[$query_id]; - } - else - { - return false; - } - } - function sql_fetchrowset($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - unset($this->rowset[$query_id]); - unset($this->row[$query_id]); - while($this->rowset[$query_id] = @mysql_fetch_array($query_id)) - { - $result[] = $this->rowset[$query_id]; - } - return $result; - } - else - { - return false; - } - } - function sql_fetchfield($field, $rownum = -1, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - if($rownum > -1) - { - $result = @mysql_result($query_id, $rownum, $field); - } - else - { - if(empty($this->row[$query_id]) && empty($this->rowset[$query_id])) - { - if($this->sql_fetchrow()) - { - $result = $this->row[$query_id][$field]; - } - } - else - { - if($this->rowset[$query_id]) - { - $result = $this->rowset[$query_id][0][$field]; - } - else if($this->row[$query_id]) - { - $result = $this->row[$query_id][$field]; - } - } - } - return $result; - } - else - { - return false; - } - } - function sql_rowseek($rownum, $query_id = 0){ - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @mysql_data_seek($query_id, $rownum); - return $result; - } - else - { - return false; - } - } - function sql_nextid(){ - if($this->db_connect_id) - { - $result = @mysql_insert_id($this->db_connect_id); - return $result; - } - else - { - return false; - } - } - function sql_freeresult($query_id = 0){ - if(!$query_id) - { - $query_id = $this->query_result; - } - - if ( $query_id ) - { - unset($this->row[$query_id]); - unset($this->rowset[$query_id]); - - @mysql_free_result($query_id); - - return true; - } - else - { - return false; - } - } - function sql_error($query_id = 0) - { - $result["message"] = @mysql_error($this->db_connect_id); - $result["code"] = @mysql_errno($this->db_connect_id); - - return $result; - } - -} // class sql_db - -} // if ... define - -?> \ No newline at end of file diff --git a/phpBB2/db/mysql4.php b/phpBB2/db/mysql4.php deleted file mode 100644 index 7fc8826..0000000 --- a/phpBB2/db/mysql4.php +++ /dev/null @@ -1,340 +0,0 @@ -persistency = $persistency; - $this->user = $sqluser; - $this->password = $sqlpassword; - $this->server = $sqlserver; - $this->dbname = $database; - - $this->db_connect_id = ($this->persistency) ? mysql_pconnect($this->server, $this->user, $this->password) : mysql_connect($this->server, $this->user, $this->password); - - if( $this->db_connect_id ) - { - if( $database != "" ) - { - $this->dbname = $database; - $dbselect = mysql_select_db($this->dbname); - - if( !$dbselect ) - { - mysql_close($this->db_connect_id); - $this->db_connect_id = $dbselect; - } - } - - return $this->db_connect_id; - } - else - { - return false; - } - } - - // - // Other base methods - // - function sql_close() - { - if( $this->db_connect_id ) - { - // - // Commit any remaining transactions - // - if( $this->in_transaction ) - { - mysql_query("COMMIT", $this->db_connect_id); - } - - return mysql_close($this->db_connect_id); - } - else - { - return false; - } - } - - // - // Base query method - // - function sql_query($query = "", $transaction = FALSE) - { - // - // Remove any pre-existing queries - // - unset($this->query_result); - - if( $query != "" ) - { - $this->num_queries++; - if( $transaction == BEGIN_TRANSACTION && !$this->in_transaction ) - { - $result = mysql_query("BEGIN", $this->db_connect_id); - if(!$result) - { - return false; - } - $this->in_transaction = TRUE; - } - - $this->query_result = mysql_query($query, $this->db_connect_id); - } - else - { - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $result = mysql_query("COMMIT", $this->db_connect_id); - } - } - - if( $this->query_result ) - { - unset($this->row[$this->query_result]); - unset($this->rowset[$this->query_result]); - - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if ( !mysql_query("COMMIT", $this->db_connect_id) ) - { - mysql_query("ROLLBACK", $this->db_connect_id); - return false; - } - } - - return $this->query_result; - } - else - { - if( $this->in_transaction ) - { - mysql_query("ROLLBACK", $this->db_connect_id); - $this->in_transaction = FALSE; - } - return false; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? mysql_num_rows($query_id) : false; - } - - function sql_affectedrows() - { - return ( $this->db_connect_id ) ? mysql_affected_rows($this->db_connect_id) : false; - } - - function sql_numfields($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? mysql_num_fields($query_id) : false; - } - - function sql_fieldname($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? mysql_field_name($query_id, $offset) : false; - } - - function sql_fieldtype($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? mysql_field_type($query_id, $offset) : false; - } - - function sql_fetchrow($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - if( $query_id ) - { - $this->row[$query_id] = mysql_fetch_array($query_id, MYSQL_ASSOC); - return $this->row[$query_id]; - } - else - { - return false; - } - } - - function sql_fetchrowset($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - if( $query_id ) - { - unset($this->rowset[$query_id]); - unset($this->row[$query_id]); - - while($this->rowset[$query_id] = mysql_fetch_array($query_id, MYSQL_ASSOC)) - { - $result[] = $this->rowset[$query_id]; - } - - return $result; - } - else - { - return false; - } - } - - function sql_fetchfield($field, $rownum = -1, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - if( $query_id ) - { - if( $rownum > -1 ) - { - $result = mysql_result($query_id, $rownum, $field); - } - else - { - if( empty($this->row[$query_id]) && empty($this->rowset[$query_id]) ) - { - if( $this->sql_fetchrow() ) - { - $result = $this->row[$query_id][$field]; - } - } - else - { - if( $this->rowset[$query_id] ) - { - $result = $this->rowset[$query_id][0][$field]; - } - else if( $this->row[$query_id] ) - { - $result = $this->row[$query_id][$field]; - } - } - } - - return $result; - } - else - { - return false; - } - } - - function sql_rowseek($rownum, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? mysql_data_seek($query_id, $rownum) : false; - } - - function sql_nextid() - { - return ( $this->db_connect_id ) ? mysql_insert_id($this->db_connect_id) : false; - } - - function sql_freeresult($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - if ( $query_id ) - { - unset($this->row[$query_id]); - unset($this->rowset[$query_id]); - - mysql_free_result($query_id); - - return true; - } - else - { - return false; - } - } - - function sql_error() - { - $result['message'] = mysql_error($this->db_connect_id); - $result['code'] = mysql_errno($this->db_connect_id); - - return $result; - } - -} // class sql_db - -} // if ... define - -?> diff --git a/phpBB2/db/oracle.php b/phpBB2/db/oracle.php deleted file mode 100644 index fd52b17..0000000 --- a/phpBB2/db/oracle.php +++ /dev/null @@ -1,472 +0,0 @@ -persistency = $persistency; - $this->user = $sqluser; - $this->password = $sqlpassword; - $this->server = $sqlserver; - $this->dbname = $database; - - if($this->persistency) - { - $this->db_connect_id = @OCIPLogon($this->user, $this->password, $this->server); - } - else - { - $this->db_connect_id = @OCINLogon($this->user, $this->password, $this->server); - } - if($this->db_connect_id) - { - return $this->db_connect_id; - } - else - { - return false; - } - } - - // - // Other base methods - // - function sql_close() - { - if($this->db_connect_id) - { - // Commit outstanding transactions - if($this->in_transaction) - { - OCICommit($this->db_connect_id); - } - - if($this->query_result) - { - @OCIFreeStatement($this->query_result); - } - $result = @OCILogoff($this->db_connect_id); - return $result; - } - else - { - return false; - } - } - - // - // Base query method - // - function sql_query($query = "", $transaction = FALSE) - { - // Remove any pre-existing queries - unset($this->query_result); - - // Put us in transaction mode because with Oracle as soon as you make a query you're in a transaction - $this->in_transaction = TRUE; - - if($query != "") - { - $this->last_query = $query; - $this->num_queries++; - - if(eregi("LIMIT", $query)) - { - preg_match("/^(.*)LIMIT ([0-9]+)[, ]*([0-9]+)*/s", $query, $limits); - - $query = $limits[1]; - if($limits[3]) - { - $row_offset = $limits[2]; - $num_rows = $limits[3]; - } - else - { - $row_offset = 0; - $num_rows = $limits[2]; - } - } - - if(eregi("^(INSERT|UPDATE) ", $query)) - { - $query = preg_replace("/\\\'/s", "''", $query); - } - - $this->query_result = @OCIParse($this->db_connect_id, $query); - $success = @OCIExecute($this->query_result, OCI_DEFAULT); - } - if($success) - { - if($transaction == END_TRANSACTION) - { - OCICommit($this->db_connect_id); - $this->in_transaction = FALSE; - } - - unset($this->row[$this->query_result]); - unset($this->rowset[$this->query_result]); - $this->last_query_text[$this->query_result] = $query; - - return $this->query_result; - } - else - { - if($this->in_transaction) - { - OCIRollback($this->db_connect_id); - } - return false; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @OCIFetchStatement($query_id, $this->rowset); - // OCIFetchStatment kills our query result so we have to execute the statment again - // if we ever want to use the query_id again. - @OCIExecute($query_id, OCI_DEFAULT); - return $result; - } - else - { - return false; - } - } - function sql_affectedrows($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @OCIRowCount($query_id); - return $result; - } - else - { - return false; - } - } - function sql_numfields($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @OCINumCols($query_id); - return $result; - } - else - { - return false; - } - } - function sql_fieldname($offset, $query_id = 0) - { - // OCIColumnName uses a 1 based array so we have to up the offset by 1 in here to maintain - // full abstraction compatibitly - $offset += 1; - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = strtolower(@OCIColumnName($query_id, $offset)); - return $result; - } - else - { - return false; - } - } - function sql_fieldtype($offset, $query_id = 0) - { - // This situation is the same as fieldname - $offset += 1; - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @OCIColumnType($query_id, $offset); - return $result; - } - else - { - return false; - } - } - function sql_fetchrow($query_id = 0, $debug = FALSE) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result_row = ""; - $result = @OCIFetchInto($query_id, $result_row, OCI_ASSOC+OCI_RETURN_NULLS); - if($debug) - { - echo "Query was: ".$this->last_query . "
"; - echo "Result: $result
"; - echo "Query ID: $query_id
"; - echo "
";
-				var_dump($result_row);
-				echo "
"; - } - if($result_row == "") - { - return false; - } - - for($i = 0; $i < count($result_row); $i++) - { - list($key, $val) = each($result_row); - $return_arr[strtolower($key)] = $val; - } - $this->row[$query_id] = $return_arr; - - return $this->row[$query_id]; - } - else - { - return false; - } - } - // This function probably isn't as efficant is it could be but any other way I do it - // I end up losing 1 row... - function sql_fetchrowset($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $rows = @OCIFetchStatement($query_id, $results); - @OCIExecute($query_id, OCI_DEFAULT); - for($i = 0; $i < $rows; $i++) - { - @OCIFetchInto($query_id, $tmp_result, OCI_ASSOC+OCI_RETURN_NULLS); - - for($j = 0; $j < count($tmp_result); $j++) - { - list($key, $val) = each($tmp_result); - $return_arr[strtolower($key)] = $val; - } - $result[] = $return_arr; - } - return $result; - } - else - { - return false; - } - } - function sql_fetchfield($field, $rownum = -1, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - if($rownum > -1) - { - // Reset the internal rownum pointer. - @OCIExecute($query_id, OCI_DEFAULT); - for($i = 0; $i < $rownum; $i++) - { - // Move the interal pointer to the row we want - @OCIFetch($query_id); - } - // Get the field data. - $result = @OCIResult($query_id, strtoupper($field)); - } - else - { - // The internal pointer should be where we want it - // so we just grab the field out of the current row. - $result = @OCIResult($query_id, strtoupper($field)); - } - return $result; - } - else - { - return false; - } - } - function sql_rowseek($rownum, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - @OCIExecute($query_id, OCI_DEFAULT); - for($i = 0; $i < $rownum; $i++) - { - @OCIFetch($query_id); - } - $result = @OCIFetch($query_id); - return $result; - } - else - { - return false; - } - } - function sql_nextid($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id && $this->last_query_text[$query_id] != "") - { - if( eregi("^(INSERT{1}|^INSERT INTO{1})[[:space:]][\"]?([a-zA-Z0-9\_\-]+)[\"]?", $this->last_query_text[$query_id], $tablename)) - { - $query = "SELECT ".$tablename[2]."_id_seq.currval FROM DUAL"; - $stmt = @OCIParse($this->db_connect_id, $query); - @OCIExecute($stmt,OCI_DEFAULT ); - $temp_result = @OCIFetchInto($stmt, $temp_result, OCI_ASSOC+OCI_RETURN_NULLS); - if($temp_result) - { - return $temp_result['CURRVAL']; - } - else - { - return false; - } - } - else - { - return false; - } - } - else - { - return false; - } - } - - function sql_nextid($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id && $this->last_query_text[$query_id] != "") - { - if( eregi("^(INSERT{1}|^INSERT INTO{1})[[:space:]][\"]?([a-zA-Z0-9\_\-]+)[\"]?", $this->last_query_text[$query_id], $tablename)) - { - $query = "SELECT ".$tablename[2]."_id_seq.CURRVAL FROM DUAL"; - $temp_q_id = @OCIParse($this->db_connect_id, $query); - @OCIExecute($temp_q_id, OCI_DEFAULT); - @OCIFetchInto($temp_q_id, $temp_result, OCI_ASSOC+OCI_RETURN_NULLS); - - if($temp_result) - { - return $temp_result['CURRVAL']; - } - else - { - return false; - } - } - else - { - return false; - } - } - else - { - return false; - } - } - - - - function sql_freeresult($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @OCIFreeStatement($query_id); - return $result; - } - else - { - return false; - } - } - function sql_error($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - $result = @OCIError($query_id); - return $result; - } - -} // class sql_db - -} // if ... define - -?> \ No newline at end of file diff --git a/phpBB2/db/postgres7.php b/phpBB2/db/postgres7.php deleted file mode 100644 index 1a5fcd2..0000000 --- a/phpBB2/db/postgres7.php +++ /dev/null @@ -1,397 +0,0 @@ -connect_string = ""; - - if( $sqluser ) - { - $this->connect_string .= "user=$sqluser "; - } - - if( $sqlpassword ) - { - $this->connect_string .= "password=$sqlpassword "; - } - - if( $sqlserver ) - { - if( ereg(":", $sqlserver) ) - { - list($sqlserver, $sqlport) = split(":", $sqlserver); - $this->connect_string .= "host=$sqlserver port=$sqlport "; - } - else - { - if( $sqlserver != "localhost" ) - { - $this->connect_string .= "host=$sqlserver "; - } - } - } - - if( $database ) - { - $this->dbname = $database; - $this->connect_string .= "dbname=$database"; - } - - $this->persistency = $persistency; - - $this->db_connect_id = ( $this->persistency ) ? pg_pconnect($this->connect_string) : pg_connect($this->connect_string); - - return ( $this->db_connect_id ) ? $this->db_connect_id : false; - } - - // - // Other base methods - // - function sql_close() - { - if( $this->db_connect_id ) - { - // - // Commit any remaining transactions - // - if( $this->in_transaction ) - { - @pg_exec($this->db_connect_id, "COMMIT"); - } - - if( $this->query_result ) - { - @pg_freeresult($this->query_result); - } - - return @pg_close($this->db_connect_id); - } - else - { - return false; - } - } - - // - // Query method - // - function sql_query($query = "", $transaction = false) - { - // - // Remove any pre-existing queries - // - unset($this->query_result); - if( $query != "" ) - { - $this->num_queries++; - - $query = preg_replace("/LIMIT ([0-9]+),([ 0-9]+)/", "LIMIT \\2 OFFSET \\1", $query); - - if( $transaction == BEGIN_TRANSACTION && !$this->in_transaction ) - { - $this->in_transaction = TRUE; - - if( !@pg_exec($this->db_connect_id, "BEGIN") ) - { - return false; - } - } - - $this->query_result = @pg_exec($this->db_connect_id, $query); - if( $this->query_result ) - { - if( $transaction == END_TRANSACTION ) - { - $this->in_transaction = FALSE; - - if( !@pg_exec($this->db_connect_id, "COMMIT") ) - { - @pg_exec($this->db_connect_id, "ROLLBACK"); - return false; - } - } - - $this->last_query_text[$this->query_result] = $query; - $this->rownum[$this->query_result] = 0; - - unset($this->row[$this->query_result]); - unset($this->rowset[$this->query_result]); - - return $this->query_result; - } - else - { - if( $this->in_transaction ) - { - @pg_exec($this->db_connect_id, "ROLLBACK"); - } - $this->in_transaction = FALSE; - - return false; - } - } - else - { - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if( !@pg_exec($this->db_connect_id, "COMMIT") ) - { - @pg_exec($this->db_connect_id, "ROLLBACK"); - return false; - } - } - - return true; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? @pg_numrows($query_id) : false; - } - - function sql_numfields($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? @pg_numfields($query_id) : false; - } - - function sql_fieldname($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? @pg_fieldname($query_id, $offset) : false; - } - - function sql_fieldtype($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? @pg_fieldtype($query_id, $offset) : false; - } - - function sql_fetchrow($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - if($query_id) - { - $this->row = @pg_fetch_array($query_id, $this->rownum[$query_id]); - - if( $this->row ) - { - $this->rownum[$query_id]++; - return $this->row; - } - } - - return false; - } - - function sql_fetchrowset($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - if( $query_id ) - { - unset($this->rowset[$query_id]); - unset($this->row[$query_id]); - $this->rownum[$query_id] = 0; - - while( $this->rowset = @pg_fetch_array($query_id, $this->rownum[$query_id], PGSQL_ASSOC) ) - { - $result[] = $this->rowset; - $this->rownum[$query_id]++; - } - - return $result; - } - - return false; - } - - function sql_fetchfield($field, $row_offset=-1, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - if( $query_id ) - { - if( $row_offset != -1 ) - { - $this->row = @pg_fetch_array($query_id, $row_offset, PGSQL_ASSOC); - } - else - { - if( $this->rownum[$query_id] ) - { - $this->row = @pg_fetch_array($query_id, $this->rownum[$query_id]-1, PGSQL_ASSOC); - } - else - { - $this->row = @pg_fetch_array($query_id, $this->rownum[$query_id], PGSQL_ASSOC); - - if( $this->row ) - { - $this->rownum[$query_id]++; - } - } - } - - return $this->row[$field]; - } - - return false; - } - - function sql_rowseek($offset, $query_id = 0) - { - - if(!$query_id) - { - $query_id = $this->query_result; - } - - if( $query_id ) - { - if( $offset > -1 ) - { - $this->rownum[$query_id] = $offset; - return true; - } - else - { - return false; - } - } - - return false; - } - - function sql_nextid() - { - $query_id = $this->query_result; - - if($query_id && $this->last_query_text[$query_id] != "") - { - if( preg_match("/^INSERT[\t\n ]+INTO[\t\n ]+([a-z0-9\_\-]+)/is", $this->last_query_text[$query_id], $tablename) ) - { - $query = "SELECT currval('" . $tablename[1] . "_id_seq') AS last_value"; - $temp_q_id = @pg_exec($this->db_connect_id, $query); - if( !$temp_q_id ) - { - return false; - } - - $temp_result = @pg_fetch_array($temp_q_id, 0, PGSQL_ASSOC); - - return ( $temp_result ) ? $temp_result['last_value'] : false; - } - } - - return false; - } - - function sql_affectedrows($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? @pg_cmdtuples($query_id) : false; - } - - function sql_freeresult($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? @pg_freeresult($query_id) : false; - } - - function sql_error($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - $result['message'] = @pg_errormessage($this->db_connect_id); - $result['code'] = -1; - - return $result; - } - -} // class ... db_sql - -} // if ... defined - -?> \ No newline at end of file diff --git a/phpBB2/docs/AUTHORS b/phpBB2/docs/AUTHORS deleted file mode 100644 index a2d973c..0000000 --- a/phpBB2/docs/AUTHORS +++ /dev/null @@ -1 +0,0 @@ -Please see: http://www.phpbb.com/about.php for a list of all the people involved in phpBB. diff --git a/phpBB2/docs/CHANGELOG.html b/phpBB2/docs/CHANGELOG.html deleted file mode 100644 index 6a59fdf..0000000 --- a/phpBB2/docs/CHANGELOG.html +++ /dev/null @@ -1,668 +0,0 @@ - - - - - -phpBB 2.0.15 :: Changelog - - - - - - - - - -
- - - -
- - - - - - -
phpBB 2 : Creating CommunitiesphpBB 2.0.15 CHANGELOG
- - -
    -
  1. Changelog
  2. -
      -
    1. Changes since 2.0.14
    2. -
    3. Changes since 2.0.13
    4. -
    5. Changes since 2.0.12
    6. -
    7. Changes since 2.0.11
    8. -
    9. Changes since 2.0.10
    10. -
    11. Changes since 2.0.9
    12. -
    13. Changes since 2.0.8
    14. -
    15. Changes since 2.0.7
    16. -
    17. Changes since 2.0.6
    18. -
    19. Changes since 2.0.5
    20. -
    21. Changes since 2.0.4
    22. -
    23. Changes since 2.0.3
    24. -
    25. Changes since 2.0.2
    26. -
    27. Changes since 2.0.1
    28. -
    29. Changes since 2.0.0
    30. -
    31. Changes since RC-4
    32. -
    33. Changes since RC-3
    34. -
    35. Changes since RC-2
    36. -
    37. Changes since RC-1
    38. -
    39. Changes since RC-1 (pre)
    40. -
    -
  3. Disclaimer
  4. -
- -

1. Changelog

- -

This is a non-exhaustive (but still near complete) changelog for phpBB 2.0.x including beta and release candidate versions. Our thanks to all those people who've contributed bug reports and code fixes.

- -

l.i. Changes since 2.0.14

- -
    -
  • Fixed moderator status removal in groupcp.php
  • -
  • Removed newlines after ?> on some files - Thoul
  • -
  • Added admin re-authentication (admin needs to login seperatly to access the ACP) - backported from Olympus
  • -
  • Fixed vulnerability in url/bbcode handling functions - PapaDos and Paul/Zhen-Xjell from CastleCops
  • -
  • Fixed issue in admin/admin_forums.php
  • -
  • Suppressed warning message for fsockopen in /includes/smtp.php - Thoul
  • -
  • Fixed bug in admin/admin_smilies.php (admin is able to add empty smilies) - Exy
  • -
  • Adjusted documents to reflect the urgent need to update the files too (not only running the database update script)
  • -
  • Updated the readme file
  • -
  • Added one new language variable
  • -
  • Added general error if accessing profile for a non-existent user
  • -
  • Changed session id generation to be more unique - Henno Joosep
  • -
  • Fixed bug in highlight code to escape characters correctly
  • -
  • Reversed the 2.0.14 fix for postgresql because it produced more problems than it solves.
  • -
  • Added reference to article written by R45 about case-sensitivity in postgreSQL to the readme file
  • -
  • Fixed bypassing of validate_username on registration - Yen
  • -
  • Empty url/img bbcodes no longer get parsed
  • -
- -

l.ii. Changes since 2.0.13

- -
    -
  • Hardened author and keyword search a bit to not allow very server intensive searches
  • -
  • Fixed full path disclosure in bad word parsing
  • -
  • Resetting complete userdata array in session code if authentication fails
  • -
  • Fixed bug in moderator control panel where certain parameters could lead to an "error creating new session" sql error
  • -
  • Fixed bug in session code where empty page ids could lead to an "error creating new session" sql error
  • -
  • Fixed html handling in signatures if html is turned off globally
  • -
  • Fixed install.php problem with PHP5 register_long_arrays option turned off
  • -
  • Fixed potential issues with styling system
  • -
  • Added correct class to login_body template file
  • -
  • Removed file db/oracle.php from package
  • -
  • Removed version number from message body page in /admin (if user is not an admin) - mikelbeck
  • -
  • Fixed case-sensitivity issues in postgres7.php - R45
  • -
- -

l.iii. Changes since 2.0.12

- -
    -
  • Ommitted preg_replace warning in viewtopic due to improper working of preg_quote in PHP - originally reported by matrix_killer, fix submitted by another party
  • -
  • Fixed high severity issue in session handling allowing everyone gaining administrator rights. Please update as soon as possible.
  • -
  • Minimum requirements raised to PHP 4.0.3 or above due to fixing vulnerability issues breaking PHP3 compatibility.
  • -
- -

l.iv. Changes since 2.0.11

- -
    -
  • Added confirm table to admin_db_utilities.php
  • -
  • Prevented full path display on critical messages
  • -
  • Fixed full path disclosure in username handling caused by a PHP 4.3.10 bug - AnthraX101
  • -
  • Added exclude list to unsetting globals (if register_globals is on) - SpoofedExistence
  • -
  • Fixed arbitrary file disclosure vulnerability in avatar handling functions - AnthraX101
  • -
  • Fixed arbitrary file unlink vulnerability in avatar handling functions - AnthraX101
  • -
  • Removed version number from powered by line
  • -
  • Merged database update files to update_to_latest.php file
  • -
  • Fixed path disclosure bug in search.php caused by a PHP 4.3.10 bug (related to AnthraX101's discovery)
  • -
  • Fixed path disclosure bug in viewtopic.php caused by a PHP 4.3.10 bug - matrix_killer
  • -
- -

l.v. Changes since 2.0.10

- -
    -
  • Fixed vulnerability in highlighting code (very high severity, please update your installation as soon as possible)
  • -
  • Fixed unsetting global vars - Matt Kavanagh
  • -
  • Fixed XSS vulnerability in username handling - AnthraX101
  • -
  • Fixed not confirmed sql injection in username handling - warmth
  • -
  • Added check for empty topic id in topic_review function
  • -
  • Added visual confirmation mod to code base
  • -
- -

l.vi. Changes since 2.0.9

- -
    -
  • Fixed deleting of styles in admin_styles.php
  • -
  • Fixed wrong unsetting of variables introduced in phpBB 2.0.9, making the board non-functional for users with specific php.ini settings
  • -
  • Added code to let phpBB work with PHP5 for those having register_long_arrays set to off (default settings) - running phpBB 2.0.x with PHP5 is not supported at http://www.phpbb.com.
  • -
  • Fixed bug in admin_board.php for board settings having single quotes in it
  • -
  • Fixed "search by author" in search.php. Now it is possible to search for users with special chars in their name too
  • -
  • Fixed forum jumpbox propagating session id in moderator control pages
  • -
  • Added check for newlines at redirecting pages, to prevent http response splitting attacks - Ory Segal and Amit Klein
  • -
  • Fixed visual confirmation code. The image was not created due to a wrong regular expression.
  • -
- -

l.vii. Changes since 2.0.8

- -
    -
  • Fixed one vulnerability in admin_board.php - Xore
  • -
  • Added checking for proper session id characters to sessions and viewtopic to prevent injections - Bartlomiej Korupczynski
  • -
  • Fixed injection vulnerabilities possible with linked avatars
  • -
  • Implemented unsetting globalised variables
  • -
  • Limited confirm switch to POST variable in posting
  • -
  • Changed IP code in common.php to prevent IP spoofing, which might introduce some problems with private IP Ranges showing up. - Wang Products
  • -
  • Updated visual confirmation mod [pre-edited files]
  • -
  • Moved obtaining word censors in modcp out of topic generation loop [increased performance/lower query count] - spotted by R45
  • -
  • Added the ability to link to https/ftps sites using the img bbcode tag
  • -
  • Fixed user online information in admin/index.php
  • -
  • Fixed getting group moderator in groupcp.php if running oracle backend - spotted by pakman
  • -
  • Fixed use of non-existing result variable in modcp (poster_id instead of user_id)
  • -
  • Fixed several vulnerabilities (XSS, SQL Injection and path disclosure) only possible with register_globals enabled - Matthew C. Kavanagh, Janek Vind
  • -
  • Fixed problem with SID not delivered to next page in groupcp.php
  • -
- -

l.viii. Changes since 2.0.7

- -
    -
  • Fixed several vulnerabilities in admin pages
  • -
  • Fixed sid checking code in admin/pagestart.php
  • -
  • Fixed injection vulnerabilities possible with the img bbcode tag
  • -
  • Limited allowed images in img bbcode tag to jpg, jpeg, gif and png
  • -
  • Fixed redirect problems - 2.0.7a
  • -
  • Fixed sql injection vulnerability in search - 2.0.7a
  • -
  • Fixed sql injection vulnerability in privmsg - 2.0.8a
  • -
- -

1.ix. Changes since 2.0.6

- -
    -
  • Fixed several vulnerabilities in modcp - Robert Lavierck
  • -
  • Changed whois lookup address within admin index
  • -
  • Fixed potential vulnerability in viewtopic postorder - 2.0.6d
  • -
  • Updates to cope with Zend Optimizer 2.5 problems - 2.0.6d - jetset
  • -
  • Force specialcharing of redirect variable in login - Pit
  • -
  • Fixed potential vulnerability in viewtopic postdays - GulfTech Security Research
  • -
  • Fixed potential vulnerability in viewforum topicdays - GulfTech Security Research
  • -
  • Fixed potential vulnerability in modcp
  • -
  • Fixed potential vulnerability in avatar gallery
  • -
- -

1.x. Changes since 2.0.5

- -
    -
  • Fixed various email issues
  • -
  • Fixed registration email bug with Administrator Confirmation used
  • -
  • Fixed mass emailer
  • -
  • Fixed long post time issue
  • -
  • Fixed bug with usernames containing single quotes
  • -
  • Fixed word list bug - Word boundaries were not considered
  • -
  • Fixed vulnerability in style admin
  • -
  • Fixed sql injection vulnerability in viewtopic
  • -
  • Fixed vulnerability allowing server side variable access in search - tendor
  • -
  • Fixed potential vulnerability in 2.0.5 login username entry - throw away/eomer
  • -
  • Fixed sql injection with reset date format field in profile - tendor
  • -
- -

1.xi. Changes since 2.0.4

- -
    -
  • Removed user facing session_id checks
  • -
  • Fixed user self-activation after deactivation
  • -
  • Fixed incorrect functioning of phpbb_realpath
  • -
  • Fixed wrong path to database schema files within the upgrade script
  • -
  • Fixed double quote problem with username validation
  • -
  • Allow & within email addresses
  • -
  • Fixed email validation for banned email addresses
  • -
  • Removed underline from email domain validation
  • -
  • Fixed redirection for sentbox folder, installation and email
  • -
  • Fixed poll deletion
  • -
  • Fixed Mozilla navigation bar
  • -
  • Fixed URL bbcode parsing
  • -
  • Fixed database timeouts while searching the forums
  • -
  • Fixed wrong email return path in admin mass mailing - netclectic
  • -
  • Fixed MS-SQL failures within the update script
  • -
  • Fixed memberlist sort order
  • -
  • Fixed not showing leading spaces within Code BBCode
  • -
  • Fixed problem with adding double quotes to subject titles
  • -
  • Remove username input field from profile when user cannot change name
  • -
  • Fixed pagination error with highlighting
  • -
  • Fixed errors if no smilies are installed
  • -
  • Fixed CSS issues with IE 5.2 on MacOS X
  • -
  • Fixed missing sid propagation problem within the Moderator Control Panel
  • -
  • Fixed language variables within Authentication error output
  • -
  • Removed doubled CSS class definitions within input fields
  • -
  • Fixed username change within the Administration Panel
  • -
  • Added missing <tr> tags to index_body.tpl
  • -
  • Added missing username language variable to admin index page
  • -
  • Fixed moderator status update if a usergroup got deleted
  • -
  • Fixed poll handling upon post edit
  • -
  • Fixed remove common words from search table if post get pruned - Nuttzy99
  • -
  • Fixed behaviour on splitting topics if no checkbox is selected
  • -
  • Anonymous is no longer displayed within Username dropdown boxes
  • -
  • Fixed viewprofile redirection if an invalid mode was specified
  • -
  • Fixed fraction settings within determining common words - Novan
  • -
  • Prevent admin change usernames to his own within the ACP
  • -
  • Activation email is sent to all admins
  • -
  • Fixed conversion of & to &amp; in appropriate cases
  • -
  • Fixed display of "greater than topics per page" announcements preventing display of normal posts
  • -
  • Added variable checks to database backup and restore screen
  • -
  • Prevented pm popup window from resetting after visiting avatar gallery
  • -
  • Fixed special character handling with word censor
  • -
  • Added SID to jumpbox
  • -
  • Fixed problems with usernames using html special chars
  • -
  • Added GMT + 13 to English lang_main, all translators are encouraged to do likewise
  • -
  • Deleted doubled 'U_MEMBERLIST' assignment from page_header.php
  • -
  • Fixed wrong display of Signature Checkbox while editing Private Message
  • -
  • Fixed disappearing post text if emoticon was inserted directly after pressing a BBCode button
  • -
  • Display correct alt-tag for smilies within postings
  • -
  • Prevented the ability to apply BBCode to website contents
  • -
  • Fixed maxlength issue with password field in login_body.tpl
  • -
  • Fixed possible username duplication issue with validation and username length
  • -
  • Fixed split words function to handle additional foreign characters
  • -
  • Changed empty email To Field to use a non-disclosure delimiter
  • -
  • Fixed wrong language var in install.php - FTP Config screen
  • -
  • Fixed alt tag for locked topic images in viewforum_body.tpl
  • -
  • Fixed typo in groupcp.php - $lang['Unsub_success'] instead of $lang['Usub_success']
  • -
  • Fixed timezone display
  • -
  • Fixed wrong display of author quote tag within profile - Cl1mh4224rd
  • -
  • Added deletion of sessions of users whose account is deactivated
  • -
  • Added mail header X-MimeOLE to the emailer class
  • -
  • Prevent registration if user is logged in or user trying to register again
  • -
  • Prevent usage of char(255) in usernames
  • -
  • Added check for additional FORWARDED_FOR IP's - cosmos
  • -
  • Fixed handling of non-selection of option when voting
  • -
  • Fixed potential xss issue with memberslist mode
  • -
  • Default English support for visual confirmation - translators are encouraged to support this
  • -
- -

1.xii. Changes since 2.0.3

- -
    -
  • Fixed cross-browser scripting issue with highlight param
  • -
  • Back-ported highlighting code from phpBB 2.2
  • -
  • Add session id validation to posting, profile, email, voting - Edwin van Vliet
  • -
  • Added {S_HIDDEN_FIELDS} template var to profile_send_email.tpl
  • -
  • Added "intval" fix for flood check, may resolve some issues
  • -
  • Added missing index to post_id for search_wordmatch
  • -
  • Fixed spelling error in search add words preventing use of stopword list
  • -
  • Fixed issue with search common words not being run
  • -
  • Introduce viewtopic resync patch by Ashe
  • -
  • Replace a for n in templating code
  • -
  • Fixed ordering in memberslist
  • -
  • Fixed group_id sequence issues with pgsql and msaccess
  • -
  • Fixed assumption of word censors in user notification
  • -
  • Fixed incorrect display of quotes in user management fields
  • -
  • Fixed entry of special chars in all profile fields - note this may cause temporary issues
  • -
  • Fixed incorrect display of quotes when using avatar gallery
  • -
  • Fixed missing username in email sent to users when admin activated
  • -
  • Added check for non-empty smiley code and url in smiley admin
  • -
  • Prevent display of -- sig seperator in emails when no board sig exists
  • -
  • Fixed URL propagated sid issues with jumpbox
  • -
  • Fixed wrong mode name check (polldelete) in functions_post
  • -
  • Added missing root path to l10n image path check
  • -
  • Remove validation of fields when deleting a user
  • -
  • Fixed sort mode select box in memberslist to default to current mode
  • -
  • Deny inline topic review listing to users without auth_read permissions
  • -
  • Prevent display of topic notification checkbox if user cannot read forum
  • -
  • Remove incorrect pre-pending of IP to uploaded avatars
  • -
  • Fixed deletion of uploaded avatars when changing to remote/gallery
  • -
  • Added check for non-blank line during install schema/basic sql ops
  • -
  • Added sort ordering to Top Ten poster listing by request
  • -
  • Fixed incorrect error report when altering case of username
  • -
  • Added jumpbox output to modcp {JUMPBOX} will now work
  • -
  • Fixed non-updating of users with MOD levels when deleting a forum
  • -
  • Remove email to group moderator when approving new members
  • -
  • Fixed non-handling of HTML in poll options
  • -
  • Fixed non-deletion of polls when deleting forum and its posts
  • -
  • Fixed moved shadow topic from being bumped upon reply
  • -
  • Changed field size of timezone to decimal(5,2) where applicable
  • -
  • Fixed missing sid append to URL when redirecting to newest reply
  • -
  • Fixed missing slashes in private IP preg check
  • -
  • Fixed session not setting userdata['user_id'] to ANON as appropriate
  • -
  • Added check for non-empty name in disallow admin
  • -
  • Fixed validation of SSL website addresses in profile
  • -
  • Fixed inability of admins to upload avatars via user admin panel
  • -
  • Fixed non-deletion of private message text upon full box overwrite
  • -
  • Fixed incorrect error message in smiley admin
  • -
  • Fixed incorrect alt-text for "Stop Watching Topic" image
  • -
  • Temporary fix for missing lang strings in forum admin - translators should update their packages if not done already
  • -
  • Use selected localisation during later stages of installation
  • -
  • Fixed non-check of permissions when deleting a topic via Moderator Control Panel
  • -
  • Fixed non-update of banlist upon user deletion
  • -
  • Check approved users boxes by default in usergroup approve form
  • -
  • Fixed non-appending of sid to backup meta refresh
  • -
  • Fixed non-notification of no support for certain databases in backup/restore
  • -
  • Added $images var to message die global declaration
  • -
  • Fixed wrong string, Private_message in Private Messaging
  • -
  • Add mail send result to error output
  • -
  • Fixed non-appending of sid to Mozilla nav bar menu items
  • -
  • Fixed incorrect profile linking from MSNM url in private messaging
  • -
  • Grammatical errors in English lang_main fixed - Cluster
  • -
  • Allow deletion of avatar and simultaneous upload/linking/gallery selection
  • -
  • Fixed non-updating of user rank when changing from special to normal rank in rank admin
  • -
  • Changed user topic notification default in schemas to 0 (off)
  • -
  • Fixed non-XHTML compliant img tags in privmsg.php
  • -
  • Fixed non-deletion of announcements and polls when removing forum contents in forum admin
  • -
  • Fixed non-pruning of watched topics table when pruning related topics
  • -
  • Enable GET redirect on logout
  • -
  • Added check for IE6.x to viewtopic ICQ indicator javascript
  • -
  • Fixed empty username quoting with MS-SQL
  • -
  • Fixed BBCode url, magic url and img tags to allow most chars beyond domain names
  • -
  • Prevent parsing of -ve size values in BBCode size tag
  • -
  • Back ported HTML handler from 2.2, this may impact some boards which allow complex HTML - existing parser remains but commented out
  • -
  • Fixed parsing of word censors to not censor words within < and > tag delimiters
  • -
  • Fixed database utilities failing to backup data with MySQL
  • -
  • Fixed signature parsing in User Admin
  • -
  • Fixed missing class="post" tags in subSilver Admin templates
  • -
  • Fixes for paths under Apache2
  • -
  • Added wrap text with tag support for posting in Mozilla 1.1+
  • -
  • Fixed use of missing CSS classes in modcp_split, group_info_body, error_body and agreement
  • -
  • Fixed ability of users to edit polls even after they have received votes
  • -
  • Fixed header Location to be absolute URL as per HTTP 1.1 spec - noted by PhilippK
  • -
  • Added additional session_id checks to MCP, topic subscription, PM and similar items
  • -
  • Fixed colour select box in posting_body to reset to Default colour after selection
  • -
  • Altered PM icon to show new image until messages have been read
  • -
  • Fixed incomplete deletion of PMs when removing the associated user
  • -
  • Fixed unread and new PM user counters to decrement appropriately in all situations
  • -
  • Fixed possible cross-site scripting issue with username search
  • -
  • Fixed some problems with gzip in combination with newer PHP versions and Mozilla
  • -
  • Fixed wrong maxlength in modcp_split.tpl subject field
  • -
  • Fixed inability to edit username of guest poster - vHiker
  • -
  • Fixed ability for guests to post with certain registered usernames
  • -
  • Fixed various HTML issues to improve XHTML compliance - Daz
  • -
  • Fixed missing template var {L_PM} for memberslist - Daz
  • -
  • Fixed wrong key name for $images['Topic_un_watch'] - Daz
  • -
  • Fixed missing template var {S_WATCH_TOPIC_IMG} for viewtopic - Daz
  • -
  • Fixed missing default constraints for post table under MSSQL
  • -
  • Fixed incorrect field size for forum pruning - preventing days > 256
  • -
  • Fixed continuing redirect issues for broken web servers, e.g. IIS+CGI PHP
  • -
  • Fixed inability to use ftp as a protocol for the [img] tag
  • -
  • Fixed incorrect handling of [img] tags containing %20 encoded spaces
  • -
  • Added check for . within cookie_name, change to _ if present
  • -
  • Added SHOW_ONLINE constant to limit "users online" code operation to index and viewforum
  • -
  • Added "temporary" workaround for Apache2 + PHP module ignoring "private" cache header
  • -
  • Added workaround for modcp IP lookup and links to Anonymous user profile
  • -
  • Fixed broken bbcode parsing of quotes containing bbcode in the "username"
  • -
  • Fixed excess slashes in [quote=""] first pass encoding
  • -
  • Fixed rendering issue with quote button under Mozilla - Daz
  • -
  • Grammatical errors in remaining core lang files fixed - Cluster
  • -
  • Fixed bbcode quote breaking when username contained ] before [
  • -
  • Fixed duplicate group_id error during upgrade of users from phpBB 1.x
  • -
  • Fixed stripslashes() problem with the conversion of the config table from phpBB 1.x
  • -
  • Rejiggled validation code, may eliminate "Username disallowed" issues
  • -
  • Fixed differing initial "public" setting of forum permissions between different files
  • -
  • Added check for invalid (non-compliant) email addresses to upgrade script
  • -
  • Further redirect workarounds for broken servers, please direct further issues to the vendors
  • -
  • Added GMT + 13 to English lang_main, all translators are encouraged to do likewise
  • -
  • Added switch to default_lang email template if user lang template no longer exists
  • -
  • Fixed javascript error when selecting smiley containing a single quote
  • -
  • Update users watched topic if a post they made is split into a new topic
  • -
  • Fixed situations where email templates contain incorrect or missing subject lines
  • -
  • Fixed error when searching for posts and no forums exist
  • -
  • Fixed potential SQL vulnerability with marking of private messages - Ulf Harnhammar
  • -
- -

1.xiii. Changes since 2.0.2

- -
    -
  • Fixed potential cross-site scripting vulnerability with avatars - Showscout
  • -
  • Fixed potential SQL rewrite issue in page header - missing contrib
  • -
  • Fixed potential CSS/HTML rewrite on viewing in login - Marc Rees
  • -
  • Fixed (hopefully) issue with MS Access and multiple pages
  • -
- -

1.xiv. Changes since 2.0.1

- -
    -
  • Fixed missing "username" lang variable in user admin template
  • -
  • Session work around for users behind rotating IPs - vHiker
  • -
  • Fixed potential session user_id re-write - Ashe
  • -
  • Fixed potential cross-browser scripting issue with BBCode URLs
  • -
  • Fixed potential gallery avatar exploit - Ashe
  • -
  • Fix sorting of smileys on each function call - Ashe/psoTFX
  • -
  • Clear topic_mod text output in viewtopic - Lars
  • -
  • Fix regex for avatar remote urls
  • -
  • Fix non-updating of user post counts when deleting whole topics
  • -
  • Increase time limit when sending topic reply notifications
  • -
  • Set default forum when splitting topics
  • -
  • Fix non-deletion of uploaded avatars when switching to gallery
  • -
  • Removed various closing newlines from included files
  • -
  • Add MAX_ROWS to HEAP table alter in install/upgrade - Ashe
  • -
  • Update username maxlength for subSilver templates
  • -
  • Allow ( and ) in BBCode [url] tags
  • -
  • Fix non-quoting of # in username validation regexs
  • -
  • Fix overlooked global var in private messaging
  • -
  • Possible fix for \r\n email templates issues
  • -
  • Fix missing str_replace for category title forum admin SQL
  • -
  • Fix trailing , when sending emails via smtp
  • -
  • Fix avatar issues in user admin
  • -
  • Fix improper checking of email address ban in sessions
  • -
  • Fix use of hard coded language strings in forum admin
  • -
  • Fix missing closing ) in smilies admin
  • -
  • Fix missing Username label in user admin
  • -
  • Fix upgrade.php bug where conversion would not complete (and updated other scripts to match the changes)
  • -
  • Fix problem with redirect and login.php
  • -
  • Fix typo that could cause problems with sorting in the memberlist
  • -
  • Fix emailer to allow sending emails with language-specific character sets
  • -
- -

1.xv. Changes since 2.0.0

- -
    -
  • Fixed delete image bug for normal users
  • -
  • Fixed group control panel image links
  • -
  • Fixed missing L_POST variable in group control panel
  • -
  • Fixed missing user id when redirecting to email form after login
  • -
  • Fixed (a)ppend_sid function name error in group control panel
  • -
  • Fixed reset of post type when previewing a post
  • -
  • Fixed mass emailer include path error
  • -
  • Fixed potential SQL exploit
  • -
  • Fixed several minor subSilver issues
  • -
  • Fixed [quote] breaking HTML problem
  • -
  • Fixed problem with unclosed nested quotes
  • -
  • Fixed bad handling of automagic links at end of quotes
  • -
  • Fixed potential BBCode and avatar remote exploit
  • -
  • Altered email validation check to allow + in username as per RFC
  • -
  • Fixed incorrect behaviour with wildcards in disallowed usernames
  • -
  • Added missing append_sid for search view results as posts
  • -
  • Fixed incorrect clearing of current sessions for logged in users
  • -
  • Fixed user_timezone (cannot update user profile) problem
  • -
  • Added correct setting of moderator status for users during upgrade
  • -
  • Fixed handling of uploaded avatars if gallery avatar currently used
  • -
  • Fixed use of existing username for uploaded avatars
  • -
  • Fixed updating of topic reply stats when post is deleted
  • -
  • Fixed irrelevant error message when activating already active account
  • -
  • Fixed gzip compression problems with Netscape and some PHP versions
  • -
  • Fixed MS Access layer errors when using latest PHP versions
  • -
  • Fixed styles admin editing problems with MSSQL Server
  • -
  • Fixed logout issue when cancelling certain actions
  • -
  • Fixed missing text in certain admin links
  • -
  • Fixed opening of frame within frame when logging into admin
  • -
  • Fixed incorrect ordering of search results by time
  • -
  • Fixed fulltext searching failure with MS Access
  • -
  • Hopefully fixed fulltext search with non-latin single byte charsets
  • -
  • Enabled work-around support for some multi-byte charsets - OOHOO
  • -
  • Re-enabled search indexing of all-numeric character sequences
  • -
  • Updated email banning to properly implement wildcards
  • -
  • Fixed missing extension in links from groupcp
  • -
  • Fixed lack of re-validation when changing email address
  • -
  • Added additional IP check when using HTTP_X_FORWARDED_FOR
  • -
  • Fixed non-display of delete icon when on second or greater topic page
  • -
  • Fixed problems with users/groups assigned multiple permissions
  • -
  • Fixed problem with - and + in search words - Matthijs
  • -
  • Fixed improper handling for deletion of words from search table
  • -
  • Fixed support for , in automagic URLs as per RFC
  • -
  • Fixed circular reference SQL errors when deleting posts under MS Access
  • -
  • Fixed nested [code] problems
  • -
  • Added charset encoding headers for emails - romutis
  • -
  • Fixed "Copy to self" emails to use correct language
  • -
  • Fixed pagination error when limiting previous days for viewforum
  • -
  • Decreased minimum search word size to 3 chars
  • -
  • Fixed deletion of one or more options from all polls when editing just one
  • -
  • Fixed checking of group memberships when promoting/demoting group moderators
  • -
  • Added database closure to admin frameset page
  • -
- -

1.xvi. Changes since RC-4

- -
    -
  • Fixed improper report of general error when posting messages containing errors
  • -
  • Fixed post text being doubled up if it contained one or more < without closing >
  • -
  • Fixed pruning errors due to search function name change
  • -
  • Hopefully fixed various issues which led to incorrect reply and excess page counts
  • -
  • Fixed groupcp not displaying all email buttons to group moderator or admin
  • -
  • Fixed failure to display error notice when uploading oversized avatars
  • -
  • Hopefully corrected problem with viewonline displaying too few/many users online
  • -
  • Partially addressed issue with activation URLs >76 chars
  • -
  • Fixed additional search facilities failing to work or working incorrectly
  • -
  • Fixed search syntax highlighting
  • -
  • Addressed various webservers handling of page redirects
  • -
  • Fixed word censor not replacing first or last words
  • -
  • Fixed avatar height and width check for locally uploaded images
  • -
  • Hopefully fixed cache control header
  • -
  • Added check for PM box size limit of 0 to prevent div0 error
  • -
  • Fixed failure to fully delete PMs in outbox
  • -
  • Fixed display problem with polls
  • -
  • Fixed problem with guest username not being displayed for topic results in search
  • -
  • Fixed problem with quotes in various profile fields
  • -
  • Fixed schema problem with user_timezone
  • -
  • Fixed page display issue with MS Access
  • -
  • Fixed user level issue when altering user from user to admin and vice versa
  • -
  • Fixed incorrect parseing of some email templates
  • -
  • Reduced size of MS Access primer
  • -
  • Fixed various remaining usergroup display issues
  • -
- -

1.xvii. Changes since RC-3

- -
    -
  • Addressed serious security issue with included files
  • -
  • Fixed non-use of database table prefix name during upgrade
  • -
  • Split functions and profile into separate modules
  • -
  • Fixed (hopefully) remaining issues with colourisation of moderator usernames
  • -
  • Updated install to include entry of additional, required, information
  • -
  • Fixed (hopefully) AOL incompatibilities
  • -
  • Fixed non-display of moderators in index/viewforum
  • -
  • Fixed group control panel 'no groups exist' problems
  • -
  • Fix HTTP_X_FORWARDED_FOR spoofing possibility
  • -
  • Fix ignoring of private range IP's in HTTP_X_FORWARDED_FOR
  • -
  • Enable multiple wildcard email banning, eg. *name*@somewhere.tld
  • -
  • Fix problems with posts being truncated if containing < and > characters
  • -
  • Prevent URL, BBCode and most smiley parseing in [code][/code]
  • -
  • Fix problems with use of certain reserved chars in word censor list
  • -
  • Fix default search useage to be as described (was doing AND by default)
  • -
  • Fix various avatar issues with profile, gallery and viewtopic
  • -
  • Enable safe mode support for uploading avatars
  • -
  • Fix broken modcp IP view issue
  • -
  • Fix potential session_id re-write vulnerability
  • -
  • Finish localisation of days and months (AM/PM are not and will not be localised in 2.0)
  • -
  • Remove link to external subSilver stylesheet from default subSilver templates
  • -
  • Handle TRANSACTIONS correctly in MySQL 3.x (by returning correct responses)
  • -
  • Fix checkbox resetting problem while previewing posts
  • -
  • Fix a login redirect issue
  • -
  • Remove some additional unused fields during upgrade
  • -
  • Fix (hopefully) remaining ICQ overlay issue with view profile in subSilver
  • -
- -

1.xviii. Changes since RC-2

- -
    -
  • Fixed infamous install parse error
  • -
  • Major update of posting and related search functions (fixing various issues and increasing speed)
  • -
  • Fixed display of author and last poster names when both are different guest users
  • -
  • Fixed upgrade stall issues (hopefully!) and improved output
  • -
  • Fixed highlighting code for viewtopic and search
  • -
  • Reduced size of several files and functions
  • -
  • Moved localised images to sub-directories
  • -
  • Improved user feedback of disallowed usernames
  • -
  • Fixed various MSSQL bugs
  • -
  • Fixed installation of MSSQL/MSSQL-ODBC
  • -
  • Fixed security issue with upgrade.php
  • -
  • Finished implemention of various additional features
  • -
  • Fixed various user, group and forum permissions problems
  • -
  • Fixed issues with BBCode [ and ] (hopefully!)
  • -
  • Fixed autologin problems with MS IIS
  • -
  • Hopefully fixed problems with URIs in emails on some server configs
  • -
  • Fixed 'blank' profile and DB utilities problems on submit
  • -
  • Fixed incorrect language being used in email subjects
  • -
  • Fixed issues with incorrect private message new/unread counts
  • -
  • Fixed various PostgreSQL related errors
  • -
  • Automatically forward users to login screen in more situations
  • -
  • AEnabled (coloured) online indication of moderators and admins
  • -
  • Enabled maximum online user count
  • -
  • Altered online user count to ignore duplicate IPs (will now underestimate rather than overestimate)
  • -
  • Enabled viewing of users browsing each forum
  • -
  • Fixed (hopefully) display of overlayed ICQ icon in Netscape using subSilver
  • -
  • Fixed display of guest usernames for last post and author
  • -
  • Hidden usergroups are now completely hidden from view
  • -
- -

1.xix. Changes since RC-1

- -
    -
  • Fixed numerous PostgreSQL related issues
  • -
  • Significant updates and additions to the upgrade script
  • -
  • Various (missed) hard coded language strings fixed
  • -
  • Fixed viewforum error when no forum id specified
  • -
  • Fixed old constant name useage in search system
  • -
  • Fixed display of moved posts when viewing unanswered posts
  • -
  • Fixed failure of search for user and keyword when displaying as posts
  • -
  • Fixed PM popup notification
  • -
  • Fixed view more emoticon session page problem
  • -
  • Fixed view profile email links
  • -
  • Fixed display of websites in profile
  • -
  • Fixed backup database failure
  • -
  • Fixed MS Access schema error when posting topics
  • -
  • Fixed problem with hypenated/dotted DB names in MySQL 3.23.6+
  • -
  • Various other fixes and updates
  • -
- -

1.xx. Changes since RC-1 (pre)

- -
    -
  • Upgrade script completed for initial fully functional release
  • -
  • Sessions code updated
  • -
  • Mark read code updated and hopefully fixed
  • -
  • Significant changes to properly deal with \' for non-MySQL boards
  • -
  • mssql, msaccess and mssql-odbc DB classes re-written
  • -
  • Avatar issues addressed and fixed
  • -
  • Search (INSERT) bug using MySQL fixed
  • -
  • Search highlighting issues addressed
  • -
  • Search own/other users posts fixed
  • -
  • BBCode fixes for magic URIs and other issues
  • -
  • Template updates for subSilver
  • -
  • User and group permissions problems fixed
  • -
  • Forum management problems (deletion of forum causing category not to display) fixed
  • -
  • Pagination problem with groupcp fixed
  • -
  • Backslash issues with posting and profile fixed
  • -
  • Backslash issues with emails fixed
  • -
  • preg_quote problems fixed
  • -
  • User management updated with full avatar control and missing fields
  • -
  • Private messaging box limits fixed
  • -
  • Private messaging ?folder= strangeness fixed
  • -
  • Forum pruning code updated to cope with search system
  • -
  • Emoticon system in posting updated
  • -
  • BBCode FAQ link added to posting form
  • -
  • Language file updates to address concerns of translators
  • -
  • Various other bug fixes and updates
  • -
- -

Note that a full list of fixed bugs can be found at the bug tracker (see section on bug reporting here)

- -

2. Copyright and disclaimer

- -

This application is opensource software released under the GPL. Please see source code and the Docs directory for more details. This package and its contents are Copyright © 2002 phpBB Group, All Rights Reserved.

- - -
- - - diff --git a/phpBB2/docs/COPYING b/phpBB2/docs/COPYING deleted file mode 100644 index ce992b2..0000000 --- a/phpBB2/docs/COPYING +++ /dev/null @@ -1,281 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 675 Mass Ave, Cambridge, MA 02139, USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - diff --git a/phpBB2/docs/FAQ.html b/phpBB2/docs/FAQ.html deleted file mode 100644 index 80076ee..0000000 --- a/phpBB2/docs/FAQ.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - -phpBB 2.0.x :: FAQ - - - - - - - - - -
- - - -
- - - - - - -
phpBB 2 : Creating CommunitiesphpBB 2.0.x FAQ
- - -

This is a very basic Frequently Asked Questions (FAQ) page which attempts to answer some of the more commonly asked questions. It is by no means exhaustive and should be used in combination with the 'built-in' User FAQ within phpBB2, the community forums (particularly the Tutorials forum) and our IRC channel (see README for details).

- -
    - -
  1. I cannot install this it is too difficult! Will you do it?
  2. - -

    Simple answer, no we will not. We are not being difficult when we say this we are actually trying to help you. phpBB has a reputation for being easy to install, that reputation is we believe well deserved. It is a simple process of unarchiving a single file, uploading the resulting directory/files to their intended location and entering some data in a web based form. The sequence of events, what to type where, etc. is covered in detail in the accompanying INSTALL.html documentation. If you cannot install phpBB 2.0.x the chances are you will be unable to administer or update it.

    - -

    There are people, companies (unrelated to your hosting provider), etc. that will install your forum, either for free or for a payment. We do not recommend you make use of these offers. Unless the service is provided by your hosting company you will have to divulge passwords and other sensitive details. If you did not know how to use an ATM would you give a passer-by your bank card and PIN and ask them to show you what to do? No, probably not! The same applies to your hosting account details!

    - -

    We think a better solution is for you to carefully read the enclosed documentation, read our tutorials forum at www.phpbb.com and if necessary ask for help on any thing you get stuck on. However, the decision is yours but please note we may not offer support if we believe you have had the board installed by a third party. In such cases you should direct your questions to that company or person/s.

    - -
  3. How do I install this board on Lycos/coolfreepages/other free host?
  4. - -

    The old addage "You get what you pay for" is particularly true for hosting services! However if you must use a free service (and recognise its limitations) you will find details on common pitfalls in our tutorials forum at http://www.phpbb.com/phpBB/.

    - -
  5. I am having problems with the admin at a certain board, help!
  6. -
  7. A board has ripped off my graphics/software/etc., stop them!
  8. -
  9. A board is dealing in warez/porn/etc., you need to prevent them doing this!
  10. - -

    We provide the software, we have absolutely nothing to do with any board that runs it (beyond phpbb.com of course!). The GPL grants the user an unlimited right of use subject to their adherence of that licence. Therefore we cannot prevent, dictate, control or otherwise limit the use of phpBB 2 software. So please do not contact us for such matters.

    - -

    If you have a problem with a given board please take it up with them, not us. We are not and cannot be held legally responsible for any third party use of this software (much like Microsoft et al cannot be held responsible for the use of Windows in illegal activities, etc.). Additionally we do not track the use of phpBB software in any way. So please do not ask us for details on a "given" board we will not be able to help you. If any law firms or lawyers out there send us writs, Cease and Desist orders, etc. for third party website use of this software we reserve the right to charge for time wasted dealing with such issues ...

    - -
  11. According to viewonline a user is doing/reading something they should not be able to!
  12. - -

    No, they probably are not. phpBB uses sessions to keep track of users as they move between pages. The session information tells us who this user is. Therefore in order to determine what a user can do on a page we first need the session details. Once this data is available we can check whether the user is permitted to do whatever it is they are trying to do. This can result in it appearing as if a user is reading a topic in a forum they should not be able to access. Or perhaps viewing private messages when they are only guests, etc. In practice the user is not doing these things, they are viewing a "You are not permitted to do this" type message. The session data has simply been updated before we were able to determine what the user could or could not do.

    - -

    Of course this only applies where permissions have been set correctly!

    - -
  13. I keep getting Mail sending errors when I (or my users) post/send PM's/etc.!
  14. - -

    This error will occur if phpBB cannot send mail. phpBB can send email two ways; using the PHP mail() function or directly via SMTP. Some hosting providers limit the mail() function to prevent its use in spamming, others may rename it or limit its functionality. In either case you may need to make use of SMTP. This requires that you have access to such a facility, e.g. your hosting provider may provide one (perhaps requiring specific written authorisation), etc. Note that if your provider requires authorisation we only support the simple AUTH method using plaintext username/password. We do not support secure sockets layer (SSL), POP3 send or any other method. Please see http://www.phpbb.com/phpBB/ for additional help on this matter.

    - -

    If you do require SMTP services please do not ask (on our forums or elsewhere) for someone to provide you with one. Open relays are now things of the past thanks to the unthinking spammers out there. Therefore you are unlikely to find someone willing to offer you (free) services.

    - -
  15. My users are complaining that emails are not in their selected language!
  16. - -

    You must have deleted a language pack or the language pack is incomplete. phpBB will try to send emails in the users selected language. If it cannot find a suitable email template it will switch to the boards default language.

    - -
  17. The first four letters of my text disappeared when I hit submit!
  18. - -

    Some forms in phpBB make use of arrays to "post" or submit data, e.g. polls, forum management, etc. A bug exists in PHP 4.2.3 (and perhaps older versions) which can cause such data to lose the first four characters of text. This bug is related to the presence of the mbstring module and certain compile time parameters (the problem exists for both compiled in and modular version of mbstring). Please see: http://bugs.php.net/bug.php?id=19460 for more details. Note the bug is fixed in PHP CVS and thus future versions should be immune. Remember, this is not a bug in phpBB 2.

    - -
  19. My AOL based users keep getting logged out!
  20. - -

    phpBB2 uses sessions to keep track of users as they browse the board. These sessions use a combination of a unique session id and the users IP to identify each user. We make use of the IP as an extra safe-guard to help prevent sessions being hijacked (by discovering the unique session id).

    - -

    Unfortunately this only works when the users IP is constant as they browse the board. For most users this will be the case. However certain providers route their users via a cluster of proxys. In some cases, particularly AOL this results in different IPs being forwarded as the user moves between pages. We take account of this by not checking the entire IP but only the first "three quads". Again in most cases this will be fine. However again AOL uses IPs which can vary so much that checking only the first two quads results in a fairly static IP being available for session validation.

    - -

    If you are experiencing problems related to this you can make a small change to the code. Please note that reducing the IP validation length does potentially increase the risk of sessions being hijacked (this is something for you to consider, phpBB Group takes no responsibility should anything happen!). The change requires you to open the file sessions.php in the includes/ directory of the distribution. Find line 250, it contains the following

    $ip_check_s = substr($userdata['session_ip'], 0, 6);
    change this to:
    $ip_check_s = substr($userdata['session_ip'], 0, 4);
    You need to make exactly the same change to the number 6 in the next line. Save the file (and upload it if required). This should reduce or eliminate the problem noted.

    - -
  21. I selected X for my timezone but the time is not correct!
  22. - -

    I suspect the time is correct but that you may have switched (locally) to daylight savings time. At present we do not support daylight savings only standard local times. Therefore during summer months (depending on whether your nation/state switches to daylight savings) the board times may appear to be one hour behind the real local time. The solution is to either put up with it (just let your users know) or to move the timezone of everyone who is affected (remember that not all your users may be from nations who have switched to daylight savings) on one hour, eg. GMT becomes GMT+1. This requires running some SQL and you should search our forums for information.

    - -

    If this is not the case then I suspect your servers time is at fault. phpBB 2 stores all times in the form of a unix timestamp. This is a 32bit integer value containing the number of seconds since the unix epoch event, 1st January 1970 00:00:00 GMT. This value is global in nature and will be the same wherever you are in the world. So, if your time is incorrect and you have selected the appropriate timezone chances are your server time is off.

    - -
  23. I am seeing &#nnnn; sequences output instead of what I typed!
  24. - -

    To enable compliance with HTML and XHTML specifications as well as enabling browsers to automatically support a users selected language we enable a charset tag to be output to the browser. This identifies the primary character set the user has selected, eg. iso-8859-1 for Western European languages (English, German, French, etc.), windows-1251 for Cyrillic alphabets (Russian, Bulgarian, etc.) and so on. The downside to doing this is that most modern browsers (such as Internet Explorer) convert any character not present in that character set into what are termed Numerical Character References or NCR's. These take the form of &#nnnn; where nnnn is the hexadecimal number of that characters UNICODE reference.

    - -

    Unfortunately PHP (which effectively supports only iso-8859-1 at this time) does not appear to attempt to process this data back into normal characters. Therefore phpBB treats them as text the user has entered and wishes to see. phpBB enables this by turning the & into &amp;. This results in the characters appearing as they do. Although we could ignore &#nnnn; (there are pro's and of course con's to doing so) at present we don't.

    - -

    If you are finding this to be problem the solution is to remove the

    charset={S_CONTENT_ENCODING}
    text from all the _header.tpl template files in all templates. The downside to this is a users browser will not automatically switch its charset to that selected by the user (however this is unlikely to be a big problem since users typically run their browser by default in the language they wish to use). Alternatively you can modify the $lang['ENCODING'] entry in the appropriate language file. Until PHP (and all browsers!) trully support UNICODE these problems will persist across all boards.

    - -
  25. I cannot search for certain words! - -

    phpBB 2 uses a Fulltext search system, this has both advantages and disadvantages. The advantage is that on large or busy forums it has far less impact on server load than standard search methods as used by many alternative forums (including phpBB 1.x). The disadvantage is that to reduce the size of the database (every post is examined and unique words stored in a table) we have to limit the size and type of words we store. By default words must contain at least three characters but no more than 25, they must be either alpha or combinations of alpha and numerals (numbers alone are not stored). In addition all non-alphanumeric characters are removed, eg. _, +, -, etc. This is standard practice for fulltext search solutions.

    - -

    A further downside is that non-latin alphabets, eg. Cyrillic, Greek, etc. require proper locale support to be compiled in and available on the server your board is running on. If this is not the case it is quite likely that words will not be properly indexed for storage. In many cases this can be recified by altering the setlocale(LC_ALL, '[LOCALE_HERE]'); statement in the appropriate language file. If you are experiencing problems you should change whatever is currently in place of [LOCALE_HERE] with the locale as available on your server. If you do not know this please ask your hosting provider. Some examples may be ru_RU.WIN_CP_1251 for the codepage used for the Russian translation, ko.KOI8 for Korean, etc.

    - -

    Please note that support for multibyte character sets remains very limited in PHP4 and therefore Japanese, Chinese, etc. may have difficulty getting the fulltext search working correctly at all.

    - -
  26. My screen is filled with errors when I try to view the forum! - -

    Are they errors? Are you sure they are not warnings? They probably are ... What you're seeing is PHP warn you about unset variables. Great care has been taken with phpBB 2.0 to ensure it is secure. Unset variables while being a potential security risk really shouldn't be in 2.0. Unfortunately some hosting providers have decided that any unset variables equal security problems and force PHP to output these warnings even though phpBB 2.0 is set to ignore them.

    - -

    We have worked some way toward checking and/or setting all variables before use but this will take time to complete (if it can be). Therefore I am afraid for the time being you will have to manually modify the code or ask your hosting provider to be more realistic with their setup.

  27. - -
  28. How do I use the avatar settings? - -

    There are three types of avatar; upload, remote and local.

    -

      -
    • Upload types require you to create a directory (the default is images/avatars) and to set this to public read/write (ie. chmod a+rw), users can then upload avatars (subject to width, height and size limits definable by you).
    • -
    • Remote avatars allow the user to supply a URI pointing to an image available on the internet, PLEASE NOTE that size limits do not apply to remote avatars!
    • -
    • Local avatars allow you to upload your own avatars to a set directory, users can then pick from this avatar gallery. The default location for this is images/avatars/gallery. PLEASE NOTE that avatars are categorised according to sub-folders in this location! ie. you MUST place your avatars in subdirectories, eg. images/avatars/gallery/cartoons, images/avatars/gallery/real-life, etc.
    • -

  29. - -
  30. No matter what I set the uploadable avatars to I cannot upload one from my computer! - -

    There are two possibilities here, the first is you have not created the directory you specified as the storage location for avatars, ie. as specified in the Admin->General Configuration->Avatars section. If the directory does not exist uploadeable avatars are automatically disabled. You should create the required directory (ensuring it has global write access or other appropriate permissions to allow the webserver to write files to it).

    - -

    The second possibility is that your provider has disabled file_upload support, possibly because of a recently found serious security issue with PHP before version 4.1.2. You should contact your provider and ask them if this is the case. It may be unrelated to the security issue and your provider has simply decided to disable such things in general. In either case I'm afraid there is not a lot you can do, there are still three other avatar settings left to choose from including uploading via a URL which will work fine

  31. - -
  32. I just cannot get gallery avatars to appear! - -

    Chances are you have not followed our instructions above. phpBB 2 categorises gallery avatars and it does this by reading through folders contained in the location you specified as being the gallery path. For example, if you set the gallery path to "images/avatars/gallery" phpBB 2 will expect to find a series of folders within that path, eg. "images/avatars/gallery/moviestars", "images/avatars/gallery/cartoons", "images/avatars/gallery/misc", etc. Placing images directly in "images/avatars/gallery/" will result in nothing being listed in your gallery.

  33. - -
  34. How do I set forum permissions? - -

    You set forum permissions from the administration control panel -> Forums -> Permissions. This system has two modes of operation; Simple and Advanced. Simple uses a set of pre-defined authorisation levels, these set each type of authorisation setting to a specific level. Advanced settings allow you to specify individual levels for each operation in each forum. Experiment!

  35. - -
  36. How do I set user and group permissions? - -

    These are set from Admin -> Users (Groups) -> Permissions. The system may appear strange but it's very powerful. When you look up a user or group it will give you basic information (at the top of the page) followed by the available forum listing and current settings for this user. You can assign moderator status to users and groups and if you have PRIVATE forums (or forums with any of their individual operations set to PRIVATE) you can also assign access.

  37. - -
  38. How do I set a user (group) as moderator? - -

    See above

  39. - -
  40. Why are there no entries in the user (group) permission "Allow Access" column? - -

    You can only allow (or deny) users access to PRIVATE forums, or forums which have one or more operations set to PRIVATE

  41. - -
  42. How come I cannot set "Vote" to ALL?
  43. - -

    phpBB does not by default allow guest voting. This was done to prevent guest users (who cannot be reliably tracked) from voting time and time again in the same poll. There is a Mod available if you really need this feature, please see our Mod forums at http://www.phpbb.com/phpBB/.

    - -
  44. I (or my users) cannot stay logged in to the forum! - -

    If you (or your users) are, after attempting a login, being returned to the index (or other page) without appearing to be logged in the most likely problem is incorrect cookie settings. phpBB 2 uses cookies to store a session id and a small amount of user data. For this data to be stored correctly the cookie domain, path and secure settings must be correct. You can check this in Admin->General Configuration->Cookie settings. Typically the cookie domain can be left blank and the cookie path set to / (a single forward slash). Do not set the cookie as being secure unless your board is running over a secure sockets layer connection, ie. https://

    - -

    If you still have problems try setting the cookie domain to your full domain name, eg. www.mysystem.tld, www.something.mydomain.tld. You must ensure the domain name contains at least two dots or browsers will be unlikely to recognise the cookie, eg. .mydomain.com, mydomain.com. Do not add http:// or anything else to the domain name!

  45. - -
  46. My users are complaining about being logged out too quickly! - -

    You can increase the default length of sessions (ie. how long before a users session is considered 'dead') in Admin->General->Configuration->Cookie Settings->Session Length. Set it to whatever value your users feel comfortable with, remember that security issues may affect your decision (ie. having too long a session may allow non-users to abuse your board should a user forget to logout or otherwise leave a current session on a public workstation).

  47. - -
  48. I am having problems with HTML! - -

    If you want to allow your users to make use of HTML in posts you need to do two things. Firstly enable HTML in Admin -> General -> Configuration. Secondly to need to make sure that the tags your users will post are in the Allowed HTML Tags field (again Admin -> General -> Configuration). If users post using tags not on this list they won't be displayed as HTML! eg. to enable someone to post Flash you could add the embed tag to this field. Be careful which tags you allow, it is very easy to break the boards own output if the wrong tags are used in posts.

  49. - -
  50. Can I suggest a feature for phpBB 2.2? - -

    Yes you most certainly can, phpBB 2.0.0 is now feature frozen and only bug fix releases will be made from this line. However, work has already started on the next release of phpBB, phpBB 2.2. We already have a number of features in mind and these are listed on our task manager:

    - -

    http://sourceforge.net/pm/task.php?group_project_id=13524&group_id=7885&func=browse.

    - -

    Some of these features will also be discussed on forums at http://www.phpbb.com/phpBB/.

    - -

    To suggest a feature first consult the task list mentioned above, if your idea is already listed then the chances are good that it will appear in 2.2. If your suggestion is not listed please submit it to our feature request tracker:

    - -

    http://sourceforge.net/tracker/index.php?group_id=7885&atid=357885.

    - -

    Before submitting please read through the already present suggestions, if one matches or is similar to yours please add to it rather than creating a new entry.

    - -

    We make no promises to the inclusion of features but we will endeavour to introduce the most requested or most interesting ones.

  51. - -
  52. Why is phpBB 1.x faster than phpBB 2.0? - -

    The original phpBB 1.0 saw a very large decrease in page generation times from version 1.0/1.2 to 1.4. This was achieved by rewriting many of the SQL queries and splitting the database. These changes came about from work on phpBB 2.0. With phpBB 2.0 we have introduced numerous additional functions and features, not least of which is full templating (the separation of page design from code). This results in a slowdown from phpBB 1.4, we suspect though that the new features will outweigh the small difference in page generation times.

  53. - - -
  54. My question isn't answered here! - -Feel free to search our community forum for the information you require. PLEASE DO NOT post your question without having first used search, chances are someone has already asked and answered your question. You can find our board here:

    - -

    http://www.phpbb.com/phpBB/

  55. - -
- -

Copyright and disclaimer

- -

This application is opensource software released under the GPL. Please see source code and the Docs directory for more details. This package and its contents are Copyright © 2002 phpBB Group, All Rights Reserved.

- - -
- - - \ No newline at end of file diff --git a/phpBB2/docs/INSTALL.html b/phpBB2/docs/INSTALL.html deleted file mode 100644 index 5986ff4..0000000 --- a/phpBB2/docs/INSTALL.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - -phpBB 2.0.15 :: Install - - - - - - - - - -
- - - -
- - - - - - -
phpBB 2 : Creating CommunitiesphpBB 2.0.15 INSTALL
- - -

Please read this document completely before proceeding with installation.

- -

Please note these instructions are not fully comprehensive, a more thorough userguide will be available on the phpBB website in the near future. However, this document will walk you through the basics on installing the forum software.

- -

A basic overview of running phpBB 2.0.15 can be found in the accompanying README documentation. Please ensure you read that document in addition to this! For more detailed information on using phpBB 2 you should read Userguide now available online.

- -
    -
  1. Quick Install
  2. -
  3. Requirements
  4. -
  5. New Installations
  6. -
      -
    1. Changing the file extension
    2. -
    3. Replacing an old phpBB 1.x install
    4. -
    5. Installing on MySQL 3 and 4, PostgreSQL 7.x, MS SQL 7/2000 (inc. via ODBC)
    6. -
    7. Installing on MS Access 2000/XP
    8. -
    9. Entering required data
    10. -
    11. Completing installation
    12. -
    -
  7. Upgrade from phpBB 1.4.x
  8. -
  9. Upgrade from phpBB 2.0 beta-1
  10. -
  11. Upgrade from previous Release Candidate versions of phpBB 2
  12. -
      -
    1. Changes in language pack format and templates
    2. -
    -
  13. Upgrade from stable releases of phpBB 2.0.x
  14. -
      -
    1. Full package
    2. -
    3. Changed files only
    4. -
    5. Patch file
    6. -
    7. All package types
    8. -
    -
  15. Important (security related) post-Install tasks for all installation methods
  16. -
      -
    1. Uploadable avatars
    2. -
    3. Safe Mode
    4. -
    5. Optional extras
    6. -
    -
  17. Disclaimer
  18. -
- -

1. Quick Install

- -

If you have basic knowledge of using FTP and are sure your hosting service or server will run phpBB 2 you can use these steps to quickly get started. For a more detailed explanation you should skip this and go to section 2 below.

- -
    -
  1. Decompress the phpBB 2 archive to a local directory on your system.
  2. -
  3. Upload all the files contained in this archive (retaining the directory structure) to a web accessible directory on your server or hosting account. -
  4. Change the permissions on config.php to be writeable by all (666 or -rw-rw-rw- within your FTP Client)
  5. -
  6. Using your web browser visit the location you placed phpBB 2 with the addition of install/install.php, e.g. http://www.mydomain.com/phpBB2/install/install.php, http://www.mydomain.com/forum/install/install.php etc. -
  7. Fill out all the requested information and hit Submit
  8. -
  9. Change the permissions on config.php to be writeable only by yourself (644 or -rw-r--r-- within your FTP Client)
  10. -
  11. Click the Complete Installation button or revisit the location you entered above.
  12. -
  13. phpBB 2 should now be available, please MAKE SURE you read at least Section 8 below for important, security related post-installation instructions.
  14. -
- -

If you experienced problems or do not know how to proceed with any of the steps above please read the rest of this document.

- -

2. Requirements

- -

Installation of phpBB2 requires the following:

-
    -
  • A webserver or web hosting account running on any major Operating System
  • -
  • A SQL database system, one of: -
      -
    • MySQL (3.22 or higher)
    • -
    • PostgreSQL 7.0.3 or higher (preferably 7.1.x or 7.2.x)
    • -
    • MS SQL Server (7 or 2000) directly or via ODBC
    • -
    • MS Access (2000 or XP) via ODBC
    • -
    -
  • -
  • PHP (4.0.3 and above) with support for the database you intend to use above
  • -
- -

If your server or hosting account does not meet the requirements above I am afraid phpBB 2.0 is not for you.

- -

3. New Installations

- -

Installation of phpBB 2 will vary according to your server and database. If you have shell access to your account (via telnet or ssh for example) you may want to upload the entire phpBB 2 archive (in binary mode!) to a directory on your host and unarchive it there.

- -

If you do not have shell access or do not wish to use it you will need to decompress the phpBB 2 archive to a local directory on your system using your favourite compression program, e.g. winzip, rar, zip, etc. From there you must FTP ALL the files it contains (being sure to retain the directory structure and filenames) to your host. Please ensure that the cases of filenames are retained, do NOT force filenames to all lower or upper case doing so will cause errors later.

- -

All .php, .inc, .sql, .cfg and .htm files should be uploaded in ASCII mode, while all graphics should be uploaded in BINARY mode. If you are unfamiliar with what this means please refer to your FTP client documentation. In most cases this is all handled transparantly by your ftp client but if you encounter problems later you should be sure the files where uploaded correctly as described here.

- -

phpBB2 comes supplied with English as its standard language. However a number of seperate packs for different languages are available. If you are not a native English speaker you may wish to install one or more of these packages before continuing. The installation process below will allow you to select a default language from those available (you can of course change this default at a later stage). For more details of language packs, where to obtain them and how to install them please see the README.

- -

Once all the files have been uploaded to your site you should point your browser at this location with the addition of install/install.php (please note that if you changed the extension from php, see Section 3.i below, you should alter install.php appropriately). For example if your domain name is www.mydomain.tld and you placed phpBB 2 in a directory /phpBB2 off your web root you would enter http://www.mydomain.tld/phpBB2/install/install.php into your browser. When you have done this you should see the phpBB 2 Installation screen appear.

- -

3.i. Changing the file extension

- -

If the file extension used to execute PHP scripts on your server is NOT .php but for example .php3 or .phtml you should first rename ALL files ending in .php and change the value of $phpEx in extension.inc. In the vast majority of cases this step will be unncessary.

- -

3.ii. Replacing an old phpBB 1.x install

- -

NOTE, you should NOT place phpBB 2 files into the same directory as any previous installation of phpBB 1.x! Create a new directory (or move your old phpBB 1.x out of the way), failure to do this will result in runtime errors.

- -

3.iii. Installing on MySQL 3 and 4, PostgreSQL 7.x, MS SQL 7/2000 (inc. via ODBC)

- -

Before proceeding with installation you should ensure you have a database available. Most good hosting accounts now come with at least one database as part of the basic package although it may need to be setup before first use. Ask your provider for details if you are unsure whether you do or not. If you are running your own server and are unsure how to create a database you should refer to your SQL servers documentation or website, e.g. http://www.mysql.com/doc/, http://www.postgresql.org/users-lounge/, etc.

- -

If your database server is MySQL PLEASE ensure you select the appropriate version from the dropdown box. Do NOT select MySQL 4.x if you have MySQL 3.x (the most common type) installed, if in doubt select MySQL 3.x.

- -

3.iv. Installing on MS Access 2000/XP

- -

Before you install phpBB 2 you need to create a Data Source Name or DSN. The exact way to do this will depend on your hosting provider, if you are unsure you should check with them before proceeding. In general though you should create a System DSN which points to the location where you have stored an unarchived copy of the ms_access_primer.mdb file (this is contained in the ms_access_primer.zip which can be found in install/schemas/). The name you give this DSN will be used during installation. Do not proceed until this step is complete!

- -

Please note that MS Access support is not designed for busy boards. If you anticipate more than one or two users being online at any given time you should upgrade to a more robust server solution.

- -

3.v. Entering required data

- -

Once you have reached the installation page you need to fill out several fields. Be sure to select the right database type! If you do not have or do not know the database name, database server, etc. please check with your hosting provider. For non-ODBC databases the database server is typically localhost but this is NOT universal! If you are using an ODBC based database (such as MS Access or MSSQL via ODBC) you should enter the DSN here (see 2.iv.).

- -

The database prefix allows you to enter a few characters, short name, etc. which all tables used by this installation will be prefixed with. The default (phpbb_) will usually be fine. However if you have more than one copy of phpBB 2 using the same database be sure to alter it or you will receive errors during installation.

- -

The remaining information is personal to you and your site. You will need to enter a username and password for the initial administration account (more administrators can be created later). The server name, server port and script path are essential because all emails containing URLs will use these values. The installer will guess initial values, however they may not be correct so be sure to check them!

- -

Remember that a domain (or server) name does NOT include http://! Enter just the domain name, eg. www.mydomain.tld and NOT http://www.mydomain.tld/. The server port can, in the great majority of cases be left as 80, this is the standard http port. However if your web server listens to a different port because for example port 80 is blocked then alter this appropriately. The script path is the relative path from your webroot where phpBB 2 is installed, e.g. if you install phpBB 2 into phpBB 2/ in your webroot then enter phpBB 2 (or /phpBB 2/) as the script path.

- -

3.vi. Completing installation

- -

Once you have checked all the data press submit. The installation script will create and populate all the necessary tables. It will then attempt to write to the config.php file which will contain the basic configuration data used to run phpBB 2. If the installer cannot write config.php directly you will be given the option of either downloading the file or even FTPing it to the correct location. If you choose to download you should then re-upload the file to your server, overwriting the existing config.php in the process. If you attempt to FTP via the install script you should supply the requested information. Should FTP fail you will be able to download the file and then re-upload as described earlier.

- -

During the installation procedure phpBB 2 will check to ensure the relevant PHP database module is available and will not proceed if it cannot be found. Should this happen be sure to check you have selected the correct database and/or ask your hosting provider for advice.

- -

Do not proceed untill the installation is completed and (if necessary) you have uploaded the config.php file.

- -

4. Upgrade from phpBB 1.4.x

- -

Before upgrading we heavily recommend you do a full backup of your database! If you are unsure how to achieve this please ask your hosting provider for advice. One you have backed up your database you should follow the basic instructions given for New Installations above. However instead of selecting Install as the Installation Method you should select Upgrade.

- -

As with install the upgrade is automated. The config.php will be written automatically (if possible, else you will be able to download a copy as with New Installation above). Once the config.php is in place everything should proceed without error. Please note that this upgrading process may take quite some time and depending on your hosting provider this may result in it failing (due to web server or other timeout issues). If this is the case you should ask your provider if they are willing to allow the upgrade script to temporarily exceed their limits (be nice and they will probably be quite helpful).

- -

Once completed your board should be immediately available. If you encountered errors you should restore your original database and report the problems to our bug tracker or seek help via our forums (see README for details).

- -

5. Upgrade from phpBB 2.0 beta-1

- -

Sorry but no direct upgrade is available from beta-1 (we did warn you!). If you are reasonably confident with the use of SQL, etc. you may be able to make the required changes to the database manually. You will need to examine the CVS check-ins to determine what needs changing where.

- -

6. Upgrade from previous Release Candidate versions of phpBB 2

- -

Upgrading from these versions is generally quite easy. First you should make a copy of your existing config.php, keep it in a safe place! Next delete all the existing phpBB 2 files, do not leave any in place otherwise you may encounter errors later. You can leave alternative templates in-place but you should note they may not function correctly with the final release. It is therefore recommended you switch back to subSilver if you are currently using a different style. With this complete you can upload the new phpBB 2.0.0 files (see New Installations for details if necessary). Once complete copy back your saved config.php, replacing the new one.

- -

You should now run install/update_to_latest.php which, depending on your previous version, will make a number of database changes. You may receive FAILURES during this procedure, they should not be a cause for concern unless you see an actual ERROR, in which case the script will stop (in this case you should seek help via our forums or bug tracker).

- -

RC-2 and below MSSQL users, please note that during the update procedure your existing forums table will be dropped and re-created. All data in standard fields will be retained. However if you have modified the forums table and added additional fields or altered existing ones these changes WILL be lost. If this is a significant issue for you we advise you comment out the "DROP FORUM TABLE" section in update_to_latest.php and instead, manually alter the forum_id column to remove the IDENTITY setting (if it exists).

- -

Once the update_to_latest.php has completed you MUST proceed to the Administration General Configuration panel and check all the values in General Configuration. This is essential if you were running any version before RC-3 since extra information needs to be entered to enable correct URLs to be output in emails.

- -

6.i. Changes in language pack format and templates

- -

Please note that changes have been made to the format of language, image localisations and templates from previous RC's to FINAL. If you were running a release candidate prior to RC-3 you will need to download new language and image localisation packs. You can safely delete any existing *_lang.gif files in the subSilver/images directory since these are no longer utilised. If you are using or have installed any 3rd party template set you must either remove it or update it. Changes have been made to a number of template variables which will result in these not working unless they have been updated to meet phpBB 2.0.x standards.

- -

7. Upgrade from previous stable (released) versions of phpBB 2

- -

If you are currently using a stable release of phpBB 2 updating to this version is straightforward. You would have downloaded one of three packages and your choice determines what you need to do. Please Note: That before upgrading we heavily recommend you do a full backup of your database and existing phpBB2 source files! If you are unsure how to achieve this please ask your hosting provider for advice.

- -

MySQL Users Please Note: Changes introduced in 2.0.4 may increase the size of your database, more specifically the search_wordmatch table. There are other changes in that release which are designed to reduce the database size. However these additional changes may not apply to all types of forum (particularly non-English boards). While any increases will be relatively small compared to the overall database size it may be an issue for some users. In particular users on hosting plans which limit database size and where the database is near that limit.

- -

Please make sure you update your phpBB2 source files too, even if you run the update_to_latest.php file.

- -

7.i. Full package

- -

If you have downloaded the full package you should follow the same general upgrade path as for "Upgrade from previous Release Candidate versions of phpBB 2". The exception to this being the need to switch or update styles. In addition there is generally little need to visit the admin panel (though it is adviseable).

- -

7.ii. Changed files only

- -

This package contains a number of archives, each contains the files changed from a given release to the latest version. You should select the appropriate archive for your current version, e.g. if you currently have 2.0.14 you should select the phpBB-2.0.14_to_2.0.15.zip/tar.gz file.

- -

The directory structure has been preserved enabling you (if you wish) to simply upload the contents of the archive to the appropriate location on your server, i.e. simply overwrite the existing files with the new versions. Do not forget that if you have installed any Mods these files will overwrite the originals possibly destroying them in the process. You will need to re-add Mods to any affected file before uploading.

- -

As for the other upgrade procedures you should run install/update_to_latest.php after you have finished updating the files. This will update your database schema and increment the version number.

- -

7.iii. Patch file

- -

The patch file is probably the best solution for those with many Mods or other changes who do not want to re-add them back to all the changed files. To use this you will need command line access to a standard UNIX type patch application.

- -

A number of patch files are provided to allow you to upgrade from previous stable releases. Select the correct patch, e.g. if your current version is 2.0.14 you need the phpBB-2.0.14_to_2.0.15.patch. Place the correct patch in the parent directory containing the phpBB 2 core files (i.e. index.php, viewforum.php, etc.). With this done you should run the following command: patch -cl -d [PHPBB DIRECTORY] -p1 < [PATCH NAME] (where PHPBB DIRECTORY is the directory name your phpBB Installation resides in, for example phpBB2, and where PATCH NAME is the relevant filename of the selected patch file). This should complete quickly, hopefully without any HUNK FAILED comments.

- -

If you do get failures you should look at using the Changed files only package to replace the files which failed to patch, please note that you will need to manually re-add any Mods to these particular files. Alternatively if you know how you can examine the .rej files to determine what failed where and make manual adjustments to the relevant source.

- -

You should of course delete the patch file (or files) after use. As for the other upgrade procedures you should run install/update_to_latest.php after you have finished updating the files. This will update your database schema and data (if appropriate) and increment the version number.

- -

7.iv. All package types

- -

If you have non-English language packs installed you may want to see if a new version has been made available. A number of missing strings have been added which, though not essential, may be beneficial to users. Please note that at this time not all language packs have been updated so you should be prepared to periodically check for updates.

- -

8. Important (security related) post-Install tasks for all installation methods

- -

Once you have succssfully installed phpBB 2.0.x you MUST ensure you remove the entire install/ and contrib/ directories. Leaving these in place is a very serious potential security issue which may lead to deletion or alteration of files, etc. Please note that until these directories are remove phpBB2 will not operate and a warning message will be displayed. Beyond these essential deletions you may also wish to delete the docs/ directories if you wish.

- -

With these directories deleted you should proceed to the administration panel. Depending on how the installation completed you may have been directed there automatically. If not, login as the administrator you specified during install/upgrade and click the "Administration Panel" link at the bottom of any page. Ensure that details specified in General -> Configuration are correct!

- -

8.i. Uploadable avatars

- -

phpBB 2 supports several methods for allowing users to select their own avatar (an avatar is a small image generally unique to a user and displayed just below their username in posts).

- -

Two of these options allow users to upload an avatar from their machine or a remote location (via a URL). If you wish to enable this function you should first ensure the correct paths for uploadeable avatars is set in Admin -> General -> Configuration -> Avatars. By default this is images/avatars but you can set it to whatever you like, just ensure the configuration setting is updated. You must also ensure this directory can be written to by the webserver. Usually this means you have to alter its permissions to allow anyone to read and write to. Exactly how you should do this depends on your ftp client or server operating system.

- -

On UNIX systems for example you set the directory to a+rwx (or ugo+rwx or even 777). This can be done from a command line on your server using chmod or via your FTP client (using the Change Permissions, chmod or other Permissions dialoge box, see your FTP clients documentation for help). Most FTP clients list permissions in the form of User (Read, Write, Execute), Group (Read, Write, Execute) and Other (Read, Write, Execute). You need to tick all of these boxes to set correct permissions.

- -

On Windows system you need to ensure the directory is not write-protected and that it has global write permissions (see your servers documentation or contact your hosting provider if you are unsure on how to achieve this).

- -

Please be aware that setting a directories permissions to global write access is a potential security issue. While it is unlikely that anything nasty will occur (such as all the avatars being deleted) there are always people out there out to cause trouble. Therefore you should monitor this directory and if possible make regular backups.

- -

8.ii. Safe Mode

- -

phpBB 2.0.x includes support for using uploadable avatars on systems running PHP in safe mode. If this applies to your hosting service you will need to create a sub-directory called tmp in the directory you specified for storage of uploaded avatars (by default this is images/avatars as explained above). Give it the same access rights as for uploadable avatars above.

- -

This safe mode support includes compatibility with various directory restrictions your host may impose (assuming they are not too restrictive and that the PHP installed is version 4.0.3 or later). There is generally no need for any manual setup for safe mode support it is typically handled transparantly.

- -

8.iii. Optional extras

- -

Included with this package are two extra (optional) files, you will find them in the contrib/ directory. These extras, template_file_cache.php and template_db_cache.php address concerns over server load and page generation times on slower or heavily loaded systems. These updated template modules compile each template and uses this rather than compiling each file everytime it is viewed. Tests seem to indicate a noticeable decrease in page generation times and more importantly a significant decrease in overall server load in virtual hosting environments.

- -

You should see the README contained within the contrib directory for more details.

- -

9. Copyright and disclaimer

- -

This application is opensource software released under the GPL. Please see source code and the Docs directory for more details. This package and its contents are Copyright © 2002 phpBB Group, All Rights Reserved.

- - -
- - - diff --git a/phpBB2/docs/README.html b/phpBB2/docs/README.html deleted file mode 100644 index 39dfb14..0000000 --- a/phpBB2/docs/README.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - -phpBB 2.0.15 :: Readme - - - - - - - - - -
- - - -
- - - - - - -
phpBB 2 : Creating CommunitiesphpBB 2.0.15 README
- - -

Thank you for downloading phpBB 2, the long awaited re-write of the popular phpBB 1.x online community forum. This README will guide through the basics of installation and operation of phpBB 2. Please ensure you read this and the accompanying documentation fully before proceeding with the installation.

- -
    -
  1. Installing phpBB 2
  2. -
  3. Running phpBB 2
  4. -
      -
    1. Internationalisation (i18n)
    2. -
    3. Styles
    4. -
    5. Mods
    6. -
    -
  5. Getting help with phpBB 2
  6. -
      -
    1. Userguide
    2. -
    3. Community Forums
    4. -
    5. Internet Relay Chat
    6. -
    -
  7. Status of this version
  8. -
  9. Reporting Bugs
  10. -
      -
    1. Security related bugs
    2. -
    -
  11. Overview of current bug list
  12. -
  13. PHP compatibility issues
  14. -
      -
    1. Notice on PHP security issues
    2. -
    -
  15. Disclaimer
  16. -
- -

1. Installing phpBB 2

- -

Installation and upgrade instructions can be found in the INSTALL document contained in this distribution. If you are intending to upgrade from a previous phpBB 1.4.x installation we highly recommend you backup any existing data before proceeding!

- -

Please note that users of Release Candidate (RC) versions of phpBB 2 should run the update_to_latest.php script BEFORE attempting to access your board. Failing to do so may result in errors and unexpected behaviour! While these won't do any damage they will prevent you using your board.

- -

If you are using RC-1 (pre) you may find some other DB changes have occured and should examine the schemas to see if your installation requires any modifications (note that most of these have already been discussed on the phpBB 2 forums and are handled by the update script). If you are uncomfortable doing any of this we recommend you re-install (you may backup your existing data if you wish, re-install phpBB 2 and then insert your backup).

- -

Users of phpBB 2.0 Beta-1 cannot directly upgrade to phpBB 2.0 RC-2, 3 or 4, sorry.

- -

2. Running phpBB 2

- -

Once installed phpBB 2.0 is easily managed by both admin and moderator control panels. If you need help or advice with phpBB 2 please see Section 3 below.

- -

2.i. Internationalisation, i18n

- -

A number of language packs and subSilver localisations are now available. You can find them on our official download page:

- -

http://www.phpbb.com/downloads.php

- -

This is the Official location for all support language sets. If you download a package from a 3rd party site you do so with the understanding that we cannot offer support. So please, do not ask for help in these cases!

- -

Installation of these packages is straightforward, simply download the required language pack and unarchive it into the languages/ folder. Please ensure you retain the directory structure when doing this! To install the subSilver image packs you should unarchive the file/s into the templates/subSilver/images directory, again you must retain the directory structure. Once installed the languages will become immediately available.

- -

If your language is not available please visit our forums where you will find a topic listing translations currently available or in preparation. This topic also gives you information should you wish to volunteer to translate a language not currently listed

- -

Please note that users who have upgraded to the latest version from versions prior to RC-3 should will need to download new versions of the language/subSilver image packs. Any package downloaded prior to the availability of RC-3 will not function correctly with this version of phpBB 2.

- -

If you have upgraded from 2.0.0 and make use of non-English language packs you will benefit from downloading updated versions which will become available shortly. These introduce a number of strings which went missing from the first version plus a few updates and additions.

- -

2.ii. Styles

- -

Although phpBB Group are rather proud of the subSilver style (which has influenced many of our competitors boards updated designs!) we realise that it may not be to everyones tastes. Therefore phpBB 2 allows styles to be switched with relative ease. Firstly you need to locate and download a style you like. We maintain such a site at

- -

http://www.phpbb.com/styles/

- -

Please note that 3rd party styles downloaded for versions of phpBB 2 prior to its final (2.0.x) release will not function correctly. You should either remove these styles or (if available) update them to meet changes in 2.0.x.

- -

Once you have downloaded a style the usual next step is to unarchive (or upload the unarchived contents of) the package into your templates/ directory. You then need to visit Administration -> Styles -> Add, you should see the new style available, click add and it will become available for all your users.

- -

2.iii. Mods

- -

Although not officially supported by phpBB Group, phpBB 2 has a thriving mod (formerly known as hacks) scene. These third party modifications to the standard phpBB 2 extend its capabilities still further and can be found at:

- -

http://www.phpbb.com/mods

- -

Please remember that any bugs or other issues that occur after you have added any modification should NOT be reported to the bug tracker (see below). First remove the modification and see if the problem is resolved.

- -

Also remember that any modifications which modify the database in any way may render upgrading your forum to future versions more difficult unless we state otherwise. With all this said many users have and continue to utilise many of the mods already available with great success

- -

3. Getting help with phpBB 2

- -

phpBB 2 can seem a little daunting to new users in places, particularly with regard the permission system. The first thing you should do is check the FAQ which covers a few basic getting started questions. If you need additional help there are several places you should look.

- -

3.i. phpBB 2 Userguide

- -

A comprehensive userguide is now available online and can be accessed from the following location:

- -

http://www.phpbb.com/support/guide/

- -

This covers everything from installation through setting permissions and managing users.

- -

3.ii. Community Forums

- -

phpBB Group maintains a thriving community where a number of people have generously decided to donate their time to help support users. This site can be found at:

- -

http://www.phpbb.com/

- -

If you do seek help via our forums please be sure to do a Search before posting. This may well save both you and us time and allow the developer, moderator and support groups to spend more time responding to people with unknown issues and problems. Please also remember that phpBB is an entirely volunteer effort, no one receives any compensation for the time they give, this includes moderators as well as developers. So please be respectful and mindful when awaiting responses.

- -

3.iii Internet Relay Chat

- -

Another place you may find help is our IRC channel. This operates on the Freenode IRC network, irc.freenode.net and the channel is #phpbb and can be accessed by any good IRC client such as mIRC, XChat, etc. Again, please do not abuse this service and be respectful of other users.

- -

4. Status of this version

- -

This is the second stable release of phpBB 2. The 2.0.x line is essentially feature frozen, point releases will see only bugs and such like fixed. Our next major release will be phpBB 3.0 and work is progressing on this (the unstable development version is 2.1). Please do not post questions asking when 3.0 will be available, no release date has been set. phpBB 3.0 is now feature frozen, please feel free to suggest new features for phpBB 3.2 using our feature request tracker. We do not guarantee that all these will appear in 3.2 but we will do our best!:

- -

http://sourceforge.net/tracker/?atid=580201&group_id=7885&func=browse

- -

Before submitting your idea please ensure you have read through the entries in that list. If your idea is similar to an existing one please feel free to add a comment to it. Please do not submit duplicate suggestions!

- -

For some suggestions we may ask for your feedback via our forums. For those interested in the development of phpBB 3.0 you should keep an eye on the community forums (particularly the Feature Discussion forum) where you may be able to influence the direction we take with certain new features. Finally you may like to visit our development forum to see how things are progressing:

- -

http://area51.phpbb.com/phpBB/

- -

Please note that this forum should NOT be used to obtain support for or ask questions about phpBB 2.0.x, the main community forums are the place for this. Any such posts will be locked and go unanswered.

- -

5. Reporting Bugs

- -

The phpBB Group uses a bug tracking system to store, list and manage all reported bugs, it can be found at the location listed below. Please DO NOT post bug reports to our forums, they will be locked. In addition please DO NOT use the bug tracker for support requests. Posting such a request will only see you directed to the support forums (while taking time away from working on real bugs).

- -

http://www.phpbb.com/bugs/

- -

While we very much appreciate receiving bug reports (the more reports the more stable phpBB 2 will be) we ask you carry out a few steps before adding new entries:

-
    -
  • Firstly determine if your bug is reproduceable, how to determine this depends on the bug in question. Only if the bug is reproduceable is it likely to be a problem with phpBB 2.0 (or in some way connected). If something cannot be reproduced it may turn out to have been your hosting provider working on something, a user doing something silly, etc. Bug reports for non-reproduceable events can slow down our attempts to fix real, reproduceable issues

  • -
  • Next please read or search through the existing bug reports (remember to check open AND closed reports!) to see if your bug (or one very similar to it) is already listed. If it is please add to that existing bug rather than creating a new duplicate entry (all this does is slow us down).

  • -
  • Check the forums (use search!) to see if people have discussed anything that sounds similar to what you are seeing. However, as noted above please DO NOT post your particular bug to the forum unless it's non-reproduceable or you are sure it's related to something you have done rather phpBB 2.0

  • -
  • If no existing bug exists then please feel free to add it
  • -
- -

If you do post a new bug (i.e. one that isn't already listed in the bug tracker) firstly make sure you have logged in (your username and password are the same as for the community forums) then please include the following details:

-
    -
  • Your server type/version, eg. Apache 1.2.22, IIS 4, Sambar, etc.
  • -
  • PHP version and mode of operation, eg. PHP 4.1.1 as a module, PHP 4.0.1 running as CGI, etc.
  • -
  • DB type/version, eg. MySQL 3.23.32, PostgreSQL 7.1.2, MSSQL Server 2000 SP1, etc.
  • -
- -

Please also be as detailed as you can in your report, if possible list the steps required to duplicate the problem. If you have a fix which you are VERY SURE works (and is consistent with our coding guidelines) and does not introduce further problems or incompatibilities please let us know. However only include it in the bug report if you really must, if we need it we'll ask you for it.

- -

Once a bug has been submitted you will be emailed any follow up comments added to it. Please if you are requested to supply additional information, do so! It is extremely frustrating for us to receive bug reports, ask for additional information but get nothing. In these cases we have a policy of closing the bug, which may leave a very real problem in place. Obviously we would rather not have this situation arise.

- -

5.i. Security related bugs

- -

If you find a potential security related vulnerability in phpBB 2 please DO NOT post it to the bug tracker, public forums, mailing lists, etc.! Doing so may allow unscrupulous users to take advantage of it before we have time to put a fix in place. All security related bugs should be sent to our security tracker:

- -

http://www.phpbb.com/security/

- -

6. Overview of current bug list

- -

This list is not complete (see above link for full list) but does represent those bugs which may effect users on a wider scale. Other bugs listed in the tracker have typically been shown to be limited to certain setups or methods of installation/upgrade.

- -
    -
  • First four characters of some posted content disappears - this is an issue with PHP not phpBB
  • -
  • Cannot post very large messages when using PostgreSQL 7.0.x (limitation of Postgresql 7.0.x)
  • -
  • By default cannot post very large messages with MSSQL (this can be configured within MSSQL)
  • -
  • Use of non-latin charsets with MSSQL may result in post data being cropped unexpectedly
  • -
  • Upgrade may fail to complete on large boards under some hosts
  • -
  • Case-sensitivity on usernames and emails with PostgreSQL 7.x. A fix is provided by a user within our knowledge base
  • -
- -

7. PHP compatibility issues

- -

phpBB is no longer supported on PHP3 due to several compatibility issues and we recommend that you upgrade to the latest stable release of PHP4 to run phpBB.

- -

Please remember that running any application on a developmental version of PHP can lead to strange/unexpected results which may appear to be bugs in the application (which may not be true). Therefore we recommend you upgrade to the newest stable version of PHP before running phpBB 2. If you are running a developmental version of PHP please check any bugs you find on a system running a stable release before submitting.

- -

This board has been developed and tested under Linux and Windows (amongst others) running IIS and Apache using MySQL 3.23 and 4.0.0, MSSQL Server 2000, MS Access 2000 and XP and PostgreSQL 7.x. Versions of PHP used range from 4.0.6 to 4.3.8 without problem. There may be unconfirmed issues with PHP 4.0.1 including patch level releases. If you experience problems with phpBB and have this PHP version installed it is recommended you upgrade it before posting bug reports.

- -

With the recent release of the official version of PHP 5, people and hosts may be switching to the latest PHP version. At this moment, the phpBB Team does not officially support running phpBB on PHP 5, as phpBB2.0.x was not written with PHP 5 in mind. However, many users have reported using it sucessfully on PHP 5 having made a configuration change in PHP to enable support for the deprecated HTTP_*_VARS arrays which is turned off by default in new PHP 5 installations. The relevant configuration option is register_long_arrays and it is decribed in the PHP Manual. phpBB 2.0.x makes use of these arrays in order to maintain backwards compatibility with early versions of PHP 4.x which is part of the original specification.
-For this reason we do not support PHP 5 as platform for phpBB. It has been reported working, so you can try it. It's a risk you will be taking though.

- -

7.i. Notice on PHP security issues

- -

At the end of February 2002 a major security issue was found with PHP 3 and 4 which has resulted in many hosting providers disabling file uploads (although patches fixing the security issues are available and new versions of PHP 4 have been released).

- -

Because of this, and to cope with situations where hosts didn't allow such uploads anyway we have implemented various checks in phpBB 2. These checks prevent you from enabling or making use of functions which will not operate correctly on PHP as installed on your server. At this time this includes locally uploaded avatars and DB restore.

- -

Third party mods may also be effected but these are outside our control, you should contact the mod writer for more information.

- -

8. Copyright and disclaimer

- -

This application is opensource software released under the GPL. Please see source code and the Docs directory for more details. This package and its contents are Copyright © 2002 phpBB Group, All Rights Reserved.

- - -
- - - \ No newline at end of file diff --git a/phpBB2/docs/coding-guidelines.txt b/phpBB2/docs/coding-guidelines.txt deleted file mode 100644 index 700c9d0..0000000 --- a/phpBB2/docs/coding-guidelines.txt +++ /dev/null @@ -1,26 +0,0 @@ -CODING GUIDELINES : Initials by psoTFX (July 2001) ------------------ - -* The coding style is defined in the codingstandards.html file, all attempts should be made to follow it as closely as possible - -* All SQL should be cross-DB compatible, if DB specific SQL is used alternatives must be provided which work on all supported DB's (MySQL, MSSQL (7.0 and 2000), PostgreSQL (7.0+), Oracle8, ODBC (generalised if possible, otherwise MS Access, DB2)) - -* All SQL commands should utilise the DataBase Abstraction Layer (DBAL) - -* All URL's (and form actions) _must_ be wrapped in append_sid, this ensures the session_id is propagated when cookies aren't available - -* The minimum amount of data should be passed via GET or POST, checking should occur within individual scripts (to prevent spoofing of information) - -* The auth function should be used for all authorisation checking - -* Sessions should be initiated on each page, as near the top as possible using the session_pagestart function (userdata should be obtained by calling the init_userprefs immediately after session initialisation) - -* Login checks should be forwarded to the login page (supplying a page to forward onto once check is complete if required) - -* All template variables should be named appropriately (using underscores for spaces), language entries should be prefixed with L_, system data with S_, urls with U_, all other variables should be presented 'as is'. - -* Functions used by more than page should be placed in functions.php, functions specific to one page should be placed on that page (at the top to maintain compatibility with PHP3) surrounded by comments indicating the start and end of the function block - -* All messages/errors should be output by the message_die function using the appropriate message type (see function for details) - -* No attempt should be made to remove any copyright information (either contained within the source or displayed interactively when the source is run/compiled), neither should the copyright information be altered in any way (it may be added to) diff --git a/phpBB2/docs/codingstandards.htm b/phpBB2/docs/codingstandards.htm deleted file mode 100644 index 2952c0c..0000000 --- a/phpBB2/docs/codingstandards.htm +++ /dev/null @@ -1,327 +0,0 @@ - - -phpBB Coding Standard Guidelines - - - -

phpBB Coding Standard Guidelines

Comments or suggestions? email nate@phpbb.com

Editor -Settings
Naming -Conventions
Code Layout
General -Guidelines


top -

Editor Settings

-

Tabs vs Spaces: In order to make this as simple as possible, we will -be using tabs, not spaces. Feel free to set how many spaces your editor uses -when it displays tabs, but make sure that when you save the file, -it's saving tabs and not spaces. This way, we can each have the code be -displayed the way we like it, without breaking the layout of the actual files. -

-

Linefeeds: Ensure that your editor is saving files in the UNIX format. -This means lines are terminated with a newline, not with a CR/LF combo as they -are on Win32, or whatever the Mac uses. Any decent Win32 editor should be able -to do this, but it might not always be the default. Know your editor. If you -want advice on Windows text editors, just ask one of the developers. Some of -them do their editing on Win32.



top -

Naming Conventions

-

We will not be using any form of hungarian notation in our naming -conventions. Many of us believe that hungarian naming is one of the primary code -obfuscation techniques currently in use.

-

Variable Names: Variable names should be in all lowercase, with words -separated by an underscore.

    Example: $current_user is right, but $currentuser and $currentUser are not.

Names should be descriptive, -but concise. We don't want huge sentences as our variable names, but typing an -extra couple of characters is always better than wondering what exactly a -certain variable is for.

-

Loop Indices: The only situation where a one-character variable -name is allowed is when it's the index for some looping construct. In this case, -the index of the outer loop should always be $i. If there's a loop inside that -loop, its index should be $j, followed by $k, and so on. If the loop is being -indexed by some already-existing variable with a meaningful name, this guideline -does not apply.

    Example:


-		for ($i = 0; $i < $outer_size; $i++) 
-		{
-		   for ($j = 0; $j < $inner_size; $j++) 
-		   {
-		      foo($i, $j);
-		   }
-		} 
-

-

Function Names: Functions should also be named descriptively. We're -not programming in C here, we don't want to write functions called things like -"stristr()". Again, all lower-case names with words separated by a single -underscore character. Function names should preferably have a verb in them -somewhere. Good function names are print_login_status(), get_user_data(), etc..

-

Function Arguments: Arguments are subject to the same guidelines as -variable names. We don't want a bunch of functions like: do_stuff($a, $b, $c). In most cases, we'd like to be able -to tell how to use a function by just looking at its declaration.

-

Summary: The basic philosophy here is to not hurt code clarity for the -sake of laziness. This has to be balanced by a little bit of common sense, -though; print_login_status_for_a_given_user() -goes too far, for example -- that function would be better named print_user_login_status() , or just print_login_status().



top -

Code Layout

-

Standard header for new files: Here a template of the header that must -be included at the start of all phpBB files:


-		/***************************************************************************
-		                                filename.php
-		                             -------------------
-		    begin                : Sat June 17 2000
-		    copyright            : (C) 2000 The phpBB Group
-		    email                : support@phpBB.com
-		
-		    $Id: codingstandards.htm,v 1.3 2001/06/09 21:00:12 natec Exp $
-		
-		 ***************************************************************************/
-		
-		/***************************************************************************
-		 *                                         				                                
-		 *   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 2 of the License, or	    	
-		 *   (at your option) any later version.
-		 *
-		 ***************************************************************************/
-	
-

-

Always include the braces: This is another case of being too lazy to -type 2 extra characters causing problems with code clarity. Even if the body of -some construct is only one line long, do not drop the braces. Just don't. -

   Examples:


-		/* These are all wrong. */
-		if (condition)	do_stuff();
-		if (condition)
-			do_stuff();
-		while (condition) 
-			do_stuff();
-		for ($i = 0; $i < size; $i++)
-			do_stuff($i);
-		
-		/* These are right. */
-		if (condition) 
-		{
-			do_stuff();
-		}
-		while (condition) 
-		{
-			do_stuff();
-		}
-		for ($i = 0; $i < size; $i++) 
-		{
-			do_stuff();
-		}
-	
-

-

Where to put the braces: This one is a bit of a holy war, but we're -going to use a style that can be summed up in one sentence: Braces always go on -their own line. The closing brace should also always be at the same column as -the corresponding opening brace.

   Examples:


-		if (condition) 
-		{
-			while (condition2)
-			{
-				...
-			}
-		}
-		else 
-		{
-			...
-		}
-
-		for ($i = 0; $i < $size; $i++) 
-		{
-			...
-		}
-		
-		while (condition) 
-		{
-			...
-		}
-		
-		function do_stuff() 
-		{
-			...
-		}
-	
-

-

Use spaces between tokens: This is another simple, easy step that -helps keep code readable without much effort. Whenever you write an assignment, -expression, etc.. Always leave one space between the tokens. Basically, -write code as if it was English. Put spaces between variable names and -operators. Don't put spaces just after an opening bracket or before a closing -bracket. Don't put spaces just before a comma or a semicolon. This is best shown -with a few examples.

   Examples:


-		/* Each pair shows the wrong way followed by the right way. */
-		
-		$i=0;
-		$i = 0;
-		
-		if($i<7) ...
-		if ($i < 7) ...
-		
-		if ( ($i < 7)&&($j > 8) ) ...
-		if (($i < 7) && ($j > 8)) ...
-		
-		do_stuff( $i, "foo", $b );
-		do_stuff($i, "foo", $b);
-		
-		for($i=0; $i<$size; $i++) ...
-		for($i = 0; $i < $size; $i++) ... 
-		
-		$i=($j < $size)?0:1;
-		$i = ($j < $size) ? 0 : 1;
-	
-

-

Operator precedence: Do you know the exact precedence of all the -operators in PHP? Neither do I. Don't guess. Always make it obvious by using -brackets to force the precedence of an equation so you know what it does. -

   Examples:


-		/* what's the result? who knows. */
-		$bool = ($i < 7 && $j > 8 || $k == 4);
-		
-		/* now you can be certain what I'm doing here. */
-		$bool = (($i < 7) && (($j < 8) || ($k == 4)))
-		
-

-

SQL code layout: Since we'll all be using different editor settings, -don't try to do anything complex like aligning columns in SQL code. Do, however, -break statements onto their own lines. Here's a sample of how SQL code should -look. Note where the lines break, the capitalization, and the use of brackets. -

   Examples:


-		SELECT field1 AS something, field2, field3
-		FROM table a, table b
-		WHERE (this = that) AND (this2 = that2)
-		
-

-

SQL insert statements: SQL INSERT statements can be written in two -different ways. Either you specify explicitly the columns being inserted, or -you rely on knowing the order of the columns in the database and do not -specify them. We want to use the former approach, where it is explicitly -stated whcih columns are being inserted. This means our application-level code -will not depend on the order of the fields in the database, and will not be broken -if we add additional fields (unless they're specified as NOT NULL, of course). -

   Examples:


-		# This is not what we want.
-		INSERT INTO mytable
-		VALUES ('something', 1, 'else')
-		
-		# This is correct.
-		INSERT INTO mytable (column1, column2, column3)
-		VALUES ('something', 1, 'else')
-		
-



top -

General Guidelines

-

Quoting strings: There are two different ways to quote strings in PHP -- either with single quotes or with double quotes. The main difference is that -the parser does variable interpolation in double-quoted strings, but not in -single quoted strings. Because of this, you should always use single -quotes unless you specifically need variable interpolation to be done on -that string. This way, we can save the parser the trouble of parsing a bunch of -strings where no interpolation needs to be done. Also, if you are using a string -variable as part of a function call, you do not need to enclose that variable in -quotes. Again, this will just make unnecessary work for the parser. Note, -however, that nearly all of the escape sequences that exist for double-quoted -strings will not work with single-quoted strings. Be careful, and feel free to -break this guideline if it's making your code harder to read. -

   Examples:


-		/* wrong */
-		$str = "This is a really long string with no variables for the parser to find.";
-		do_stuff("$str");
-		
-		/* right */
-		$str = 'This is a really long string with no variables for the parser to find.';
-		do_stuff($str);
-		
-

-

Associative array keys: In PHP, it's legal to use a literal string as -a key to an associative array without quoting that string. We don't want to do -this -- the string should always be quoted to avoid confusion. Note that this is -only when we're using a literal, not when we're using a variable. -

   Examples:


-		/* wrong */
-		$foo = $assoc_array[blah];
-		
-		/* right */
-		$foo = $assoc_array['blah'];
-		
-

-

Comments: Each function should be preceded by a comment that tells a -programmer everything they need to know to use that function. The meaning of -every parameter, the expected input, and the output are required as a minimal -comment. The function's behaviour in error conditions (and what those error -conditions are) should also be present. Nobody should have to look at the actual -source of a function in order to be able to call it with confidence in their own -code.

In addition, commenting any tricky, obscure, or otherwise -not-immediately-obvious code is clearly something we should be doing. Especially -important to document are any assumptions your code makes, or preconditions for -its proper operation. Any one of the developers should be able to look at any -part of the application and figure out what's going on in a reasonable amount of -time.

-

Magic numbers: Don't use them. Use named constants for any literal -value other than obvious special cases. Basically, it's OK to check if an array -has 0 elements by using the literal 0. It's not OK to assign some special -meaning to a number and then use it everywhere as a literal. This hurts -readability AND maintainability. Included in this guideline is that we should be -using the constants TRUE and FALSE in place of the literals 1 and 0 -- even -though they have the same values, it's more obvious what the actual logic is -when you use the named constants.

-

Shortcut operators: The only shortcut operators that cause readability -problems are the shortcut increment ($i++) and decrement ($j--) operators. These -operators should not be used as part of an expression. They can, however, be -used on their own line. Using them in expressions is just not worth the -headaches when debugging.

   Examples:


-		/* wrong */
-		$array[++$i] = $j;
-		$array[$i++] = $k;
-		
-		
-		/* right */
-		$i++;
-		$array[$i] = $j;
-		
-		$array[$i] = $k;
-		$i++;
-		
-

-

Inline conditionals: Inline conditionals should only be used to do -very simple things. Preferably, they will only be used to do assignments, and -not for function calls or anything complex at all. They can be harmful to -readability if used incorrectly, so don't fall in love with saving typing by -using them.

   Examples:


-		/* Bad place to use them */
-		(($i < $size) && ($j > $size)) ? do_stuff($foo) : do_stuff($bar);
-		
-		
-		/* OK place to use them */
-		$min = ($i < $j) ? $i : $j;
-		
-

-

Don't use uninitialized variables. for phpBB 2, we intend to use a -higher level of run-time error reporting. This will mean that the use of an -uninitialized variable will be reported as an error. This will come up most -often when checking which HTML form variables were passed. These errors can be -avoided by using the built-in isset() function to check whether a variable has -been set.

   Examples:


-		/* Old way */
-		if ($forum) ...
-		
-		
-		/* New way */
-		if (isset($forum)) ...
-		
-



Return -to top
diff --git a/phpBB2/extension.inc b/phpBB2/extension.inc deleted file mode 100644 index 46a742f..0000000 --- a/phpBB2/extension.inc +++ /dev/null @@ -1,26 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2/faq.php b/phpBB2/faq.php deleted file mode 100644 index bc760a7..0000000 --- a/phpBB2/faq.php +++ /dev/null @@ -1,150 +0,0 @@ -set_filenames(array( - 'body' => 'faq_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$template->assign_vars(array( - 'L_FAQ_TITLE' => $l_title, - 'L_BACK_TO_TOP' => $lang['Back_to_top']) -); - -for($i = 0; $i < count($faq_block); $i++) -{ - if( count($faq_block[$i]) ) - { - $template->assign_block_vars('faq_block', array( - 'BLOCK_TITLE' => $faq_block_titles[$i]) - ); - $template->assign_block_vars('faq_block_link', array( - 'BLOCK_TITLE' => $faq_block_titles[$i]) - ); - - for($j = 0; $j < count($faq_block[$i]); $j++) - { - $row_color = ( !($j % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($j % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('faq_block.faq_row', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'FAQ_QUESTION' => $faq_block[$i][$j]['question'], - 'FAQ_ANSWER' => $faq_block[$i][$j]['answer'], - - 'U_FAQ_ID' => $faq_block[$i][$j]['id']) - ); - - $template->assign_block_vars('faq_block_link.faq_row_link', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'FAQ_LINK' => $faq_block[$i][$j]['question'], - - 'U_FAQ_LINK' => '#' . $faq_block[$i][$j]['id']) - ); - } - } -} - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/groupcp.php b/phpBB2/groupcp.php deleted file mode 100644 index a513a57..0000000 --- a/phpBB2/groupcp.php +++ /dev/null @@ -1,1284 +0,0 @@ -' : ''; - break; - case USER_AVATAR_REMOTE: - $poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '' : ''; - break; - case USER_AVATAR_GALLERY: - $poster_avatar = ( $board_config['allow_avatar_local'] ) ? '' : ''; - break; - } - } - - if ( !empty($row['user_viewemail']) || $group_mod ) - { - $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $row['user_id']) : 'mailto:' . $row['user_email']; - - $email_img = '' . $lang['Send_email'] . ''; - $email = '' . $lang['Send_email'] . ''; - } - else - { - $email_img = ' '; - $email = ' '; - } - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']); - $profile_img = '' . $lang['Read_profile'] . ''; - $profile = '' . $lang['Read_profile'] . ''; - - $temp_url = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=" . $row['user_id']); - $pm_img = '' . $lang['Send_private_message'] . ''; - $pm = '' . $lang['Send_private_message'] . ''; - - $www_img = ( $row['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - $www = ( $row['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - - if ( !empty($row['user_icq']) ) - { - $icq_status_img = ''; - $icq_img = '' . $lang['ICQ'] . ''; - $icq = '' . $lang['ICQ'] . ''; - } - else - { - $icq_status_img = ''; - $icq_img = ''; - $icq = ''; - } - - $aim_img = ( $row['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - $aim = ( $row['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']); - $msn_img = ( $row['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - $msn = ( $row['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - - $yim_img = ( $row['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - $yim = ( $row['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - - $temp_url = append_sid("search.$phpEx?search_author=" . urlencode($row['username']) . "&showresults=posts"); - $search_img = '' . sprintf($lang['Search_user_posts'], $row['username']) . ''; - $search = '' . sprintf($lang['Search_user_posts'], $row['username']) . ''; - - return; -} -// -// -------------------------- - -// -// Start session management -// -$userdata = session_pagestart($user_ip, PAGE_GROUPCP); -init_userprefs($userdata); -// -// End session management -// - -$script_name = preg_replace('/^\/?(.*?)\/?$/', "\\1", trim($board_config['script_path'])); -$script_name = ( $script_name != '' ) ? $script_name . '/groupcp.'.$phpEx : 'groupcp.'.$phpEx; -$server_name = trim($board_config['server_name']); -$server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://'; -$server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/'; - -$server_url = $server_protocol . $server_name . $server_port . $script_name; - -if ( isset($HTTP_GET_VARS[POST_GROUPS_URL]) || isset($HTTP_POST_VARS[POST_GROUPS_URL]) ) -{ - $group_id = ( isset($HTTP_POST_VARS[POST_GROUPS_URL]) ) ? intval($HTTP_POST_VARS[POST_GROUPS_URL]) : intval($HTTP_GET_VARS[POST_GROUPS_URL]); -} -else -{ - $group_id = ''; -} - -if ( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) ) -{ - $mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; - $mode = htmlspecialchars($mode); -} -else -{ - $mode = ''; -} - -$confirm = ( isset($HTTP_POST_VARS['confirm']) ) ? TRUE : 0; -$cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? TRUE : 0; - -$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0; -$start = ($start < 0) ? 0 : $start; - -// -// Default var values -// -$is_moderator = FALSE; - -if ( isset($HTTP_POST_VARS['groupstatus']) && $group_id ) -{ - if ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); - } - - $sql = "SELECT group_moderator - FROM " . GROUPS_TABLE . " - WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user and group information', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - - if ( $row['group_moderator'] != $userdata['user_id'] && $userdata['user_level'] != ADMIN ) - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Not_group_moderator'] . '

' . sprintf($lang['Click_return_group'], '', '') . '

' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - - $sql = "UPDATE " . GROUPS_TABLE . " - SET group_type = " . intval($HTTP_POST_VARS['group_type']) . " - WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user and group information', '', __LINE__, __FILE__, $sql); - } - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Group_type_updated'] . '

' . sprintf($lang['Click_return_group'], '', '') . '

' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - -} -else if ( isset($HTTP_POST_VARS['joingroup']) && $group_id ) -{ - // - // First, joining a group - // If the user isn't logged in redirect them to login - // - if ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); - } - - $sql = "SELECT ug.user_id, g.group_type - FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g - WHERE g.group_id = $group_id - AND g.group_type <> " . GROUP_HIDDEN . " - AND ug.group_id = g.group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user and group information', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - if ( $row['group_type'] == GROUP_OPEN ) - { - do - { - if ( $userdata['user_id'] == $row['user_id'] ) - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Already_member_group'] . '

' . sprintf($lang['Click_return_group'], '', '') . '

' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - } while ( $row = $db->sql_fetchrow($result) ); - } - else - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['This_closed_group'] . '

' . sprintf($lang['Click_return_group'], '', '') . '

' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_groups_exist']); - } - - $sql = "INSERT INTO " . USER_GROUP_TABLE . " (group_id, user_id, user_pending) - VALUES ($group_id, " . $userdata['user_id'] . ", 1)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Error inserting user group subscription", "", __LINE__, __FILE__, $sql); - } - - $sql = "SELECT u.user_email, u.username, u.user_lang, g.group_name - FROM ".USERS_TABLE . " u, " . GROUPS_TABLE . " g - WHERE u.user_id = g.group_moderator - AND g.group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Error getting group moderator data", "", __LINE__, __FILE__, $sql); - } - - $moderator = $db->sql_fetchrow($result); - - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->use_template('group_request', $moderator['user_lang']); - $emailer->email_address($moderator['user_email']); - $emailer->set_subject($lang['Group_request']); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'GROUP_MODERATOR' => $moderator['username'], - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
', "\n", "-- \n" . $board_config['board_email_sig']) : '', - - 'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . "=$group_id&validate=true") - ); - $emailer->send(); - $emailer->reset(); - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Group_joined'] . '

' . sprintf($lang['Click_return_group'], '', '') . '

' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); -} -else if ( isset($HTTP_POST_VARS['unsub']) || isset($HTTP_POST_VARS['unsubpending']) && $group_id ) -{ - // - // Second, unsubscribing from a group - // Check for confirmation of unsub. - // - if ( $cancel ) - { - redirect(append_sid("groupcp.$phpEx", true)); - } - elseif ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); - } - - if ( $confirm ) - { - $sql = "DELETE FROM " . USER_GROUP_TABLE . " - WHERE user_id = " . $userdata['user_id'] . " - AND group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not delete group memebership data', '', __LINE__, __FILE__, $sql); - } - - if ( $userdata['user_level'] != ADMIN && $userdata['user_level'] == MOD ) - { - $sql = "SELECT COUNT(auth_mod) AS is_auth_mod - FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug - WHERE ug.user_id = " . $userdata['user_id'] . " - AND aa.group_id = ug.group_id - AND aa.auth_mod = 1"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain moderator status', '', __LINE__, __FILE__, $sql); - } - - if ( !($row = $db->sql_fetchrow($result)) || $row['is_auth_mod'] == 0 ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . USER . " - WHERE user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql); - } - } - } - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Unsub_success'] . '

' . sprintf($lang['Click_return_group'], '', '') . '

' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - $unsub_msg = ( isset($HTTP_POST_VARS['unsub']) ) ? $lang['Confirm_unsub'] : $lang['Confirm_unsub_pending']; - - $s_hidden_fields = ''; - - $page_title = $lang['Group_Control_Panel']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'confirm' => 'confirm_body.tpl') - ); - - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Confirm'], - 'MESSAGE_TEXT' => $unsub_msg, - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - 'S_CONFIRM_ACTION' => append_sid("groupcp.$phpEx"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); - - $template->pparse('confirm'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } - -} -else if ( $group_id ) -{ - // - // Did the group moderator get here through an email? - // If so, check to see if they are logged in. - // - if ( isset($HTTP_GET_VARS['validate']) ) - { - if ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); - } - } - - // - // For security, get the ID of the group moderator. - // - switch(SQL_LAYER) - { - case 'postgresql': - $sql = "SELECT g.group_moderator, g.group_type, aa.auth_mod - FROM " . GROUPS_TABLE . " g, " . AUTH_ACCESS_TABLE . " aa - WHERE g.group_id = $group_id - AND aa.group_id = g.group_id - UNION ( - SELECT g.group_moderator, g.group_type, NULL - FROM " . GROUPS_TABLE . " g - WHERE g.group_id = $group_id - AND NOT EXISTS ( - SELECT aa.group_id - FROM " . AUTH_ACCESS_TABLE . " aa - WHERE aa.group_id = g.group_id - ) - ) - ORDER BY aa.auth_mod DESC"; - break; - - case 'oracle': - $sql = "SELECT g.group_moderator, g.group_type, aa.auth_mod - FROM " . GROUPS_TABLE . " g, " . AUTH_ACCESS_TABLE . " aa - WHERE g.group_id = $group_id - AND aa.group_id (+) = g.group_id - ORDER BY aa.auth_mod DESC"; - break; - - default: - $sql = "SELECT g.group_moderator, g.group_type, aa.auth_mod - FROM ( " . GROUPS_TABLE . " g - LEFT JOIN " . AUTH_ACCESS_TABLE . " aa ON aa.group_id = g.group_id ) - WHERE g.group_id = $group_id - ORDER BY aa.auth_mod DESC"; - break; - } - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get moderator information', '', __LINE__, __FILE__, $sql); - } - - if ( $group_info = $db->sql_fetchrow($result) ) - { - $group_moderator = $group_info['group_moderator']; - - if ( $group_moderator == $userdata['user_id'] || $userdata['user_level'] == ADMIN ) - { - $is_moderator = TRUE; - } - - // - // Handle Additions, removals, approvals and denials - // - if ( !empty($HTTP_POST_VARS['add']) || !empty($HTTP_POST_VARS['remove']) || isset($HTTP_POST_VARS['approve']) || isset($HTTP_POST_VARS['deny']) ) - { - if ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); - } - - if ( !$is_moderator ) - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Not_group_moderator'] . '

' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - - if ( isset($HTTP_POST_VARS['add']) ) - { - $username = ( isset($HTTP_POST_VARS['username']) ) ? phpbb_clean_username($HTTP_POST_VARS['username']) : ''; - - $sql = "SELECT user_id, user_email, user_lang, user_level - FROM " . USERS_TABLE . " - WHERE username = '" . str_replace("\'", "''", $username) . "'"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not get user information", $lang['Error'], __LINE__, __FILE__, $sql); - } - - if ( !($row = $db->sql_fetchrow($result)) ) - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Could_not_add_user'] . "

" . sprintf($lang['Click_return_group'], "", "") . "

" . sprintf($lang['Click_return_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - - if ( $row['user_id'] == ANONYMOUS ) - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Could_not_anon_user'] . '

' . sprintf($lang['Click_return_group'], '', '') . '

' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - - $sql = "SELECT ug.user_id, u.user_level - FROM " . USER_GROUP_TABLE . " ug, " . USERS_TABLE . " u - WHERE u.user_id = " . $row['user_id'] . " - AND ug.user_id = u.user_id - AND ug.group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get user information', '', __LINE__, __FILE__, $sql); - } - - if ( !($db->sql_fetchrow($result)) ) - { - $sql = "INSERT INTO " . USER_GROUP_TABLE . " (user_id, group_id, user_pending) - VALUES (" . $row['user_id'] . ", $group_id, 0)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not add user to group', '', __LINE__, __FILE__, $sql); - } - - if ( $row['user_level'] != ADMIN && $row['user_level'] != MOD && $group_info['auth_mod'] ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . MOD . " - WHERE user_id = " . $row['user_id']; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql); - } - } - - // - // Get the group name - // Email the user and tell them they're in the group - // - $group_sql = "SELECT group_name - FROM " . GROUPS_TABLE . " - WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($group_sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get group information', '', __LINE__, __FILE__, $group_sql); - } - - $group_name_row = $db->sql_fetchrow($result); - - $group_name = $group_name_row['group_name']; - - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->use_template('group_added', $row['user_lang']); - $emailer->email_address($row['user_email']); - $emailer->set_subject($lang['Group_added']); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'GROUP_NAME' => $group_name, - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
', "\n", "-- \n" . $board_config['board_email_sig']) : '', - - 'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . "=$group_id") - ); - $emailer->send(); - $emailer->reset(); - } - else - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['User_is_member_group'] . '

' . sprintf($lang['Click_return_group'], '', '') . '

' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - } - else - { - if ( ( ( isset($HTTP_POST_VARS['approve']) || isset($HTTP_POST_VARS['deny']) ) && isset($HTTP_POST_VARS['pending_members']) ) || ( isset($HTTP_POST_VARS['remove']) && isset($HTTP_POST_VARS['members']) ) ) - { - - $members = ( isset($HTTP_POST_VARS['approve']) || isset($HTTP_POST_VARS['deny']) ) ? $HTTP_POST_VARS['pending_members'] : $HTTP_POST_VARS['members']; - - $sql_in = ''; - for($i = 0; $i < count($members); $i++) - { - $sql_in .= ( ( $sql_in != '' ) ? ', ' : '' ) . intval($members[$i]); - } - - if ( isset($HTTP_POST_VARS['approve']) ) - { - if ( $group_info['auth_mod'] ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . MOD . " - WHERE user_id IN ($sql_in) - AND user_level NOT IN (" . MOD . ", " . ADMIN . ")"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql); - } - } - - $sql = "UPDATE " . USER_GROUP_TABLE . " - SET user_pending = 0 - WHERE user_id IN ($sql_in) - AND group_id = $group_id"; - $sql_select = "SELECT user_email - FROM ". USERS_TABLE . " - WHERE user_id IN ($sql_in)"; - } - else if ( isset($HTTP_POST_VARS['deny']) || isset($HTTP_POST_VARS['remove']) ) - { - if ( $group_info['auth_mod'] ) - { - $sql = "SELECT ug.user_id, ug.group_id - FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug - WHERE ug.user_id IN ($sql_in) - AND aa.group_id = ug.group_id - AND aa.auth_mod = 1 - GROUP BY ug.user_id, ug.group_id - ORDER BY ug.user_id, ug.group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain moderator status', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $group_check = array(); - $remove_mod_sql = ''; - - do - { - $group_check[$row['user_id']][] = $row['group_id']; - } - while ( $row = $db->sql_fetchrow($result) ); - - while( list($user_id, $group_list) = @each($group_check) ) - { - if ( count($group_list) == 1 ) - { - $remove_mod_sql .= ( ( $remove_mod_sql != '' ) ? ', ' : '' ) . $user_id; - } - } - - if ( $remove_mod_sql != '' ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . USER . " - WHERE user_id IN ($remove_mod_sql) - AND user_level NOT IN (" . ADMIN . ")"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql); - } - } - } - } - - $sql = "DELETE FROM " . USER_GROUP_TABLE . " - WHERE user_id IN ($sql_in) - AND group_id = $group_id"; - } - - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update user group table', '', __LINE__, __FILE__, $sql); - } - - // - // Email users when they are approved - // - if ( isset($HTTP_POST_VARS['approve']) ) - { - if ( !($result = $db->sql_query($sql_select)) ) - { - message_die(GENERAL_ERROR, 'Could not get user email information', '', __LINE__, __FILE__, $sql); - } - - $bcc_list = array(); - while ($row = $db->sql_fetchrow($result)) - { - $bcc_list[] = $row['user_email']; - } - - // - // Get the group name - // - $group_sql = "SELECT group_name - FROM " . GROUPS_TABLE . " - WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($group_sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get group information', '', __LINE__, __FILE__, $group_sql); - } - - $group_name_row = $db->sql_fetchrow($result); - $group_name = $group_name_row['group_name']; - - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - for ($i = 0; $i < count($bcc_list); $i++) - { - $emailer->bcc($bcc_list[$i]); - } - - $emailer->use_template('group_approved'); - $emailer->set_subject($lang['Group_approved']); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'GROUP_NAME' => $group_name, - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
', "\n", "-- \n" . $board_config['board_email_sig']) : '', - - 'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . "=$group_id") - ); - $emailer->send(); - $emailer->reset(); - } - } - } - } - // - // END approve or deny - // - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_groups_exist']); - } - - // - // Get group details - // - $sql = "SELECT * - FROM " . GROUPS_TABLE . " - WHERE group_id = $group_id - AND group_single_user = 0"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql); - } - - if ( !($group_info = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_MESSAGE, $lang['Group_not_exist']); - } - - // - // Get moderator details for this group - // - $sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm - FROM " . USERS_TABLE . " - WHERE user_id = " . $group_info['group_moderator']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting user list for group', '', __LINE__, __FILE__, $sql); - } - - $group_moderator = $db->sql_fetchrow($result); - - // - // Get user information for this group - // - $sql = "SELECT u.username, u.user_id, u.user_viewemail, u.user_posts, u.user_regdate, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_msnm, ug.user_pending - FROM " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " ug - WHERE ug.group_id = $group_id - AND u.user_id = ug.user_id - AND ug.user_pending = 0 - AND ug.user_id <> " . $group_moderator['user_id'] . " - ORDER BY u.username"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting user list for group', '', __LINE__, __FILE__, $sql); - } - - $group_members = $db->sql_fetchrowset($result); - $members_count = count($group_members); - $db->sql_freeresult($result); - - $sql = "SELECT u.username, u.user_id, u.user_viewemail, u.user_posts, u.user_regdate, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_msnm - FROM " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug, " . USERS_TABLE . " u - WHERE ug.group_id = $group_id - AND g.group_id = ug.group_id - AND ug.user_pending = 1 - AND u.user_id = ug.user_id - ORDER BY u.username"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting user pending information', '', __LINE__, __FILE__, $sql); - } - - $modgroup_pending_list = $db->sql_fetchrowset($result); - $modgroup_pending_count = count($modgroup_pending_list); - $db->sql_freeresult($result); - - $is_group_member = 0; - if ( $members_count ) - { - for($i = 0; $i < $members_count; $i++) - { - if ( $group_members[$i]['user_id'] == $userdata['user_id'] && $userdata['session_logged_in'] ) - { - $is_group_member = TRUE; - } - } - } - - $is_group_pending_member = 0; - if ( $modgroup_pending_count ) - { - for($i = 0; $i < $modgroup_pending_count; $i++) - { - if ( $modgroup_pending_list[$i]['user_id'] == $userdata['user_id'] && $userdata['session_logged_in'] ) - { - $is_group_pending_member = TRUE; - } - } - } - - if ( $userdata['user_level'] == ADMIN ) - { - $is_moderator = TRUE; - } - - if ( $userdata['user_id'] == $group_info['group_moderator'] ) - { - $is_moderator = TRUE; - - $group_details = $lang['Are_group_moderator']; - - $s_hidden_fields = ''; - } - else if ( $is_group_member || $is_group_pending_member ) - { - $template->assign_block_vars('switch_unsubscribe_group_input', array()); - - $group_details = ( $is_group_pending_member ) ? $lang['Pending_this_group'] : $lang['Member_this_group']; - - $s_hidden_fields = ''; - } - else if ( $userdata['user_id'] == ANONYMOUS ) - { - $group_details = $lang['Login_to_join']; - $s_hidden_fields = ''; - } - else - { - if ( $group_info['group_type'] == GROUP_OPEN ) - { - $template->assign_block_vars('switch_subscribe_group_input', array()); - - $group_details = $lang['This_open_group']; - $s_hidden_fields = ''; - } - else if ( $group_info['group_type'] == GROUP_CLOSED ) - { - $group_details = $lang['This_closed_group']; - $s_hidden_fields = ''; - } - else if ( $group_info['group_type'] == GROUP_HIDDEN ) - { - $group_details = $lang['This_hidden_group']; - $s_hidden_fields = ''; - } - } - - $page_title = $lang['Group_Control_Panel']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - // - // Load templates - // - $template->set_filenames(array( - 'info' => 'groupcp_info_body.tpl', - 'pendinginfo' => 'groupcp_pending_info.tpl') - ); - make_jumpbox('viewforum.'.$phpEx); - - // - // Add the moderator - // - $username = $group_moderator['username']; - $user_id = $group_moderator['user_id']; - - generate_user_info($group_moderator, $board_config['default_dateformat'], $is_moderator, $from, $posts, $joined, $poster_avatar, $profile_img, $profile, $search_img, $search, $pm_img, $pm, $email_img, $email, $www_img, $www, $icq_status_img, $icq_img, $icq, $aim_img, $aim, $msn_img, $msn, $yim_img, $yim); - - $s_hidden_fields .= ''; - - $template->assign_vars(array( - 'L_GROUP_INFORMATION' => $lang['Group_Information'], - 'L_GROUP_NAME' => $lang['Group_name'], - 'L_GROUP_DESC' => $lang['Group_description'], - 'L_GROUP_TYPE' => $lang['Group_type'], - 'L_GROUP_MEMBERSHIP' => $lang['Group_membership'], - 'L_SUBSCRIBE' => $lang['Subscribe'], - 'L_UNSUBSCRIBE' => $lang['Unsubscribe'], - 'L_JOIN_GROUP' => $lang['Join_group'], - 'L_UNSUBSCRIBE_GROUP' => $lang['Unsubscribe'], - 'L_GROUP_OPEN' => $lang['Group_open'], - 'L_GROUP_CLOSED' => $lang['Group_closed'], - 'L_GROUP_HIDDEN' => $lang['Group_hidden'], - 'L_UPDATE' => $lang['Update'], - 'L_GROUP_MODERATOR' => $lang['Group_Moderator'], - 'L_GROUP_MEMBERS' => $lang['Group_Members'], - 'L_PENDING_MEMBERS' => $lang['Pending_members'], - 'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'], - 'L_PM' => $lang['Private_Message'], - 'L_EMAIL' => $lang['Email'], - 'L_POSTS' => $lang['Posts'], - 'L_WEBSITE' => $lang['Website'], - 'L_FROM' => $lang['Location'], - 'L_ORDER' => $lang['Order'], - 'L_SORT' => $lang['Sort'], - 'L_SUBMIT' => $lang['Sort'], - 'L_AIM' => $lang['AIM'], - 'L_YIM' => $lang['YIM'], - 'L_MSNM' => $lang['MSNM'], - 'L_ICQ' => $lang['ICQ'], - 'L_SELECT' => $lang['Select'], - 'L_REMOVE_SELECTED' => $lang['Remove_selected'], - 'L_ADD_MEMBER' => $lang['Add_member'], - 'L_FIND_USERNAME' => $lang['Find_username'], - - 'GROUP_NAME' => $group_info['group_name'], - 'GROUP_DESC' => $group_info['group_description'], - 'GROUP_DETAILS' => $group_details, - 'MOD_ROW_COLOR' => '#' . $theme['td_color1'], - 'MOD_ROW_CLASS' => $theme['td_class1'], - 'MOD_USERNAME' => $username, - 'MOD_FROM' => $from, - 'MOD_JOINED' => $joined, - 'MOD_POSTS' => $posts, - 'MOD_AVATAR_IMG' => $poster_avatar, - 'MOD_PROFILE_IMG' => $profile_img, - 'MOD_PROFILE' => $profile, - 'MOD_SEARCH_IMG' => $search_img, - 'MOD_SEARCH' => $search, - 'MOD_PM_IMG' => $pm_img, - 'MOD_PM' => $pm, - 'MOD_EMAIL_IMG' => $email_img, - 'MOD_EMAIL' => $email, - 'MOD_WWW_IMG' => $www_img, - 'MOD_WWW' => $www, - 'MOD_ICQ_STATUS_IMG' => $icq_status_img, - 'MOD_ICQ_IMG' => $icq_img, - 'MOD_ICQ' => $icq, - 'MOD_AIM_IMG' => $aim_img, - 'MOD_AIM' => $aim, - 'MOD_MSN_IMG' => $msn_img, - 'MOD_MSN' => $msn, - 'MOD_YIM_IMG' => $yim_img, - 'MOD_YIM' => $yim, - - 'U_MOD_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"), - 'U_SEARCH_USER' => append_sid("search.$phpEx?mode=searchuser"), - - 'S_GROUP_OPEN_TYPE' => GROUP_OPEN, - 'S_GROUP_CLOSED_TYPE' => GROUP_CLOSED, - 'S_GROUP_HIDDEN_TYPE' => GROUP_HIDDEN, - 'S_GROUP_OPEN_CHECKED' => ( $group_info['group_type'] == GROUP_OPEN ) ? ' checked="checked"' : '', - 'S_GROUP_CLOSED_CHECKED' => ( $group_info['group_type'] == GROUP_CLOSED ) ? ' checked="checked"' : '', - 'S_GROUP_HIDDEN_CHECKED' => ( $group_info['group_type'] == GROUP_HIDDEN ) ? ' checked="checked"' : '', - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_MODE_SELECT' => $select_sort_mode, - 'S_ORDER_SELECT' => $select_sort_order, - 'S_GROUPCP_ACTION' => append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id")) - ); - - // - // Dump out the remaining users - // - for($i = $start; $i < min($board_config['topics_per_page'] + $start, $members_count); $i++) - { - $username = $group_members[$i]['username']; - $user_id = $group_members[$i]['user_id']; - - generate_user_info($group_members[$i], $board_config['default_dateformat'], $is_moderator, $from, $posts, $joined, $poster_avatar, $profile_img, $profile, $search_img, $search, $pm_img, $pm, $email_img, $email, $www_img, $www, $icq_status_img, $icq_img, $icq, $aim_img, $aim, $msn_img, $msn, $yim_img, $yim); - - if ( $group_info['group_type'] != GROUP_HIDDEN || $is_group_member || $is_moderator ) - { - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('member_row', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'USERNAME' => $username, - 'FROM' => $from, - 'JOINED' => $joined, - 'POSTS' => $posts, - 'USER_ID' => $user_id, - 'AVATAR_IMG' => $poster_avatar, - 'PROFILE_IMG' => $profile_img, - 'PROFILE' => $profile, - 'SEARCH_IMG' => $search_img, - 'SEARCH' => $search, - 'PM_IMG' => $pm_img, - 'PM' => $pm, - 'EMAIL_IMG' => $email_img, - 'EMAIL' => $email, - 'WWW_IMG' => $www_img, - 'WWW' => $www, - 'ICQ_STATUS_IMG' => $icq_status_img, - 'ICQ_IMG' => $icq_img, - 'ICQ' => $icq, - 'AIM_IMG' => $aim_img, - 'AIM' => $aim, - 'MSN_IMG' => $msn_img, - 'MSN' => $msn, - 'YIM_IMG' => $yim_img, - 'YIM' => $yim, - - 'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id")) - ); - - if ( $is_moderator ) - { - $template->assign_block_vars('member_row.switch_mod_option', array()); - } - } - } - - if ( !$members_count ) - { - // - // No group members - // - $template->assign_block_vars('switch_no_members', array()); - $template->assign_vars(array( - 'L_NO_MEMBERS' => $lang['No_group_members']) - ); - } - - $current_page = ( !$members_count ) ? 1 : ceil( $members_count / $board_config['topics_per_page'] ); - - $template->assign_vars(array( - 'PAGINATION' => generate_pagination("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id", $members_count, $board_config['topics_per_page'], $start), - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), $current_page ), - - 'L_GOTO_PAGE' => $lang['Goto_page']) - ); - - if ( $group_info['group_type'] == GROUP_HIDDEN && !$is_group_member && !$is_moderator ) - { - // - // No group members - // - $template->assign_block_vars('switch_hidden_group', array()); - $template->assign_vars(array( - 'L_HIDDEN_MEMBERS' => $lang['Group_hidden_members']) - ); - } - - // - // We've displayed the members who belong to the group, now we - // do that pending memebers... - // - if ( $is_moderator ) - { - // - // Users pending in ONLY THIS GROUP (which is moderated by this user) - // - if ( $modgroup_pending_count ) - { - for($i = 0; $i < $modgroup_pending_count; $i++) - { - $username = $modgroup_pending_list[$i]['username']; - $user_id = $modgroup_pending_list[$i]['user_id']; - - generate_user_info($modgroup_pending_list[$i], $board_config['default_dateformat'], $is_moderator, $from, $posts, $joined, $poster_avatar, $profile_img, $profile, $search_img, $search, $pm_img, $pm, $email_img, $email, $www_img, $www, $icq_status_img, $icq_img, $icq, $aim_img, $aim, $msn_img, $msn, $yim_img, $yim); - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $user_select = ''; - - $template->assign_block_vars('pending_members_row', array( - 'ROW_CLASS' => $row_class, - 'ROW_COLOR' => '#' . $row_color, - 'USERNAME' => $username, - 'FROM' => $from, - 'JOINED' => $joined, - 'POSTS' => $posts, - 'USER_ID' => $user_id, - 'AVATAR_IMG' => $poster_avatar, - 'PROFILE_IMG' => $profile_img, - 'PROFILE' => $profile, - 'SEARCH_IMG' => $search_img, - 'SEARCH' => $search, - 'PM_IMG' => $pm_img, - 'PM' => $pm, - 'EMAIL_IMG' => $email_img, - 'EMAIL' => $email, - 'WWW_IMG' => $www_img, - 'WWW' => $www, - 'ICQ_STATUS_IMG' => $icq_status_img, - 'ICQ_IMG' => $icq_img, - 'ICQ' => $icq, - 'AIM_IMG' => $aim_img, - 'AIM' => $aim, - 'MSN_IMG' => $msn_img, - 'MSN' => $msn, - 'YIM_IMG' => $yim_img, - 'YIM' => $yim, - - 'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id")) - ); - } - - $template->assign_block_vars('switch_pending_members', array() ); - - $template->assign_vars(array( - 'L_SELECT' => $lang['Select'], - 'L_APPROVE_SELECTED' => $lang['Approve_selected'], - 'L_DENY_SELECTED' => $lang['Deny_selected']) - ); - - $template->assign_var_from_handle('PENDING_USER_BOX', 'pendinginfo'); - - } - } - - if ( $is_moderator ) - { - $template->assign_block_vars('switch_mod_option', array()); - $template->assign_block_vars('switch_add_member', array()); - } - - $template->pparse('info'); -} -else -{ - // - // Show the main groupcp.php screen where the user can select a group. - // - // Select all group that the user is a member of or where the user has - // a pending membership. - // - $in_group = array(); - - if ( $userdata['session_logged_in'] ) - { - $sql = "SELECT g.group_id, g.group_name, g.group_type, ug.user_pending - FROM " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug - WHERE ug.user_id = " . $userdata['user_id'] . " - AND ug.group_id = g.group_id - AND g.group_single_user <> " . TRUE . " - ORDER BY g.group_name, ug.user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $in_group = array(); - $s_member_groups_opt = ''; - $s_pending_groups_opt = ''; - - do - { - $in_group[] = $row['group_id']; - if ( $row['user_pending'] ) - { - $s_pending_groups_opt .= ''; - } - else - { - $s_member_groups_opt .= ''; - } - } - while( $row = $db->sql_fetchrow($result) ); - - $s_pending_groups = '"; - $s_member_groups = '"; - } - } - - // - // Select all other groups i.e. groups that this user is not a member of - // - $ignore_group_sql = ( count($in_group) ) ? "AND group_id NOT IN (" . implode(', ', $in_group) . ")" : ''; - $sql = "SELECT group_id, group_name, group_type - FROM " . GROUPS_TABLE . " g - WHERE group_single_user <> " . TRUE . " - $ignore_group_sql - ORDER BY g.group_name"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql); - } - - $s_group_list_opt = ''; - while( $row = $db->sql_fetchrow($result) ) - { - if ( $row['group_type'] != GROUP_HIDDEN || $userdata['user_level'] == ADMIN ) - { - $s_group_list_opt .=''; - } - } - $s_group_list = ''; - - if ( $s_group_list_opt != '' || $s_pending_groups_opt != '' || $s_member_groups_opt != '' ) - { - // - // Load and process templates - // - $page_title = $lang['Group_Control_Panel']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'user' => 'groupcp_user_body.tpl') - ); - make_jumpbox('viewforum.'.$phpEx); - - if ( $s_pending_groups_opt != '' || $s_member_groups_opt != '' ) - { - $template->assign_block_vars('switch_groups_joined', array() ); - } - - if ( $s_member_groups_opt != '' ) - { - $template->assign_block_vars('switch_groups_joined.switch_groups_member', array() ); - } - - if ( $s_pending_groups_opt != '' ) - { - $template->assign_block_vars('switch_groups_joined.switch_groups_pending', array() ); - } - - if ( $s_group_list_opt != '' ) - { - $template->assign_block_vars('switch_groups_remaining', array() ); - } - - $s_hidden_fields = ''; - - $template->assign_vars(array( - 'L_GROUP_MEMBERSHIP_DETAILS' => $lang['Group_member_details'], - 'L_JOIN_A_GROUP' => $lang['Group_member_join'], - 'L_YOU_BELONG_GROUPS' => $lang['Current_memberships'], - 'L_SELECT_A_GROUP' => $lang['Non_member_groups'], - 'L_PENDING_GROUPS' => $lang['Memberships_pending'], - 'L_SUBSCRIBE' => $lang['Subscribe'], - 'L_UNSUBSCRIBE' => $lang['Unsubscribe'], - 'L_VIEW_INFORMATION' => $lang['View_Information'], - - 'S_USERGROUP_ACTION' => append_sid("groupcp.$phpEx"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - - 'GROUP_LIST_SELECT' => $s_group_list, - 'GROUP_PENDING_SELECT' => $s_pending_groups, - 'GROUP_MEMBER_SELECT' => $s_member_groups) - ); - - $template->pparse('user'); - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_groups_exist']); - } - -} - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/images/avatars/121332050045bf7306938e9.jpg b/phpBB2/images/avatars/121332050045bf7306938e9.jpg deleted file mode 100755 index 7fab83d..0000000 Binary files a/phpBB2/images/avatars/121332050045bf7306938e9.jpg and /dev/null differ diff --git a/phpBB2/images/avatars/1270772484502a2f2719ca.jpg b/phpBB2/images/avatars/1270772484502a2f2719ca.jpg deleted file mode 100644 index a8002a4..0000000 Binary files a/phpBB2/images/avatars/1270772484502a2f2719ca.jpg and /dev/null differ diff --git a/phpBB2/images/avatars/15740475104282316f3fa8b.jpg b/phpBB2/images/avatars/15740475104282316f3fa8b.jpg deleted file mode 100644 index 4eabd3e..0000000 Binary files a/phpBB2/images/avatars/15740475104282316f3fa8b.jpg and /dev/null differ diff --git a/phpBB2/images/avatars/20374341554251108207542.gif b/phpBB2/images/avatars/20374341554251108207542.gif deleted file mode 100644 index 688ee0d..0000000 Binary files a/phpBB2/images/avatars/20374341554251108207542.gif and /dev/null differ diff --git a/phpBB2/images/avatars/255966658459b734b6fd85.gif b/phpBB2/images/avatars/255966658459b734b6fd85.gif deleted file mode 100755 index 9fcd131..0000000 Binary files a/phpBB2/images/avatars/255966658459b734b6fd85.gif and /dev/null differ diff --git a/phpBB2/images/avatars/68336136145f950d16cfa4.jpg b/phpBB2/images/avatars/68336136145f950d16cfa4.jpg deleted file mode 100755 index 4a648f7..0000000 Binary files a/phpBB2/images/avatars/68336136145f950d16cfa4.jpg and /dev/null differ diff --git a/phpBB2/images/avatars/avatar1.jpg b/phpBB2/images/avatars/avatar1.jpg deleted file mode 100644 index 55e1706..0000000 Binary files a/phpBB2/images/avatars/avatar1.jpg and /dev/null differ diff --git a/phpBB2/images/avatars/gallery/index.htm b/phpBB2/images/avatars/gallery/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2/images/avatars/gallery/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2/images/avatars/index.htm b/phpBB2/images/avatars/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2/images/avatars/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2/images/index.htm b/phpBB2/images/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2/images/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2/images/smiles/Valentine.pak b/phpBB2/images/smiles/Valentine.pak deleted file mode 100644 index a5c56d5..0000000 --- a/phpBB2/images/smiles/Valentine.pak +++ /dev/null @@ -1,17 +0,0 @@ -valentine_bemine.gif=+:valentine_bemine.gif=+:[valentine_bemine.gif] -valentine_callme.gif=+:valentine_callme.gif=+:[valentine_callme.gif] -valentine_Happy.gif=+:valentine_Happy.gif=+:[valentine_Happy.gif] -valentine_Heartfillwithlove.gif=+:valentine_Heartfillwithlove.gif=+:[valentine_Heartfillwithlove.gif] -valentine_Hiya.gif=+:valentine_Hiya.gif=+:[valentine_Hiya.gif] -valentine_hotoveryou.gif=+:valentine_hotoveryou.gif=+:[valentine_hotoveryou.gif] -valentine_Iloveyou1.gif=+:valentine_Iloveyou1.gif=+:[valentine_Iloveyou1.gif] -valentine_iloveyou2.gif=+:valentine_iloveyou2.gif=+:[valentine_iloveyou2.gif] -valentine_Kissoflove.gif=+:valentine_Kissoflove.gif=+:[valentine_Kissoflove.gif] -valentine_lovesick.gif=+:valentine_lovesick.gif=+:[valentine_lovesick.gif] -valentine_lovetogether.gif=+:valentine_lovetogether.gif=+:[valentine_lovetogether.gif] -valentine_myHeartfireupforyou.gif=+:valentine_myHeartfireupforyou.gif=+:[valentine_myHeartfireupforyou.gif] -valentine_mylove.gif=+:valentine_mylove.gif=+:[valentine_mylove.gif] -valentine_Peekaboo.gif=+:valentine_Peekaboo.gif=+:[valentine_Peekaboo.gif] -valentine_Realmad.gif=+:valentine_Realmad.gif=+:[valentine_Realmad.gif] -valentine_Tofunny.gif=+:valentine_Tofunny.gif=+:[valentine_Tofunny.gif] -valentine_winyourlove.gif=+:valentine_winyourlove.gif=+:[valentine_winyourlove.gif] diff --git a/phpBB2/images/smiles/bigDuhard.gif b/phpBB2/images/smiles/bigDuhard.gif deleted file mode 100644 index 7cf6ff5..0000000 Binary files a/phpBB2/images/smiles/bigDuhard.gif and /dev/null differ diff --git a/phpBB2/images/smiles/bigblack.gif b/phpBB2/images/smiles/bigblack.gif deleted file mode 100644 index e706511..0000000 Binary files a/phpBB2/images/smiles/bigblack.gif and /dev/null differ diff --git a/phpBB2/images/smiles/bigcool.gif b/phpBB2/images/smiles/bigcool.gif deleted file mode 100644 index c48be2c..0000000 Binary files a/phpBB2/images/smiles/bigcool.gif and /dev/null differ diff --git a/phpBB2/images/smiles/bigcry.gif b/phpBB2/images/smiles/bigcry.gif deleted file mode 100644 index d4eaec0..0000000 Binary files a/phpBB2/images/smiles/bigcry.gif and /dev/null differ diff --git a/phpBB2/images/smiles/bigdisgust.gif b/phpBB2/images/smiles/bigdisgust.gif deleted file mode 100644 index e891555..0000000 Binary files a/phpBB2/images/smiles/bigdisgust.gif and /dev/null differ diff --git a/phpBB2/images/smiles/bigdisturbed.gif b/phpBB2/images/smiles/bigdisturbed.gif deleted file mode 100644 index e7c1844..0000000 Binary files a/phpBB2/images/smiles/bigdisturbed.gif and /dev/null differ diff --git a/phpBB2/images/smiles/bigeek3.gif b/phpBB2/images/smiles/bigeek3.gif deleted file mode 100644 index d8216c7..0000000 Binary files a/phpBB2/images/smiles/bigeek3.gif and /dev/null differ diff --git a/phpBB2/images/smiles/bigeyebrow.gif b/phpBB2/images/smiles/bigeyebrow.gif deleted file mode 100644 index 8233b25..0000000 Binary files a/phpBB2/images/smiles/bigeyebrow.gif and /dev/null differ diff --git a/phpBB2/images/smiles/bigfiremad.gif b/phpBB2/images/smiles/bigfiremad.gif deleted file mode 100644 index 37166e3..0000000 Binary files a/phpBB2/images/smiles/bigfiremad.gif and /dev/null differ diff --git a/phpBB2/images/smiles/bigformation.gif b/phpBB2/images/smiles/bigformation.gif deleted file mode 100644 index e5dc2af..0000000 Binary files a/phpBB2/images/smiles/bigformation.gif and /dev/null differ diff --git a/phpBB2/images/smiles/biggrin.gif b/phpBB2/images/smiles/biggrin.gif deleted file mode 100644 index 2c2d1ee..0000000 Binary files a/phpBB2/images/smiles/biggrin.gif and /dev/null differ diff --git a/phpBB2/images/smiles/biggroup.gif b/phpBB2/images/smiles/biggroup.gif deleted file mode 100644 index 04a0d03..0000000 Binary files a/phpBB2/images/smiles/biggroup.gif and /dev/null differ diff --git a/phpBB2/images/smiles/bigmono.gif b/phpBB2/images/smiles/bigmono.gif deleted file mode 100644 index 9a409d2..0000000 Binary files a/phpBB2/images/smiles/bigmono.gif and /dev/null differ diff --git a/phpBB2/images/smiles/bigoogle.gif b/phpBB2/images/smiles/bigoogle.gif deleted file mode 100644 index 220260e..0000000 Binary files a/phpBB2/images/smiles/bigoogle.gif and /dev/null differ diff --git a/phpBB2/images/smiles/bigretard.gif b/phpBB2/images/smiles/bigretard.gif deleted file mode 100644 index 8d5bd56..0000000 Binary files a/phpBB2/images/smiles/bigretard.gif and /dev/null differ diff --git a/phpBB2/images/smiles/bigsleep.gif b/phpBB2/images/smiles/bigsleep.gif deleted file mode 100644 index feb9a86..0000000 Binary files a/phpBB2/images/smiles/bigsleep.gif and /dev/null differ diff --git a/phpBB2/images/smiles/bigsmirk4.gif b/phpBB2/images/smiles/bigsmirk4.gif deleted file mode 100644 index f94d412..0000000 Binary files a/phpBB2/images/smiles/bigsmirk4.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_2gunsfiring_v1.gif b/phpBB2/images/smiles/crazy_2gunsfiring_v1.gif deleted file mode 100644 index cb5ddef..0000000 Binary files a/phpBB2/images/smiles/crazy_2gunsfiring_v1.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_321.gif b/phpBB2/images/smiles/crazy_321.gif deleted file mode 100644 index b577c06..0000000 Binary files a/phpBB2/images/smiles/crazy_321.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_Eyecrazy.gif b/phpBB2/images/smiles/crazy_Eyecrazy.gif deleted file mode 100644 index 487eb01..0000000 Binary files a/phpBB2/images/smiles/crazy_Eyecrazy.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_Llol.gif b/phpBB2/images/smiles/crazy_Llol.gif deleted file mode 100644 index faf609c..0000000 Binary files a/phpBB2/images/smiles/crazy_Llol.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_alien.gif b/phpBB2/images/smiles/crazy_alien.gif deleted file mode 100644 index 7b71766..0000000 Binary files a/phpBB2/images/smiles/crazy_alien.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_all_coholic.gif b/phpBB2/images/smiles/crazy_all_coholic.gif deleted file mode 100644 index f625b24..0000000 Binary files a/phpBB2/images/smiles/crazy_all_coholic.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_angel.gif b/phpBB2/images/smiles/crazy_angel.gif deleted file mode 100644 index 3345a6f..0000000 Binary files a/phpBB2/images/smiles/crazy_angel.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_argue.gif b/phpBB2/images/smiles/crazy_argue.gif deleted file mode 100644 index 83f3b0a..0000000 Binary files a/phpBB2/images/smiles/crazy_argue.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_asthanos.gif b/phpBB2/images/smiles/crazy_asthanos.gif deleted file mode 100644 index ea9b61b..0000000 Binary files a/phpBB2/images/smiles/crazy_asthanos.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_bat_angel.gif b/phpBB2/images/smiles/crazy_bat_angel.gif deleted file mode 100644 index f9855cd..0000000 Binary files a/phpBB2/images/smiles/crazy_bat_angel.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_bdaysmile.gif b/phpBB2/images/smiles/crazy_bdaysmile.gif deleted file mode 100644 index c0b3e95..0000000 Binary files a/phpBB2/images/smiles/crazy_bdaysmile.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_beammeup.gif b/phpBB2/images/smiles/crazy_beammeup.gif deleted file mode 100644 index 027e42c..0000000 Binary files a/phpBB2/images/smiles/crazy_beammeup.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_bigcrowd.gif b/phpBB2/images/smiles/crazy_bigcrowd.gif deleted file mode 100644 index e9a4bfe..0000000 Binary files a/phpBB2/images/smiles/crazy_bigcrowd.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_birthday.gif b/phpBB2/images/smiles/crazy_birthday.gif deleted file mode 100644 index 1edaa2c..0000000 Binary files a/phpBB2/images/smiles/crazy_birthday.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_blackey.gif b/phpBB2/images/smiles/crazy_blackey.gif deleted file mode 100644 index a69b44a..0000000 Binary files a/phpBB2/images/smiles/crazy_blackey.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_blowingup.gif b/phpBB2/images/smiles/crazy_blowingup.gif deleted file mode 100644 index 105efbe..0000000 Binary files a/phpBB2/images/smiles/crazy_blowingup.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_bluegrab.gif b/phpBB2/images/smiles/crazy_bluegrab.gif deleted file mode 100644 index 5ebc515..0000000 Binary files a/phpBB2/images/smiles/crazy_bluegrab.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_borgsmile.gif b/phpBB2/images/smiles/crazy_borgsmile.gif deleted file mode 100644 index 76dd0d7..0000000 Binary files a/phpBB2/images/smiles/crazy_borgsmile.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_butterfly.gif b/phpBB2/images/smiles/crazy_butterfly.gif deleted file mode 100644 index 1b4b437..0000000 Binary files a/phpBB2/images/smiles/crazy_butterfly.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_color_.gif b/phpBB2/images/smiles/crazy_color_.gif deleted file mode 100644 index 69ca6bf..0000000 Binary files a/phpBB2/images/smiles/crazy_color_.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_cussing.gif b/phpBB2/images/smiles/crazy_cussing.gif deleted file mode 100644 index 19eb9d8..0000000 Binary files a/phpBB2/images/smiles/crazy_cussing.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_eggface.gif b/phpBB2/images/smiles/crazy_eggface.gif deleted file mode 100644 index 46dda3d..0000000 Binary files a/phpBB2/images/smiles/crazy_eggface.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_evil.gif b/phpBB2/images/smiles/crazy_evil.gif deleted file mode 100644 index 9440af3..0000000 Binary files a/phpBB2/images/smiles/crazy_evil.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_gmorning.gif b/phpBB2/images/smiles/crazy_gmorning.gif deleted file mode 100644 index 86ec594..0000000 Binary files a/phpBB2/images/smiles/crazy_gmorning.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_icecream.gif b/phpBB2/images/smiles/crazy_icecream.gif deleted file mode 100644 index 70843cd..0000000 Binary files a/phpBB2/images/smiles/crazy_icecream.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_infinity.gif b/phpBB2/images/smiles/crazy_infinity.gif deleted file mode 100644 index aaaf1c8..0000000 Binary files a/phpBB2/images/smiles/crazy_infinity.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_kodomagnam.gif b/phpBB2/images/smiles/crazy_kodomagnam.gif deleted file mode 100644 index dbd1e84..0000000 Binary files a/phpBB2/images/smiles/crazy_kodomagnam.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_let_it_all_out.gif b/phpBB2/images/smiles/crazy_let_it_all_out.gif deleted file mode 100644 index 4d76a52..0000000 Binary files a/phpBB2/images/smiles/crazy_let_it_all_out.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_littleangel.gif b/phpBB2/images/smiles/crazy_littleangel.gif deleted file mode 100644 index d82d8e5..0000000 Binary files a/phpBB2/images/smiles/crazy_littleangel.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_llying.gif b/phpBB2/images/smiles/crazy_llying.gif deleted file mode 100644 index 09159c0..0000000 Binary files a/phpBB2/images/smiles/crazy_llying.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_microwave.gif b/phpBB2/images/smiles/crazy_microwave.gif deleted file mode 100644 index 06c1e58..0000000 Binary files a/phpBB2/images/smiles/crazy_microwave.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_monalisa.gif b/phpBB2/images/smiles/crazy_monalisa.gif deleted file mode 100644 index 2980156..0000000 Binary files a/phpBB2/images/smiles/crazy_monalisa.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_multi.gif b/phpBB2/images/smiles/crazy_multi.gif deleted file mode 100644 index 5c6023e..0000000 Binary files a/phpBB2/images/smiles/crazy_multi.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_newbie.gif b/phpBB2/images/smiles/crazy_newbie.gif deleted file mode 100644 index 8322095..0000000 Binary files a/phpBB2/images/smiles/crazy_newbie.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_olympic1.gif b/phpBB2/images/smiles/crazy_olympic1.gif deleted file mode 100644 index a94b97a..0000000 Binary files a/phpBB2/images/smiles/crazy_olympic1.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_popcornsmiley.gif b/phpBB2/images/smiles/crazy_popcornsmiley.gif deleted file mode 100644 index 1414b24..0000000 Binary files a/phpBB2/images/smiles/crazy_popcornsmiley.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_puppy_dog_eyes.gif b/phpBB2/images/smiles/crazy_puppy_dog_eyes.gif deleted file mode 100644 index ae49736..0000000 Binary files a/phpBB2/images/smiles/crazy_puppy_dog_eyes.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_rainbow.gif b/phpBB2/images/smiles/crazy_rainbow.gif deleted file mode 100644 index 390aa2e..0000000 Binary files a/phpBB2/images/smiles/crazy_rainbow.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_rainfro.gif b/phpBB2/images/smiles/crazy_rainfro.gif deleted file mode 100644 index 12be964..0000000 Binary files a/phpBB2/images/smiles/crazy_rainfro.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_rofl.gif b/phpBB2/images/smiles/crazy_rofl.gif deleted file mode 100644 index a2c52ed..0000000 Binary files a/phpBB2/images/smiles/crazy_rofl.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_rotcol.gif b/phpBB2/images/smiles/crazy_rotcol.gif deleted file mode 100644 index df5659f..0000000 Binary files a/phpBB2/images/smiles/crazy_rotcol.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_scatter.gif b/phpBB2/images/smiles/crazy_scatter.gif deleted file mode 100644 index d8d5409..0000000 Binary files a/phpBB2/images/smiles/crazy_scatter.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_scrambles.gif b/phpBB2/images/smiles/crazy_scrambles.gif deleted file mode 100644 index 44a3ad7..0000000 Binary files a/phpBB2/images/smiles/crazy_scrambles.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_shocked.gif b/phpBB2/images/smiles/crazy_shocked.gif deleted file mode 100644 index 2c370cb..0000000 Binary files a/phpBB2/images/smiles/crazy_shocked.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_silly.gif b/phpBB2/images/smiles/crazy_silly.gif deleted file mode 100644 index 4d4b79d..0000000 Binary files a/phpBB2/images/smiles/crazy_silly.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_sleeping.gif b/phpBB2/images/smiles/crazy_sleeping.gif deleted file mode 100644 index c3386ef..0000000 Binary files a/phpBB2/images/smiles/crazy_sleeping.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_smile-l.gif b/phpBB2/images/smiles/crazy_smile-l.gif deleted file mode 100644 index 80e6af6..0000000 Binary files a/phpBB2/images/smiles/crazy_smile-l.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_smileyb.gif b/phpBB2/images/smiles/crazy_smileyb.gif deleted file mode 100644 index b1bbad2..0000000 Binary files a/phpBB2/images/smiles/crazy_smileyb.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_smilie_colors1.gif b/phpBB2/images/smiles/crazy_smilie_colors1.gif deleted file mode 100644 index 8e8a4a6..0000000 Binary files a/phpBB2/images/smiles/crazy_smilie_colors1.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_snipersmilie.gif b/phpBB2/images/smiles/crazy_snipersmilie.gif deleted file mode 100644 index 6be1fb6..0000000 Binary files a/phpBB2/images/smiles/crazy_snipersmilie.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_spiral.gif b/phpBB2/images/smiles/crazy_spiral.gif deleted file mode 100644 index 6acaa77..0000000 Binary files a/phpBB2/images/smiles/crazy_spiral.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_squarecycle.gif b/phpBB2/images/smiles/crazy_squarecycle.gif deleted file mode 100644 index 8d4e816..0000000 Binary files a/phpBB2/images/smiles/crazy_squarecycle.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_squarewink.gif b/phpBB2/images/smiles/crazy_squarewink.gif deleted file mode 100644 index e2610b0..0000000 Binary files a/phpBB2/images/smiles/crazy_squarewink.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_terminator.gif b/phpBB2/images/smiles/crazy_terminator.gif deleted file mode 100644 index 64423f5..0000000 Binary files a/phpBB2/images/smiles/crazy_terminator.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_tomato.gif b/phpBB2/images/smiles/crazy_tomato.gif deleted file mode 100644 index 903ec37..0000000 Binary files a/phpBB2/images/smiles/crazy_tomato.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_ukliam2.gif b/phpBB2/images/smiles/crazy_ukliam2.gif deleted file mode 100644 index 3baaa26..0000000 Binary files a/phpBB2/images/smiles/crazy_ukliam2.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_usa.gif b/phpBB2/images/smiles/crazy_usa.gif deleted file mode 100644 index bc866be..0000000 Binary files a/phpBB2/images/smiles/crazy_usa.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_vampv.gif b/phpBB2/images/smiles/crazy_vampv.gif deleted file mode 100644 index 72088ab..0000000 Binary files a/phpBB2/images/smiles/crazy_vampv.gif and /dev/null differ diff --git a/phpBB2/images/smiles/crazy_xmas.gif b/phpBB2/images/smiles/crazy_xmas.gif deleted file mode 100644 index 2691af4..0000000 Binary files a/phpBB2/images/smiles/crazy_xmas.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_arrow.gif b/phpBB2/images/smiles/icon_arrow.gif deleted file mode 100644 index 2880055..0000000 Binary files a/phpBB2/images/smiles/icon_arrow.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_biggrin.gif b/phpBB2/images/smiles/icon_biggrin.gif deleted file mode 100644 index d352772..0000000 Binary files a/phpBB2/images/smiles/icon_biggrin.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_confused.gif b/phpBB2/images/smiles/icon_confused.gif deleted file mode 100644 index 0c49e06..0000000 Binary files a/phpBB2/images/smiles/icon_confused.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_cool.gif b/phpBB2/images/smiles/icon_cool.gif deleted file mode 100644 index cead030..0000000 Binary files a/phpBB2/images/smiles/icon_cool.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_cry.gif b/phpBB2/images/smiles/icon_cry.gif deleted file mode 100644 index 7d54b1f..0000000 Binary files a/phpBB2/images/smiles/icon_cry.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_eek.gif b/phpBB2/images/smiles/icon_eek.gif deleted file mode 100644 index 5d39781..0000000 Binary files a/phpBB2/images/smiles/icon_eek.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_evil.gif b/phpBB2/images/smiles/icon_evil.gif deleted file mode 100644 index ab1aa8e..0000000 Binary files a/phpBB2/images/smiles/icon_evil.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_exclaim.gif b/phpBB2/images/smiles/icon_exclaim.gif deleted file mode 100644 index 6e50e2e..0000000 Binary files a/phpBB2/images/smiles/icon_exclaim.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_frown.gif b/phpBB2/images/smiles/icon_frown.gif deleted file mode 100644 index d2ac78c..0000000 Binary files a/phpBB2/images/smiles/icon_frown.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_idea.gif b/phpBB2/images/smiles/icon_idea.gif deleted file mode 100644 index a40ae0d..0000000 Binary files a/phpBB2/images/smiles/icon_idea.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_lol.gif b/phpBB2/images/smiles/icon_lol.gif deleted file mode 100644 index 374ba15..0000000 Binary files a/phpBB2/images/smiles/icon_lol.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_mad.gif b/phpBB2/images/smiles/icon_mad.gif deleted file mode 100644 index 1f6c3c2..0000000 Binary files a/phpBB2/images/smiles/icon_mad.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_mrgreen.gif b/phpBB2/images/smiles/icon_mrgreen.gif deleted file mode 100644 index b54cd0f..0000000 Binary files a/phpBB2/images/smiles/icon_mrgreen.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_neutral.gif b/phpBB2/images/smiles/icon_neutral.gif deleted file mode 100644 index 4f31156..0000000 Binary files a/phpBB2/images/smiles/icon_neutral.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_question.gif b/phpBB2/images/smiles/icon_question.gif deleted file mode 100644 index 9d07226..0000000 Binary files a/phpBB2/images/smiles/icon_question.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_razz.gif b/phpBB2/images/smiles/icon_razz.gif deleted file mode 100644 index 29da2a2..0000000 Binary files a/phpBB2/images/smiles/icon_razz.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_redface.gif b/phpBB2/images/smiles/icon_redface.gif deleted file mode 100644 index ad76283..0000000 Binary files a/phpBB2/images/smiles/icon_redface.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_rolleyes.gif b/phpBB2/images/smiles/icon_rolleyes.gif deleted file mode 100644 index d7f5f2f..0000000 Binary files a/phpBB2/images/smiles/icon_rolleyes.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_sad.gif b/phpBB2/images/smiles/icon_sad.gif deleted file mode 100644 index d2ac78c..0000000 Binary files a/phpBB2/images/smiles/icon_sad.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_smile.gif b/phpBB2/images/smiles/icon_smile.gif deleted file mode 100644 index 7b1f6d3..0000000 Binary files a/phpBB2/images/smiles/icon_smile.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_surprised.gif b/phpBB2/images/smiles/icon_surprised.gif deleted file mode 100644 index cb21424..0000000 Binary files a/phpBB2/images/smiles/icon_surprised.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_twisted.gif b/phpBB2/images/smiles/icon_twisted.gif deleted file mode 100644 index 502fe24..0000000 Binary files a/phpBB2/images/smiles/icon_twisted.gif and /dev/null differ diff --git a/phpBB2/images/smiles/icon_wink.gif b/phpBB2/images/smiles/icon_wink.gif deleted file mode 100644 index d148288..0000000 Binary files a/phpBB2/images/smiles/icon_wink.gif and /dev/null differ diff --git a/phpBB2/images/smiles/signs_champion.gif b/phpBB2/images/smiles/signs_champion.gif deleted file mode 100644 index 2cbe336..0000000 Binary files a/phpBB2/images/smiles/signs_champion.gif and /dev/null differ diff --git a/phpBB2/images/smiles/signs_help.gif b/phpBB2/images/smiles/signs_help.gif deleted file mode 100644 index 2744db1..0000000 Binary files a/phpBB2/images/smiles/signs_help.gif and /dev/null differ diff --git a/phpBB2/images/smiles/signs_hm.gif b/phpBB2/images/smiles/signs_hm.gif deleted file mode 100644 index 74c7d92..0000000 Binary files a/phpBB2/images/smiles/signs_hm.gif and /dev/null differ diff --git a/phpBB2/images/smiles/signs_lol.gif b/phpBB2/images/smiles/signs_lol.gif deleted file mode 100644 index 8197970..0000000 Binary files a/phpBB2/images/smiles/signs_lol.gif and /dev/null differ diff --git a/phpBB2/images/smiles/signs_noparking.gif b/phpBB2/images/smiles/signs_noparking.gif deleted file mode 100644 index 2ea1883..0000000 Binary files a/phpBB2/images/smiles/signs_noparking.gif and /dev/null differ diff --git a/phpBB2/images/smiles/signs_nopass.gif b/phpBB2/images/smiles/signs_nopass.gif deleted file mode 100644 index 68f4b78..0000000 Binary files a/phpBB2/images/smiles/signs_nopass.gif and /dev/null differ diff --git a/phpBB2/images/smiles/signs_oneway.gif b/phpBB2/images/smiles/signs_oneway.gif deleted file mode 100644 index 55bbe69..0000000 Binary files a/phpBB2/images/smiles/signs_oneway.gif and /dev/null differ diff --git a/phpBB2/images/smiles/signs_prepare.gif b/phpBB2/images/smiles/signs_prepare.gif deleted file mode 100644 index e5ad304..0000000 Binary files a/phpBB2/images/smiles/signs_prepare.gif and /dev/null differ diff --git a/phpBB2/images/smiles/signs_rant.gif b/phpBB2/images/smiles/signs_rant.gif deleted file mode 100644 index 15c4dc9..0000000 Binary files a/phpBB2/images/smiles/signs_rant.gif and /dev/null differ diff --git a/phpBB2/images/smiles/signs_rantoff.gif b/phpBB2/images/smiles/signs_rantoff.gif deleted file mode 100644 index 39e824c..0000000 Binary files a/phpBB2/images/smiles/signs_rantoff.gif and /dev/null differ diff --git a/phpBB2/images/smiles/signs_ranton.gif b/phpBB2/images/smiles/signs_ranton.gif deleted file mode 100644 index 414ff2d..0000000 Binary files a/phpBB2/images/smiles/signs_ranton.gif and /dev/null differ diff --git a/phpBB2/images/smiles/signs_welcome.gif b/phpBB2/images/smiles/signs_welcome.gif deleted file mode 100644 index b059e78..0000000 Binary files a/phpBB2/images/smiles/signs_welcome.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_basket.gif b/phpBB2/images/smiles/sports_basket.gif deleted file mode 100644 index 2d39735..0000000 Binary files a/phpBB2/images/smiles/sports_basket.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_boat.gif b/phpBB2/images/smiles/sports_boat.gif deleted file mode 100644 index 624cb47..0000000 Binary files a/phpBB2/images/smiles/sports_boat.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_boxing.gif b/phpBB2/images/smiles/sports_boxing.gif deleted file mode 100644 index 8818c3e..0000000 Binary files a/phpBB2/images/smiles/sports_boxing.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_bronze.gif b/phpBB2/images/smiles/sports_bronze.gif deleted file mode 100644 index c0f0867..0000000 Binary files a/phpBB2/images/smiles/sports_bronze.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_checkeredflag.gif b/phpBB2/images/smiles/sports_checkeredflag.gif deleted file mode 100644 index 28582d7..0000000 Binary files a/phpBB2/images/smiles/sports_checkeredflag.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_cup.gif b/phpBB2/images/smiles/sports_cup.gif deleted file mode 100644 index 92eb4ab..0000000 Binary files a/phpBB2/images/smiles/sports_cup.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_cycling.gif b/phpBB2/images/smiles/sports_cycling.gif deleted file mode 100644 index 332081e..0000000 Binary files a/phpBB2/images/smiles/sports_cycling.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_diver.gif b/phpBB2/images/smiles/sports_diver.gif deleted file mode 100644 index 57da08b..0000000 Binary files a/phpBB2/images/smiles/sports_diver.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_drop.gif b/phpBB2/images/smiles/sports_drop.gif deleted file mode 100644 index 9eb2904..0000000 Binary files a/phpBB2/images/smiles/sports_drop.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_fairplay.jpg b/phpBB2/images/smiles/sports_fairplay.jpg deleted file mode 100644 index ea2aadb..0000000 Binary files a/phpBB2/images/smiles/sports_fairplay.jpg and /dev/null differ diff --git a/phpBB2/images/smiles/sports_footballhelmet.gif b/phpBB2/images/smiles/sports_footballhelmet.gif deleted file mode 100644 index 9ceda34..0000000 Binary files a/phpBB2/images/smiles/sports_footballhelmet.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_garchery.gif b/phpBB2/images/smiles/sports_garchery.gif deleted file mode 100644 index 74dbe4d..0000000 Binary files a/phpBB2/images/smiles/sports_garchery.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_goal.gif b/phpBB2/images/smiles/sports_goal.gif deleted file mode 100644 index 52d1dc9..0000000 Binary files a/phpBB2/images/smiles/sports_goal.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_grouphug.gif b/phpBB2/images/smiles/sports_grouphug.gif deleted file mode 100644 index defa5db..0000000 Binary files a/phpBB2/images/smiles/sports_grouphug.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_jab.gif b/phpBB2/images/smiles/sports_jab.gif deleted file mode 100644 index fc2d889..0000000 Binary files a/phpBB2/images/smiles/sports_jab.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_keep.gif b/phpBB2/images/smiles/sports_keep.gif deleted file mode 100644 index c9fa6c5..0000000 Binary files a/phpBB2/images/smiles/sports_keep.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_maillotjaune.gif b/phpBB2/images/smiles/sports_maillotjaune.gif deleted file mode 100644 index 21e3016..0000000 Binary files a/phpBB2/images/smiles/sports_maillotjaune.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_ping.gif b/phpBB2/images/smiles/sports_ping.gif deleted file mode 100644 index 407c9ff..0000000 Binary files a/phpBB2/images/smiles/sports_ping.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_podium.gif b/phpBB2/images/smiles/sports_podium.gif deleted file mode 100644 index 9079b35..0000000 Binary files a/phpBB2/images/smiles/sports_podium.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_putgolf.gif b/phpBB2/images/smiles/sports_putgolf.gif deleted file mode 100644 index bb14fd4..0000000 Binary files a/phpBB2/images/smiles/sports_putgolf.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_skateboard.gif b/phpBB2/images/smiles/sports_skateboard.gif deleted file mode 100644 index 40b8aff..0000000 Binary files a/phpBB2/images/smiles/sports_skateboard.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_ski.gif b/phpBB2/images/smiles/sports_ski.gif deleted file mode 100644 index 9ac7397..0000000 Binary files a/phpBB2/images/smiles/sports_ski.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_ski1.gif b/phpBB2/images/smiles/sports_ski1.gif deleted file mode 100644 index 5101d60..0000000 Binary files a/phpBB2/images/smiles/sports_ski1.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_ski2.gif b/phpBB2/images/smiles/sports_ski2.gif deleted file mode 100644 index 0971128..0000000 Binary files a/phpBB2/images/smiles/sports_ski2.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_ski3.gif b/phpBB2/images/smiles/sports_ski3.gif deleted file mode 100644 index bf5f4ea..0000000 Binary files a/phpBB2/images/smiles/sports_ski3.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_ski4.gif b/phpBB2/images/smiles/sports_ski4.gif deleted file mode 100644 index 9844a6a..0000000 Binary files a/phpBB2/images/smiles/sports_ski4.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_ski5.gif b/phpBB2/images/smiles/sports_ski5.gif deleted file mode 100644 index 83b1116..0000000 Binary files a/phpBB2/images/smiles/sports_ski5.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_ski6.gif b/phpBB2/images/smiles/sports_ski6.gif deleted file mode 100644 index 2ed1c96..0000000 Binary files a/phpBB2/images/smiles/sports_ski6.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_ski_fallen.gif b/phpBB2/images/smiles/sports_ski_fallen.gif deleted file mode 100644 index 9d37f39..0000000 Binary files a/phpBB2/images/smiles/sports_ski_fallen.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_ski_falling.gif b/phpBB2/images/smiles/sports_ski_falling.gif deleted file mode 100644 index 799ed6c..0000000 Binary files a/phpBB2/images/smiles/sports_ski_falling.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_ski_jump.gif b/phpBB2/images/smiles/sports_ski_jump.gif deleted file mode 100644 index 7534a66..0000000 Binary files a/phpBB2/images/smiles/sports_ski_jump.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_ski_jumpintree.gif b/phpBB2/images/smiles/sports_ski_jumpintree.gif deleted file mode 100644 index cd6f963..0000000 Binary files a/phpBB2/images/smiles/sports_ski_jumpintree.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_ski_slalom.gif b/phpBB2/images/smiles/sports_ski_slalom.gif deleted file mode 100644 index 0b255eb..0000000 Binary files a/phpBB2/images/smiles/sports_ski_slalom.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_skismile.gif b/phpBB2/images/smiles/sports_skismile.gif deleted file mode 100644 index 2d2a393..0000000 Binary files a/phpBB2/images/smiles/sports_skismile.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_snorkel.gif b/phpBB2/images/smiles/sports_snorkel.gif deleted file mode 100644 index 2a963a2..0000000 Binary files a/phpBB2/images/smiles/sports_snorkel.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_surfing.gif b/phpBB2/images/smiles/sports_surfing.gif deleted file mode 100644 index d9b3685..0000000 Binary files a/phpBB2/images/smiles/sports_surfing.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_swinggolf.gif b/phpBB2/images/smiles/sports_swinggolf.gif deleted file mode 100644 index 2bd1e24..0000000 Binary files a/phpBB2/images/smiles/sports_swinggolf.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_target.gif b/phpBB2/images/smiles/sports_target.gif deleted file mode 100644 index d043647..0000000 Binary files a/phpBB2/images/smiles/sports_target.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_velo.gif b/phpBB2/images/smiles/sports_velo.gif deleted file mode 100644 index a98d044..0000000 Binary files a/phpBB2/images/smiles/sports_velo.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_waterskiing.gif b/phpBB2/images/smiles/sports_waterskiing.gif deleted file mode 100644 index d735c3f..0000000 Binary files a/phpBB2/images/smiles/sports_waterskiing.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_wave.gif b/phpBB2/images/smiles/sports_wave.gif deleted file mode 100644 index beb46e6..0000000 Binary files a/phpBB2/images/smiles/sports_wave.gif and /dev/null differ diff --git a/phpBB2/images/smiles/sports_weightlifter.gif b/phpBB2/images/smiles/sports_weightlifter.gif deleted file mode 100644 index 4bdfd6f..0000000 Binary files a/phpBB2/images/smiles/sports_weightlifter.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_Happy.gif b/phpBB2/images/smiles/valentine_Happy.gif deleted file mode 100644 index 5d9b1d7..0000000 Binary files a/phpBB2/images/smiles/valentine_Happy.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_Heartfillwithlove.gif b/phpBB2/images/smiles/valentine_Heartfillwithlove.gif deleted file mode 100644 index a86912a..0000000 Binary files a/phpBB2/images/smiles/valentine_Heartfillwithlove.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_Hiya.gif b/phpBB2/images/smiles/valentine_Hiya.gif deleted file mode 100644 index 575f1a2..0000000 Binary files a/phpBB2/images/smiles/valentine_Hiya.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_Iloveyou1.gif b/phpBB2/images/smiles/valentine_Iloveyou1.gif deleted file mode 100644 index 6b2ded9..0000000 Binary files a/phpBB2/images/smiles/valentine_Iloveyou1.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_Kissoflove.gif b/phpBB2/images/smiles/valentine_Kissoflove.gif deleted file mode 100644 index 0d83c27..0000000 Binary files a/phpBB2/images/smiles/valentine_Kissoflove.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_Peekaboo.gif b/phpBB2/images/smiles/valentine_Peekaboo.gif deleted file mode 100644 index 8822714..0000000 Binary files a/phpBB2/images/smiles/valentine_Peekaboo.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_Realmad.gif b/phpBB2/images/smiles/valentine_Realmad.gif deleted file mode 100644 index baad2d0..0000000 Binary files a/phpBB2/images/smiles/valentine_Realmad.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_Tofunny.gif b/phpBB2/images/smiles/valentine_Tofunny.gif deleted file mode 100644 index 7b62901..0000000 Binary files a/phpBB2/images/smiles/valentine_Tofunny.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_bemine.gif b/phpBB2/images/smiles/valentine_bemine.gif deleted file mode 100644 index c0b1620..0000000 Binary files a/phpBB2/images/smiles/valentine_bemine.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_callme.gif b/phpBB2/images/smiles/valentine_callme.gif deleted file mode 100644 index 5d130f4..0000000 Binary files a/phpBB2/images/smiles/valentine_callme.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_hotoveryou.gif b/phpBB2/images/smiles/valentine_hotoveryou.gif deleted file mode 100644 index 5c4c2e7..0000000 Binary files a/phpBB2/images/smiles/valentine_hotoveryou.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_iloveyou2.gif b/phpBB2/images/smiles/valentine_iloveyou2.gif deleted file mode 100644 index e00ae8b..0000000 Binary files a/phpBB2/images/smiles/valentine_iloveyou2.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_lovesick.gif b/phpBB2/images/smiles/valentine_lovesick.gif deleted file mode 100644 index df98b94..0000000 Binary files a/phpBB2/images/smiles/valentine_lovesick.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_lovetogether.gif b/phpBB2/images/smiles/valentine_lovetogether.gif deleted file mode 100644 index bd73373..0000000 Binary files a/phpBB2/images/smiles/valentine_lovetogether.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_myHeartfireupforyou.gif b/phpBB2/images/smiles/valentine_myHeartfireupforyou.gif deleted file mode 100644 index db37b5c..0000000 Binary files a/phpBB2/images/smiles/valentine_myHeartfireupforyou.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_mylove.gif b/phpBB2/images/smiles/valentine_mylove.gif deleted file mode 100644 index 9486e4d..0000000 Binary files a/phpBB2/images/smiles/valentine_mylove.gif and /dev/null differ diff --git a/phpBB2/images/smiles/valentine_winyourlove.gif b/phpBB2/images/smiles/valentine_winyourlove.gif deleted file mode 100644 index 4539e22..0000000 Binary files a/phpBB2/images/smiles/valentine_winyourlove.gif and /dev/null differ diff --git a/phpBB2/images/spacer.gif b/phpBB2/images/spacer.gif deleted file mode 100644 index cd29009..0000000 Binary files a/phpBB2/images/spacer.gif and /dev/null differ diff --git a/phpBB2/includes/auth.php b/phpBB2/includes/auth.php deleted file mode 100644 index 80d3e88..0000000 --- a/phpBB2/includes/auth.php +++ /dev/null @@ -1,328 +0,0 @@ -sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Failed obtaining forum access control lists', '', __LINE__, __FILE__, $sql); - } - - $sql_fetchrow = ( $forum_id != AUTH_LIST_ALL ) ? 'sql_fetchrow' : 'sql_fetchrowset'; - - if ( !($f_access = $db->$sql_fetchrow($result)) ) - { - $db->sql_freeresult($result); - return array(); - } - $db->sql_freeresult($result); - } - - // - // If the user isn't logged on then all we need do is check if the forum - // has the type set to ALL, if yes they are good to go, if not then they - // are denied access - // - $u_access = array(); - if ( $userdata['session_logged_in'] ) - { - $forum_match_sql = ( $forum_id != AUTH_LIST_ALL ) ? "AND a.forum_id = $forum_id" : ''; - - $sql = "SELECT a.forum_id, $a_sql, a.auth_mod - FROM " . AUTH_ACCESS_TABLE . " a, " . USER_GROUP_TABLE . " ug - WHERE ug.user_id = ".$userdata['user_id']. " - AND ug.user_pending = 0 - AND a.group_id = ug.group_id - $forum_match_sql"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Failed obtaining forum access control lists', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - do - { - if ( $forum_id != AUTH_LIST_ALL) - { - $u_access[] = $row; - } - else - { - $u_access[$row['forum_id']][] = $row; - } - } - while( $row = $db->sql_fetchrow($result) ); - } - $db->sql_freeresult($result); - } - - $is_admin = ( $userdata['user_level'] == ADMIN && $userdata['session_logged_in'] ) ? TRUE : 0; - - $auth_user = array(); - for($i = 0; $i < count($auth_fields); $i++) - { - $key = $auth_fields[$i]; - - // - // If the user is logged on and the forum type is either ALL or REG then the user has access - // - // If the type if ACL, MOD or ADMIN then we need to see if the user has specific permissions - // to do whatever it is they want to do ... to do this we pull relevant information for the - // user (and any groups they belong to) - // - // Now we compare the users access level against the forums. We assume here that a moderator - // and admin automatically have access to an ACL forum, similarly we assume admins meet an - // auth requirement of MOD - // - if ( $forum_id != AUTH_LIST_ALL ) - { - $value = $f_access[$key]; - - switch( $value ) - { - case AUTH_ALL: - $auth_user[$key] = TRUE; - $auth_user[$key . '_type'] = $lang['Auth_Anonymous_Users']; - break; - - case AUTH_REG: - $auth_user[$key] = ( $userdata['session_logged_in'] ) ? TRUE : 0; - $auth_user[$key . '_type'] = $lang['Auth_Registered_Users']; - break; - - case AUTH_ACL: - $auth_user[$key] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_ACL, $key, $u_access, $is_admin) : 0; - $auth_user[$key . '_type'] = $lang['Auth_Users_granted_access']; - break; - - case AUTH_MOD: - $auth_user[$key] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_MOD, 'auth_mod', $u_access, $is_admin) : 0; - $auth_user[$key . '_type'] = $lang['Auth_Moderators']; - break; - - case AUTH_ADMIN: - $auth_user[$key] = $is_admin; - $auth_user[$key . '_type'] = $lang['Auth_Administrators']; - break; - - default: - $auth_user[$key] = 0; - break; - } - } - else - { - for($k = 0; $k < count($f_access); $k++) - { - $value = $f_access[$k][$key]; - $f_forum_id = $f_access[$k]['forum_id']; - $u_access[$f_forum_id] = isset($u_access[$f_forum_id]) ? $u_access[$f_forum_id] : array(); - - switch( $value ) - { - case AUTH_ALL: - $auth_user[$f_forum_id][$key] = TRUE; - $auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Anonymous_Users']; - break; - - case AUTH_REG: - $auth_user[$f_forum_id][$key] = ( $userdata['session_logged_in'] ) ? TRUE : 0; - $auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Registered_Users']; - break; - - case AUTH_ACL: - $auth_user[$f_forum_id][$key] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_ACL, $key, $u_access[$f_forum_id], $is_admin) : 0; - $auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Users_granted_access']; - break; - - case AUTH_MOD: - $auth_user[$f_forum_id][$key] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_MOD, 'auth_mod', $u_access[$f_forum_id], $is_admin) : 0; - $auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Moderators']; - break; - - case AUTH_ADMIN: - $auth_user[$f_forum_id][$key] = $is_admin; - $auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Administrators']; - break; - - default: - $auth_user[$f_forum_id][$key] = 0; - break; - } - } - } - } - - // - // Is user a moderator? - // - if ( $forum_id != AUTH_LIST_ALL ) - { - $auth_user['auth_mod'] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_MOD, 'auth_mod', $u_access, $is_admin) : 0; - } - else - { - for($k = 0; $k < count($f_access); $k++) - { - $f_forum_id = $f_access[$k]['forum_id']; - $u_access[$f_forum_id] = isset($u_access[$f_forum_id]) ? $u_access[$f_forum_id] : array(); - - $auth_user[$f_forum_id]['auth_mod'] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_MOD, 'auth_mod', $u_access[$f_forum_id], $is_admin) : 0; - } - } - - return $auth_user; -} - -function auth_check_user($type, $key, $u_access, $is_admin) -{ - $auth_user = 0; - - if ( count($u_access) ) - { - for($j = 0; $j < count($u_access); $j++) - { - $result = 0; - switch($type) - { - case AUTH_ACL: - $result = $u_access[$j][$key]; - - case AUTH_MOD: - $result = $result || $u_access[$j]['auth_mod']; - - case AUTH_ADMIN: - $result = $result || $is_admin; - break; - } - - $auth_user = $auth_user || $result; - } - } - else - { - $auth_user = $is_admin; - } - - return $auth_user; -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/bbcode.php b/phpBB2/includes/bbcode.php deleted file mode 100644 index 2ec4232..0000000 --- a/phpBB2/includes/bbcode.php +++ /dev/null @@ -1,790 +0,0 @@ -make_filename('bbcode.tpl'); - $tpl = fread(fopen($tpl_filename, 'r'), filesize($tpl_filename)); - - // replace \ with \\ and then ' with \'. - $tpl = str_replace('\\', '\\\\', $tpl); - $tpl = str_replace('\'', '\\\'', $tpl); - - // strip newlines. - $tpl = str_replace("\n", '', $tpl); - - // Turn template blocks into PHP assignment statements for the values of $bbcode_tpls.. - $tpl = preg_replace('#(.*?)#', "\n" . '$bbcode_tpls[\'\\1\'] = \'\\2\';', $tpl); - - $bbcode_tpls = array(); - - eval($tpl); - - return $bbcode_tpls; -} - - -/** - * Prepares the loaded bbcode templates for insertion into preg_replace() - * or str_replace() calls in the bbencode_second_pass functions. This - * means replacing template placeholders with the appropriate preg backrefs - * or with language vars. NOTE: If you change how the regexps work in - * bbencode_second_pass(), you MUST change this function. - * - * Nathan Codding, Sept 26 2001 - * - */ -function prepare_bbcode_template($bbcode_tpl) -{ - global $lang; - - $bbcode_tpl['olist_open'] = str_replace('{LIST_TYPE}', '\\1', $bbcode_tpl['olist_open']); - - $bbcode_tpl['color_open'] = str_replace('{COLOR}', '\\1', $bbcode_tpl['color_open']); - - $bbcode_tpl['size_open'] = str_replace('{SIZE}', '\\1', $bbcode_tpl['size_open']); - - $bbcode_tpl['quote_open'] = str_replace('{L_QUOTE}', $lang['Quote'], $bbcode_tpl['quote_open']); - - $bbcode_tpl['quote_username_open'] = str_replace('{L_QUOTE}', $lang['Quote'], $bbcode_tpl['quote_username_open']); - $bbcode_tpl['quote_username_open'] = str_replace('{L_WROTE}', $lang['wrote'], $bbcode_tpl['quote_username_open']); - $bbcode_tpl['quote_username_open'] = str_replace('{USERNAME}', '\\1', $bbcode_tpl['quote_username_open']); - - $bbcode_tpl['code_open'] = str_replace('{L_CODE}', $lang['Code'], $bbcode_tpl['code_open']); - - $bbcode_tpl['img'] = str_replace('{URL}', '\\1', $bbcode_tpl['img']); - - // We do URLs in several different ways.. - $bbcode_tpl['url1'] = str_replace('{URL}', '\\1', $bbcode_tpl['url']); - $bbcode_tpl['url1'] = str_replace('{DESCRIPTION}', '\\1', $bbcode_tpl['url1']); - - $bbcode_tpl['url2'] = str_replace('{URL}', 'http://\\1', $bbcode_tpl['url']); - $bbcode_tpl['url2'] = str_replace('{DESCRIPTION}', '\\1', $bbcode_tpl['url2']); - - $bbcode_tpl['url3'] = str_replace('{URL}', '\\1', $bbcode_tpl['url']); - $bbcode_tpl['url3'] = str_replace('{DESCRIPTION}', '\\2', $bbcode_tpl['url3']); - - $bbcode_tpl['url4'] = str_replace('{URL}', 'http://\\1', $bbcode_tpl['url']); - $bbcode_tpl['url4'] = str_replace('{DESCRIPTION}', '\\3', $bbcode_tpl['url4']); - - $bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']); - - define("BBCODE_TPL_READY", true); - - return $bbcode_tpl; -} - - -/** - * Does second-pass bbencoding. This should be used before displaying the message in - * a thread. Assumes the message is already first-pass encoded, and we are given the - * correct UID as used in first-pass encoding. - */ -function bbencode_second_pass($text, $uid) -{ - global $lang, $bbcode_tpl; - - $text = preg_replace('#(script|about|applet|activex|chrome):#is', "\\1:", $text); - - // pad it with a space so we can distinguish between FALSE and matching the 1st char (index 0). - // This is important; bbencode_quote(), bbencode_list(), and bbencode_code() all depend on it. - $text = " " . $text; - - // First: If there isn't a "[" and a "]" in the message, don't bother. - if (! (strpos($text, "[") && strpos($text, "]")) ) - { - // Remove padding, return. - $text = substr($text, 1); - return $text; - } - - // Only load the templates ONCE.. - if (!defined("BBCODE_TPL_READY")) - { - // load templates from file into array. - $bbcode_tpl = load_bbcode_template(); - - // prepare array for use in regexps. - $bbcode_tpl = prepare_bbcode_template($bbcode_tpl); - } - - // [CODE] and [/CODE] for posting code (HTML, PHP, C etc etc) in your posts. - $text = bbencode_second_pass_code($text, $uid, $bbcode_tpl); - - // [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff. - $text = str_replace("[quote:$uid]", $bbcode_tpl['quote_open'], $text); - $text = str_replace("[/quote:$uid]", $bbcode_tpl['quote_close'], $text); - - // New one liner to deal with opening quotes with usernames... - // replaces the two line version that I had here before.. - $text = preg_replace("/\[quote:$uid=\"(.*?)\"\]/si", $bbcode_tpl['quote_username_open'], $text); - - // [list] and [list=x] for (un)ordered lists. - // unordered lists - $text = str_replace("[list:$uid]", $bbcode_tpl['ulist_open'], $text); - // li tags - $text = str_replace("[*:$uid]", $bbcode_tpl['listitem'], $text); - // ending tags - $text = str_replace("[/list:u:$uid]", $bbcode_tpl['ulist_close'], $text); - $text = str_replace("[/list:o:$uid]", $bbcode_tpl['olist_close'], $text); - // Ordered lists - $text = preg_replace("/\[list=([a1]):$uid\]/si", $bbcode_tpl['olist_open'], $text); - - // colours - $text = preg_replace("/\[color=(\#[0-9A-F]{6}|[a-z]+):$uid\]/si", $bbcode_tpl['color_open'], $text); - $text = str_replace("[/color:$uid]", $bbcode_tpl['color_close'], $text); - - // size - $text = preg_replace("/\[size=([1-2]?[0-9]):$uid\]/si", $bbcode_tpl['size_open'], $text); - $text = str_replace("[/size:$uid]", $bbcode_tpl['size_close'], $text); - - // [b] and [/b] for bolding text. - $text = str_replace("[b:$uid]", $bbcode_tpl['b_open'], $text); - $text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text); - - // [u] and [/u] for underlining text. - $text = str_replace("[u:$uid]", $bbcode_tpl['u_open'], $text); - $text = str_replace("[/u:$uid]", $bbcode_tpl['u_close'], $text); - - // [i] and [/i] for italicizing text. - $text = str_replace("[i:$uid]", $bbcode_tpl['i_open'], $text); - $text = str_replace("[/i:$uid]", $bbcode_tpl['i_close'], $text); - - // Patterns and replacements for URL and email tags.. - $patterns = array(); - $replacements = array(); - - // [img]image_url_here[/img] code.. - // This one gets first-passed.. - $patterns[] = "#\[img:$uid\]([^?](?:[^\[]+|\[(?!url))*?)\[/img:$uid\]#i"; - $replacements[] = $bbcode_tpl['img']; - - // matches a [url]xxxx://www.phpbb.com[/url] code.. - $patterns[] = "#\[url\]([\w]+?://([\w\#$%&~/.\-;:=,?@\]+]+|\[(?!url=))*?)\[/url\]#is"; - $replacements[] = $bbcode_tpl['url1']; - - // [url]www.phpbb.com[/url] code.. (no xxxx:// prefix). - $patterns[] = "#\[url\]((www|ftp)\.([\w\#$%&~/.\-;:=,?@\]+]+|\[(?!url=))*?)\[/url\]#is"; - $replacements[] = $bbcode_tpl['url2']; - - // [url=xxxx://www.phpbb.com]phpBB[/url] code.. - $patterns[] = "#\[url=([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/url\]#is"; - $replacements[] = $bbcode_tpl['url3']; - - // [url=www.phpbb.com]phpBB[/url] code.. (no xxxx:// prefix). - $patterns[] = "#\[url=((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/url\]#is"; - $replacements[] = $bbcode_tpl['url4']; - - // [email]user@domain.tld[/email] code.. - $patterns[] = "#\[email\]([a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si"; - $replacements[] = $bbcode_tpl['email']; - - $text = preg_replace($patterns, $replacements, $text); - - // Remove our padding from the string.. - $text = substr($text, 1); - - return $text; - -} // bbencode_second_pass() - -// Need to initialize the random numbers only ONCE -mt_srand( (double) microtime() * 1000000); - -function make_bbcode_uid() -{ - // Unique ID for this message.. - - $uid = dss_rand(); - $uid = substr($uid, 0, BBCODE_UID_LEN); - - return $uid; -} - -function bbencode_first_pass($text, $uid) -{ - // pad it with a space so we can distinguish between FALSE and matching the 1st char (index 0). - // This is important; bbencode_quote(), bbencode_list(), and bbencode_code() all depend on it. - $text = " " . $text; - - // [CODE] and [/CODE] for posting code (HTML, PHP, C etc etc) in your posts. - $text = bbencode_first_pass_pda($text, $uid, '[code]', '[/code]', '', true, ''); - - // [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff. - $text = bbencode_first_pass_pda($text, $uid, '[quote]', '[/quote]', '', false, ''); - $text = bbencode_first_pass_pda($text, $uid, '/\[quote=\\\\"(.*?)\\\\"\]/is', '[/quote]', '', false, '', "[quote:$uid=\\\"\\1\\\"]"); - - // [list] and [list=x] for (un)ordered lists. - $open_tag = array(); - $open_tag[0] = "[list]"; - - // unordered.. - $text = bbencode_first_pass_pda($text, $uid, $open_tag, "[/list]", "[/list:u]", false, 'replace_listitems'); - - $open_tag[0] = "[list=1]"; - $open_tag[1] = "[list=a]"; - - // ordered. - $text = bbencode_first_pass_pda($text, $uid, $open_tag, "[/list]", "[/list:o]", false, 'replace_listitems'); - - // [color] and [/color] for setting text color - $text = preg_replace("#\[color=(\#[0-9A-F]{6}|[a-z\-]+)\](.*?)\[/color\]#si", "[color=\\1:$uid]\\2[/color:$uid]", $text); - - // [size] and [/size] for setting text size - $text = preg_replace("#\[size=([1-2]?[0-9])\](.*?)\[/size\]#si", "[size=\\1:$uid]\\2[/size:$uid]", $text); - - // [b] and [/b] for bolding text. - $text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text); - - // [u] and [/u] for underlining text. - $text = preg_replace("#\[u\](.*?)\[/u\]#si", "[u:$uid]\\1[/u:$uid]", $text); - - // [i] and [/i] for italicizing text. - $text = preg_replace("#\[i\](.*?)\[/i\]#si", "[i:$uid]\\1[/i:$uid]", $text); - - // [img]image_url_here[/img] code.. - $text = preg_replace("#\[img\]((http|ftp|https|ftps)://)([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text); - - // Remove our padding from the string.. - return substr($text, 1);; - -} // bbencode_first_pass() - -/** - * $text - The text to operate on. - * $uid - The UID to add to matching tags. - * $open_tag - The opening tag to match. Can be an array of opening tags. - * $close_tag - The closing tag to match. - * $close_tag_new - The closing tag to replace with. - * $mark_lowest_level - boolean - should we specially mark the tags that occur - * at the lowest level of nesting? (useful for [code], because - * we need to match these tags first and transform HTML tags - * in their contents.. - * $func - This variable should contain a string that is the name of a function. - * That function will be called when a match is found, and passed 2 - * parameters: ($text, $uid). The function should return a string. - * This is used when some transformation needs to be applied to the - * text INSIDE a pair of matching tags. If this variable is FALSE or the - * empty string, it will not be executed. - * If open_tag is an array, then the pda will try to match pairs consisting of - * any element of open_tag followed by close_tag. This allows us to match things - * like [list=A]...[/list] and [list=1]...[/list] in one pass of the PDA. - * - * NOTES: - this function assumes the first character of $text is a space. - * - every opening tag and closing tag must be of the [...] format. - */ -function bbencode_first_pass_pda($text, $uid, $open_tag, $close_tag, $close_tag_new, $mark_lowest_level, $func, $open_regexp_replace = false) -{ - $open_tag_count = 0; - - if (!$close_tag_new || ($close_tag_new == '')) - { - $close_tag_new = $close_tag; - } - - $close_tag_length = strlen($close_tag); - $close_tag_new_length = strlen($close_tag_new); - $uid_length = strlen($uid); - - $use_function_pointer = ($func && ($func != '')); - - $stack = array(); - - if (is_array($open_tag)) - { - if (0 == count($open_tag)) - { - // No opening tags to match, so return. - return $text; - } - $open_tag_count = count($open_tag); - } - else - { - // only one opening tag. make it into a 1-element array. - $open_tag_temp = $open_tag; - $open_tag = array(); - $open_tag[0] = $open_tag_temp; - $open_tag_count = 1; - } - - $open_is_regexp = false; - - if ($open_regexp_replace) - { - $open_is_regexp = true; - if (!is_array($open_regexp_replace)) - { - $open_regexp_temp = $open_regexp_replace; - $open_regexp_replace = array(); - $open_regexp_replace[0] = $open_regexp_temp; - } - } - - if ($mark_lowest_level && $open_is_regexp) - { - message_die(GENERAL_ERROR, "Unsupported operation for bbcode_first_pass_pda()."); - } - - // Start at the 2nd char of the string, looking for opening tags. - $curr_pos = 1; - while ($curr_pos && ($curr_pos < strlen($text))) - { - $curr_pos = strpos($text, "[", $curr_pos); - - // If not found, $curr_pos will be 0, and the loop will end. - if ($curr_pos) - { - // We found a [. It starts at $curr_pos. - // check if it's a starting or ending tag. - $found_start = false; - $which_start_tag = ""; - $start_tag_index = -1; - - for ($i = 0; $i < $open_tag_count; $i++) - { - // Grab everything until the first "]"... - $possible_start = substr($text, $curr_pos, strpos($text, ']', $curr_pos + 1) - $curr_pos + 1); - - // - // We're going to try and catch usernames with "[' characters. - // - if( preg_match('#\[quote=\\\"#si', $possible_start, $match) && !preg_match('#\[quote=\\\"(.*?)\\\"\]#si', $possible_start) ) - { - // OK we are in a quote tag that probably contains a ] bracket. - // Grab a bit more of the string to hopefully get all of it.. - if ($close_pos = strpos($text, '"]', $curr_pos + 14)) - { - if (strpos(substr($text, $curr_pos + 14, $close_pos - ($curr_pos + 14)), '[quote') === false) - { - $possible_start = substr($text, $curr_pos, $close_pos - $curr_pos + 7); - } - } - } - - // Now compare, either using regexp or not. - if ($open_is_regexp) - { - $match_result = array(); - if (preg_match($open_tag[$i], $possible_start, $match_result)) - { - $found_start = true; - $which_start_tag = $match_result[0]; - $start_tag_index = $i; - break; - } - } - else - { - // straightforward string comparison. - if (0 == strcasecmp($open_tag[$i], $possible_start)) - { - $found_start = true; - $which_start_tag = $open_tag[$i]; - $start_tag_index = $i; - break; - } - } - } - - if ($found_start) - { - // We have an opening tag. - // Push its position, the text we matched, and its index in the open_tag array on to the stack, and then keep going to the right. - $match = array("pos" => $curr_pos, "tag" => $which_start_tag, "index" => $start_tag_index); - array_push($stack, $match); - // - // Rather than just increment $curr_pos - // Set it to the ending of the tag we just found - // Keeps error in nested tag from breaking out - // of table structure.. - // - $curr_pos += strlen($possible_start); - } - else - { - // check for a closing tag.. - $possible_end = substr($text, $curr_pos, $close_tag_length); - if (0 == strcasecmp($close_tag, $possible_end)) - { - // We have an ending tag. - // Check if we've already found a matching starting tag. - if (sizeof($stack) > 0) - { - // There exists a starting tag. - $curr_nesting_depth = sizeof($stack); - // We need to do 2 replacements now. - $match = array_pop($stack); - $start_index = $match['pos']; - $start_tag = $match['tag']; - $start_length = strlen($start_tag); - $start_tag_index = $match['index']; - - if ($open_is_regexp) - { - $start_tag = preg_replace($open_tag[$start_tag_index], $open_regexp_replace[$start_tag_index], $start_tag); - } - - // everything before the opening tag. - $before_start_tag = substr($text, 0, $start_index); - - // everything after the opening tag, but before the closing tag. - $between_tags = substr($text, $start_index + $start_length, $curr_pos - $start_index - $start_length); - - // Run the given function on the text between the tags.. - if ($use_function_pointer) - { - $between_tags = $func($between_tags, $uid); - } - - // everything after the closing tag. - $after_end_tag = substr($text, $curr_pos + $close_tag_length); - - // Mark the lowest nesting level if needed. - if ($mark_lowest_level && ($curr_nesting_depth == 1)) - { - if ($open_tag[0] == '[code]') - { - $code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\[#', '#\]#', '#\(#', '#\)#', '#\{#', '#\}#'); - $code_entities_replace = array('<', '>', '"', ':', '[', ']', '(', ')', '{', '}'); - $between_tags = preg_replace($code_entities_match, $code_entities_replace, $between_tags); - } - $text = $before_start_tag . substr($start_tag, 0, $start_length - 1) . ":$curr_nesting_depth:$uid]"; - $text .= $between_tags . substr($close_tag_new, 0, $close_tag_new_length - 1) . ":$curr_nesting_depth:$uid]"; - } - else - { - if ($open_tag[0] == '[code]') - { - $text = $before_start_tag . '[code]'; - $text .= $between_tags . '[/code]'; - } - else - { - if ($open_is_regexp) - { - $text = $before_start_tag . $start_tag; - } - else - { - $text = $before_start_tag . substr($start_tag, 0, $start_length - 1) . ":$uid]"; - } - $text .= $between_tags . substr($close_tag_new, 0, $close_tag_new_length - 1) . ":$uid]"; - } - } - - $text .= $after_end_tag; - - // Now.. we've screwed up the indices by changing the length of the string. - // So, if there's anything in the stack, we want to resume searching just after it. - // otherwise, we go back to the start. - if (sizeof($stack) > 0) - { - $match = array_pop($stack); - $curr_pos = $match['pos']; -// bbcode_array_push($stack, $match); -// ++$curr_pos; - } - else - { - $curr_pos = 1; - } - } - else - { - // No matching start tag found. Increment pos, keep going. - ++$curr_pos; - } - } - else - { - // No starting tag or ending tag.. Increment pos, keep looping., - ++$curr_pos; - } - } - } - } // while - - return $text; - -} // bbencode_first_pass_pda() - -/** - * Does second-pass bbencoding of the [code] tags. This includes - * running htmlspecialchars() over the text contained between - * any pair of [code] tags that are at the first level of - * nesting. Tags at the first level of nesting are indicated - * by this format: [code:1:$uid] ... [/code:1:$uid] - * Other tags are in this format: [code:$uid] ... [/code:$uid] - */ -function bbencode_second_pass_code($text, $uid, $bbcode_tpl) -{ - global $lang; - - $code_start_html = $bbcode_tpl['code_open']; - $code_end_html = $bbcode_tpl['code_close']; - - // First, do all the 1st-level matches. These need an htmlspecialchars() run, - // so they have to be handled differently. - $match_count = preg_match_all("#\[code:1:$uid\](.*?)\[/code:1:$uid\]#si", $text, $matches); - - for ($i = 0; $i < $match_count; $i++) - { - $before_replace = $matches[1][$i]; - $after_replace = $matches[1][$i]; - - // Replace 2 spaces with "  " so non-tabbed code indents without making huge long lines. - $after_replace = str_replace(" ", "  ", $after_replace); - // now Replace 2 spaces with "  " to catch odd #s of spaces. - $after_replace = str_replace(" ", "  ", $after_replace); - - // Replace tabs with "   " so tabbed code indents sorta right without making huge long lines. - $after_replace = str_replace("\t", "   ", $after_replace); - - // now Replace space occurring at the beginning of a line - $after_replace = preg_replace("/^ {1}/m", ' ', $after_replace); - - $str_to_match = "[code:1:$uid]" . $before_replace . "[/code:1:$uid]"; - - $replacement = $code_start_html; - $replacement .= $after_replace; - $replacement .= $code_end_html; - - $text = str_replace($str_to_match, $replacement, $text); - } - - // Now, do all the non-first-level matches. These are simple. - $text = str_replace("[code:$uid]", $code_start_html, $text); - $text = str_replace("[/code:$uid]", $code_end_html, $text); - - return $text; - -} // bbencode_second_pass_code() - -/** - * Rewritten by Nathan Codding - Feb 6, 2001. - * - Goes through the given string, and replaces xxxx://yyyy with an HTML tag linking - * to that URL - * - Goes through the given string, and replaces www.xxxx.yyyy[zzzz] with an HTML tag linking - * to http://www.xxxx.yyyy[/zzzz] - * - Goes through the given string, and replaces xxxx@yyyy with an HTML mailto: tag linking - * to that email address - * - Only matches these 2 patterns either after a space, or at the beginning of a line - * - * Notes: the email one might get annoying - it's easy to make it more restrictive, though.. maybe - * have it require something like xxxx@yyyy.zzzz or such. We'll see. - */ -function make_clickable($text) -{ - $text = preg_replace('#(script|about|applet|activex|chrome):#is', "\\1:", $text); - - // pad it with a space so we can match things at the start of the 1st line. - $ret = ' ' . $text; - - // matches an "xxxx://yyyy" URL at the start of a line, or after a space. - // xxxx can only be alpha characters. - // yyyy is anything up to the first space, newline, comma, double quote or < - $ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1\\2", $ret); - - // matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing - // Must contain at least 2 dots. xxxx contains either alphanum, or "-" - // zzzz is optional.. will contain everything up to the first space, newline, - // comma, double quote or <. - $ret = preg_replace("#(^|[\n ])((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1\\2", $ret); - - // matches an email@domain type address at the start of a line, or after a space. - // Note: Only the followed chars are valid; alphanums, "-", "_" and or ".". - $ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1\\2@\\3", $ret); - - // Remove our padding.. - $ret = substr($ret, 1); - - return($ret); -} - -/** - * Nathan Codding - Feb 6, 2001 - * Reverses the effects of make_clickable(), for use in editpost. - * - Does not distinguish between "www.xxxx.yyyy" and "http://aaaa.bbbb" type URLs. - * - */ -function undo_make_clickable($text) -{ - $text = preg_replace("#.*?#i", "\\1", $text); - $text = preg_replace("#.*?#i", "\\1", $text); - - return $text; - -} - -/** - * Nathan Codding - August 24, 2000. - * Takes a string, and does the reverse of the PHP standard function - * htmlspecialchars(). - */ -function undo_htmlspecialchars($input) -{ - $input = preg_replace("/>/i", ">", $input); - $input = preg_replace("/</i", "<", $input); - $input = preg_replace("/"/i", "\"", $input); - $input = preg_replace("/&/i", "&", $input); - - return $input; -} - -/** - * This is used to change a [*] tag into a [*:$uid] tag as part - * of the first-pass bbencoding of [list] tags. It fits the - * standard required in order to be passed as a variable - * function into bbencode_first_pass_pda(). - */ -function replace_listitems($text, $uid) -{ - $text = str_replace("[*]", "[*:$uid]", $text); - - return $text; -} - -/** - * Escapes the "/" character with "\/". This is useful when you need - * to stick a runtime string into a PREG regexp that is being delimited - * with slashes. - */ -function escape_slashes($input) -{ - $output = str_replace('/', '\/', $input); - return $output; -} - -/** - * This function does exactly what the PHP4 function array_push() does - * however, to keep phpBB compatable with PHP 3 we had to come up with our own - * method of doing it. - * This function was deprecated in phpBB 2.0.18 - */ -function bbcode_array_push(&$stack, $value) -{ - $stack[] = $value; - return(sizeof($stack)); -} - -/** - * This function does exactly what the PHP4 function array_pop() does - * however, to keep phpBB compatable with PHP 3 we had to come up with our own - * method of doing it. - * This function was deprecated in phpBB 2.0.18 - */ -function bbcode_array_pop(&$stack) -{ - $arrSize = count($stack); - $x = 1; - - while(list($key, $val) = each($stack)) - { - if($x < count($stack)) - { - $tmpArr[] = $val; - } - else - { - $return_val = $val; - } - $x++; - } - $stack = $tmpArr; - - return($return_val); -} - -// -// Smilies code ... would this be better tagged on to the end of bbcode.php? -// Probably so and I'll move it before B2 -// -function smilies_pass($message) -{ - static $orig, $repl; - - if (!isset($orig)) - { - global $db, $board_config; - $orig = $repl = array(); - - $sql = 'SELECT * FROM ' . SMILIES_TABLE; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain smilies data", "", __LINE__, __FILE__, $sql); - } - $smilies = $db->sql_fetchrowset($result); - - if (count($smilies)) - { - usort($smilies, 'smiley_sort'); - } - - for ($i = 0; $i < count($smilies); $i++) - { - $orig[] = "/(?<=.\W|\W.|^\W)" . preg_quote($smilies[$i]['code'], "/") . "(?=.\W|\W.|\W$)/"; - $repl[] = '' . $smilies[$i]['emoticon'] . ''; - } - } - - if (count($orig)) - { - $message = preg_replace($orig, $repl, ' ' . $message . ' '); - $message = substr($message, 1, -1); - } - - return $message; -} - -function smiley_sort($a, $b) -{ - if ( strlen($a['code']) == strlen($b['code']) ) - { - return 0; - } - - return ( strlen($a['code']) > strlen($b['code']) ) ? -1 : 1; -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/constants.php b/phpBB2/includes/constants.php deleted file mode 100644 index 53e4221..0000000 --- a/phpBB2/includes/constants.php +++ /dev/null @@ -1,183 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2/includes/db.php b/phpBB2/includes/db.php deleted file mode 100644 index 89c18c2..0000000 --- a/phpBB2/includes/db.php +++ /dev/null @@ -1,66 +0,0 @@ -db_connect_id) -{ - message_die(CRITICAL_ERROR, "Could not connect to the database"); -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/emailer.php b/phpBB2/includes/emailer.php deleted file mode 100644 index 3bde05a..0000000 --- a/phpBB2/includes/emailer.php +++ /dev/null @@ -1,373 +0,0 @@ -reset(); - $this->use_smtp = $use_smtp; - $this->reply_to = $this->from = ''; - } - - // Resets all the data (address, template file, etc etc to default - function reset() - { - $this->addresses = array(); - $this->vars = $this->msg = $this->extra_headers = ''; - } - - // Sets an email address to send to - function email_address($address) - { - $this->addresses['to'] = trim($address); - } - - function cc($address) - { - $this->addresses['cc'][] = trim($address); - } - - function bcc($address) - { - $this->addresses['bcc'][] = trim($address); - } - - function replyto($address) - { - $this->reply_to = trim($address); - } - - function from($address) - { - $this->from = trim($address); - } - - // set up subject for mail - function set_subject($subject = '') - { - $this->subject = trim(preg_replace('#[\n\r]+#s', '', $subject)); - } - - // set up extra mail headers - function extra_headers($headers) - { - $this->extra_headers .= trim($headers) . "\n"; - } - - function use_template($template_file, $template_lang = '') - { - global $board_config, $phpbb_root_path; - - if (trim($template_file) == '') - { - message_die(GENERAL_ERROR, 'No template file set', '', __LINE__, __FILE__); - } - - if (trim($template_lang) == '') - { - $template_lang = $board_config['default_lang']; - } - - if (empty($this->tpl_msg[$template_lang . $template_file])) - { - $tpl_file = $phpbb_root_path . 'language/lang_' . $template_lang . '/email/' . $template_file . '.tpl'; - - if (!@file_exists(@phpbb_realpath($tpl_file))) - { - $tpl_file = $phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/email/' . $template_file . '.tpl'; - - if (!@file_exists(@phpbb_realpath($tpl_file))) - { - message_die(GENERAL_ERROR, 'Could not find email template file :: ' . $template_file, '', __LINE__, __FILE__); - } - } - - if (!($fd = @fopen($tpl_file, 'r'))) - { - message_die(GENERAL_ERROR, 'Failed opening template file :: ' . $tpl_file, '', __LINE__, __FILE__); - } - - $this->tpl_msg[$template_lang . $template_file] = fread($fd, filesize($tpl_file)); - fclose($fd); - } - - $this->msg = $this->tpl_msg[$template_lang . $template_file]; - - return true; - } - - // assign variables - function assign_vars($vars) - { - $this->vars = (empty($this->vars)) ? $vars : $this->vars . $vars; - } - - // Send the mail out to the recipients set previously in var $this->address - function send() - { - global $board_config, $lang, $phpEx, $phpbb_root_path, $db; - - // Escape all quotes, else the eval will fail. - $this->msg = str_replace ("'", "\'", $this->msg); - $this->msg = preg_replace('#\{([a-z0-9\-_]*?)\}#is', "' . $\\1 . '", $this->msg); - - // Set vars - reset ($this->vars); - while (list($key, $val) = each($this->vars)) - { - $$key = $val; - } - - eval("\$this->msg = '$this->msg';"); - - // Clear vars - reset ($this->vars); - while (list($key, $val) = each($this->vars)) - { - unset($$key); - } - - // We now try and pull a subject from the email body ... if it exists, - // do this here because the subject may contain a variable - $drop_header = ''; - $match = array(); - if (preg_match('#^(Subject:(.*?))$#m', $this->msg, $match)) - { - $this->subject = (trim($match[2]) != '') ? trim($match[2]) : (($this->subject != '') ? $this->subject : 'No Subject'); - $drop_header .= '[\r\n]*?' . preg_quote($match[1], '#'); - } - else - { - $this->subject = (($this->subject != '') ? $this->subject : 'No Subject'); - } - - if (preg_match('#^(Charset:(.*?))$#m', $this->msg, $match)) - { - $this->encoding = (trim($match[2]) != '') ? trim($match[2]) : trim($lang['ENCODING']); - $drop_header .= '[\r\n]*?' . preg_quote($match[1], '#'); - } - else - { - $this->encoding = trim($lang['ENCODING']); - } - - if ($drop_header != '') - { - $this->msg = trim(preg_replace('#' . $drop_header . '#s', '', $this->msg)); - } - - $to = $this->addresses['to']; - - $cc = (count($this->addresses['cc'])) ? implode(', ', $this->addresses['cc']) : ''; - $bcc = (count($this->addresses['bcc'])) ? implode(', ', $this->addresses['bcc']) : ''; - - // Build header - $this->extra_headers = (($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') . (($this->from != '') ? "From: $this->from\n" : "From: " . $board_config['board_email'] . "\n") . "Return-Path: " . $board_config['board_email'] . "\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nMIME-Version: 1.0\nContent-type: text/plain; charset=" . $this->encoding . "\nContent-transfer-encoding: 8bit\nDate: " . date('r', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . $this->extra_headers . (($cc != '') ? "Cc: $cc\n" : '') . (($bcc != '') ? "Bcc: $bcc\n" : ''); - - // Send message ... removed $this->encode() from subject for time being - if ( $this->use_smtp ) - { - if ( !defined('SMTP_INCLUDED') ) - { - include($phpbb_root_path . 'includes/smtp.' . $phpEx); - } - - $result = smtpmail($to, $this->subject, $this->msg, $this->extra_headers); - } - else - { - $empty_to_header = ($to == '') ? TRUE : FALSE; - $to = ($to == '') ? (($board_config['sendmail_fix']) ? ' ' : 'Undisclosed-recipients:;') : $to; - - $result = @mail($to, $this->subject, preg_replace("#(?msg), $this->extra_headers); - - if (!$result && !$board_config['sendmail_fix'] && $empty_to_header) - { - $to = ' '; - - $sql = "UPDATE " . CONFIG_TABLE . " - SET config_value = '1' - WHERE config_name = 'sendmail_fix'"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Unable to update config table', '', __LINE__, __FILE__, $sql); - } - - $board_config['sendmail_fix'] = 1; - $result = @mail($to, $this->subject, preg_replace("#(?msg), $this->extra_headers); - } - } - - // Did it work? - if (!$result) - { - message_die(GENERAL_ERROR, 'Failed sending email :: ' . (($this->use_smtp) ? 'SMTP' : 'PHP') . ' :: ' . $result, '', __LINE__, __FILE__); - } - - return true; - } - - // Encodes the given string for proper display for this encoding ... nabbed - // from php.net and modified. There is an alternative encoding method which - // may produce lesd output but it's questionable as to its worth in this - // scenario IMO - function encode($str) - { - if ($this->encoding == '') - { - return $str; - } - - // define start delimimter, end delimiter and spacer - $end = "?="; - $start = "=?$this->encoding?B?"; - $spacer = "$end\r\n $start"; - - // determine length of encoded text within chunks and ensure length is even - $length = 75 - strlen($start) - strlen($end); - $length = floor($length / 2) * 2; - - // encode the string and split it into chunks with spacers after each chunk - $str = chunk_split(base64_encode($str), $length, $spacer); - - // remove trailing spacer and add start and end delimiters - $str = preg_replace('#' . preg_quote($spacer, '#') . '$#', '', $str); - - return $start . $str . $end; - } - - // - // Attach files via MIME. - // - function attachFile($filename, $mimetype = "application/octet-stream", $szFromAddress, $szFilenameToDisplay) - { - global $lang; - $mime_boundary = "--==================_846811060==_"; - - $this->msg = '--' . $mime_boundary . "\nContent-Type: text/plain;\n\tcharset=\"" . $lang['ENCODING'] . "\"\n\n" . $this->msg; - - if ($mime_filename) - { - $filename = $mime_filename; - $encoded = $this->encode_file($filename); - } - - $fd = fopen($filename, "r"); - $contents = fread($fd, filesize($filename)); - - $this->mimeOut = "--" . $mime_boundary . "\n"; - $this->mimeOut .= "Content-Type: " . $mimetype . ";\n\tname=\"$szFilenameToDisplay\"\n"; - $this->mimeOut .= "Content-Transfer-Encoding: quoted-printable\n"; - $this->mimeOut .= "Content-Disposition: attachment;\n\tfilename=\"$szFilenameToDisplay\"\n\n"; - - if ( $mimetype == "message/rfc822" ) - { - $this->mimeOut .= "From: ".$szFromAddress."\n"; - $this->mimeOut .= "To: ".$this->emailAddress."\n"; - $this->mimeOut .= "Date: ".date("D, d M Y H:i:s") . " UT\n"; - $this->mimeOut .= "Reply-To:".$szFromAddress."\n"; - $this->mimeOut .= "Subject: ".$this->mailSubject."\n"; - $this->mimeOut .= "X-Mailer: PHP/".phpversion()."\n"; - $this->mimeOut .= "MIME-Version: 1.0\n"; - } - - $this->mimeOut .= $contents."\n"; - $this->mimeOut .= "--" . $mime_boundary . "--" . "\n"; - - return $out; - // added -- to notify email client attachment is done - } - - function getMimeHeaders($filename, $mime_filename="") - { - $mime_boundary = "--==================_846811060==_"; - - if ($mime_filename) - { - $filename = $mime_filename; - } - - $out = "MIME-Version: 1.0\n"; - $out .= "Content-Type: multipart/mixed;\n\tboundary=\"$mime_boundary\"\n\n"; - $out .= "This message is in MIME format. Since your mail reader does not understand\n"; - $out .= "this format, some or all of this message may not be legible."; - - return $out; - } - - // - // Split string by RFC 2045 semantics (76 chars per line, end with \r\n). - // - function myChunkSplit($str) - { - $stmp = $str; - $len = strlen($stmp); - $out = ""; - - while ($len > 0) - { - if ($len >= 76) - { - $out .= substr($stmp, 0, 76) . "\r\n"; - $stmp = substr($stmp, 76); - $len = $len - 76; - } - else - { - $out .= $stmp . "\r\n"; - $stmp = ""; - $len = 0; - } - } - return $out; - } - - // - // Split the specified file up into a string and return it - // - function encode_file($sourcefile) - { - if (is_readable(phpbb_realpath($sourcefile))) - { - $fd = fopen($sourcefile, "r"); - $contents = fread($fd, filesize($sourcefile)); - $encoded = $this->myChunkSplit(base64_encode($contents)); - fclose($fd); - } - - return $encoded; - } - -} // class emailer - -?> \ No newline at end of file diff --git a/phpBB2/includes/functions.php b/phpBB2/includes/functions.php deleted file mode 100644 index c32c11a..0000000 --- a/phpBB2/includes/functions.php +++ /dev/null @@ -1,945 +0,0 @@ - " . ANONYMOUS; - break; - - case 'newestuser': - $sql = "SELECT user_id, username - FROM " . USERS_TABLE . " - WHERE user_id <> " . ANONYMOUS . " - ORDER BY user_id DESC - LIMIT 1"; - break; - - case 'postcount': - case 'topiccount': - $sql = "SELECT SUM(forum_topics) AS topic_total, SUM(forum_posts) AS post_total - FROM " . FORUMS_TABLE; - break; - } - - if ( !($result = $db->sql_query($sql)) ) - { - return false; - } - - $row = $db->sql_fetchrow($result); - - switch ( $mode ) - { - case 'usercount': - return $row['total']; - break; - case 'newestuser': - return $row; - break; - case 'postcount': - return $row['post_total']; - break; - case 'topiccount': - return $row['topic_total']; - break; - } - - return false; -} - -// added at phpBB 2.0.11 to properly format the username -function phpbb_clean_username($username) -{ - $username = substr(htmlspecialchars(str_replace("\'", "'", trim($username))), 0, 25); - $username = phpbb_rtrim($username, "\\"); - $username = str_replace("'", "\'", $username); - - return $username; -} - -/** -* This function is a wrapper for ltrim, as charlist is only supported in php >= 4.1.0 -* Added in phpBB 2.0.18 -*/ -function phpbb_ltrim($str, $charlist = false) -{ - if ($charlist === false) - { - return ltrim($str); - } - - $php_version = explode('.', PHP_VERSION); - - // php version < 4.1.0 - if ((int) $php_version[0] < 4 || ((int) $php_version[0] == 4 && (int) $php_version[1] < 1)) - { - while ($str{0} == $charlist) - { - $str = substr($str, 1); - } - } - else - { - $str = ltrim($str, $charlist); - } - - return $str; -} - -// added at phpBB 2.0.12 to fix a bug in PHP 4.3.10 (only supporting charlist in php >= 4.1.0) -function phpbb_rtrim($str, $charlist = false) -{ - if ($charlist === false) - { - return rtrim($str); - } - - $php_version = explode('.', PHP_VERSION); - - // php version < 4.1.0 - if ((int) $php_version[0] < 4 || ((int) $php_version[0] == 4 && (int) $php_version[1] < 1)) - { - while ($str{strlen($str)-1} == $charlist) - { - $str = substr($str, 0, strlen($str)-1); - } - } - else - { - $str = rtrim($str, $charlist); - } - - return $str; -} - -/** -* Our own generator of random values -* This uses a constantly changing value as the base for generating the values -* The board wide setting is updated once per page if this code is called -* With thanks to Anthrax101 for the inspiration on this one -* Added in phpBB 2.0.20 -*/ -function dss_rand() -{ - global $db, $board_config, $dss_seeded; - - $val = $board_config['rand_seed'] . microtime(); - $val = md5($val); - $board_config['rand_seed'] = md5($board_config['rand_seed'] . $val . 'a'); - - if($dss_seeded !== true) - { - $sql = "UPDATE " . CONFIG_TABLE . " SET - config_value = '" . $board_config['rand_seed'] . "' - WHERE config_name = 'rand_seed'"; - - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Unable to reseed PRNG", "", __LINE__, __FILE__, $sql); - } - - $dss_seeded = true; - } - - return substr($val, 4, 16); -} -// -// Get Userdata, $user can be username or user_id. If force_str is true, the username will be forced. -// -function get_userdata($user, $force_str = false) -{ - global $db; - - if (!is_numeric($user) || $force_str) - { - $user = phpbb_clean_username($user); - } - else - { - $user = intval($user); - } - - $sql = "SELECT * - FROM " . USERS_TABLE . " - WHERE "; - $sql .= ( ( is_integer($user) ) ? "user_id = $user" : "username = '" . str_replace("\'", "''", $user) . "'" ) . " AND user_id <> " . ANONYMOUS; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Tried obtaining data for a non-existent user', '', __LINE__, __FILE__, $sql); - } - - return ( $row = $db->sql_fetchrow($result) ) ? $row : false; -} - -function make_jumpbox($action, $match_forum_id = 0) -{ - global $template, $userdata, $lang, $db, $nav_links, $phpEx, $SID; - -// $is_auth = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata); - - $sql = "SELECT c.cat_id, c.cat_title, c.cat_order - FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f - WHERE f.cat_id = c.cat_id - GROUP BY c.cat_id, c.cat_title, c.cat_order - ORDER BY c.cat_order"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain category list.", "", __LINE__, __FILE__, $sql); - } - - $category_rows = array(); - while ( $row = $db->sql_fetchrow($result) ) - { - $category_rows[] = $row; - } - - if ( $total_categories = count($category_rows) ) - { - $sql = "SELECT * - FROM " . FORUMS_TABLE . " - ORDER BY cat_id, forum_order"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql); - } - - $boxstring = ''; - } - else - { - $boxstring .= ''; - } - - // Let the jumpbox work again in sites having additional session id checks. -// if ( !empty($SID) ) -// { - $boxstring .= ''; -// } - - $template->set_filenames(array( - 'jumpbox' => 'jumpbox.tpl') - ); - $template->assign_vars(array( - 'L_GO' => $lang['Go'], - 'L_JUMP_TO' => $lang['Jump_to'], - 'L_SELECT_FORUM' => $lang['Select_forum'], - - 'S_JUMPBOX_SELECT' => $boxstring, - 'S_JUMPBOX_ACTION' => append_sid($action)) - ); - $template->assign_var_from_handle('JUMPBOX', 'jumpbox'); - - return; -} - -// -// Initialise user settings on page load -function init_userprefs($userdata) -{ - global $board_config, $theme, $images; - global $template, $lang, $phpEx, $phpbb_root_path, $db; - global $nav_links; - - if ( $userdata['user_id'] != ANONYMOUS ) - { - if ( !empty($userdata['user_lang'])) - { - $default_lang = phpbb_ltrim(basename(phpbb_rtrim($userdata['user_lang'])), "'"); - } - - if ( !empty($userdata['user_dateformat']) ) - { - $board_config['default_dateformat'] = $userdata['user_dateformat']; - } - - if ( isset($userdata['user_timezone']) ) - { - $board_config['board_timezone'] = $userdata['user_timezone']; - } - } - else - { - $default_lang = phpbb_ltrim(basename(phpbb_rtrim($board_config['default_lang'])), "'"); - } - - if ( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $default_lang . '/lang_main.'.$phpEx)) ) - { - if ( $userdata['user_id'] != ANONYMOUS ) - { - // For logged in users, try the board default language next - $default_lang = phpbb_ltrim(basename(phpbb_rtrim($board_config['default_lang'])), "'"); - } - else - { - // For guests it means the default language is not present, try english - // This is a long shot since it means serious errors in the setup to reach here, - // but english is part of a new install so it's worth us trying - $default_lang = 'english'; - } - - if ( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $default_lang . '/lang_main.'.$phpEx)) ) - { - message_die(CRITICAL_ERROR, 'Could not locate valid language pack'); - } - } - - // If we've had to change the value in any way then let's write it back to the database - // before we go any further since it means there is something wrong with it - if ( $userdata['user_id'] != ANONYMOUS && $userdata['user_lang'] !== $default_lang ) - { - $sql = 'UPDATE ' . USERS_TABLE . " - SET user_lang = '" . $default_lang . "' - WHERE user_lang = '" . $userdata['user_lang'] . "'"; - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(CRITICAL_ERROR, 'Could not update user language info'); - } - - $userdata['user_lang'] = $default_lang; - } - elseif ( $userdata['user_id'] === ANONYMOUS && $board_config['default_lang'] !== $default_lang ) - { - $sql = 'UPDATE ' . CONFIG_TABLE . " - SET config_value = '" . $default_lang . "' - WHERE config_name = 'default_lang'"; - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(CRITICAL_ERROR, 'Could not update user language info'); - } - } - - $board_config['default_lang'] = $default_lang; - - include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); - - if ( defined('IN_ADMIN') ) - { - if( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.'.$phpEx)) ) - { - $board_config['default_lang'] = 'english'; - } - - include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx); - } - - // - // Set up style - // - if ( !$board_config['override_user_style'] ) - { - if ( $userdata['user_id'] != ANONYMOUS && $userdata['user_style'] > 0 ) - { - if ( $theme = setup_style($userdata['user_style']) ) - { - return; - } - } - } - - $theme = setup_style($board_config['default_style']); - - // - // Mozilla navigation bar - // Default items that should be valid on all pages. - // Defined here to correctly assign the Language Variables - // and be able to change the variables within code. - // - $nav_links['top'] = array ( - 'url' => append_sid($phpbb_root_path . 'index.' . $phpEx), - 'title' => sprintf($lang['Forum_Index'], $board_config['sitename']) - ); - $nav_links['search'] = array ( - 'url' => append_sid($phpbb_root_path . 'search.' . $phpEx), - 'title' => $lang['Search'] - ); - $nav_links['help'] = array ( - 'url' => append_sid($phpbb_root_path . 'faq.' . $phpEx), - 'title' => $lang['FAQ'] - ); - $nav_links['author'] = array ( - 'url' => append_sid($phpbb_root_path . 'memberlist.' . $phpEx), - 'title' => $lang['Memberlist'] - ); - - return; -} - -function setup_style($style) -{ - global $db, $board_config, $template, $images, $phpbb_root_path; - - $sql = 'SELECT * - FROM ' . THEMES_TABLE . ' - WHERE themes_id = ' . (int) $style; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(CRITICAL_ERROR, 'Could not query database for theme info'); - } - - if ( !($row = $db->sql_fetchrow($result)) ) - { - // We are trying to setup a style which does not exist in the database - // Try to fallback to the board default (if the user had a custom style) - // and then any users using this style to the default if it succeeds - if ( $style != $board_config['default_style']) - { - $sql = 'SELECT * - FROM ' . THEMES_TABLE . ' - WHERE themes_id = ' . (int) $board_config['default_style']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(CRITICAL_ERROR, 'Could not query database for theme info'); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $db->sql_freeresult($result); - - $sql = 'UPDATE ' . USERS_TABLE . ' - SET user_style = ' . (int) $board_config['default_style'] . " - WHERE user_style = $style"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(CRITICAL_ERROR, 'Could not update user theme info'); - } - } - else - { - message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]"); - } - } - else - { - message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]"); - } - } - - $template_path = 'templates/' ; - $template_name = $row['template_name'] ; - - $template = new Template($phpbb_root_path . $template_path . $template_name); - - if ( $template ) - { - $current_template_path = $template_path . $template_name; - @include($phpbb_root_path . $template_path . $template_name . '/' . $template_name . '.cfg'); - - if ( !defined('TEMPLATE_CONFIG') ) - { - message_die(CRITICAL_ERROR, "Could not open $template_name template config file", '', __LINE__, __FILE__); - } - - $img_lang = ( file_exists(@phpbb_realpath($phpbb_root_path . $current_template_path . '/images/lang_' . $board_config['default_lang'])) ) ? $board_config['default_lang'] : 'english'; - - while( list($key, $value) = @each($images) ) - { - if ( !is_array($value) ) - { - $images[$key] = str_replace('{LANG}', 'lang_' . $img_lang, $value); - } - } - } - - return $row; -} - -function encode_ip($dotquad_ip) -{ - $ip_sep = explode('.', $dotquad_ip); - return sprintf('%02x%02x%02x%02x', $ip_sep[0], $ip_sep[1], $ip_sep[2], $ip_sep[3]); -} - -function decode_ip($int_ip) -{ - $hexipbang = explode('.', chunk_split($int_ip, 2, '.')); - return hexdec($hexipbang[0]). '.' . hexdec($hexipbang[1]) . '.' . hexdec($hexipbang[2]) . '.' . hexdec($hexipbang[3]); -} - -// -// Create date/time from format and timezone -// -function create_date($format, $gmepoch, $tz) -{ - global $board_config, $lang; - static $translate; - - if ( empty($translate) && $board_config['default_lang'] != 'english' ) - { - @reset($lang['datetime']); - while ( list($match, $replace) = @each($lang['datetime']) ) - { - $translate[$match] = $replace; - } - } - - return ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * $tz)), $translate) : @gmdate($format, $gmepoch + (3600 * $tz)); -} - -// -// Pagination routine, generates -// page number sequence -// -function generate_pagination($base_url, $num_items, $per_page, $start_item, $add_prevnext_text = TRUE) -{ - global $lang; - - $total_pages = ceil($num_items/$per_page); - - if ( $total_pages == 1 ) - { - return ''; - } - - $on_page = floor($start_item / $per_page) + 1; - - $page_string = ''; - if ( $total_pages > 10 ) - { - $init_page_max = ( $total_pages > 3 ) ? 3 : $total_pages; - - for($i = 1; $i < $init_page_max + 1; $i++) - { - $page_string .= ( $i == $on_page ) ? '' . $i . '' : '' . $i . ''; - if ( $i < $init_page_max ) - { - $page_string .= ", "; - } - } - - if ( $total_pages > 3 ) - { - if ( $on_page > 1 && $on_page < $total_pages ) - { - $page_string .= ( $on_page > 5 ) ? ' ... ' : ', '; - - $init_page_min = ( $on_page > 4 ) ? $on_page : 5; - $init_page_max = ( $on_page < $total_pages - 4 ) ? $on_page : $total_pages - 4; - - for($i = $init_page_min - 1; $i < $init_page_max + 2; $i++) - { - $page_string .= ($i == $on_page) ? '' . $i . '' : '' . $i . ''; - if ( $i < $init_page_max + 1 ) - { - $page_string .= ', '; - } - } - - $page_string .= ( $on_page < $total_pages - 4 ) ? ' ... ' : ', '; - } - else - { - $page_string .= ' ... '; - } - - for($i = $total_pages - 2; $i < $total_pages + 1; $i++) - { - $page_string .= ( $i == $on_page ) ? '' . $i . '' : '' . $i . ''; - if( $i < $total_pages ) - { - $page_string .= ", "; - } - } - } - } - else - { - for($i = 1; $i < $total_pages + 1; $i++) - { - $page_string .= ( $i == $on_page ) ? '' . $i . '' : '' . $i . ''; - if ( $i < $total_pages ) - { - $page_string .= ', '; - } - } - } - - if ( $add_prevnext_text ) - { - if ( $on_page > 1 ) - { - $page_string = ' ' . $lang['Previous'] . '  ' . $page_string; - } - - if ( $on_page < $total_pages ) - { - $page_string .= '  ' . $lang['Next'] . ''; - } - - } - - $page_string = $lang['Goto_page'] . ' ' . $page_string; - - return $page_string; -} - -// -// This does exactly what preg_quote() does in PHP 4-ish -// If you just need the 1-parameter preg_quote call, then don't bother using this. -// -function phpbb_preg_quote($str, $delimiter) -{ - $text = preg_quote($str); - $text = str_replace($delimiter, '\\' . $delimiter, $text); - - return $text; -} - -// -// Obtain list of naughty words and build preg style replacement arrays for use by the -// calling script, note that the vars are passed as references this just makes it easier -// to return both sets of arrays -// -function obtain_word_list(&$orig_word, &$replacement_word) -{ - global $db; - - // - // Define censored word matches - // - $sql = "SELECT word, replacement - FROM " . WORDS_TABLE; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get censored words from database', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - do - { - $orig_word[] = '#\b(' . str_replace('\*', '\w*?', preg_quote($row['word'], '#')) . ')\b#i'; - $replacement_word[] = $row['replacement']; - } - while ( $row = $db->sql_fetchrow($result) ); - } - - return true; -} - -// -// This is general replacement for die(), allows templated -// output in users (or default) language, etc. -// -// $msg_code can be one of these constants: -// -// GENERAL_MESSAGE : Use for any simple text message, eg. results -// of an operation, authorisation failures, etc. -// -// GENERAL ERROR : Use for any error which occurs _AFTER_ the -// common.php include and session code, ie. most errors in -// pages/functions -// -// CRITICAL_MESSAGE : Used when basic config data is available but -// a session may not exist, eg. banned users -// -// CRITICAL_ERROR : Used when config data cannot be obtained, eg -// no database connection. Should _not_ be used in 99.5% of cases -// -function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '') -{ - global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path, $nav_links, $gen_simple_header, $images; - global $userdata, $user_ip, $session_length; - global $starttime; - - if(defined('HAS_DIED')) - { - die("message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?"); - } - - define('HAS_DIED', 1); - - - $sql_store = $sql; - - // - // Get SQL error if we are debugging. Do this as soon as possible to prevent - // subsequent queries from overwriting the status of sql_error() - // - if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) ) - { - $sql_error = $db->sql_error(); - - $debug_text = ''; - - if ( $sql_error['message'] != '' ) - { - $debug_text .= '

SQL Error : ' . $sql_error['code'] . ' ' . $sql_error['message']; - } - - if ( $sql_store != '' ) - { - $debug_text .= "

$sql_store"; - } - - if ( $err_line != '' && $err_file != '' ) - { - $debug_text .= '

Line : ' . $err_line . '
File : ' . basename($err_file); - } - } - - if( empty($userdata) && ( $msg_code == GENERAL_MESSAGE || $msg_code == GENERAL_ERROR ) ) - { - $userdata = session_pagestart($user_ip, PAGE_INDEX); - init_userprefs($userdata); - } - - // - // If the header hasn't been output then do it - // - if ( !defined('HEADER_INC') && $msg_code != CRITICAL_ERROR ) - { - if ( empty($lang) ) - { - if ( !empty($board_config['default_lang']) ) - { - include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx); - } - else - { - include($phpbb_root_path . 'language/lang_english/lang_main.'.$phpEx); - } - } - - if ( empty($template) || empty($theme) ) - { - $theme = setup_style($board_config['default_style']); - } - - // - // Load the Page Header - // - if ( !defined('IN_ADMIN') ) - { - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - } - else - { - include($phpbb_root_path . 'admin/page_header_admin.'.$phpEx); - } - } - - switch($msg_code) - { - case GENERAL_MESSAGE: - if ( $msg_title == '' ) - { - $msg_title = $lang['Information']; - } - break; - - case CRITICAL_MESSAGE: - if ( $msg_title == '' ) - { - $msg_title = $lang['Critical_Information']; - } - break; - - case GENERAL_ERROR: - if ( $msg_text == '' ) - { - $msg_text = $lang['An_error_occured']; - } - - if ( $msg_title == '' ) - { - $msg_title = $lang['General_Error']; - } - break; - - case CRITICAL_ERROR: - // - // Critical errors mean we cannot rely on _ANY_ DB information being - // available so we're going to dump out a simple echo'd statement - // - include($phpbb_root_path . 'language/lang_english/lang_main.'.$phpEx); - - if ( $msg_text == '' ) - { - $msg_text = $lang['A_critical_error']; - } - - if ( $msg_title == '' ) - { - $msg_title = 'phpBB : ' . $lang['Critical_Error'] . ''; - } - break; - } - - // - // Add on DEBUG info if we've enabled debug mode and this is an error. This - // prevents debug info being output for general messages should DEBUG be - // set TRUE by accident (preventing confusion for the end user!) - // - if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) ) - { - if ( $debug_text != '' ) - { - $msg_text = $msg_text . '

DEBUG MODE' . $debug_text; - } - } - - if ( $msg_code != CRITICAL_ERROR ) - { - if ( !empty($lang[$msg_text]) ) - { - $msg_text = $lang[$msg_text]; - } - - if ( !defined('IN_ADMIN') ) - { - $template->set_filenames(array( - 'message_body' => 'message_body.tpl') - ); - } - else - { - $template->set_filenames(array( - 'message_body' => 'admin/admin_message_body.tpl') - ); - } - - $template->assign_vars(array( - 'MESSAGE_TITLE' => $msg_title, - 'MESSAGE_TEXT' => $msg_text) - ); - $template->pparse('message_body'); - - if ( !defined('IN_ADMIN') ) - { - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } - else - { - include($phpbb_root_path . 'admin/page_footer_admin.'.$phpEx); - } - } - else - { - echo "\n\n" . $msg_title . "\n

\n" . $msg_text . "\n"; - } - - exit; -} - -// -// This function is for compatibility with PHP 4.x's realpath() -// function. In later versions of PHP, it needs to be called -// to do checks with some functions. Older versions of PHP don't -// seem to need this, so we'll just return the original value. -// dougk_ff7 -function phpbb_realpath($path) -{ - global $phpbb_root_path, $phpEx; - - return (!@function_exists('realpath') || !@realpath($phpbb_root_path . 'includes/functions.'.$phpEx)) ? $path : @realpath($path); -} - -function redirect($url) -{ - global $db, $board_config; - - if (!empty($db)) - { - $db->sql_close(); - } - - if (strstr(urldecode($url), "\n") || strstr(urldecode($url), "\r") || strstr(urldecode($url), ';url')) - { - message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.'); - } - - $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; - $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); - $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; - $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); - $script_name = ($script_name == '') ? $script_name : '/' . $script_name; - $url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url)); - - // Redirect via an HTML form for PITA webservers - if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) - { - header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url); - echo 'Redirect
If your browser does not support meta redirection please click HERE to be redirected
'; - exit; - } - - // Behave as per HTTP/1.1 spec for others - header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url); - exit; -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/functions_admin.php b/phpBB2/includes/functions_admin.php deleted file mode 100644 index d3d83a8..0000000 --- a/phpBB2/includes/functions_admin.php +++ /dev/null @@ -1,191 +0,0 @@ -sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Couldn not obtain forums information', '', __LINE__, __FILE__, $sql); - } - - $forum_list = ''; - while( $row = $db->sql_fetchrow($result) ) - { - if ( $is_auth_ary[$row['forum_id']]['auth_read'] && $ignore_forum != $row['forum_id'] ) - { - $selected = ( $select_forum == $row['forum_id'] ) ? ' selected="selected"' : ''; - $forum_list .= ''; - } - } - - $forum_list = ( $forum_list == '' ) ? '' : ''; - - return $forum_list; -} - -// -// Synchronise functions for forums/topics -// -function sync($type, $id = false) -{ - global $db; - - switch($type) - { - case 'all forums': - $sql = "SELECT forum_id - FROM " . FORUMS_TABLE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get forum IDs', '', __LINE__, __FILE__, $sql); - } - - while( $row = $db->sql_fetchrow($result) ) - { - sync('forum', $row['forum_id']); - } - break; - - case 'all topics': - $sql = "SELECT topic_id - FROM " . TOPICS_TABLE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get topic ID', '', __LINE__, __FILE__, $sql); - } - - while( $row = $db->sql_fetchrow($result) ) - { - sync('topic', $row['topic_id']); - } - break; - - case 'forum': - $sql = "SELECT MAX(post_id) AS last_post, COUNT(post_id) AS total - FROM " . POSTS_TABLE . " - WHERE forum_id = $id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get post ID', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $last_post = ( $row['last_post'] ) ? $row['last_post'] : 0; - $total_posts = ($row['total']) ? $row['total'] : 0; - } - else - { - $last_post = 0; - $total_posts = 0; - } - - $sql = "SELECT COUNT(topic_id) AS total - FROM " . TOPICS_TABLE . " - WHERE forum_id = $id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get topic count', '', __LINE__, __FILE__, $sql); - } - - $total_topics = ( $row = $db->sql_fetchrow($result) ) ? ( ( $row['total'] ) ? $row['total'] : 0 ) : 0; - - $sql = "UPDATE " . FORUMS_TABLE . " - SET forum_last_post_id = $last_post, forum_posts = $total_posts, forum_topics = $total_topics - WHERE forum_id = $id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update forum', '', __LINE__, __FILE__, $sql); - } - break; - - case 'topic': - $sql = "SELECT MAX(post_id) AS last_post, MIN(post_id) AS first_post, COUNT(post_id) AS total_posts - FROM " . POSTS_TABLE . " - WHERE topic_id = $id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get post ID', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - if ($row['total_posts']) - { - // Correct the details of this topic - $sql = 'UPDATE ' . TOPICS_TABLE . ' - SET topic_replies = ' . ($row['total_posts'] - 1) . ', topic_first_post_id = ' . $row['first_post'] . ', topic_last_post_id = ' . $row['last_post'] . " - WHERE topic_id = $id"; - - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Could not update topic', '', __LINE__, __FILE__, $sql); - } - } - else - { - // There are no replies to this topic - // Check if it is a move stub - $sql = 'SELECT topic_moved_id - FROM ' . TOPICS_TABLE . " - WHERE topic_id = $id"; - - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not get topic ID', '', __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - if (!$row['topic_moved_id']) - { - $sql = 'DELETE FROM ' . TOPICS_TABLE . " WHERE topic_id = $id"; - - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Could not remove topic', '', __LINE__, __FILE__, $sql); - } - } - } - - $db->sql_freeresult($result); - } - } - break; - } - - return true; -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/functions_post.php b/phpBB2/includes/functions_post.php deleted file mode 100644 index 49c12c8..0000000 --- a/phpBB2/includes/functions_post.php +++ /dev/null @@ -1,887 +0,0 @@ -#', '#"#'); -$html_entities_replace = array('&', '<', '>', '"'); - -$unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#'); -$unhtml_specialchars_replace = array('>', '<', '"', '&'); - -// -// This function will prepare a posted message for -// entry into the database. -// -function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid = 0) -{ - global $board_config, $html_entities_match, $html_entities_replace; - - // - // Clean up the message - // - $message = trim($message); - - if ($html_on) - { - // If HTML is on, we try to make it safe - // This approach is quite agressive and anything that does not look like a valid tag - // is going to get converted to HTML entities - $message = stripslashes($message); - $html_match = '#<[^\w<]*(\w+)((?:"[^"]*"|\'[^\']*\'|[^<>\'"])+)?>#'; - $matches = array(); - - $message_split = preg_split($html_match, $message); - preg_match_all($html_match, $message, $matches); - - $message = ''; - - foreach ($message_split as $part) - { - $tag = array(array_shift($matches[0]), array_shift($matches[1]), array_shift($matches[2])); - $message .= preg_replace($html_entities_match, $html_entities_replace, $part) . clean_html($tag); - } - - $message = addslashes($message); - $message = str_replace('"', '\"', $message); - } - else - { - $message = preg_replace($html_entities_match, $html_entities_replace, $message); - } - - if($bbcode_on && $bbcode_uid != '') - { - $message = bbencode_first_pass($message, $bbcode_uid); - } - - return $message; -} - -function unprepare_message($message) -{ - global $unhtml_specialchars_match, $unhtml_specialchars_replace; - - return preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, $message); -} - -// -// Prepare a message for posting -// -function prepare_post(&$mode, &$post_data, &$bbcode_on, &$html_on, &$smilies_on, &$error_msg, &$username, &$bbcode_uid, &$subject, &$message, &$poll_title, &$poll_options, &$poll_length) -{ - global $board_config, $userdata, $lang, $phpEx, $phpbb_root_path; - - // Check username - if (!empty($username)) - { - $username = phpbb_clean_username($username); - - if (!$userdata['session_logged_in'] || ($userdata['session_logged_in'] && $username != $userdata['username'])) - { - include($phpbb_root_path . 'includes/functions_validate.'.$phpEx); - - $result = validate_username($username); - if ($result['error']) - { - $error_msg .= (!empty($error_msg)) ? '
' . $result['error_msg'] : $result['error_msg']; - } - } - else - { - $username = ''; - } - } - - // Check subject - if (!empty($subject)) - { - $subject = htmlspecialchars(trim($subject)); - } - else if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post'])) - { - $error_msg .= (!empty($error_msg)) ? '
' . $lang['Empty_subject'] : $lang['Empty_subject']; - } - - // Check message - if (!empty($message)) - { - $bbcode_uid = ($bbcode_on) ? make_bbcode_uid() : ''; - $message = prepare_message(trim($message), $html_on, $bbcode_on, $smilies_on, $bbcode_uid); - } - else if ($mode != 'delete' && $mode != 'poll_delete') - { - $error_msg .= (!empty($error_msg)) ? '
' . $lang['Empty_message'] : $lang['Empty_message']; - } - - // - // Handle poll stuff - // - if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post'])) - { - $poll_length = (isset($poll_length)) ? max(0, intval($poll_length)) : 0; - - if (!empty($poll_title)) - { - $poll_title = htmlspecialchars(trim($poll_title)); - } - - if(!empty($poll_options)) - { - $temp_option_text = array(); - while(list($option_id, $option_text) = @each($poll_options)) - { - $option_text = trim($option_text); - if (!empty($option_text)) - { - $temp_option_text[intval($option_id)] = htmlspecialchars($option_text); - } - } - $option_text = $temp_option_text; - - if (count($poll_options) < 2) - { - $error_msg .= (!empty($error_msg)) ? '
' . $lang['To_few_poll_options'] : $lang['To_few_poll_options']; - } - else if (count($poll_options) > $board_config['max_poll_options']) - { - $error_msg .= (!empty($error_msg)) ? '
' . $lang['To_many_poll_options'] : $lang['To_many_poll_options']; - } - else if ($poll_title == '') - { - $error_msg .= (!empty($error_msg)) ? '
' . $lang['Empty_poll_title'] : $lang['Empty_poll_title']; - } - } - } - - return; -} - -// -// Post a new topic/reply/poll or edit existing post/poll -// -function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, $post_username, $post_subject, $post_message, $poll_title, &$poll_options, &$poll_length) -{ - global $board_config, $lang, $db, $phpbb_root_path, $phpEx; - global $userdata, $user_ip; - - include($phpbb_root_path . 'includes/functions_search.'.$phpEx); - - $current_time = time(); - - if ($mode == 'newtopic' || $mode == 'reply' || $mode == 'editpost') - { - // - // Flood control - // - $where_sql = ($userdata['user_id'] == ANONYMOUS) ? "poster_ip = '$user_ip'" : 'poster_id = ' . $userdata['user_id']; - $sql = "SELECT MAX(post_time) AS last_post_time - FROM " . POSTS_TABLE . " - WHERE $where_sql"; - if ($result = $db->sql_query($sql)) - { - if ($row = $db->sql_fetchrow($result)) - { - if (intval($row['last_post_time']) > 0 && ($current_time - intval($row['last_post_time'])) < intval($board_config['flood_interval'])) - { - message_die(GENERAL_MESSAGE, $lang['Flood_Error']); - } - } - } - } - - if ($mode == 'editpost') - { - remove_search_post($post_id); - } - - if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post'])) - { - $topic_vote = (!empty($poll_title) && count($poll_options) >= 2) ? 1 : 0; - - $sql = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - - if ($mode == 'newtopic') - { - $topic_id = $db->sql_nextid(); - } - } - - $edited_sql = ($mode == 'editpost' && !$post_data['last_post'] && $post_data['poster_post']) ? ", post_edit_time = $current_time, post_edit_count = post_edit_count + 1 " : ""; - $sql = ($mode != "editpost") ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig) VALUES ($topic_id, $forum_id, " . $userdata['user_id'] . ", '$post_username', $current_time, '$user_ip', $bbcode_on, $html_on, $smilies_on, $attach_sig)" : "UPDATE " . POSTS_TABLE . " SET post_username = '$post_username', enable_bbcode = $bbcode_on, enable_html = $html_on, enable_smilies = $smilies_on, enable_sig = $attach_sig" . $edited_sql . " WHERE post_id = $post_id"; - if (!$db->sql_query($sql, BEGIN_TRANSACTION)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - - if ($mode != 'editpost') - { - $post_id = $db->sql_nextid(); - } - - $sql = ($mode != 'editpost') ? "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, post_subject, bbcode_uid, post_text) VALUES ($post_id, '$post_subject', '$bbcode_uid', '$post_message')" : "UPDATE " . POSTS_TEXT_TABLE . " SET post_text = '$post_message', bbcode_uid = '$bbcode_uid', post_subject = '$post_subject' WHERE post_id = $post_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - - add_search_words('single', $post_id, stripslashes($post_message), stripslashes($post_subject)); - - // - // Add poll - // - if (($mode == 'newtopic' || ($mode == 'editpost' && $post_data['edit_poll'])) && !empty($poll_title) && count($poll_options) >= 2) - { - $sql = (!$post_data['has_poll']) ? "INSERT INTO " . VOTE_DESC_TABLE . " (topic_id, vote_text, vote_start, vote_length) VALUES ($topic_id, '$poll_title', $current_time, " . ($poll_length * 86400) . ")" : "UPDATE " . VOTE_DESC_TABLE . " SET vote_text = '$poll_title', vote_length = " . ($poll_length * 86400) . " WHERE topic_id = $topic_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - - $delete_option_sql = ''; - $old_poll_result = array(); - if ($mode == 'editpost' && $post_data['has_poll']) - { - $sql = "SELECT vote_option_id, vote_result - FROM " . VOTE_RESULTS_TABLE . " - WHERE vote_id = $poll_id - ORDER BY vote_option_id ASC"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not obtain vote data results for this topic', '', __LINE__, __FILE__, $sql); - } - - while ($row = $db->sql_fetchrow($result)) - { - $old_poll_result[$row['vote_option_id']] = $row['vote_result']; - - if (!isset($poll_options[$row['vote_option_id']])) - { - $delete_option_sql .= ($delete_option_sql != '') ? ', ' . $row['vote_option_id'] : $row['vote_option_id']; - } - } - } - else - { - $poll_id = $db->sql_nextid(); - } - - @reset($poll_options); - - $poll_option_id = 1; - while (list($option_id, $option_text) = each($poll_options)) - { - if (!empty($option_text)) - { - $option_text = str_replace("\'", "''", htmlspecialchars($option_text)); - $poll_result = ($mode == "editpost" && isset($old_poll_result[$option_id])) ? $old_poll_result[$option_id] : 0; - - $sql = ($mode != "editpost" || !isset($old_poll_result[$option_id])) ? "INSERT INTO " . VOTE_RESULTS_TABLE . " (vote_id, vote_option_id, vote_option_text, vote_result) VALUES ($poll_id, $poll_option_id, '$option_text', $poll_result)" : "UPDATE " . VOTE_RESULTS_TABLE . " SET vote_option_text = '$option_text', vote_result = $poll_result WHERE vote_option_id = $option_id AND vote_id = $poll_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - $poll_option_id++; - } - } - - if ($delete_option_sql != '') - { - $sql = "DELETE FROM " . VOTE_RESULTS_TABLE . " - WHERE vote_option_id IN ($delete_option_sql) - AND vote_id = $poll_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error deleting pruned poll options', '', __LINE__, __FILE__, $sql); - } - } - } - - $meta = ''; - $message = $lang['Stored'] . '

' . sprintf($lang['Click_view_message'], '', '') . '

' . sprintf($lang['Click_return_forum'], '', ''); - - return false; -} - -// -// Update post stats and details -// -function update_post_stats(&$mode, &$post_data, &$forum_id, &$topic_id, &$post_id, &$user_id) -{ - global $db; - - $sign = ($mode == 'delete') ? '- 1' : '+ 1'; - $forum_update_sql = "forum_posts = forum_posts $sign"; - $topic_update_sql = ''; - - if ($mode == 'delete') - { - if ($post_data['last_post']) - { - if ($post_data['first_post']) - { - $forum_update_sql .= ', forum_topics = forum_topics - 1'; - } - else - { - - $topic_update_sql .= 'topic_replies = topic_replies - 1'; - - $sql = "SELECT MAX(post_id) AS last_post_id - FROM " . POSTS_TABLE . " - WHERE topic_id = $topic_id"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - $topic_update_sql .= ', topic_last_post_id = ' . $row['last_post_id']; - } - } - - if ($post_data['last_topic']) - { - $sql = "SELECT MAX(post_id) AS last_post_id - FROM " . POSTS_TABLE . " - WHERE forum_id = $forum_id"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - $forum_update_sql .= ($row['last_post_id']) ? ', forum_last_post_id = ' . $row['last_post_id'] : ', forum_last_post_id = 0'; - } - } - } - else if ($post_data['first_post']) - { - $sql = "SELECT MIN(post_id) AS first_post_id - FROM " . POSTS_TABLE . " - WHERE topic_id = $topic_id"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - $topic_update_sql .= 'topic_replies = topic_replies - 1, topic_first_post_id = ' . $row['first_post_id']; - } - } - else - { - $topic_update_sql .= 'topic_replies = topic_replies - 1'; - } - } - else if ($mode != 'poll_delete') - { - $forum_update_sql .= ", forum_last_post_id = $post_id" . (($mode == 'newtopic') ? ", forum_topics = forum_topics $sign" : ""); - $topic_update_sql = "topic_last_post_id = $post_id" . (($mode == 'reply') ? ", topic_replies = topic_replies $sign" : ", topic_first_post_id = $post_id"); - } - else - { - $topic_update_sql .= 'topic_vote = 0'; - } - - if ($mode != 'poll_delete') - { - $sql = "UPDATE " . FORUMS_TABLE . " SET - $forum_update_sql - WHERE forum_id = $forum_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - } - - if ($topic_update_sql != '') - { - $sql = "UPDATE " . TOPICS_TABLE . " SET - $topic_update_sql - WHERE topic_id = $topic_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - } - - if ($mode != 'poll_delete') - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_posts = user_posts $sign - WHERE user_id = $user_id"; - if (!$db->sql_query($sql, END_TRANSACTION)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - } - - return; -} - -// -// Delete a post/poll -// -function delete_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id) -{ - global $board_config, $lang, $db, $phpbb_root_path, $phpEx; - global $userdata, $user_ip; - - if ($mode != 'poll_delete') - { - include($phpbb_root_path . 'includes/functions_search.'.$phpEx); - - $sql = "DELETE FROM " . POSTS_TABLE . " - WHERE post_id = $post_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . POSTS_TEXT_TABLE . " - WHERE post_id = $post_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - - if ($post_data['last_post']) - { - if ($post_data['first_post']) - { - $forum_update_sql .= ', forum_topics = forum_topics - 1'; - $sql = "DELETE FROM " . TOPICS_TABLE . " - WHERE topic_id = $topic_id - OR topic_moved_id = $topic_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - } - } - - remove_search_post($post_id); - } - - if ($mode == 'poll_delete' || ($mode == 'delete' && $post_data['first_post'] && $post_data['last_post']) && $post_data['has_poll'] && $post_data['edit_poll']) - { - $sql = "DELETE FROM " . VOTE_DESC_TABLE . " - WHERE topic_id = $topic_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in deleting poll', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . VOTE_RESULTS_TABLE . " - WHERE vote_id = $poll_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in deleting poll', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . VOTE_USERS_TABLE . " - WHERE vote_id = $poll_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in deleting poll', '', __LINE__, __FILE__, $sql); - } - } - - if ($mode == 'delete' && $post_data['first_post'] && $post_data['last_post']) - { - $meta = ''; - $message = $lang['Deleted']; - } - else - { - $meta = ''; - $message = (($mode == 'poll_delete') ? $lang['Poll_delete'] : $lang['Deleted']) . '

' . sprintf($lang['Click_return_topic'], '', ''); - } - - $message .= '

' . sprintf($lang['Click_return_forum'], '', ''); - - return; -} - -// -// Handle user notification on new post -// -function user_notification($mode, &$post_data, &$topic_title, &$forum_id, &$topic_id, &$post_id, &$notify_user) -{ - global $board_config, $lang, $db, $phpbb_root_path, $phpEx; - global $userdata, $user_ip; - - $current_time = time(); - - if ($mode != 'delete') - { - if ($mode == 'reply') - { - $sql = "SELECT ban_userid - FROM " . BANLIST_TABLE; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not obtain banlist', '', __LINE__, __FILE__, $sql); - } - - $user_id_sql = ''; - while ($row = $db->sql_fetchrow($result)) - { - if (isset($row['ban_userid']) && !empty($row['ban_userid'])) - { - $user_id_sql .= ', ' . $row['ban_userid']; - } - } - - $sql = "SELECT u.user_id, u.user_email, u.user_lang - FROM " . TOPICS_WATCH_TABLE . " tw, " . USERS_TABLE . " u - WHERE tw.topic_id = $topic_id - AND tw.user_id NOT IN (" . $userdata['user_id'] . ", " . ANONYMOUS . $user_id_sql . ") - AND tw.notify_status = " . TOPIC_WATCH_UN_NOTIFIED . " - AND u.user_id = tw.user_id"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not obtain list of topic watchers', '', __LINE__, __FILE__, $sql); - } - - $update_watched_sql = ''; - $bcc_list_ary = array(); - - if ($row = $db->sql_fetchrow($result)) - { - // Sixty second limit - @set_time_limit(60); - - do - { - if ($row['user_email'] != '') - { - $bcc_list_ary[$row['user_lang']][] = $row['user_email']; - } - $update_watched_sql .= ($update_watched_sql != '') ? ', ' . $row['user_id'] : $row['user_id']; - } - while ($row = $db->sql_fetchrow($result)); - - // - // Let's do some checking to make sure that mass mail functions - // are working in win32 versions of php. - // - if (preg_match('/[c-z]:\\\.*/i', getenv('PATH')) && !$board_config['smtp_delivery']) - { - $ini_val = (@phpversion() >= '4.0.0') ? 'ini_get' : 'get_cfg_var'; - - // We are running on windows, force delivery to use our smtp functions - // since php's are broken by default - $board_config['smtp_delivery'] = 1; - $board_config['smtp_host'] = @$ini_val('SMTP'); - } - - if (sizeof($bcc_list_ary)) - { - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $script_name = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['script_path'])); - $script_name = ($script_name != '') ? $script_name . '/viewtopic.'.$phpEx : 'viewtopic.'.$phpEx; - $server_name = trim($board_config['server_name']); - $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; - $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) . '/' : '/'; - - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $topic_title = (count($orig_word)) ? preg_replace($orig_word, $replacement_word, unprepare_message($topic_title)) : unprepare_message($topic_title); - - @reset($bcc_list_ary); - while (list($user_lang, $bcc_list) = each($bcc_list_ary)) - { - $emailer->use_template('topic_notify', $user_lang); - - for ($i = 0; $i < count($bcc_list); $i++) - { - $emailer->bcc($bcc_list[$i]); - } - - // The Topic_reply_notification lang string below will be used - // if for some reason the mail template subject cannot be read - // ... note it will not necessarily be in the posters own language! - $emailer->set_subject($lang['Topic_reply_notification']); - - // This is a nasty kludge to remove the username var ... till (if?) - // translators update their templates - $emailer->msg = preg_replace('#[ ]?{USERNAME}#', '', $emailer->msg); - - $emailer->assign_vars(array( - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
', "\n", "-- \n" . $board_config['board_email_sig']) : '', - 'SITENAME' => $board_config['sitename'], - 'TOPIC_TITLE' => $topic_title, - - 'U_TOPIC' => $server_protocol . $server_name . $server_port . $script_name . '?' . POST_POST_URL . "=$post_id#$post_id", - 'U_STOP_WATCHING_TOPIC' => $server_protocol . $server_name . $server_port . $script_name . '?' . POST_TOPIC_URL . "=$topic_id&unwatch=topic") - ); - - $emailer->send(); - $emailer->reset(); - } - } - } - $db->sql_freeresult($result); - - if ($update_watched_sql != '') - { - $sql = "UPDATE " . TOPICS_WATCH_TABLE . " - SET notify_status = " . TOPIC_WATCH_NOTIFIED . " - WHERE topic_id = $topic_id - AND user_id IN ($update_watched_sql)"; - $db->sql_query($sql); - } - } - - $sql = "SELECT topic_id - FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not obtain topic watch information', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - - if (!$notify_user && !empty($row['topic_id'])) - { - $sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Could not delete topic watch information', '', __LINE__, __FILE__, $sql); - } - } - else if ($notify_user && empty($row['topic_id'])) - { - $sql = "INSERT INTO " . TOPICS_WATCH_TABLE . " (user_id, topic_id, notify_status) - VALUES (" . $userdata['user_id'] . ", $topic_id, 0)"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Could not insert topic watch information', '', __LINE__, __FILE__, $sql); - } - } - } -} - -// -// Fill smiley templates (or just the variables) with smileys -// Either in a window or inline -// -function generate_smilies($mode, $page_id) -{ - global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path; - global $user_ip, $session_length, $starttime; - global $userdata; - - $inline_columns = 4; - $inline_rows = 5; - $window_columns = 8; - - if ($mode == 'window') - { - $userdata = session_pagestart($user_ip, $page_id); - init_userprefs($userdata); - - $gen_simple_header = TRUE; - - $page_title = $lang['Emoticons']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'smiliesbody' => 'posting_smilies.tpl') - ); - } - - $sql = "SELECT emoticon, code, smile_url - FROM " . SMILIES_TABLE . " - ORDER BY smilies_id"; - if ($result = $db->sql_query($sql)) - { - $num_smilies = 0; - $rowset = array(); - while ($row = $db->sql_fetchrow($result)) - { - if (empty($rowset[$row['smile_url']])) - { - $rowset[$row['smile_url']]['code'] = str_replace("'", "\\'", str_replace('\\', '\\\\', $row['code'])); - $rowset[$row['smile_url']]['emoticon'] = $row['emoticon']; - $num_smilies++; - } - } - - if ($num_smilies) - { - $smilies_count = ($mode == 'inline') ? min(19, $num_smilies) : $num_smilies; - $smilies_split_row = ($mode == 'inline') ? $inline_columns - 1 : $window_columns - 1; - - $s_colspan = 0; - $row = 0; - $col = 0; - - while (list($smile_url, $data) = @each($rowset)) - { - if (!$col) - { - $template->assign_block_vars('smilies_row', array()); - } - - $template->assign_block_vars('smilies_row.smilies_col', array( - 'SMILEY_CODE' => $data['code'], - 'SMILEY_IMG' => $board_config['smilies_path'] . '/' . $smile_url, - 'SMILEY_DESC' => $data['emoticon']) - ); - - $s_colspan = max($s_colspan, $col + 1); - - if ($col == $smilies_split_row) - { - if ($mode == 'inline' && $row == $inline_rows - 1) - { - break; - } - $col = 0; - $row++; - } - else - { - $col++; - } - } - - if ($mode == 'inline' && $num_smilies > $inline_rows * $inline_columns) - { - $template->assign_block_vars('switch_smilies_extra', array()); - - $template->assign_vars(array( - 'L_MORE_SMILIES' => $lang['More_emoticons'], - 'U_MORE_SMILIES' => append_sid("posting.$phpEx?mode=smilies")) - ); - } - - $template->assign_vars(array( - 'L_EMOTICONS' => $lang['Emoticons'], - 'L_CLOSE_WINDOW' => $lang['Close_window'], - 'S_SMILIES_COLSPAN' => $s_colspan) - ); - } - } - - if ($mode == 'window') - { - $template->pparse('smiliesbody'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } -} - -/** -* Called from within prepare_message to clean included HTML tags if HTML is -* turned on for that post -* @param array $tag Matching text from the message to parse -*/ -function clean_html($tag) -{ - global $board_config; - - if (empty($tag[0])) - { - return ''; - } - - $allowed_html_tags = preg_split('/, */', strtolower($board_config['allow_html_tags'])); - $disallowed_attributes = '/^(?:style|on)/i'; - - // Check if this is an end tag - preg_match('/<[^\w\/]*\/[\W]*(\w+)/', $tag[0], $matches); - if (sizeof($matches)) - { - if (in_array(strtolower($matches[1]), $allowed_html_tags)) - { - return ''; - } - else - { - return htmlspecialchars(''); - } - } - - // Check if this is an allowed tag - if (in_array(strtolower($tag[1]), $allowed_html_tags)) - { - $attributes = ''; - if (!empty($tag[2])) - { - preg_match_all('/[\W]*?(\w+)[\W]*?=[\W]*?(["\'])((?:(?!\2).)*)\2/', $tag[2], $test); - for ($i = 0; $i < sizeof($test[0]); $i++) - { - if (preg_match($disallowed_attributes, $test[1][$i])) - { - continue; - } - $attributes .= ' ' . $test[1][$i] . '=' . $test[2][$i] . str_replace(array('[', ']'), array('[', ']'), htmlspecialchars($test[3][$i])) . $test[2][$i]; - } - } - if (in_array(strtolower($tag[1]), $allowed_html_tags)) - { - return '<' . $tag[1] . $attributes . '>'; - } - else - { - return htmlspecialchars('<' . $tag[1] . $attributes . '>'); - } - } - // Finally, this is not an allowed tag so strip all the attibutes and escape it - else - { - return htmlspecialchars('<' . $tag[1] . '>'); - } -} -?> \ No newline at end of file diff --git a/phpBB2/includes/functions_search.php b/phpBB2/includes/functions_search.php deleted file mode 100644 index 3e78fe8..0000000 --- a/phpBB2/includes/functions_search.php +++ /dev/null @@ -1,498 +0,0 @@ -', '`', '\'', '"', '|', ',', '@', '_', '?', '%', '-', '~', '+', '.', '[', ']', '{', '}', ':', '\\', '/', '=', '#', '\'', ';', '!'); - static $drop_char_replace = array(' ', ' ', ' ', ' ', ' ', ' ', ' ', '', '', ' ', ' ', ' ', ' ', '', ' ', ' ', '', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' , ' ', ' ', ' ', ' ', ' ', ' '); - - $entry = ' ' . strip_tags(strtolower($entry)) . ' '; - - if ( $mode == 'post' ) - { - // Replace line endings by a space - $entry = preg_replace('/[\n\r]/is', ' ', $entry); - // HTML entities like   - $entry = preg_replace('/\b&[a-z]+;\b/', ' ', $entry); - // Remove URL's - $entry = preg_replace('/\b[a-z0-9]+:\/\/[a-z0-9\.\-]+(\/[a-z0-9\?\.%_\-\+=&\/]+)?/', ' ', $entry); - // Quickly remove BBcode. - $entry = preg_replace('/\[img:[a-z0-9]{10,}\].*?\[\/img:[a-z0-9]{10,}\]/', ' ', $entry); - $entry = preg_replace('/\[\/?url(=.*?)?\]/', ' ', $entry); - $entry = preg_replace('/\[\/?[a-z\*=\+\-]+(\:?[0-9a-z]+)?:[a-z0-9]{10,}(\:[a-z0-9]+)?=?.*?\]/', ' ', $entry); - } - else if ( $mode == 'search' ) - { - $entry = str_replace(' +', ' and ', $entry); - $entry = str_replace(' -', ' not ', $entry); - } - - // - // Filter out strange characters like ^, $, &, change "it's" to "its" - // - for($i = 0; $i < count($drop_char_match); $i++) - { - $entry = str_replace($drop_char_match[$i], $drop_char_replace[$i], $entry); - } - - if ( $mode == 'post' ) - { - $entry = str_replace('*', ' ', $entry); - - // 'words' that consist of <3 or >20 characters are removed. - $entry = preg_replace('/[ ]([\S]{1,2}|[\S]{21,})[ ]/',' ', $entry); - } - - if ( !empty($stopword_list) ) - { - for ($j = 0; $j < count($stopword_list); $j++) - { - $stopword = trim($stopword_list[$j]); - - if ( $mode == 'post' || ( $stopword != 'not' && $stopword != 'and' && $stopword != 'or' ) ) - { - $entry = str_replace(' ' . trim($stopword) . ' ', ' ', $entry); - } - } - } - - if ( !empty($synonym_list) ) - { - for ($j = 0; $j < count($synonym_list); $j++) - { - list($replace_synonym, $match_synonym) = split(' ', trim(strtolower($synonym_list[$j]))); - if ( $mode == 'post' || ( $match_synonym != 'not' && $match_synonym != 'and' && $match_synonym != 'or' ) ) - { - $entry = str_replace(' ' . trim($match_synonym) . ' ', ' ' . trim($replace_synonym) . ' ', $entry); - } - } - } - - return $entry; -} - -function split_words($entry, $mode = 'post') -{ - // If you experience problems with the new method, uncomment this block. -/* - $rex = ( $mode == 'post' ) ? "/\b([\w±µ-ÿ][\w±µ-ÿ']*[\w±µ-ÿ]+|[\w±µ-ÿ]+?)\b/" : '/(\*?[a-z0-9±µ-ÿ]+\*?)|\b([a-z0-9±µ-ÿ]+)\b/'; - preg_match_all($rex, $entry, $split_entries); - - return $split_entries[1]; -*/ - // Trim 1+ spaces to one space and split this trimmed string into words. - return explode(' ', trim(preg_replace('#\s+#', ' ', $entry))); -} - -function add_search_words($mode, $post_id, $post_text, $post_title = '') -{ - global $db, $phpbb_root_path, $board_config, $lang; - - $stopword_array = @file($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . "/search_stopwords.txt"); - $synonym_array = @file($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . "/search_synonyms.txt"); - - $search_raw_words = array(); - $search_raw_words['text'] = split_words(clean_words('post', $post_text, $stopword_array, $synonym_array)); - $search_raw_words['title'] = split_words(clean_words('post', $post_title, $stopword_array, $synonym_array)); - - @set_time_limit(0); - - $word = array(); - $word_insert_sql = array(); - while ( list($word_in, $search_matches) = @each($search_raw_words) ) - { - $word_insert_sql[$word_in] = ''; - if ( !empty($search_matches) ) - { - for ($i = 0; $i < count($search_matches); $i++) - { - $search_matches[$i] = trim($search_matches[$i]); - - if( $search_matches[$i] != '' ) - { - $word[] = $search_matches[$i]; - if ( !strstr($word_insert_sql[$word_in], "'" . $search_matches[$i] . "'") ) - { - $word_insert_sql[$word_in] .= ( $word_insert_sql[$word_in] != "" ) ? ", '" . $search_matches[$i] . "'" : "'" . $search_matches[$i] . "'"; - } - } - } - } - } - - if ( count($word) ) - { - sort($word); - - $prev_word = ''; - $word_text_sql = ''; - $temp_word = array(); - for($i = 0; $i < count($word); $i++) - { - if ( $word[$i] != $prev_word ) - { - $temp_word[] = $word[$i]; - $word_text_sql .= ( ( $word_text_sql != '' ) ? ', ' : '' ) . "'" . $word[$i] . "'"; - } - $prev_word = $word[$i]; - } - $word = $temp_word; - - $check_words = array(); - switch( SQL_LAYER ) - { - case 'postgresql': - case 'msaccess': - case 'mssql-odbc': - case 'oracle': - case 'db2': - $sql = "SELECT word_id, word_text - FROM " . SEARCH_WORD_TABLE . " - WHERE word_text IN ($word_text_sql)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select words', '', __LINE__, __FILE__, $sql); - } - - while ( $row = $db->sql_fetchrow($result) ) - { - $check_words[$row['word_text']] = $row['word_id']; - } - break; - } - - $value_sql = ''; - $match_word = array(); - for ($i = 0; $i < count($word); $i++) - { - $new_match = true; - if ( isset($check_words[$word[$i]]) ) - { - $new_match = false; - } - - if ( $new_match ) - { - switch( SQL_LAYER ) - { - case 'mysql': - case 'mysql4': - $value_sql .= ( ( $value_sql != '' ) ? ', ' : '' ) . '(\'' . $word[$i] . '\', 0)'; - break; - case 'mssql': - case 'mssql-odbc': - $value_sql .= ( ( $value_sql != '' ) ? ' UNION ALL ' : '' ) . "SELECT '" . $word[$i] . "', 0"; - break; - default: - $sql = "INSERT INTO " . SEARCH_WORD_TABLE . " (word_text, word_common) - VALUES ('" . $word[$i] . "', 0)"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert new word', '', __LINE__, __FILE__, $sql); - } - break; - } - } - } - - if ( $value_sql != '' ) - { - switch ( SQL_LAYER ) - { - case 'mysql': - case 'mysql4': - $sql = "INSERT IGNORE INTO " . SEARCH_WORD_TABLE . " (word_text, word_common) - VALUES $value_sql"; - break; - case 'mssql': - case 'mssql-odbc': - $sql = "INSERT INTO " . SEARCH_WORD_TABLE . " (word_text, word_common) - $value_sql"; - break; - } - - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert new word', '', __LINE__, __FILE__, $sql); - } - } - } - - while( list($word_in, $match_sql) = @each($word_insert_sql) ) - { - $title_match = ( $word_in == 'title' ) ? 1 : 0; - - if ( $match_sql != '' ) - { - $sql = "INSERT INTO " . SEARCH_MATCH_TABLE . " (post_id, word_id, title_match) - SELECT $post_id, word_id, $title_match - FROM " . SEARCH_WORD_TABLE . " - WHERE word_text IN ($match_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert new word matches', '', __LINE__, __FILE__, $sql); - } - } - } - - if ($mode == 'single') - { - remove_common('single', 4/10, $word); - } - - return; -} - -// -// Check if specified words are too common now -// -function remove_common($mode, $fraction, $word_id_list = array()) -{ - global $db; - - $sql = "SELECT COUNT(post_id) AS total_posts - FROM " . POSTS_TABLE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain post count', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - - if ( $row['total_posts'] >= 100 ) - { - $common_threshold = floor($row['total_posts'] * $fraction); - - if ( $mode == 'single' && count($word_id_list) ) - { - $word_id_sql = ''; - for($i = 0; $i < count($word_id_list); $i++) - { - $word_id_sql .= ( ( $word_id_sql != '' ) ? ', ' : '' ) . "'" . $word_id_list[$i] . "'"; - } - - $sql = "SELECT m.word_id - FROM " . SEARCH_MATCH_TABLE . " m, " . SEARCH_WORD_TABLE . " w - WHERE w.word_text IN ($word_id_sql) - AND m.word_id = w.word_id - GROUP BY m.word_id - HAVING COUNT(m.word_id) > $common_threshold"; - } - else - { - $sql = "SELECT word_id - FROM " . SEARCH_MATCH_TABLE . " - GROUP BY word_id - HAVING COUNT(word_id) > $common_threshold"; - } - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain common word list', '', __LINE__, __FILE__, $sql); - } - - $common_word_id = ''; - while ( $row = $db->sql_fetchrow($result) ) - { - $common_word_id .= ( ( $common_word_id != '' ) ? ', ' : '' ) . $row['word_id']; - } - $db->sql_freeresult($result); - - if ( $common_word_id != '' ) - { - $sql = "UPDATE " . SEARCH_WORD_TABLE . " - SET word_common = " . TRUE . " - WHERE word_id IN ($common_word_id)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete word list entry', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . SEARCH_MATCH_TABLE . " - WHERE word_id IN ($common_word_id)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete word match entry', '', __LINE__, __FILE__, $sql); - } - } - } - - return; -} - -function remove_search_post($post_id_sql) -{ - global $db; - - $words_removed = false; - - switch ( SQL_LAYER ) - { - case 'mysql': - case 'mysql4': - $sql = "SELECT word_id - FROM " . SEARCH_MATCH_TABLE . " - WHERE post_id IN ($post_id_sql) - GROUP BY word_id"; - if ( $result = $db->sql_query($sql) ) - { - $word_id_sql = ''; - while ( $row = $db->sql_fetchrow($result) ) - { - $word_id_sql .= ( $word_id_sql != '' ) ? ', ' . $row['word_id'] : $row['word_id']; - } - - $sql = "SELECT word_id - FROM " . SEARCH_MATCH_TABLE . " - WHERE word_id IN ($word_id_sql) - GROUP BY word_id - HAVING COUNT(word_id) = 1"; - if ( $result = $db->sql_query($sql) ) - { - $word_id_sql = ''; - while ( $row = $db->sql_fetchrow($result) ) - { - $word_id_sql .= ( $word_id_sql != '' ) ? ', ' . $row['word_id'] : $row['word_id']; - } - - if ( $word_id_sql != '' ) - { - $sql = "DELETE FROM " . SEARCH_WORD_TABLE . " - WHERE word_id IN ($word_id_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete word list entry', '', __LINE__, __FILE__, $sql); - } - - $words_removed = $db->sql_affectedrows(); - } - } - } - break; - - default: - $sql = "DELETE FROM " . SEARCH_WORD_TABLE . " - WHERE word_id IN ( - SELECT word_id - FROM " . SEARCH_MATCH_TABLE . " - WHERE word_id IN ( - SELECT word_id - FROM " . SEARCH_MATCH_TABLE . " - WHERE post_id IN ($post_id_sql) - GROUP BY word_id - ) - GROUP BY word_id - HAVING COUNT(word_id) = 1 - )"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete old words from word table', '', __LINE__, __FILE__, $sql); - } - - $words_removed = $db->sql_affectedrows(); - - break; - } - - $sql = "DELETE FROM " . SEARCH_MATCH_TABLE . " - WHERE post_id IN ($post_id_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - - return $words_removed; -} - -// -// Username search -// -function username_search($search_match) -{ - global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path; - global $starttime, $gen_simple_header; - - $gen_simple_header = TRUE; - - $username_list = ''; - if ( !empty($search_match) ) - { - $username_search = preg_replace('/\*/', '%', phpbb_clean_username($search_match)); - - $sql = "SELECT username - FROM " . USERS_TABLE . " - WHERE username LIKE '" . str_replace("\'", "''", $username_search) . "' AND user_id <> " . ANONYMOUS . " - ORDER BY username"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain search results', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - do - { - $username_list .= ''; - } - while ( $row = $db->sql_fetchrow($result) ); - } - else - { - $username_list .= ''; - } - $db->sql_freeresult($result); - } - - $page_title = $lang['Search']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'search_user_body' => 'search_username.tpl') - ); - - $template->assign_vars(array( - 'USERNAME' => (!empty($search_match)) ? phpbb_clean_username($search_match) : '', - - 'L_CLOSE_WINDOW' => $lang['Close_window'], - 'L_SEARCH_USERNAME' => $lang['Find_username'], - 'L_UPDATE_USERNAME' => $lang['Select_username'], - 'L_SELECT' => $lang['Select'], - 'L_SEARCH' => $lang['Search'], - 'L_SEARCH_EXPLAIN' => $lang['Search_author_explain'], - 'L_CLOSE_WINDOW' => $lang['Close_window'], - - 'S_USERNAME_OPTIONS' => $username_list, - 'S_SEARCH_ACTION' => append_sid("search.$phpEx?mode=searchuser")) - ); - - if ( $username_list != '' ) - { - $template->assign_block_vars('switch_select_name', array()); - } - - $template->pparse('search_user_body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - - return; -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/functions_selects.php b/phpBB2/includes/functions_selects.php deleted file mode 100644 index 6d184ff..0000000 --- a/phpBB2/includes/functions_selects.php +++ /dev/null @@ -1,111 +0,0 @@ -'; - while ( list($displayname, $filename) = @each($lang) ) - { - $selected = ( strtolower($default) == strtolower($filename) ) ? ' selected="selected"' : ''; - $lang_select .= ''; - } - $lang_select .= ''; - - return $lang_select; -} - -// -// Pick a template/theme combo, -// -function style_select($default_style, $select_name = "style", $dirname = "templates") -{ - global $db; - - $sql = "SELECT themes_id, style_name - FROM " . THEMES_TABLE . " - ORDER BY template_name, themes_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't query themes table", "", __LINE__, __FILE__, $sql); - } - - $style_select = '"; - - return $style_select; -} - -// -// Pick a timezone -// -function tz_select($default, $select_name = 'timezone') -{ - global $sys_timezone, $lang; - - if ( !isset($default) ) - { - $default == $sys_timezone; - } - $tz_select = ''; - - return $tz_select; -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/functions_validate.php b/phpBB2/includes/functions_validate.php deleted file mode 100644 index 69197a3..0000000 --- a/phpBB2/includes/functions_validate.php +++ /dev/null @@ -1,205 +0,0 @@ -sql_query($sql)) - { - while ($row = $db->sql_fetchrow($result)) - { - if (($userdata['session_logged_in'] && $row['username'] != $userdata['username']) || !$userdata['session_logged_in']) - { - $db->sql_freeresult($result); - return array('error' => true, 'error_msg' => $lang['Username_taken']); - } - } - } - $db->sql_freeresult($result); - - $sql = "SELECT group_name - FROM " . GROUPS_TABLE . " - WHERE LOWER(group_name) = '" . strtolower($username) . "'"; - if ($result = $db->sql_query($sql)) - { - if ($row = $db->sql_fetchrow($result)) - { - $db->sql_freeresult($result); - return array('error' => true, 'error_msg' => $lang['Username_taken']); - } - } - $db->sql_freeresult($result); - - $sql = "SELECT disallow_username - FROM " . DISALLOW_TABLE; - if ($result = $db->sql_query($sql)) - { - if ($row = $db->sql_fetchrow($result)) - { - do - { - if (preg_match("#\b(" . str_replace("\*", ".*?", preg_quote($row['disallow_username'], '#')) . ")\b#i", $username)) - { - $db->sql_freeresult($result); - return array('error' => true, 'error_msg' => $lang['Username_disallowed']); - } - } - while($row = $db->sql_fetchrow($result)); - } - } - $db->sql_freeresult($result); - - $sql = "SELECT word - FROM " . WORDS_TABLE; - if ($result = $db->sql_query($sql)) - { - if ($row = $db->sql_fetchrow($result)) - { - do - { - if (preg_match("#\b(" . str_replace("\*", ".*?", preg_quote($row['word'], '#')) . ")\b#i", $username)) - { - $db->sql_freeresult($result); - return array('error' => true, 'error_msg' => $lang['Username_disallowed']); - } - } - while ($row = $db->sql_fetchrow($result)); - } - } - $db->sql_freeresult($result); - - // Don't allow " and ALT-255 in username. - if (strstr($username, '"') || strstr($username, '"') || strstr($username, chr(160))) - { - return array('error' => true, 'error_msg' => $lang['Username_invalid']); - } - - return array('error' => false, 'error_msg' => ''); -} - -// -// Check to see if email address is banned -// or already present in the DB -// -function validate_email($email) -{ - global $db, $lang; - - if ($email != '') - { - if (preg_match('/^[a-z0-9&\'\.\-_\+]+@[a-z0-9\-]+\.([a-z0-9\-]+\.)*?[a-z]+$/is', $email)) - { - $sql = "SELECT ban_email - FROM " . BANLIST_TABLE; - if ($result = $db->sql_query($sql)) - { - if ($row = $db->sql_fetchrow($result)) - { - do - { - $match_email = str_replace('*', '.*?', $row['ban_email']); - if (preg_match('/^' . $match_email . '$/is', $email)) - { - $db->sql_freeresult($result); - return array('error' => true, 'error_msg' => $lang['Email_banned']); - } - } - while($row = $db->sql_fetchrow($result)); - } - } - $db->sql_freeresult($result); - - $sql = "SELECT user_email - FROM " . USERS_TABLE . " - WHERE user_email = '" . str_replace("\'", "''", $email) . "'"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, "Couldn't obtain user email information.", "", __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - return array('error' => true, 'error_msg' => $lang['Email_taken']); - } - $db->sql_freeresult($result); - - return array('error' => false, 'error_msg' => ''); - } - } - - return array('error' => true, 'error_msg' => $lang['Email_invalid']); -} - -// -// Does supplementary validation of optional profile fields. This expects common stuff like trim() and strip_tags() -// to have already been run. Params are passed by-ref, so we can set them to the empty string if they fail. -// -function validate_optional_fields(&$icq, &$aim, &$msnm, &$yim, &$website, &$location, &$occupation, &$interests, &$sig) -{ - $check_var_length = array('aim', 'msnm', 'yim', 'location', 'occupation', 'interests', 'sig'); - - for($i = 0; $i < count($check_var_length); $i++) - { - if (strlen($$check_var_length[$i]) < 2) - { - $$check_var_length[$i] = ''; - } - } - - // ICQ number has to be only numbers. - if (!preg_match('/^[0-9]+$/', $icq)) - { - $icq = ''; - } - - // website has to start with http://, followed by something with length at least 3 that - // contains at least one dot. - if ($website != "") - { - if (!preg_match('#^http[s]?:\/\/#i', $website)) - { - $website = 'http://' . $website; - } - - if (!preg_match('#^http[s]?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $website)) - { - $website = ''; - } - } - - return; -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/index.htm b/phpBB2/includes/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2/includes/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2/includes/page_header.php b/phpBB2/includes/page_header.php deleted file mode 100644 index f9f484d..0000000 --- a/phpBB2/includes/page_header.php +++ /dev/null @@ -1,490 +0,0 @@ -= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) ) - { - if ( extension_loaded('zlib') ) - { - ob_start('ob_gzhandler'); - } - } - else if ( $phpver > '4.0' ) - { - if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') ) - { - if ( extension_loaded('zlib') ) - { - $do_gzip_compress = TRUE; - ob_start(); - ob_implicit_flush(0); - - header('Content-Encoding: gzip'); - } - } - } -} - -// -// Parse and show the overall header. -// -$template->set_filenames(array( - 'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl') -); - -// -// Generate logged in/logged out status -// -if ( $userdata['session_logged_in'] ) -{ - $u_login_logout = 'login.'.$phpEx.'?logout=true&sid=' . $userdata['session_id']; - $l_login_logout = $lang['Logout'] . ' [ ' . $userdata['username'] . ' ]'; -} -else -{ - $u_login_logout = 'login.'.$phpEx; - $l_login_logout = $lang['Login']; -} - -$s_last_visit = ( $userdata['session_logged_in'] ) ? create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']) : ''; - -// -// Get basic (usernames + totals) online -// situation -// -$logged_visible_online = 0; -$logged_hidden_online = 0; -$guests_online = 0; -$online_userlist = ''; -$l_online_users = ''; - -if (defined('SHOW_ONLINE')) -{ - - $user_forum_sql = ( !empty($forum_id) ) ? "AND s.session_page = " . intval($forum_id) : ''; - $sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip - FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s - WHERE u.user_id = s.session_user_id - AND s.session_time >= ".( time() - 300 ) . " - $user_forum_sql - ORDER BY u.username ASC, s.session_ip ASC"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql); - } - - $userlist_ary = array(); - $userlist_visible = array(); - - $prev_user_id = 0; - $prev_user_ip = $prev_session_ip = ''; - - while( $row = $db->sql_fetchrow($result) ) - { - // User is logged in and therefor not a guest - if ( $row['session_logged_in'] ) - { - // Skip multiple sessions for one user - if ( $row['user_id'] != $prev_user_id ) - { - $style_color = ''; - if ( $row['user_level'] == ADMIN ) - { - $row['username'] = '' . $row['username'] . ''; - $style_color = 'style="color:#' . $theme['fontcolor3'] . '"'; - } - else if ( $row['user_level'] == MOD ) - { - $row['username'] = '' . $row['username'] . ''; - $style_color = 'style="color:#' . $theme['fontcolor2'] . '"'; - } - - if ( $row['user_allow_viewonline'] ) - { - $user_online_link = '' . $row['username'] . ''; - $logged_visible_online++; - } - else - { - $user_online_link = '' . $row['username'] . ''; - $logged_hidden_online++; - } - - if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN ) - { - $online_userlist .= ( $online_userlist != '' ) ? ', ' . $user_online_link : $user_online_link; - } - } - - $prev_user_id = $row['user_id']; - } - else - { - // Skip multiple sessions for one user - if ( $row['session_ip'] != $prev_session_ip ) - { - $guests_online++; - } - } - - $prev_session_ip = $row['session_ip']; - } - $db->sql_freeresult($result); - - if ( empty($online_userlist) ) - { - $online_userlist = $lang['None']; - } - $online_userlist = ( ( isset($forum_id) ) ? $lang['Browsing_forum'] : $lang['Registered_users'] ) . ' ' . $online_userlist; - - $total_online_users = $logged_visible_online + $logged_hidden_online + $guests_online; - - if ( $total_online_users > $board_config['record_online_users']) - { - $board_config['record_online_users'] = $total_online_users; - $board_config['record_online_date'] = time(); - - $sql = "UPDATE " . CONFIG_TABLE . " - SET config_value = '$total_online_users' - WHERE config_name = 'record_online_users'"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update online user record (nr of users)', '', __LINE__, __FILE__, $sql); - } - - $sql = "UPDATE " . CONFIG_TABLE . " - SET config_value = '" . $board_config['record_online_date'] . "' - WHERE config_name = 'record_online_date'"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update online user record (date)', '', __LINE__, __FILE__, $sql); - } - } - - if ( $total_online_users == 0 ) - { - $l_t_user_s = $lang['Online_users_zero_total']; - } - else if ( $total_online_users == 1 ) - { - $l_t_user_s = $lang['Online_user_total']; - } - else - { - $l_t_user_s = $lang['Online_users_total']; - } - - if ( $logged_visible_online == 0 ) - { - $l_r_user_s = $lang['Reg_users_zero_total']; - } - else if ( $logged_visible_online == 1 ) - { - $l_r_user_s = $lang['Reg_user_total']; - } - else - { - $l_r_user_s = $lang['Reg_users_total']; - } - - if ( $logged_hidden_online == 0 ) - { - $l_h_user_s = $lang['Hidden_users_zero_total']; - } - else if ( $logged_hidden_online == 1 ) - { - $l_h_user_s = $lang['Hidden_user_total']; - } - else - { - $l_h_user_s = $lang['Hidden_users_total']; - } - - if ( $guests_online == 0 ) - { - $l_g_user_s = $lang['Guest_users_zero_total']; - } - else if ( $guests_online == 1 ) - { - $l_g_user_s = $lang['Guest_user_total']; - } - else - { - $l_g_user_s = $lang['Guest_users_total']; - } - - $l_online_users = sprintf($l_t_user_s, $total_online_users); - $l_online_users .= sprintf($l_r_user_s, $logged_visible_online); - $l_online_users .= sprintf($l_h_user_s, $logged_hidden_online); - $l_online_users .= sprintf($l_g_user_s, $guests_online); -} - -// -// Obtain number of new private messages -// if user is logged in -// -if ( ($userdata['session_logged_in']) && (empty($gen_simple_header)) ) -{ - if ( $userdata['user_new_privmsg'] ) - { - $l_message_new = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['New_pm'] : $lang['New_pms']; - $l_privmsgs_text = sprintf($l_message_new, $userdata['user_new_privmsg']); - - if ( $userdata['user_last_privmsg'] > $userdata['user_lastvisit'] ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_last_privmsg = " . $userdata['user_lastvisit'] . " - WHERE user_id = " . $userdata['user_id']; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql); - } - - $s_privmsg_new = 1; - $icon_pm = $images['pm_new_msg']; - } - else - { - $s_privmsg_new = 0; - $icon_pm = $images['pm_new_msg']; - } - } - else - { - $l_privmsgs_text = $lang['No_new_pm']; - - $s_privmsg_new = 0; - $icon_pm = $images['pm_no_new_msg']; - } - - if ( $userdata['user_unread_privmsg'] ) - { - $l_message_unread = ( $userdata['user_unread_privmsg'] == 1 ) ? $lang['Unread_pm'] : $lang['Unread_pms']; - $l_privmsgs_text_unread = sprintf($l_message_unread, $userdata['user_unread_privmsg']); - } - else - { - $l_privmsgs_text_unread = $lang['No_unread_pm']; - } -} -else -{ - $icon_pm = $images['pm_no_new_msg']; - $l_privmsgs_text = $lang['Login_check_pm']; - $l_privmsgs_text_unread = ''; - $s_privmsg_new = 0; -} - -// -// Generate HTML required for Mozilla Navigation bar -// -if (!isset($nav_links)) -{ - $nav_links = array(); -} - -$nav_links_html = ''; -$nav_link_proto = '' . "\n"; -while( list($nav_item, $nav_array) = @each($nav_links) ) -{ - if ( !empty($nav_array['url']) ) - { - $nav_links_html .= sprintf($nav_link_proto, $nav_item, append_sid($nav_array['url']), $nav_array['title']); - } - else - { - // We have a nested array, used for items like that can occur more than once. - while( list(,$nested_array) = each($nav_array) ) - { - $nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']); - } - } -} - -// Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility -$l_timezone = explode('.', $board_config['board_timezone']); -$l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])]; -// -// The following assigns all _common_ variables that may be used at any point -// in a template. -// -$template->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'SITE_DESCRIPTION' => $board_config['site_desc'], - 'PAGE_TITLE' => $page_title, - 'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit), - 'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])), - 'TOTAL_USERS_ONLINE' => $l_online_users, - 'LOGGED_IN_USER_LIST' => $online_userlist, - 'RECORD_USERS' => sprintf($lang['Record_online_users'], $board_config['record_online_users'], create_date($board_config['default_dateformat'], $board_config['record_online_date'], $board_config['board_timezone'])), - 'PRIVATE_MESSAGE_INFO' => $l_privmsgs_text, - 'PRIVATE_MESSAGE_INFO_UNREAD' => $l_privmsgs_text_unread, - 'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new, - - 'PRIVMSG_IMG' => $icon_pm, - - 'L_USERNAME' => $lang['Username'], - 'L_PASSWORD' => $lang['Password'], - 'L_LOGIN_LOGOUT' => $l_login_logout, - 'L_LOGIN' => $lang['Login'], - 'L_LOG_ME_IN' => $lang['Log_me_in'], - 'L_AUTO_LOGIN' => $lang['Log_me_in'], - 'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']), - 'L_REGISTER' => $lang['Register'], - 'L_PROFILE' => $lang['Profile'], - 'L_SEARCH' => $lang['Search'], - 'L_PRIVATEMSGS' => $lang['Private_Messages'], - 'L_WHO_IS_ONLINE' => $lang['Who_is_Online'], - 'L_MEMBERLIST' => $lang['Memberlist'], - 'L_FAQ' => $lang['FAQ'], - 'L_USERGROUPS' => $lang['Usergroups'], - 'L_SEARCH_NEW' => $lang['Search_new'], - 'L_SEARCH_UNANSWERED' => $lang['Search_unanswered'], - 'L_SEARCH_SELF' => $lang['Search_your_posts'], - 'L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '', ''), - 'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '', ''), - - 'U_SEARCH_UNANSWERED' => append_sid('search.'.$phpEx.'?search_id=unanswered'), - 'U_SEARCH_SELF' => append_sid('search.'.$phpEx.'?search_id=egosearch'), - 'U_SEARCH_NEW' => append_sid('search.'.$phpEx.'?search_id=newposts'), - 'U_INDEX' => append_sid('index.'.$phpEx), - 'U_REGISTER' => append_sid('profile.'.$phpEx.'?mode=register'), - 'U_PROFILE' => append_sid('profile.'.$phpEx.'?mode=editprofile'), - 'U_PRIVATEMSGS' => append_sid('privmsg.'.$phpEx.'?folder=inbox'), - 'U_PRIVATEMSGS_POPUP' => append_sid('privmsg.'.$phpEx.'?mode=newpm'), - 'U_SEARCH' => append_sid('search.'.$phpEx), - 'U_MEMBERLIST' => append_sid('memberlist.'.$phpEx), - 'U_MODCP' => append_sid('modcp.'.$phpEx), - 'U_FAQ' => append_sid('faq.'.$phpEx), - 'U_VIEWONLINE' => append_sid('viewonline.'.$phpEx), - 'U_LOGIN_LOGOUT' => append_sid($u_login_logout), - 'U_GROUP_CP' => append_sid('groupcp.'.$phpEx), - - 'S_CONTENT_DIRECTION' => $lang['DIRECTION'], - 'S_CONTENT_ENCODING' => $lang['ENCODING'], - 'S_CONTENT_DIR_LEFT' => $lang['LEFT'], - 'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'], - 'S_TIMEZONE' => sprintf($lang['All_times'], $l_timezone), - 'S_LOGIN_ACTION' => append_sid('login.'.$phpEx), - - 'T_HEAD_STYLESHEET' => $theme['head_stylesheet'], - 'T_BODY_BACKGROUND' => $theme['body_background'], - 'T_BODY_BGCOLOR' => '#'.$theme['body_bgcolor'], - 'T_BODY_TEXT' => '#'.$theme['body_text'], - 'T_BODY_LINK' => '#'.$theme['body_link'], - 'T_BODY_VLINK' => '#'.$theme['body_vlink'], - 'T_BODY_ALINK' => '#'.$theme['body_alink'], - 'T_BODY_HLINK' => '#'.$theme['body_hlink'], - 'T_TR_COLOR1' => '#'.$theme['tr_color1'], - 'T_TR_COLOR2' => '#'.$theme['tr_color2'], - 'T_TR_COLOR3' => '#'.$theme['tr_color3'], - 'T_TR_CLASS1' => $theme['tr_class1'], - 'T_TR_CLASS2' => $theme['tr_class2'], - 'T_TR_CLASS3' => $theme['tr_class3'], - 'T_TH_COLOR1' => '#'.$theme['th_color1'], - 'T_TH_COLOR2' => '#'.$theme['th_color2'], - 'T_TH_COLOR3' => '#'.$theme['th_color3'], - 'T_TH_CLASS1' => $theme['th_class1'], - 'T_TH_CLASS2' => $theme['th_class2'], - 'T_TH_CLASS3' => $theme['th_class3'], - 'T_TD_COLOR1' => '#'.$theme['td_color1'], - 'T_TD_COLOR2' => '#'.$theme['td_color2'], - 'T_TD_COLOR3' => '#'.$theme['td_color3'], - 'T_TD_CLASS1' => $theme['td_class1'], - 'T_TD_CLASS2' => $theme['td_class2'], - 'T_TD_CLASS3' => $theme['td_class3'], - 'T_FONTFACE1' => $theme['fontface1'], - 'T_FONTFACE2' => $theme['fontface2'], - 'T_FONTFACE3' => $theme['fontface3'], - 'T_FONTSIZE1' => $theme['fontsize1'], - 'T_FONTSIZE2' => $theme['fontsize2'], - 'T_FONTSIZE3' => $theme['fontsize3'], - 'T_FONTCOLOR1' => '#'.$theme['fontcolor1'], - 'T_FONTCOLOR2' => '#'.$theme['fontcolor2'], - 'T_FONTCOLOR3' => '#'.$theme['fontcolor3'], - 'T_SPAN_CLASS1' => $theme['span_class1'], - 'T_SPAN_CLASS2' => $theme['span_class2'], - 'T_SPAN_CLASS3' => $theme['span_class3'], - - 'NAV_LINKS' => $nav_links_html) -); - -// -// Login box? -// -if ( !$userdata['session_logged_in'] ) -{ - $template->assign_block_vars('switch_user_logged_out', array()); - // - // Allow autologin? - // - if (!isset($board_config['allow_autologin']) || $board_config['allow_autologin'] ) - { - $template->assign_block_vars('switch_allow_autologin', array()); - $template->assign_block_vars('switch_user_logged_out.switch_allow_autologin', array()); - } -} -else -{ - $template->assign_block_vars('switch_user_logged_in', array()); - - if ( !empty($userdata['user_popup_pm']) ) - { - $template->assign_block_vars('switch_enable_pm_popup', array()); - } -} - -// Add no-cache control for cookies if they are set -//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : ''; - -// Work around for "current" Apache 2 + PHP module which seems to not -// cope with private cache control setting -if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2')) -{ - header ('Cache-Control: no-cache, pre-check=0, post-check=0'); -} -else -{ - header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0'); -} -header ('Expires: 0'); -header ('Pragma: no-cache'); - -$template->pparse('overall_header'); - -?> \ No newline at end of file diff --git a/phpBB2/includes/page_tail.php b/phpBB2/includes/page_tail.php deleted file mode 100644 index af3c06c..0000000 --- a/phpBB2/includes/page_tail.php +++ /dev/null @@ -1,76 +0,0 @@ -' . $lang['Admin_panel'] . '

' : ''; - -$template->set_filenames(array( - 'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl') -); - -$template->assign_vars(array( - 'TRANSLATION_INFO' => (isset($lang['TRANSLATION_INFO'])) ? $lang['TRANSLATION_INFO'] : ((isset($lang['TRANSLATION'])) ? $lang['TRANSLATION'] : ''), - 'ADMIN_LINK' => $admin_link) -); - -$template->pparse('overall_footer'); - -// -// Close our DB connection. -// -$db->sql_close(); - -// -// Compress buffered output if required and send to browser -// -if ( $do_gzip_compress ) -{ - // - // Borrowed from php.net! - // - $gzip_contents = ob_get_contents(); - ob_end_clean(); - - $gzip_size = strlen($gzip_contents); - $gzip_crc = crc32($gzip_contents); - - $gzip_contents = gzcompress($gzip_contents, 9); - $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4); - - echo "\x1f\x8b\x08\x00\x00\x00\x00\x00"; - echo $gzip_contents; - echo pack('V', $gzip_crc); - echo pack('V', $gzip_size); -} - -exit; - -?> \ No newline at end of file diff --git a/phpBB2/includes/prune.php b/phpBB2/includes/prune.php deleted file mode 100644 index 127533e..0000000 --- a/phpBB2/includes/prune.php +++ /dev/null @@ -1,175 +0,0 @@ -sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain lists of topics to sync', '', __LINE__, __FILE__, $sql); - } - - while( $row = $db->sql_fetchrow($result) ) - { - sync('topic', $row['topic_id']); - } - - $db->sql_freeresult($result); - - $prune_all = ($prune_all) ? '' : 'AND t.topic_vote = 0 AND t.topic_type <> ' . POST_ANNOUNCE; - // - // Those without polls and announcements ... unless told otherwise! - // - $sql = "SELECT t.topic_id - FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t - WHERE t.forum_id = $forum_id - $prune_all - AND p.post_id = t.topic_last_post_id"; - if ( $prune_date != '' ) - { - $sql .= " AND p.post_time < $prune_date"; - } - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain lists of topics to prune', '', __LINE__, __FILE__, $sql); - } - - $sql_topics = ''; - while( $row = $db->sql_fetchrow($result) ) - { - $sql_topics .= ( ( $sql_topics != '' ) ? ', ' : '' ) . $row['topic_id']; - } - $db->sql_freeresult($result); - - if( $sql_topics != '' ) - { - $sql = "SELECT post_id - FROM " . POSTS_TABLE . " - WHERE forum_id = $forum_id - AND topic_id IN ($sql_topics)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain list of posts to prune', '', __LINE__, __FILE__, $sql); - } - - $sql_post = ''; - while ( $row = $db->sql_fetchrow($result) ) - { - $sql_post .= ( ( $sql_post != '' ) ? ', ' : '' ) . $row['post_id']; - } - $db->sql_freeresult($result); - - if ( $sql_post != '' ) - { - $sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id IN ($sql_topics)"; - if ( !$db->sql_query($sql, BEGIN_TRANSACTION) ) - { - message_die(GENERAL_ERROR, 'Could not delete watched topics during prune', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . TOPICS_TABLE . " - WHERE topic_id IN ($sql_topics)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete topics during prune', '', __LINE__, __FILE__, $sql); - } - - $pruned_topics = $db->sql_affectedrows(); - - $sql = "DELETE FROM " . POSTS_TABLE . " - WHERE post_id IN ($sql_post)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete post_text during prune', '', __LINE__, __FILE__, $sql); - } - - $pruned_posts = $db->sql_affectedrows(); - - $sql = "DELETE FROM " . POSTS_TEXT_TABLE . " - WHERE post_id IN ($sql_post)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete post during prune', '', __LINE__, __FILE__, $sql); - } - - remove_search_post($sql_post); - - return array ('topics' => $pruned_topics, 'posts' => $pruned_posts); - } - } - - return array('topics' => 0, 'posts' => 0); -} - -// -// Function auto_prune(), this function will read the configuration data from -// the auto_prune table and call the prune function with the necessary info. -// -function auto_prune($forum_id = 0) -{ - global $db, $lang; - - $sql = "SELECT * - FROM " . PRUNE_TABLE . " - WHERE forum_id = $forum_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not read auto_prune table', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - if ( $row['prune_freq'] && $row['prune_days'] ) - { - $prune_date = time() - ( $row['prune_days'] * 86400 ); - $next_prune = time() + ( $row['prune_freq'] * 86400 ); - - prune($forum_id, $prune_date); - sync('forum', $forum_id); - - $sql = "UPDATE " . FORUMS_TABLE . " - SET prune_next = $next_prune - WHERE forum_id = $forum_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update forum table', '', __LINE__, __FILE__, $sql); - } - } - } - - return; -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/sessions.php b/phpBB2/includes/sessions.php deleted file mode 100644 index 851fae7..0000000 --- a/phpBB2/includes/sessions.php +++ /dev/null @@ -1,578 +0,0 @@ -sql_query($sql))) - { - message_die(CRITICAL_ERROR, 'Error doing DB query userdata row fetch', '', __LINE__, __FILE__, $sql); - } - - $userdata = $db->sql_fetchrow($result); - $db->sql_freeresult($result); - - $enable_autologin = $login = 1; - } - else if (!$auto_create) - { - $sessiondata['autologinid'] = ''; - $sessiondata['userid'] = $user_id; - - $sql = 'SELECT * - FROM ' . USERS_TABLE . ' - WHERE user_id = ' . (int) $user_id . ' - AND user_active = 1'; - if (!($result = $db->sql_query($sql))) - { - message_die(CRITICAL_ERROR, 'Error doing DB query userdata row fetch', '', __LINE__, __FILE__, $sql); - } - - $userdata = $db->sql_fetchrow($result); - $db->sql_freeresult($result); - - $login = 1; - } - } - - // - // At this point either $userdata should be populated or - // one of the below is true - // * Key didn't match one in the DB - // * User does not exist - // * User is inactive - // - if (!sizeof($userdata) || !is_array($userdata) || !$userdata) - { - $sessiondata['autologinid'] = ''; - $sessiondata['userid'] = $user_id = ANONYMOUS; - $enable_autologin = $login = 0; - - $sql = 'SELECT * - FROM ' . USERS_TABLE . ' - WHERE user_id = ' . (int) $user_id; - if (!($result = $db->sql_query($sql))) - { - message_die(CRITICAL_ERROR, 'Error doing DB query userdata row fetch', '', __LINE__, __FILE__, $sql); - } - - $userdata = $db->sql_fetchrow($result); - $db->sql_freeresult($result); - } - - - // - // Initial ban check against user id, IP and email address - // - preg_match('/(..)(..)(..)(..)/', $user_ip, $user_ip_parts); - - $sql = "SELECT ban_ip, ban_userid, ban_email - FROM " . BANLIST_TABLE . " - WHERE ban_ip IN ('" . $user_ip_parts[1] . $user_ip_parts[2] . $user_ip_parts[3] . $user_ip_parts[4] . "', '" . $user_ip_parts[1] . $user_ip_parts[2] . $user_ip_parts[3] . "ff', '" . $user_ip_parts[1] . $user_ip_parts[2] . "ffff', '" . $user_ip_parts[1] . "ffffff') - OR ban_userid = $user_id"; - if ( $user_id != ANONYMOUS ) - { - $sql .= " OR ban_email LIKE '" . str_replace("\'", "''", $userdata['user_email']) . "' - OR ban_email LIKE '" . substr(str_replace("\'", "''", $userdata['user_email']), strpos(str_replace("\'", "''", $userdata['user_email']), "@")) . "'"; - } - if ( !($result = $db->sql_query($sql)) ) - { - message_die(CRITICAL_ERROR, 'Could not obtain ban information', '', __LINE__, __FILE__, $sql); - } - - if ( $ban_info = $db->sql_fetchrow($result) ) - { - if ( $ban_info['ban_ip'] || $ban_info['ban_userid'] || $ban_info['ban_email'] ) - { - message_die(CRITICAL_MESSAGE, 'You_been_banned'); - } - } - - // - // Create or update the session - // - $sql = "UPDATE " . SESSIONS_TABLE . " - SET session_user_id = $user_id, session_start = $current_time, session_time = $current_time, session_page = $page_id, session_logged_in = $login, session_admin = $admin - WHERE session_id = '" . $session_id . "' - AND session_ip = '$user_ip'"; - if ( !$db->sql_query($sql) || !$db->sql_affectedrows() ) - { - $session_id = md5(dss_rand()); - - $sql = "INSERT INTO " . SESSIONS_TABLE . " - (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in, session_admin) - VALUES ('$session_id', $user_id, $current_time, $current_time, '$user_ip', $page_id, $login, $admin)"; - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error creating new session', '', __LINE__, __FILE__, $sql); - } - } - - if ( $user_id != ANONYMOUS ) - { - $last_visit = ( $userdata['user_session_time'] > 0 ) ? $userdata['user_session_time'] : $current_time; - - if (!$admin) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_session_time = $current_time, user_session_page = $page_id, user_lastvisit = $last_visit - WHERE user_id = $user_id"; - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error updating last visit time', '', __LINE__, __FILE__, $sql); - } - } - - $userdata['user_lastvisit'] = $last_visit; - - // - // Regenerate the auto-login key - // - if ($enable_autologin) - { - $auto_login_key = dss_rand() . dss_rand(); - - if (isset($sessiondata['autologinid']) && (string) $sessiondata['autologinid'] != '') - { - $sql = 'UPDATE ' . SESSIONS_KEYS_TABLE . " - SET last_ip = '$user_ip', key_id = '" . md5($auto_login_key) . "', last_login = $current_time - WHERE key_id = '" . md5($sessiondata['autologinid']) . "'"; - } - else - { - $sql = 'INSERT INTO ' . SESSIONS_KEYS_TABLE . "(key_id, user_id, last_ip, last_login) - VALUES ('" . md5($auto_login_key) . "', $user_id, '$user_ip', $current_time)"; - } - - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error updating session key', '', __LINE__, __FILE__, $sql); - } - - $sessiondata['autologinid'] = $auto_login_key; - unset($auto_login_key); - } - else - { - $sessiondata['autologinid'] = ''; - } - -// $sessiondata['autologinid'] = (!$admin) ? (( $enable_autologin && $sessionmethod == SESSION_METHOD_COOKIE ) ? $auto_login_key : '') : $sessiondata['autologinid']; - $sessiondata['userid'] = $user_id; - } - - $userdata['session_id'] = $session_id; - $userdata['session_ip'] = $user_ip; - $userdata['session_user_id'] = $user_id; - $userdata['session_logged_in'] = $login; - $userdata['session_page'] = $page_id; - $userdata['session_start'] = $current_time; - $userdata['session_time'] = $current_time; - $userdata['session_admin'] = $admin; - $userdata['session_key'] = $sessiondata['autologinid']; - - setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure); - setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure); - - $SID = 'sid=' . $session_id; - - return $userdata; -} - -// -// Checks for a given user session, tidies session table and updates user -// sessions at each page refresh -// -function session_pagestart($user_ip, $thispage_id) -{ - global $db, $lang, $board_config; - global $HTTP_COOKIE_VARS, $HTTP_GET_VARS, $SID; - - $cookiename = $board_config['cookie_name']; - $cookiepath = $board_config['cookie_path']; - $cookiedomain = $board_config['cookie_domain']; - $cookiesecure = $board_config['cookie_secure']; - - $current_time = time(); - unset($userdata); - - if ( isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) || isset($HTTP_COOKIE_VARS[$cookiename . '_data']) ) - { - $sessiondata = isset( $HTTP_COOKIE_VARS[$cookiename . '_data'] ) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookiename . '_data'])) : array(); - $session_id = isset( $HTTP_COOKIE_VARS[$cookiename . '_sid'] ) ? $HTTP_COOKIE_VARS[$cookiename . '_sid'] : ''; - $sessionmethod = SESSION_METHOD_COOKIE; - } - else - { - $sessiondata = array(); - $session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : ''; - $sessionmethod = SESSION_METHOD_GET; - } - - // - if (!preg_match('/^[A-Za-z0-9]*$/', $session_id)) - { - $session_id = ''; - } - - $thispage_id = (int) $thispage_id; - - // - // Does a session exist? - // - if ( !empty($session_id) ) - { - // - // session_id exists so go ahead and attempt to grab all - // data in preparation - // - $sql = "SELECT u.*, s.* - FROM " . SESSIONS_TABLE . " s, " . USERS_TABLE . " u - WHERE s.session_id = '$session_id' - AND u.user_id = s.session_user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(CRITICAL_ERROR, 'Error doing DB query userdata row fetch', '', __LINE__, __FILE__, $sql); - } - - $userdata = $db->sql_fetchrow($result); - - // - // Did the session exist in the DB? - // - if ( isset($userdata['user_id']) ) - { - // - // Do not check IP assuming equivalence, if IPv4 we'll check only first 24 - // bits ... I've been told (by vHiker) this should alleviate problems with - // load balanced et al proxies while retaining some reliance on IP security. - // - $ip_check_s = substr($userdata['session_ip'], 0, 6); - $ip_check_u = substr($user_ip, 0, 6); - - if ($ip_check_s == $ip_check_u) - { - $SID = ($sessionmethod == SESSION_METHOD_GET || defined('IN_ADMIN')) ? 'sid=' . $session_id : ''; - - // - // Only update session DB a minute or so after last update - // - if ( $current_time - $userdata['session_time'] > 60 ) - { - // A little trick to reset session_admin on session re-usage - $update_admin = (!defined('IN_ADMIN') && $current_time - $userdata['session_time'] > ($board_config['session_length']+60)) ? ', session_admin = 0' : ''; - - $sql = "UPDATE " . SESSIONS_TABLE . " - SET session_time = $current_time, session_page = $thispage_id$update_admin - WHERE session_id = '" . $userdata['session_id'] . "'"; - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error updating sessions table', '', __LINE__, __FILE__, $sql); - } - - if ( $userdata['user_id'] != ANONYMOUS ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_session_time = $current_time, user_session_page = $thispage_id - WHERE user_id = " . $userdata['user_id']; - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error updating sessions table', '', __LINE__, __FILE__, $sql); - } - } - - session_clean($userdata['session_id']); - - setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure); - setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure); - } - - // Add the session_key to the userdata array if it is set - if ( isset($sessiondata['autologinid']) && $sessiondata['autologinid'] != '' ) - { - $userdata['session_key'] = $sessiondata['autologinid']; - } - - return $userdata; - } - } - } - - // - // If we reach here then no (valid) session exists. So we'll create a new one, - // using the cookie user_id if available to pull basic user prefs. - // - $user_id = ( isset($sessiondata['userid']) ) ? intval($sessiondata['userid']) : ANONYMOUS; - - if ( !($userdata = session_begin($user_id, $user_ip, $thispage_id, TRUE)) ) - { - message_die(CRITICAL_ERROR, 'Error creating user session', '', __LINE__, __FILE__, $sql); - } - - return $userdata; - -} - -/** -* Terminates the specified session -* It will delete the entry in the sessions table for this session, -* remove the corresponding auto-login key and reset the cookies -*/ -function session_end($session_id, $user_id) -{ - global $db, $lang, $board_config, $userdata; - global $HTTP_COOKIE_VARS, $HTTP_GET_VARS, $SID; - - $cookiename = $board_config['cookie_name']; - $cookiepath = $board_config['cookie_path']; - $cookiedomain = $board_config['cookie_domain']; - $cookiesecure = $board_config['cookie_secure']; - - $current_time = time(); - - if (!preg_match('/^[A-Za-z0-9]*$/', $session_id)) - { - return; - } - - // - // Delete existing session - // - $sql = 'DELETE FROM ' . SESSIONS_TABLE . " - WHERE session_id = '$session_id' - AND session_user_id = $user_id"; - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error removing user session', '', __LINE__, __FILE__, $sql); - } - - // - // Remove this auto-login entry (if applicable) - // - if ( isset($userdata['session_key']) && $userdata['session_key'] != '' ) - { - $autologin_key = md5($userdata['session_key']); - $sql = 'DELETE FROM ' . SESSIONS_KEYS_TABLE . ' - WHERE user_id = ' . (int) $user_id . " - AND key_id = '$autologin_key'"; - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error removing auto-login key', '', __LINE__, __FILE__, $sql); - } - } - - // - // We expect that message_die will be called after this function, - // but just in case it isn't, reset $userdata to the details for a guest - // - $sql = 'SELECT * - FROM ' . USERS_TABLE . ' - WHERE user_id = ' . ANONYMOUS; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(CRITICAL_ERROR, 'Error obtaining user details', '', __LINE__, __FILE__, $sql); - } - if ( !($userdata = $db->sql_fetchrow($result)) ) - { - message_die(CRITICAL_ERROR, 'Error obtaining user details', '', __LINE__, __FILE__, $sql); - } - $db->sql_freeresult($result); - - - setcookie($cookiename . '_data', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure); - setcookie($cookiename . '_sid', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure); - - return true; -} - -/** -* Removes expired sessions and auto-login keys from the database -*/ -function session_clean($session_id) -{ - global $board_config, $db; - - // - // Delete expired sessions - // - $sql = 'DELETE FROM ' . SESSIONS_TABLE . ' - WHERE session_time < ' . (time() - (int) $board_config['session_length']) . " - AND session_id <> '$session_id'"; - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error clearing sessions table', '', __LINE__, __FILE__, $sql); - } - - // - // Delete expired auto-login keys - // If max_autologin_time is not set then keys will never be deleted - // (same behaviour as old 2.0.x session code) - // - if (!empty($board_config['max_autologin_time']) && $board_config['max_autologin_time'] > 0) - { - $sql = 'DELETE FROM ' . SESSIONS_KEYS_TABLE . ' - WHERE last_login < ' . (time() - (86400 * (int) $board_config['max_autologin_time'])); - $db->sql_query($sql); - } - - return true; -} - -/** -* Reset all login keys for the specified user -* Called on password changes -*/ -function session_reset_keys($user_id, $user_ip) -{ - global $db, $userdata, $board_config; - - $key_sql = ($user_id == $userdata['user_id'] && !empty($userdata['session_key'])) ? "AND key_id != '" . md5($userdata['session_key']) . "'" : ''; - - $sql = 'DELETE FROM ' . SESSIONS_KEYS_TABLE . ' - WHERE user_id = ' . (int) $user_id . " - $key_sql"; - - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error removing auto-login keys', '', __LINE__, __FILE__, $sql); - } - - $where_sql = 'session_user_id = ' . (int) $user_id; - $where_sql .= ($user_id == $userdata['user_id']) ? " AND session_id <> '" . $userdata['session_id'] . "'" : ''; - $sql = 'DELETE FROM ' . SESSIONS_TABLE . " - WHERE $where_sql"; - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error removing user session(s)', '', __LINE__, __FILE__, $sql); - } - - if ( !empty($key_sql) ) - { - $auto_login_key = dss_rand() . dss_rand(); - - $current_time = time(); - - $sql = 'UPDATE ' . SESSIONS_KEYS_TABLE . " - SET last_ip = '$user_ip', key_id = '" . md5($auto_login_key) . "', last_login = $current_time - WHERE key_id = '" . md5($userdata['session_key']) . "'"; - - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error updating session key', '', __LINE__, __FILE__, $sql); - } - - // And now rebuild the cookie - $sessiondata['userid'] = $user_id; - $sessiondata['autologinid'] = $auto_login_key; - $cookiename = $board_config['cookie_name']; - $cookiepath = $board_config['cookie_path']; - $cookiedomain = $board_config['cookie_domain']; - $cookiesecure = $board_config['cookie_secure']; - - setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure); - - $userdata['session_key'] = $auto_login_key; - unset($sessiondata); - unset($auto_login_key); - } -} - -// -// Append $SID to a url. Borrowed from phplib and modified. This is an -// extra routine utilised by the session code above and acts as a wrapper -// around every single URL and form action. If you replace the session -// code you must include this routine, even if it's empty. -// -function append_sid($url, $non_html_amp = false) -{ - global $SID; - - if ( !empty($SID) && !preg_match('#sid=#', $url) ) - { - $url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID; - } - - return $url; -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/smtp.php b/phpBB2/includes/smtp.php deleted file mode 100644 index b4f1112..0000000 --- a/phpBB2/includes/smtp.php +++ /dev/null @@ -1,210 +0,0 @@ - 1) - { - $headers = join("\n", $headers); - } - else - { - $headers = $headers[0]; - } - } - $headers = chop($headers); - - // Make sure there are no bare linefeeds in the headers - $headers = preg_replace('#(?\r\n"); - server_parse($socket, "250", __LINE__); - - // Specify each user to send to and build to header. - $to_header = ''; - - // Add an additional bit of error checking to the To field. - $mail_to = (trim($mail_to) == '') ? 'Undisclosed-recipients:;' : trim($mail_to); - if (preg_match('#[^ ]+\@[^ ]+#', $mail_to)) - { - fputs($socket, "RCPT TO: <$mail_to>\r\n"); - server_parse($socket, "250", __LINE__); - } - - // Ok now do the CC and BCC fields... - @reset($bcc); - while(list(, $bcc_address) = each($bcc)) - { - // Add an additional bit of error checking to bcc header... - $bcc_address = trim($bcc_address); - if (preg_match('#[^ ]+\@[^ ]+#', $bcc_address)) - { - fputs($socket, "RCPT TO: <$bcc_address>\r\n"); - server_parse($socket, "250", __LINE__); - } - } - - @reset($cc); - while(list(, $cc_address) = each($cc)) - { - // Add an additional bit of error checking to cc header - $cc_address = trim($cc_address); - if (preg_match('#[^ ]+\@[^ ]+#', $cc_address)) - { - fputs($socket, "RCPT TO: <$cc_address>\r\n"); - server_parse($socket, "250", __LINE__); - } - } - - // Ok now we tell the server we are ready to start sending data - fputs($socket, "DATA\r\n"); - - // This is the last response code we look for until the end of the message. - server_parse($socket, "354", __LINE__); - - // Send the Subject Line... - fputs($socket, "Subject: $subject\r\n"); - - // Now the To Header. - fputs($socket, "To: $mail_to\r\n"); - - // Now any custom headers.... - fputs($socket, "$headers\r\n\r\n"); - - // Ok now we are ready for the message... - fputs($socket, "$message\r\n"); - - // Ok the all the ingredients are mixed in let's cook this puppy... - fputs($socket, ".\r\n"); - server_parse($socket, "250", __LINE__); - - // Now tell the server we are done and close the socket... - fputs($socket, "QUIT\r\n"); - fclose($socket); - - return TRUE; -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/sql_parse.php b/phpBB2/includes/sql_parse.php deleted file mode 100644 index ad27bb3..0000000 --- a/phpBB2/includes/sql_parse.php +++ /dev/null @@ -1,192 +0,0 @@ - 0)) - { - if ($lines[$i][0] != "#") - { - $output .= $lines[$i] . "\n"; - } - else - { - $output .= "\n"; - } - // Trading a bit of speed for lower mem. use here. - $lines[$i] = ""; - } - } - - return $output; - -} - -// -// split_sql_file will split an uploaded sql file into single sql statements. -// Note: expects trim() to have already been run on $sql. -// -function split_sql_file($sql, $delimiter) -{ - // Split up our string into "possible" SQL statements. - $tokens = explode($delimiter, $sql); - - // try to save mem. - $sql = ""; - $output = array(); - - // we don't actually care about the matches preg gives us. - $matches = array(); - - // this is faster than calling count($oktens) every time thru the loop. - $token_count = count($tokens); - for ($i = 0; $i < $token_count; $i++) - { - // Don't wanna add an empty string as the last thing in the array. - if (($i != ($token_count - 1)) || (strlen($tokens[$i] > 0))) - { - // This is the total number of single quotes in the token. - $total_quotes = preg_match_all("/'/", $tokens[$i], $matches); - // Counts single quotes that are preceded by an odd number of backslashes, - // which means they're escaped quotes. - $escaped_quotes = preg_match_all("/(? \ No newline at end of file diff --git a/phpBB2/includes/template.php b/phpBB2/includes/template.php deleted file mode 100644 index abb3d8a..0000000 --- a/phpBB2/includes/template.php +++ /dev/null @@ -1,2450 +0,0 @@ -_tpldata[block.][iteration#][child.][iteration#][child2.][iteration#][variablename] == value - // if it's a root-level variable, it'll be like this: - // $this->vars[varname] == value or $this->_tpldata['.'][0][varname] == value - // array "vars" is added for easier access to data - var $_tpldata = array('.' => array(0 => array())); - var $vars; - - // Hash of filenames for each template handle. - var $files = array(); - var $files_cache = array(); // array of cache files that exists - var $files_cache2 = array(); // array of cache files (exists or not exists) - - // Root template directory. - var $root = ''; - - // Cache directory (compatible with default cache mod) - var $cachedir = ''; - - // Search/replace for unknown files - var $cache_search = array(); - var $cache_replace = array(); - - // Template root directory (generated by set_rootdir) - var $tpldir = ''; - var $tpldir_len = 0; - - // Default template directory. - // If file for default template isn't found file from this template is used. - var $tpldef = 'subSilver'; - - // this will hash handle names to the compiled code for that handle. - var $compiled_code = array(); - - // This will hold the uncompiled code for that handle. - var $uncompiled_code = array(); - - // Cache settings - var $use_cache = 1; - var $cache_writable = 1; - - // Auto-compile setting - var $auto_compile = 1; - - // Current template name - var $tpl = ''; - - // List of replacements. tpl files in this list will be replaced with other tpl files - // according to configuration in xs.cfg - var $replace = array(); - - // counter for include - var $include_count = 0; - - // php extension. will be replaced by $phpEx in Template() function unless you disable it there - var $php = 'php'; - - // True if check switches - var $xs_check_switches = 1; - - // eXtreme Styles variables - var $xs_started = 0; - var $xs_version = 8; // number version. internal. do not change. - var $xs_versiontxt = '2.3.1'; // text version - - // These handles will be parsed if pparse() is executed. - // Can be used to automatically include header/footer if there is any content. - var $preparse = ''; - var $postparse = ''; - - // subtemplates mod detection - var $subtemplates = false; - - // style configuration - var $style_config = array(); - - // list of switches that are known typos in some mods. - // when error checking is enabled these errors will be auto-fixed. - // format: - // array(start_tag, end_tag) - var $bugs = array( - // ezportal typo: - array('fetchpost_row', 'fetch_post_row'), - // mycalendar 2.2.7 typos: - array('date_cell', 'date_cells'), - array('date_row', 'date_rows'), - // history mod typo: - array('site_today', 'site_week'), - ); - - /** - * Constructor. Installs XS mod on first run or updates it and sets the root dir. - */ - function Template($root = '.') - { - // setting pointer "vars" - $this->vars = &$this->_tpldata['.'][0]; - // load configuration - $this->load_config($root, true); - } - - /** - * Load mod configuration - */ - function load_config($root, $edit_db) - { - global $board_config, $phpbb_root_path, $phpEx; - // getting mod version from config and comparing with real data - $ver = isset($board_config['xs_version']) ? $board_config['xs_version'] : 0; - // check configuration - // set config values if there aren't any - $add = array(); - $del = array(); - $up = array(); - // list of outdated variables - $outdated = array( - 'xs_versoin', // was a typo in one of previous versions - 'xs_separator', // no longer used - 'xs_cache_dir_absolute', // no longer used - 'xs_cache_dir', // no longer used - 'xs_use_isset', // no longer used - ); - // list of default values - $default = array( - 'xs_auto_compile' => 1, - 'xs_auto_recompile' => 1, - 'xs_use_cache' => 1, - 'xs_php' => $phpEx, - 'xs_def_template' => 'subSilver', - 'xs_check_switches' => 1, - 'xs_warn_includes' => 1, - 'xs_add_comments' => 0, - 'xs_ftp_host' => '', - 'xs_ftp_login' => '', - 'xs_ftp_path' => '', - 'xs_downloads_count' => '0', - 'xs_downloads_default' => '0', - 'xs_shownav' => '1', - 'xs_template_time' => '0', - ); - // checking if all variables exist - foreach($default as $var => $value) - { - if(!isset($board_config[$var])) - { - $board_config[$var] = $value; - $add[] = $var; - } - } - // checking if there are any outdated variables that should be deleted - for($i=0; $ixs_version; - $add[] = 'xs_version'; - } - elseif($board_config['xs_version'] != $this->xs_version) - { - $board_config['xs_version'] = $this->xs_version; - $up[] = 'xs_version'; - } - // check config - if(!empty($board_config['xs_auto_recompile'])) - { - if(!$board_config['xs_auto_compile']) - { - $board_config['xs_auto_compile'] = 1; - if(!in_array('xs_auto_compile', $up) && !in_array('xs_auto_compile', $add)) - { - $up[] = 'xs_auto_compile'; - } - } - } - // install/upgrade - if($edit_db && ((count($add) > 0) || (count($up) > 0) || (count($del) > 0))) - { - $board_config['xs_template_time'] = time(); - if(!in_array('xs_template_time', $up)) - { - $up[] = 'xs_template_time'; - } - global $db; - if(!empty($db)) - { - // adding new config values - for($i=0; $isql_query($sql); - } - // removing old configuration variables that aren't used - for($i=0; $isql_query($sql); - } - // updating variables that should be overwritten - for($i=0; $isql_query($sql); - } - // recache config table for cat_hierarchy 2.1.0 - global $config; - if(isset($config->data) && $config->data === $board_config && isset($config->data['mod_cat_hierarchy'])) - { - $config->read(true); - } - } - } - $this->php = $board_config['xs_php']; - $this->tpldef = $board_config['xs_def_template']; - $this->use_cache = $board_config['xs_use_cache']; - $this->auto_compile = $board_config['xs_auto_compile']; - $this->xs_check_switches = $board_config['xs_check_switches']; - $this->cache_search = array('.', '\\', '/', '_tpl'); - $this->cache_replace = array('_', XS_SEPARATOR, XS_SEPARATOR, '.'.$this->php); - $old_root = $this->root; - $this->set_rootdir($root); - if(!empty($this->tpl)) - { - $this->load_replacements($this->tpldir . $this->tpl . '/xs.cfg'); - } - if($old_root !== $this->root) - { - $this->clear_files(); - } - } - - /** - * Sets the template root directory for this Template object. - */ - function set_rootdir($dir) - { - global $board_config, $phpbb_root_path; - if (!@is_dir($dir)) - { - return false; - } - $dir = str_replace('\\', '/', $dir); - // creating absolute path for cache - $this->cachedir = $phpbb_root_path . XS_DIR_CACHE . '/'; - // creating absolute path for current template and root dir - $this->tpldir = $phpbb_root_path . 'templates/'; - $this->tpldir_len = strlen($this->tpldir); - $this->root = $dir; - $this->tpl = $this->template_name($dir); - // check configuration - $this->get_config(); - // check subtemplates mod - $sub_templates_cfg = $this->root . '/sub_templates.cfg'; - if(defined('LANG_EXTEND_DONE') && @file_exists($sub_templates_cfg)) - { - $this->subtemplates = true; - } - return true; - } - - /** - * Destroys this template object. Should be called when you're done with it, in order - * to clear out the template data so you can load/parse a new template set. - */ - function destroy() - { - $this->_tpldata = array('.' => array(0 => array())); - $this->vars = &$this->_tpldata['.'][0]; - $this->xs_started = 0; - } - - /** - * Clears list of compiled files. - */ - function clear_files() - { - $this->files = array(); - $this->files_cache = array(); - $this->files_cache2 = array(); - $this->compiled_code = array(); - $this->uncompiled_code = array(); - } - - /** - * Loads replacements from .cfg file - */ - function load_replacements($file) - { - if(@file_exists($file)) - { - $replace = array(); - @include($file); - $this->replace = array_merge($this->replace, $replace); - } - } - - /** - * Extracts template name from path - */ - function template_name($dir) - { - $tpl = XS_TPL_ANY; // can start at any position - $tpl_null = XS_TPL_START; // can start only at zero position - // searching for 'templates/' and removing everything before it - $pos = strpos($dir, $tpl); - if($pos === false) - { - if(substr($dir, 0, strlen($tpl_null)) !== $tpl_null) - { - return ''; - } - $str = substr($dir, strlen($tpl_null), strlen($dir)); - } - else - { - $str = substr($dir, $pos + strlen($tpl), strlen($dir)); - } - // searching for one more 'templates/' - // that can happen if full path is like /home/some_dude/templates/phpbb/templates/subSilver/ - $dir = $this->template_name($str); - if(!$dir) - { - $dir = $str; - } - if(strpos($str, $tpl) !== false) - { - $dir = $this->template_name($str); - } - // check for another subdirectory - $pos = strpos($dir, '/'); - if($pos) - { - $dir = substr($dir, 0, $pos); - } - return $dir; - } - - function subtemplates_make_filename($filename) - { - global $HTTP_GET_VARS, $HTTP_POST_VARS, $db, $board_config, $images, $theme; - global $sub_template_key_image, $sub_templates; - global $tree; - - // initiate the sub-template image pack that will be use - $sub_template_key_image = POST_CAT_URL . '0'; - - // Check if sub_templates are defined for this theme - if ( $board_config['version'] > '.0.5' ) - { - $sub_templates_cfg = @phpbb_realpath($this->root . '/sub_templates.cfg'); - } - else - { - $sub_templates_cfg = $this->root . '/sub_templates.cfg'; - } - @include($sub_templates_cfg); - if ( isset($sub_templates) ) - { - // search an id - $cat_id = 0; - $forum_id = 0; - $topic_id = 0; - $post_id = 0; - - if ( !defined('IN_PRIVMSG') && ( isset($HTTP_GET_VARS[POST_POST_URL]) || isset($HTTP_POST_VARS[POST_POST_URL]) ) ) - { - $post_id = isset($HTTP_GET_VARS[POST_POST_URL]) ? intval($HTTP_GET_VARS[POST_POST_URL]) : intval($HTTP_POST_VARS[POST_POST_URL]); - } - - if ( isset($HTTP_GET_VARS[POST_TOPIC_URL]) || isset($HTTP_POST_VARS[POST_TOPIC_URL]) ) - { - $topic_id = intval($HTTP_GET_VARS[POST_TOPIC_URL]) ? intval($HTTP_GET_VARS[POST_TOPIC_URL]) : intval($HTTP_POST_VARS[POST_TOPIC_URL]); - } - - if ( isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_URL]) ) - { - $forum_id = isset($HTTP_GET_VARS[POST_FORUM_URL]) ? intval($HTTP_GET_VARS[POST_FORUM_URL]) : intval($HTTP_POST_VARS[POST_FORUM_URL]); - } - - if ( isset($HTTP_GET_VARS[POST_CAT_URL]) || isset($HTTP_POST_VARS[POST_CAT_URL]) ) - { - $cat_id = isset($HTTP_GET_VARS[POST_CAT_URL]) ? intval($HTTP_GET_VARS[POST_CAT_URL]) : intval($HTTP_POST_VARS[POST_CAT_URL]); - } - - if ( isset($HTTP_GET_VARS['selected_id']) || isset($HTTP_POST_VARS['selected_id']) ) - { - $selected_id = isset($HTTP_GET_VARS['selected_id']) ? $HTTP_GET_VARS['selected_id'] : $HTTP_POST_VARS['selected_id']; - $type = substr($selected_id, 0, 1); - $id = intval(substr($selected_id, 1)); - if (!empty($id)) switch ($type) - { - case POST_CAT_URL: - $cat_id = $id; - break; - case POST_FORUM_URL: - $forum_id = $id; - break; - case POST_TOPIC_URL: - $topic_id = $id; - break; - case POST_POST_URL: - if ( !defined('IN_PRIVMSG') ) - { - $post_id = $id; - break; - } - default: - break; - } - } - - // find the forum - if ( ($forum_id <= 0) && ($cat_id <= 0) ) - { - if ($post_id > 0) - { - $sql = "SELECT * FROM " . POSTS_TABLE . " WHERE post_id=$post_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Wasn\'t able to access posts', '', __LINE__, __FILE__, $sql); - } - if ( $row = $db->sql_fetchrow($result) ) - { - $forum_id = $row['forum_id']; - } - } - - if ($topic_id > 0) - { - $sql = "SELECT * FROM " . TOPICS_TABLE . " WHERE topic_id=$topic_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Wasn\'t able to access topics', '', __LINE__, __FILE__, $sql); - } - if ( $row = $db->sql_fetchrow($result) ) - { - $forum_id = $row['forum_id']; - } - } - } - - // is the categories hierarchy v 2 installed ? - $cat_hierarchy = function_exists('get_auth_keys'); - - // get the ids (forums and cats) - $fids = array(); - if (!$cat_hierarchy) - { - if ($forum_id > 0) - { - // add the forum_id - $fids[] = POST_FORUM_URL . $forum_id; - - // get the cat_id - $sql = "SELECT * FROM " . FORUMS_TABLE . " WHERE forum_id=$forum_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Wasn\'t able to access forums', '', __LINE__, __FILE__, $sql); - } - if ( $row = $db->sql_fetchrow($result) ) - { - $cat_id = $row['cat_id']; - } - } - - // add the cat_id - if ($cat_id > 0) - { - $fids[] = POST_CAT_URL . $cat_id; - } - - // add the root level - $fids[] = 'Root'; - } - else - { - // categories hierarchy v 2 compliancy - $cur = 'Root'; - if ($forum_id > 0) - { - $cur = POST_FORUM_URL . $forum_id; - } - else if ($cat_id > 0) - { - $cur = POST_CAT_URL . $cat_id; - } - - // add start - $fids[] = $cur; - while ( ($cur != 'Root') && !empty($cur) ) - { - // get parent level - $cur = (isset($tree['main'][ $tree['keys'][$cur] ])) ? $tree['main'][ $tree['keys'][$cur] ] : 'Root'; - - // add the parent level - if ( !empty($cur) ) - { - $fids[] = $cur; - } - } - } - - // search if this file is part of a sub-template - $sub_tpl_file = ''; - $sub_css_file = ''; - $sub_img_file = ''; - $sub_img_path = ''; - $template_path = 'templates/'; - $template_name = substr( $this->root, strpos($this->root, $template_path) + strlen($template_path) ); - $real_root = $this->root; - if ( $board_config['version'] > '.0.5' ) - { - $real_root = @phpbb_realpath($this->root); - } - if (substr($filename, 0, 1) != '/') - { - $found = false; - $num_fids = count($fids); - for ($i = 0; !$found && ($i < $num_fids); $i++) - { - $key = $fids[$i]; - - // convert root into c0 category - if ( ($key == 'Root') || empty($key) ) - { - $key = POST_CAT_URL . '0'; - } - - if ( isset($sub_templates[$key]) ) - { - // get the sub-template path - $current_template_path = $template_path . $template_name . '/' . $sub_templates[$key]['dir']; - $root_template_path = $real_root . '/' . $sub_templates[$key]['dir']; - - // set the filename - if ( empty($sub_tpl_file) && file_exists($root_template_path . '/' . $filename) ) - { - $found = true; - $sub_tpl_file = $sub_templates[$key]['dir'] . '/' . $filename; - break; - } - } - } - - // set the css file name - $found = false; - $num_fids = count($fids); - for ($i = 0; !$found && ($i < $num_fids); $i++) - { - $key = $fids[$i]; - - // convert root into c0 category - if ( ($key == 'Root') || empty($key) ) - { - $key = POST_CAT_URL . '0'; - } - - if ( isset($sub_templates[$key]) ) - { - // get the sub-template path - $current_template_path = $template_path . $template_name . '/' . $sub_templates[$key]['dir']; - $root_template_path = $real_root . '/' . $sub_templates[$key]['dir']; - if ( empty($sub_css_file) && isset($sub_templates[$key]['head_stylesheet']) && file_exists($root_template_path . '/' . $sub_templates[$key]['head_stylesheet']) ) - { - $found = true; - $sub_css_file = $sub_templates[$key]['dir'] . '/' . $sub_templates[$key]['head_stylesheet']; - break; - } - } - } - - // set the img file name - $found = false; - $num_fids = count($fids); - for ($i = 0; !$found && ($i < $num_fids); $i++) - { - $key = $fids[$i]; - - // convert root into c0 category - if ( ($key == 'Root') || empty($key) ) - { - $key = POST_CAT_URL . '0'; - } - - if ( isset($sub_templates[$key]) ) - { - // get the sub-template path - $current_template_path = $template_path . $template_name . '/' . $sub_templates[$key]['dir']; - $root_template_path = $real_root . '/' . $sub_templates[$key]['dir']; - if ( isset($sub_templates[$key]['imagefile']) && file_exists($root_template_path . '/' . $sub_templates[$key]['imagefile']) ) - { - $sub_img_path = $sub_templates[$key]['dir']; - $sub_img_file = $sub_templates[$key]['imagefile']; - - // send back the lowest level of the images file - $found = true; - $sub_template_key_image = $key; - break; - } - } - } - } - - // set the tpl file - if ( !empty($sub_tpl_file) ) - { - $filename = $sub_tpl_file; - } - - // set the css file - if ( !empty($sub_css_file) ) - { - $theme['head_stylesheet'] = $sub_css_file; - } - - // get the root level images - $key = POST_CAT_URL . '0'; - if ( isset($sub_templates[$key]) ) - { - // get the sub-template path - $current_template_path = $template_path . $template_name . '/' . $sub_templates[$key]['dir']; - $root_template_path = $real_root . '/' . $sub_templates[$key]['dir']; - if ( isset($sub_templates[$key]['imagefile']) && file_exists($root_template_path . '/' . $sub_templates[$key]['imagefile']) ) - { - $sav_images = $images; - $images = array(); - @include($root_template_path . '/' . $sub_templates[$key]['imagefile']); - $img_lang = ( file_exists($root_template_path . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english'; - foreach($images as $key => $value) - { - if ( !is_array($value) ) - { - $images[$key] = str_replace('{LANG}', 'lang_' . $img_lang, $value); - } - $sav_images[$key] = $images[$key]; - } - $images = $sav_images; - $sav_images = array(); - } - } - - // get the current images - if ( !empty($sub_template_key_image) && ($sub_template_key_image != POST_CAT_URL . '0') ) - { - $key = $sub_template_key_image; - - // get the sub-template path - $current_template_path = $template_path . $template_name . '/' . $sub_templates[$key]['dir']; - $root_template_path = $real_root . '/' . $sub_templates[$key]['dir']; - if ( isset($sub_templates[$key]['imagefile']) && file_exists($root_template_path . '/' . $sub_templates[$key]['imagefile']) ) - { - $sav_images = $images; - $images = array(); - @include($root_template_path . '/' . $sub_templates[$key]['imagefile']); - $img_lang = ( file_exists($root_template_path . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english'; - foreach($images as $key => $value) - { - if ( !is_array($value) ) - { - $images[$key] = str_replace('{LANG}', 'lang_' . $img_lang, $value); - } - $sav_images[$key] = $images[$key]; - } - $images = $sav_images; - $sav_images = array(); - } - } - } - return $filename; - } - - /** - * Generates a full path+filename for the given filename, which can either - * be an absolute name, or a name relative to the rootdir for this Template - * object. - */ - function make_filename($filename, $xs_include = false) - { - if($this->subtemplates) - { - $filename = $this->subtemplates_make_filename($filename); - } - // Check replacements list - if(!$xs_include && isset($this->replace[$filename])) - { - $filename = $this->replace[$filename]; - } - // Check if it's an absolute or relative path. - if ((substr($filename, 0, 1) !== '/') && (substr($filename, 1, 1) !== ':')) - { - return $this->root . '/' . $filename; - } - else - { - return str_replace('\\', '/', $filename); - } - } - - /** - * Converts template filename to cache filename. - * Returns empty string if non-cachable (for tpl files outside of root dir). - * $file should be absolute filename - */ - function make_filename_cache($file) - { - $str = str_replace($this->cache_search, $this->cache_replace, $file); - if(substr($file, 0, $this->tpldir_len) !== $this->tpldir || empty($this->tpl)) - { - return $this->cachedir . XS_TPL_PREFIX2 . $str; - } - // removing not needed part - $file = substr($file, $this->tpldir_len, strlen($file)); - // creating filename - return $this->cachedir . XS_TPL_PREFIX . str_replace($this->cache_search, $this->cache_replace, $file); - } - - /** - * Sets the template filenames for handles. $filename_array - * should be a hash of handle => filename pairs. - */ - function set_filenames($filename_array) - { - if (!is_array($filename_array)) - { - return false; - } - - foreach($filename_array as $handle => $filename) - { - $this->set_filename($handle, $filename); - } - - return true; - } - - - /** - * Assigns template filename for handle. - */ - function set_filename($handle, $filename, $xs_include = false, $quiet = false) - { - global $board_config; - $can_cache = $this->use_cache; - if(strpos($filename, '..') !== false) - { - $can_cache = false; - } - $this->files[$handle] = $this->make_filename($filename, $xs_include); - $this->files_cache[$handle] = ''; - $this->files_cache2[$handle] = ''; - // check if we are in admin control panel and override extreme styles mod controls if needed - if(defined('XS_ADMIN_OVERRIDE') && XS_ADMIN_OVERRIDE === true && @function_exists('xs_admin_override')) - { - xs_admin_override(); - } - // checking if we have valid filename - if(!$this->files[$handle]) - { - if($xs_include || $quiet) - { - return false; - } - else - { - die("Template->make_filename(): Error - invalid template $filename"); - } - } - // creating cache filename - if($can_cache) - { - $this->files_cache2[$handle] = $this->make_filename_cache($this->files[$handle]); - if(@file_exists($this->files_cache2[$handle])) - { - $this->files_cache[$handle] = $this->files_cache2[$handle]; - } - } - // checking if tpl and/or php file exists - if(empty($this->files_cache[$handle]) && !@file_exists($this->files[$handle])) - { - // trying to load alternative filename (usually subSilver) - if(!empty($this->tpldef) && !empty($this->tpl) && ($this->tpldef !== $this->tpl)) - { - $this->files[$handle] = ''; - // save old configuration - $root = $this->root; - $tpl_name = $this->tpl; - // set temporary configuration - $this->root = $this->tpldir . $this->tpldef; - $this->tpl = $this->tpldef; - // recursively run set_filename - $res = $this->set_filename($handle, $filename, $xs_include, $quiet); - // restore old configuration - $this->root = $root; - $this->tpl = $tpl_name; - return $res; - } - if($quiet) - { - return false; - } - if($xs_include) - { - if($board_config['xs_warn_includes']) - { - die('Template->make_filename(): Error - included template file not found: ' . $filename); - } - return false; - } - else - { - die('Template->make_filename(): Error - template file not found: ' . $filename); - } - } - // checking if we should recompile cache - if(!empty($this->files_cache[$handle]) && !empty($board_config['xs_auto_recompile'])) - { - $cache_time = @filemtime($this->files_cache[$handle]); - if(@filemtime($this->files[$handle]) > $cache_time || $board_config['xs_template_time'] > $cache_time) - { - // file was changed. don't use cache file (will be recompled if configuration allowes it) - $this->files_cache[$handle] = ''; - } - } - return true; - } - - /** - * includes file or executes code - */ - function execute($filename, $code, $handle) - { - global $lang, $theme, $board_config; - $template = $theme['template_name']; - global $$template; - $theme_info = &$$template; - if($board_config['xs_add_comments'] && $handle) - { - echo ''; - } - if($filename) - { - include($filename); - } - else - { - eval($code); - } - if($board_config['xs_add_comments'] && $handle) - { - echo ''; - } - return true; - } - - /** - * Load the file for the handle, compile the file, - * and run the compiled code. This will print out - * the results of executing the template. - */ - function pparse($handle) - { - global $board_config; - // parsing header if there is one - if($this->preparse || $this->postparse) - { - $preparse = $this->preparse; - $postparse = $this->postparse; - $this->preparse = ''; - $this->postparse = ''; - if($preparse) - { - $this->pparse($preparse); - } - if($postparse) - { - $str = $handle; - $handle = $postparse; - $this->pparse($str); - } - } - // checking if handle exists - if (empty($this->files[$handle]) && empty($this->files_cache[$handle])) - { - die("Template->loadfile(): No files found for handle $handle"); - } - $this->xs_startup(); - $force_recompile = empty($this->uncompiled_code[$handle]) ? false : true; - // checking if php file exists. - if (!empty($this->files_cache[$handle]) && !$force_recompile) - { - // php file exists - running it instead of tpl - $this->execute($this->files_cache[$handle], '', $handle); - return true; - } - if (!$this->loadfile($handle)) - { - die("Template->pparse(): Couldn't load template file for handle $handle"); - } - // actually compile the template now. - if (empty($this->compiled_code[$handle])) - { - // Actually compile the code now. - if(!empty($this->files_cache2[$handle]) && empty($this->files_cache[$handle]) && !$force_recompile) - { - $this->compiled_code[$handle] = $this->compile2($this->uncompiled_code[$handle], $handle, $this->files_cache2[$handle]); - } - else - { - $this->compiled_code[$handle] = $this->compile2($this->uncompiled_code[$handle], '', ''); - } - } - // Run the compiled code. - if (empty($this->files_cache[$handle]) || $force_recompile) - { - $this->execute('', $this->compiled_code[$handle], $handle); - } - else - { - $this->execute($this->files_cache[$handle], '', $handle); - } - return true; - } - - /** - * Precompile file - */ - function precompile($template, $filename) - { - global $precompile_num, $board_config; - if(empty($precompile_num)) - { - $precompile_num = 0; - } - $precompile_num ++; - $handle = 'precompile_' . $precompile_num; - // save old configuration - $root = $this->root; - $tpl_name = $this->tpl; - $old_config = $this->use_cache; - $old_autosave = $this->auto_compile; - // set temporary configuration - $this->root = $this->tpldir . $template; - $this->tpl = $template; - $this->use_cache = 1; - $this->auto_compile = 1; - // set filename - $res = $this->set_filename($handle, $filename, true, true); - if(!$res || !$this->files_cache2[$handle]) - { - $this->root = $root; - $this->tpl = $tpl_name; - $this->use_cache = $old_config; - $this->auto_compile = $old_autosave; - return false; - } - $this->files_cache[$handle] = ''; - // load template - $res = $this->loadfile($handle); - if(!$res || empty($this->uncompiled_code[$handle])) - { - $this->root = $root; - $this->tpl = $tpl_name; - $this->use_cache = $old_config; - $this->auto_compile = $old_autosave; - return false; - } - // compile the code - $this->compile2($this->uncompiled_code[$handle], $handle, $this->files_cache2[$handle]); - // restore confirugation - $this->root = $root; - $this->tpl = $tpl_name; - $this->use_cache = $old_config; - $this->auto_compile = $old_autosave; - return true; - } - - /** - * Inserts the uncompiled code for $handle as the - * value of $varname in the root-level. This can be used - * to effectively include a template in the middle of another - * template. - * Note that all desired assignments to the variables in $handle should be done - * BEFORE calling this function. - */ - function assign_var_from_handle($varname, $handle) - { - ob_start(); - $res = $this->pparse($handle); - $this->vars[$varname] = ob_get_contents(); - ob_end_clean(); - return $res; - } - - /** - * Block-level variable assignment. Adds a new block iteration with the given - * variable assignments. Note that this should only be called once per block - * iteration. - */ - function assign_block_vars($blockname, $vararray) - { - if (strstr($blockname, '.')) - { - // Nested block. - $blocks = explode('.', $blockname); - $blockcount = sizeof($blocks) - 1; - - $str = &$this->_tpldata; - for($i = 0; $i < $blockcount; $i++) - { - $str = &$str[$blocks[$i].'.']; - $str = &$str[sizeof($str)-1]; - } - // Now we add the block that we're actually assigning to. - // We're adding a new iteration to this block with the given - // variable assignments. - $str[$blocks[$blockcount].'.'][] = $vararray; - } - else - { - // Top-level block. - // Add a new iteration to this block with the variable assignments - // we were given. - $this->_tpldata[$blockname.'.'][] = $vararray; - } - - return true; - } - - /** - * Root-level variable assignment. Adds to current assignments, overriding - * any existing variable assignment with the same name. - */ - function assign_vars($vararray) - { - foreach($vararray as $key => $val) - { - $this->vars[$key] = $val; - } - return true; - } - - /** - * Root-level variable assignment. Adds to current assignments, overriding - * any existing variable assignment with the same name. - */ - function assign_var($varname, $varval) - { - $this->vars[$varname] = $varval; - - return true; - } - - /** - * If not already done, load the file for the given handle and populate - * the uncompiled_code[] hash with its code. Do not compile. - */ - function loadfile($handle) - { - global $board_config; - // If cached file exists do nothing - it will be included via include() - if(!empty($this->files_cache[$handle])) - { - return true; - } - - // If the file for this handle is already loaded and compiled, do nothing. - if (!empty($this->uncompiled_code[$handle])) - { - return true; - } - - // If we don't have a file assigned to this handle, die. - if (empty($this->files[$handle])) - { - die("Template->loadfile(): No file specified for handle $handle"); - } - - $filename = $this->files[$handle]; - - $str = implode('', @file($filename)); - if (empty($str)) - { - die("Template->loadfile(): File $filename for handle $handle is empty"); - } - - $this->uncompiled_code[$handle] = $str; - - return true; - } - - - - /** - * Generates a reference to the given variable inside the given (possibly nested) - * block namespace. This is a string of the form: - * ' . $this->_tpldata['parent.'][$_parent_i]['$child1.'][$_child1_i]['$child2.'][$_child2_i]...['varname'] . ' - * It's ready to be inserted into an "echo" line in one of the templates. - * NOTE: expects a trailing "." on the namespace. - */ - function generate_block_varref($namespace, $varname, $use_isset = true) - { - // Strip the trailing period. - $namespace = substr($namespace, 0, strlen($namespace) - 1); - - // Get a reference to the data block for this namespace. - $varref = $this->generate_block_data_ref($namespace, true); - // Prepend the necessary code to stick this in an echo line. - - // Append the variable reference. - $varref .= '[\'' . $varname . '\']'; - - if($use_isset) - { - $varref = '<'.'?php echo isset(' . $varref . ') ? ' . $varref . ' : \'\'; ?'.'>'; - } - else - { - $varref = '<'.'?php echo ' . $varref . '; ?'.'>'; - } - - return $varref; - - } - - - /** - * Generates a reference to the array of data values for the given - * (possibly nested) block namespace. This is a string of the form: - * $this->_tpldata['parent.'][$_parent_i]['$child1.'][$_child1_i]['$child2.'][$_child2_i]...['$childN.'] - * - * If $include_last_iterator is true, then [$_childN_i] will be appended to the form shown above. - * NOTE: does not expect a trailing "." on the blockname. - */ - function generate_block_data_ref($blockname, $include_last_iterator, $defop = false) - { - // Get an array of the blocks involved. - $blocks = explode('.', $blockname); - $blockcount = sizeof($blocks) - 1; - if($defop) - { - $varref = '$this->_tpldata[\'DEFINE\']'; - // Build up the string with everything but the last child. - for ($i = 0; $i < $blockcount; $i++) - { - $varref .= "['" . $blocks[$i] . ".'][\$" . $blocks[$i] . '_i]'; - } - // Add the block reference for the last child. - $varref .= "['" . $blocks[$blockcount] . ".']"; - // Add the iterator for the last child if requried. - if ($include_last_iterator) - { - $varref .= '[$' . $blocks[$blockcount] . '_i]'; - } - return $varref; - } - if($include_last_iterator) - { - return '$'. $blocks[$blockcount]. '_item'; - } - else - { - return '$'. $blocks[$blockcount-1]. '_item[\''. $blocks[$blockcount]. '.\']'; - } - } - - function compile_code($filename, $code, $use_isset = false) - { - // $filename - file to load code from. used if $code is empty - // $code - tpl code - // $use_isset - if false then compiled code looks more beautiful and easier - // to understand and it adds error_reporting() to supress php warnings. - // if true then isset() is used to check variables instead of supressing - // php warnings. note: for extreme styles mod 2.x it works only for - // block variables and for usual variables its always true. - - // load code from file - if(!$code && !empty($filename)) - { - $code = @implode('', @file($filename)); - } - - // Replace phpBB 2.2 tags - $search = array('', ''); - $replace = array('<'.'?php ', ' ?'.'>'); - $code = str_replace($search, $replace, $code); - - // Break it up into lines and put " -->" back. - $code_lines = explode(' -->', $code); - $count = count($code_lines); - for ($i = 0; $i < ($count - 1); $i++) - { - $code_lines[$i] .= ' -->'; - } - - $block_nesting_level = 0; - $block_names = array(); - $block_names[0] = "."; - $block_items = array(); - $count_if = 0; - - // prepare array for compiled code - $compiled = array(); - $count_bugs = count($this->bugs); - - // array of switches - $sw = array(); - - // replace all short php tags - $new_code = array(); - $line_count = count($code_lines); - for($i=0; $i<$line_count; $i++) - { - $line = $code_lines[$i]; - $pos = strpos($line, ''; - $code_lines[$i] = substr($line, $pos + 2); - $i --; - } - $code_lines = $new_code; - - // main loop - $line_count = count($code_lines); - for($i=0; $i<$line_count; $i++) - { - $line = $code_lines[$i]; - // reset keyword type - $keyword_type = XS_TAG_NONE; - // check if we have valid keyword in current line - $pos1 = strpos($line, '', $pos1); - if($pos2 !== false) - { - // find end of keyword in comment - $pos3 = strpos($line, ' ', $pos1 + 5); - if($pos3 !== false && $pos3 <= $pos2) - { - $keyword = substr($line, $pos1 + 5, $pos3 - $pos1 - 5); - // check keyword against list of supported keywords. case-sensitive - if($keyword === 'BEGIN') - { - $keyword_type = XS_TAG_BEGIN; - } - elseif($keyword === 'END') - { - $keyword_type = XS_TAG_END; - } - elseif($keyword === 'INCLUDE') - { - $keyword_type = XS_TAG_INCLUDE; - } - elseif($keyword === 'IF') - { - $keyword_type = XS_TAG_IF; - } - elseif($keyword === 'ELSE') - { - $keyword_type = XS_TAG_ELSE; - } - elseif($keyword === 'ELSEIF') - { - $keyword_type = XS_TAG_ELSEIF; - } - elseif($keyword === 'ENDIF') - { - $keyword_type = XS_TAG_ENDIF; - } - elseif($keyword === 'DEFINE') - { - $keyword_type = XS_TAG_DEFINE; - } - elseif($keyword === 'UNDEFINE') - { - $keyword_type = XS_TAG_UNDEFINE; - } - elseif($keyword === 'BEGINELSE') - { - $keyword_type = XS_TAG_BEGINELSE; - } - } - } - if(!$keyword_type) - { - // not valid keyword. process the rest of line - $compiled[] = $this->_compile_text(substr($line, 0, $pos1 + 4), $use_isset); - $code_lines[$i] = substr($line, $pos1 + 4); - $i --; - continue; - } - // remove code before keyword - if($pos1 > 0) - { - $compiled[] = $this->_compile_text(substr($line, 0, $pos1), $use_isset); - } - // remove keyword - $keyword_str = substr($line, $pos1, $pos2 - $pos1 + 4); - $params_str = $pos2 == $pos3 ? '' : substr($line, $pos3 + 1, $pos2 - $pos3 - 1); - $code_lines[$i] = substr($line, $pos2 + 4); - $i--; - // Check keywords - - /* - * - */ - if($keyword_type == XS_TAG_BEGIN) - { - $params = explode(' ', $params_str); - $num_params = count($params); - // get variable name - if($num_params == 1) - { - $var = $params[0]; - } - elseif($num_params == 2) - { - if($params[0] === '') - { - $var = $params[1]; - } - elseif($params[1] === '') - { - $var = $params[0]; - } - else - { - // invalid tag - $compiled[] = $keyword_str; - continue; - } - } - else - { - // invalid tag - $compiled[] = $keyword_str; - continue; - } - // check variable for matching end - if($this->xs_check_switches) - { - $found = 0; - $str = ''; - for ($j = $i+1; ($j < $line_count) && !$found; $j++) - { - $pos = strpos($code_lines[$j], $str); - if($pos !== false) - { - $found = 1; - $found_var = $var; - } - } - if(!$found && ($this->xs_check_switches == 1)) - { - // checking list of known buggy switches - $item = -1; - for($j=0; $j<$count_bugs; $j++) - { - if($this->bugs[$j][0] === $var) - { - $item = $j; - } - } - if($item >= 0) - { - $str1 = ''; - for ($j = $i+1; ($j < $line_count) && !$found; $j++) - { - $pos = strpos($code_lines[$j], $str1); - if($pos !== false) - { - $found_var = $this->bugs[$item][1]; - $found = 1; - $code_lines[$j] = str_replace($str, $str1, $code_lines[$j]); - } - } - } - } - if(!$found) - { - $compiled[] = $keyword_str; - continue; - } - // adding to list of switches - if(isset($sw[$found_var])) - { - $sw[$found_var] ++; - } - else - { - $sw[$found_var] = 1; - } - } - // adding code - $block_nesting_level++; - $block_names[$block_nesting_level] = $var; - if(isset($block_items[$var])) - { - $block_items[$var] ++; - } - else - { - $block_items[$var] = 1; - } - if ($block_nesting_level < 2) - { - // Block is not nested. - $line = '<'."?php\n\n"; - if($use_isset) - { - $line .= '$'. $var. '_count = ( isset($this->_tpldata[\''. $var. '.\']) ) ? sizeof($this->_tpldata[\''. $var. '.\']) : 0;'; - } - else - { - $line .= '$'. $var. '_count = sizeof($this->_tpldata[\''. $var. '.\']);'; - } - $line .= "\n" . 'for ($'. $var. '_i = 0; $'. $var. '_i < $'. $var. '_count; $'. $var. '_i++)'; - $line .= "\n". '{'. "\n"; - $line .= ' $'. $var. '_item = &$this->_tpldata[\''. $var. '.\'][$'. $var. '_i];'."\n"; - $line .= " \${$var}_item['S_ROW_COUNT'] = \${$var}_i;\n"; - $line .= " \${$var}_item['S_NUM_ROWS'] = \${$var}_count;\n"; - $line .= "\n?".">"; - } - else - { - // This block is nested. - // Generate a namespace string for this block. - $namespace = implode('.', $block_names); - // strip leading period from root level.. - $namespace = substr($namespace, 2); - // Get a reference to the data array for this block that depends on the - // current indices of all parent blocks. - $varref = $this->generate_block_data_ref($namespace, false); - // Create the for loop code to iterate over this block. - $line = '<'."?php\n\n"; - if($use_isset) - { - $line .= '$'. $var. '_count = ( isset('. $varref. ') ) ? sizeof('. $varref. ') : 0;'; - } - else - { - $line .= '$'. $var. '_count = sizeof('. $varref. ');'; - } - $line .= "\n". 'for ($'. $var. '_i = 0; $'. $var. '_i < $'. $var. '_count; $'. $var. '_i++)'; - $line .= "\n". '{'. "\n"; - $line .= ' $'. $var. '_item = &'. $varref. '[$'. $var. '_i];'."\n"; - $line .= " \${$var}_item['S_ROW_COUNT'] = \${$var}_i;\n"; - $line .= " \${$var}_item['S_NUM_ROWS'] = \${$var}_count;\n"; - $line .= "\n?".">"; - } - $compiled[] = $line; - continue; - } - /* - * - */ - if($keyword_type == XS_TAG_END) - { - $params = explode(' ', $params_str); - $num_params = count($params); - if($num_params == 1) - { - $var = $params[0]; - } - elseif($num_params == 2 && $params[0] === '') - { - $var = $params[1]; - } - elseif($num_params == 2 && $params[1] === '') - { - $var = $params[0]; - } - else - { - $compiled[] = $keyword_str; - continue; - } - if($this->xs_check_switches) - { - // checking if this switch was opened - if(!isset($sw[$var]) || ($sw[$var] < 1)) - { - // there is no opening switch - $compiled[] = $keyword_str; - continue; - } - $sw[$var] --; - } - // We have the end of a block. - $line = '<'."?php\n\n"; - $line .= '} // END ' . $var . "\n\n"; - $line .= 'if(isset($' . $var . '_item)) { unset($' . $var . '_item); } '; - $line .= "\n\n?".">"; - if(isset($block_items[$var])) - { - $block_items[$var] --; - } - else - { - $block_items[$var] = -1; - } - unset($block_names[$block_nesting_level]); - $block_nesting_level--; - $compiled[] = $line; - continue; - } - /* - * - */ - if($keyword_type == XS_TAG_BEGINELSE) - { - if($block_nesting_level) - { - $var = $block_names[$block_nesting_level]; - $compiled[] = '<' . '?php } if(!$' . $var . '_count) { ?' . '>'; - } - else - { - $compiled[] = $keyword_str; - continue; - } - } - /* - * - */ - if($keyword_type == XS_TAG_INCLUDE) - { - $params = explode(' ', $params_str); - $num_params = count($params); - if($num_params != 1) - { - $compiled[] = $keyword_str; - continue; - } - $line = '<'.'?php '; - $filehash = md5($params_str . $this->include_count . time()); - $line .= ' $this->set_filename(\'xs_include_' . $filehash . '\', \'' . $params_str .'\', true); '; - $line .= ' $this->pparse(\'xs_include_' . $filehash . '\'); '; - $line .= ' ?'.'>'; - $this->include_count ++; - $compiled[] = $line; - continue; - } - /* - * - */ - if($keyword_type == XS_TAG_IF || $keyword_type == XS_TAG_ELSEIF) - { - if(!$count_if) - { - $keyword_type = XS_TAG_IF; - } - $str = $this->compile_tag_if($params_str, $keyword_type == XS_TAG_IF ? false : true); - if($str) - { - $compiled[] = ''; - if($keyword_type == XS_TAG_IF) - { - $count_if ++; - } - } - else - { - $compiled[] = $keyword_str; - } - continue; - } - /* - * - */ - if($keyword_type == XS_TAG_ELSE && $count_if > 0) - { - $compiled[] = ''; - continue; - } - /* - * - */ - if($keyword_type == XS_TAG_ENDIF && $count_if > 0) - { - $compiled[] = ''; - $count_if --; - continue; - } - /* - * - */ - if($keyword_type == XS_TAG_DEFINE) - { - $str = $this->compile_tag_define($params_str); - if($str) - { - $compiled[] = ''; - } - else - { - $compiled[] = $keyword_str; - } - } - /* - * - */ - if($keyword_type == XS_TAG_UNDEFINE) - { - $str = $this->compile_tag_undefine($params_str); - if($str) - { - $compiled[] = ''; - } - else - { - $compiled[] = $keyword_str; - } - } - } - - // bring it back into a single string. - $code_header = ''; - $code_footer = ''; - if(!$use_isset) - { - $code_header = "<". "?php\n\$old_level = @error_reporting(E_ERROR | E_WARNING | E_PARSE); \n?".">"; - $code_footer = '<'."?php @error_reporting(\$old_level); ?".'>'; - } - - return $code_header . implode('', $compiled) . $code_footer; - } - - /* - * Compile code between tags - */ - function _compile_text($code, $use_isset) - { - if(strlen($code) < 3) - { - return $code; - } - // change template varrefs into PHP varrefs - // This one will handle varrefs WITH namespaces - $varrefs = array(); - preg_match_all('#\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}#is', $code, $varrefs); - $varcount = sizeof($varrefs[1]); - $search = array(); - $replace = array(); - for ($i = 0; $i < $varcount; $i++) - { - $namespace = $varrefs[1][$i]; - $varname = $varrefs[3][$i]; - $new = $this->generate_block_varref($namespace, $varname, $use_isset); - $search[] = $varrefs[0][$i]; - $replace[] = $new; - } - if(count($search) > 0) - { - $code = str_replace($search, $replace, $code); - } - // This will handle the remaining root-level varrefs - $code = preg_replace('#\{([a-z0-9\-_]*?)\}#is', '<'.'?php echo isset($this->vars[\'\1\']) ? $this->vars[\'\1\'] : $this->lang(\'\1\'); ?'.'>', $code); - $code = preg_replace('#\{\$([a-z0-9\-_]*?)\}#is', '<'.'?php echo isset($this->_tpldata[\'DEFINE\'][\'.\'][\'\\1\']) ? $this->_tpldata[\'DEFINE\'][\'.\'][\'\\1\'] : \'\'; ?'.'>', $code); - return $code; - } - - // - // Compile IF tags - much of this is from Smarty with - // some adaptions for our block level methods - // - function compile_tag_if($tag_args, $elseif) - { - /* Tokenize args for 'if' tag. */ - preg_match_all('/(?: - "[^"\\\\]*(?:\\\\.[^"\\\\]*)*" | - \'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\' | - [(),] | - [^\s(),]+)/x', $tag_args, $match); - - $tokens = $match[0]; - $is_arg_stack = array(); - - for ($i = 0; $i < count($tokens); $i++) - { - $token = &$tokens[$i]; - - switch ($token) - { - case '!': - case '%': - case '!==': - case '==': - case '===': - case '>': - case '<': - case '!=': - case '<>': - case '<<': - case '>>': - case '<=': - case '>=': - case '&&': - case '||': - case '|': - case '^': - case '&': - case '~': - case ')': - case ',': - case '+': - case '-': - case '*': - case '/': - case '@': - break; - - case 'eq': - $token = '=='; - break; - - case 'ne': - case 'neq': - $token = '!='; - break; - - case 'lt': - $token = '<'; - break; - - case 'le': - case 'lte': - $token = '<='; - break; - - case 'gt': - $token = '>'; - break; - - case 'ge': - case 'gte': - $token = '>='; - break; - - case 'and': - $token = '&&'; - break; - - case 'or': - $token = '||'; - break; - - case 'not': - $token = '!'; - break; - - case 'mod': - $token = '%'; - break; - - case '(': - array_push($is_arg_stack, $i); - break; - - case 'is': - $is_arg_start = ($tokens[$i-1] == ')') ? array_pop($is_arg_stack) : $i-1; - $is_arg = implode(' ', array_slice($tokens, $is_arg_start, $i - $is_arg_start)); - - $new_tokens = $this->_parse_is_expr($is_arg, array_slice($tokens, $i+1)); - - array_splice($tokens, $is_arg_start, count($tokens), $new_tokens); - - $i = $is_arg_start; - - default: - if (preg_match('#^(([a-z0-9\-_]+?\.)+?)?(\$)?([A-Z]+[A-Z0-9\-_]+)$#s', $token, $varrefs)) - { - $token = (!empty($varrefs[1])) ? $this->generate_block_data_ref(substr($varrefs[1], 0, -1), true, $varrefs[3]) . '[\'' . $varrefs[4] . '\']' : (($varrefs[3]) ? '$this->_tpldata[\'DEFINE\'][\'.\'][\'' . $varrefs[4] . '\']' : '$this->vars[\'' . $varrefs[4] . '\']'); - } - break; - } - } - - $code = (($elseif) ? '} elseif (' : 'if (') . (implode(' ', $tokens) . ') { '); - - return $code; - } - - // This is from Smarty - function _parse_is_expr($is_arg, $tokens) - { - $expr_end = 0; - $negate_expr = false; - - if (($first_token = array_shift($tokens)) == 'not') - { - $negate_expr = true; - $expr_type = array_shift($tokens); - } - else - { - $expr_type = $first_token; - } - - switch ($expr_type) - { - case 'even': - if (@$tokens[$expr_end] == 'by') - { - $expr_end++; - $expr_arg = $tokens[$expr_end++]; - $expr = "!(($is_arg / $expr_arg) % $expr_arg)"; - } - else - { - $expr = "!($is_arg % 2)"; - } - break; - - case 'odd': - if (@$tokens[$expr_end] == 'by') - { - $expr_end++; - $expr_arg = $tokens[$expr_end++]; - $expr = "(($is_arg / $expr_arg) % $expr_arg)"; - } - else - { - $expr = "($is_arg % 2)"; - } - break; - - case 'div': - if (@$tokens[$expr_end] == 'by') - { - $expr_end++; - $expr_arg = $tokens[$expr_end++]; - $expr = "!($is_arg % $expr_arg)"; - } - break; - - default: - break; - } - - if ($negate_expr) - { - $expr = "!($expr)"; - } - - array_splice($tokens, 0, $expr_end, $expr); - - return $tokens; - } - - - function compile_tag_define($tag_args) - { - preg_match('#^(([a-z0-9\-_]+?\.)+?)?\$([A-Z][A-Z0-9_\-]*?) = (\'?)(.*?)(\'?)$#', $tag_args, $match); - - if (empty($match[3]) || empty($match[5])) - { - return ''; - } - - // Are we a string? - if ($match[4] && $match[6]) - { - $match[5] = "'" . addslashes(str_replace(array('\\\'', '\\\\'), array('\'', '\\'), $match[5])) . "'"; - } - else - { - preg_match('#(true|false|\.)#i', $match[5], $type); - - switch (strtolower($type[1])) - { - case 'true': - case 'false': - $match[5] = strtoupper($match[5]); - break; - case '.'; - $match[5] = doubleval($match[5]); - break; - default: - $match[5] = intval($match[5]); - break; - } - } - - return (($match[1]) ? $this->generate_block_data_ref(substr($match[1], 0, -1), true, true) . '[\'' . $match[3] . '\']' : '$this->_tpldata[\'DEFINE\'][\'.\'][\'' . $match[3] . '\']') . ' = ' . $match[5] . ';'; - } - - function compile_tag_undefine($tag_args) - { - preg_match('#^(([a-z0-9\-_]+?\.)+?)?\$([A-Z][A-Z0-9_\-]*?)$#', $tag_args, $match); - if (empty($match[3])) - { - return ''; - } - return 'unset(' . (($match[1]) ? $this->generate_block_data_ref(substr($match[1], 0, -1), true, true) . '[\'' . $match[3] . '\']' : '$this->_tpldata[\'DEFINE\'][\'.\'][\'' . $match[3] . '\']') . ');'; - } - - /** - * Compiles code and writes to cache if needed - */ - function compile2($code, $handle, $cache_file) - { - $code = $this->compile_code('', $code, XS_USE_ISSET); - if($cache_file && !empty($this->use_cache) && !empty($this->auto_compile)) - { - $res = $this->write_cache($cache_file, $code); - if($handle && $res) - { - $this->files_cache[$handle] = $cache_file; - } - } - $code = '?'.'>'.$code.'<'."?php\n"; - return $code; - } - - /** - * Compiles the given string of code, and returns - * the result in a string. - * If "do_not_echo" is true, the returned code will not be directly - * executable, but can be used as part of a variable assignment - * for use in assign_code_from_handle(). - * This function isn't used and kept only for compatibility with original template.php - */ - function compile($code, $do_not_echo = false, $retvar = '') - { - $code = ' ?'.'>' . $this->compile_code('', $code, true) . '<'."?php \n"; - if($do_not_echo) - { - $code = "ob_start();\n". $code. "\n\${$retvar} = ob_get_contents();\nob_end_clean();\n"; - } - return $code; - } - - /** - * Write cache to disk - */ - function write_cache($filename, $code) - { - // check if cache is writable - if(!$this->cache_writable) - { - return false; - } - // check if filename is valid - if(substr($filename, 0, strlen($this->cachedir)) !== $this->cachedir) - { - return false; - } - // try to open file - $file = @fopen($filename, 'w'); - if(!$file) - { - // try to create directories - $dir = substr($filename, strlen($this->cachedir), strlen($filename)); - $dirs = explode('/', $dir); - $path = $this->cachedir; - @umask(0); - if(!@is_dir($path)) - { - if(!@mkdir($path)) - { - $this->cache_writable = 0; - return false; - } - else - { - @chmod($path, 0777); - } - } - $count = count($dirs); - if($count > 0) - for($i=0; $i<$count-1; $i++) - { - if($i>0) - { - $path .= '/'; - } - $path .= $dirs[$i]; - if(!@is_dir($path)) - { - if(!@mkdir($path)) - { - $this->cache_writable = 0; - return false; - } - else - { - @chmod($path, 0777); - } - } - } - // try to open file again after directories were created - $file = @fopen($filename, 'w'); - } - if(!$file) - { - $this->cache_writable = 0; - return false; - } - fputs($file, ""); - fputs($file, $code); - fclose($file); - @chmod($filename, 0777); - return true; - } - - function xs_startup() - { - global $phpEx, $board_config, $phpbb_root_path; - if(empty($this->xs_started)) - { // adding predefined variables - $this->xs_started = 1; - // file extension with session ID (eg: "php?sid=123&" or "php?") - // can be used to make custom URLs without modding phpbb - // contains "&" or "?" at the end so you can easily append paramenters - $php = append_sid($phpEx); - if(strpos($php, '?')) - { - $php .= '&'; - } - else - { - $php .= '?'; - } - $this->vars['PHP'] = isset($this->vars['PHP']) ? $this->vars['PHP'] : $php; - // adding language variable (eg: "english" or "german") - // can be used to make truly multi-lingual templates - $this->vars['LANG'] = isset($this->vars['LANG']) ? $this->vars['LANG'] : $board_config['default_lang']; - // adding current template - $tpl = $this->root . '/'; // $phpbb_root_path . 'templates/' . $this->tpl . '/'; - if(substr($tpl, 0, 2) === './') - { - $tpl = substr($tpl, 2, strlen($tpl)); - } - $this->vars['TEMPLATE'] = isset($this->vars['TEMPLATE']) ? $this->vars['TEMPLATE'] : $tpl; - $this->vars['TEMPLATE_NAME'] = isset($this->vars['TEMPLATE_NAME']) ? $this->vars['TEMPLATE_NAME'] : $this->tpl; - $this->_tpldata['switch_xs_enabled.'] = array(array('version' => $this->xs_versiontxt)); - } - } - - /** - * Checks for empty variable and shows language variable if possible. - */ - function lang($var) - { - global $lang; - if(substr($var, 0, 2) === 'L_') - { - $var = substr($var, 2); - // check variable as it is - if(isset($lang[$var])) - { - return $lang[$var]; - } - // check variable in lower case - if(isset($lang[strtolower($var)])) - { - return $lang[strtolower($var)]; - } - // check variable with first letter in upper case - $str = ucfirst(strtolower($var)); - if(isset($lang[$str])) - { - return $lang[$str]; - } - return ''; //str_replace('_', ' ', $var); - } - return ''; - } - - // - // - // Functions added for USERGROUP MOD (optimized) - // - // - function append_var_from_handle_to_block($blockname, $varname, $handle) - { - $this->assign_var_from_handle('_tmp', $handle); - // assign the value of the generated variable to the given varname. - $this->append_block_vars($blockname, array($varname => $this->vars['_tmp'])); - return true; - } - - function append_block_vars($blockname, $vararray) - { - if(strstr($blockname, '.')) - { - // Nested block. - $blocks = explode('.', $blockname); - $blockcount = sizeof($blocks) - 1; - $str = &$this->_tpldata; - for($i = 0; $i < $blockcount; $i++) - { - $str = &$str[$blocks[$i].'.']; - $str = &$str[sizeof($str)-1]; - } - // Now we add the block that we're actually assigning to. - // We're adding a new iteration to this block with the given - // variable assignments. - $str = &$str[$blocks[$blockcount].'.']; - $count = sizeof($str) - 1; - if($count >= 0) - { - // adding only if there is at least one item - $str[$count] = array_merge($str[$count], $vararray); - } - } - else - { - // Top-level block. - // Add a new iteration to this block with the variable assignments - // we were given. - $str = &$this->_tpldata[$blockname.'.']; - $count = sizeof($str) - 1; - if($count >= 0) - { - // adding only if there is at least one item - $str[$count] = array_merge($str[$count], $vararray); - } - } - return true; - } - - /* - * Flush a root level block, so it becomes empty. - */ - function flush_block_vars($blockname) - { - // Top-level block. - // flush a existing block we were given. - $current_iteration = sizeof($this->_tpldata[$blockname . '.']) - 1; - unset($this->_tpldata[$blockname . '.']); - return true; - } - - /* - * Add style configuration - */ - function _add_config($tpl, $add_vars = true) - { - global $phpbb_root_path; - if(@file_exists($phpbb_root_path . 'templates/' . $tpl . '/xs_config.cfg')) - { - $style_config = array(); - include($phpbb_root_path . 'templates/' . $tpl . '/xs_config.cfg'); - if(count($style_config)) - { - global $board_config, $db; - for($i=0; $istyle_config[$style_config[$i]['var']] = $style_config[$i]['default']; - if($add_vars) - { - $this->vars['TPL_CFG_' . strtoupper($style_config[$i]['var'])] = $style_config[$i]['default']; - } - } - $str = $this->_serialize($this->style_config); - $config_name = 'xs_style_' . $tpl; - $board_config[$config_name] = $str; - $sql = "INSERT INTO " . CONFIG_TABLE . " (config_name, config_value) VALUES ('" . str_replace('\\\'', '\'\'', addslashes($config_name)) . "', '" . str_replace('\\\'', '\'\'', addslashes($str)) . "')"; - $db->sql_query($sql); - // recache config table for cat_hierarchy 2.1.0 - global $config; - if(isset($config->data) && $config->data === $board_config && isset($config->data['mod_cat_hierarchy'])) - { - $config->read(true); - } - return true; - } - } - return false; - } - - function add_config($tpl) - { - $config_name = 'xs_style_' . $tpl; - global $board_config; - $result = false; - if(empty($board_config[$config_name])) - { - $old = $this->style_config; - $result = $this->_add_config($tpl, false); - $this->style_config = $old; - } - return $result; - } - - /* - * Refresh config data - */ - function _refresh_config($tpl, $add_vars = false) - { - global $phpbb_root_path; - if(@file_exists($phpbb_root_path . 'templates/' . $tpl . '/xs_config.cfg')) - { - $style_config = array(); - include($phpbb_root_path . 'templates/' . $tpl . '/xs_config.cfg'); - if(count($style_config)) - { - global $board_config, $db; - for($i=0; $istyle_config[$style_config[$i]['var']])) - { - $this->style_config[$style_config[$i]['var']] = $style_config[$i]['default']; - if($add_vars) - { - $this->vars['TPL_CFG_' . strtoupper($style_config[$i]['var'])] = $style_config[$i]['default']; - } - } - } - $str = $this->_serialize($this->style_config); - $config_name = 'xs_style_' . $tpl; - if(isset($board_config[$config_name])) - { - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value='" . str_replace('\\\'', '\'\'', addslashes($str)) . "' WHERE config_name='" . str_replace('\\\'', '\'\'', addslashes($config_name)) . "'"; - } - else - { - $sql = "INSERT INTO " . CONFIG_TABLE . " (config_name, config_value) VALUES ('" . str_replace('\\\'', '\'\'', addslashes($config_name)) . "', '" . str_replace('\\\'', '\'\'', addslashes($str)) . "')"; - } - $db->sql_query($sql); - $board_config[$config_name] = $str; - // recache config table for cat_hierarchy 2.1.0 - global $config; - if(isset($config->data) && $config->data === $board_config && isset($config->data['mod_cat_hierarchy'])) - { - $config->read(true); - } - return true; - } - } - return false; - } - - function refresh_config($tpl = '') - { - if($tpl === '') - { - $tpl = $this->tpl; - } - if($tpl == $this->tpl) - { - $result = $this->_refresh_config($tpl, true); - } - else - { - $old = $this->style_config; - $result = $this->_refresh_config($tpl, false); - $this->style_config = $old; - } - return $result; - } - - /* - * Get style configuration - */ - function _get_config($tpl, $add_config) - { - $this->style_config = array(); - if(empty($tpl)) - { - $tpl = $this->tpl; - } - $config_name = 'xs_style_' . $tpl; - global $board_config; - if(empty($board_config[$config_name])) - { - if($add_config) - { - $this->_add_config($tpl, $tpl === $this->tpl ? true : false); - } - return $this->style_config; - } - $this->style_config = $this->_unserialize($board_config[$config_name]); - if($tpl === $this->tpl) - { - foreach($this->style_config as $var => $value) - { - $this->vars['TPL_CFG_' . strtoupper($var)] = $value; - } - } - return $this->style_config; - } - - function get_config($tpl = '', $add_config = true) - { - if(empty($tpl)) - { - if(empty($this->tpl)) - { - return array(); - } - $this->_get_config($this->tpl, $add_config); - return $this->style_config; - } - else - { - $old_config = $this->style_config; - $result = $this->_get_config($tpl, $add_config); - $this->style_config = $old_config; - return $result; - } - } - - /* - * Split/merge config data. - * Using this function instead of (un)serialize because it generates smaller string so it can be stored in phpbb_config - */ - function _serialize($array) - { - if(!is_array($array)) - { - return ''; - } - $str = ''; - foreach($array as $var => $value) - { - if($str) - { - $str .= '|'; - } - $str .= $var . '=' . str_replace('|', '', $value); - } - return $str; - } - function _unserialize($str) - { - $array = array(); - $list = explode('|', $str); - for($i=0; $i_tpldata[$name.'.']) && count($tpl->_tpldata[$name.'.']) > 0); -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/topic_review.php b/phpBB2/includes/topic_review.php deleted file mode 100644 index aecb9d3..0000000 --- a/phpBB2/includes/topic_review.php +++ /dev/null @@ -1,228 +0,0 @@ -sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql); - } - - if ( !($forum_row = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_MESSAGE, 'Topic_post_not_exist'); - } - $db->sql_freeresult($result); - - $forum_id = $forum_row['forum_id']; - $topic_title = $forum_row['topic_title']; - - // - // Start session management - // - $userdata = session_pagestart($user_ip, $forum_id); - init_userprefs($userdata); - // - // End session management - // - - $is_auth = array(); - $is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_row); - - if ( !$is_auth['auth_read'] ) - { - message_die(GENERAL_MESSAGE, sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type'])); - } - } - - // - // Define censored word matches - // - if ( empty($orig_word) && empty($replacement_word) ) - { - $orig_word = array(); - $replacement_word = array(); - - obtain_word_list($orig_word, $replacement_word); - } - - // - // Dump out the page header and load viewtopic body template - // - if ( !$is_inline_review ) - { - $gen_simple_header = TRUE; - - $page_title = $lang['Topic_review'] . ' - ' . $topic_title; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'reviewbody' => 'posting_topic_review.tpl') - ); - } - - // - // Go ahead and pull all data for this topic - // - $sql = "SELECT u.username, u.user_id, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid - FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt - WHERE p.topic_id = $topic_id - AND p.poster_id = u.user_id - AND p.post_id = pt.post_id - ORDER BY p.post_time DESC - LIMIT " . $board_config['posts_per_page']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain post/user information', '', __LINE__, __FILE__, $sql); - } - - // - // Okay, let's do the loop, yeah come on baby let's do the loop - // and it goes like this ... - // - if ( $row = $db->sql_fetchrow($result) ) - { - $mini_post_img = $images['icon_minipost']; - $mini_post_alt = $lang['Post']; - - $i = 0; - do - { - $poster_id = $row['user_id']; - $poster = $row['username']; - - $post_date = create_date($board_config['default_dateformat'], $row['post_time'], $board_config['board_timezone']); - - // - // Handle anon users posting with usernames - // - if( $poster_id == ANONYMOUS && $row['post_username'] != '' ) - { - $poster = $row['post_username']; - $poster_rank = $lang['Guest']; - } - elseif ( $poster_id == ANONYMOUS ) - { - $poster = $lang['Guest']; - $poster_rank = ''; - } - - $post_subject = ( $row['post_subject'] != '' ) ? $row['post_subject'] : ''; - - $message = $row['post_text']; - $bbcode_uid = $row['bbcode_uid']; - - // - // If the board has HTML off but the post has HTML - // on then we process it, else leave it alone - // - if ( !$board_config['allow_html'] && $row['enable_html'] ) - { - $message = preg_replace('#(<)([\/]?.*?)(>)#is', '<\2>', $message); - } - - if ( $bbcode_uid != "" ) - { - $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message); - } - - $message = make_clickable($message); - - if ( count($orig_word) ) - { - $post_subject = preg_replace($orig_word, $replacement_word, $post_subject); - $message = preg_replace($orig_word, $replacement_word, $message); - } - - if ( $board_config['allow_smilies'] && $row['enable_smilies'] ) - { - $message = smilies_pass($message); - } - - $message = str_replace("\n", '
', $message); - - // - // Again this will be handled by the templating - // code at some point - // - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('postrow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - - 'MINI_POST_IMG' => $mini_post_img, - 'POSTER_NAME' => $poster, - 'POST_DATE' => $post_date, - 'POST_SUBJECT' => $post_subject, - 'MESSAGE' => $message, - - 'L_MINI_POST_ALT' => $mini_post_alt) - ); - - $i++; - } - while ( $row = $db->sql_fetchrow($result) ); - } - else - { - message_die(GENERAL_MESSAGE, 'Topic_post_not_exist', '', __LINE__, __FILE__, $sql); - } - $db->sql_freeresult($result); - - $template->assign_vars(array( - 'L_AUTHOR' => $lang['Author'], - 'L_MESSAGE' => $lang['Message'], - 'L_POSTED' => $lang['Posted'], - 'L_POST_SUBJECT' => $lang['Post_subject'], - 'L_TOPIC_REVIEW' => $lang['Topic_review']) - ); - - if ( !$is_inline_review ) - { - $template->pparse('reviewbody'); - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/usercp_activate.php b/phpBB2/includes/usercp_activate.php deleted file mode 100644 index d28f7ce..0000000 --- a/phpBB2/includes/usercp_activate.php +++ /dev/null @@ -1,119 +0,0 @@ -sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not obtain user information', '', __LINE__, __FILE__, $sql); -} - -if ( $row = $db->sql_fetchrow($result) ) -{ - if ( $row['user_active'] && trim($row['user_actkey']) == '' ) - { - $template->assign_vars(array( - 'META' => '') - ); - - message_die(GENERAL_MESSAGE, $lang['Already_activated']); - } - else if ((trim($row['user_actkey']) == trim($HTTP_GET_VARS['act_key'])) && (trim($row['user_actkey']) != '')) - { - if (intval($board_config['require_activation']) == USER_ACTIVATION_ADMIN && $row['user_newpasswd'] == '') - { - if (!$userdata['session_logged_in']) - { - redirect(append_sid('login.' . $phpEx . '?redirect=profile.' . $phpEx . '&mode=activate&' . POST_USERS_URL . '=' . $row['user_id'] . '&act_key=' . trim($HTTP_GET_VARS['act_key']))); - } - else if ($userdata['user_level'] != ADMIN) - { - message_die(GENERAL_MESSAGE, $lang['Not_Authorised']); - } - } - - $sql_update_pass = ( $row['user_newpasswd'] != '' ) ? ", user_password = '" . str_replace("\'", "''", $row['user_newpasswd']) . "', user_newpasswd = ''" : ''; - - $sql = "UPDATE " . USERS_TABLE . " - SET user_active = 1, user_actkey = ''" . $sql_update_pass . " - WHERE user_id = " . $row['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql_update); - } - - if ( intval($board_config['require_activation']) == USER_ACTIVATION_ADMIN && $sql_update_pass == '' ) - { - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->use_template('admin_welcome_activated', $row['user_lang']); - $emailer->email_address($row['user_email']); - $emailer->set_subject($lang['Account_activated_subject']); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'USERNAME' => $row['username'], - 'PASSWORD' => $password_confirm, - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
', "\n", "-- \n" . $board_config['board_email_sig']) : '') - ); - $emailer->send(); - $emailer->reset(); - - $template->assign_vars(array( - 'META' => '') - ); - - message_die(GENERAL_MESSAGE, $lang['Account_active_admin']); - } - else - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = ( $sql_update_pass == '' ) ? $lang['Account_active'] : $lang['Password_activated']; - message_die(GENERAL_MESSAGE, $message); - } - } - else - { - message_die(GENERAL_MESSAGE, $lang['Wrong_activation']); - } -} -else -{ - message_die(GENERAL_MESSAGE, $lang['No_such_user']); -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/usercp_avatar.php b/phpBB2/includes/usercp_avatar.php deleted file mode 100644 index 867edb6..0000000 --- a/phpBB2/includes/usercp_avatar.php +++ /dev/null @@ -1,406 +0,0 @@ -' . $lang['Avatar_filetype'] : $lang['Avatar_filetype']; - break; - } - - return false; -} - -function user_avatar_delete($avatar_type, $avatar_file) -{ - global $board_config, $userdata; - - $avatar_file = basename($avatar_file); - if ( $avatar_type == USER_AVATAR_UPLOAD && $avatar_file != '' ) - { - if ( @file_exists(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $avatar_file)) ) - { - @unlink('./' . $board_config['avatar_path'] . '/' . $avatar_file); - } - } - - return ", user_avatar = '', user_avatar_type = " . USER_AVATAR_NONE; -} - -function user_avatar_gallery($mode, &$error, &$error_msg, $avatar_filename, $avatar_category) -{ - global $board_config; - - $avatar_filename = phpbb_ltrim(basename($avatar_filename), "'"); - $avatar_category = phpbb_ltrim(basename($avatar_category), "'"); - - if(!preg_match('/(\.gif$|\.png$|\.jpg|\.jpeg)$/is', $avatar_filename)) - { - return ''; - } - - if ($avatar_filename == "" || $avatar_category == "") - { - return ''; - } - - if ( file_exists(@phpbb_realpath($board_config['avatar_gallery_path'] . '/' . $avatar_category . '/' . $avatar_filename)) && ($mode == 'editprofile') ) - { - $return = ", user_avatar = '" . str_replace("\'", "''", $avatar_category . '/' . $avatar_filename) . "', user_avatar_type = " . USER_AVATAR_GALLERY; - } - else - { - $return = ''; - } - return $return; -} - -function user_avatar_url($mode, &$error, &$error_msg, $avatar_filename) -{ - global $lang; - - if ( !preg_match('#^(http)|(ftp):\/\/#i', $avatar_filename) ) - { - $avatar_filename = 'http://' . $avatar_filename; - } - - $avatar_filename = substr($avatar_filename, 0, 100); - - if ( !preg_match("#^((ht|f)tp://)([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png))$)#is", $avatar_filename) ) - { - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
' . $lang['Wrong_remote_avatar_format'] : $lang['Wrong_remote_avatar_format']; - return; - } - - return ( $mode == 'editprofile' ) ? ", user_avatar = '" . str_replace("\'", "''", $avatar_filename) . "', user_avatar_type = " . USER_AVATAR_REMOTE : ''; - -} - -function user_avatar_upload($mode, $avatar_mode, &$current_avatar, &$current_type, &$error, &$error_msg, $avatar_filename, $avatar_realname, $avatar_filesize, $avatar_filetype) -{ - global $board_config, $db, $lang; - - $ini_val = ( @phpversion() >= '4.0.0' ) ? 'ini_get' : 'get_cfg_var'; - - $width = $height = 0; - $type = ''; - - if ( $avatar_mode == 'remote' && preg_match('/^(http:\/\/)?([\w\-\.]+)\:?([0-9]*)\/([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png)))$/', $avatar_filename, $url_ary) ) - { - if ( empty($url_ary[4]) ) - { - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
' . $lang['Incomplete_URL'] : $lang['Incomplete_URL']; - return; - } - - $base_get = '/' . $url_ary[4]; - $port = ( !empty($url_ary[3]) ) ? $url_ary[3] : 80; - - if ( !($fsock = @fsockopen($url_ary[2], $port, $errno, $errstr)) ) - { - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
' . $lang['No_connection_URL'] : $lang['No_connection_URL']; - return; - } - - @fputs($fsock, "GET $base_get HTTP/1.1\r\n"); - @fputs($fsock, "HOST: " . $url_ary[2] . "\r\n"); - @fputs($fsock, "Connection: close\r\n\r\n"); - - unset($avatar_data); - while( !@feof($fsock) ) - { - $avatar_data .= @fread($fsock, $board_config['avatar_filesize']); - } - @fclose($fsock); - - if (!preg_match('#Content-Length\: ([0-9]+)[^ /][\s]+#i', $avatar_data, $file_data1) || !preg_match('#Content-Type\: image/[x\-]*([a-z]+)[\s]+#i', $avatar_data, $file_data2)) - { - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
' . $lang['File_no_data'] : $lang['File_no_data']; - return; - } - - $avatar_filesize = $file_data1[1]; - $avatar_filetype = $file_data2[1]; - - if ( !$error && $avatar_filesize > 0 && $avatar_filesize < $board_config['avatar_filesize'] ) - { - $avatar_data = substr($avatar_data, strlen($avatar_data) - $avatar_filesize, $avatar_filesize); - - $tmp_path = ( !@$ini_val('safe_mode') ) ? '/tmp' : './' . $board_config['avatar_path'] . '/tmp'; - $tmp_filename = tempnam($tmp_path, uniqid(rand()) . '-'); - - $fptr = @fopen($tmp_filename, 'wb'); - $bytes_written = @fwrite($fptr, $avatar_data, $avatar_filesize); - @fclose($fptr); - - if ( $bytes_written != $avatar_filesize ) - { - @unlink($tmp_filename); - message_die(GENERAL_ERROR, 'Could not write avatar file to local storage. Please contact the board administrator with this message', '', __LINE__, __FILE__); - } - - list($width, $height, $type) = @getimagesize($tmp_filename); - } - else - { - $l_avatar_size = sprintf($lang['Avatar_filesize'], round($board_config['avatar_filesize'] / 1024)); - - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
' . $l_avatar_size : $l_avatar_size; - } - } - else if ( ( file_exists(@phpbb_realpath($avatar_filename)) ) && preg_match('/\.(jpg|jpeg|gif|png)$/i', $avatar_realname) ) - { - if ( $avatar_filesize <= $board_config['avatar_filesize'] && $avatar_filesize > 0 ) - { - preg_match('#image\/[x\-]*([a-z]+)#', $avatar_filetype, $avatar_filetype); - $avatar_filetype = $avatar_filetype[1]; - } - else - { - $l_avatar_size = sprintf($lang['Avatar_filesize'], round($board_config['avatar_filesize'] / 1024)); - - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
' . $l_avatar_size : $l_avatar_size; - return; - } - - list($width, $height, $type) = @getimagesize($avatar_filename); - } - - if ( !($imgtype = check_image_type($avatar_filetype, $error, $error_msg)) ) - { - return; - } - - switch ($type) - { - // GIF - case 1: - if ($imgtype != '.gif') - { - @unlink($tmp_filename); - message_die(GENERAL_ERROR, 'Unable to upload file', '', __LINE__, __FILE__); - } - break; - - // JPG, JPC, JP2, JPX, JB2 - case 2: - case 9: - case 10: - case 11: - case 12: - if ($imgtype != '.jpg' && $imgtype != '.jpeg') - { - @unlink($tmp_filename); - message_die(GENERAL_ERROR, 'Unable to upload file', '', __LINE__, __FILE__); - } - break; - - // PNG - case 3: - if ($imgtype != '.png') - { - @unlink($tmp_filename); - message_die(GENERAL_ERROR, 'Unable to upload file', '', __LINE__, __FILE__); - } - break; - - default: - @unlink($tmp_filename); - message_die(GENERAL_ERROR, 'Unable to upload file', '', __LINE__, __FILE__); - } - - if ( $width > 0 && $height > 0 && $width <= $board_config['avatar_max_width'] && $height <= $board_config['avatar_max_height'] ) - { - $new_filename = uniqid(rand()) . $imgtype; - - if ( $mode == 'editprofile' && $current_type == USER_AVATAR_UPLOAD && $current_avatar != '' ) - { - user_avatar_delete($current_type, $current_avatar); - } - - if( $avatar_mode == 'remote' ) - { - @copy($tmp_filename, './' . $board_config['avatar_path'] . "/$new_filename"); - @unlink($tmp_filename); - } - else - { - if ( @$ini_val('open_basedir') != '' ) - { - if ( @phpversion() < '4.0.3' ) - { - message_die(GENERAL_ERROR, 'open_basedir is set and your PHP version does not allow move_uploaded_file', '', __LINE__, __FILE__); - } - - $move_file = 'move_uploaded_file'; - } - else - { - $move_file = 'copy'; - } - - if (!is_uploaded_file($avatar_filename)) - { - message_die(GENERAL_ERROR, 'Unable to upload file', '', __LINE__, __FILE__); - } - $move_file($avatar_filename, './' . $board_config['avatar_path'] . "/$new_filename"); - } - - @chmod('./' . $board_config['avatar_path'] . "/$new_filename", 0777); - - $avatar_sql = ( $mode == 'editprofile' ) ? ", user_avatar = '$new_filename', user_avatar_type = " . USER_AVATAR_UPLOAD : "'$new_filename', " . USER_AVATAR_UPLOAD; - } - else - { - $l_avatar_size = sprintf($lang['Avatar_imagesize'], $board_config['avatar_max_width'], $board_config['avatar_max_height']); - - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
' . $l_avatar_size : $l_avatar_size; - } - - return $avatar_sql; -} - -function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popup_pm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$session_id) -{ - global $board_config, $db, $template, $lang, $images, $theme; - global $phpbb_root_path, $phpEx; - - $dir = @opendir($board_config['avatar_gallery_path']); - - $avatar_images = array(); - while( $file = @readdir($dir) ) - { - if( $file != '.' && $file != '..' && !is_file($board_config['avatar_gallery_path'] . '/' . $file) && !is_link($board_config['avatar_gallery_path'] . '/' . $file) ) - { - $sub_dir = @opendir($board_config['avatar_gallery_path'] . '/' . $file); - - $avatar_row_count = 0; - $avatar_col_count = 0; - while( $sub_file = @readdir($sub_dir) ) - { - if( preg_match('/(\.gif$|\.png$|\.jpg|\.jpeg)$/is', $sub_file) ) - { - $avatar_images[$file][$avatar_row_count][$avatar_col_count] = $sub_file; - $avatar_name[$file][$avatar_row_count][$avatar_col_count] = ucfirst(str_replace("_", " ", preg_replace('/^(.*)\..*$/', '\1', $sub_file))); - - $avatar_col_count++; - if( $avatar_col_count == 5 ) - { - $avatar_row_count++; - $avatar_col_count = 0; - } - } - } - } - } - - @closedir($dir); - - @ksort($avatar_images); - @reset($avatar_images); - - if( empty($category) ) - { - list($category, ) = each($avatar_images); - } - @reset($avatar_images); - - $s_categories = ''; - - $s_colspan = 0; - for($i = 0; $i < count($avatar_images[$category]); $i++) - { - $template->assign_block_vars("avatar_row", array()); - - $s_colspan = max($s_colspan, count($avatar_images[$category][$i])); - - for($j = 0; $j < count($avatar_images[$category][$i]); $j++) - { - $template->assign_block_vars('avatar_row.avatar_column', array( - "AVATAR_IMAGE" => $board_config['avatar_gallery_path'] . '/' . $category . '/' . $avatar_images[$category][$i][$j], - "AVATAR_NAME" => $avatar_name[$category][$i][$j]) - ); - - $template->assign_block_vars('avatar_row.avatar_option_column', array( - "S_OPTIONS_AVATAR" => $avatar_images[$category][$i][$j]) - ); - } - } - - $params = array('coppa', 'user_id', 'username', 'email', 'current_email', 'cur_password', 'new_password', 'password_confirm', 'icq', 'aim', 'msn', 'yim', 'website', 'location', 'occupation', 'interests', 'signature', 'viewemail', 'notifypm', 'popup_pm', 'notifyreply', 'attachsig', 'allowhtml', 'allowbbcode', 'allowsmilies', 'hideonline', 'style', 'language', 'timezone', 'dateformat'); - - $s_hidden_vars = ''; - - for($i = 0; $i < count($params); $i++) - { - $s_hidden_vars .= ''; - } - - $template->assign_vars(array( - 'L_AVATAR_GALLERY' => $lang['Avatar_gallery'], - 'L_SELECT_AVATAR' => $lang['Select_avatar'], - 'L_RETURN_PROFILE' => $lang['Return_profile'], - 'L_CATEGORY' => $lang['Select_category'], - - 'S_CATEGORY_SELECT' => $s_categories, - 'S_COLSPAN' => $s_colspan, - 'S_PROFILE_ACTION' => append_sid("profile.$phpEx?mode=$mode"), - 'S_HIDDEN_FIELDS' => $s_hidden_vars) - ); - - return; -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/usercp_confirm.php b/phpBB2/includes/usercp_confirm.php deleted file mode 100644 index 4a14be3..0000000 --- a/phpBB2/includes/usercp_confirm.php +++ /dev/null @@ -1,460 +0,0 @@ -sql_query($sql); - -// If we have a row then grab data else create a new id -if ($row = $db->sql_fetchrow($result)) -{ - $db->sql_freeresult($result); - $code = $row['code']; -} -else -{ - exit; -} - -// We can we will generate a single filtered png -// Thanks to DavidMJ for emulating zlib within the code :) -$_png = define_filtered_pngs(); - -$total_width = 320; -$total_height = 50; -$img_height = 40; -$img_width = 0; -$l = 0; - -list($usec, $sec) = explode(' ', microtime()); -mt_srand($sec * $usec); - -$char_widths = array(); -for ($i = 0; $i < strlen($code); $i++) -{ - $char = $code{$i}; - - $width = mt_rand(0, 4); - $char_widths[] = $width; - $img_width += $_png[$char]['width'] - $width; -} - -$offset_x = mt_rand(0, $total_width - $img_width); -$offset_y = mt_rand(0, $total_height - $img_height); - -$image = ''; -$hold_chars = array(); -for ($i = 0; $i < $total_height; $i++) -{ - $image .= chr(0); - - if ($i > $offset_y && $i < $offset_y + $img_height) - { - $j = 0; - - for ($k = 0; $k < $offset_x; $k++) - { - $image .= chr(mt_rand(140, 255)); - } - - for ($k = 0; $k < strlen($code); $k++) - { - $char = $code{$k}; - - if (empty($hold_chars[$char])) - { - $hold_chars[$char] = explode("\n", chunk_split(base64_decode($_png[$char]['data']), $_png[$char]['width'] + 1, "\n")); - } - $image .= randomise(substr($hold_chars[$char][$l], 1), $char_widths[$j]); - $j++; - } - - for ($k = $offset_x + $img_width; $k < $total_width; $k++) - { - $image .= chr(mt_rand(140, 255)); - } - - $l++; - } - else - { - for ($k = 0; $k < $total_width; $k++) - { - $image .= chr(mt_rand(140, 255)); - } - } - -} -unset($hold); - -$image = create_png($image, $total_width, $total_height); - -// Output image -header('Content-Type: image/png'); -header('Cache-control: no-cache, no-store'); -echo $image; - -unset($image); -unset($_png); -exit; - - -// This is designed to randomise the pixels of the image data within -// certain limits so as to keep it readable. It also varies the image -// width a little -function randomise($scanline, $width) -{ - $new_line = ''; - $start = floor($width/2); - $end = strlen($scanline) - ceil($width/2); - - for ($i = $start; $i < $end; $i++) - { - $pixel = ord($scanline{$i}); - - if ($pixel < 190) - { - $new_line .= chr(mt_rand(0, 205)); - } - else if ($pixel > 190) - { - $new_line .= chr(mt_rand(145, 255)); - } - else - { - $new_line .= $scanline{$i}; - } - } - - return $new_line; -} - -// This creates a chunk of the given type, with the given data -// of the given length adding the relevant crc -function png_chunk($length, $type, $data) -{ - $raw = $type; - $raw .= $data; - $crc = crc32($raw); - $raw .= pack('C4', $crc >> 24, $crc >> 16, $crc >> 8, $crc); - - return pack('C4', $length >> 24, $length >> 16, $length >> 8, $length) . $raw; -} - -// Creates greyscale 8bit png - The PNG spec can be found at -// http://www.libpng.org/pub/png/spec/PNG-Contents.html we use -// png because it's a fully recognised open standard and supported -// by practically all modern browsers and OSs -function create_png($raw_image, $width, $height) -{ - // SIG - $image = pack('C8', 137, 80, 78, 71, 13, 10, 26, 10); - // IHDR - $raw = pack('C4', $width >> 24, $width >> 16, $width >> 8, $width); - $raw .= pack('C4', $height >> 24, $height >> 16, $height >> 8, $height); - $raw .= pack('C5', 8, 0, 0, 0, 0); - $image .= png_chunk(13, 'IHDR', $raw); - - if (@extension_loaded('zlib')) - { - $raw_image = gzcompress($raw_image); - $length = strlen($raw_image); - } - else - { - // The total length of this image, uncompressed, is just a calculation of pixels - $length = ($width + 1) * $height; - - // Adler-32 hash generation - // Optimized Adler-32 loop ported from the GNU Classpath project - $temp_length = $length; - $s1 = 1; - $s2 = $index = 0; - - while ($temp_length > 0) - { - // We can defer the modulo operation: - // s1 maximally grows from 65521 to 65521 + 255 * 3800 - // s2 maximally grows by 3800 * median(s1) = 2090079800 < 2^31 - $substract_value = ($temp_length < 3800) ? $temp_length : 3800; - $temp_length -= $substract_value; - - while (--$substract_value >= 0) - { - $s1 += ord($raw_image[$index]); - $s2 += $s1; - - $index++; - } - - $s1 %= 65521; - $s2 %= 65521; - } - $adler_hash = pack('N', ($s2 << 16) | $s1); - - // This is the same thing as gzcompress($raw_image, 0) but does not need zlib - $raw_image = pack('C3v2', 0x78, 0x01, 0x01, $length, ~$length) . $raw_image . $adler_hash; - - // The Zlib header + Adler hash make us add on 11 - $length += 11; - } - - // IDAT - $image .= png_chunk($length, 'IDAT', $raw_image); - // IEND - $image .= png_chunk(0, 'IEND', ''); - - return $image; -} - -// Each 'data' element is base64_encoded uncompressed IDAT -// png image data -function define_filtered_pngs() -{ - $_png = array( - '0' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A///////////////////olFAkBAAAGDyA4P///M31/////////////wD////////////////0dAgAAAAAAAAAAAAEcPipFGHn////////////AP//////////////6DAAAAAAAAAAAAAAAAAALSEAN+T///////////8A//////////////xAAAAAAAAAAAAAAAAAAAAAACPA/////////////wD/////////////oAAAAAAAAAAAAAAAAAAAAAAAev//////////////AP////////////8oAAAAAAAAPNj/zDAAAAAAAABD//////////////8A////////////1AAAAAAAABjw////5BAAAAAAAADo/////////////wD///////////+QAAAAAAAAbP//////QgAAAAAAAKj/////////////AP///////////1wAAAAAAACs/////8AXAAAAAAAAcP////////////8A////////////OAAAAAAAAND////dNwAAAAAAAABI/////////////wD///////////8gAAAAAAAA4P//7koACwAAAAAAACT/////////////AP///////////wgAAAAAAAD///VqAwaPAAAAAAAAEP////////////8A////////////AAAAAAAAAP/8kQYDavUAAAAAAAAA/////////////wD///////////8AAAAAAAAA/6kNAEru/wAAAAAAAAD/////////////AP///////////wAAAAAAAADAIwA33f//AAAAAAAAAP////////////8A////////////FAAAAAAAADYAI8D///8AAAAAAAAQ/////////////wD///////////8kAAAAAAAAAA2p////5AAAAAAAACD/////////////AP///////////0gAAAAAAAAFkfz////UAAAAAAAAQP////////////8A////////////cAAAAAAAAET1/////7AAAAAAAABo/////////////wD///////////+oAAAAAAAAXfX/////sAAAAAAAAGj/////////////AAAAALgAAAAAAAAwAAAAAAAAAAAAAAD////////////oAAAAAAAACOT////oEAAAAAAAAOD/////////////AP////////////8+AAAAAAAAKMz/zDQAAAAAAAA0//////////////8A////////////7jgAAAAAAAAAAAAAAAAAAAAAAKT//////////////wD///////////VqAwIAAAAAAAAAAAAAAAAAAAA8////////////////AP//////////rQcDaVEAAAAAAAAAAAAAAAAAKOj///////////////8A///////////nblnu/IAIAAAAAAAAAAAAAFzw/////////////////wD////////////79////+iITCAAAAAgSITg////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////w==', - 'width' => 40 - ), - '1' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////8BAAAAAAAP//////////////////AP////////////////////////9sAAAAAAAA//////////////////8A////////////////////////pAAAAAAAAAD//////////////////wD//////////////////////6wEAAAAAAAAAP//////////////////AP////////////////////h4AAAAAAAAAAAA//////////////////8A//////////////////ygJAAAAAAAAAAAAAD//////////////////wD//////////////9x8HAAAAAAAAAAAAAAAAP//////////////////AP//////////////AAAAAAAAAAAAAAAAAAAA//////////////////8A//////////////8AAAAAAAAAAAAAAAAAAAD//////////////////wD//////////////wAAAAAAAAR4AAAAAAAAAP//////////////////AP//////////////AAAAAAA4zP8AAAAAAAAA//////////////////8A//////////////8AAAA4sP///wAAAAAAAAD//////////////////wD//////////////yR80P//////AAAAAAAAAP//////////////////AP////////////////////////8AAAAAAAAA//////////////////8A/////////////////////////wAAAAAAAAD//////////////////wD/////////////////////////AAAAAAAAAP//////////////////AP////////////////////////8AAAAAAAAA//////////////////8A/////////////////////////wAAAAAAAAD//////////////////wD/////////////////////////AAAAAAAAAP//////////////////AP////////////////////////8AAAAAAAAA//////////////////8A/////////////////////////wAAAAAAAAD//////////////////wD/////////////////////////AAAAAAAAAP//////////////////AP////////////////////////8AAAAAAAAA//////////////////8A/////////////////////////wAAAAAAAAD//////////////////wD/////////////////////////AAAAAAAAAP//////////////////AP////////////////////////8AAAAAAAAA//////////////////8A/////////////////////////wAAAAAAAAD//////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '2' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP/////////////////okFAkCAAABCBIfNT///////////////////8A///////////////8hAgAAAAAAAAAAAAAAFTo/////////////////wD//////////////1QAAAAAAAAAAAAAAAAAACjo////////////////AP////////////+MAAAAAAAAAAAAAAAAAAAAADj///////////////8A////////////9BAAAAAAAAAAAAAAAAAAAAAAALD//////////////wD///////////+gAAAAAAAAAHjs+KwMAAAAAAAAVP//////////////AP///////////1gAAAAAAABM/////6QAAAAAAAAU//////////////8A////////////KAAAAAAAALj/////+AAAAAAAAAD//////////////wD///////////+MfGBMOCAI8P/////wAAAAAAAACP//////////////AP///////////////////////////5wAAAAAAAAw//////////////8A///////////////////////////oFAAAAAAAAHz//////////////wD/////////////////////////6CgAAAAAAAAE3P//////////////AP///////////////////////9ggAAAAAAAAAHT///////////////8A//////////////////////+0DAAAAAAAAAA8+P///////////////wD/////////////////////gAAAAAAAAAAAKOj/////////////////AP//////////////////9FAAAAAAAAAAADzw//////////////////8A/////////////////+g4AAAAAAAAAABk/P///////////////////wD////////////////oKAAAAAAAAAAMqP//////////////////////AP//////////////6CgAAAAAAAAAMNz///////////////////////8A//////////////g4AAAAAAAAAFT0/////////////////////////wD/////////////bAAAAAAAAABU/P//////////////////////////AP///////////8wAAAAAAAAAAAAAAAAAAAAAAAAA//////////////8A////////////SAAAAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////9wAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////////AP//////////hAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////8A//////////9AAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////xAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '3' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD////////////////8sGg0FAAAACA4cLz8////////////////////AP//////////////rBgAAAAAAAAAAAAAACTA//////////////////8A/////////////3QAAAAAAAAAAAAAAAAAAASs/////////////////wD///////////+YAAAAAAAAAAAAAAAAAAAAAAjc////////////////AP//////////6AwAAAAAAAAAAAAAAAAAAAAAAGT///////////////8A//////////94AAAAAAAABJDw/8g4AAAAAAAAHP///////////////wD//////////yAAAAAAAACE/////9gAAAAAAAAA////////////////AP///////////NSwiGQ4FOT//////AAAAAAAABD///////////////8A//////////////////////////+YAAAAAAAAVP///////////////wD//////////////////////P/ggAQAAAAAAATM////////////////AP////////////////////9gAAAAAAAAAAAElP////////////////8A/////////////////////0AAAAAAAAAAHLj//////////////////wD/////////////////////OAAAAAAAAAAwkPj/////////////////AP////////////////////8gAAAAAAAAAAAAINj///////////////8A/////////////////////xAAAAAAAAAAAAAAIPD//////////////wD/////////////////////uOz/4HgEAAAAAAAAhP//////////////AP///////////////////////////3wAAAAAAAAw//////////////8A////////////////////////////6AAAAAAAAAj//////////////wD/////////////////////////////AAAAAAAAAP//////////////AP//////////tJh8YEQoDNz//////+AAAAAAAAAY//////////////8A//////////88AAAAAAAAaP//////dAAAAAAAAEz//////////////wD//////////6QAAAAAAAAAdOD/5HQAAAAAAAAApP//////////////AP///////////CgAAAAAAAAAAAAAAAAAAAAAACD4//////////////8A////////////yAQAAAAAAAAAAAAAAAAAAAAEuP///////////////wD/////////////rAQAAAAAAAAAAAAAAAAABJD/////////////////AP//////////////zDQAAAAAAAAAAAAAACTA//////////////////8A/////////////////8BwOCAAAAAUNGi0/P///////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '4' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP//////////////////////////nAAAAAAAAAD///////////////8A/////////////////////////8AEAAAAAAAAAP///////////////wD////////////////////////gGAAAAAAAAAAA////////////////AP//////////////////////9DAAAAAAAAAAAAD///////////////8A//////////////////////9UAAAAAAAAAAAAAP///////////////wD/////////////////////hAAAAAAAAAAAAAAA////////////////AP///////////////////7QAAAAAAAAAAAAAAAD///////////////8A///////////////////UDAAAAAAUAAAAAAAAAP///////////////wD/////////////////7CQAAAAABMAAAAAAAAAA////////////////AP////////////////xEAAAAAACU/wAAAAAAAAD///////////////8A////////////////cAAAAAAAZP//AAAAAAAAAP///////////////wD//////////////6AAAAAAADz8//8AAAAAAAAA////////////////AP/////////////IBAAAAAAc6P///wAAAAAAAAD///////////////8A////////////5BgAAAAADMz/////AAAAAAAAAP///////////////wD///////////g0AAAAAACk//////8AAAAAAAAA////////////////AP//////////XAAAAAAAfP///////wAAAAAAAAD///////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////8A////////////////////////////AAAAAAAAAP///////////////wD///////////////////////////8AAAAAAAAA////////////////AP///////////////////////////wAAAAAAAAD///////////////8A////////////////////////////AAAAAAAAAP///////////////wD///////////////////////////8AAAAAAAAA////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '5' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP//////////////8AAAAAAAAAAAAAAAAAAAAAAA//////////////8A///////////////MAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////////6wAAAAAAAAAAAAAAAAAAAAAAP//////////////AP//////////////iAAAAAAAAAAAAAAAAAAAAAAA//////////////8A//////////////9kAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////////0QAAAAAAAAAAAAAAAAAAAAAAP//////////////AP//////////////IAAAAAAAYP////////////////////////////8A//////////////wAAAAAAAB8/////////////////////////////wD/////////////3AAAAAAAAIj/////////////////////////////AP////////////+4AAAAAAAAoLRYHAAEKGTE//////////////////8A/////////////5QAAAAAAAAQAAAAAAAAAABY9P///////////////wD/////////////dAAAAAAAAAAAAAAAAAAAAAA89P//////////////AP////////////9QAAAAAAAAAAAAAAAAAAAAAABg//////////////8A/////////////zAAAAAAAAAAAAAAAAAAAAAAAADQ/////////////wD/////////////IAAAAAAAAGjY/+h4BAAAAAAAAGz/////////////AP//////////////9NS0lHSc//////90AAAAAAAALP////////////8A/////////////////////////////9QAAAAAAAAE/////////////wD//////////////////////////////wAAAAAAAAD/////////////AP/////////////////////////////8AAAAAAAAEP////////////8A////////////pIRwWEAgDOD//////8wAAAAAAAA8/////////////wD///////////9EAAAAAAAAaP//////ZAAAAAAAAHz/////////////AP///////////6QAAAAAAAAAaOD/4GQAAAAAAAAE4P////////////8A/////////////CQAAAAAAAAAAAAAAAAAAAAAAGD//////////////wD/////////////yAQAAAAAAAAAAAAAAAAAAAAc7P//////////////AP//////////////rAwAAAAAAAAAAAAAAAAAGNj///////////////8A////////////////0EAAAAAAAAAAAAAAAFTo/////////////////wD//////////////////8h4QCAAAAAcQHzU////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '6' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD///////////////////+0ZCwMAAAUNGjI////////////////////AP/////////////////EMAAAAAAAAAAAAABM6P////////////////8A////////////////lAQAAAAAAAAAAAAAAAAo6P///////////////wD//////////////6wAAAAAAAAAAAAAAAAAAABI////////////////AP/////////////oEAAAAAAAAAAAAAAAAAAAAACw//////////////8A/////////////3AAAAAAAAAoxP/YPAAAAAAAAEj//////////////wD////////////4EAAAAAAACOD////YDCBAVGiAoP//////////////AP///////////7gAAAAAAABY//////////////////////////////8A////////////eAAAAAAAAJT//////////////////////////////wD///////////9MAAAAAAAAvP/IXBgABCx03P//////////////////AP///////////ygAAAAAAADcdAAAAAAAAAAEiP////////////////8A////////////FAAAAAAAAFAAAAAAAAAAAAAAcP///////////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAlP//////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAAAQ8P////////////8A////////////AAAAAAAAAABAyP/kZAAAAAAAAACQ/////////////wD///////////8MAAAAAAAALPj/////WAAAAAAAAET/////////////AP///////////yQAAAAAAACY///////MAAAAAAAAFP////////////8A////////////SAAAAAAAAMD///////wAAAAAAAAA/////////////wD///////////9wAAAAAAAAvP///////wAAAAAAAAD/////////////AP///////////7QAAAAAAACI///////UAAAAAAAAJP////////////8A////////////+AwAAAAAACDw/////2wAAAAAAABY/////////////wD/////////////cAAAAAAAADC8/Ox4AAAAAAAAAKj/////////////AP/////////////oEAAAAAAAAAAAAAAAAAAAAAAk/P////////////8A//////////////+oAAAAAAAAAAAAAAAAAAAABLj//////////////wD///////////////+QAAAAAAAAAAAAAAAAAACQ////////////////AP////////////////+0JAAAAAAAAAAAAAAkuP////////////////8A///////////////////8sGg0FAAADCxgqPz//////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '7' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAAAABP////////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAAAy4/////////////wD//////////////////////////+QUAAAAAAAEuP//////////////AP/////////////////////////8QAAAAAAAAKT///////////////8A/////////////////////////4wAAAAAAAB0/////////////////wD////////////////////////cCAAAAAAANPz/////////////////AP///////////////////////0QAAAAAAATY//////////////////8A//////////////////////+0AAAAAAAAeP///////////////////wD//////////////////////CQAAAAAABTw////////////////////AP////////////////////+gAAAAAAAAkP////////////////////8A/////////////////////ywAAAAAABDw/////////////////////wD///////////////////+4AAAAAAAAbP//////////////////////AP///////////////////1wAAAAAAADQ//////////////////////8A///////////////////4DAAAAAAAMP///////////////////////wD//////////////////7QAAAAAAAB8////////////////////////AP//////////////////aAAAAAAAAMj///////////////////////8A//////////////////8oAAAAAAAM/P///////////////////////wD/////////////////8AAAAAAAAET/////////////////////////AP////////////////+0AAAAAAAAcP////////////////////////8A/////////////////4wAAAAAAACY/////////////////////////wD/////////////////WAAAAAAAAMD/////////////////////////AP////////////////80AAAAAAAA4P////////////////////////8A/////////////////xAAAAAAAAD4/////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '8' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD////////////////////IdDQUAAAEIEiA1P//////////////////AP/////////////////gRAAAAAAAAAAAAAAAROD///////////////8A////////////////0BgAAAAAAAAAAAAAAAAAEMj//////////////wD///////////////AcAAAAAAAAAAAAAAAAAAAAHPD/////////////AP//////////////hAAAAAAAAAAAAAAAAAAAAAAAhP////////////8A//////////////8sAAAAAAAAKMz/zCgAAAAAAAAs/////////////wD//////////////wAAAAAAAADM////zAAAAAAAAAD/////////////AP//////////////BAAAAAAAAP//////AAAAAAAABP////////////8A//////////////8sAAAAAAAAzP///9QAAAAAAAAw/////////////wD//////////////3wAAAAAAAAoyP/YNAAAAAAAAIT/////////////AP//////////////7BgAAAAAAAAAAAAAAAAAAAAc8P////////////8A////////////////xBgAAAAAAAAAAAAAAAAAGNj//////////////wD/////////////////tAQAAAAAAAAAAAAAAACo////////////////AP///////////////HAAAAAAAAAAAAAAAAAAAAB8//////////////8A//////////////9gAAAAAAAAAAAAAAAAAAAAAAB8/////////////wD/////////////wAAAAAAAAABk4P/UWAAAAAAAAATQ////////////AP////////////9UAAAAAAAAaP//////XAAAAAAAAGT///////////8A/////////////xgAAAAAAADg///////cAAAAAAAAJP///////////wD/////////////AAAAAAAAAP////////8AAAAAAAAA////////////AP////////////8AAAAAAAAA4P//////3AAAAAAAAAT///////////8A/////////////ygAAAAAAABg//////9cAAAAAAAALP///////////wD/////////////ZAAAAAAAAABY1P/cXAAAAAAAAABw////////////AP/////////////QAAAAAAAAAAAAAAAAAAAAAAAABNz///////////8A//////////////9gAAAAAAAAAAAAAAAAAAAAAAB0/////////////wD///////////////Q8AAAAAAAAAAAAAAAAAAAAUPz/////////////AP////////////////x4CAAAAAAAAAAAAAAAEIT8//////////////8A///////////////////smFQwGAAAABg0ZKT0/////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '9' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD///////////////////ysYCwMAAAUNGiw/P//////////////////AP////////////////+4JAAAAAAAAAAAAAAkuP////////////////8A////////////////lAQAAAAAAAAAAAAAAAAAkP///////////////wD//////////////8AEAAAAAAAAAAAAAAAAAAAAqP//////////////AP/////////////8JAAAAAAAAAAAAAAAAAAAAAAQ7P////////////8A/////////////6wAAAAAAAAAfOz8vCwAAAAAAABw/////////////wD/////////////WAAAAAAAAHD/////7BgAAAAAAAz4////////////AP////////////8kAAAAAAAA1P//////hAAAAAAAALT///////////8A/////////////wAAAAAAAAD///////+4AAAAAAAAcP///////////wD/////////////AAAAAAAAAPz//////8AAAAAAAABI////////////AP////////////8UAAAAAAAAzP//////lAAAAAAAACT///////////8A/////////////0QAAAAAAABY//////gsAAAAAAAADP///////////wD/////////////kAAAAAAAAABw5P/IPAAAAAAAAAAA////////////AP/////////////wEAAAAAAAAAAAAAAAAAAAAAAAAAD///////////8A//////////////+UAAAAAAAAAAAAAAAAAAAAAAAAAP///////////wD///////////////9wAAAAAAAAAAAAAFAAAAAAAAAU////////////AP////////////////+IBAAAAAAAAABw3AAAAAAAACj///////////8A///////////////////cdCwEABhcxP+8AAAAAAAATP///////////wD//////////////////////////////5AAAAAAAAB4////////////AP//////////////////////////////UAAAAAAAALj///////////8A//////////////+kgGxUQCAM2P///+AIAAAAAAAQ+P///////////wD//////////////0gAAAAAAAA42P/EKAAAAAAAAHD/////////////AP//////////////sAAAAAAAAAAAAAAAAAAAAAAQ6P////////////8A////////////////TAAAAAAAAAAAAAAAAAAAAKz//////////////wD////////////////oKAAAAAAAAAAAAAAAAASU////////////////AP/////////////////sUAAAAAAAAAAAAAAwxP////////////////8A////////////////////yHA0FAAADCxktP///////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'A' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD//////////////////+QAAAAAAAAAAAAAAOT/////////////////AP//////////////////kAAAAAAAAAAAAAAAkP////////////////8A//////////////////88AAAAAAAAAAAAAAA8/////////////////wD/////////////////5AAAAAAAAAAAAAAAAADk////////////////AP////////////////+QAAAAAAAAAAAAAAAAAJD///////////////8A/////////////////zwAAAAAAAAAAAAAAAAAPP///////////////wD////////////////kAAAAAAAAAAgAAAAAAAAA5P//////////////AP///////////////5AAAAAAAAAAgAAAAAAAAACQ//////////////8A////////////////PAAAAAAAAAz8HAAAAAAAADz//////////////wD//////////////+QAAAAAAAAAWP9kAAAAAAAAANz/////////////AP//////////////kAAAAAAAAACk/7wAAAAAAAAAhP////////////8A//////////////88AAAAAAAABOz//BQAAAAAAAAw/////////////wD/////////////4AAAAAAAAAA8////ZAAAAAAAAADc////////////AP////////////+EAAAAAAAAAIj///+8AAAAAAAAAIT///////////8A/////////////zAAAAAAAAAA2P////wQAAAAAAAAMP///////////wD////////////cAAAAAAAAACT//////1wAAAAAAAAA3P//////////AP///////////4QAAAAAAAAAAAAAAAAAAAAAAAAAAACE//////////8A////////////MAAAAAAAAAAAAAAAAAAAAAAAAAAAADD//////////wD//////////9wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANz/////////AP//////////hAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhP////////8A//////////8wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAw/////////wD/////////3AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADc////////AP////////+EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIT///////8A/////////zAAAAAAAAAAhP///////////2QAAAAAAAAAMP///////wD////////cAAAAAAAAAADM////////////vAAAAAAAAAAA3P//////AP///////4QAAAAAAAAAHP/////////////4DAAAAAAAAACE//////8A////////MAAAAAAAAABk//////////////9cAAAAAAAAADD//////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'B' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAEDh83P///////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAEhP//////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAeP////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAxP///////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAABY////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAABT///////////8A//////////8AAAAAAAAAAP/////4zEwAAAAAAAAAAP///////////wD//////////wAAAAAAAAAA////////7AAAAAAAAAAQ////////////AP//////////AAAAAAAAAAD////////sAAAAAAAAAEj///////////8A//////////8AAAAAAAAAAP/////4zEQAAAAAAAAAtP///////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAFz/////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAiA/P////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAIjPj//////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAGKz/////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAJT///////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAABNz//////////wD//////////wAAAAAAAAAA///////sqCAAAAAAAAAAbP//////////AP//////////AAAAAAAAAAD/////////yAAAAAAAAAAs//////////8A//////////8AAAAAAAAAAP//////////AAAAAAAAAAT//////////wD//////////wAAAAAAAAAA/////////7wAAAAAAAAAAP//////////AP//////////AAAAAAAAAAD//////+ikGAAAAAAAAAAY//////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFT//////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsP//////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAADj///////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAc6P///////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAATOj/////////////AP//////////AAAAAAAAAAAAAAAAAAAEIEBkkNj///////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'C' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP//////////////////5JRULBAAAAgkTIDQ//////////////////8A////////////////1FAAAAAAAAAAAAAAAABAyP///////////////wD//////////////4gEAAAAAAAAAAAAAAAAAAAElP//////////////AP////////////9wAAAAAAAAAAAAAAAAAAAAAAAAlP////////////8A////////////kAAAAAAAAAAAAAAAAAAAAAAAAAAEyP///////////wD//////////9wIAAAAAAAAAAAAAAAAAAAAAAAAAAAw////////////AP//////////WAAAAAAAAAAAWMz/8JwQAAAAAAAAAACw//////////8A/////////+wEAAAAAAAAAID//////9QMAAAAAAAAAET//////////wD/////////nAAAAAAAAAAo/P///////3wAAAAABDBspP//////////AP////////9gAAAAAAAAAIz/////////3BxQjMT0//////////////8A/////////zQAAAAAAAAAzP///////////////////////////////wD/////////GAAAAAAAAADo////////////////////////////////AP////////8AAAAAAAAAAP////////////////////////////////8A/////////wAAAAAAAAAA/////////////////////////////////wD/////////AAAAAAAAAAD/////////////////////////////////AP////////8cAAAAAAAAAOj///////////////////////////////8A/////////zgAAAAAAAAA0P/////////kIGio7P///////////////wD/////////bAAAAAAAAACg/////////5wAAAAAMHS49P//////////AP////////+oAAAAAAAAAEz/////////PAAAAAAAAAAc//////////8A//////////QIAAAAAAAAALz//////6QAAAAAAAAAAGT//////////wD//////////3AAAAAAAAAADIzo/+SEBAAAAAAAAAAAyP//////////AP//////////7BAAAAAAAAAAAAAAAAAAAAAAAAAAAED///////////8A////////////rAAAAAAAAAAAAAAAAAAAAAAAAAAE0P///////////wD/////////////fAAAAAAAAAAAAAAAAAAAAAAAAJz/////////////AP//////////////iAQAAAAAAAAAAAAAAAAAAASY//////////////8A////////////////yEAAAAAAAAAAAAAAAAA8yP///////////////wD//////////////////9yIUCwQAAAAIEB4yP//////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'D' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD///////////8AAAAAAAAAAAAAAAAADChQkOT/////////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAABGjw//////////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAACDY/////////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAABjk////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAED///////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAKj//////////wD///////////8AAAAAAAAAAP///+isSAAAAAAAAAAANP//////////AP///////////wAAAAAAAAAA////////hAAAAAAAAAAA2P////////8A////////////AAAAAAAAAAD/////////MAAAAAAAAACQ/////////wD///////////8AAAAAAAAAAP////////+MAAAAAAAAAFj/////////AP///////////wAAAAAAAAAA/////////8gAAAAAAAAAMP////////8A////////////AAAAAAAAAAD/////////5AAAAAAAAAAY/////////wD///////////8AAAAAAAAAAP//////////AAAAAAAAAAD/////////AP///////////wAAAAAAAAAA//////////8AAAAAAAAAAP////////8A////////////AAAAAAAAAAD//////////wAAAAAAAAAA/////////wD///////////8AAAAAAAAAAP/////////wAAAAAAAAABD/////////AP///////////wAAAAAAAAAA/////////9QAAAAAAAAAJP////////8A////////////AAAAAAAAAAD/////////qAAAAAAAAABI/////////wD///////////8AAAAAAAAAAP////////9QAAAAAAAAAHj/////////AP///////////wAAAAAAAAAA////////uAAAAAAAAAAAvP////////8A////////////AAAAAAAAAAD////w0HwEAAAAAAAAACT8/////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAoP//////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAAAAADz8//////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAY6P///////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAKNz/////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAACHT0//////////////8A////////////AAAAAAAAAAAAAAAAABg4bKj0/////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'E' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP//////////AAAAAAAAAAD///////////////////////////////8A//////////8AAAAAAAAAAP///////////////////////////////wD//////////wAAAAAAAAAA////////////////////////////////AP//////////AAAAAAAAAAD///////////////////////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////8A//////////8AAAAAAAAAAP///////////////////////////////wD//////////wAAAAAAAAAA////////////////////////////////AP//////////AAAAAAAAAAD///////////////////////////////8A//////////8AAAAAAAAAAP///////////////////////////////wD//////////wAAAAAAAAAA////////////////////////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'F' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAA////////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAP///////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAA////////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAP///////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'G' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD//////////////////MB8TCgQAAAACCA4YJzs////////////////AP///////////////JQcAAAAAAAAAAAAAAAAAAhw8P////////////8A/////////////9gwAAAAAAAAAAAAAAAAAAAAAAAk2P///////////wD////////////EDAAAAAAAAAAAAAAAAAAAAAAAAAAc7P//////////AP//////////2AwAAAAAAAAAAAAAAAAAAAAAAAAAAABY//////////8A//////////wwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQ/////////wD/////////kAAAAAAAAAAAEHzQ/P/gmCAAAAAAAAAAAFz/////////AP////////wcAAAAAAAAACjg////////8CwAAAAAAAAgWP////////8A////////vAAAAAAAAAAI2P//////////yBRAcJjI8P///////////wD///////94AAAAAAAAAGD/////////////////////////////////AP///////0AAAAAAAAAAsP////////////////////////////////8A////////IAAAAAAAAADc/////////////////////////////////wD///////8AAAAAAAAAAP///////wAAAAAAAAAAAAAAAAD/////////AP///////wAAAAAAAAAA////////AAAAAAAAAAAAAAAAAP////////8A////////AAAAAAAAAAD///////8AAAAAAAAAAAAAAAAA/////////wD///////8gAAAAAAAAAOD//////wAAAAAAAAAAAAAAAAD/////////AP///////0AAAAAAAAAAtP//////AAAAAAAAAAAAAAAAAP////////8A////////cAAAAAAAAABw//////8AAAAAAAAAAAAAAAAA/////////wD///////+8AAAAAAAAABDs////////////AAAAAAAAAAD/////////AP////////wYAAAAAAAAADz0//////////AAAAAAAAAAAP////////8A/////////5AAAAAAAAAAACCY4P//3KhcCAAAAAAAAAAA/////////wD/////////+CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////AP//////////xAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIP////////8A////////////rAQAAAAAAAAAAAAAAAAAAAAAAAAAAGTw/////////wD/////////////vBQAAAAAAAAAAAAAAAAAAAAAADjI////////////AP//////////////8HAQAAAAAAAAAAAAAAAAAEiw//////////////8A//////////////////iwcEAgBAAABCA4aKDk/////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'H' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'I' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAA////////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAP///////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAA////////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAP///////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAA////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAP///////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAA////////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAP///////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAA////////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'J' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP///////////////////////////wAAAAAAAAAA//////////////8A////////////////////////////AAAAAAAAAAD//////////////wD///////////////////////////8AAAAAAAAAAP//////////////AP///////////////////////////wAAAAAAAAAA//////////////8A////////////////////////////AAAAAAAAAAD//////////////wD///////////////////////////8AAAAAAAAAAP//////////////AP///////////////////////////wAAAAAAAAAA//////////////8A////////////////////////////AAAAAAAAAAD//////////////wD///////////////////////////8AAAAAAAAAAP//////////////AP///////////////////////////wAAAAAAAAAA//////////////8A////////////////////////////AAAAAAAAAAD//////////////wD///////////////////////////8AAAAAAAAAAP//////////////AP///////////////////////////wAAAAAAAAAA//////////////8A////////////////////////////AAAAAAAAAAD//////////////wD///////////////////////////8AAAAAAAAAAP//////////////AP///////////////////////////wAAAAAAAAAA//////////////8A////////////////////////////AAAAAAAAAAj//////////////wD//////////+zMrIxwUDAQ//////wAAAAAAAAAIP//////////////AP//////////DAAAAAAAAADo////2AAAAAAAAAA0//////////////8A//////////8wAAAAAAAAAKj///+YAAAAAAAAAFj//////////////wD//////////2gAAAAAAAAAIND/yBgAAAAAAAAAkP//////////////AP//////////vAAAAAAAAAAAAAAAAAAAAAAAAADc//////////////8A////////////MAAAAAAAAAAAAAAAAAAAAAAAUP///////////////wD////////////EBAAAAAAAAAAAAAAAAAAAABjk////////////////AP////////////+sBAAAAAAAAAAAAAAAAAAY2P////////////////8A///////////////EMAAAAAAAAAAAAAAAVOj//////////////////wD/////////////////vHBAIAAAABg8fNT/////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'K' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD///////8AAAAAAAAAAP//////////wAQAAAAAAAAAAABw////////AP///////wAAAAAAAAAA/////////9AMAAAAAAAAAAAAcP////////8A////////AAAAAAAAAAD////////cGAAAAAAAAAAAAHD//////////wD///////8AAAAAAAAAAP//////6CgAAAAAAAAAAABs////////////AP///////wAAAAAAAAAA//////Q0AAAAAAAAAAAAVPz///////////8A////////AAAAAAAAAAD////8RAAAAAAAAAAAAFT8/////////////wD///////8AAAAAAAAAAP///1gAAAAAAAAAAABU/P//////////////AP///////wAAAAAAAAAA//9wAAAAAAAAAAAASPz///////////////8A////////AAAAAAAAAAD/jAAAAAAAAAAAADz0/////////////////wD///////8AAAAAAAAAAKQAAAAAAAAAAAA89P//////////////////AP///////wAAAAAAAAAABAAAAAAAAAAAFPT///////////////////8A////////AAAAAAAAAAAAAAAAAAAAAAAApP///////////////////wD///////8AAAAAAAAAAAAAAAAAAAAAAAAU8P//////////////////AP///////wAAAAAAAAAAAAAAAAAAAAAAAABk//////////////////8A////////AAAAAAAAAAAAAAAAAAAAAAAAAADE/////////////////wD///////8AAAAAAAAAAAAAAAAoEAAAAAAAACz8////////////////AP///////wAAAAAAAAAAAAAAGNiAAAAAAAAAAIj///////////////8A////////AAAAAAAAAAAAABjY//gYAAAAAAAACOD//////////////wD///////8AAAAAAAAAAAAY2P///5wAAAAAAAAASP//////////////AP///////wAAAAAAAAAAGNj//////CgAAAAAAAAAqP////////////8A////////AAAAAAAAAADI////////sAAAAAAAAAAc8P///////////wD///////8AAAAAAAAAAP//////////QAAAAAAAAABs////////////AP///////wAAAAAAAAAA///////////IAAAAAAAAAATI//////////8A////////AAAAAAAAAAD///////////9YAAAAAAAAADD8/////////wD///////8AAAAAAAAAAP///////////9wEAAAAAAAAAJD/////////AP///////wAAAAAAAAAA/////////////3AAAAAAAAAADOT///////8A////////AAAAAAAAAAD/////////////7BAAAAAAAAAAUP///////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'L' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'M' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A//////8AAAAAAAAAAAAAAHz//////3wAAAAAAAAAAAAAAP///////wD//////wAAAAAAAAAAAAAATP//////UAAAAAAAAAAAAAAA////////AP//////AAAAAAAAAAAAAAAc//////8cAAAAAAAAAAAAAAD///////8A//////8AAAAAAAAAAAAAAADw////8AAAAAAAAAAAAAAAAP///////wD//////wAAAAAAAAAAAAAAALz////AAAAAAAAAAAAAAAAA////////AP//////AAAAAAAAAAAAAAAAkP///5AAAAAAAAAAAAAAAAD///////8A//////8AAAAAAAAAAAAAAABc////ZAAAAAAAAAAAAAAAAP///////wD//////wAAAAAAAAAoAAAAADD///8wAAAAACQAAAAAAAAA////////AP//////AAAAAAAAAFwAAAAABPz//AgAAAAAXAAAAAAAAAD///////8A//////8AAAAAAAAAkAAAAAAA0P/UAAAAAACQAAAAAAAAAP///////wD//////wAAAAAAAADMAAAAAACg/6gAAAAAAMQAAAAAAAAA////////AP//////AAAAAAAAAPgEAAAAAHD/dAAAAAAE+AAAAAAAAAD///////8A//////8AAAAAAAAA/zQAAAAAQP9IAAAAADD/AAAAAAAAAP///////wD//////wAAAAAAAAD/bAAAAAAQ/xQAAAAAaP8AAAAAAAAA////////AP//////AAAAAAAAAP+gAAAAAADQAAAAAACc/wAAAAAAAAD///////8A//////8AAAAAAAAA/9QAAAAAAGgAAAAAAND/AAAAAAAAAP///////wD//////wAAAAAAAAD//wwAAAAAFAAAAAAM/P8AAAAAAAAA////////AP//////AAAAAAAAAP//RAAAAAAAAAAAADz//wAAAAAAAAD///////8A//////8AAAAAAAAA//94AAAAAAAAAAAAcP//AAAAAAAAAP///////wD//////wAAAAAAAAD//7AAAAAAAAAAAACo//8AAAAAAAAA////////AP//////AAAAAAAAAP//5AAAAAAAAAAAANz//wAAAAAAAAD///////8A//////8AAAAAAAAA////HAAAAAAAAAAQ////AAAAAAAAAP///////wD//////wAAAAAAAAD///9QAAAAAAAAAEz///8AAAAAAAAA////////AP//////AAAAAAAAAP///4gAAAAAAAAAfP///wAAAAAAAAD///////8A//////8AAAAAAAAA////vAAAAAAAAACw////AAAAAAAAAP///////wD//////wAAAAAAAAD////wAAAAAAAAAOz///8AAAAAAAAA////////AP//////AAAAAAAAAP////8sAAAAAAAc/////wAAAAAAAAD///////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'N' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////AAAAAAAAALD/////////////AAAAAAAAAP//////////AP////////8AAAAAAAAAFOj///////////8AAAAAAAAA//////////8A/////////wAAAAAAAAAASP///////////wAAAAAAAAD//////////wD/////////AAAAAAAAAAAAkP//////////AAAAAAAAAP//////////AP////////8AAAAAAAAAAAAI1P////////8AAAAAAAAA//////////8A/////////wAAAAAAAAAAAAAw+P///////wAAAAAAAAD//////////wD/////////AAAAAAAAAAAAAABw////////AAAAAAAAAP//////////AP////////8AAAAAAAAAAAAAAAC8//////8AAAAAAAAA//////////8A/////////wAAAAAAAAAAAAAAABzs/////wAAAAAAAAD//////////wD/////////AAAAAAAAAAAAAAAAAFD/////AAAAAAAAAP//////////AP////////8AAAAAAAAAAAAAAAAAAJz///8AAAAAAAAA//////////8A/////////wAAAAAAAAAUAAAAAAAADNz//wAAAAAAAAD//////////wD/////////AAAAAAAAALQAAAAAAAAANPz/AAAAAAAAAP//////////AP////////8AAAAAAAAA/2wAAAAAAAAAfP8AAAAAAAAA//////////8A/////////wAAAAAAAAD/+CwAAAAAAAAExAAAAAAAAAD//////////wD/////////AAAAAAAAAP//0AQAAAAAAAAgAAAAAAAAAP//////////AP////////8AAAAAAAAA////jAAAAAAAAAAAAAAAAAAA//////////8A/////////wAAAAAAAAD/////RAAAAAAAAAAAAAAAAAD//////////wD/////////AAAAAAAAAP/////kFAAAAAAAAAAAAAAAAP//////////AP////////8AAAAAAAAA//////+sAAAAAAAAAAAAAAAA//////////8A/////////wAAAAAAAAD///////9kAAAAAAAAAAAAAAD//////////wD/////////AAAAAAAAAP////////QkAAAAAAAAAAAAAP//////////AP////////8AAAAAAAAA/////////8wEAAAAAAAAAAAA//////////8A/////////wAAAAAAAAD//////////4QAAAAAAAAAAAD//////////wD/////////AAAAAAAAAP///////////DwAAAAAAAAAAP//////////AP////////8AAAAAAAAA////////////4BAAAAAAAAAA//////////8A/////////wAAAAAAAAD/////////////qAAAAAAAAAD//////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'O' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A///////////////////0qGw4HAAAABw4aKT0/////////////////wD////////////////wcAwAAAAAAAAAAAAAAAho6P//////////////AP//////////////uBQAAAAAAAAAAAAAAAAAAAAMoP////////////8A/////////////6AEAAAAAAAAAAAAAAAAAAAAAAAAkP///////////wD///////////+4BAAAAAAAAAAAAAAAAAAAAAAAAAAAoP//////////AP//////////8BQAAAAAAAAAAAAAAAAAAAAAAAAAAAAM5P////////8A//////////9wAAAAAAAAAAAsrPD/7KQsAAAAAAAAAABg/////////wD/////////+BAAAAAAAAAAUPj///////hQAAAAAAAAAAjs////////AP////////+sAAAAAAAAABDw//////////AYAAAAAAAAAKD///////8A/////////2wAAAAAAAAAdP///////////3wAAAAAAAAAYP///////wD/////////OAAAAAAAAAC4////////////xAAAAAAAAAAw////////AP////////8cAAAAAAAAAOD////////////oAAAAAAAAABT///////8A/////////wAAAAAAAAAA//////////////8AAAAAAAAAAP///////wD/////////AAAAAAAAAAD//////////////wAAAAAAAAAA////////AP////////8AAAAAAAAAAP/////////////8AAAAAAAAAAD///////8A/////////xwAAAAAAAAA5P///////////+AAAAAAAAAAHP///////wD/////////NAAAAAAAAAC8////////////uAAAAAAAAAA4////////AP////////9oAAAAAAAAAHj///////////98AAAAAAAAAGT///////8A/////////6gAAAAAAAAAGPD/////////+BgAAAAAAAAApP///////wD/////////9AwAAAAAAAAAUPz///////xcAAAAAAAAAAjs////////AP//////////cAAAAAAAAAAALKjs//CwOAAAAAAAAAAAYP////////8A///////////wFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzk/////////wD///////////+4BAAAAAAAAAAAAAAAAAAAAAAAAAAAoP//////////AP////////////+QAAAAAAAAAAAAAAAAAAAAAAAAAJD///////////8A//////////////+sEAAAAAAAAAAAAAAAAAAAAAyg/////////////wD////////////////oZAgAAAAAAAAAAAAAAARg4P//////////////AP//////////////////9KhsOCAAAAAUMFyc7P////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'P' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP///////////wAAAAAAAAAAAAAAAAAACCxguP////////////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAOOD//////////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAGOD/////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAAAARP////////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAxP///////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAAABo////////////AP///////////wAAAAAAAAAA////6JwMAAAAAAAAADD///////////8A////////////AAAAAAAAAAD//////6AAAAAAAAAADP///////////wD///////////8AAAAAAAAAAP//////9AAAAAAAAAAA////////////AP///////////wAAAAAAAAAA///////0AAAAAAAAAAD///////////8A////////////AAAAAAAAAAD//////5gAAAAAAAAAHP///////////wD///////////8AAAAAAAAAAP///9iICAAAAAAAAABI////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAJD///////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAI6P///////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAAIT/////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAABU/P////////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAIhPz//////////////wD///////////8AAAAAAAAAAAAAAAAABCRMkOz/////////////////AP///////////wAAAAAAAAAA//////////////////////////////8A////////////AAAAAAAAAAD//////////////////////////////wD///////////8AAAAAAAAAAP//////////////////////////////AP///////////wAAAAAAAAAA//////////////////////////////8A////////////AAAAAAAAAAD//////////////////////////////wD///////////8AAAAAAAAAAP//////////////////////////////AP///////////wAAAAAAAAAA//////////////////////////////8A////////////AAAAAAAAAAD//////////////////////////////wD///////////8AAAAAAAAAAP//////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'Q' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////SoaDQcAAAAHDhoqPT///////////////////8A//////////////BwDAAAAAAAAAAAAAAACHDo/////////////////wD///////////+4FAAAAAAAAAAAAAAAAAAAABCo////////////////AP//////////nAQAAAAAAAAAAAAAAAAAAAAAAACQ//////////////8A/////////7gEAAAAAAAAAAAAAAAAAAAAAAAAAACg/////////////wD////////wFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzo////////////AP///////3AAAAAAAAAAACyo8P/sqCwAAAAAAAAAAGT///////////8A///////4EAAAAAAAAABM+P///////FQAAAAAAAAACPT//////////wD//////7AAAAAAAAAAFPD/////////9BgAAAAAAAAApP//////////AP//////bAAAAAAAAAB4////////////fAAAAAAAAABk//////////8A//////84AAAAAAAAALz///////////+8AAAAAAAAADT//////////wD//////xwAAAAAAAAA6P///////////+QAAAAAAAAAHP//////////AP//////AAAAAAAAAAD//////////////wAAAAAAAAAA//////////8A//////8AAAAAAAAAAP//////////////AAAAAAAAAAD//////////wD//////wAAAAAAAAAA/P////////////8AAAAAAAAAAP//////////AP//////GAAAAAAAAADg////////////4AAAAAAAAAAc//////////8A//////84AAAAAAAAALT////MJHTo//+8AAAAAAAAADT//////////wD//////2wAAAAAAAAAdP///2AAABCg/3wAAAAAAAAAZP//////////AP//////rAAAAAAAAAAY9P/sCAAAAABMGAAAAAAAAACk//////////8A///////4EAAAAAAAAABU/P+0OAAAAAAAAAAAAAAACPT//////////wD///////94AAAAAAAAAAA4sPD/gAAAAAAAAAAAAABk////////////AP////////AcAAAAAAAAAAAAAAAAAAAAAAAAAAAADOT///////////8A/////////7wEAAAAAAAAAAAAAAAAAAAAAAAAAACQ/////////////wD//////////6wEAAAAAAAAAAAAAAAAAAAAAAAAABSs////////////AP///////////7gUAAAAAAAAAAAAAAAAAAAAAAAAAABAwP////////8A//////////////BwDAAAAAAAAAAAAAAABAgAAAAAAAA8/////////wD////////////////0qGg0GAAAABgwXJjkxBgAAAAAALD/////////AP//////////////////////////////////5DQAAAAk/P////////8A////////////////////////////////////+GwAAJD//////////wD//////////////////////////////////////8A49P//////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'R' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////wAAAAAAAAAAAAAAAAAAAAQgOGSk+P///////////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAcuP//////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAEsP////////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ6P///////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB8////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAADD///////////8A/////////wAAAAAAAAAA///////svDgAAAAAAAAACP///////////wD/////////AAAAAAAAAAD/////////7AAAAAAAAAAA////////////AP////////8AAAAAAAAAAP/////////cAAAAAAAAABD///////////8A/////////wAAAAAAAAAA//////DQoCQAAAAAAAAAQP///////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAACU////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAIPj///////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAzU/////////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAA02P//////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAxctPz///////////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAEDY/////////////////wD/////////AAAAAAAAAAD/9LAsAAAAAAAAAAzc////////////////AP////////8AAAAAAAAAAP///+wkAAAAAAAAADD8//////////////8A/////////wAAAAAAAAAA/////8QAAAAAAAAAAJD//////////////wD/////////AAAAAAAAAAD//////1QAAAAAAAAAFPD/////////////AP////////8AAAAAAAAAAP//////3AQAAAAAAAAAgP////////////8A/////////wAAAAAAAAAA////////aAAAAAAAAAAM6P///////////wD/////////AAAAAAAAAAD////////oCAAAAAAAAABs////////////AP////////8AAAAAAAAAAP////////+AAAAAAAAAAATc//////////8A/////////wAAAAAAAAAA//////////AUAAAAAAAAAFj//////////wD/////////AAAAAAAAAAD//////////5AAAAAAAAAAAND/////////AP////////8AAAAAAAAAAP//////////+CQAAAAAAAAAQP////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'S' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP/////////////////8vHBEIAgAAAQgQHC8/P////////////////8A////////////////pCQAAAAAAAAAAAAAAAAcoP///////////////wD//////////////FwAAAAAAAAAAAAAAAAAAAAAXP//////////////AP////////////9oAAAAAAAAAAAAAAAAAAAAAAAAhP////////////8A////////////zAAAAAAAAAAAAAAAAAAAAAAAAAAI6P///////////wD///////////9cAAAAAAAAAAAAAAAAAAAAAAAAAACA////////////AP///////////xgAAAAAAAAAUOD/8KwkAAAAAAAAADj///////////8A////////////AAAAAAAAAAD0/////8wABCAgICxASP///////////wD///////////8MAAAAAAAAAMz/////////////////////////////AP///////////0AAAAAAAAAACFiQxPT///////////////////////8A////////////oAAAAAAAAAAAAAAAADBwtPT//////////////////wD////////////8QAAAAAAAAAAAAAAAAAAACFTA////////////////AP/////////////oOAAAAAAAAAAAAAAAAAAAAABM6P////////////8A///////////////4fAgAAAAAAAAAAAAAAAAAAAAY2P///////////wD/////////////////7IwwAAAAAAAAAAAAAAAAAAAo+P//////////AP/////////////////////koGw0BAAAAAAAAAAAAACU//////////8A///////////////////////////4uFgAAAAAAAAAADz//////////wD//////////2BgSEA0IBwA6P///////5QAAAAAAAAADP//////////AP//////////JAAAAAAAAACc/////////AAAAAAAAAAA//////////8A//////////9YAAAAAAAAACDo///////AAAAAAAAAABT//////////wD//////////6QAAAAAAAAAACCk7P/snBQAAAAAAAAAUP//////////AP//////////+BAAAAAAAAAAAAAAAAAAAAAAAAAAAACs//////////8A////////////kAAAAAAAAAAAAAAAAAAAAAAAAAAAOP///////////wD////////////8RAAAAAAAAAAAAAAAAAAAAAAAABjc////////////AP/////////////0PAAAAAAAAAAAAAAAAAAAAAAg2P////////////8A///////////////8hBQAAAAAAAAAAAAAAAAMdPT//////////////wD/////////////////+LRwSCAMAAAAHDhoqPT/////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'T' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'U' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////JAAAAAAAAADk/////////+gAAAAAAAAAHP//////////AP////////9MAAAAAAAAAJz/////////nAAAAAAAAABE//////////8A/////////4gAAAAAAAAAHOj//////+ggAAAAAAAAAHz//////////wD/////////0AAAAAAAAAAAIJzs/+ykIAAAAAAAAAAA0P//////////AP//////////QAAAAAAAAAAAAAAAAAAAAAAAAAAAAED///////////8A///////////IBAAAAAAAAAAAAAAAAAAAAAAAAAAE0P///////////wD///////////+YAAAAAAAAAAAAAAAAAAAAAAAAAJj/////////////AP////////////+UBAAAAAAAAAAAAAAAAAAAAASU//////////////8A///////////////IPAAAAAAAAAAAAAAAAAAwyP///////////////wD/////////////////0IxYOCAIAAAEIEiAyP//////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'V' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD//////zAAAAAAAAAAYP//////////////ZAAAAAAAAAAw////////AP//////kAAAAAAAAAAU/P////////////8UAAAAAAAAAJD///////8A///////oBAAAAAAAAADE////////////xAAAAAAAAAAE7P///////wD///////9MAAAAAAAAAHD///////////94AAAAAAAAAEz/////////AP///////6gAAAAAAAAAJP///////////yQAAAAAAAAArP////////8A////////+BAAAAAAAAAA1P/////////YAAAAAAAAABT4/////////wD/////////aAAAAAAAAACE/////////4QAAAAAAAAAbP//////////AP/////////EAAAAAAAAADT/////////OAAAAAAAAADM//////////8A//////////8kAAAAAAAAAOT//////+QAAAAAAAAAKP///////////wD//////////4QAAAAAAAAAmP//////nAAAAAAAAACI////////////AP//////////5AAAAAAAAABE//////9EAAAAAAAABOT///////////8A////////////QAAAAAAAAAT0////9AgAAAAAAABI/////////////wD///////////+gAAAAAAAAAKT///+kAAAAAAAAAKj/////////////AP////////////QIAAAAAAAAXP///1wAAAAAAAAM+P////////////8A/////////////1wAAAAAAAAM+P/8DAAAAAAAAGT//////////////wD/////////////vAAAAAAAAAC8/7wAAAAAAAAAxP//////////////AP//////////////HAAAAAAAAGj/aAAAAAAAACT///////////////8A//////////////94AAAAAAAAHP8cAAAAAAAAhP///////////////wD//////////////9gAAAAAAAAAkAAAAAAAAADk////////////////AP///////////////zgAAAAAAAAQAAAAAAAAQP////////////////8A////////////////lAAAAAAAAAAAAAAAAACg/////////////////wD////////////////sCAAAAAAAAAAAAAAADPT/////////////////AP////////////////9QAAAAAAAAAAAAAABg//////////////////8A/////////////////7AAAAAAAAAAAAAAAMD//////////////////wD//////////////////BQAAAAAAAAAAAAc////////////////////AP//////////////////cAAAAAAAAAAAAHz///////////////////8A///////////////////MAAAAAAAAAAAA3P///////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'W' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A//8cAAAAAAAAALz/////4AAAAAAAAAAA6P////+8AAAAAAAAABz//wD//1QAAAAAAAAAjP////+gAAAAAAAAAACo/////4wAAAAAAAAAUP//AP//jAAAAAAAAABU/////2AAAAAAAAAAAGj/////VAAAAAAAAACM//8A///EAAAAAAAAACT/////IAAAAAAAAAAAKP////8kAAAAAAAAAMT//wD///gEAAAAAAAAAPD//+AAAAAAAAAAAAAA6P//8AAAAAAAAAAE9P//AP///zAAAAAAAAAAvP//oAAAAAAAAAAAAACo//+8AAAAAAAAADD///8A////bAAAAAAAAACM//9gAAAAAAAAAAAAAGT//4wAAAAAAAAAaP///wD///+kAAAAAAAAAFT//yAAAAAAAAAAAAAAIP//VAAAAAAAAACc////AP///9gAAAAAAAAAJP/gAAAAAAAAAAAAAAAA4P8kAAAAAAAAANT///8A/////xAAAAAAAAAA8KAAAAAAAAAAAAAAAACg8AAAAAAAAAAQ/////wD/////TAAAAAAAAAC8YAAAAAAAAAAAAAAAAGC8AAAAAAAAAET/////AP////+AAAAAAAAAAIwgAAAAAAAAAAAAAAAAIIwAAAAAAAAAfP////8A/////7gAAAAAAAAANAAAAAAAACwwAAAAAAAANAAAAAAAAACw/////wD/////8AAAAAAAAAAAAAAAAAAAdHgAAAAAAAAAAAAAAAAAAOz/////AP//////KAAAAAAAAAAAAAAAAAC4vAAAAAAAAAAAAAAAAAAg//////8A//////9gAAAAAAAAAAAAAAAACPj4CAAAAAAAAAAAAAAAAFj//////wD//////5QAAAAAAAAAAAAAAABE//9IAAAAAAAAAAAAAAAAkP//////AP//////0AAAAAAAAAAAAAAAAIj//4wAAAAAAAAAAAAAAADI//////8A///////8DAAAAAAAAAAAAAAAzP//1AAAAAAAAAAAAAAABPj//////wD///////88AAAAAAAAAAAAABT/////GAAAAAAAAAAAAAA0////////AP///////3QAAAAAAAAAAAAAWP////9gAAAAAAAAAAAAAHD///////8A////////sAAAAAAAAAAAAACg/////6QAAAAAAAAAAAAApP///////wD////////kAAAAAAAAAAAAAOT/////6AAAAAAAAAAAAADc////////AP////////8cAAAAAAAAAAAo////////MAAAAAAAAAAAEP////////8A/////////1QAAAAAAAAAAHD///////94AAAAAAAAAABM/////////wD/////////jAAAAAAAAAAAtP///////7wAAAAAAAAAAID/////////AP/////////EAAAAAAAAAAT0////////+AgAAAAAAAAAuP////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'X' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD///////9UAAAAAAAAAKz///////////+sAAAAAAAAAFD/////////AP///////+QQAAAAAAAAFOT/////////8BwAAAAAAAAM5P////////8A/////////5gAAAAAAAAATP////////9kAAAAAAAAAJD//////////wD//////////0AAAAAAAAAAoP//////wAAAAAAAAAA0/P//////////AP//////////2AgAAAAAAAAQ4P////gkAAAAAAAABMz///////////8A////////////iAAAAAAAAABA////dAAAAAAAAABw/////////////wD////////////8MAAAAAAAAACU/9AEAAAAAAAAHPD/////////////AP/////////////IBAAAAAAAAAzYMAAAAAAAAACs//////////////8A//////////////90AAAAAAAAABAAAAAAAAAATP///////////////wD///////////////QgAAAAAAAAAAAAAAAAAAzg////////////////AP///////////////7wAAAAAAAAAAAAAAAAAjP////////////////8A/////////////////2AAAAAAAAAAAAAAADD8/////////////////wD/////////////////7BQAAAAAAAAAAAAEyP//////////////////AP/////////////////gDAAAAAAAAAAAAAjY//////////////////8A/////////////////0AAAAAAAAAAAAAAADj8/////////////////wD///////////////+UAAAAAAAAAAAAAAAAAJD/////////////////AP//////////////4AwAAAAAAAAAAAAAAAAADOD///////////////8A//////////////9AAAAAAAAAAAAAAAAAAAAAQP///////////////wD/////////////nAAAAAAAAAAAWAAAAAAAAAAAlP//////////////AP///////////+QQAAAAAAAAAGD/YAAAAAAAAAAM4P////////////8A////////////TAAAAAAAAAAs9P/0LAAAAAAAAABM/////////////wD//////////6AAAAAAAAAADNT////UDAAAAAAAAACg////////////AP/////////kEAAAAAAAAACg//////+gAAAAAAAAABDk//////////8A/////////0wAAAAAAAAAYP////////9gAAAAAAAAAEz//////////wD///////+oAAAAAAAAACz0//////////QsAAAAAAAAAKT/////////AP//////7BQAAAAAAAAM1P///////////9QMAAAAAAAAFOz///////8A//////9UAAAAAAAAAKD//////////////6AAAAAAAAAAVP///////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'Y' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP///////1QAAAAAAAAAAGj//////////2gAAAAAAAAAAFT///////8A////////5BAAAAAAAAAAAMT////////EAAAAAAAAAAAQ5P///////wD/////////mAAAAAAAAAAAKPj/////+CgAAAAAAAAAAJj/////////AP//////////PAAAAAAAAAAAgP////+AAAAAAAAAAAA8//////////8A///////////YCAAAAAAAAAAE2P//2AQAAAAAAAAACNj//////////wD///////////+AAAAAAAAAAAA4//84AAAAAAAAAACA////////////AP////////////woAAAAAAAAAACUlAAAAAAAAAAAKPz///////////8A/////////////8gAAAAAAAAAABAQAAAAAAAAAADI/////////////wD//////////////2wAAAAAAAAAAAAAAAAAAAAAbP//////////////AP//////////////8BwAAAAAAAAAAAAAAAAAABzw//////////////8A////////////////tAAAAAAAAAAAAAAAAAAAtP///////////////wD/////////////////VAAAAAAAAAAAAAAAAFT/////////////////AP/////////////////oEAAAAAAAAAAAAAAQ6P////////////////8A//////////////////+cAAAAAAAAAAAAAJz//////////////////wD///////////////////9AAAAAAAAAAABA////////////////////AP///////////////////9gAAAAAAAAAANj///////////////////8A/////////////////////wAAAAAAAAAA/////////////////////wD/////////////////////AAAAAAAAAAD/////////////////////AP////////////////////8AAAAAAAAAAP////////////////////8A/////////////////////wAAAAAAAAAA/////////////////////wD/////////////////////AAAAAAAAAAD/////////////////////AP////////////////////8AAAAAAAAAAP////////////////////8A/////////////////////wAAAAAAAAAA/////////////////////wD/////////////////////AAAAAAAAAAD/////////////////////AP////////////////////8AAAAAAAAAAP////////////////////8A/////////////////////wAAAAAAAAAA/////////////////////wD/////////////////////AAAAAAAAAAD/////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'Z' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAQ//////////////8A/////////////////////////1AAAAAAAAAABLz//////////////wD///////////////////////98AAAAAAAAAACY////////////////AP//////////////////////pAAAAAAAAAAAaP////////////////8A/////////////////////8QIAAAAAAAAAET8/////////////////wD////////////////////gGAAAAAAAAAAo9P//////////////////AP//////////////////9CwAAAAAAAAAFNz///////////////////8A//////////////////xMAAAAAAAAAATA/////////////////////wD/////////////////eAAAAAAAAAAAnP//////////////////////AP///////////////5wAAAAAAAAAAHT///////////////////////8A///////////////ABAAAAAAAAABM/P///////////////////////wD/////////////3BQAAAAAAAAALPT/////////////////////////AP////////////QoAAAAAAAAABjg//////////////////////////8A///////////8SAAAAAAAAAAExP///////////////////////////wD//////////2wAAAAAAAAAAKD/////////////////////////////AP////////+YAAAAAAAAAAB8//////////////////////////////8A/////////wQAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - ); - - return $_png; -} - -// These define base64_encoded raw png image data used -// when we cannot generate our own single png image -function define_raw_pngs() -{ - $_png = array( - '0' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QKCNGXKO6AAAAB3RJTUUH0wUOEDQ6EUG1VwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAXNJREFUeNpj/M9AHGAiUt2wVvhyaqAqKyOjpG3jQwaGv+e+IUn9RwJfSjjg4iwFP1aKJD6HyyErfGGAYrquIoP5E2wK/zigu0v5wH9sChdgeKDqP1aFGhBZmxv/z0Dd4IxV4RWIpMQHIPuJAITzAqEQETx7IFQIP5CQNoJwDmALxzMQCuyjg1chnBPYwtECwr8AZN41h0p6YHOjAkTuwf//77wYuCEcFWwKOWA2fM1iZuuHcASwKYQ55c9ENuasrxgRjKlwJS+D17v/hBUeUGYwv/sfn0IRiJQZJIbxuFEFagjvSlDUQNgK2GIGqpC1JRhIfoAqxBYz0DRhn8IMJO+giKEqhMaMJBeI3AHhIKdkRPqG8DlAifqFADyasKRHO6h1Z/6fMYEwTbCmx3cWGCl8CTaFwBhGz+M2/7EpXMvOnBmIok7jBVaFz/Mi3/1pQORrhpgPyOr+M8IL0j9/gKpeLjhy5QEwoDVsYuRR3cE4IktcAJNx8cJaZBeQAAAAAElFTkSuQmCC', - '1' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QMi//xxVKAAAAB3RJTUUH0wUOEDYLcqnX7wAAAAlwSFlzAAALEgAACxIB0t1+/AAAAHpJREFUeNpj/M9AHGAiUh1WhR8FGUGAsMKaD9iM/I8BlmCVwVS4hoUohT8qcNiFyv2zQIWBCIV3amRwu54RKcDRAgQ1KigIcJYK7CqR3QsCFmf+Y8qgeQakbANMAz6FKjUXECbj8zWa76nm61GFw1UhI10KqVGFNFQIADdK9Zj7PsV9AAAAAElFTkSuQmCC', - '2' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QMwPUBEjoAAAAB3RJTUUH0wUOEDUqFe2UcgAAAAlwSFlzAAALEgAACxIB0t1+/AAAAQxJREFUeNpj/M9AHGAiUt2owkGrkAWF93LFgStPfjCwyGiYRGijqfyPAH9aOJAkQl78RwbICkNQjdB4gUNhD7qzLLAr/CKA4YENSAoRvl7zAUJXvPmxhgfCXILVMxEQvg+IDVUhgtVqDYjkDhD7B2aQIMIx5cOTN29evLAAsaEKObBajQzmQOQMcIQjHLwQgSisIaDwBdS5LHfwK7yhAHVVyX+8CrdAA5HB5gdehQ3Yoxpd4ZcAmDqbD//xKISEIjhU//zHoxDmXQaeFRhOZ8CmzuDOf3wKf8DsDfnyH6/CHJi6P//xKjyDJethVehBpMI7DPgVwrPCCgb8AK5wDwGFcNMF8EkCASOx1QcAGUxu1untnFIAAAAASUVORK5CYII=', - '3' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QMxBQugk2AAAAB3RJTUUH0wUOEDU3duv4qwAAAAlwSFlzAAALEgAACxIB0t1+/AAAATdJREFUeNpj/M9AHGAiUt0IVciCzPm7ZceZB28YGBQkLHwcmNFU/keANRJI4ioH/qMAJIUlaHatwaFwBrqrOO5gVfiCB8P9KVgVVkAtnPDh/wkLCFsGq0IFiGQLiH0D06P/GWHJ7O+NOzfuXLlzQRrEhgSawHscwYPurxAcwQMBf/4/aIAYyHIGr8IEeDhO+Y9XoQNUncwOVHGMRPEDSovc+IkzrpGDCQgUbuC1WgBhhsIHfAp3vPn/oIIFKfRxKQSDGohCA4IKX0DTD7YoRAWMUJ9iyQpbn4DBBWUQ5yFEDDnFw622gXAzwBxoYvfB5sYlUI0lD/4/gWWKJdgU/tHAcKjCD6y+PsGCpo4FJbaRgmcNqkqWCThTzxkTJHXo+Ro1HA9uOPHiATDlKJj4eKCVFIzDqWgGAK7GW/haPS+zAAAAAElFTkSuQmCC', - '4' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QMyqWttCEAAAAB3RJTUUH0wUOEDUxn4hdngAAAAlwSFlzAAALEgAACxIB0t1+/AAAAKBJREFUeNpj/M9AHGAiUh2FCucyQgCK4H9McIAFixwWhQ8kGIhS+MWAgTiFIQzEKWxhIE7hFgbiFF7hASkQIajwjQpInuUAIYV/XMDyU/4TUlgAlk75T0jhArCszR9CCk+AY07mxX8CCp+AY47nzH8CCn+YgOWW/CekMAYsVfMfl0JGmCBq4kNEDp2zAn0UMmItABjRvDykPTO43DgyFQIANP6pTFLWAdoAAAAASUVORK5CYII=', - '5' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QMzPy3XhEAAAAB3RJTUUH0wUOEDUk8lW5dQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAQpJREFUeNpj/M9AHGAiUt2oQuIVfmREBzgU3iHWxAfEKiTaRFpZnfAfAbAr/AsxUYagiVCbeQgqhPpFYmukLCOrZupRNJUIB02BCAjAZCK+/Ed2LoJZgm6bzRfsCgMw3JWAXaEBpg8uIGSRPPMBQmXc+P+iggXCnoOQZUQK1K8PgEAjGcQs7QGL6FzG5mtkcAUiyYIQYcRRUkDTLEIWR1b4ixamQMPhrKUP3rx48eDNFXmwdyFiOthixgXqaTAnBcKpwRaOS6A6Mx78fwBVx/IAm8I/KsTGzAkWNHUyb7Ar/L8GNSlK3MCRev7/v+CApC7kBUoUoAX4yQ0nHjwAWqpiE6GNFgNDoAwHAKC2Q2lMNcCmAAAAAElFTkSuQmCC', - '6' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QNAObRd4vAAAAB3RJTUUH0wUOEDUc2lcB6wAAAAlwSFlzAAALEgAACxIB0t1+/AAAATtJREFUeNpj/M9AHGAiUh2Gwq2puryMjKKmmSfRVf5HBkcMEBI+L1CkUBROYUE2QuMFLoVr0CzzwKHwhQC6szZgV1gAtfHI/xs2mEYywsPxp8QHEMVxQ56B4aaJiIKIiIRCPDZf74DwI/5jB4hwPAChbAgG+BWoExlOxkoysuqW3sUV4BoQ/p0SqARLB44AF4HIByDMKMCuEIu7phCrUOADNl/DgMOJ/09SIMwPC7B5hgfC1/kB4kRAOC7YrFaByM0Ac85AOCLYrFaBhSMIQNPlG2wBDg3HP2CSGU/MuEAoiKVXUWxB9cwPiG8UwEGSg5FCMNOjwZ4/byqgpqwgMoWr/MGeZ1agqWPZgSNz/Z+AqnDCf1wK/29B8qbKDhQpRtTE8HfLjjMP3jDwKJh4hKCGJSPNC6lRhTRWCABWpdoxd/bZ4QAAAABJRU5ErkJggg==', - '7' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QNA18/fMoAAAAB3RJTUUH0wUOEDUVo4u5TwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAM9JREFUeNpj/M9AHGAiUt2oQnorZIGzGLFJIyJ40HqGhUiFPFuQ/YUFPBGBmLcDSQybwj8OEDOW/CegsAeiruQ/AYV3OMDqTP4QUugCceCN/wQUQn1a8Z+Awj8qYHUiHwgpXAAxcMJ/Qgp1wOoEPhBSuANiYM5/QgpjIAovEFL4gweszgAz0NASxZ4vYMqHYDKDBiIWhWhWa0CS1x9CVn+8AaYsmAlZfQRC6RDMChADGTQIKjxDrMI7EEoBi0JGlMJe8AOY+sFOSCEeQHQBAABCZ7xyT9fJhwAAAABJRU5ErkJggg==', - '8' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QNBeBnwpSAAAAB3RJTUUH0wUOEDUOKe5wowAAAAlwSFlzAAALEgAACxIB0t1+/AAAATVJREFUeNpj/M9AHGAiUt1AKmRB459cc+DBGwYWGQ2LEG1Umf/I4IELkozLA2QpFIUXJFDMEDiBQ+EHGTR3yHzArrAFwwct2BXqQGQ1zvw/owFh6mBXCDXmDJB5BsOrjEhxzfoHIgkiGCGB9xtrgEPtOwvEV6FWY4+ZAAgVc5LhZgKEGYI9wN+gBiPu4Pl/BFWlxA1cMfN/C0rUr8AVhX8K0KyuwaEwASNmarAqPACVTXnw/0oENBFewKYQGhYZYE4MVBM2hVAvQ1LhHQhHBVsUMjIgYhCdhy3PPASTd6GOxBYz0KhOQHajDjY3pkC1Rlz5fweqjqEAm8ILGK5gYLlDZICXYI+ZLzZo6gL+4EgUfyo4kJQJtCCpQ8kKQPB2zZ47L14AU5iMgUMAN7IM43AqHwdQIQAhMPz6Gz5V/wAAAABJRU5ErkJggg==', - '9' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QNCQ+T2tEAAAAB3RJTUUH0wUOEDUHUDLIBwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAUZJREFUeNpj/M9AHGAiUh26wr9rE3V5GRlFTTM3/kVT+R8Z7FBBSKjsQJFCUTiFBcWMCbgUHmBBs20FdoV/VNDUMQi8wapwDVS65s2fPToQZgFWhRFIkm8kwGyeH9gUQm2+Aua0QDhb4LJI4XgHQmmDSRMIZw+emIEENAeEcwObQhEIdQHiABRbUGPGBSIQAWL/gHqbB5tnJkC1Fjz5f8IGwxwkhR8EsCQarFE4hViF/wsQCgKgHsSu8H8HLFkUQL2rgUPh/zslOiwMEjFH/kND2geXQvQgqMAWhSjgAIRygAswIuXCpXfevHjz4M0ZdQaGhxo/wAnyBTuWmPnvARGxuPH/iAa+9Ph/A7r9Ai+wK/zvg6ZwzX8cCl9oICtjmfIfl8L/bwIQ6gyO/Met8P//EwUmwHTJo5OyBU2CkdaF1KhCWisEAM/sJxmZkdWnAAAAAElFTkSuQmCC', - 'A' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QFwy1U7TfAAAAB3RJTUUH0wUOEC0ZKCZtPQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAO1JREFUeNrt1LERwiAUBuAHZ2GRwsIypQMwQEZwgBQpM4QDZBSLFI7gCA5gQWGRdA5gkTuMSh48eMTUnq96wH98B+QiDCwruTD3D76qF676ueAp0Y9lSBXeSkFWaLAje3T+kkzK4SgpBzZw8pqxJWcdOJuRsyGPbWDk0tS20zw9SXsobdfytJVXdzNsP61i6Zt3K7Ht0UeUgbPdjsrOXMd+2IS2C2qb271HVWi7YANcNXFQsUEVBTXwNdl46jYRxPl52dnwRUZbhkLSDmS8DnxFRWiULxg8UxvobefuRR8ZQYDKtffVVcQWv/RrfgJC4bd0upw4MQAAAABJRU5ErkJggg==', - 'B' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGAusrz2zAAAAB3RJTUUH0wUOEC01Gv4B3gAAAAlwSFlzAAALEgAACxIB0t1+/AAAANJJREFUeNpj/M9AHGAiUh0tFTKiAUHL2rsoKv9DARZDWFr+IwA+hQwMFcQqZDhCrMIIYhWK4FYIYv8444PuV+wK//9/A+UJwBUSCHAL3OEIsdoFyttCpGdiiAtHjoY/RCnk6PlBbBRKrCE6CqcQq5DlDs5whIT3CgUI788EvOEIBCegXB2YPCNMBSNMISqf5TeUjysK90LpP/itfrFEAhZCMHkWdKMYUbk2MAah7BqD02pUYEFkgMu8IE6hD0IdpmegwSejoKLjoY7syaFU7A0HhQA2e4cJytImvAAAAABJRU5ErkJggg==', - 'C' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGBbPqVFqAAAAB3RJTUUH0wUOEC4BEGemqAAAAAlwSFlzAAALEgAACxIB0t1+/AAAASlJREFUeNpj/M9AHGAiUt2owkGrkAWV+3TDgRtPPjBwyGiYBOijSv1HAlcCkGUcTiDLISvsQDOeZQp2hQWYDpuCTeEEbD44ganwDgc2vxpgKoyAyUWc+f9hjgCMtwFd4RuYRxog/ueBcl3QFc6BSmj8gfBrwE40yFmCrjABqrAH5mSZgJ4jX7AEjwlU4Zn/OAAsrp9AaRlccc0IzdeMsBilOPWQrBDmtpfEKnwBpZ8qZq58i6IS6vscKHcBcgQYlOz4gh6OK6AKfaB8G5hN6Aq/wBLPHjB3CczCFIzUA0u2PD0v/j9pgaf1ExgK3wgwYAEOWFL4GizqWC5gyzM1mArnEJkLZ2DPhf//n3BAVmeDkq8ZUZPL3TUn7gBLCgYFBYsAcxQZRmKrDwABNsv9SJSDwwAAAABJRU5ErkJggg==', - 'D' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGC1+orhOAAAAB3RJTUUH0wUOEC4yr7fHvgAAAAlwSFlzAAALEgAACxIB0t1+/AAAAM9JREFUeNpj/M9AHGAiUt1AKmSBsxiRhXlkNBxCpFFU/ocBTDMyPvxHADwKGRgUbhCpkEHiCZEKGRyIVciwArdCIPPFGg8YzwSvQiBogXFvEFD43wDKnQDl44yZGCh9glAU2sCsJqRQBkq/gMUw3G2wuP6PnU/H9PgRSgsQUvgESosQUngFSqsQUrgCSsNiCFcU7oBx9+CL6w8XamB5SeUPkelxAZEJ1+YPcQolXhCXFTTuEJULOUq+IOVrFgasQELBxMaHG1mEcTiVjwOoEADAIkCnGpmJKgAAAABJRU5ErkJggg==', - 'E' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGDeDwEE0AAAAB3RJTUUH0wUOEC8CkHXGUwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAD5JREFUeNpj/M9AHGAiUt2owkGrkAXGYMQqjUgJQ8EzpPsa05+D140oMYTk4KEQ4MMqZqgUhcM1czESW30AABfqB1XDnLzcAAAAAElFTkSuQmCC', - 'F' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGQe8AkDZAAAAB3RJTUUH0wUOEC8JB6cf2wAAAAlwSFlzAAALEgAACxIB0t1+/AAAADlJREFUeNpj/M9AHGAiUt3wUsiCYDJikUYE3lDwDDm+xvTp4HUjIoaQXTsUAnxYxcyoQryAcUSWuAAW/gZTg/yEMAAAAABJRU5ErkJggg==', - 'G' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGRFI1vWIAAAAB3RJTUUH0wUOEC8QY8y3GwAAAAlwSFlzAAALEgAACxIB0t1+/AAAASZJREFUeNpj/M9AHGAiUt0IVciCwvt7ZM+FOy8+MDBwSEho2AQII8v9R4A/U2RQtHEUfEBIIim8YYBhn8oNLAqP8GBxmcwbDIU3sKljYIhAV/jHgAE7uICmcAJMQqDmwp//D2YowPgxqAr/wPyr8QAi8EEHwleIQFW4BxYicG+eEHEomHECET5QhRVQhQn/cQFoFJ6AKgwgFNcPoFwdnAoZIXmGERahKDwkIdqlR1j4PiRW4RVCCmExvQenQrSYEXiDiAoUBfC4loAK23yBSnzArhCRehRmAJPFnRUxHDgU/lDA7zZECj/Cgl2dAkaeWYNVZcoHDIX/94hgKLM4gS27/v9QIICizGMDkiQjSon7c8eBCw+e/GFgkZEwsHCRRpZiHE5FMwCa2YE+WcAOUwAAAABJRU5ErkJggg==', - 'H' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGRw2Z4k1AAAAB3RJTUUH0wUOEC8agxleBQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAD1JREFUeNpj/M9AHGAiUt2oQvyABUozQml4+KMLDAXPDAWFLGh8RlwKh4JnaB88GOlxELhxVCFewDgEynAAN2sFVHAvevkAAAAASUVORK5CYII=', - 'I' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGSlg1E0WAAAAB3RJTUUH0wUOEC86uHd+zQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAD5JREFUeNpj/M9AHGAiUt1AKmRBMBkxJJE9OhQ8Q32FjGhxDQsjjCQwFDwzqnCwKkRKZqO5EBMwDqcSl2iFAMMeB0s/kLo2AAAAAElFTkSuQmCC', - 'J' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGywiiNsbAAAAB3RJTUUH0wUOEDAFw0tdbgAAAAlwSFlzAAALEgAACxIB0t1+/AAAAKdJREFUeNpj/M9AHGAiUh3xClmwijJCaSR3Ud/qUYWjCklTyIHEhifctw8ePHgCxO+B7L9QMQlsChW+QOiX4gwMd6BiItisVoHSB6AYWQwM/kNBBszkC/9PwKyc8B8B4Ar3YPHMHWwK/xtgqAv4j1XhEfScK/EEu8L/a1BVStz4j0Ph/yPItoe8QFH3nxGlkNq75cKDB0DDVBwitNEcwjhwpdmoQrwAAN6ioiFapgUdAAAAAElFTkSuQmCC', - 'K' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHAEoFhGpAAAAB3RJTUUH0wUOEDANzZDVXAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAPZJREFUeNpj/M9AHGAiUt2owgFSyAgFMOGDrDARxkKo0H8wYEDh/b/AAzepACqEVeEdCQx1WBW+0ICry/mPR+EXE7i6kD94FP5xwaYOi8IIrOowFRbA1Xkgq8NQ2ANXZ/PlPx6FS3CpQ1fIAmOIoKn7jxbXf2CMNxvQIxvVRAQQ+YDXaiSQQqxChiOEFGoIQGidP/gVStxogLI68CqUuPH/BzSVcTzAoxCo7v//ObBIxK0QrO7/H1iCXIFT4QkIFxbaMh9wKYQJO0D5OYQUnoDF/QkCCuHJ1+APAYV3YOloAgGF8JTO84SAwjfQiGQIgPAZqV4rAACnKSarzdlc4gAAAABJRU5ErkJggg==', - 'L' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHA64qQw4AAAAB3RJTUUH0wUOEDAXMPIsJgAAAAlwSFlzAAALEgAACxIB0t1+/AAAADlJREFUeNpj/M9AHGAiUt2QUMiCYDJCaezhMBQ8M6pwVCEdFLJgCjEisRH5Zyh4hvoKGUdkQUq0QgARaARRV9jUFQAAAABJRU5ErkJggg==', - 'M' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHBhMfblpAAAAB3RJTUUH0wUOEDAqaJpgNwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAPNJREFUeNrdlK0OgzAUhS8bCQYxMYmcmEAgEAgejQfZQyG2pAIxOYlATkAu691o2tvSYia2iv7lyzn3NG0jhG1tt5H7Aggom7ZuaKPhBFqKV+pFWDGjjcxStEAYXuvBkrKtoVX+gdRiK9i6sxjgeVGUMJzWwZLACaZOTqoAOAronmrlBuvPkQsIgHn8BqnE2AMmhaaYJ57jqTRFMwsDyW249XaJLhAujizm7UFM5XCUXTqiTvBLQYWRc7H3WWt+3NmlyGbOGh9q/45mjQxUb+CA6A2jSqu5MweX0ooQWLJxLYx6fz0GwmBOsww5GP3At/dX4Ayb7qpFI9y5ygAAAABJRU5ErkJggg==', - 'N' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHC6DxyzwAAAAB3RJTUUH0wUOEDAye/b4YQAAAAlwSFlzAAALEgAACxIB0t1+/AAAALRJREFUeNpj/M9AHGAiUt0IV8gIARsRMlAROP8/BEB5Ii/+/0cVgXNRhRk8iFXIMIFYhRxXiFTIYPCDSIUMBcQqZNhDrEKZN0QqZAggViHDHIIKRSAUzx1CCrdAaZM/BBT+z4Eyaggp/KEDYbAcIaDw/wUWCEuBkML/PagBgFvhfxdiFT4RIVLh/zXEKvyfQqzCLypEKvx/hoVIhf9biFX4x4ZIhf8fCBCp8P8KNBHG4VQ0AwDEOyeZhO5p1AAAAABJRU5ErkJggg==', - 'O' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHQExDSDoAAAAB3RJTUUH0wUOEDA4myMRfwAAAAlwSFlzAAALEgAACxIB0t1+/AAAATtJREFUeNpj/M9AHGAiUt3wUsiCyv265ciZJ08YGGRkDGwCuFGk/iOBDwU8SDIcGS+Q5JAV7hBBs45nAVaFC1gwXTYBi8IdWNQxMCzAUPhBBJs6Bp4n6AoLYFI6az78f7NEB8ZNQFP4QwAqEfADwg+A+f0NqsI1UHGBDzCnSKC6EhYzB6B0Cj+UwZ+CKgNTeAZKu8C94QGlL6DGjAyU+wAeXC+gIiIQLiM0KzDC9CFCBlWICsnsL3aFMDc+hcs8QZWBKYSF2g24whvYFZpA6T1whUegNCwyoYGxAmYyLGZ+wOxYghqFX2BpO+APmP8nBspHj2uk1LPizf8PGyxgXPTUQ3x6JDqF//8/AYs6bHkGmCYF0O3FnguBCSaFA0kZS8IDJDlG1IIUVFK8eABMWzI6DgHCyDKMI7LEBQCD5YgI9wbKGgAAAABJRU5ErkJggg==', - 'P' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHQvR2Mn2AAAAB3RJTUUH0wUOEDEDMzPJGgAAAAlwSFlzAAALEgAACxIB0t1+/AAAAKVJREFUeNpj/M9AHGAiUh05ChlRAKdu4k5Ulf9hANMQiwf/EQCfQgaJB0QqZHAhViHDEbg0AV8vwRM8QN0v5vBAOSfw+BrMWQDl8MClGeEKGGEKQcRXHmQemTGD1RMy+N14o4MDyvGAS7NgGMaIzPHAYyIy4HhBZMy0EBmFIX+IUsjRgqQOi2fAgEVBwyVGGEUEQw2O3EbLzDWSFDIOhtJsVCEWAAC/Yt2X+2PYcgAAAABJRU5ErkJggg==', - 'Q' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHRxSC0wxAAAAB3RJTUUH0wUOEDEKSu9xvgAAAAlwSFlzAAALEgAACxIB0t1+/AAAAW1JREFUeNpj/M9AHGAiUt2QUMiCzPm65cCZF08YGGRkDBx8uNFU/oeDDwU8SOIcBS/+IwOEwh0iaEYIrMCqcA4LprsmYFG4A4s6BoYFGAo/iGBTx8DzAl1hAUxKZ8WH/29W6MC4KWgKfwhAJXx+gPl/QmB+/4KqcANUXOQDVPiLBFRkCUwhJGb2wGzihzK4U6CMA6hReAbKc4F7wwFKX0CNGRkoB+HJJ1ARGZgAIziFM8J0IUIGXYjMZPaXkEJYYDyBiz+EuRFVoQKUdwWIz6qWvmRguAMVkUBVaIIUalPu9GgshIefAWrwrIHp//L/DQc4KjFiBi2uQ/7832KB5AX0uP5fAZOx2PDhfwNCIXrq+f9BhgEb4HmCkcL3YE3hSHkBnmfWYFMpsoaYXAgGDgcwFKLlaxYOCG2DqRCYrldkmIACUMIgZsaTI5Cg3IBNISp4AoovlT+EFf7/kYPkb3wK//8/YAGPGcYhUIYDAHBC9Yak1w7iAAAAAElFTkSuQmCC', - 'R' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHSkEuIgSAAAAB3RJTUUH0wUOEDEUsOBM3QAAAAlwSFlzAAALEgAACxIB0t1+/AAAAOZJREFUeNpj/M9AHGAiUh0NFLJAaUY0YRkJHYcQdmSh/xCAzRCZHf8RAJ9CBpYNRCpkEHgBV4jfMx+mEOVGIDDAaTWY82aPBZTLgV8hUCkaH6cbP8B8gxHgyODjgwstMDfiVIgWQyFE+lrhB3EBznOFuJgxuUFMXPPEbPmDpA53FH55osKMIoAe4F826MDMvPMfj9WgWFGBBeIf/Ar/H4FxJhBQ+B8WzCIfCCi8A4uvBgIK/2fA/POCgMIXHFBuDqH02ABLM3cIKPwgAuVHEFD4fwJM4AIBhT9goe4AFWAcAsXesFIIAEvJyZHTCSiTAAAAAElFTkSuQmCC', - 'S' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHTRnvuTLAAAAB3RJTUUH0wUOEDEbIF9RTAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAVZJREFUeNpj/M9AHGAiUt2oQvyABYX398CWK3de/GBgkVEw8HFgRpH7jwSWqCDLyCxAlkNS+CcG3boY7AozMB3Wgk3hGSw+4HgBl0b4egIWhT9mYPGMBFQg4MH/D2tgvrKASzPC0yMjlP7CDSTOmrDIMDDwiHBsxzSRBypw5j9WgFDoAPNAxIQjX/ApXIDsC4OCLV9wKfzjwIACOEIO4IiZFxbooePzAqvC/z9qONBUStzAqvD//zc9BqgqNX5gVwgETxbkmCClvSk4FYLdsCMCptAGI2YSGV78+PLmz5MX4mDu1ByIMM9n9JiBxe4caGChy8MZMMsUIEFyAMoVwVC4BGaEwpI3/9/MEYGlJQyFPwQYsIE1mL7GlnCR0iNSXLtgqpO4gy1mvtigq1NAxCBKgP9pEUFWxlOCnNIYUYrmn3v23Ljx5gsw88sYOPhwI0sxDoEyHAABtSc836a1EQAAAABJRU5ErkJggg==', - 'T' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHgUdTbcyAAAAB3RJTUUH0wUOEDEgkVS4aAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADdJREFUeNpj/M9AHGAiUt0IVcgCpRlxyMODeSh4hmiFjGipB+Z7jEQ1FDwzqnBU4WBSyDicimYAb/AFTaJpyH8AAAAASUVORK5CYII=', - 'U' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHhEHl2NPAAAAB3RJTUUH0wUOEDEon48wWgAAAAlwSFlzAAALEgAACxIB0t1+/AAAAKlJREFUeNpj/M9AHGAiUh3xClmgNCOUhrsEXYD6Vo8qHFVIuUIVKP0USr+E0jLoCjWg9A4ovQVNHJjUIaADZsILMPeFApRfA5X/D1N4AaZRYc6b/2+WwNQxXEBX+N8Bqxcc/mMoPMGCRR3LBUyF/2dgUTjjPxaF/6egm8ky5T9Whf9P2KCoMziBJPefEaWQurjnzIMXL34wsMhoWHiYo2hjHLjSbFQhXgAAKzejCLAOcVMAAAAASUVORK5CYII=', - 'V' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHh/gL05IAAAAB3RJTUUH0wUOEDEuduyVbwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAVNJREFUeNpj/M9AHGAiUt2owoFRaMgIAYlIMqlQMUMo/z8ITIByRP78hwMRqNgECBei8AULVPQIXN0RqAjLGwgfYrW4B1R4DdzmLVDaQxjZ6v8roDwVuIkqMK3/ka3+/0MAKn4FKn4D5uof/5GtZmCPgEpsQHNDBDsDitVwt5tA+RZQ/pn/qFYj3PQEzHsC5WnA3QyPmQQU3+5AE0VYDTfDBcxzgQbik/8YVv93gMp9AbK/cEAD8T+m1TBb/oD8veEHhs0IE2GmxADZMRAmz4//WKxGkv3DA2Gm/MeqcA/Ujj1w1hHsCv/LQKQz/megRzyawgqIvAxMRwsuhbCEAEvGT3AphEUwNCU5IEv9R8lcUH9/wAxE5HAEgjccSBI8X3CbKOyBxAnhxm3i/w1IEgdQZFA98/+PCFydDKo6VKsZmGPQ0wgOq/+fgYvfQTORkeq1AgCIAvD7+THsDgAAAABJRU5ErkJggg==', - 'W' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QFhZRKnzkAAAAB3RJTUUH0wUOEDIR66frkQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAXNJREFUeNrtlK1ywkAUhZdMZsJMKyIqKhAIBAKBiEBEVCDyCJV9iIo+Do9QGRERgUBEVCAqKhAIREVERURnTvfn3t27xSA6g+kOQ/ZkP/aec5NlBHXZSC7k/sE/AhUwoVkDPQ58/2RUQ2IC6B1XpN7MV8tg62/pUdjSDO7OwR2J0pbekpqZYlMG50bNSGwBDQ4pyV5YtCZ7mqZf1mO2IN2Jynba0XRx49pThjQCbEKWFfVRpIlBzlK4PuLdpxEWlTr4LHvYMEDOaTYS3HCW3DAJt8mmaSXYchZbOfEzkyYGZRbrEbX8qe7GMpLqFeyxV9F4fon1pwcxjxbqJpJTBPBJLoyHYSz1I3xq78aOMssepHZZHFjKhbX9/AZd6e9bsdABeyHTQXiE2PLO6PugCwiP/r1QVLYSlpXwKE1Wno7b7jY+hoWj0aegPyA9+jPrzgqwZJ0j8hhMVtElmDoD19FFPAvamc+sOXBm+KdYEzC63p/9D7Tr72kj/8qjAAAAAElFTkSuQmCC', - 'X' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHi/G9n7kAAAAB3RJTUUH0wUOEDIXAsROpAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAT9JREFUeNpj/M9AHGAiUt3IVhjKCAFr4RJroSKBMIH/YPBEAMITeQLh//8gAxHggQlAFf6fAdXnA+WnQPkT/qMp/O8AlVkA5h2A8kz+YCi8wQGREngA5PxQgXBYzvzHUPi/A2qIA5BdAmUX/Mei8I8BVHbK/wssEJbMB2wK/5+ASvPcgGlZ8x+rQriFAmghgKHwiwJKXPA8wKXw/x4UhT3/cSr8n4CkzuAPHoVvRODqWE6gyPxHTT1ffiAUCjCgAhRtDkgSFnisnoJixAScCh/wEBk8DmiucsChcA5MQQSMMQWrQlgiZ0iAByey5QiFPlBZnS//v+hgxjZc4QKYKVeAnCswby3AUAi3eAGKNoEn6Ap94A5EjXUfNIUrEA6EALgzl6AohCUGsAMhAOZMkTfICkMw3I5wZgiEyzicimYAFRFkVwgDfJ0AAAAASUVORK5CYII=', - 'Y' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHjkyIsu1AAAAB3RJTUUH0wUOEDIkvRQvsgAAAAlwSFlzAAALEgAACxIB0t1+/AAAANJJREFUeNrt1L0NgzAQBWAcUVB6AAZgBAoKhmAICoZgCAoKxmAECkbwABSUlBRILwF8duwYhFJEihJ37+6T5T9g8K6N20X3FdDDNjKKOeTIqZLtWcKBU73bCx1lPhgQNTWieY1zRLmGCZFQp1xTSSmBDUUgW754BF+GQLxAPUkMxMb0FlzUsqpKLXhxQPRqo+oIerggCvuMC7jhFJounA4gWhO2OIL6Jp/uzglHrh0fTyAaDRucQaTkUpxDQVBYDWZ/hYze6bsv/A8/DNlP/kgvwzuer4kCMGPZDgAAAABJRU5ErkJggg==', - 'Z' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHwfqWOdfAAAAB3RJTUUH0wUOEDIrLasyIwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAL5JREFUeNrl1C0OwkAQBWCWQIJEVPQIFT0GAlHBMRBIBKIHqahAIDlERY9R0UOs3ORh5qVLunmp5GfUZvczbzKzDqtltV7ofgtueHCp16h33xBGwn0KYqoTO/J868Csaj418e0cPujOkLDfmTsECcfcXOGhoC/NZQMUDBUDd5DwxiAtJGzprpCw48xVQcIhM1d6KOgLc/kIBcORgXtIeGGQOyRs6Oq0g7P92YbkRE7bRZhcwhh+6nLF5f7yx30B8Z7FgxzMWtEAAAAASUVORK5CYII=', - ); - - return $_png; -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/usercp_email.php b/phpBB2/includes/usercp_email.php deleted file mode 100644 index a21e14c..0000000 --- a/phpBB2/includes/usercp_email.php +++ /dev/null @@ -1,216 +0,0 @@ -sql_query($sql) ) -{ - if ( $row = $db->sql_fetchrow($result) ) - { - - $username = $row['username']; - $user_email = $row['user_email']; - $user_lang = $row['user_lang']; - - if ( $row['user_viewemail'] || $userdata['user_level'] == ADMIN ) - { - if ( time() - $userdata['user_emailtime'] < $board_config['flood_interval'] ) - { - message_die(GENERAL_MESSAGE, $lang['Flood_email_limit']); - } - - if ( isset($HTTP_POST_VARS['submit']) ) - { - $error = FALSE; - - if ( !empty($HTTP_POST_VARS['subject']) ) - { - $subject = trim(stripslashes($HTTP_POST_VARS['subject'])); - } - else - { - $error = TRUE; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
' . $lang['Empty_subject_email'] : $lang['Empty_subject_email']; - } - - if ( !empty($HTTP_POST_VARS['message']) ) - { - $message = trim(stripslashes($HTTP_POST_VARS['message'])); - } - else - { - $error = TRUE; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
' . $lang['Empty_message_email'] : $lang['Empty_message_email']; - } - - if ( !$error ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_emailtime = " . time() . " - WHERE user_id = " . $userdata['user_id']; - if ( $result = $db->sql_query($sql) ) - { - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($userdata['user_email']); - $emailer->replyto($userdata['user_email']); - - $email_headers = 'X-AntiAbuse: Board servername - ' . $server_name . "\n"; - $email_headers .= 'X-AntiAbuse: User_id - ' . $userdata['user_id'] . "\n"; - $email_headers .= 'X-AntiAbuse: Username - ' . $userdata['username'] . "\n"; - $email_headers .= 'X-AntiAbuse: User IP - ' . decode_ip($user_ip) . "\n"; - - $emailer->use_template('profile_send_email', $user_lang); - $emailer->email_address($user_email); - $emailer->set_subject($subject); - $emailer->extra_headers($email_headers); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'BOARD_EMAIL' => $board_config['board_email'], - 'FROM_USERNAME' => $userdata['username'], - 'TO_USERNAME' => $username, - 'MESSAGE' => $message) - ); - $emailer->send(); - $emailer->reset(); - - if ( !empty($HTTP_POST_VARS['cc_email']) ) - { - $emailer->from($userdata['user_email']); - $emailer->replyto($userdata['user_email']); - $emailer->use_template('profile_send_email'); - $emailer->email_address($userdata['user_email']); - $emailer->set_subject($subject); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'BOARD_EMAIL' => $board_config['board_email'], - 'FROM_USERNAME' => $userdata['username'], - 'TO_USERNAME' => $username, - 'MESSAGE' => $message) - ); - $emailer->send(); - $emailer->reset(); - } - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Email_sent'] . '

' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - message_die(GENERAL_ERROR, 'Could not update last email time', '', __LINE__, __FILE__, $sql); - } - } - } - - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'body' => 'profile_send_email.tpl') - ); - make_jumpbox('viewforum.'.$phpEx); - - if ( $error ) - { - $template->set_filenames(array( - 'reg_header' => 'error_body.tpl') - ); - $template->assign_vars(array( - 'ERROR_MESSAGE' => $error_msg) - ); - $template->assign_var_from_handle('ERROR_BOX', 'reg_header'); - } - - $template->assign_vars(array( - 'USERNAME' => $username, - - 'S_HIDDEN_FIELDS' => '', - 'S_POST_ACTION' => append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL . "=$user_id"), - - 'L_SEND_EMAIL_MSG' => $lang['Send_email_msg'], - 'L_RECIPIENT' => $lang['Recipient'], - 'L_SUBJECT' => $lang['Subject'], - 'L_MESSAGE_BODY' => $lang['Message_body'], - 'L_MESSAGE_BODY_DESC' => $lang['Email_message_desc'], - 'L_EMPTY_SUBJECT_EMAIL' => $lang['Empty_subject_email'], - 'L_EMPTY_MESSAGE_EMAIL' => $lang['Empty_message_email'], - 'L_OPTIONS' => $lang['Options'], - 'L_CC_EMAIL' => $lang['CC_email'], - 'L_SPELLCHECK' => $lang['Spellcheck'], - 'L_SEND_EMAIL' => $lang['Send_email']) - ); - - $template->pparse('body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } - else - { - message_die(GENERAL_MESSAGE, $lang['User_prevent_email']); - } - } - else - { - message_die(GENERAL_MESSAGE, $lang['User_not_exist']); - } -} -else -{ - message_die(GENERAL_ERROR, 'Could not select user data', '', __LINE__, __FILE__, $sql); -} - -?> \ No newline at end of file diff --git a/phpBB2/includes/usercp_register.php b/phpBB2/includes/usercp_register.php deleted file mode 100644 index 8804723..0000000 --- a/phpBB2/includes/usercp_register.php +++ /dev/null @@ -1,1180 +0,0 @@ -', '<', '"', '&'); - -// --------------------------------------- -// Load agreement template since user has not yet -// agreed to registration conditions/coppa -// -function show_coppa() -{ - global $userdata, $template, $lang, $phpbb_root_path, $phpEx; - - $template->set_filenames(array( - 'body' => 'agreement.tpl') - ); - - $template->assign_vars(array( - 'REGISTRATION' => $lang['Registration'], - 'AGREEMENT' => $lang['Reg_agreement'], - "AGREE_OVER_13" => $lang['Agree_over_13'], - "AGREE_UNDER_13" => $lang['Agree_under_13'], - 'DO_NOT_AGREE' => $lang['Agree_not'], - - "U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&agreed=true"), - "U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true")) - ); - - $template->pparse('body'); - -} -// -// --------------------------------------- - -$error = FALSE; -$error_msg = ''; -$page_title = ( $mode == 'editprofile' ) ? $lang['Edit_profile'] : $lang['Register']; - -if ( $mode == 'register' && !isset($HTTP_POST_VARS['agreed']) && !isset($HTTP_GET_VARS['agreed']) ) -{ - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - show_coppa(); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); -} - -$coppa = ( empty($HTTP_POST_VARS['coppa']) && empty($HTTP_GET_VARS['coppa']) ) ? 0 : TRUE; - -// -// Check and initialize some variables if needed -// -if ( - isset($HTTP_POST_VARS['submit']) || - isset($HTTP_POST_VARS['avatargallery']) || - isset($HTTP_POST_VARS['submitavatar']) || - isset($HTTP_POST_VARS['cancelavatar']) || - $mode == 'register' ) -{ - include($phpbb_root_path . 'includes/functions_validate.'.$phpEx); - include($phpbb_root_path . 'includes/bbcode.'.$phpEx); - include($phpbb_root_path . 'includes/functions_post.'.$phpEx); - - if ( $mode == 'editprofile' ) - { - $user_id = intval($HTTP_POST_VARS['user_id']); - $current_email = trim(htmlspecialchars($HTTP_POST_VARS['current_email'])); - } - - $strip_var_list = array('email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests', 'confirm_code' => 'confirm_code'); - - // Strip all tags from data ... may p**s some people off, bah, strip_tags is - // doing the job but can still break HTML output ... have no choice, have - // to use htmlspecialchars ... be prepared to be moaned at. - while( list($var, $param) = @each($strip_var_list) ) - { - if ( !empty($HTTP_POST_VARS[$param]) ) - { - $$var = trim(htmlspecialchars($HTTP_POST_VARS[$param])); - } - } - - $username = ( !empty($HTTP_POST_VARS['username']) ) ? phpbb_clean_username($HTTP_POST_VARS['username']) : ''; - - $trim_var_list = array('cur_password' => 'cur_password', 'new_password' => 'new_password', 'password_confirm' => 'password_confirm', 'signature' => 'signature'); - - while( list($var, $param) = @each($trim_var_list) ) - { - if ( !empty($HTTP_POST_VARS[$param]) ) - { - $$var = trim($HTTP_POST_VARS[$param]); - } - } - - $signature = (isset($signature)) ? str_replace('
', "\n", $signature) : ''; - $signature_bbcode_uid = ''; - - // Run some validation on the optional fields. These are pass-by-ref, so they'll be changed to - // empty strings if they fail. - validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature); - - $viewemail = ( isset($HTTP_POST_VARS['viewemail']) ) ? ( ($HTTP_POST_VARS['viewemail']) ? TRUE : 0 ) : 0; - $allowviewonline = ( isset($HTTP_POST_VARS['hideonline']) ) ? ( ($HTTP_POST_VARS['hideonline']) ? 0 : TRUE ) : TRUE; - $notifyreply = ( isset($HTTP_POST_VARS['notifyreply']) ) ? ( ($HTTP_POST_VARS['notifyreply']) ? TRUE : 0 ) : 0; - $notifypm = ( isset($HTTP_POST_VARS['notifypm']) ) ? ( ($HTTP_POST_VARS['notifypm']) ? TRUE : 0 ) : TRUE; - $popup_pm = ( isset($HTTP_POST_VARS['popup_pm']) ) ? ( ($HTTP_POST_VARS['popup_pm']) ? TRUE : 0 ) : TRUE; - $sid = (isset($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : 0; - - if ( $mode == 'register' ) - { - $attachsig = ( isset($HTTP_POST_VARS['attachsig']) ) ? ( ($HTTP_POST_VARS['attachsig']) ? TRUE : 0 ) : $board_config['allow_sig']; - - $allowhtml = ( isset($HTTP_POST_VARS['allowhtml']) ) ? ( ($HTTP_POST_VARS['allowhtml']) ? TRUE : 0 ) : $board_config['allow_html']; - $allowbbcode = ( isset($HTTP_POST_VARS['allowbbcode']) ) ? ( ($HTTP_POST_VARS['allowbbcode']) ? TRUE : 0 ) : $board_config['allow_bbcode']; - $allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies']) ) ? ( ($HTTP_POST_VARS['allowsmilies']) ? TRUE : 0 ) : $board_config['allow_smilies']; - } - else - { - $attachsig = ( isset($HTTP_POST_VARS['attachsig']) ) ? ( ($HTTP_POST_VARS['attachsig']) ? TRUE : 0 ) : $userdata['user_attachsig']; - - $allowhtml = ( isset($HTTP_POST_VARS['allowhtml']) ) ? ( ($HTTP_POST_VARS['allowhtml']) ? TRUE : 0 ) : $userdata['user_allowhtml']; - $allowbbcode = ( isset($HTTP_POST_VARS['allowbbcode']) ) ? ( ($HTTP_POST_VARS['allowbbcode']) ? TRUE : 0 ) : $userdata['user_allowbbcode']; - $allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies']) ) ? ( ($HTTP_POST_VARS['allowsmilies']) ? TRUE : 0 ) : $userdata['user_allowsmile']; - } - - $user_style = ( isset($HTTP_POST_VARS['style']) ) ? intval($HTTP_POST_VARS['style']) : $board_config['default_style']; - - if ( !empty($HTTP_POST_VARS['language']) ) - { - if ( preg_match('/^[a-z_]+$/i', $HTTP_POST_VARS['language']) ) - { - $user_lang = htmlspecialchars($HTTP_POST_VARS['language']); - } - else - { - $error = true; - $error_msg = $lang['Fields_empty']; - } - } - else - { - $user_lang = $board_config['default_lang']; - } - - $user_timezone = ( isset($HTTP_POST_VARS['timezone']) ) ? doubleval($HTTP_POST_VARS['timezone']) : $board_config['board_timezone']; - - $sql = "SELECT config_value - FROM " . CONFIG_TABLE . " - WHERE config_name = 'default_dateformat'"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select default dateformat', '', __LINE__, __FILE__, $sql); - } - $row = $db->sql_fetchrow($result); - $board_config['default_dateformat'] = $row['config_value']; - $user_dateformat = ( !empty($HTTP_POST_VARS['dateformat']) ) ? trim(htmlspecialchars($HTTP_POST_VARS['dateformat'])) : $board_config['default_dateformat']; - - $user_avatar_local = ( isset($HTTP_POST_VARS['avatarselect']) && !empty($HTTP_POST_VARS['submitavatar']) && $board_config['allow_avatar_local'] ) ? htmlspecialchars($HTTP_POST_VARS['avatarselect']) : ( ( isset($HTTP_POST_VARS['avatarlocal']) ) ? htmlspecialchars($HTTP_POST_VARS['avatarlocal']) : '' ); - $user_avatar_category = ( isset($HTTP_POST_VARS['avatarcatname']) && $board_config['allow_avatar_local'] ) ? htmlspecialchars($HTTP_POST_VARS['avatarcatname']) : '' ; - - $user_avatar_remoteurl = ( !empty($HTTP_POST_VARS['avatarremoteurl']) ) ? trim(htmlspecialchars($HTTP_POST_VARS['avatarremoteurl'])) : ''; - $user_avatar_upload = ( !empty($HTTP_POST_VARS['avatarurl']) ) ? trim($HTTP_POST_VARS['avatarurl']) : ( ( $HTTP_POST_FILES['avatar']['tmp_name'] != "none") ? $HTTP_POST_FILES['avatar']['tmp_name'] : '' ); - $user_avatar_name = ( !empty($HTTP_POST_FILES['avatar']['name']) ) ? $HTTP_POST_FILES['avatar']['name'] : ''; - $user_avatar_size = ( !empty($HTTP_POST_FILES['avatar']['size']) ) ? $HTTP_POST_FILES['avatar']['size'] : 0; - $user_avatar_filetype = ( !empty($HTTP_POST_FILES['avatar']['type']) ) ? $HTTP_POST_FILES['avatar']['type'] : ''; - - $user_avatar = ( empty($user_avatar_local) && $mode == 'editprofile' ) ? $userdata['user_avatar'] : ''; - $user_avatar_type = ( empty($user_avatar_local) && $mode == 'editprofile' ) ? $userdata['user_avatar_type'] : ''; - - if ( (isset($HTTP_POST_VARS['avatargallery']) || isset($HTTP_POST_VARS['submitavatar']) || isset($HTTP_POST_VARS['cancelavatar'])) && (!isset($HTTP_POST_VARS['submit'])) ) - { - $username = stripslashes($username); - $email = stripslashes($email); - $cur_password = htmlspecialchars(stripslashes($cur_password)); - $new_password = htmlspecialchars(stripslashes($new_password)); - $password_confirm = htmlspecialchars(stripslashes($password_confirm)); - - $icq = stripslashes($icq); - $aim = stripslashes($aim); - $msn = stripslashes($msn); - $yim = stripslashes($yim); - - $website = stripslashes($website); - $location = stripslashes($location); - $occupation = stripslashes($occupation); - $interests = stripslashes($interests); - $signature = htmlspecialchars(stripslashes($signature)); - - $user_lang = stripslashes($user_lang); - $user_dateformat = stripslashes($user_dateformat); - - if ( !isset($HTTP_POST_VARS['cancelavatar'])) - { - $user_avatar = $user_avatar_category . '/' . $user_avatar_local; - $user_avatar_type = USER_AVATAR_GALLERY; - } - } -} - -// -// Let's make sure the user isn't logged in while registering, -// and ensure that they were trying to register a second time -// (Prevents double registrations) -// -if ($mode == 'register' && ($userdata['session_logged_in'] || $username == $userdata['username'])) -{ - message_die(GENERAL_MESSAGE, $lang['Username_taken'], '', __LINE__, __FILE__); -} - -// -// Did the user submit? In this case build a query to update the users profile in the DB -// -if ( isset($HTTP_POST_VARS['submit']) ) -{ - include($phpbb_root_path . 'includes/usercp_avatar.'.$phpEx); - - // session id check - if ($sid == '' || $sid != $userdata['session_id']) - { - $error = true; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Session_invalid']; - } - - $passwd_sql = ''; - if ( $mode == 'editprofile' ) - { - if ( $user_id != $userdata['user_id'] ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Wrong_Profile']; - } - } - else if ( $mode == 'register' ) - { - if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Fields_empty']; - } - } - - if ($board_config['enable_confirm'] && $mode == 'register') - { - if (empty($HTTP_POST_VARS['confirm_id'])) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Confirm_code_wrong']; - } - else - { - $confirm_id = htmlspecialchars($HTTP_POST_VARS['confirm_id']); - if (!preg_match('/^[A-Za-z0-9]+$/', $confirm_id)) - { - $confirm_id = ''; - } - - $sql = 'SELECT code - FROM ' . CONFIRM_TABLE . " - WHERE confirm_id = '$confirm_id' - AND session_id = '" . $userdata['session_id'] . "'"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not obtain confirmation code', '', __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - if ($row['code'] != $confirm_code) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Confirm_code_wrong']; - } - else - { - $sql = 'DELETE FROM ' . CONFIRM_TABLE . " - WHERE confirm_id = '$confirm_id' - AND session_id = '" . $userdata['session_id'] . "'"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Could not delete confirmation code', '', __LINE__, __FILE__, $sql); - } - } - } - else - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Confirm_code_wrong']; - } - $db->sql_freeresult($result); - } - } - - $passwd_sql = ''; - if ( !empty($new_password) && !empty($password_confirm) ) - { - if ( $new_password != $password_confirm ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Password_mismatch']; - } - else if ( strlen($new_password) > 32 ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Password_long']; - } - else - { - if ( $mode == 'editprofile' ) - { - $sql = "SELECT user_password - FROM " . USERS_TABLE . " - WHERE user_id = $user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user_password information', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - - if ( $row['user_password'] != md5($cur_password) ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Current_password_mismatch']; - } - } - - if ( !$error ) - { - $new_password = md5($new_password); - $passwd_sql = "user_password = '$new_password', "; - } - } - } - else if ( ( empty($new_password) && !empty($password_confirm) ) || ( !empty($new_password) && empty($password_confirm) ) ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Password_mismatch']; - } - - // - // Do a ban check on this email address - // - if ( $email != $userdata['user_email'] || $mode == 'register' ) - { - $result = validate_email($email); - if ( $result['error'] ) - { - $email = $userdata['user_email']; - - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $result['error_msg']; - } - - if ( $mode == 'editprofile' ) - { - $sql = "SELECT user_password - FROM " . USERS_TABLE . " - WHERE user_id = $user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user_password information', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - - if ( $row['user_password'] != md5($cur_password) ) - { - $email = $userdata['user_email']; - - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Current_password_mismatch']; - } - } - } - - $username_sql = ''; - if ( $board_config['allow_namechange'] || $mode == 'register' ) - { - if ( empty($username) ) - { - // Error is already triggered, since one field is empty. - $error = TRUE; - } - else if ( $username != $userdata['username'] || $mode == 'register') - { - if (strtolower($username) != strtolower($userdata['username']) || $mode == 'register') - { - $result = validate_username($username); - if ( $result['error'] ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $result['error_msg']; - } - } - - if (!$error) - { - $username_sql = "username = '" . str_replace("\'", "''", $username) . "', "; - } - } - } - - if ( $signature != '' ) - { - if ( strlen($signature) > $board_config['max_sig_chars'] ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
' : '' ) . $lang['Signature_too_long']; - } - - if ( !isset($signature_bbcode_uid) || $signature_bbcode_uid == '' ) - { - $signature_bbcode_uid = ( $allowbbcode ) ? make_bbcode_uid() : ''; - } - $signature = prepare_message($signature, $allowhtml, $allowbbcode, $allowsmilies, $signature_bbcode_uid); - } - - if ( $website != '' ) - { - rawurlencode($website); - } - - $avatar_sql = ''; - - if ( isset($HTTP_POST_VARS['avatardel']) && $mode == 'editprofile' ) - { - $avatar_sql = user_avatar_delete($userdata['user_avatar_type'], $userdata['user_avatar']); - } - else - if ( ( !empty($user_avatar_upload) || !empty($user_avatar_name) ) && $board_config['allow_avatar_upload'] ) - { - if ( !empty($user_avatar_upload) ) - { - $avatar_mode = (empty($user_avatar_name)) ? 'remote' : 'local'; - $avatar_sql = user_avatar_upload($mode, $avatar_mode, $userdata['user_avatar'], $userdata['user_avatar_type'], $error, $error_msg, $user_avatar_upload, $user_avatar_name, $user_avatar_size, $user_avatar_filetype); - } - else if ( !empty($user_avatar_name) ) - { - $l_avatar_size = sprintf($lang['Avatar_filesize'], round($board_config['avatar_filesize'] / 1024)); - - $error = true; - $error_msg .= ( ( !empty($error_msg) ) ? '
' : '' ) . $l_avatar_size; - } - } - else if ( $user_avatar_remoteurl != '' && $board_config['allow_avatar_remote'] ) - { - user_avatar_delete($userdata['user_avatar_type'], $userdata['user_avatar']); - $avatar_sql = user_avatar_url($mode, $error, $error_msg, $user_avatar_remoteurl); - } - else if ( $user_avatar_local != '' && $board_config['allow_avatar_local'] ) - { - user_avatar_delete($userdata['user_avatar_type'], $userdata['user_avatar']); - $avatar_sql = user_avatar_gallery($mode, $error, $error_msg, $user_avatar_local, $user_avatar_category); - } - - if ( !$error ) - { - if ( $avatar_sql == '' ) - { - $avatar_sql = ( $mode == 'editprofile' ) ? '' : "'', " . USER_AVATAR_NONE; - } - - if ( $mode == 'editprofile' ) - { - if ( $email != $userdata['user_email'] && $board_config['require_activation'] != USER_ACTIVATION_NONE && $userdata['user_level'] != ADMIN ) - { - $user_active = 0; - - $user_actkey = gen_rand_string(true); - $key_len = 54 - ( strlen($server_url) ); - $key_len = ( $key_len > 6 ) ? $key_len : 6; - $user_actkey = substr($user_actkey, 0, $key_len); - - if ( $userdata['session_logged_in'] ) - { - session_end($userdata['session_id'], $userdata['user_id']); - } - } - else - { - $user_active = 1; - $user_actkey = ''; - } - - $sql = "UPDATE " . USERS_TABLE . " - SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popup_pm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . " - WHERE user_id = $user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql); - } - - // We remove all stored login keys since the password has been updated - // and change the current one (if applicable) - if ( !empty($passwd_sql) ) - { - session_reset_keys($user_id, $user_ip); - } - - if ( !$user_active ) - { - // - // The users account has been deactivated, send them an email with a new activation key - // - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - if ( $board_config['require_activation'] != USER_ACTIVATION_ADMIN ) - { - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->use_template('user_activate', stripslashes($user_lang)); - $emailer->email_address($email); - $emailer->set_subject($lang['Reactivate']); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)), - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
', "\n", "-- \n" . $board_config['board_email_sig']) : '', - - 'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey) - ); - $emailer->send(); - $emailer->reset(); - } - else if ( $board_config['require_activation'] == USER_ACTIVATION_ADMIN ) - { - $sql = 'SELECT user_email, user_lang - FROM ' . USERS_TABLE . ' - WHERE user_level = ' . ADMIN; - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select Administrators', '', __LINE__, __FILE__, $sql); - } - - while ($row = $db->sql_fetchrow($result)) - { - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->email_address(trim($row['user_email'])); - $emailer->use_template("admin_activate", $row['user_lang']); - $emailer->set_subject($lang['Reactivate']); - - $emailer->assign_vars(array( - 'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)), - 'EMAIL_SIG' => str_replace('
', "\n", "-- \n" . $board_config['board_email_sig']), - - 'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey) - ); - $emailer->send(); - $emailer->reset(); - } - $db->sql_freeresult($result); - } - - $message = $lang['Profile_updated_inactive'] . '

' . sprintf($lang['Click_return_index'], '', ''); - } - else - { - $message = $lang['Profile_updated'] . '

' . sprintf($lang['Click_return_index'], '', ''); - } - - $template->assign_vars(array( - "META" => '') - ); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - $sql = "SELECT MAX(user_id) AS total - FROM " . USERS_TABLE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql); - } - - if ( !($row = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql); - } - $user_id = $row['total'] + 1; - - // - // Get current date - // - $sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey) - VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, "; - if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa ) - { - $user_actkey = gen_rand_string(true); - $key_len = 54 - (strlen($server_url)); - $key_len = ( $key_len > 6 ) ? $key_len : 6; - $user_actkey = substr($user_actkey, 0, $key_len); - $sql .= "0, '" . str_replace("\'", "''", $user_actkey) . "')"; - } - else - { - $sql .= "1, '')"; - } - - if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) ) - { - message_die(GENERAL_ERROR, 'Could not insert data into users table', '', __LINE__, __FILE__, $sql); - } - - $sql = "INSERT INTO " . GROUPS_TABLE . " (group_name, group_description, group_single_user, group_moderator) - VALUES ('', 'Personal User', 1, 0)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not insert data into groups table', '', __LINE__, __FILE__, $sql); - } - - $group_id = $db->sql_nextid(); - - $sql = "INSERT INTO " . USER_GROUP_TABLE . " (user_id, group_id, user_pending) - VALUES ($user_id, $group_id, 0)"; - if( !($result = $db->sql_query($sql, END_TRANSACTION)) ) - { - message_die(GENERAL_ERROR, 'Could not insert data into user_group table', '', __LINE__, __FILE__, $sql); - } - - if ( $coppa ) - { - $message = $lang['COPPA']; - $email_template = 'coppa_welcome_inactive'; - } - else if ( $board_config['require_activation'] == USER_ACTIVATION_SELF ) - { - $message = $lang['Account_inactive']; - $email_template = 'user_welcome_inactive'; - } - else if ( $board_config['require_activation'] == USER_ACTIVATION_ADMIN ) - { - $message = $lang['Account_inactive_admin']; - $email_template = 'admin_welcome_inactive'; - } - else - { - $message = $lang['Account_added']; - $email_template = 'user_welcome'; - } - - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->use_template($email_template, stripslashes($user_lang)); - $emailer->email_address($email); - $emailer->set_subject(sprintf($lang['Welcome_subject'], $board_config['sitename'])); - - if( $coppa ) - { - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'WELCOME_MSG' => sprintf($lang['Welcome_subject'], $board_config['sitename']), - 'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)), - 'PASSWORD' => $password_confirm, - 'EMAIL_SIG' => str_replace('
', "\n", "-- \n" . $board_config['board_email_sig']), - - 'FAX_INFO' => $board_config['coppa_fax'], - 'MAIL_INFO' => $board_config['coppa_mail'], - 'EMAIL_ADDRESS' => $email, - 'ICQ' => $icq, - 'AIM' => $aim, - 'YIM' => $yim, - 'MSN' => $msn, - 'WEB_SITE' => $website, - 'FROM' => $location, - 'OCC' => $occupation, - 'INTERESTS' => $interests, - 'SITENAME' => $board_config['sitename'])); - } - else - { - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'WELCOME_MSG' => sprintf($lang['Welcome_subject'], $board_config['sitename']), - 'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)), - 'PASSWORD' => $password_confirm, - 'EMAIL_SIG' => str_replace('
', "\n", "-- \n" . $board_config['board_email_sig']), - - 'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey) - ); - } - - $emailer->send(); - $emailer->reset(); - - if ( $board_config['require_activation'] == USER_ACTIVATION_ADMIN ) - { - $sql = "SELECT user_email, user_lang - FROM " . USERS_TABLE . " - WHERE user_level = " . ADMIN; - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select Administrators', '', __LINE__, __FILE__, $sql); - } - - while ($row = $db->sql_fetchrow($result)) - { - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->email_address(trim($row['user_email'])); - $emailer->use_template("admin_activate", $row['user_lang']); - $emailer->set_subject($lang['New_account_subject']); - - $emailer->assign_vars(array( - 'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)), - 'EMAIL_SIG' => str_replace('
', "\n", "-- \n" . $board_config['board_email_sig']), - - 'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey) - ); - $emailer->send(); - $emailer->reset(); - } - $db->sql_freeresult($result); - } - - $message = $message . '

' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } // if mode == register - } -} // End of submit - - -if ( $error ) -{ - // - // If an error occured we need to stripslashes on returned data - // - $username = stripslashes($username); - $email = stripslashes($email); - $cur_password = ''; - $new_password = ''; - $password_confirm = ''; - - $icq = stripslashes($icq); - $aim = str_replace('+', ' ', stripslashes($aim)); - $msn = stripslashes($msn); - $yim = stripslashes($yim); - - $website = stripslashes($website); - $location = stripslashes($location); - $occupation = stripslashes($occupation); - $interests = stripslashes($interests); - $signature = stripslashes($signature); - $signature = ($signature_bbcode_uid != '') ? preg_replace("/:(([a-z0-9]+:)?)$signature_bbcode_uid(=|\])/si", '\\3', $signature) : $signature; - - $user_lang = stripslashes($user_lang); - $user_dateformat = stripslashes($user_dateformat); - -} -else if ( $mode == 'editprofile' && !isset($HTTP_POST_VARS['avatargallery']) && !isset($HTTP_POST_VARS['submitavatar']) && !isset($HTTP_POST_VARS['cancelavatar']) ) -{ - $user_id = $userdata['user_id']; - $username = $userdata['username']; - $email = $userdata['user_email']; - $cur_password = ''; - $new_password = ''; - $password_confirm = ''; - - $icq = $userdata['user_icq']; - $aim = str_replace('+', ' ', $userdata['user_aim']); - $msn = $userdata['user_msnm']; - $yim = $userdata['user_yim']; - - $website = $userdata['user_website']; - $location = $userdata['user_from']; - $occupation = $userdata['user_occ']; - $interests = $userdata['user_interests']; - $signature_bbcode_uid = $userdata['user_sig_bbcode_uid']; - $signature = ($signature_bbcode_uid != '') ? preg_replace("/:(([a-z0-9]+:)?)$signature_bbcode_uid(=|\])/si", '\\3', $userdata['user_sig']) : $userdata['user_sig']; - - $viewemail = $userdata['user_viewemail']; - $notifypm = $userdata['user_notify_pm']; - $popup_pm = $userdata['user_popup_pm']; - $notifyreply = $userdata['user_notify']; - $attachsig = $userdata['user_attachsig']; - $allowhtml = $userdata['user_allowhtml']; - $allowbbcode = $userdata['user_allowbbcode']; - $allowsmilies = $userdata['user_allowsmile']; - $allowviewonline = $userdata['user_allow_viewonline']; - - $user_avatar = ( $userdata['user_allowavatar'] ) ? $userdata['user_avatar'] : ''; - $user_avatar_type = ( $userdata['user_allowavatar'] ) ? $userdata['user_avatar_type'] : USER_AVATAR_NONE; - - $user_style = $userdata['user_style']; - $user_lang = $userdata['user_lang']; - $user_timezone = $userdata['user_timezone']; - $user_dateformat = $userdata['user_dateformat']; -} - -// -// Default pages -// -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -make_jumpbox('viewforum.'.$phpEx); - -if ( $mode == 'editprofile' ) -{ - if ( $user_id != $userdata['user_id'] ) - { - $error = TRUE; - $error_msg = $lang['Wrong_Profile']; - } -} - -if( isset($HTTP_POST_VARS['avatargallery']) && !$error ) -{ - include($phpbb_root_path . 'includes/usercp_avatar.'.$phpEx); - - $avatar_category = ( !empty($HTTP_POST_VARS['avatarcategory']) ) ? htmlspecialchars($HTTP_POST_VARS['avatarcategory']) : ''; - - $template->set_filenames(array( - 'body' => 'profile_avatar_gallery.tpl') - ); - - $allowviewonline = !$allowviewonline; - - display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, $new_password, $cur_password, $password_confirm, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $viewemail, $notifypm, $popup_pm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat, $userdata['session_id']); -} -else -{ - include($phpbb_root_path . 'includes/functions_selects.'.$phpEx); - - if ( !isset($coppa) ) - { - $coppa = FALSE; - } - - if ( !isset($user_style) ) - { - $user_style = $board_config['default_style']; - } - - $avatar_img = ''; - if ( $user_avatar_type ) - { - switch( $user_avatar_type ) - { - case USER_AVATAR_UPLOAD: - $avatar_img = ( $board_config['allow_avatar_upload'] ) ? '' : ''; - break; - case USER_AVATAR_REMOTE: - $avatar_img = ( $board_config['allow_avatar_remote'] ) ? '' : ''; - break; - case USER_AVATAR_GALLERY: - $avatar_img = ( $board_config['allow_avatar_local'] ) ? '' : ''; - break; - } - } - - $s_hidden_fields = ''; - $s_hidden_fields .= ''; - if( $mode == 'editprofile' ) - { - $s_hidden_fields .= ''; - // - // Send the users current email address. If they change it, and account activation is turned on - // the user account will be disabled and the user will have to reactivate their account. - // - $s_hidden_fields .= ''; - } - - if ( !empty($user_avatar_local) ) - { - $s_hidden_fields .= ''; - } - - $html_status = ( $userdata['user_allowhtml'] && $board_config['allow_html'] ) ? $lang['HTML_is_ON'] : $lang['HTML_is_OFF']; - $bbcode_status = ( $userdata['user_allowbbcode'] && $board_config['allow_bbcode'] ) ? $lang['BBCode_is_ON'] : $lang['BBCode_is_OFF']; - $smilies_status = ( $userdata['user_allowsmile'] && $board_config['allow_smilies'] ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF']; - - if ( $error ) - { - $template->set_filenames(array( - 'reg_header' => 'error_body.tpl') - ); - $template->assign_vars(array( - 'ERROR_MESSAGE' => $error_msg) - ); - $template->assign_var_from_handle('ERROR_BOX', 'reg_header'); - } - - $template->set_filenames(array( - 'body' => 'profile_add_body.tpl') - ); - - if ( $mode == 'editprofile' ) - { - $template->assign_block_vars('switch_edit_profile', array()); - } - - if ( ($mode == 'register') || ($board_config['allow_namechange']) ) - { - $template->assign_block_vars('switch_namechange_allowed', array()); - } - else - { - $template->assign_block_vars('switch_namechange_disallowed', array()); - } - - - // Visual Confirmation - $confirm_image = ''; - if (!empty($board_config['enable_confirm']) && $mode == 'register') - { - $sql = 'SELECT session_id - FROM ' . SESSIONS_TABLE; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not select session data', '', __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - $confirm_sql = ''; - do - { - $confirm_sql .= (($confirm_sql != '') ? ', ' : '') . "'" . $row['session_id'] . "'"; - } - while ($row = $db->sql_fetchrow($result)); - - $sql = 'DELETE FROM ' . CONFIRM_TABLE . " - WHERE session_id NOT IN ($confirm_sql)"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Could not delete stale confirm data', '', __LINE__, __FILE__, $sql); - } - } - $db->sql_freeresult($result); - - $sql = 'SELECT COUNT(session_id) AS attempts - FROM ' . CONFIRM_TABLE . " - WHERE session_id = '" . $userdata['session_id'] . "'"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not obtain confirm code count', '', __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - if ($row['attempts'] > 3) - { - message_die(GENERAL_MESSAGE, $lang['Too_many_registers']); - } - } - $db->sql_freeresult($result); - - // Generate the required confirmation code - // NB 0 (zero) could get confused with O (the letter) so we make change it - $code = dss_rand(); - $code = substr(str_replace('0', 'Z', strtoupper(base_convert($code, 16, 35))), 2, 6); - - $confirm_id = md5(uniqid($user_ip)); - - $sql = 'INSERT INTO ' . CONFIRM_TABLE . " (confirm_id, session_id, code) - VALUES ('$confirm_id', '". $userdata['session_id'] . "', '$code')"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Could not insert new confirm code information', '', __LINE__, __FILE__, $sql); - } - - unset($code); - - $confirm_image = ''; - $s_hidden_fields .= ''; - - $template->assign_block_vars('switch_confirm', array()); - } - - - // - // Let's do an overall check for settings/versions which would prevent - // us from doing file uploads.... - // - $ini_val = ( phpversion() >= '4.0.0' ) ? 'ini_get' : 'get_cfg_var'; - $form_enctype = ( @$ini_val('file_uploads') == '0' || strtolower(@$ini_val('file_uploads') == 'off') || phpversion() == '4.0.4pl1' || !$board_config['allow_avatar_upload'] || ( phpversion() < '4.0.3' && @$ini_val('open_basedir') != '' ) ) ? '' : 'enctype="multipart/form-data"'; - - $template->assign_vars(array( - 'USERNAME' => isset($username) ? $username : '', - 'CUR_PASSWORD' => isset($cur_password) ? $cur_password : '', - 'NEW_PASSWORD' => isset($new_password) ? $new_password : '', - 'PASSWORD_CONFIRM' => isset($password_confirm) ? $password_confirm : '', - 'EMAIL' => isset($email) ? $email : '', - 'CONFIRM_IMG' => $confirm_image, - 'YIM' => $yim, - 'ICQ' => $icq, - 'MSN' => $msn, - 'AIM' => $aim, - 'OCCUPATION' => $occupation, - 'INTERESTS' => $interests, - 'LOCATION' => $location, - 'WEBSITE' => $website, - 'SIGNATURE' => str_replace('
', "\n", $signature), - 'VIEW_EMAIL_YES' => ( $viewemail ) ? 'checked="checked"' : '', - 'VIEW_EMAIL_NO' => ( !$viewemail ) ? 'checked="checked"' : '', - 'HIDE_USER_YES' => ( !$allowviewonline ) ? 'checked="checked"' : '', - 'HIDE_USER_NO' => ( $allowviewonline ) ? 'checked="checked"' : '', - 'NOTIFY_PM_YES' => ( $notifypm ) ? 'checked="checked"' : '', - 'NOTIFY_PM_NO' => ( !$notifypm ) ? 'checked="checked"' : '', - 'POPUP_PM_YES' => ( $popup_pm ) ? 'checked="checked"' : '', - 'POPUP_PM_NO' => ( !$popup_pm ) ? 'checked="checked"' : '', - 'ALWAYS_ADD_SIGNATURE_YES' => ( $attachsig ) ? 'checked="checked"' : '', - 'ALWAYS_ADD_SIGNATURE_NO' => ( !$attachsig ) ? 'checked="checked"' : '', - 'NOTIFY_REPLY_YES' => ( $notifyreply ) ? 'checked="checked"' : '', - 'NOTIFY_REPLY_NO' => ( !$notifyreply ) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_BBCODE_YES' => ( $allowbbcode ) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_BBCODE_NO' => ( !$allowbbcode ) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_HTML_YES' => ( $allowhtml ) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_HTML_NO' => ( !$allowhtml ) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_SMILIES_YES' => ( $allowsmilies ) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_SMILIES_NO' => ( !$allowsmilies ) ? 'checked="checked"' : '', - 'ALLOW_AVATAR' => $board_config['allow_avatar_upload'], - 'AVATAR' => $avatar_img, - 'AVATAR_SIZE' => $board_config['avatar_filesize'], - 'LANGUAGE_SELECT' => language_select($user_lang, 'language'), - 'STYLE_SELECT' => style_select($user_style, 'style'), - 'TIMEZONE_SELECT' => tz_select($user_timezone, 'timezone'), - 'DATE_FORMAT' => $user_dateformat, - 'HTML_STATUS' => $html_status, - 'BBCODE_STATUS' => sprintf($bbcode_status, '', ''), - 'SMILIES_STATUS' => $smilies_status, - - 'L_CURRENT_PASSWORD' => $lang['Current_password'], - 'L_NEW_PASSWORD' => ( $mode == 'register' ) ? $lang['Password'] : $lang['New_password'], - 'L_CONFIRM_PASSWORD' => $lang['Confirm_password'], - 'L_CONFIRM_PASSWORD_EXPLAIN' => ( $mode == 'editprofile' ) ? $lang['Confirm_password_explain'] : '', - 'L_PASSWORD_IF_CHANGED' => ( $mode == 'editprofile' ) ? $lang['password_if_changed'] : '', - 'L_PASSWORD_CONFIRM_IF_CHANGED' => ( $mode == 'editprofile' ) ? $lang['password_confirm_if_changed'] : '', - 'L_SUBMIT' => $lang['Submit'], - 'L_RESET' => $lang['Reset'], - 'L_ICQ_NUMBER' => $lang['ICQ'], - 'L_MESSENGER' => $lang['MSNM'], - 'L_YAHOO' => $lang['YIM'], - 'L_WEBSITE' => $lang['Website'], - 'L_AIM' => $lang['AIM'], - 'L_LOCATION' => $lang['Location'], - 'L_OCCUPATION' => $lang['Occupation'], - 'L_BOARD_LANGUAGE' => $lang['Board_lang'], - 'L_BOARD_STYLE' => $lang['Board_style'], - 'L_TIMEZONE' => $lang['Timezone'], - 'L_DATE_FORMAT' => $lang['Date_format'], - 'L_DATE_FORMAT_EXPLAIN' => $lang['Date_format_explain'], - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - 'L_INTERESTS' => $lang['Interests'], - 'L_ALWAYS_ALLOW_SMILIES' => $lang['Always_smile'], - 'L_ALWAYS_ALLOW_BBCODE' => $lang['Always_bbcode'], - 'L_ALWAYS_ALLOW_HTML' => $lang['Always_html'], - 'L_HIDE_USER' => $lang['Hide_user'], - 'L_ALWAYS_ADD_SIGNATURE' => $lang['Always_add_sig'], - - 'L_AVATAR_PANEL' => $lang['Avatar_panel'], - 'L_AVATAR_EXPLAIN' => sprintf($lang['Avatar_explain'], $board_config['avatar_max_width'], $board_config['avatar_max_height'], (round($board_config['avatar_filesize'] / 1024))), - 'L_UPLOAD_AVATAR_FILE' => $lang['Upload_Avatar_file'], - 'L_UPLOAD_AVATAR_URL' => $lang['Upload_Avatar_URL'], - 'L_UPLOAD_AVATAR_URL_EXPLAIN' => $lang['Upload_Avatar_URL_explain'], - 'L_AVATAR_GALLERY' => $lang['Select_from_gallery'], - 'L_SHOW_GALLERY' => $lang['View_avatar_gallery'], - 'L_LINK_REMOTE_AVATAR' => $lang['Link_remote_Avatar'], - 'L_LINK_REMOTE_AVATAR_EXPLAIN' => $lang['Link_remote_Avatar_explain'], - 'L_DELETE_AVATAR' => $lang['Delete_Image'], - 'L_CURRENT_IMAGE' => $lang['Current_Image'], - - 'L_SIGNATURE' => $lang['Signature'], - 'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars']), - 'L_NOTIFY_ON_REPLY' => $lang['Always_notify'], - 'L_NOTIFY_ON_REPLY_EXPLAIN' => $lang['Always_notify_explain'], - 'L_NOTIFY_ON_PRIVMSG' => $lang['Notify_on_privmsg'], - 'L_POPUP_ON_PRIVMSG' => $lang['Popup_on_privmsg'], - 'L_POPUP_ON_PRIVMSG_EXPLAIN' => $lang['Popup_on_privmsg_explain'], - 'L_PREFERENCES' => $lang['Preferences'], - 'L_PUBLIC_VIEW_EMAIL' => $lang['Public_view_email'], - 'L_ITEMS_REQUIRED' => $lang['Items_required'], - 'L_REGISTRATION_INFO' => $lang['Registration_info'], - 'L_PROFILE_INFO' => $lang['Profile_info'], - 'L_PROFILE_INFO_NOTICE' => $lang['Profile_info_warn'], - 'L_EMAIL_ADDRESS' => $lang['Email_address'], - - 'L_CONFIRM_CODE_IMPAIRED' => sprintf($lang['Confirm_code_impaired'], '', ''), - 'L_CONFIRM_CODE' => $lang['Confirm_code'], - 'L_CONFIRM_CODE_EXPLAIN' => $lang['Confirm_code_explain'], - - 'S_ALLOW_AVATAR_UPLOAD' => $board_config['allow_avatar_upload'], - 'S_ALLOW_AVATAR_LOCAL' => $board_config['allow_avatar_local'], - 'S_ALLOW_AVATAR_REMOTE' => $board_config['allow_avatar_remote'], - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_FORM_ENCTYPE' => $form_enctype, - 'S_PROFILE_ACTION' => append_sid("profile.$phpEx")) - ); - - // - // This is another cheat using the block_var capability - // of the templates to 'fake' an IF...ELSE...ENDIF solution - // it works well :) - // - if ( $mode != 'register' ) - { - if ( $userdata['user_allowavatar'] && ( $board_config['allow_avatar_upload'] || $board_config['allow_avatar_local'] || $board_config['allow_avatar_remote'] ) ) - { - $template->assign_block_vars('switch_avatar_block', array() ); - - if ( $board_config['allow_avatar_upload'] && file_exists(@phpbb_realpath('./' . $board_config['avatar_path'])) ) - { - if ( $form_enctype != '' ) - { - $template->assign_block_vars('switch_avatar_block.switch_avatar_local_upload', array() ); - } - $template->assign_block_vars('switch_avatar_block.switch_avatar_remote_upload', array() ); - } - - if ( $board_config['allow_avatar_remote'] ) - { - $template->assign_block_vars('switch_avatar_block.switch_avatar_remote_link', array() ); - } - - if ( $board_config['allow_avatar_local'] && file_exists(@phpbb_realpath('./' . $board_config['avatar_gallery_path'])) ) - { - $template->assign_block_vars('switch_avatar_block.switch_avatar_local_gallery', array() ); - } - } - } -} - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/includes/usercp_sendpasswd.php b/phpBB2/includes/usercp_sendpasswd.php deleted file mode 100644 index b048ad5..0000000 --- a/phpBB2/includes/usercp_sendpasswd.php +++ /dev/null @@ -1,138 +0,0 @@ -sql_query($sql) ) - { - if ( $row = $db->sql_fetchrow($result) ) - { - if ( !$row['user_active'] ) - { - message_die(GENERAL_MESSAGE, $lang['No_send_account_inactive']); - } - - $username = $row['username']; - $user_id = $row['user_id']; - - $user_actkey = gen_rand_string(true); - $key_len = 54 - strlen($server_url); - $key_len = ($key_len > 6) ? $key_len : 6; - $user_actkey = substr($user_actkey, 0, $key_len); - $user_password = gen_rand_string(false); - - $sql = "UPDATE " . USERS_TABLE . " - SET user_newpasswd = '" . md5($user_password) . "', user_actkey = '$user_actkey' - WHERE user_id = " . $row['user_id']; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update new password information', '', __LINE__, __FILE__, $sql); - } - - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->use_template('user_activate_passwd', $row['user_lang']); - $emailer->email_address($row['user_email']); - $emailer->set_subject($lang['New_password_activation']); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'USERNAME' => $username, - 'PASSWORD' => $user_password, - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
', "\n", "-- \n" . $board_config['board_email_sig']) : '', - - 'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey) - ); - $emailer->send(); - $emailer->reset(); - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Password_updated'] . '

' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_email_match']); - } - } - else - { - message_die(GENERAL_ERROR, 'Could not obtain user information for sendpassword', '', __LINE__, __FILE__, $sql); - } -} -else -{ - $username = ''; - $email = ''; -} - -// -// Output basic page -// -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -$template->set_filenames(array( - 'body' => 'profile_send_pass.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$template->assign_vars(array( - 'USERNAME' => $username, - 'EMAIL' => $email, - - 'L_SEND_PASSWORD' => $lang['Send_password'], - 'L_ITEMS_REQUIRED' => $lang['Items_required'], - 'L_EMAIL_ADDRESS' => $lang['Email_address'], - 'L_SUBMIT' => $lang['Submit'], - 'L_RESET' => $lang['Reset'], - - 'S_HIDDEN_FIELDS' => '', - 'S_PROFILE_ACTION' => append_sid("profile.$phpEx?mode=sendpassword")) -); - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/includes/usercp_viewprofile.php b/phpBB2/includes/usercp_viewprofile.php deleted file mode 100644 index 14a5a2f..0000000 --- a/phpBB2/includes/usercp_viewprofile.php +++ /dev/null @@ -1,249 +0,0 @@ -sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not obtain ranks information', '', __LINE__, __FILE__, $sql); -} - -$ranksrow = array(); -while ( $row = $db->sql_fetchrow($result) ) -{ - $ranksrow[] = $row; -} -$db->sql_freeresult($result); - -// -// Output page header and profile_view template -// -$template->set_filenames(array( - 'body' => 'profile_view_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -// -// Calculate the number of days this user has been a member ($memberdays) -// Then calculate their posts per day -// -$regdate = $profiledata['user_regdate']; -$memberdays = max(1, round( ( time() - $regdate ) / 86400 )); -$posts_per_day = $profiledata['user_posts'] / $memberdays; - -// Get the users percentage of total posts -if ( $profiledata['user_posts'] != 0 ) -{ - $total_posts = get_db_stat('postcount'); - $percentage = ( $total_posts ) ? min(100, ($profiledata['user_posts'] / $total_posts) * 100) : 0; -} -else -{ - $percentage = 0; -} - -$avatar_img = ''; -if ( $profiledata['user_avatar_type'] && $profiledata['user_allowavatar'] ) -{ - switch( $profiledata['user_avatar_type'] ) - { - case USER_AVATAR_UPLOAD: - $avatar_img = ( $board_config['allow_avatar_upload'] ) ? '' : ''; - break; - case USER_AVATAR_REMOTE: - $avatar_img = ( $board_config['allow_avatar_remote'] ) ? '' : ''; - break; - case USER_AVATAR_GALLERY: - $avatar_img = ( $board_config['allow_avatar_local'] ) ? '' : ''; - break; - } -} - -$poster_rank = ''; -$rank_image = ''; -if ( $profiledata['user_rank'] ) -{ - for($i = 0; $i < count($ranksrow); $i++) - { - if ( $profiledata['user_rank'] == $ranksrow[$i]['rank_id'] && $ranksrow[$i]['rank_special'] ) - { - $poster_rank = $ranksrow[$i]['rank_title']; - $rank_image = ( $ranksrow[$i]['rank_image'] ) ? '' . $poster_rank . '
' : ''; - } - } -} -else -{ - for($i = 0; $i < count($ranksrow); $i++) - { - if ( $profiledata['user_posts'] >= $ranksrow[$i]['rank_min'] && !$ranksrow[$i]['rank_special'] ) - { - $poster_rank = $ranksrow[$i]['rank_title']; - $rank_image = ( $ranksrow[$i]['rank_image'] ) ? '' . $poster_rank . '
' : ''; - } - } -} - -$temp_url = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=" . $profiledata['user_id']); -$pm_img = '' . $lang['Send_private_message'] . ''; -$pm = '' . $lang['Send_private_message'] . ''; - -if ( !empty($profiledata['user_viewemail']) || $userdata['user_level'] == ADMIN ) -{ - $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $profiledata['user_id']) : 'mailto:' . $profiledata['user_email']; - - $email_img = '' . $lang['Send_email'] . ''; - $email = '' . $lang['Send_email'] . ''; -} -else -{ - $email_img = ' '; - $email = ' '; -} - -$www_img = ( $profiledata['user_website'] ) ? '' . $lang['Visit_website'] . '' : ' '; -$www = ( $profiledata['user_website'] ) ? '' . $profiledata['user_website'] . '' : ' '; - -if ( !empty($profiledata['user_icq']) ) -{ - $icq_status_img = ''; - $icq_img = '' . $lang['ICQ'] . ''; - $icq = '' . $lang['ICQ'] . ''; -} -else -{ - $icq_status_img = ' '; - $icq_img = ' '; - $icq = ' '; -} - -$aim_img = ( $profiledata['user_aim'] ) ? '' . $lang['AIM'] . '' : ' '; -$aim = ( $profiledata['user_aim'] ) ? '' . $lang['AIM'] . '' : ' '; - -$msn_img = ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : ' '; -$msn = $msn_img; - -$yim_img = ( $profiledata['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; -$yim = ( $profiledata['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - -$temp_url = append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username']) . "&showresults=posts"); -$search_img = '' . sprintf($lang['Search_user_posts'], $profiledata['username']) . ''; -$search = '' . sprintf($lang['Search_user_posts'], $profiledata['username']) . ''; - -// -// Generate page -// -$page_title = $lang['Viewing_profile']; -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -if (function_exists('get_html_translation_table')) -{ - $u_search_author = urlencode(strtr($profiledata['username'], array_flip(get_html_translation_table(HTML_ENTITIES)))); -} -else -{ - $u_search_author = urlencode(str_replace(array('&', ''', '"', '<', '>'), array('&', "'", '"', '<', '>'), $profiledata['username'])); -} - -$template->assign_vars(array( - 'USERNAME' => $profiledata['username'], - 'JOINED' => create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']), - 'POSTER_RANK' => $poster_rank, - 'RANK_IMAGE' => $rank_image, - 'POSTS_PER_DAY' => $posts_per_day, - 'POSTS' => $profiledata['user_posts'], - 'PERCENTAGE' => $percentage . '%', - 'POST_DAY_STATS' => sprintf($lang['User_post_day_stats'], $posts_per_day), - 'POST_PERCENT_STATS' => sprintf($lang['User_post_pct_stats'], $percentage), - - 'SEARCH_IMG' => $search_img, - 'SEARCH' => $search, - 'PM_IMG' => $pm_img, - 'PM' => $pm, - 'EMAIL_IMG' => $email_img, - 'EMAIL' => $email, - 'WWW_IMG' => $www_img, - 'WWW' => $www, - 'ICQ_STATUS_IMG' => $icq_status_img, - 'ICQ_IMG' => $icq_img, - 'ICQ' => $icq, - 'AIM_IMG' => $aim_img, - 'AIM' => $aim, - 'MSN_IMG' => $msn_img, - 'MSN' => $msn, - 'YIM_IMG' => $yim_img, - 'YIM' => $yim, - - 'LOCATION' => ( $profiledata['user_from'] ) ? $profiledata['user_from'] : ' ', - 'OCCUPATION' => ( $profiledata['user_occ'] ) ? $profiledata['user_occ'] : ' ', - 'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ', - 'AVATAR_IMG' => $avatar_img, - - 'L_VIEWING_PROFILE' => sprintf($lang['Viewing_user_profile'], $profiledata['username']), - 'L_ABOUT_USER' => sprintf($lang['About_user'], $profiledata['username']), - 'L_AVATAR' => $lang['Avatar'], - 'L_POSTER_RANK' => $lang['Poster_rank'], - 'L_JOINED' => $lang['Joined'], - 'L_TOTAL_POSTS' => $lang['Total_posts'], - 'L_SEARCH_USER_POSTS' => sprintf($lang['Search_user_posts'], $profiledata['username']), - 'L_CONTACT' => $lang['Contact'], - 'L_EMAIL_ADDRESS' => $lang['Email_address'], - 'L_EMAIL' => $lang['Email'], - 'L_PM' => $lang['Private_Message'], - 'L_ICQ_NUMBER' => $lang['ICQ'], - 'L_YAHOO' => $lang['YIM'], - 'L_AIM' => $lang['AIM'], - 'L_MESSENGER' => $lang['MSNM'], - 'L_WEBSITE' => $lang['Website'], - 'L_LOCATION' => $lang['Location'], - 'L_OCCUPATION' => $lang['Occupation'], - 'L_INTERESTS' => $lang['Interests'], - - 'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . $u_search_author), - - 'S_PROFILE_ACTION' => append_sid("profile.$phpEx")) -); - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/index.php b/phpBB2/index.php deleted file mode 100644 index a7bcaeb..0000000 --- a/phpBB2/index.php +++ /dev/null @@ -1,470 +0,0 @@ -assign_vars(array( - "META" => '') - ); - - $message = $lang['Forums_marked_read'] . '

' . sprintf($lang['Click_return_index'], '', ' '); - - message_die(GENERAL_MESSAGE, $message); -} -// -// End handle marking posts -// - -$tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . "_t"]) : array(); -$tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . "_f"]) : array(); - -// -// If you don't use these stats on your index you may want to consider -// removing them -// -$total_posts = get_db_stat('postcount'); -$total_users = get_db_stat('usercount'); -$newest_userdata = get_db_stat('newestuser'); -$newest_user = $newest_userdata['username']; -$newest_uid = $newest_userdata['user_id']; - -if( $total_posts == 0 ) -{ - $l_total_post_s = $lang['Posted_articles_zero_total']; -} -else if( $total_posts == 1 ) -{ - $l_total_post_s = $lang['Posted_article_total']; -} -else -{ - $l_total_post_s = $lang['Posted_articles_total']; -} - -if( $total_users == 0 ) -{ - $l_total_user_s = $lang['Registered_users_zero_total']; -} -else if( $total_users == 1 ) -{ - $l_total_user_s = $lang['Registered_user_total']; -} -else -{ - $l_total_user_s = $lang['Registered_users_total']; -} - - -// -// Start page proper -// -$sql = "SELECT c.cat_id, c.cat_title, c.cat_order - FROM " . CATEGORIES_TABLE . " c - ORDER BY c.cat_order"; -if( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql); -} - -$category_rows = array(); -while ($row = $db->sql_fetchrow($result)) -{ - $category_rows[] = $row; -} -$db->sql_freeresult($result); - -if( ( $total_categories = count($category_rows) ) ) -{ - // - // Define appropriate SQL - // - switch(SQL_LAYER) - { - case 'postgresql': - $sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id - FROM " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . USERS_TABLE . " u - WHERE p.post_id = f.forum_last_post_id - AND u.user_id = p.poster_id - UNION ( - SELECT f.*, NULL, NULL, NULL, NULL - FROM " . FORUMS_TABLE . " f - WHERE NOT EXISTS ( - SELECT p.post_time - FROM " . POSTS_TABLE . " p - WHERE p.post_id = f.forum_last_post_id - ) - ) - ORDER BY cat_id, forum_order"; - break; - - case 'oracle': - $sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id - FROM " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . USERS_TABLE . " u - WHERE p.post_id = f.forum_last_post_id(+) - AND u.user_id = p.poster_id(+) - ORDER BY f.cat_id, f.forum_order"; - break; - - default: - $sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id - FROM (( " . FORUMS_TABLE . " f - LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id ) - LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id ) - ORDER BY f.cat_id, f.forum_order"; - break; - } - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql); - } - - $forum_data = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $forum_data[] = $row; - } - $db->sql_freeresult($result); - - if ( !($total_forums = count($forum_data)) ) - { - message_die(GENERAL_MESSAGE, $lang['No_forums']); - } - - // - // Obtain a list of topic ids which contain - // posts made since user last visited - // - if ($userdata['session_logged_in']) - { - // 60 days limit - if ($userdata['user_lastvisit'] < (time() - 5184000)) - { - $userdata['user_lastvisit'] = time() - 5184000; - } - - $sql = "SELECT t.forum_id, t.topic_id, p.post_time - FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p - WHERE p.post_id = t.topic_last_post_id - AND p.post_time > " . $userdata['user_lastvisit'] . " - AND t.topic_moved_id = 0"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not query new topic information', '', __LINE__, __FILE__, $sql); - } - - $new_topic_data = array(); - while( $topic_data = $db->sql_fetchrow($result) ) - { - $new_topic_data[$topic_data['forum_id']][$topic_data['topic_id']] = $topic_data['post_time']; - } - $db->sql_freeresult($result); - } - - // - // Obtain list of moderators of each forum - // First users, then groups ... broken into two queries - // - $sql = "SELECT aa.forum_id, u.user_id, u.username - FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g, " . USERS_TABLE . " u - WHERE aa.auth_mod = " . TRUE . " - AND g.group_single_user = 1 - AND ug.group_id = aa.group_id - AND g.group_id = aa.group_id - AND u.user_id = ug.user_id - GROUP BY u.user_id, u.username, aa.forum_id - ORDER BY aa.forum_id, u.user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql); - } - - $forum_moderators = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $forum_moderators[$row['forum_id']][] = '' . $row['username'] . ''; - } - $db->sql_freeresult($result); - - $sql = "SELECT aa.forum_id, g.group_id, g.group_name - FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g - WHERE aa.auth_mod = " . TRUE . " - AND g.group_single_user = 0 - AND g.group_type <> " . GROUP_HIDDEN . " - AND ug.group_id = aa.group_id - AND g.group_id = aa.group_id - GROUP BY g.group_id, g.group_name, aa.forum_id - ORDER BY aa.forum_id, g.group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql); - } - - while( $row = $db->sql_fetchrow($result) ) - { - $forum_moderators[$row['forum_id']][] = '' . $row['group_name'] . ''; - } - $db->sql_freeresult($result); - - // - // Find which forums are visible for this user - // - $is_auth_ary = array(); - $is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_data); - - // - // Start output of page - // - define('SHOW_ONLINE', true); - $page_title = $lang['Index']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'body' => 'index_body.tpl') - ); - - $template->assign_vars(array( - 'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts), - 'TOTAL_USERS' => sprintf($l_total_user_s, $total_users), - 'NEWEST_USER' => sprintf($lang['Newest_user'], '', $newest_user, ''), - - 'FORUM_IMG' => $images['forum'], - 'FORUM_NEW_IMG' => $images['forum_new'], - 'FORUM_LOCKED_IMG' => $images['forum_locked'], - - 'L_FORUM' => $lang['Forum'], - 'L_TOPICS' => $lang['Topics'], - 'L_REPLIES' => $lang['Replies'], - 'L_VIEWS' => $lang['Views'], - 'L_POSTS' => $lang['Posts'], - 'L_LASTPOST' => $lang['Last_Post'], - 'L_NO_NEW_POSTS' => $lang['No_new_posts'], - 'L_NEW_POSTS' => $lang['New_posts'], - 'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'], - 'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'], - 'L_ONLINE_EXPLAIN' => $lang['Online_explain'], - - 'L_MODERATOR' => $lang['Moderators'], - 'L_FORUM_LOCKED' => $lang['Forum_is_locked'], - 'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'], - - 'U_MARK_READ' => append_sid("index.$phpEx?mark=forums")) - ); - - // - // Let's decide which categories we should display - // - $display_categories = array(); - - for ($i = 0; $i < $total_forums; $i++ ) - { - if ($is_auth_ary[$forum_data[$i]['forum_id']]['auth_view']) - { - $display_categories[$forum_data[$i]['cat_id']] = true; - } - } - - // - // Okay, let's build the index - // - for($i = 0; $i < $total_categories; $i++) - { - $cat_id = $category_rows[$i]['cat_id']; - - // - // Yes, we should, so first dump out the category - // title, then, if appropriate the forum list - // - if (isset($display_categories[$cat_id]) && $display_categories[$cat_id]) - { - $template->assign_block_vars('catrow', array( - 'CAT_ID' => $cat_id, - 'CAT_DESC' => $category_rows[$i]['cat_title'], - 'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id")) - ); - - if ( $viewcat == $cat_id || $viewcat == -1 ) - { - for($j = 0; $j < $total_forums; $j++) - { - if ( $forum_data[$j]['cat_id'] == $cat_id ) - { - $forum_id = $forum_data[$j]['forum_id']; - - if ( $is_auth_ary[$forum_id]['auth_view'] ) - { - if ( $forum_data[$j]['forum_status'] == FORUM_LOCKED ) - { - $folder_image = $images['forum_locked']; - $folder_alt = $lang['Forum_locked']; - } - else - { - $unread_topics = false; - if ( $userdata['session_logged_in'] ) - { - if ( !empty($new_topic_data[$forum_id]) ) - { - $forum_last_post_time = 0; - - while( list($check_topic_id, $check_post_time) = @each($new_topic_data[$forum_id]) ) - { - if ( empty($tracking_topics[$check_topic_id]) ) - { - $unread_topics = true; - $forum_last_post_time = max($check_post_time, $forum_last_post_time); - - } - else - { - if ( $tracking_topics[$check_topic_id] < $check_post_time ) - { - $unread_topics = true; - $forum_last_post_time = max($check_post_time, $forum_last_post_time); - } - } - } - - if ( !empty($tracking_forums[$forum_id]) ) - { - if ( $tracking_forums[$forum_id] > $forum_last_post_time ) - { - $unread_topics = false; - } - } - - if ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) - { - if ( $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all'] > $forum_last_post_time ) - { - $unread_topics = false; - } - } - - } - } - - $folder_image = ( $unread_topics ) ? $images['forum_new'] : $images['forum']; - $folder_alt = ( $unread_topics ) ? $lang['New_posts'] : $lang['No_new_posts']; - } - - $posts = $forum_data[$j]['forum_posts']; - $topics = $forum_data[$j]['forum_topics']; - - if ( $forum_data[$j]['forum_last_post_id'] ) - { - $last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']); - - $last_post = $last_post_time . '
'; - - $last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '' . $forum_data[$j]['username'] . ' '; - - $last_post .= '' . $lang['View_latest_post'] . ''; - } - else - { - $last_post = $lang['No_Posts']; - } - - if ( count($forum_moderators[$forum_id]) > 0 ) - { - $l_moderators = ( count($forum_moderators[$forum_id]) == 1 ) ? $lang['Moderator'] : $lang['Moderators']; - $moderator_list = implode(', ', $forum_moderators[$forum_id]); - } - else - { - $l_moderators = ' '; - $moderator_list = ' '; - } - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('catrow.forumrow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'FORUM_FOLDER_IMG' => $folder_image, - 'FORUM_NAME' => $forum_data[$j]['forum_name'], - 'FORUM_DESC' => $forum_data[$j]['forum_desc'], - 'POSTS' => $forum_data[$j]['forum_posts'], - 'TOPICS' => $forum_data[$j]['forum_topics'], - 'LAST_POST' => $last_post, - 'MODERATORS' => $moderator_list, - - 'L_MODERATOR' => $l_moderators, - 'L_FORUM_FOLDER_ALT' => $folder_alt, - - 'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id")) - ); - } - } - } - } - } - } // for ... categories - -}// if ... total_categories -else -{ - message_die(GENERAL_MESSAGE, $lang['No_forums']); -} - -// -// Generate the page -// -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/install.txt b/phpBB2/install.txt deleted file mode 100644 index ad5ba08..0000000 --- a/phpBB2/install.txt +++ /dev/null @@ -1,244 +0,0 @@ -################################################################# -## MOD Title: eXtreme Styles mod 2 -## MOD Author: CyberAlien (CyberAlien) http://www.phpbbstyles.com -## MOD Description: -## This mod is heavily optimized version of phpBB templates system -## and has some additional features. It compiles and executes -## files much faster, has cache system that speeds up templates -## many times, allowes to use php in templates and few other new -## features to style designers. Also it has huge control panel -## that replaces phpBB styles management with more efficient -## easy to use functions. It also allowes to quickly import/export -## styles using .style format. -## MOD Version: 2.2.1 -## -## Installation Level: Easy -## Installation Time: 1-2 Minutes -## Files To Edit (0): -## Included Files (64): admin/admin_xs.php, -## admin/xs_cache.php -## admin/xs_chmod.php -## admin/xs_clone.php -## admin/xs_config.php -## admin/xs_download.php -## admin/xs_edit.php -## admin/xs_edit_data.php -## admin/xs_export.php -## admin/xs_export_data.php -## admin/xs_frame_top.php -## admin/xs_frameset.php -## admin/xs_import.php -## admin/xs_include.php -## admin/xs_include_import.php -## admin/xs_include_import2.php -## admin/xs_index.php -## admin/xs_install.php -## admin/xs_style_config.php -## admin/xs_styles.php -## admin/xs_uninstall.php -## admin/xs_update.php -## admin/xs_main.cfg -## language/lang_english/lang_xs.php -## xs_mod/formIE.css -## xs_mod/images/button.gif -## xs_mod/images/cellpic1.gif -## xs_mod/images/cellpic2.jpg -## xs_mod/images/cellpic3.gif -## xs_mod/images/cellpic4.gif -## xs_mod/images/dot.gif -## xs_mod/images/spacer.gif -## xs_mod/images/top_bg.gif -## xs_mod/images/top_bg2.gif -## xs_mod/images/top_logo.jpg -## xs_mod/style.css -## xs_mod/tpl/cache.tpl -## xs_mod/tpl/clone.tpl -## xs_mod/tpl/clone2.tpl -## xs_mod/tpl/config.tpl -## xs_mod/tpl/downloads.tpl -## xs_mod/tpl/edit.tpl -## xs_mod/tpl/edit_data.tpl -## xs_mod/tpl/edit_data_list.tpl -## xs_mod/tpl/edit_file.tpl -## xs_mod/tpl/export.tpl -## xs_mod/tpl/export2.tpl -## xs_mod/tpl/export_data.tpl -## xs_mod/tpl/export_data2.tpl -## xs_mod/tpl/frame_top.tpl -## xs_mod/tpl/frameset.tpl -## xs_mod/tpl/ftp.tpl -## xs_mod/tpl/import.tpl -## xs_mod/tpl/import2.tpl -## xs_mod/tpl/index.tpl -## xs_mod/tpl/install.tpl -## xs_mod/tpl/message.tpl -## xs_mod/tpl/style_config.tpl -## xs_mod/tpl/styles.tpl -## xs_mod/tpl/uninstall.tpl -## xs_mod/tpl/update.tpl -## xs_mod/tpl/update2.tpl -## xs_mod/tpl/xs_footer.tpl -## xs_mod/tpl/xs_header.tpl -## Files To Overwrite (1): includes/template.php -############################################################## -## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the -## latest version of this MOD. Downloading this MOD from other sites could cause malicious code -## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered -## in our MOD-Database, located at: http://www.phpbb.com/mods/ -############################################################## -## Author Notes: -## -## -## Important: -## -## Create directory "cache" within your phpBB2 root folder (if it isn't created -## yet) and chmod it to 777 (or change the owner to you httpd-servers owner). -## -## If you do not know how to CHMOD this article should help you: -## http://www.phpbb.com/kb/article.php?article_id=22 -## -## -## Important: -## -## When upgrading from mod version 1.19 or older version you MUST delete all -## files of old mod from directory "admin". -## -## Latest version of this mod can be found at this url: -## http://www.phpbbstyles.com -## -## Additional documentation for this mod can be found at this url: -## http://www.phpbbstyles.com/viewforum.php?f=6 -## -## -## MOD Features: -## - Fast templates compilation algorythm -## - Fast templates execution (even if not cached) -## - Cache system that doesn't use database -## - Auto-check errors in templates while compiling -## - Almost all features of this mod can be configured in acp -## - PHP code in templates. PHP code should start with -## and end with ?> or -## Short tags are not allowed. See manual for examples of code. -## - Unlimited switches in one line. -## - Include other tpl files with -## - You can configure separate .tpl files for usual template.php -## and eXtreme Styles template.php. It can be configured in xs.cfg -## (like jumpbox.tpl for usual phpbb and jumpbox_xs.tpl for xs mod -## that is included with this mod) -## - Variable {LANG} that corresponds to current language. Can be -## used to create truly multi-lingual templates (you can use this -## in urls: "images/lang_{LANG}/icon_blah.gif"). -## - Variable {PHP} that corresponds to file extension with session -## data. Can be used to avoid modding when you need to add some -## url (like "somescript.{PHP}" or "script.{PHP}test=1") -## Variable contains "?" or "&" at the end so you could easily -## add arguments to url. -## - Variable {TEMPLATE} that corresponds to current template -## directory (like "templates/subSilver/"). Can be used to avoid -## filenames case confusion and to fix phpBB path error when -## confirm_body.tpl and message_body.tpl are used in acp. -## - In admin control panel you can switch all users from one style -## to another and easily change default style. -## New Features in 2.0: -## - Faster template compilation -## - Mod has its own interface independant from current style -## - Mod completely replaces phpBB styles management -## - Cache management -## - Import/Export styles -## - Clone templates and styles -## - Better install/uninstall for styles -## - Templates editor. Can also edit text files and .htaccess -## - Tokens IF, ELSEIF, ELSE, ENDIF, DEFINE, UNDEFINE -## New Features in 2.1: -## - Built-in support for Category Hierarchy mod 2.1.x -## - Style configuration (applies only to complex configurable styles) -## New Features in 2.2: -## - Support for BEGINELSE command -## -## /*************************************************************************** -## * -## * 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 2 of the License, or -## * (at your option) any later version. -## * -## ***************************************************************************/ -## -############################################################## -## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD -############################################################## - -# -#-----[ COPY ]------------------------------------------ -# - -copy root/admin/admin_xs.php to admin/admin_xs.php -copy root/admin/xs_cache.php to admin/xs_cache.php -copy root/admin/xs_chmod.php to admin/xs_chmod.php -copy root/admin/xs_clone.php to admin/xs_clone.php -copy root/admin/xs_config.php to admin/xs_config.php -copy root/admin/xs_download.php to admin/xs_download.php -copy root/admin/xs_edit.php to admin/xs_edit.php -copy root/admin/xs_edit_data.php to admin/xs_edit_data.php -copy root/admin/xs_export.php to admin/xs_export.php -copy root/admin/xs_export_data.php to admin/xs_export_data.php -copy root/admin/xs_frame_top.php to admin/xs_frame_top.php -copy root/admin/xs_frameset.php to admin/xs_frameset.php -copy root/admin/xs_import.php to admin/xs_import.php -copy root/admin/xs_include.php to admin/xs_include.php -copy root/admin/xs_include_import.php to admin/xs_include_import.php -copy root/admin/xs_include_import2.php to admin/xs_include_import2.php -copy root/admin/xs_index.php to admin/xs_index.php -copy root/admin/xs_install.php to admin/xs_install.php -copy root/admin/xs_style_config.php to admin/xs_style_config.php -copy root/admin/xs_styles.php to admin/xs_styles.php -copy root/admin/xs_uninstall.php to admin/xs_uninstall.php -copy root/admin/xs_update.php to admin/xs_update.php -copy root/admin/xs_main.cfg to admin/xs_main.cfg -copy root/includes/template.php to includes/template.php -copy root/language/lang_english/lang_xs.php to language/lang_english/lang_xs.php -copy root/xs_mod/formIE.css to xs_mod/formIE.css -copy root/xs_mod/images/button.gif to xs_mod/images/button.gif -copy root/xs_mod/images/cellpic1.gif to xs_mod/images/cellpic1.gif -copy root/xs_mod/images/cellpic2.jpg to xs_mod/images/cellpic2.jpg -copy root/xs_mod/images/cellpic3.gif to xs_mod/images/cellpic3.gif -copy root/xs_mod/images/cellpic4.gif to xs_mod/images/cellpic4.gif -copy root/xs_mod/images/dot.gif to xs_mod/images/dot.gif -copy root/xs_mod/images/spacer.gif to xs_mod/images/spacer.gif -copy root/xs_mod/images/top_bg.gif to xs_mod/images/top_bg.gif -copy root/xs_mod/images/top_bg2.gif to xs_mod/images/top_bg2.gif -copy root/xs_mod/images/top_logo.jpg to xs_mod/images/top_logo.jpg -copy root/xs_mod/style.css to xs_mod/style.css -copy root/xs_mod/tpl/cache.tpl to xs_mod/tpl/cache.tpl -copy root/xs_mod/tpl/clone.tpl to xs_mod/tpl/clone.tpl -copy root/xs_mod/tpl/clone2.tpl to xs_mod/tpl/clone2.tpl -copy root/xs_mod/tpl/config.tpl to xs_mod/tpl/config.tpl -copy root/xs_mod/tpl/downloads.tpl to xs_mod/tpl/downloads.tpl -copy root/xs_mod/tpl/edit.tpl to xs_mod/tpl/edit.tpl -copy root/xs_mod/tpl/edit_data.tpl to xs_mod/tpl/edit_data.tpl -copy root/xs_mod/tpl/edit_data_list.tpl to xs_mod/tpl/edit_data_list.tpl -copy root/xs_mod/tpl/edit_file.tpl to xs_mod/tpl/edit_file.tpl -copy root/xs_mod/tpl/export.tpl to xs_mod/tpl/export.tpl -copy root/xs_mod/tpl/export2.tpl to xs_mod/tpl/export2.tpl -copy root/xs_mod/tpl/export_data.tpl to xs_mod/tpl/export_data.tpl -copy root/xs_mod/tpl/export_data2.tpl to xs_mod/tpl/export_data2.tpl -copy root/xs_mod/tpl/frame_top.tpl to xs_mod/tpl/frame_top.tpl -copy root/xs_mod/tpl/frameset.tpl to xs_mod/tpl/frameset.tpl -copy root/xs_mod/tpl/ftp.tpl to xs_mod/tpl/ftp.tpl -copy root/xs_mod/tpl/import.tpl to xs_mod/tpl/import.tpl -copy root/xs_mod/tpl/import2.tpl to xs_mod/tpl/import2.tpl -copy root/xs_mod/tpl/index.tpl to xs_mod/tpl/index.tpl -copy root/xs_mod/tpl/install.tpl to xs_mod/tpl/install.tpl -copy root/xs_mod/tpl/message.tpl to xs_mod/tpl/message.tpl -copy root/xs_mod/tpl/style_config.tpl to xs_mod/tpl/style_config.tpl -copy root/xs_mod/tpl/styles.tpl to xs_mod/tpl/styles.tpl -copy root/xs_mod/tpl/uninstall.tpl to xs_mod/tpl/uninstall.tpl -copy root/xs_mod/tpl/update.tpl to xs_mod/tpl/update.tpl -copy root/xs_mod/tpl/update2.tpl to xs_mod/tpl/update2.tpl -copy root/xs_mod/tpl/xs_footer.tpl to xs_mod/tpl/xs_footer.tpl -copy root/xs_mod/tpl/xs_header.tpl to xs_mod/tpl/xs_header.tpl - -# -#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ -# -# EoM \ No newline at end of file diff --git a/phpBB2/language/index.htm b/phpBB2/language/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2/language/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2/language/lang_english/email/admin_activate.tpl b/phpBB2/language/lang_english/email/admin_activate.tpl deleted file mode 100644 index ea0af53..0000000 --- a/phpBB2/language/lang_english/email/admin_activate.tpl +++ /dev/null @@ -1,10 +0,0 @@ -Subject: New user account -Charset: iso-8859-1 - -Hello, - -The account owned by "{USERNAME}" has been deactivated or newly created, you should check the details of this user (if required) and activate it using the following link: - -{U_ACTIVATE} - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2/language/lang_english/email/admin_send_email.tpl b/phpBB2/language/lang_english/email/admin_send_email.tpl deleted file mode 100644 index 234f61d..0000000 --- a/phpBB2/language/lang_english/email/admin_send_email.tpl +++ /dev/null @@ -1,12 +0,0 @@ -Charset: iso-8859-1 - -The following is an email sent to you by an administrator of "{SITENAME}". If this message is spam, contains abusive or other comments you find offensive please contact the webmaster of the board at the following address: - -{BOARD_EMAIL} - -Include this full email (particularly the headers). - -Message sent to you follows: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -{MESSAGE} diff --git a/phpBB2/language/lang_english/email/admin_welcome_activated.tpl b/phpBB2/language/lang_english/email/admin_welcome_activated.tpl deleted file mode 100644 index 3b7aa48..0000000 --- a/phpBB2/language/lang_english/email/admin_welcome_activated.tpl +++ /dev/null @@ -1,8 +0,0 @@ -Subject: Account Activated -Charset: iso-8859-1 - -Hello {USERNAME}, - -Your account on "{SITENAME}" has now been activated, you may login using the username and password you received in a previous email. - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2/language/lang_english/email/admin_welcome_inactive.tpl b/phpBB2/language/lang_english/email/admin_welcome_inactive.tpl deleted file mode 100644 index 905e716..0000000 --- a/phpBB2/language/lang_english/email/admin_welcome_inactive.tpl +++ /dev/null @@ -1,19 +0,0 @@ -Subject: Welcome to {SITENAME} Forums -Charset: iso-8859-1 - -{WELCOME_MSG} - -Please keep this email for your records. Your account information is as follows: - ----------------------------- -Username: {USERNAME} -Password: {PASSWORD} ----------------------------- - -Your account is currently inactive, the administrator of the board will need to activate it before you can log in. You will receive another email when this has occured. - -Please do not forget your password as it has been encrypted in our database and we cannot retrieve it for you. However, should you forget your password you can request a new one which will be activated in the same way as this account. - -Thank you for registering. - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2/language/lang_english/email/coppa_welcome_inactive.tpl b/phpBB2/language/lang_english/email/coppa_welcome_inactive.tpl deleted file mode 100644 index 5d9b250..0000000 --- a/phpBB2/language/lang_english/email/coppa_welcome_inactive.tpl +++ /dev/null @@ -1,53 +0,0 @@ -Subject: Welcome to {SITENAME} Forums -Charset: iso-8859-1 - -{WELCOME_MSG} - -In compliance with the COPPA act your account is currently inactive. - -Please print this message out and have your parent or guardian sign and date it. Then fax it to: - -{FAX_INFO} - -OR mail it to: - -{MAIL_INFO} - ------------------------------- CUT HERE ------------------------------ -Permission to Participate at {SITENAME} - -Username: {USERNAME} -Password: {PASSWORD} -Email: {EMAIL_ADDRESS} - -ICQ Number: {ICQ} -AIM Address: {AIM} -MSN Messenger: {MSN} -Yahoo Messenger: {YIM} -Web Site: {WEB_SITE} -From: {FROM} -Occupation: {OCC} -Interests: {INTERESTS} - -I HAVE REVIEWED THE INFORMATION PROVIDED BY MY CHILD AND HEREBY GRANT PERMISSION TO {SITENAME} TO STORE THIS INFORMATION. -I UNDERSTAND THIS INFORMATION CAN BE CHANGED AT ANY TIME BY ENTERING A PASSWORD. -I UNDERSTAND THAT I MAY REQUEST FOR THIS INFORMATION TO BE REMOVED FROM {SITENAME} AT ANY TIME. - - -Parent or Guardian -(print your name here): _____________________ - -(sign here): __________________ - -Date: _______________ - ------------------------------- CUT HERE ------------------------------ - - -Once the administrator has received the above form via fax or regular mail your account will be activated. - -Please do not forget your password as it has been encrypted in our database and we cannot retrieve it for you. However, should you forget your password you can request a new one which will be activated in the same way as this account. - -Thank you for registering. - -{EMAIL_SIG} diff --git a/phpBB2/language/lang_english/email/group_added.tpl b/phpBB2/language/lang_english/email/group_added.tpl deleted file mode 100644 index 5707da9..0000000 --- a/phpBB2/language/lang_english/email/group_added.tpl +++ /dev/null @@ -1,12 +0,0 @@ -Subject: You have been added to this usergroup -Charset: iso-8859-1 - -Congratulations, - -You have been added to the "{GROUP_NAME}" group on {SITENAME}. -This action was done by the group moderator or the site administrator, contact them for more information. - -You can view your groups information here: -{U_GROUPCP} - -{EMAIL_SIG} diff --git a/phpBB2/language/lang_english/email/group_approved.tpl b/phpBB2/language/lang_english/email/group_approved.tpl deleted file mode 100644 index 38773c5..0000000 --- a/phpBB2/language/lang_english/email/group_approved.tpl +++ /dev/null @@ -1,11 +0,0 @@ -Subject: Your request has been approved -Charset: iso-8859-1 - -Congratulations, - -Your request to join the "{GROUP_NAME}" group on {SITENAME} has been approved. -Click on the following link to see your group membership. - -{U_GROUPCP} - -{EMAIL_SIG} diff --git a/phpBB2/language/lang_english/email/group_request.tpl b/phpBB2/language/lang_english/email/group_request.tpl deleted file mode 100644 index 4b0d129..0000000 --- a/phpBB2/language/lang_english/email/group_request.tpl +++ /dev/null @@ -1,11 +0,0 @@ -Subject: A request to join your group has been made -Charset: iso-8859-1 - -Dear {GROUP_MODERATOR}, - -A user has requested to join a group you moderate on {SITENAME}. -To approve or deny this request for group membership please visit the following link: - -{U_GROUPCP} - -{EMAIL_SIG} diff --git a/phpBB2/language/lang_english/email/index.htm b/phpBB2/language/lang_english/email/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2/language/lang_english/email/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2/language/lang_english/email/privmsg_notify.tpl b/phpBB2/language/lang_english/email/privmsg_notify.tpl deleted file mode 100644 index 2a96ee8..0000000 --- a/phpBB2/language/lang_english/email/privmsg_notify.tpl +++ /dev/null @@ -1,12 +0,0 @@ -Subject: New Private Message has arrived -Charset: iso-8859-1 - -Hello {USERNAME}, - -You have received a new private message to your account on "{SITENAME}" and you have requested that you be notified on this event. You can view your new message by clicking on the following link: - -{U_INBOX} - -Remember that you can always choose not to be notified of new messages by changing the appropriate setting in your profile. - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2/language/lang_english/email/profile_send_email.tpl b/phpBB2/language/lang_english/email/profile_send_email.tpl deleted file mode 100644 index 00dcde1..0000000 --- a/phpBB2/language/lang_english/email/profile_send_email.tpl +++ /dev/null @@ -1,14 +0,0 @@ -Charset: iso-8859-1 - -Hello {TO_USERNAME}, - -The following is an email sent to you by {FROM_USERNAME} via your account on {SITENAME}. If this message is spam, contains abusive or other comments you find offensive please contact the webmaster of the board at the following address: - -{BOARD_EMAIL} - -Include this full email (particularly the headers). Please note that the reply address to this email has been set to that of {FROM_USERNAME}. - -Message sent to you follows -~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -{MESSAGE} diff --git a/phpBB2/language/lang_english/email/topic_notify.tpl b/phpBB2/language/lang_english/email/topic_notify.tpl deleted file mode 100644 index 574f955..0000000 --- a/phpBB2/language/lang_english/email/topic_notify.tpl +++ /dev/null @@ -1,14 +0,0 @@ -Subject: Topic Reply Notification - {TOPIC_TITLE} -Charset: iso-8859-1 - -Hello, - -You are receiving this email because you are watching the topic, "{TOPIC_TITLE}" at {SITENAME}. This topic has received a reply since your last visit. You can use the following link to view the replies made, no more notifications will be sent until you visit the topic. - -{U_TOPIC} - -If you no longer wish to watch this topic you can either click the "Stop watching this topic link" found at the bottom of the topic above, or by clicking the following link: - -{U_STOP_WATCHING_TOPIC} - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2/language/lang_english/email/user_activate.tpl b/phpBB2/language/lang_english/email/user_activate.tpl deleted file mode 100644 index 0adeb5b..0000000 --- a/phpBB2/language/lang_english/email/user_activate.tpl +++ /dev/null @@ -1,10 +0,0 @@ -Subject: Reactivate your account -Charset: iso-8859-1 - -Hello {USERNAME}, - -Your account on "{SITENAME}" has been deactivated, most likely due to changes made to your profile. In order to reactivate your account you must click on the link below: - -{U_ACTIVATE} - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2/language/lang_english/email/user_activate_passwd.tpl b/phpBB2/language/lang_english/email/user_activate_passwd.tpl deleted file mode 100644 index 0c2adc8..0000000 --- a/phpBB2/language/lang_english/email/user_activate_passwd.tpl +++ /dev/null @@ -1,18 +0,0 @@ -Subject: New password activation -Charset: iso-8859-1 - -Hello {USERNAME} - -You are receiving this email because you have (or someone pretending to be you has) requested a new password be sent for your account on {SITENAME}. If you did not request this email then please ignore it, if you keep receiving it please contact the board administrator. - -To use the new password you need to activate it. To do this click the link provided below. - -{U_ACTIVATE} - -If successful you will be able to login using the following password: - -Password: {PASSWORD} - -You can of course change this password yourself via the profile page. If you have any difficulties please contact the board administrator. - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2/language/lang_english/email/user_welcome.tpl b/phpBB2/language/lang_english/email/user_welcome.tpl deleted file mode 100644 index 42dc56d..0000000 --- a/phpBB2/language/lang_english/email/user_welcome.tpl +++ /dev/null @@ -1,17 +0,0 @@ -Subject: Welcome to {SITENAME} Forums -Charset: iso-8859-1 - -{WELCOME_MSG} - -Please keep this email for your records. Your account information is as follows: - ----------------------------- -Username: {USERNAME} -Password: {PASSWORD} ----------------------------- - -Please do not forget your password as it has been encrypted in our database and we cannot retrieve it for you. However, should you forget your password you can request a new one which will be activated in the same way as this account. - -Thank you for registering. - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2/language/lang_english/email/user_welcome_inactive.tpl b/phpBB2/language/lang_english/email/user_welcome_inactive.tpl deleted file mode 100644 index 6ece2d4..0000000 --- a/phpBB2/language/lang_english/email/user_welcome_inactive.tpl +++ /dev/null @@ -1,21 +0,0 @@ -Subject: Welcome to {SITENAME} Forums -Charset: iso-8859-1 - -{WELCOME_MSG} - -Please keep this email for your records. Your account information is as follows: - ----------------------------- -Username: {USERNAME} -Password: {PASSWORD} ----------------------------- - -Your account is currently inactive. You cannot use it until you visit the following link: - -{U_ACTIVATE} - -Please do not forget your password as it has been encrypted in our database and we cannot retrieve it for you. However, should you forget your password you can request a new one which will be activated in the same way as this account. - -Thank you for registering. - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2/language/lang_english/index.htm b/phpBB2/language/lang_english/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2/language/lang_english/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2/language/lang_english/lang_admin.php b/phpBB2/language/lang_english/lang_admin.php deleted file mode 100644 index affe972..0000000 --- a/phpBB2/language/lang_english/lang_admin.php +++ /dev/null @@ -1,811 +0,0 @@ -Admin Index link in the left pane. To return to the index of your board, click the phpBB logo also in the left pane. The other links on the left hand side of this screen will allow you to control every aspect of your forum experience. Each screen will have instructions on how to use the tools.'; -$lang['Main_index'] = 'Forum Index'; -$lang['Forum_stats'] = 'Forum Statistics'; -$lang['Admin_Index'] = 'Admin Index'; -$lang['Preview_forum'] = 'Preview Forum'; - -$lang['Click_return_admin_index'] = 'Click %sHere%s to return to the Admin Index'; - -$lang['Statistic'] = 'Statistic'; -$lang['Value'] = 'Value'; -$lang['Number_posts'] = 'Number of posts'; -$lang['Posts_per_day'] = 'Posts per day'; -$lang['Number_topics'] = 'Number of topics'; -$lang['Topics_per_day'] = 'Topics per day'; -$lang['Number_users'] = 'Number of users'; -$lang['Users_per_day'] = 'Users per day'; -$lang['Board_started'] = 'Board started'; -$lang['Avatar_dir_size'] = 'Avatar directory size'; -$lang['Database_size'] = 'Database size'; -$lang['Gzip_compression'] ='Gzip compression'; -$lang['Not_available'] = 'Not available'; - -$lang['ON'] = 'ON'; // This is for GZip compression -$lang['OFF'] = 'OFF'; - - -// -// DB Utils -// -$lang['Database_Utilities'] = 'Database Utilities'; - -$lang['Restore'] = 'Restore'; -$lang['Backup'] = 'Backup'; -$lang['Restore_explain'] = 'This will perform a full restore of all phpBB tables from a saved file. If your server supports it, you may upload a gzip-compressed text file and it will automatically be decompressed. WARNING: This will overwrite any existing data. The restore may take a long time to process, so please do not move from this page until it is complete.'; -$lang['Backup_explain'] = 'Here you can back up all your phpBB-related data. If you have any additional custom tables in the same database with phpBB that you would like to back up as well, please enter their names, separated by commas, in the Additional Tables textbox below. If your server supports it you may also gzip-compress the file to reduce its size before download.'; - -$lang['Backup_options'] = 'Backup options'; -$lang['Start_backup'] = 'Start Backup'; -$lang['Full_backup'] = 'Full backup'; -$lang['Structure_backup'] = 'Structure-Only backup'; -$lang['Data_backup'] = 'Data only backup'; -$lang['Additional_tables'] = 'Additional tables'; -$lang['Gzip_compress'] = 'Gzip compress file'; -$lang['Select_file'] = 'Select a file'; -$lang['Start_Restore'] = 'Start Restore'; - -$lang['Restore_success'] = 'The Database has been successfully restored.

Your board should be back to the state it was when the backup was made.'; -$lang['Backup_download'] = 'Your download will start shortly; please wait until it begins.'; -$lang['Backups_not_supported'] = 'Sorry, but database backups are not currently supported for your database system.'; - -$lang['Restore_Error_uploading'] = 'Error in uploading the backup file'; -$lang['Restore_Error_filename'] = 'Filename problem; please try an alternative file'; -$lang['Restore_Error_decompress'] = 'Cannot decompress a gzip file; please upload a plain text version'; -$lang['Restore_Error_no_file'] = 'No file was uploaded'; - - -// -// Auth pages -// -$lang['Select_a_User'] = 'Select a User'; -$lang['Select_a_Group'] = 'Select a Group'; -$lang['Select_a_Forum'] = 'Select a Forum'; -$lang['Auth_Control_User'] = 'User Permissions Control'; -$lang['Auth_Control_Group'] = 'Group Permissions Control'; -$lang['Auth_Control_Forum'] = 'Forum Permissions Control'; -$lang['Look_up_User'] = 'Look up User'; -$lang['Look_up_Group'] = 'Look up Group'; -$lang['Look_up_Forum'] = 'Look up Forum'; - -$lang['Group_auth_explain'] = 'Here you can alter the permissions and moderator status assigned to each user group. Do not forget when changing group permissions that individual user permissions may still allow the user entry to forums, etc. You will be warned if this is the case.'; -$lang['User_auth_explain'] = 'Here you can alter the permissions and moderator status assigned to each individual user. Do not forget when changing user permissions that group permissions may still allow the user entry to forums, etc. You will be warned if this is the case.'; -$lang['Forum_auth_explain'] = 'Here you can alter the authorisation levels of each forum. You will have both a simple and advanced method for doing this, where advanced offers greater control of each forum operation. Remember that changing the permission level of forums will affect which users can carry out the various operations within them.'; - -$lang['Simple_mode'] = 'Simple Mode'; -$lang['Advanced_mode'] = 'Advanced Mode'; -$lang['Moderator_status'] = 'Moderator status'; - -$lang['Allowed_Access'] = 'Allowed Access'; -$lang['Disallowed_Access'] = 'Disallowed Access'; -$lang['Is_Moderator'] = 'Is Moderator'; -$lang['Not_Moderator'] = 'Not Moderator'; - -$lang['Conflict_warning'] = 'Authorisation Conflict Warning'; -$lang['Conflict_access_userauth'] = 'This user still has access rights to this forum via group membership. You may want to alter the group permissions or remove this user the group to fully prevent them having access rights. The groups granting rights (and the forums involved) are noted below.'; -$lang['Conflict_mod_userauth'] = 'This user still has moderator rights to this forum via group membership. You may want to alter the group permissions or remove this user the group to fully prevent them having moderator rights. The groups granting rights (and the forums involved) are noted below.'; - -$lang['Conflict_access_groupauth'] = 'The following user (or users) still have access rights to this forum via their user permission settings. You may want to alter the user permissions to fully prevent them having access rights. The users granted rights (and the forums involved) are noted below.'; -$lang['Conflict_mod_groupauth'] = 'The following user (or users) still have moderator rights to this forum via their user permissions settings. You may want to alter the user permissions to fully prevent them having moderator rights. The users granted rights (and the forums involved) are noted below.'; - -$lang['Public'] = 'Public'; -$lang['Private'] = 'Private'; -$lang['Registered'] = 'Registered'; -$lang['Administrators'] = 'Administrators'; -$lang['Hidden'] = 'Hidden'; - -// These are displayed in the drop down boxes for advanced -// mode forum auth, try and keep them short! -$lang['Forum_ALL'] = 'ALL'; -$lang['Forum_REG'] = 'REG'; -$lang['Forum_PRIVATE'] = 'PRIVATE'; -$lang['Forum_MOD'] = 'MOD'; -$lang['Forum_ADMIN'] = 'ADMIN'; - -$lang['View'] = 'View'; -$lang['Read'] = 'Read'; -$lang['Post'] = 'Post'; -$lang['Reply'] = 'Reply'; -$lang['Edit'] = 'Edit'; -$lang['Delete'] = 'Delete'; -$lang['Sticky'] = 'Sticky'; -$lang['Announce'] = 'Announce'; -$lang['Vote'] = 'Vote'; -$lang['Pollcreate'] = 'Poll create'; - -$lang['Permissions'] = 'Permissions'; -$lang['Simple_Permission'] = 'Simple Permissions'; - -$lang['User_Level'] = 'User Level'; -$lang['Auth_User'] = 'User'; -$lang['Auth_Admin'] = 'Administrator'; -$lang['Group_memberships'] = 'Usergroup memberships'; -$lang['Usergroup_members'] = 'This group has the following members'; - -$lang['Forum_auth_updated'] = 'Forum permissions updated'; -$lang['User_auth_updated'] = 'User permissions updated'; -$lang['Group_auth_updated'] = 'Group permissions updated'; - -$lang['Auth_updated'] = 'Permissions have been updated'; -$lang['Click_return_userauth'] = 'Click %sHere%s to return to User Permissions'; -$lang['Click_return_groupauth'] = 'Click %sHere%s to return to Group Permissions'; -$lang['Click_return_forumauth'] = 'Click %sHere%s to return to Forum Permissions'; - - -// -// Banning -// -$lang['Ban_control'] = 'Ban Control'; -$lang['Ban_explain'] = 'Here you can control the banning of users. You can achieve this by banning either or both of a specific user or an individual or range of IP addresses or hostnames. These methods prevent a user from even reaching the index page of your board. To prevent a user from registering under a different username you can also specify a banned email address. Please note that banning an email address alone will not prevent that user from being able to log on or post to your board. You should use one of the first two methods to achieve this.'; -$lang['Ban_explain_warn'] = 'Please note that entering a range of IP addresses results in all the addresses between the start and end being added to the banlist. Attempts will be made to minimise the number of addresses added to the database by introducing wildcards automatically where appropriate. If you really must enter a range, try to keep it small or better yet state specific addresses.'; - -$lang['Select_username'] = 'Select a Username'; -$lang['Select_ip'] = 'Select an IP address'; -$lang['Select_email'] = 'Select an Email address'; - -$lang['Ban_username'] = 'Ban one or more specific users'; -$lang['Ban_username_explain'] = 'You can ban multiple users in one go using the appropriate combination of mouse and keyboard for your computer and browser'; - -$lang['Ban_IP'] = 'Ban one or more IP addresses or hostnames'; -$lang['IP_hostname'] = 'IP addresses or hostnames'; -$lang['Ban_IP_explain'] = 'To specify several different IP addresses or hostnames separate them with commas. To specify a range of IP addresses, separate the start and end with a hyphen (-); to specify a wildcard, use an asterisk (*).'; - -$lang['Ban_email'] = 'Ban one or more email addresses'; -$lang['Ban_email_explain'] = 'To specify more than one email address, separate them with commas. To specify a wildcard username, use * like *@hotmail.com'; - -$lang['Unban_username'] = 'Un-ban one more specific users'; -$lang['Unban_username_explain'] = 'You can unban multiple users in one go using the appropriate combination of mouse and keyboard for your computer and browser'; - -$lang['Unban_IP'] = 'Un-ban one or more IP addresses'; -$lang['Unban_IP_explain'] = 'You can unban multiple IP addresses in one go using the appropriate combination of mouse and keyboard for your computer and browser'; - -$lang['Unban_email'] = 'Un-ban one or more email addresses'; -$lang['Unban_email_explain'] = 'You can unban multiple email addresses in one go using the appropriate combination of mouse and keyboard for your computer and browser'; - -$lang['No_banned_users'] = 'No banned usernames'; -$lang['No_banned_ip'] = 'No banned IP addresses'; -$lang['No_banned_email'] = 'No banned email addresses'; - -$lang['Ban_update_sucessful'] = 'The banlist has been updated successfully'; -$lang['Click_return_banadmin'] = 'Click %sHere%s to return to Ban Control'; - - -// -// Configuration -// -$lang['General_Config'] = 'General Configuration'; -$lang['Config_explain'] = 'The form below will allow you to customize all the general board options. For User and Forum configurations use the related links on the left hand side.'; - -$lang['Click_return_config'] = 'Click %sHere%s to return to General Configuration'; - -$lang['General_settings'] = 'General Board Settings'; -$lang['Server_name'] = 'Domain Name'; -$lang['Server_name_explain'] = 'The domain name from which this board runs'; -$lang['Script_path'] = 'Script path'; -$lang['Script_path_explain'] = 'The path where phpBB2 is located relative to the domain name'; -$lang['Server_port'] = 'Server Port'; -$lang['Server_port_explain'] = 'The port your server is running on, usually 80. Only change if different'; -$lang['Site_name'] = 'Site name'; -$lang['Site_desc'] = 'Site description'; -$lang['Board_disable'] = 'Disable board'; -$lang['Board_disable_explain'] = 'This will make the board unavailable to users. Administrators are able to access the Administration Panel while the board is disabled.'; -$lang['Acct_activation'] = 'Enable account activation'; -$lang['Acc_None'] = 'None'; // These three entries are the type of activation -$lang['Acc_User'] = 'User'; -$lang['Acc_Admin'] = 'Admin'; - -$lang['Abilities_settings'] = 'User and Forum Basic Settings'; -$lang['Max_poll_options'] = 'Max number of poll options'; -$lang['Flood_Interval'] = 'Flood Interval'; -$lang['Flood_Interval_explain'] = 'Number of seconds a user must wait between posts'; -$lang['Board_email_form'] = 'User email via board'; -$lang['Board_email_form_explain'] = 'Users send email to each other via this board'; -$lang['Topics_per_page'] = 'Topics Per Page'; -$lang['Posts_per_page'] = 'Posts Per Page'; -$lang['Hot_threshold'] = 'Posts for Popular Threshold'; -$lang['Default_style'] = 'Default Style'; -$lang['Override_style'] = 'Override user style'; -$lang['Override_style_explain'] = 'Replaces users style with the default'; -$lang['Default_language'] = 'Default Language'; -$lang['Date_format'] = 'Date Format'; -$lang['System_timezone'] = 'System Timezone'; -$lang['Enable_gzip'] = 'Enable GZip Compression'; -$lang['Enable_prune'] = 'Enable Forum Pruning'; -$lang['Allow_HTML'] = 'Allow HTML'; -$lang['Allow_BBCode'] = 'Allow BBCode'; -$lang['Allowed_tags'] = 'Allowed HTML tags'; -$lang['Allowed_tags_explain'] = 'Separate tags with commas'; -$lang['Allow_smilies'] = 'Allow Smilies'; -$lang['Smilies_path'] = 'Smilies Storage Path'; -$lang['Smilies_path_explain'] = 'Path under your phpBB root dir, e.g. images/smiles'; -$lang['Allow_sig'] = 'Allow Signatures'; -$lang['Max_sig_length'] = 'Maximum signature length'; -$lang['Max_sig_length_explain'] = 'Maximum number of characters in user signatures'; -$lang['Allow_name_change'] = 'Allow Username changes'; - -$lang['Avatar_settings'] = 'Avatar Settings'; -$lang['Allow_local'] = 'Enable gallery avatars'; -$lang['Allow_remote'] = 'Enable remote avatars'; -$lang['Allow_remote_explain'] = 'Avatars linked to from another website'; -$lang['Allow_upload'] = 'Enable avatar uploading'; -$lang['Max_filesize'] = 'Maximum Avatar File Size'; -$lang['Max_filesize_explain'] = 'For uploaded avatar files'; -$lang['Max_avatar_size'] = 'Maximum Avatar Dimensions'; -$lang['Max_avatar_size_explain'] = '(Height x Width in pixels)'; -$lang['Avatar_storage_path'] = 'Avatar Storage Path'; -$lang['Avatar_storage_path_explain'] = 'Path under your phpBB root dir, e.g. images/avatars'; -$lang['Avatar_gallery_path'] = 'Avatar Gallery Path'; -$lang['Avatar_gallery_path_explain'] = 'Path under your phpBB root dir for pre-loaded images, e.g. images/avatars/gallery'; - -$lang['COPPA_settings'] = 'COPPA Settings'; -$lang['COPPA_fax'] = 'COPPA Fax Number'; -$lang['COPPA_mail'] = 'COPPA Mailing Address'; -$lang['COPPA_mail_explain'] = 'This is the mailing address to which parents will send COPPA registration forms'; - -$lang['Email_settings'] = 'Email Settings'; -$lang['Admin_email'] = 'Admin Email Address'; -$lang['Email_sig'] = 'Email Signature'; -$lang['Email_sig_explain'] = 'This text will be attached to all emails the board sends'; -$lang['Use_SMTP'] = 'Use SMTP Server for email'; -$lang['Use_SMTP_explain'] = 'Say yes if you want or have to send email via a named server instead of the local mail function'; -$lang['SMTP_server'] = 'SMTP Server Address'; -$lang['SMTP_username'] = 'SMTP Username'; -$lang['SMTP_username_explain'] = 'Only enter a username if your SMTP server requires it'; -$lang['SMTP_password'] = 'SMTP Password'; -$lang['SMTP_password_explain'] = 'Only enter a password if your SMTP server requires it'; - -$lang['Disable_privmsg'] = 'Private Messaging'; -$lang['Inbox_limits'] = 'Max posts in Inbox'; -$lang['Sentbox_limits'] = 'Max posts in Sentbox'; -$lang['Savebox_limits'] = 'Max posts in Savebox'; - -$lang['Cookie_settings'] = 'Cookie settings'; -$lang['Cookie_settings_explain'] = 'These details define how cookies are sent to your users\' browsers. In most cases the default values for the cookie settings should be sufficient, but if you need to change them do so with care -- incorrect settings can prevent users from logging in'; -$lang['Cookie_domain'] = 'Cookie domain'; -$lang['Cookie_name'] = 'Cookie name'; -$lang['Cookie_path'] = 'Cookie path'; -$lang['Cookie_secure'] = 'Cookie secure'; -$lang['Cookie_secure_explain'] = 'If your server is running via SSL, set this to enabled, else leave as disabled'; -$lang['Session_length'] = 'Session length [ seconds ]'; - -// Visual Confirmation -$lang['Visual_confirm'] = 'Enable Visual Confirmation'; -$lang['Visual_confirm_explain'] = 'Requires users enter a code defined by an image when registering.'; - -// Autologin Keys - added 2.0.18 -$lang['Allow_autologin'] = 'Allow automatic logins'; -$lang['Allow_autologin_explain'] = 'Determines whether users are allowed to select to be automatically logged in when visiting the forum'; -$lang['Autologin_time'] = 'Automatic login key expiry'; -$lang['Autologin_time_explain'] = 'How long a autologin key is valid for in days if the user does not visit the board. Set to zero to disable expiry.'; - -// Search Flood Control - added 2.0.20 -$lang['Search_Flood_Interval'] = 'Search Flood Interval'; -$lang['Search_Flood_Interval_explain'] = 'Number of seconds a user must wait between search requests'; - -// -// Forum Management -// -$lang['Forum_admin'] = 'Forum Administration'; -$lang['Forum_admin_explain'] = 'From this panel you can add, delete, edit, re-order and re-synchronise categories and forums'; -$lang['Edit_forum'] = 'Edit forum'; -$lang['Create_forum'] = 'Create new forum'; -$lang['Create_category'] = 'Create new category'; -$lang['Remove'] = 'Remove'; -$lang['Action'] = 'Action'; -$lang['Update_order'] = 'Update Order'; -$lang['Config_updated'] = 'Forum Configuration Updated Successfully'; -$lang['Edit'] = 'Edit'; -$lang['Delete'] = 'Delete'; -$lang['Move_up'] = 'Move up'; -$lang['Move_down'] = 'Move down'; -$lang['Resync'] = 'Resync'; -$lang['No_mode'] = 'No mode was set'; -$lang['Forum_edit_delete_explain'] = 'The form below will allow you to customize all the general board options. For User and Forum configurations use the related links on the left hand side'; - -$lang['Move_contents'] = 'Move all contents'; -$lang['Forum_delete'] = 'Delete Forum'; -$lang['Forum_delete_explain'] = 'The form below will allow you to delete a forum (or category) and decide where you want to put all topics (or forums) it contained.'; - -$lang['Status_locked'] = 'Locked'; -$lang['Status_unlocked'] = 'Unlocked'; -$lang['Forum_settings'] = 'General Forum Settings'; -$lang['Forum_name'] = 'Forum name'; -$lang['Forum_desc'] = 'Description'; -$lang['Forum_status'] = 'Forum status'; -$lang['Forum_pruning'] = 'Auto-pruning'; - -$lang['prune_freq'] = 'Check for topic age every'; -$lang['prune_days'] = 'Remove topics that have not been posted to in'; -$lang['Set_prune_data'] = 'You have turned on auto-prune for this forum but did not set a frequency or number of days to prune. Please go back and do so.'; - -$lang['Move_and_Delete'] = 'Move and Delete'; - -$lang['Delete_all_posts'] = 'Delete all posts'; -$lang['Nowhere_to_move'] = 'Nowhere to move to'; - -$lang['Edit_Category'] = 'Edit Category'; -$lang['Edit_Category_explain'] = 'Use this form to modify a category\'s name.'; - -$lang['Forums_updated'] = 'Forum and Category information updated successfully'; - -$lang['Must_delete_forums'] = 'You need to delete all forums before you can delete this category'; - -$lang['Click_return_forumadmin'] = 'Click %sHere%s to return to Forum Administration'; - - -// -// Smiley Management -// -$lang['smiley_title'] = 'Smiles Editing Utility'; -$lang['smile_desc'] = 'From this page you can add, remove and edit the emoticons or smileys that your users can use in their posts and private messages.'; - -$lang['smiley_config'] = 'Smiley Configuration'; -$lang['smiley_code'] = 'Smiley Code'; -$lang['smiley_url'] = 'Smiley Image File'; -$lang['smiley_emot'] = 'Smiley Emotion'; -$lang['smile_add'] = 'Add a new Smiley'; -$lang['Smile'] = 'Smile'; -$lang['Emotion'] = 'Emotion'; - -$lang['Select_pak'] = 'Select Pack (.pak) File'; -$lang['replace_existing'] = 'Replace Existing Smiley'; -$lang['keep_existing'] = 'Keep Existing Smiley'; -$lang['smiley_import_inst'] = 'You should unzip the smiley package and upload all files to the appropriate Smiley directory for your installation. Then select the correct information in this form to import the smiley pack.'; -$lang['smiley_import'] = 'Smiley Pack Import'; -$lang['choose_smile_pak'] = 'Choose a Smile Pack .pak file'; -$lang['import'] = 'Import Smileys'; -$lang['smile_conflicts'] = 'What should be done in case of conflicts'; -$lang['del_existing_smileys'] = 'Delete existing smileys before import'; -$lang['import_smile_pack'] = 'Import Smiley Pack'; -$lang['export_smile_pack'] = 'Create Smiley Pack'; -$lang['export_smiles'] = 'To create a smiley pack from your currently installed smileys, click %sHere%s to download the smiles.pak file. Name this file appropriately making sure to keep the .pak file extension. Then create a zip file containing all of your smiley images plus this .pak configuration file.'; - -$lang['smiley_add_success'] = 'The Smiley was successfully added'; -$lang['smiley_edit_success'] = 'The Smiley was successfully updated'; -$lang['smiley_import_success'] = 'The Smiley Pack was imported successfully!'; -$lang['smiley_del_success'] = 'The Smiley was successfully removed'; -$lang['Click_return_smileadmin'] = 'Click %sHere%s to return to Smiley Administration'; - -$lang['Confirm_delete_smiley'] = 'Are you sure you want to delete this Smiley?'; - -// -// User Management -// -$lang['User_admin'] = 'User Administration'; -$lang['User_admin_explain'] = 'Here you can change your users\' information and certain options. To modify the users\' permissions, please use the user and group permissions system.'; - -$lang['Look_up_user'] = 'Look up user'; - -$lang['Admin_user_fail'] = 'Couldn\'t update the user\'s profile.'; -$lang['Admin_user_updated'] = 'The user\'s profile was successfully updated.'; -$lang['Click_return_useradmin'] = 'Click %sHere%s to return to User Administration'; - -$lang['User_delete'] = 'Delete this user'; -$lang['User_delete_explain'] = 'Click here to delete this user; this cannot be undone.'; -$lang['User_deleted'] = 'User was successfully deleted.'; - -$lang['User_status'] = 'User is active'; -$lang['User_allowpm'] = 'Can send Private Messages'; -$lang['User_allowavatar'] = 'Can display avatar'; - -$lang['Admin_avatar_explain'] = 'Here you can see and delete the user\'s current avatar.'; - -$lang['User_special'] = 'Special admin-only fields'; -$lang['User_special_explain'] = 'These fields are not able to be modified by the users. Here you can set their status and other options that are not given to users.'; - - -// -// Group Management -// -$lang['Group_administration'] = 'Group Administration'; -$lang['Group_admin_explain'] = 'From this panel you can administer all your usergroups. You can delete, create and edit existing groups. You may choose moderators, toggle open/closed group status and set the group name and description'; -$lang['Error_updating_groups'] = 'There was an error while updating the groups'; -$lang['Updated_group'] = 'The group was successfully updated'; -$lang['Added_new_group'] = 'The new group was successfully created'; -$lang['Deleted_group'] = 'The group was successfully deleted'; -$lang['New_group'] = 'Create new group'; -$lang['Edit_group'] = 'Edit group'; -$lang['group_name'] = 'Group name'; -$lang['group_description'] = 'Group description'; -$lang['group_moderator'] = 'Group moderator'; -$lang['group_status'] = 'Group status'; -$lang['group_open'] = 'Open group'; -$lang['group_closed'] = 'Closed group'; -$lang['group_hidden'] = 'Hidden group'; -$lang['group_delete'] = 'Delete group'; -$lang['group_delete_check'] = 'Delete this group'; -$lang['submit_group_changes'] = 'Submit Changes'; -$lang['reset_group_changes'] = 'Reset Changes'; -$lang['No_group_name'] = 'You must specify a name for this group'; -$lang['No_group_moderator'] = 'You must specify a moderator for this group'; -$lang['No_group_mode'] = 'You must specify a mode for this group, open or closed'; -$lang['No_group_action'] = 'No action was specified'; -$lang['delete_group_moderator'] = 'Delete the old group moderator?'; -$lang['delete_moderator_explain'] = 'If you\'re changing the group moderator, check this box to remove the old moderator from the group. Otherwise, do not check it, and the user will become a regular member of the group.'; -$lang['Click_return_groupsadmin'] = 'Click %sHere%s to return to Group Administration.'; -$lang['Select_group'] = 'Select a group'; -$lang['Look_up_group'] = 'Look up group'; - - -// -// Prune Administration -// -$lang['Forum_Prune'] = 'Forum Prune'; -$lang['Forum_Prune_explain'] = 'This will delete any topic which has not been posted to within the number of days you select. If you do not enter a number then all topics will be deleted. It will not remove topics in which polls are still running nor will it remove announcements. You will need to remove those topics manually.'; -$lang['Do_Prune'] = 'Do Prune'; -$lang['All_Forums'] = 'All Forums'; -$lang['Prune_topics_not_posted'] = 'Prune topics with no replies in this many days'; -$lang['Topics_pruned'] = 'Topics pruned'; -$lang['Posts_pruned'] = 'Posts pruned'; -$lang['Prune_success'] = 'Pruning of forums was successful'; - - -// -// Word censor -// -$lang['Words_title'] = 'Word Censoring'; -$lang['Words_explain'] = 'From this control panel you can add, edit, and remove words that will be automatically censored on your forums. In addition people will not be allowed to register with usernames containing these words. Wildcards (*) are accepted in the word field. For example, *test* will match detestable, test* would match testing, *test would match detest.'; -$lang['Word'] = 'Word'; -$lang['Edit_word_censor'] = 'Edit word censor'; -$lang['Replacement'] = 'Replacement'; -$lang['Add_new_word'] = 'Add new word'; -$lang['Update_word'] = 'Update word censor'; - -$lang['Must_enter_word'] = 'You must enter a word and its replacement'; -$lang['No_word_selected'] = 'No word selected for editing'; - -$lang['Word_updated'] = 'The selected word censor has been successfully updated'; -$lang['Word_added'] = 'The word censor has been successfully added'; -$lang['Word_removed'] = 'The selected word censor has been successfully removed'; - -$lang['Click_return_wordadmin'] = 'Click %sHere%s to return to Word Censor Administration'; - -$lang['Confirm_delete_word'] = 'Are you sure you want to delete this word censor?'; - - -// -// Mass Email -// -$lang['Mass_email_explain'] = 'Here you can email a message to either all of your users or all users of a specific group. To do this, an email will be sent out to the administrative email address supplied, with a blind carbon copy sent to all recipients. If you are emailing a large group of people please be patient after submitting and do not stop the page halfway through. It is normal for a mass emailing to take a long time and you will be notified when the script has completed'; -$lang['Compose'] = 'Compose'; - -$lang['Recipients'] = 'Recipients'; -$lang['All_users'] = 'All Users'; - -$lang['Email_successfull'] = 'Your message has been sent'; -$lang['Click_return_massemail'] = 'Click %sHere%s to return to the Mass Email form'; - - -// -// Ranks admin -// -$lang['Ranks_title'] = 'Rank Administration'; -$lang['Ranks_explain'] = 'Using this form you can add, edit, view and delete ranks. You can also create custom ranks which can be applied to a user via the user management facility'; - -$lang['Add_new_rank'] = 'Add new rank'; - -$lang['Rank_title'] = 'Rank Title'; -$lang['Rank_special'] = 'Set as Special Rank'; -$lang['Rank_minimum'] = 'Minimum Posts'; -$lang['Rank_maximum'] = 'Maximum Posts'; -$lang['Rank_image'] = 'Rank Image (Relative to phpBB2 root path)'; -$lang['Rank_image_explain'] = 'Use this to define a small image associated with the rank'; - -$lang['Must_select_rank'] = 'You must select a rank'; -$lang['No_assigned_rank'] = 'No special rank assigned'; - -$lang['Rank_updated'] = 'The rank was successfully updated'; -$lang['Rank_added'] = 'The rank was successfully added'; -$lang['Rank_removed'] = 'The rank was successfully deleted'; -$lang['No_update_ranks'] = 'The rank was successfully deleted. However, user accounts using this rank were not updated. You will need to manually reset the rank on these accounts'; - -$lang['Click_return_rankadmin'] = 'Click %sHere%s to return to Rank Administration'; - -$lang['Confirm_delete_rank'] = 'Are you sure you want to delete this rank?'; - -// -// Disallow Username Admin -// -$lang['Disallow_control'] = 'Username Disallow Control'; -$lang['Disallow_explain'] = 'Here you can control usernames which will not be allowed to be used. Disallowed usernames are allowed to contain a wildcard character of *. Please note that you will not be allowed to specify any username that has already been registered. You must first delete that name then disallow it.'; - -$lang['Delete_disallow'] = 'Delete'; -$lang['Delete_disallow_title'] = 'Remove a Disallowed Username'; -$lang['Delete_disallow_explain'] = 'You can remove a disallowed username by selecting the username from this list and clicking submit'; - -$lang['Add_disallow'] = 'Add'; -$lang['Add_disallow_title'] = 'Add a disallowed username'; -$lang['Add_disallow_explain'] = 'You can disallow a username using the wildcard character * to match any character'; - -$lang['No_disallowed'] = 'No Disallowed Usernames'; - -$lang['Disallowed_deleted'] = 'The disallowed username has been successfully removed'; -$lang['Disallow_successful'] = 'The disallowed username has been successfully added'; -$lang['Disallowed_already'] = 'The name you entered could not be disallowed. It either already exists in the list, exists in the word censor list, or a matching username is present.'; - -$lang['Click_return_disallowadmin'] = 'Click %sHere%s to return to Disallow Username Administration'; - - -// -// Styles Admin -// -$lang['Styles_admin'] = 'Styles Administration'; -$lang['Styles_explain'] = 'Using this facility you can add, remove and manage styles (templates and themes) available to your users'; -$lang['Styles_addnew_explain'] = 'The following list contains all the themes that are available for the templates you currently have. The items on this list have not yet been installed into the phpBB database. To install a theme, simply click the install link beside an entry.'; - -$lang['Select_template'] = 'Select a Template'; - -$lang['Style'] = 'Style'; -$lang['Template'] = 'Template'; -$lang['Install'] = 'Install'; -$lang['Download'] = 'Download'; - -$lang['Edit_theme'] = 'Edit Theme'; -$lang['Edit_theme_explain'] = 'In the form below you can edit the settings for the selected theme'; - -$lang['Create_theme'] = 'Create Theme'; -$lang['Create_theme_explain'] = 'Use the form below to create a new theme for a selected template. When entering colours (for which you should use hexadecimal notation) you must not include the initial #, i.e.. CCCCCC is valid, #CCCCCC is not'; - -$lang['Export_themes'] = 'Export Themes'; -$lang['Export_explain'] = 'In this panel you will be able to export the theme data for a selected template. Select the template from the list below and the script will create the theme configuration file and attempt to save it to the selected template directory. If it cannot save the file itself it will give you the option to download it. In order for the script to save the file you must give write access to the webserver for the selected template dir. For more information on this see the phpBB 2 users guide.'; - -$lang['Theme_installed'] = 'The selected theme has been installed successfully'; -$lang['Style_removed'] = 'The selected style has been removed from the database. To fully remove this style from your system you must delete the appropriate style from your templates directory.'; -$lang['Theme_info_saved'] = 'The theme information for the selected template has been saved. You should now return the permissions on the theme_info.cfg (and if applicable the selected template directory) to read-only'; -$lang['Theme_updated'] = 'The selected theme has been updated. You should now export the new theme settings'; -$lang['Theme_created'] = 'Theme created. You should now export the theme to the theme configuration file for safe keeping or use elsewhere'; - -$lang['Confirm_delete_style'] = 'Are you sure you want to delete this style?'; - -$lang['Download_theme_cfg'] = 'The exporter could not write the theme information file. Click the button below to download this file with your browser. Once you have downloaded it you can transfer it to the directory containing the template files. You can then package the files for distribution or use elsewhere if you desire'; -$lang['No_themes'] = 'The template you selected has no themes attached to it. To create a new theme click the Create New link on the left hand panel'; -$lang['No_template_dir'] = 'Could not open the template directory. It may be unreadable by the webserver or may not exist'; -$lang['Cannot_remove_style'] = 'You cannot remove the style selected since it is currently the forum default. Please change the default style and try again.'; -$lang['Style_exists'] = 'The style name to selected already exists, please go back and choose a different name.'; - -$lang['Click_return_styleadmin'] = 'Click %sHere%s to return to Style Administration'; - -$lang['Theme_settings'] = 'Theme Settings'; -$lang['Theme_element'] = 'Theme Element'; -$lang['Simple_name'] = 'Simple Name'; -$lang['Value'] = 'Value'; -$lang['Save_Settings'] = 'Save Settings'; - -$lang['Stylesheet'] = 'CSS Stylesheet'; -$lang['Stylesheet_explain'] = 'Filename for CSS stylesheet to use for this theme.'; -$lang['Background_image'] = 'Background Image'; -$lang['Background_color'] = 'Background Colour'; -$lang['Theme_name'] = 'Theme Name'; -$lang['Link_color'] = 'Link Colour'; -$lang['Text_color'] = 'Text Colour'; -$lang['VLink_color'] = 'Visited Link Colour'; -$lang['ALink_color'] = 'Active Link Colour'; -$lang['HLink_color'] = 'Hover Link Colour'; -$lang['Tr_color1'] = 'Table Row Colour 1'; -$lang['Tr_color2'] = 'Table Row Colour 2'; -$lang['Tr_color3'] = 'Table Row Colour 3'; -$lang['Tr_class1'] = 'Table Row Class 1'; -$lang['Tr_class2'] = 'Table Row Class 2'; -$lang['Tr_class3'] = 'Table Row Class 3'; -$lang['Th_color1'] = 'Table Header Colour 1'; -$lang['Th_color2'] = 'Table Header Colour 2'; -$lang['Th_color3'] = 'Table Header Colour 3'; -$lang['Th_class1'] = 'Table Header Class 1'; -$lang['Th_class2'] = 'Table Header Class 2'; -$lang['Th_class3'] = 'Table Header Class 3'; -$lang['Td_color1'] = 'Table Cell Colour 1'; -$lang['Td_color2'] = 'Table Cell Colour 2'; -$lang['Td_color3'] = 'Table Cell Colour 3'; -$lang['Td_class1'] = 'Table Cell Class 1'; -$lang['Td_class2'] = 'Table Cell Class 2'; -$lang['Td_class3'] = 'Table Cell Class 3'; -$lang['fontface1'] = 'Font Face 1'; -$lang['fontface2'] = 'Font Face 2'; -$lang['fontface3'] = 'Font Face 3'; -$lang['fontsize1'] = 'Font Size 1'; -$lang['fontsize2'] = 'Font Size 2'; -$lang['fontsize3'] = 'Font Size 3'; -$lang['fontcolor1'] = 'Font Colour 1'; -$lang['fontcolor2'] = 'Font Colour 2'; -$lang['fontcolor3'] = 'Font Colour 3'; -$lang['span_class1'] = 'Span Class 1'; -$lang['span_class2'] = 'Span Class 2'; -$lang['span_class3'] = 'Span Class 3'; -$lang['img_poll_size'] = 'Polling Image Size [px]'; -$lang['img_pm_size'] = 'Private Message Status size [px]'; - - -// -// Install Process -// -$lang['Welcome_install'] = 'Welcome to phpBB 2 Installation'; -$lang['Initial_config'] = 'Basic Configuration'; -$lang['DB_config'] = 'Database Configuration'; -$lang['Admin_config'] = 'Admin Configuration'; -$lang['continue_upgrade'] = 'Once you have downloaded your config file to your local machine you may\'Continue Upgrade\' button below to move forward with the upgrade process. Please wait to upload the config file until the upgrade process is complete.'; -$lang['upgrade_submit'] = 'Continue Upgrade'; - -$lang['Installer_Error'] = 'An error has occurred during installation'; -$lang['Previous_Install'] = 'A previous installation has been detected'; -$lang['Install_db_error'] = 'An error occurred trying to update the database'; - -$lang['Re_install'] = 'Your previous installation is still active.

If you would like to re-install phpBB 2 you should click the Yes button below. Please be aware that doing so will destroy all existing data and no backups will be made! The administrator username and password you have used to login in to the board will be re-created after the re-installation and no other settings will be retained.

Think carefully before pressing Yes!'; - -$lang['Inst_Step_0'] = 'Thank you for choosing phpBB 2. In order to complete this install please fill out the details requested below. Please note that the database you install into should already exist. If you are installing to a database that uses ODBC, e.g. MS Access you should first create a DSN for it before proceeding.'; - -$lang['Start_Install'] = 'Start Install'; -$lang['Finish_Install'] = 'Finish Installation'; - -$lang['Default_lang'] = 'Default board language'; -$lang['DB_Host'] = 'Database Server Hostname / DSN'; -$lang['DB_Name'] = 'Your Database Name'; -$lang['DB_Username'] = 'Database Username'; -$lang['DB_Password'] = 'Database Password'; -$lang['Database'] = 'Your Database'; -$lang['Install_lang'] = 'Choose Language for Installation'; -$lang['dbms'] = 'Database Type'; -$lang['Table_Prefix'] = 'Prefix for tables in database'; -$lang['Admin_Username'] = 'Administrator Username'; -$lang['Admin_Password'] = 'Administrator Password'; -$lang['Admin_Password_confirm'] = 'Administrator Password [ Confirm ]'; - -$lang['Inst_Step_2'] = 'Your admin username has been created. At this point your basic installation is complete. You will now be taken to a screen which will allow you to administer your new installation. Please be sure to check the General Configuration details and make any required changes. Thank you for choosing phpBB 2.'; - -$lang['Unwriteable_config'] = 'Your config file is un-writeable at present. A copy of the config file will be downloaded to your computer when you click the button below. You should upload this file to the same directory as phpBB 2. Once this is done you should log in using the administrator name and password you provided on the previous form and visit the admin control center (a link will appear at the bottom of each screen once logged in) to check the general configuration. Thank you for choosing phpBB 2.'; -$lang['Download_config'] = 'Download Config'; - -$lang['ftp_choose'] = 'Choose Download Method'; -$lang['ftp_option'] = '
Since FTP extensions are enabled in this version of PHP you may also be given the option of first trying to automatically FTP the config file into place.'; -$lang['ftp_instructs'] = 'You have chosen to FTP the file to the account containing phpBB 2 automatically. Please enter the information below to facilitate this process. Note that the FTP path should be the exact path via FTP to your phpBB2 installation as if you were FTPing to it using any normal client.'; -$lang['ftp_info'] = 'Enter Your FTP Information'; -$lang['Attempt_ftp'] = 'Attempt to FTP config file into place'; -$lang['Send_file'] = 'Just send the file to me and I\'ll FTP it manually'; -$lang['ftp_path'] = 'FTP path to phpBB 2'; -$lang['ftp_username'] = 'Your FTP Username'; -$lang['ftp_password'] = 'Your FTP Password'; -$lang['Transfer_config'] = 'Start Transfer'; -$lang['NoFTP_config'] = 'The attempt to FTP the config file into place failed. Please download the config file and FTP it into place manually.'; - -$lang['Install'] = 'Install'; -$lang['Upgrade'] = 'Upgrade'; - - -$lang['Install_Method'] = 'Choose your installation method'; - -$lang['Install_No_Ext'] = 'The PHP configuration on your server doesn\'t support the database type that you chose'; - -$lang['Install_No_PCRE'] = 'phpBB2 Requires the Perl-Compatible Regular Expressions Module for PHP which your PHP configuration doesn\'t appear to support!'; - -// -// Admin Userlist Start -// -$lang['Userlist'] = 'User list'; -$lang['Userlist_description'] = 'View a complete list of your users and perform various actions on them'; - -$lang['Add_group'] = 'Add to a Group'; -$lang['Add_group_explain'] = 'Select which group to add the selected users to'; - -$lang['Open_close'] = 'Open/Close'; -$lang['Active'] = 'Active'; -$lang['Group'] = 'Group(s)'; -$lang['Rank'] = 'Rank'; -$lang['Last_activity'] = 'Last Activity'; -$lang['Never'] = 'Never'; -$lang['User_manage'] = 'Manage'; -$lang['Find_all_posts'] = 'Find All Posts'; - -$lang['Select_one'] = 'Select One'; -$lang['Ban'] = 'Ban'; -$lang['Activate_deactivate'] = 'Activate/De-activate'; - -$lang['User_id'] = 'User id'; -$lang['User_level'] = 'User Level'; -$lang['Ascending'] = 'Ascending'; -$lang['Descending'] = 'Descending'; -$lang['Show'] = 'Show'; -$lang['All'] = 'All'; - -$lang['Member'] = 'Member'; -$lang['Pending'] = 'Pending'; - -$lang['Confirm_user_ban'] = 'Are you sure you want to ban the selected user(s)?'; -$lang['Confirm_user_deleted'] = 'Are you sure you want to detele the selected user(s)?'; - -$lang['User_status_updated'] = 'User(s) status updated successfully!'; -$lang['User_banned_successfully'] = 'User(s) banned successfully!'; -$lang['User_deleted_successfully'] = 'User(s) deleted successfully!'; -$lang['User_add_group_successfully'] = 'User(s) added to group successfully!'; - -$lang['Click_return_userlist'] = 'Click %shere%s to return to the User List'; -// -// Admin Userlist End -// - -// -// Version Check -// -$lang['Version_up_to_date'] = 'Your installation is up to date, no updates are available for your version of phpBB.'; -$lang['Version_not_up_to_date'] = 'Your installation does not seem to be up to date. Updates are available for your version of phpBB, please visit http://www.phpbb.com/downloads.php to obtain the latest version.'; -$lang['Latest_version_info'] = 'The latest available version is phpBB %s.'; -$lang['Current_version_info'] = 'You are running phpBB %s.'; -$lang['Connect_socket_error'] = 'Unable to open connection to phpBB Server, reported error is:
%s'; -$lang['Socket_functions_disabled'] = 'Unable to use socket functions.'; -$lang['Mailing_list_subscribe_reminder'] = 'For the latest information on updates to phpBB, why not subscribe to our mailing list.'; -$lang['Version_information'] = 'Version Information'; - -// -// Login attempts configuration -// -$lang['Max_login_attempts'] = 'Allowed login attempts'; -$lang['Max_login_attempts_explain'] = 'The number of allowed board login attempts.'; -$lang['Login_reset_time'] = 'Login lock time'; -$lang['Login_reset_time_explain'] = 'Time in minutes the user have to wait until he is allowed to login again after exceeding the number of allowed login attempts.'; - -// -// That's all Folks! -// ------------------------------------------------- - -?> diff --git a/phpBB2/language/lang_english/lang_admin.php.orig b/phpBB2/language/lang_english/lang_admin.php.orig deleted file mode 100644 index 4c720b8..0000000 --- a/phpBB2/language/lang_english/lang_admin.php.orig +++ /dev/null @@ -1,788 +0,0 @@ -Admin Index link in the left pane. To return to the index of your board, click the phpBB logo also in the left pane. The other links on the left hand side of this screen will allow you to control every aspect of your forum experience. Each screen will have instructions on how to use the tools.'; -$lang['Main_index'] = 'Forum Index'; -$lang['Forum_stats'] = 'Forum Statistics'; -$lang['Admin_Index'] = 'Admin Index'; -$lang['Preview_forum'] = 'Preview Forum'; - -$lang['Click_return_admin_index'] = 'Click %sHere%s to return to the Admin Index'; - -$lang['Statistic'] = 'Statistic'; -$lang['Value'] = 'Value'; -$lang['Number_posts'] = 'Number of posts'; -$lang['Posts_per_day'] = 'Posts per day'; -$lang['Number_topics'] = 'Number of topics'; -$lang['Topics_per_day'] = 'Topics per day'; -$lang['Number_users'] = 'Number of users'; -$lang['Users_per_day'] = 'Users per day'; -$lang['Board_started'] = 'Board started'; -$lang['Avatar_dir_size'] = 'Avatar directory size'; -$lang['Database_size'] = 'Database size'; -$lang['Gzip_compression'] ='Gzip compression'; -$lang['Not_available'] = 'Not available'; - -$lang['ON'] = 'ON'; // This is for GZip compression -$lang['OFF'] = 'OFF'; - - -// -// DB Utils -// -$lang['Database_Utilities'] = 'Database Utilities'; - -$lang['Restore'] = 'Restore'; -$lang['Backup'] = 'Backup'; -$lang['Restore_explain'] = 'This will perform a full restore of all phpBB tables from a saved file. If your server supports it, you may upload a gzip-compressed text file and it will automatically be decompressed. WARNING: This will overwrite any existing data. The restore may take a long time to process, so please do not move from this page until it is complete.'; -$lang['Backup_explain'] = 'Here you can back up all your phpBB-related data. If you have any additional custom tables in the same database with phpBB that you would like to back up as well, please enter their names, separated by commas, in the Additional Tables textbox below. If your server supports it you may also gzip-compress the file to reduce its size before download.'; - -$lang['Backup_options'] = 'Backup options'; -$lang['Start_backup'] = 'Start Backup'; -$lang['Full_backup'] = 'Full backup'; -$lang['Structure_backup'] = 'Structure-Only backup'; -$lang['Data_backup'] = 'Data only backup'; -$lang['Additional_tables'] = 'Additional tables'; -$lang['Gzip_compress'] = 'Gzip compress file'; -$lang['Select_file'] = 'Select a file'; -$lang['Start_Restore'] = 'Start Restore'; - -$lang['Restore_success'] = 'The Database has been successfully restored.

Your board should be back to the state it was when the backup was made.'; -$lang['Backup_download'] = 'Your download will start shortly; please wait until it begins.'; -$lang['Backups_not_supported'] = 'Sorry, but database backups are not currently supported for your database system.'; - -$lang['Restore_Error_uploading'] = 'Error in uploading the backup file'; -$lang['Restore_Error_filename'] = 'Filename problem; please try an alternative file'; -$lang['Restore_Error_decompress'] = 'Cannot decompress a gzip file; please upload a plain text version'; -$lang['Restore_Error_no_file'] = 'No file was uploaded'; - - -// -// Auth pages -// -$lang['Select_a_User'] = 'Select a User'; -$lang['Select_a_Group'] = 'Select a Group'; -$lang['Select_a_Forum'] = 'Select a Forum'; -$lang['Auth_Control_User'] = 'User Permissions Control'; -$lang['Auth_Control_Group'] = 'Group Permissions Control'; -$lang['Auth_Control_Forum'] = 'Forum Permissions Control'; -$lang['Look_up_User'] = 'Look up User'; -$lang['Look_up_Group'] = 'Look up Group'; -$lang['Look_up_Forum'] = 'Look up Forum'; - -$lang['Group_auth_explain'] = 'Here you can alter the permissions and moderator status assigned to each user group. Do not forget when changing group permissions that individual user permissions may still allow the user entry to forums, etc. You will be warned if this is the case.'; -$lang['User_auth_explain'] = 'Here you can alter the permissions and moderator status assigned to each individual user. Do not forget when changing user permissions that group permissions may still allow the user entry to forums, etc. You will be warned if this is the case.'; -$lang['Forum_auth_explain'] = 'Here you can alter the authorisation levels of each forum. You will have both a simple and advanced method for doing this, where advanced offers greater control of each forum operation. Remember that changing the permission level of forums will affect which users can carry out the various operations within them.'; - -$lang['Simple_mode'] = 'Simple Mode'; -$lang['Advanced_mode'] = 'Advanced Mode'; -$lang['Moderator_status'] = 'Moderator status'; - -$lang['Allowed_Access'] = 'Allowed Access'; -$lang['Disallowed_Access'] = 'Disallowed Access'; -$lang['Is_Moderator'] = 'Is Moderator'; -$lang['Not_Moderator'] = 'Not Moderator'; - -$lang['Conflict_warning'] = 'Authorisation Conflict Warning'; -$lang['Conflict_access_userauth'] = 'This user still has access rights to this forum via group membership. You may want to alter the group permissions or remove this user the group to fully prevent them having access rights. The groups granting rights (and the forums involved) are noted below.'; -$lang['Conflict_mod_userauth'] = 'This user still has moderator rights to this forum via group membership. You may want to alter the group permissions or remove this user the group to fully prevent them having moderator rights. The groups granting rights (and the forums involved) are noted below.'; - -$lang['Conflict_access_groupauth'] = 'The following user (or users) still have access rights to this forum via their user permission settings. You may want to alter the user permissions to fully prevent them having access rights. The users granted rights (and the forums involved) are noted below.'; -$lang['Conflict_mod_groupauth'] = 'The following user (or users) still have moderator rights to this forum via their user permissions settings. You may want to alter the user permissions to fully prevent them having moderator rights. The users granted rights (and the forums involved) are noted below.'; - -$lang['Public'] = 'Public'; -$lang['Private'] = 'Private'; -$lang['Registered'] = 'Registered'; -$lang['Administrators'] = 'Administrators'; -$lang['Hidden'] = 'Hidden'; - -// These are displayed in the drop down boxes for advanced -// mode forum auth, try and keep them short! -$lang['Forum_ALL'] = 'ALL'; -$lang['Forum_REG'] = 'REG'; -$lang['Forum_PRIVATE'] = 'PRIVATE'; -$lang['Forum_MOD'] = 'MOD'; -$lang['Forum_ADMIN'] = 'ADMIN'; - -$lang['View'] = 'View'; -$lang['Read'] = 'Read'; -$lang['Post'] = 'Post'; -$lang['Reply'] = 'Reply'; -$lang['Edit'] = 'Edit'; -$lang['Delete'] = 'Delete'; -$lang['Sticky'] = 'Sticky'; -$lang['Announce'] = 'Announce'; -$lang['Vote'] = 'Vote'; -$lang['Pollcreate'] = 'Poll create'; - -$lang['Permissions'] = 'Permissions'; -$lang['Simple_Permission'] = 'Simple Permissions'; - -$lang['User_Level'] = 'User Level'; -$lang['Auth_User'] = 'User'; -$lang['Auth_Admin'] = 'Administrator'; -$lang['Group_memberships'] = 'Usergroup memberships'; -$lang['Usergroup_members'] = 'This group has the following members'; - -$lang['Forum_auth_updated'] = 'Forum permissions updated'; -$lang['User_auth_updated'] = 'User permissions updated'; -$lang['Group_auth_updated'] = 'Group permissions updated'; - -$lang['Auth_updated'] = 'Permissions have been updated'; -$lang['Click_return_userauth'] = 'Click %sHere%s to return to User Permissions'; -$lang['Click_return_groupauth'] = 'Click %sHere%s to return to Group Permissions'; -$lang['Click_return_forumauth'] = 'Click %sHere%s to return to Forum Permissions'; - - -// -// Banning -// -$lang['Ban_control'] = 'Ban Control'; -$lang['Ban_explain'] = 'Here you can control the banning of users. You can achieve this by banning either or both of a specific user or an individual or range of IP addresses or hostnames. These methods prevent a user from even reaching the index page of your board. To prevent a user from registering under a different username you can also specify a banned email address. Please note that banning an email address alone will not prevent that user from being able to log on or post to your board. You should use one of the first two methods to achieve this.'; -$lang['Ban_explain_warn'] = 'Please note that entering a range of IP addresses results in all the addresses between the start and end being added to the banlist. Attempts will be made to minimise the number of addresses added to the database by introducing wildcards automatically where appropriate. If you really must enter a range, try to keep it small or better yet state specific addresses.'; - -$lang['Select_username'] = 'Select a Username'; -$lang['Select_ip'] = 'Select an IP address'; -$lang['Select_email'] = 'Select an Email address'; - -$lang['Ban_username'] = 'Ban one or more specific users'; -$lang['Ban_username_explain'] = 'You can ban multiple users in one go using the appropriate combination of mouse and keyboard for your computer and browser'; - -$lang['Ban_IP'] = 'Ban one or more IP addresses or hostnames'; -$lang['IP_hostname'] = 'IP addresses or hostnames'; -$lang['Ban_IP_explain'] = 'To specify several different IP addresses or hostnames separate them with commas. To specify a range of IP addresses, separate the start and end with a hyphen (-); to specify a wildcard, use an asterisk (*).'; - -$lang['Ban_email'] = 'Ban one or more email addresses'; -$lang['Ban_email_explain'] = 'To specify more than one email address, separate them with commas. To specify a wildcard username, use * like *@hotmail.com'; - -$lang['Unban_username'] = 'Un-ban one more specific users'; -$lang['Unban_username_explain'] = 'You can unban multiple users in one go using the appropriate combination of mouse and keyboard for your computer and browser'; - -$lang['Unban_IP'] = 'Un-ban one or more IP addresses'; -$lang['Unban_IP_explain'] = 'You can unban multiple IP addresses in one go using the appropriate combination of mouse and keyboard for your computer and browser'; - -$lang['Unban_email'] = 'Un-ban one or more email addresses'; -$lang['Unban_email_explain'] = 'You can unban multiple email addresses in one go using the appropriate combination of mouse and keyboard for your computer and browser'; - -$lang['No_banned_users'] = 'No banned usernames'; -$lang['No_banned_ip'] = 'No banned IP addresses'; -$lang['No_banned_email'] = 'No banned email addresses'; - -$lang['Ban_update_sucessful'] = 'The banlist has been updated successfully'; -$lang['Click_return_banadmin'] = 'Click %sHere%s to return to Ban Control'; - - -// -// Configuration -// -$lang['General_Config'] = 'General Configuration'; -$lang['Config_explain'] = 'The form below will allow you to customize all the general board options. For User and Forum configurations use the related links on the left hand side.'; - -$lang['Click_return_config'] = 'Click %sHere%s to return to General Configuration'; - -$lang['General_settings'] = 'General Board Settings'; -$lang['Server_name'] = 'Domain Name'; -$lang['Server_name_explain'] = 'The domain name from which this board runs'; -$lang['Script_path'] = 'Script path'; -$lang['Script_path_explain'] = 'The path where phpBB2 is located relative to the domain name'; -$lang['Server_port'] = 'Server Port'; -$lang['Server_port_explain'] = 'The port your server is running on, usually 80. Only change if different'; -$lang['Site_name'] = 'Site name'; -$lang['Site_desc'] = 'Site description'; -$lang['Board_disable'] = 'Disable board'; -$lang['Board_disable_explain'] = 'This will make the board unavailable to users. Administrators are able to access the Administration Panel while the board is disabled.'; -$lang['Acct_activation'] = 'Enable account activation'; -$lang['Acc_None'] = 'None'; // These three entries are the type of activation -$lang['Acc_User'] = 'User'; -$lang['Acc_Admin'] = 'Admin'; - -$lang['Abilities_settings'] = 'User and Forum Basic Settings'; -$lang['Max_poll_options'] = 'Max number of poll options'; -$lang['Flood_Interval'] = 'Flood Interval'; -$lang['Flood_Interval_explain'] = 'Number of seconds a user must wait between posts'; -$lang['Board_email_form'] = 'User email via board'; -$lang['Board_email_form_explain'] = 'Users send email to each other via this board'; -$lang['Topics_per_page'] = 'Topics Per Page'; -$lang['Posts_per_page'] = 'Posts Per Page'; -$lang['Hot_threshold'] = 'Posts for Popular Threshold'; -$lang['Default_style'] = 'Default Style'; -$lang['Override_style'] = 'Override user style'; -$lang['Override_style_explain'] = 'Replaces users style with the default'; -$lang['Default_language'] = 'Default Language'; -$lang['Date_format'] = 'Date Format'; -$lang['System_timezone'] = 'System Timezone'; -$lang['Enable_gzip'] = 'Enable GZip Compression'; -$lang['Enable_prune'] = 'Enable Forum Pruning'; -$lang['Allow_HTML'] = 'Allow HTML'; -$lang['Allow_BBCode'] = 'Allow BBCode'; -$lang['Allowed_tags'] = 'Allowed HTML tags'; -$lang['Allowed_tags_explain'] = 'Separate tags with commas'; -$lang['Allow_smilies'] = 'Allow Smilies'; -$lang['Smilies_path'] = 'Smilies Storage Path'; -$lang['Smilies_path_explain'] = 'Path under your phpBB root dir, e.g. images/smiles'; -$lang['Allow_sig'] = 'Allow Signatures'; -$lang['Max_sig_length'] = 'Maximum signature length'; -$lang['Max_sig_length_explain'] = 'Maximum number of characters in user signatures'; -$lang['Allow_name_change'] = 'Allow Username changes'; - -$lang['Avatar_settings'] = 'Avatar Settings'; -$lang['Allow_local'] = 'Enable gallery avatars'; -$lang['Allow_remote'] = 'Enable remote avatars'; -$lang['Allow_remote_explain'] = 'Avatars linked to from another website'; -$lang['Allow_upload'] = 'Enable avatar uploading'; -$lang['Max_filesize'] = 'Maximum Avatar File Size'; -$lang['Max_filesize_explain'] = 'For uploaded avatar files'; -$lang['Max_avatar_size'] = 'Maximum Avatar Dimensions'; -$lang['Max_avatar_size_explain'] = '(Height x Width in pixels)'; -$lang['Avatar_storage_path'] = 'Avatar Storage Path'; -$lang['Avatar_storage_path_explain'] = 'Path under your phpBB root dir, e.g. images/avatars'; -$lang['Avatar_gallery_path'] = 'Avatar Gallery Path'; -$lang['Avatar_gallery_path_explain'] = 'Path under your phpBB root dir for pre-loaded images, e.g. images/avatars/gallery'; - -$lang['COPPA_settings'] = 'COPPA Settings'; -$lang['COPPA_fax'] = 'COPPA Fax Number'; -$lang['COPPA_mail'] = 'COPPA Mailing Address'; -$lang['COPPA_mail_explain'] = 'This is the mailing address to which parents will send COPPA registration forms'; - -$lang['Email_settings'] = 'Email Settings'; -$lang['Admin_email'] = 'Admin Email Address'; -$lang['Email_sig'] = 'Email Signature'; -$lang['Email_sig_explain'] = 'This text will be attached to all emails the board sends'; -$lang['Use_SMTP'] = 'Use SMTP Server for email'; -$lang['Use_SMTP_explain'] = 'Say yes if you want or have to send email via a named server instead of the local mail function'; -$lang['SMTP_server'] = 'SMTP Server Address'; -$lang['SMTP_username'] = 'SMTP Username'; -$lang['SMTP_username_explain'] = 'Only enter a username if your SMTP server requires it'; -$lang['SMTP_password'] = 'SMTP Password'; -$lang['SMTP_password_explain'] = 'Only enter a password if your SMTP server requires it'; - -$lang['Disable_privmsg'] = 'Private Messaging'; -$lang['Inbox_limits'] = 'Max posts in Inbox'; -$lang['Sentbox_limits'] = 'Max posts in Sentbox'; -$lang['Savebox_limits'] = 'Max posts in Savebox'; - -$lang['Cookie_settings'] = 'Cookie settings'; -$lang['Cookie_settings_explain'] = 'These details define how cookies are sent to your users\' browsers. In most cases the default values for the cookie settings should be sufficient, but if you need to change them do so with care -- incorrect settings can prevent users from logging in'; -$lang['Cookie_domain'] = 'Cookie domain'; -$lang['Cookie_name'] = 'Cookie name'; -$lang['Cookie_path'] = 'Cookie path'; -$lang['Cookie_secure'] = 'Cookie secure'; -$lang['Cookie_secure_explain'] = 'If your server is running via SSL, set this to enabled, else leave as disabled'; -$lang['Session_length'] = 'Session length [ seconds ]'; - -// Visual Confirmation -$lang['Visual_confirm'] = 'Enable Visual Confirmation'; -$lang['Visual_confirm_explain'] = 'Requires users enter a code defined by an image when registering.'; - -// -// Forum Management -// -$lang['Forum_admin'] = 'Forum Administration'; -$lang['Forum_admin_explain'] = 'From this panel you can add, delete, edit, re-order and re-synchronise categories and forums'; -$lang['Edit_forum'] = 'Edit forum'; -$lang['Create_forum'] = 'Create new forum'; -$lang['Create_category'] = 'Create new category'; -$lang['Remove'] = 'Remove'; -$lang['Action'] = 'Action'; -$lang['Update_order'] = 'Update Order'; -$lang['Config_updated'] = 'Forum Configuration Updated Successfully'; -$lang['Edit'] = 'Edit'; -$lang['Delete'] = 'Delete'; -$lang['Move_up'] = 'Move up'; -$lang['Move_down'] = 'Move down'; -$lang['Resync'] = 'Resync'; -$lang['No_mode'] = 'No mode was set'; -$lang['Forum_edit_delete_explain'] = 'The form below will allow you to customize all the general board options. For User and Forum configurations use the related links on the left hand side'; - -$lang['Move_contents'] = 'Move all contents'; -$lang['Forum_delete'] = 'Delete Forum'; -$lang['Forum_delete_explain'] = 'The form below will allow you to delete a forum (or category) and decide where you want to put all topics (or forums) it contained.'; - -$lang['Status_locked'] = 'Locked'; -$lang['Status_unlocked'] = 'Unlocked'; -$lang['Forum_settings'] = 'General Forum Settings'; -$lang['Forum_name'] = 'Forum name'; -$lang['Forum_desc'] = 'Description'; -$lang['Forum_status'] = 'Forum status'; -$lang['Forum_pruning'] = 'Auto-pruning'; - -$lang['prune_freq'] = 'Check for topic age every'; -$lang['prune_days'] = 'Remove topics that have not been posted to in'; -$lang['Set_prune_data'] = 'You have turned on auto-prune for this forum but did not set a frequency or number of days to prune. Please go back and do so.'; - -$lang['Move_and_Delete'] = 'Move and Delete'; - -$lang['Delete_all_posts'] = 'Delete all posts'; -$lang['Nowhere_to_move'] = 'Nowhere to move to'; - -$lang['Edit_Category'] = 'Edit Category'; -$lang['Edit_Category_explain'] = 'Use this form to modify a category\'s name.'; - -$lang['Forums_updated'] = 'Forum and Category information updated successfully'; - -$lang['Must_delete_forums'] = 'You need to delete all forums before you can delete this category'; - -$lang['Click_return_forumadmin'] = 'Click %sHere%s to return to Forum Administration'; - - -// -// Smiley Management -// -$lang['smiley_title'] = 'Smiles Editing Utility'; -$lang['smile_desc'] = 'From this page you can add, remove and edit the emoticons or smileys that your users can use in their posts and private messages.'; - -$lang['smiley_config'] = 'Smiley Configuration'; -$lang['smiley_code'] = 'Smiley Code'; -$lang['smiley_url'] = 'Smiley Image File'; -$lang['smiley_emot'] = 'Smiley Emotion'; -$lang['smile_add'] = 'Add a new Smiley'; -$lang['Smile'] = 'Smile'; -$lang['Emotion'] = 'Emotion'; - -$lang['Select_pak'] = 'Select Pack (.pak) File'; -$lang['replace_existing'] = 'Replace Existing Smiley'; -$lang['keep_existing'] = 'Keep Existing Smiley'; -$lang['smiley_import_inst'] = 'You should unzip the smiley package and upload all files to the appropriate Smiley directory for your installation. Then select the correct information in this form to import the smiley pack.'; -$lang['smiley_import'] = 'Smiley Pack Import'; -$lang['choose_smile_pak'] = 'Choose a Smile Pack .pak file'; -$lang['import'] = 'Import Smileys'; -$lang['smile_conflicts'] = 'What should be done in case of conflicts'; -$lang['del_existing_smileys'] = 'Delete existing smileys before import'; -$lang['import_smile_pack'] = 'Import Smiley Pack'; -$lang['export_smile_pack'] = 'Create Smiley Pack'; -$lang['export_smiles'] = 'To create a smiley pack from your currently installed smileys, click %sHere%s to download the smiles.pak file. Name this file appropriately making sure to keep the .pak file extension. Then create a zip file containing all of your smiley images plus this .pak configuration file.'; - -$lang['smiley_add_success'] = 'The Smiley was successfully added'; -$lang['smiley_edit_success'] = 'The Smiley was successfully updated'; -$lang['smiley_import_success'] = 'The Smiley Pack was imported successfully!'; -$lang['smiley_del_success'] = 'The Smiley was successfully removed'; -$lang['Click_return_smileadmin'] = 'Click %sHere%s to return to Smiley Administration'; - - -// -// User Management -// -$lang['User_admin'] = 'User Administration'; -$lang['User_admin_explain'] = 'Here you can change your users\' information and certain options. To modify the users\' permissions, please use the user and group permissions system.'; - -$lang['Look_up_user'] = 'Look up user'; - -$lang['Admin_user_fail'] = 'Couldn\'t update the user\'s profile.'; -$lang['Admin_user_updated'] = 'The user\'s profile was successfully updated.'; -$lang['Click_return_useradmin'] = 'Click %sHere%s to return to User Administration'; - -$lang['User_delete'] = 'Delete this user'; -$lang['User_delete_explain'] = 'Click here to delete this user; this cannot be undone.'; -$lang['User_deleted'] = 'User was successfully deleted.'; - -$lang['User_status'] = 'User is active'; -$lang['User_allowpm'] = 'Can send Private Messages'; -$lang['User_allowavatar'] = 'Can display avatar'; - -$lang['Admin_avatar_explain'] = 'Here you can see and delete the user\'s current avatar.'; - -$lang['User_special'] = 'Special admin-only fields'; -$lang['User_special_explain'] = 'These fields are not able to be modified by the users. Here you can set their status and other options that are not given to users.'; - - -// -// Group Management -// -$lang['Group_administration'] = 'Group Administration'; -$lang['Group_admin_explain'] = 'From this panel you can administer all your usergroups. You can delete, create and edit existing groups. You may choose moderators, toggle open/closed group status and set the group name and description'; -$lang['Error_updating_groups'] = 'There was an error while updating the groups'; -$lang['Updated_group'] = 'The group was successfully updated'; -$lang['Added_new_group'] = 'The new group was successfully created'; -$lang['Deleted_group'] = 'The group was successfully deleted'; -$lang['New_group'] = 'Create new group'; -$lang['Edit_group'] = 'Edit group'; -$lang['group_name'] = 'Group name'; -$lang['group_description'] = 'Group description'; -$lang['group_moderator'] = 'Group moderator'; -$lang['group_status'] = 'Group status'; -$lang['group_open'] = 'Open group'; -$lang['group_closed'] = 'Closed group'; -$lang['group_hidden'] = 'Hidden group'; -$lang['group_delete'] = 'Delete group'; -$lang['group_delete_check'] = 'Delete this group'; -$lang['submit_group_changes'] = 'Submit Changes'; -$lang['reset_group_changes'] = 'Reset Changes'; -$lang['No_group_name'] = 'You must specify a name for this group'; -$lang['No_group_moderator'] = 'You must specify a moderator for this group'; -$lang['No_group_mode'] = 'You must specify a mode for this group, open or closed'; -$lang['No_group_action'] = 'No action was specified'; -$lang['delete_group_moderator'] = 'Delete the old group moderator?'; -$lang['delete_moderator_explain'] = 'If you\'re changing the group moderator, check this box to remove the old moderator from the group. Otherwise, do not check it, and the user will become a regular member of the group.'; -$lang['Click_return_groupsadmin'] = 'Click %sHere%s to return to Group Administration.'; -$lang['Select_group'] = 'Select a group'; -$lang['Look_up_group'] = 'Look up group'; - - -// -// Prune Administration -// -$lang['Forum_Prune'] = 'Forum Prune'; -$lang['Forum_Prune_explain'] = 'This will delete any topic which has not been posted to within the number of days you select. If you do not enter a number then all topics will be deleted. It will not remove topics in which polls are still running nor will it remove announcements. You will need to remove those topics manually.'; -$lang['Do_Prune'] = 'Do Prune'; -$lang['All_Forums'] = 'All Forums'; -$lang['Prune_topics_not_posted'] = 'Prune topics with no replies in this many days'; -$lang['Topics_pruned'] = 'Topics pruned'; -$lang['Posts_pruned'] = 'Posts pruned'; -$lang['Prune_success'] = 'Pruning of forums was successful'; - - -// -// Word censor -// -$lang['Words_title'] = 'Word Censoring'; -$lang['Words_explain'] = 'From this control panel you can add, edit, and remove words that will be automatically censored on your forums. In addition people will not be allowed to register with usernames containing these words. Wildcards (*) are accepted in the word field. For example, *test* will match detestable, test* would match testing, *test would match detest.'; -$lang['Word'] = 'Word'; -$lang['Edit_word_censor'] = 'Edit word censor'; -$lang['Replacement'] = 'Replacement'; -$lang['Add_new_word'] = 'Add new word'; -$lang['Update_word'] = 'Update word censor'; - -$lang['Must_enter_word'] = 'You must enter a word and its replacement'; -$lang['No_word_selected'] = 'No word selected for editing'; - -$lang['Word_updated'] = 'The selected word censor has been successfully updated'; -$lang['Word_added'] = 'The word censor has been successfully added'; -$lang['Word_removed'] = 'The selected word censor has been successfully removed'; - -$lang['Click_return_wordadmin'] = 'Click %sHere%s to return to Word Censor Administration'; - - -// -// Mass Email -// -$lang['Mass_email_explain'] = 'Here you can email a message to either all of your users or all users of a specific group. To do this, an email will be sent out to the administrative email address supplied, with a blind carbon copy sent to all recipients. If you are emailing a large group of people please be patient after submitting and do not stop the page halfway through. It is normal for a mass emailing to take a long time and you will be notified when the script has completed'; -$lang['Compose'] = 'Compose'; - -$lang['Recipients'] = 'Recipients'; -$lang['All_users'] = 'All Users'; - -$lang['Email_successfull'] = 'Your message has been sent'; -$lang['Click_return_massemail'] = 'Click %sHere%s to return to the Mass Email form'; - - -// -// Ranks admin -// -$lang['Ranks_title'] = 'Rank Administration'; -$lang['Ranks_explain'] = 'Using this form you can add, edit, view and delete ranks. You can also create custom ranks which can be applied to a user via the user management facility'; - -$lang['Add_new_rank'] = 'Add new rank'; - -$lang['Rank_title'] = 'Rank Title'; -$lang['Rank_special'] = 'Set as Special Rank'; -$lang['Rank_minimum'] = 'Minimum Posts'; -$lang['Rank_maximum'] = 'Maximum Posts'; -$lang['Rank_image'] = 'Rank Image (Relative to phpBB2 root path)'; -$lang['Rank_image_explain'] = 'Use this to define a small image associated with the rank'; - -$lang['Must_select_rank'] = 'You must select a rank'; -$lang['No_assigned_rank'] = 'No special rank assigned'; - -$lang['Rank_updated'] = 'The rank was successfully updated'; -$lang['Rank_added'] = 'The rank was successfully added'; -$lang['Rank_removed'] = 'The rank was successfully deleted'; -$lang['No_update_ranks'] = 'The rank was successfully deleted. However, user accounts using this rank were not updated. You will need to manually reset the rank on these accounts'; - -$lang['Click_return_rankadmin'] = 'Click %sHere%s to return to Rank Administration'; - - -// -// Disallow Username Admin -// -$lang['Disallow_control'] = 'Username Disallow Control'; -$lang['Disallow_explain'] = 'Here you can control usernames which will not be allowed to be used. Disallowed usernames are allowed to contain a wildcard character of *. Please note that you will not be allowed to specify any username that has already been registered. You must first delete that name then disallow it.'; - -$lang['Delete_disallow'] = 'Delete'; -$lang['Delete_disallow_title'] = 'Remove a Disallowed Username'; -$lang['Delete_disallow_explain'] = 'You can remove a disallowed username by selecting the username from this list and clicking submit'; - -$lang['Add_disallow'] = 'Add'; -$lang['Add_disallow_title'] = 'Add a disallowed username'; -$lang['Add_disallow_explain'] = 'You can disallow a username using the wildcard character * to match any character'; - -$lang['No_disallowed'] = 'No Disallowed Usernames'; - -$lang['Disallowed_deleted'] = 'The disallowed username has been successfully removed'; -$lang['Disallow_successful'] = 'The disallowed username has been successfully added'; -$lang['Disallowed_already'] = 'The name you entered could not be disallowed. It either already exists in the list, exists in the word censor list, or a matching username is present.'; - -$lang['Click_return_disallowadmin'] = 'Click %sHere%s to return to Disallow Username Administration'; - - -// -// Styles Admin -// -$lang['Styles_admin'] = 'Styles Administration'; -$lang['Styles_explain'] = 'Using this facility you can add, remove and manage styles (templates and themes) available to your users'; -$lang['Styles_addnew_explain'] = 'The following list contains all the themes that are available for the templates you currently have. The items on this list have not yet been installed into the phpBB database. To install a theme, simply click the install link beside an entry.'; - -$lang['Select_template'] = 'Select a Template'; - -$lang['Style'] = 'Style'; -$lang['Template'] = 'Template'; -$lang['Install'] = 'Install'; -$lang['Download'] = 'Download'; - -$lang['Edit_theme'] = 'Edit Theme'; -$lang['Edit_theme_explain'] = 'In the form below you can edit the settings for the selected theme'; - -$lang['Create_theme'] = 'Create Theme'; -$lang['Create_theme_explain'] = 'Use the form below to create a new theme for a selected template. When entering colours (for which you should use hexadecimal notation) you must not include the initial #, i.e.. CCCCCC is valid, #CCCCCC is not'; - -$lang['Export_themes'] = 'Export Themes'; -$lang['Export_explain'] = 'In this panel you will be able to export the theme data for a selected template. Select the template from the list below and the script will create the theme configuration file and attempt to save it to the selected template directory. If it cannot save the file itself it will give you the option to download it. In order for the script to save the file you must give write access to the webserver for the selected template dir. For more information on this see the phpBB 2 users guide.'; - -$lang['Theme_installed'] = 'The selected theme has been installed successfully'; -$lang['Style_removed'] = 'The selected style has been removed from the database. To fully remove this style from your system you must delete the appropriate style from your templates directory.'; -$lang['Theme_info_saved'] = 'The theme information for the selected template has been saved. You should now return the permissions on the theme_info.cfg (and if applicable the selected template directory) to read-only'; -$lang['Theme_updated'] = 'The selected theme has been updated. You should now export the new theme settings'; -$lang['Theme_created'] = 'Theme created. You should now export the theme to the theme configuration file for safe keeping or use elsewhere'; - -$lang['Confirm_delete_style'] = 'Are you sure you want to delete this style?'; - -$lang['Download_theme_cfg'] = 'The exporter could not write the theme information file. Click the button below to download this file with your browser. Once you have downloaded it you can transfer it to the directory containing the template files. You can then package the files for distribution or use elsewhere if you desire'; -$lang['No_themes'] = 'The template you selected has no themes attached to it. To create a new theme click the Create New link on the left hand panel'; -$lang['No_template_dir'] = 'Could not open the template directory. It may be unreadable by the webserver or may not exist'; -$lang['Cannot_remove_style'] = 'You cannot remove the style selected since it is currently the forum default. Please change the default style and try again.'; -$lang['Style_exists'] = 'The style name to selected already exists, please go back and choose a different name.'; - -$lang['Click_return_styleadmin'] = 'Click %sHere%s to return to Style Administration'; - -$lang['Theme_settings'] = 'Theme Settings'; -$lang['Theme_element'] = 'Theme Element'; -$lang['Simple_name'] = 'Simple Name'; -$lang['Value'] = 'Value'; -$lang['Save_Settings'] = 'Save Settings'; - -$lang['Stylesheet'] = 'CSS Stylesheet'; -$lang['Background_image'] = 'Background Image'; -$lang['Background_color'] = 'Background Colour'; -$lang['Theme_name'] = 'Theme Name'; -$lang['Link_color'] = 'Link Colour'; -$lang['Text_color'] = 'Text Colour'; -$lang['VLink_color'] = 'Visited Link Colour'; -$lang['ALink_color'] = 'Active Link Colour'; -$lang['HLink_color'] = 'Hover Link Colour'; -$lang['Tr_color1'] = 'Table Row Colour 1'; -$lang['Tr_color2'] = 'Table Row Colour 2'; -$lang['Tr_color3'] = 'Table Row Colour 3'; -$lang['Tr_class1'] = 'Table Row Class 1'; -$lang['Tr_class2'] = 'Table Row Class 2'; -$lang['Tr_class3'] = 'Table Row Class 3'; -$lang['Th_color1'] = 'Table Header Colour 1'; -$lang['Th_color2'] = 'Table Header Colour 2'; -$lang['Th_color3'] = 'Table Header Colour 3'; -$lang['Th_class1'] = 'Table Header Class 1'; -$lang['Th_class2'] = 'Table Header Class 2'; -$lang['Th_class3'] = 'Table Header Class 3'; -$lang['Td_color1'] = 'Table Cell Colour 1'; -$lang['Td_color2'] = 'Table Cell Colour 2'; -$lang['Td_color3'] = 'Table Cell Colour 3'; -$lang['Td_class1'] = 'Table Cell Class 1'; -$lang['Td_class2'] = 'Table Cell Class 2'; -$lang['Td_class3'] = 'Table Cell Class 3'; -$lang['fontface1'] = 'Font Face 1'; -$lang['fontface2'] = 'Font Face 2'; -$lang['fontface3'] = 'Font Face 3'; -$lang['fontsize1'] = 'Font Size 1'; -$lang['fontsize2'] = 'Font Size 2'; -$lang['fontsize3'] = 'Font Size 3'; -$lang['fontcolor1'] = 'Font Colour 1'; -$lang['fontcolor2'] = 'Font Colour 2'; -$lang['fontcolor3'] = 'Font Colour 3'; -$lang['span_class1'] = 'Span Class 1'; -$lang['span_class2'] = 'Span Class 2'; -$lang['span_class3'] = 'Span Class 3'; -$lang['img_poll_size'] = 'Polling Image Size [px]'; -$lang['img_pm_size'] = 'Private Message Status size [px]'; - - -// -// Install Process -// -$lang['Welcome_install'] = 'Welcome to phpBB 2 Installation'; -$lang['Initial_config'] = 'Basic Configuration'; -$lang['DB_config'] = 'Database Configuration'; -$lang['Admin_config'] = 'Admin Configuration'; -$lang['continue_upgrade'] = 'Once you have downloaded your config file to your local machine you may\'Continue Upgrade\' button below to move forward with the upgrade process. Please wait to upload the config file until the upgrade process is complete.'; -$lang['upgrade_submit'] = 'Continue Upgrade'; - -$lang['Installer_Error'] = 'An error has occurred during installation'; -$lang['Previous_Install'] = 'A previous installation has been detected'; -$lang['Install_db_error'] = 'An error occurred trying to update the database'; - -$lang['Re_install'] = 'Your previous installation is still active.

If you would like to re-install phpBB 2 you should click the Yes button below. Please be aware that doing so will destroy all existing data and no backups will be made! The administrator username and password you have used to login in to the board will be re-created after the re-installation and no other settings will be retained.

Think carefully before pressing Yes!'; - -$lang['Inst_Step_0'] = 'Thank you for choosing phpBB 2. In order to complete this install please fill out the details requested below. Please note that the database you install into should already exist. If you are installing to a database that uses ODBC, e.g. MS Access you should first create a DSN for it before proceeding.'; - -$lang['Start_Install'] = 'Start Install'; -$lang['Finish_Install'] = 'Finish Installation'; - -$lang['Default_lang'] = 'Default board language'; -$lang['DB_Host'] = 'Database Server Hostname / DSN'; -$lang['DB_Name'] = 'Your Database Name'; -$lang['DB_Username'] = 'Database Username'; -$lang['DB_Password'] = 'Database Password'; -$lang['Database'] = 'Your Database'; -$lang['Install_lang'] = 'Choose Language for Installation'; -$lang['dbms'] = 'Database Type'; -$lang['Table_Prefix'] = 'Prefix for tables in database'; -$lang['Admin_Username'] = 'Administrator Username'; -$lang['Admin_Password'] = 'Administrator Password'; -$lang['Admin_Password_confirm'] = 'Administrator Password [ Confirm ]'; - -$lang['Inst_Step_2'] = 'Your admin username has been created. At this point your basic installation is complete. You will now be taken to a screen which will allow you to administer your new installation. Please be sure to check the General Configuration details and make any required changes. Thank you for choosing phpBB 2.'; - -$lang['Unwriteable_config'] = 'Your config file is un-writeable at present. A copy of the config file will be downloaded to your computer when you click the button below. You should upload this file to the same directory as phpBB 2. Once this is done you should log in using the administrator name and password you provided on the previous form and visit the admin control center (a link will appear at the bottom of each screen once logged in) to check the general configuration. Thank you for choosing phpBB 2.'; -$lang['Download_config'] = 'Download Config'; - -$lang['ftp_choose'] = 'Choose Download Method'; -$lang['ftp_option'] = '
Since FTP extensions are enabled in this version of PHP you may also be given the option of first trying to automatically FTP the config file into place.'; -$lang['ftp_instructs'] = 'You have chosen to FTP the file to the account containing phpBB 2 automatically. Please enter the information below to facilitate this process. Note that the FTP path should be the exact path via FTP to your phpBB2 installation as if you were FTPing to it using any normal client.'; -$lang['ftp_info'] = 'Enter Your FTP Information'; -$lang['Attempt_ftp'] = 'Attempt to FTP config file into place'; -$lang['Send_file'] = 'Just send the file to me and I\'ll FTP it manually'; -$lang['ftp_path'] = 'FTP path to phpBB 2'; -$lang['ftp_username'] = 'Your FTP Username'; -$lang['ftp_password'] = 'Your FTP Password'; -$lang['Transfer_config'] = 'Start Transfer'; -$lang['NoFTP_config'] = 'The attempt to FTP the config file into place failed. Please download the config file and FTP it into place manually.'; - -$lang['Install'] = 'Install'; -$lang['Upgrade'] = 'Upgrade'; - - -$lang['Install_Method'] = 'Choose your installation method'; - -$lang['Install_No_Ext'] = 'The PHP configuration on your server doesn\'t support the database type that you chose'; - -$lang['Install_No_PCRE'] = 'phpBB2 Requires the Perl-Compatible Regular Expressions Module for PHP which your PHP configuration doesn\'t appear to support!'; - -// -// Admin Userlist Start -// -$lang['Userlist'] = 'User list'; -$lang['Userlist_description'] = 'View a complete list of your users and perform various actions on them'; - -$lang['Add_group'] = 'Add to a Group'; -$lang['Add_group_explain'] = 'Select which group to add the selected users to'; - -$lang['Open_close'] = 'Open/Close'; -$lang['Active'] = 'Active'; -$lang['Group'] = 'Group(s)'; -$lang['Rank'] = 'Rank'; -$lang['Last_activity'] = 'Last Activity'; -$lang['Never'] = 'Never'; -$lang['User_manage'] = 'Manage'; -$lang['Find_all_posts'] = 'Find All Posts'; - -$lang['Select_one'] = 'Select One'; -$lang['Ban'] = 'Ban'; -$lang['Activate_deactivate'] = 'Activate/De-activate'; - -$lang['User_id'] = 'User id'; -$lang['User_level'] = 'User Level'; -$lang['Ascending'] = 'Ascending'; -$lang['Descending'] = 'Descending'; -$lang['Show'] = 'Show'; -$lang['All'] = 'All'; - -$lang['Member'] = 'Member'; -$lang['Pending'] = 'Pending'; - -$lang['Confirm_user_ban'] = 'Are you sure you want to ban the selected user(s)?'; -$lang['Confirm_user_deleted'] = 'Are you sure you want to detele the selected user(s)?'; - -$lang['User_status_updated'] = 'User(s) status updated successfully!'; -$lang['User_banned_successfully'] = 'User(s) banned successfully!'; -$lang['User_deleted_successfully'] = 'User(s) deleted successfully!'; -$lang['User_add_group_successfully'] = 'User(s) added to group successfully!'; - -$lang['Click_return_userlist'] = 'Click %shere%s to return to the User List'; -// -// Admin Userlist End -// - -// -// Version Check -// -$lang['Version_up_to_date'] = 'Your installation is up to date, no updates are available for your version of phpBB.'; -$lang['Version_not_up_to_date'] = 'Your installation does not seem to be up to date. Updates are available for your version of phpBB, please visit http://www.phpbb.com/downloads.php to obtain the latest version.'; -$lang['Latest_version_info'] = 'The latest available version is phpBB %s.'; -$lang['Current_version_info'] = 'You are running phpBB %s.'; -$lang['Connect_socket_error'] = 'Unable to open connection to phpBB Server, reported error is:
%s'; -$lang['Socket_functions_disabled'] = 'Unable to use socket functions.'; -$lang['Mailing_list_subscribe_reminder'] = 'For the latest information on updates to phpBB, why not subscribe to our mailing list.'; -$lang['Version_information'] = 'Version Information'; - -// -// That's all Folks! -// ------------------------------------------------- - -?> diff --git a/phpBB2/language/lang_english/lang_bbcode.php b/phpBB2/language/lang_english/lang_bbcode.php deleted file mode 100644 index 8ee19b0..0000000 --- a/phpBB2/language/lang_english/lang_bbcode.php +++ /dev/null @@ -1,75 +0,0 @@ -
  • To make a piece of text bold enclose it in [b][/b], eg.

    [b]Hello[/b]

    will become Hello
  • For underlining use [u][/u], for example:

    [u]Good Morning[/u]

    becomes Good Morning
  • To italicise text use [i][/i], eg.

    This is [i]Great![/i]

    would give This is Great!
  • "); -$faq[] = array("How to change the text colour or size", "To alter the color or size of your text the following tags can be used. Keep in mind that how the output appears will depend on the viewers browser and system:
    • Changing the colour of text is achieved by wrapping it in [color=][/color]. You can specify either a recognised colour name (eg. red, blue, yellow, etc.) or the hexadecimal triplet alternative, eg. #FFFFFF, #000000. For example, to create red text you could use:

      [color=red]Hello![/color]

      or

      [color=#FF0000]Hello![/color]

      will both output Hello!
    • Changing the text size is achieved in a similar way using [size=][/size]. This tag is dependent on the template you are using but the recommended format is a numerical value representing the text size in pixels, starting at 1 (so tiny you will not see it) through to 29 (very large). For example:

      [size=9]SMALL[/size]

      will generally be SMALL

      whereas:

      [size=24]HUGE![/size]

      will be HUGE!
    "); -$faq[] = array("Can I combine formatting tags?", "Yes, of course you can; for example to get someones attention you may write:

    [size=18][color=red][b]LOOK AT ME![/b][/color][/size]

    this would output LOOK AT ME!

    We don't recommend you output lots of text that looks like this, though! Remember that it is up to you, the poster, to ensure that tags are closed correctly. For example, the following is incorrect:

    [b][u]This is wrong[/b][/u]"); - -$faq[] = array("--","Quoting and outputting fixed-width text"); -$faq[] = array("Quoting text in replies", "There are two ways you can quote text: with a reference or without.
    • When you utilise the Quote function to reply to a post on the board you should notice that the post text is added to the message window enclosed in a [quote=\"\"][/quote] block. This method allows you to quote with a reference to a person or whatever else you choose to put. For example, to quote a piece of text Mr. Blobby wrote, you would enter:

      [quote=\"Mr. Blobby\"]The text Mr. Blobby wrote would go here[/quote]

      The resulting output will automatically add: Mr. Blobby wrote: before the actual text. Remember that you must include the quotation marks \"\" around the name you are quoting -- they are not optional.
    • The second method allows you to blindly quote something. To utilise this enclose the text in [quote][/quote] tags. When you view the message it will simply show: Quote: before the text itself.
    "); -$faq[] = array("Outputting code or fixed width data", "If you want to output a piece of code or in fact anything that requires a fixed width with a Courier-type font, you should enclose the text in [code][/code] tags, eg.

    [code]echo \"This is some code\";[/code]

    All formatting used within [code][/code] tags is retained when you later view it."); - -$faq[] = array("--","Generating lists"); -$faq[] = array("Creating an Un-ordered list", "BBCode supports two types of lists, unordered and ordered. They are essentially the same as their HTML equivalents. An unordered list ouputs each item in your list sequentially one after the other indenting each with a bullet character. To create an unordered list you use [list][/list] and define each item within the list using [*]. For example, to list your favorite colours you could use:

    [list]
    [*]Red
    [*]Blue
    [*]Yellow
    [/list]

    This would generate the following list:
    • Red
    • Blue
    • Yellow
    "); -$faq[] = array("Creating an Ordered list", "The second type of list, an ordered list gives you control over what is output before each item. To create an ordered list you use [list=1][/list] to create a numbered list or alternatively [list=a][/list] for an alphabetical list. As with the unordered list items are specified using [*]. For example:

    [list=1]
    [*]Go to the shops
    [*]Buy a new computer
    [*]Swear at computer when it crashes
    [/list]

    will generate the following:
    1. Go to the shops
    2. Buy a new computer
    3. Swear at computer when it crashes
    Whereas for an alphabetical list you would use:

    [list=a]
    [*]The first possible answer
    [*]The second possible answer
    [*]The third possible answer
    [/list]

    giving
    1. The first possible answer
    2. The second possible answer
    3. The third possible answer
    "); - -$faq[] = array("--", "Creating Links"); -$faq[] = array("Linking to another site", "phpBB BBCode supports a number of ways of creating URIs, Uniform Resource Indicators better known as URLs.
    • The first of these uses the [url=][/url] tag; whatever you type after the = sign will cause the contents of that tag to act as a URL. For example, to link to phpBB.com you could use:

      [url=http://www.phpbb.com/]Visit phpBB![/url]

      This would generate the following link, Visit phpBB! You will notice the link opens in a new window so the user can continue browsing the forums if they wish.
    • If you want the URL itself displayed as the link you can do this by simply using:

      [url]http://www.phpbb.com/[/url]

      This would generate the following link: http://www.phpbb.com/
    • Additionally phpBB features something called Magic Linkswhich will turn any syntatically correct URL into a link without you needing to specify any tags or even the leading http://. For example typing www.phpbb.com into your message will automatically lead to www.phpbb.com being output when you view the message.
    • The same thing applies equally to email addresses; you can either specify an address explicitly, like:

      [email]no.one@domain.adr[/email]

      which will output no.one@domain.adr or you can just type no.one@domain.adr into your message and it will be automatically converted when you view.
    As with all the BBCode tags you can wrap URLs around any of the other tags such as [img][/img] (see next entry), [b][/b], etc. As with the formatting tags it is up to you to ensure the correct open and close order is following. For example:

    [url=http://www.phpbb.com/][img]http://www.phpbb.com/images/phplogo.gif[/url][/img]

    is not correct which may lead to your post being deleted so take care."); - -$faq[] = array("--", "Showing images in posts"); -$faq[] = array("Adding an image to a post", "phpBB BBCode incorporates a tag for including images in your posts. Two very important things to remember when using this tag are: many users do not appreciate lots of images being shown in posts and second, the image you display must already be available on the Internet (it cannot exist only on your computer, for example, unless you run a webserver!). There is currently no way of storing images locally with phpBB (all these issues are expected to be addressed in the next release of phpBB). To display an image, you must surround the URL pointing to the image with [img][/img] tags. For example:

    [img]http://www.phpbb.com/images/phplogo.gif[/img]

    As noted in the URL section above you can wrap an image in a [url][/url] tag if you wish, eg.

    [url=http://www.phpbb.com/][img]http://www.phpbb.com/images/phplogo.gif[/img][/url]

    would generate:

    \"\"
    "); - -$faq[] = array("--", "Other matters"); -$faq[] = array("Can I add my own tags?", "No, I am afraid not directly in phpBB 2.0. We are looking at offering customisable BBCode tags for the next major version."); - -// -// This ends the BBCode guide entries -// - -?> \ No newline at end of file diff --git a/phpBB2/language/lang_english/lang_faq.php b/phpBB2/language/lang_english/lang_faq.php deleted file mode 100644 index 608d3f7..0000000 --- a/phpBB2/language/lang_english/lang_faq.php +++ /dev/null @@ -1,106 +0,0 @@ -Log me in automatically box when you log in, the board will only keep you logged in for a preset time. This prevents misuse of your account by anyone else. To stay logged in, check the box during login. This is not recommended if you access the board from a shared computer, e.g. library, internet cafe, university cluster, etc."); -$faq[] = array("How do I prevent my username from appearing in the online user listings?", "In your profile you will find an option Hide your online status; if you switch this on you'll only appear to board administrators or to yourself. You will be counted as a hidden user."); -$faq[] = array("I've lost my password!", "Don't panic! While your password cannot be retrieved it can be reset. To do this go to the login page and click I've forgotten my password. Follow the instructions and you should be back online in no time."); -$faq[] = array("I registered but cannot log in!", "First check that you are entering the correct username and password. If they are okay then one of two things may have happened: if COPPA support is enabled and you clicked the I am under 13 years old link while registering then you will have to follow the instructions you received. If this is not the case then maybe your account need activating. Some boards will require all new registrations be activated, either by yourself or by the administrator before you can log on. When you registered it would have told you whether activation was required. If you were sent an email then follow the instructions; if you did not receive the email then check that your email address is valid. One reason activation is used is to reduce the possibility of rogue users abusing the board anonymously. If you are sure the email address you used is valid then try contacting the board administrator."); -$faq[] = array("I registered in the past but cannot log in anymore!", "The most likely reasons for this are: you entered an incorrect username or password (check the email you were sent when you first registered) or the administrator has deleted your account for some reason. If it is the latter case then perhaps you did not post anything? It is usual for boards to periodically remove users who have not posted anything so as to reduce the size of the database. Try registering again and get involved in discussions."); - - -$faq[] = array("--","User Preferences and settings"); -$faq[] = array("How do I change my settings?", "All your settings (if you are registered) are stored in the database. To alter them click the Profile link (generally shown at the top of pages but this may not be the case). This will allow you to change all your settings."); -$faq[] = array("The times are not correct!", "The times are almost certainly correct; however, what you may be seeing are times displayed in a timezone different from the one you are in. If this is the case, you should change your profile setting for the timezone to match your particular area, e.g. London, Paris, New York, Sydney, etc. Please note that changing the timezone, like most settings, can only be done by registered users. So if you are not registered, this is a good time to do so, if you pardon the pun!"); -$faq[] = array("I changed the timezone and the time is still wrong!", "If you are sure you have set the timezone correctly and the time is still different, the most likely answer is daylight savings time (or summer time as it is known in the UK and other places). The board is not designed to handle the changeovers between standard and daylight time so during summer months the time may be an hour different from the real local time."); -$faq[] = array("My language is not in the list!", "The most likely reasons for this are either the administrator did not install your language or someone has not translated this board into your language. Try asking the board administrator if they can install the language pack you need or if it does not exist, please feel free to create a new translation. More information can be found at the phpBB Group website (see link at bottom of pages)"); -$faq[] = array("How do I show an image below my username?", "There may be two images below a username when viewing posts. The first is an image associated with your rank; generally these take the form of stars or blocks indicating how many posts you have made or your status on the forums. Below this may be a larger image known as an avatar; this is generally unique or personal to each user. It is up to the board administrator to enable avatars and they have a choice over the way in which avatars can be made available. If you are unable to use avatars then this is the decision of the board admin and you should ask them their reasons (we're sure they'll be good!)"); -$faq[] = array("How do I change my rank?", "In general you cannot directly change the wording of any rank (ranks appear below your username in topics and on your profile depending on the style used). Most boards use ranks to indicate the number of posts you have made and to identify certain users. For example, moderators and administrators may have a special rank. Please do not abuse the board by posting unnecessarily just to increase your rank -- you will probably find the moderator or administrator will simply lower your post count."); -$faq[] = array("When I click the email link for a user it asks me to log in.", "Sorry, but only registered users can send email to people via the built-in email form (if the admin has enabled this feature). This is to prevent malicious use of the email system by anonymous users."); - - -$faq[] = array("--","Posting Issues"); -$faq[] = array("How do I post a topic in a forum?", "Easy -- click the relevant button on either the forum or topic screens. You may need to register before you can post a message. The facilities available to you are listed at the bottom of the forum and topic screens (the You can post new topics, You can vote in polls, etc. list)"); -$faq[] = array("How do I edit or delete a post?", "Unless you are the board admin or forum moderator you can only edit or delete your own posts. You can edit a post (sometimes for only a limited time after it was made) by clicking the edit button for the relevant post. If someone has already replied to the post, you will find a small piece of text output below the post when you return to the topic that lists the number of times you edited it. This will only appear if no one has replied; it also will not appear if moderators or administrators edit the post (they should leave a message saying what they altered and why). Please note that normal users cannot delete a post once someone has replied."); -$faq[] = array("How do I add a signature to my post?", "To add a signature to a post you must first create one; this is done via your profile. Once created you can check the Add Signature box on the posting form to add your signature. You can also add a signature by default to all your posts by checking the appropriate radio box in your profile. You can still prevent a signature being added to individual posts by un-checking the add signature box on the posting form."); -$faq[] = array("How do I create a poll?", "Creating a poll is easy -- when you post a new topic (or edit the first post of a topic, if you have permission) you should see a Add Poll form below the main posting box. If you cannot see this then you probably do not have rights to create polls. You should enter a title for the poll and then at least two options -- to set an option type in the poll question and click the Add option button. You can also set a time limit for the poll, 0 being an infinite amount. There will be a limit to the number of options you can list, which is set by the board administrator"); -$faq[] = array("How do I edit or delete a poll?", "As with posts, polls can only be edited by the original poster, a moderator, or board administrator. To edit a poll, click the first post in the topic, which always has the poll associated with it. If no one has cast a vote then users can delete the poll or edit any poll option. However, if people have already placed votes only moderators or administrators can edit or delete it; this is to prevent people rigging polls by changing options mid-way through a poll"); -$faq[] = array("Why can't I access a forum?", "Some forums may be limited to certain users or groups. To view, read, post, etc. you may need special authorization which only the forum moderator and board administrator can grant, so you should contact them."); -$faq[] = array("Why can't I vote in polls?", "Only registered users can vote in polls so as to prevent spoofing of results. If you have registered and still cannot vote then you probably do not have appropriate access rights."); - - -$faq[] = array("--","Formatting and Topic Types"); -$faq[] = array("What is BBCode?", "BBCode is a special implementation of HTML. Whether you can use BBCode is determined by the administrator. You can also disable it on a per post basis from the posting form. BBCode itself is similar in style to HTML: tags are enclosed in square braces [ and ] rather than < and > and it offers greater control over what and how something is displayed. For more information on BBCode see the guide which can be accessed from the posting page."); -$faq[] = array("Can I use HTML?", "That depends on whether the administrator allows you to; they have complete control over it. If you are allowed to use it, you will probably find only certain tags work. This is a safety feature to prevent people from abusing the board by using tags which may destroy the layout or cause other problems. If HTML is enabled you can disable it on a per post basis from the posting form."); -$faq[] = array("What are Smileys?", "Smileys, or Emoticons, are small graphical images which can be used to express some feeling using a short code, e.g. :) means happy, :( means sad. The full list of emoticons can be seen via the posting form. Try not to overuse smileys, though, as they can quickly render a post unreadable and a moderator may decide to edit them out or remove the post altogether."); -$faq[] = array("Can I post Images?", "Images can indeed be shown in your posts. However, there is no facility at present for uploading images directly to this board. Therefore you must link to an image stored on a publicly accessible web server, e.g. http://www.some-unknown-place.net/my-picture.gif. You cannot link to pictures stored on your own PC (unless it is a publicly accessible server) nor to images stored behind authentication mechanisms such as Hotmail or Yahoo mailboxes, password-protected sites, etc. To display the image use either the BBCode [img] tag or appropriate HTML (if allowed)."); -$faq[] = array("What are Announcements?", "Announcements often contain important information and you should read them as soon as possible. Announcements appear at the top of every page in the forum to which they are posted. Whether or not you can post an announcement depends on the permissions required, which are set by the administrator."); -$faq[] = array("What are Sticky topics?", "Sticky topics appear below any announcements in viewforum and only on the first page. They are often quite important so you should read them where possible. As with announcements the board administrator determines what permissions are required to post sticky topics in each forum."); -$faq[] = array("What are Locked topics?", "Locked topics are set this way by either the forum moderator or board administrator. You cannot reply to locked topics and any poll contained inside is automatically ended. Topics may be locked for many reasons."); - - -$faq[] = array("--","User Levels and Groups"); -$faq[] = array("What are Administrators?", "Administrators are people assigned the highest level of control over the entire board. These people can control all facets of board operation which include setting permissions, banning users, creating usergroups or moderators, etc. They also have full moderator capabilities in all the forums."); -$faq[] = array("What are Moderators?", "Moderators are individuals (or groups of individuals) whose job it is to look after the running of the forums from day to day. They have the power to edit or delete posts and lock, unlock, move, delete and split topics in the forum they moderate. Generally moderators are there to prevent people going off-topic or posting abusive or offensive material."); -$faq[] = array("What are Usergroups?", "Usergroups are a way in which board administrators can group users. Each user can belong to several groups (this differs from most other boards) and each group can be assigned individual access rights. This makes it easy for administrators to set up several users as moderators of a forum, or to give them access to a private forum, etc."); -$faq[] = array("How do I join a Usergroup?", "To join a usergroup click the usergroup link on the page header (dependent on template design) and you can then view all usergroups. Not all groups are open access -- some are closed and some may even have hidden memberships. If the board is open then you can request to join it by clicking the appropriate button. The user group moderator will need to approve your request; they may ask why you want to join the group. Please do not pester a group moderator if they turn your request down -- they will have their reasons."); -$faq[] = array("How do I become a Usergroup Moderator?", "Usergroups are initially created by the board administrator who also assigns a board moderator. If you are interested in creating a usergroup then your first point of contact should be the administrator, so try dropping them a private message."); - - -$faq[] = array("--","Private Messaging"); -$faq[] = array("I cannot send private messages!", "There are three reasons for this; you are not registered and/or not logged on, the board administrator has disabled private messaging for the entire board, or the board administrator has prevented you individually from sending messages. If it is the latter case you should try asking the administrator why."); -$faq[] = array("I keep getting unwanted private messages!", "In the future we will be adding an ignore list to the private messaging system. For now, though, if you keep receiving unwanted private messages from someone, inform the board administrator -- they have the power to prevent a user from sending private messages at all."); -$faq[] = array("I have received a spamming or abusive email from someone on this board!", "We are sorry to hear that. The email form feature of this board includes safeguards to try to track users who send such posts. You should email the board administrator with a full copy of the email you received and it is very important this include the headers (these list details of the user that sent the email). They can then take action."); - -// -// These entries should remain in all languages and for all modifications -// -$faq[] = array("--","phpBB 2 Issues"); -$faq[] = array("Who wrote this bulletin board?", "This software (in its unmodified form) is produced, released and is copyrighted phpBB Group. It is made available under the GNU General Public License and may be freely distributed; see link for more details"); -$faq[] = array("Why isn't X feature available?", "This software was written by and licensed through phpBB Group. If you believe a feature needs to be added then please visit the phpbb.com website and see what the phpBB Group has to say. Please do not post feature requests to the board at phpbb.com, as the Group uses sourceforge to handle tasking of new features. Please read through the forums and see what, if any, our position may already be for features and then follow the procedure given there."); -$faq[] = array("Whom do I contact about abusive and/or legal matters related to this board?", "You should contact the administrator of this board. If you cannot find who that is, you should first contact one of the forum moderators and ask them who you should in turn contact. If still get no response you should contact the owner of the domain (do a whois lookup) or, if this is running on a free service (e.g. yahoo, free.fr, f2s.com, etc.), the management or abuse department of that service. Please note that phpBB Group has absolutely no control and cannot in any way be held liable over how, where or by whom this board is used. It is absolutely pointless contacting phpBB Group in relation to any legal (cease and desist, liable, defamatory comment, etc.) matter not directly related to the phpbb.com website or the discrete software of phpBB itself. If you do email phpBB Group about any third party use of this software then you should expect a terse response or no response at all."); - -// -// This ends the FAQ entries -// - -?> \ No newline at end of file diff --git a/phpBB2/language/lang_english/lang_main.php b/phpBB2/language/lang_english/lang_main.php deleted file mode 100644 index 98f7c37..0000000 --- a/phpBB2/language/lang_english/lang_main.php +++ /dev/null @@ -1,1027 +0,0 @@ - $lang['message'] = 'text'; -// -// You should also try to set a locale and a character encoding (plus direction). The encoding and direction -// will be sent to the template. The locale may or may not work, it's dependent on OS support and the syntax -// varies ... give it your best guess! -// - -$lang['ENCODING'] = 'iso-8859-1'; -$lang['DIRECTION'] = 'ltr'; -$lang['LEFT'] = 'left'; -$lang['RIGHT'] = 'right'; -$lang['DATE_FORMAT'] = 'd M Y'; // This should be changed to the default date format for your language, php date() format - -// This is optional, if you would like a _SHORT_ message output -// along with our copyright message indicating you are the translator -// please add it here. -// $lang['TRANSLATION'] = ''; - -// -// Common, these terms are used -// extensively on several pages -// -$lang['Forum'] = 'Forum'; -$lang['Category'] = 'Category'; -$lang['Topic'] = 'Topic'; -$lang['Topics'] = 'Topics'; -$lang['Replies'] = 'Replies'; -$lang['Views'] = 'Views'; -$lang['Post'] = 'Post'; -$lang['Posts'] = 'Posts'; -$lang['Posted'] = 'Posted'; -$lang['Username'] = 'Username'; -$lang['Password'] = 'Password'; -$lang['Email'] = 'Email'; -$lang['Poster'] = 'Poster'; -$lang['Author'] = 'Author'; -$lang['Time'] = 'Time'; -$lang['Hours'] = 'Hours'; -$lang['Message'] = 'Message'; - -$lang['1_Day'] = '1 Day'; -$lang['7_Days'] = '7 Days'; -$lang['2_Weeks'] = '2 Weeks'; -$lang['1_Month'] = '1 Month'; -$lang['3_Months'] = '3 Months'; -$lang['6_Months'] = '6 Months'; -$lang['1_Year'] = '1 Year'; - -$lang['Go'] = 'Go'; -$lang['Jump_to'] = 'Jump to'; -$lang['Submit'] = 'Submit'; -$lang['Reset'] = 'Reset'; -$lang['Cancel'] = 'Cancel'; -$lang['Preview'] = 'Preview'; -$lang['Confirm'] = 'Confirm'; -$lang['Spellcheck'] = 'Spellcheck'; -$lang['Yes'] = 'Yes'; -$lang['No'] = 'No'; -$lang['Enabled'] = 'Enabled'; -$lang['Disabled'] = 'Disabled'; -$lang['Error'] = 'Error'; - -$lang['Next'] = 'Next'; -$lang['Previous'] = 'Previous'; -$lang['Goto_page'] = 'Goto page'; -$lang['Joined'] = 'Joined'; -$lang['IP_Address'] = 'IP Address'; - -$lang['Select_forum'] = 'Select a forum'; -$lang['View_latest_post'] = 'View latest post'; -$lang['View_newest_post'] = 'View newest post'; -$lang['Page_of'] = 'Page %d of %d'; // Replaces with: Page 1 of 2 for example - -$lang['ICQ'] = 'ICQ Number'; -$lang['AIM'] = 'AIM Address'; -$lang['MSNM'] = 'MSN Messenger'; -$lang['YIM'] = 'Yahoo Messenger'; - -$lang['Forum_Index'] = '%s Forum Index'; // eg. sitename Forum Index, %s can be removed if you prefer - -$lang['Post_new_topic'] = 'Post new topic'; -$lang['Reply_to_topic'] = 'Reply to topic'; -$lang['Reply_with_quote'] = 'Reply with quote'; - -$lang['Click_return_topic'] = 'Click %sHere%s to return to the topic'; // %s's here are for uris, do not remove! -$lang['Click_return_login'] = 'Click %sHere%s to try again'; -$lang['Click_return_forum'] = 'Click %sHere%s to return to the forum'; -$lang['Click_view_message'] = 'Click %sHere%s to view your message'; -$lang['Click_return_modcp'] = 'Click %sHere%s to return to the Moderator Control Panel'; -$lang['Click_return_group'] = 'Click %sHere%s to return to group information'; - -$lang['Admin_panel'] = 'Go to Administration Panel'; - -$lang['Board_disable'] = 'Gone surfing. Try again in 2 weeks! Masu.'; - - -// -// Global Header strings -// -$lang['Registered_users'] = 'Registered Users:'; -$lang['Browsing_forum'] = 'Users browsing this forum:'; -$lang['Online_users_zero_total'] = 'In total there are 0 users online :: '; -$lang['Online_users_total'] = 'In total there are %d users online :: '; -$lang['Online_user_total'] = 'In total there is %d user online :: '; -$lang['Reg_users_zero_total'] = '0 Registered, '; -$lang['Reg_users_total'] = '%d Registered, '; -$lang['Reg_user_total'] = '%d Registered, '; -$lang['Hidden_users_zero_total'] = '0 Hidden and '; -$lang['Hidden_user_total'] = '%d Hidden and '; -$lang['Hidden_users_total'] = '%d Hidden and '; -$lang['Guest_users_zero_total'] = '0 Guests'; -$lang['Guest_users_total'] = '%d Guests'; -$lang['Guest_user_total'] = '%d Guest'; -$lang['Record_online_users'] = 'Most users ever online was %s on %s'; // first %s = number of users, second %s is the date. - -$lang['Admin_online_color'] = '%sAdministrator%s'; -$lang['Mod_online_color'] = '%sModerator%s'; - -$lang['You_last_visit'] = 'You last visited on %s'; // %s replaced by date/time -$lang['Current_time'] = 'The time now is %s'; // %s replaced by time - -$lang['Search_new'] = 'View posts since last visit'; -$lang['Search_your_posts'] = 'View your posts'; -$lang['Search_unanswered'] = 'View unanswered posts'; - -$lang['Register'] = 'Register'; -$lang['Profile'] = 'Profile'; -$lang['Edit_profile'] = 'Edit your profile'; -$lang['Search'] = 'Search'; -$lang['Memberlist'] = 'Memberlist'; -$lang['FAQ'] = 'FAQ'; -$lang['BBCode_guide'] = 'BBCode Guide'; -$lang['Usergroups'] = 'Usergroups'; -$lang['Last_Post'] = 'Last Post'; -$lang['Moderator'] = 'Moderator'; -$lang['Moderators'] = 'Moderators'; - - -// -// Stats block text -// -$lang['Posted_articles_zero_total'] = 'Our users have posted a total of 0 articles'; // Number of posts -$lang['Posted_articles_total'] = 'Our users have posted a total of %d articles'; // Number of posts -$lang['Posted_article_total'] = 'Our users have posted a total of %d article'; // Number of posts -$lang['Registered_users_zero_total'] = 'We have 0 registered users'; // # registered users -$lang['Registered_users_total'] = 'We have %d registered users'; // # registered users -$lang['Registered_user_total'] = 'We have %d registered user'; // # registered users -$lang['Newest_user'] = 'The newest registered user is %s%s%s'; // a href, username, /a - -$lang['No_new_posts_last_visit'] = 'No new posts since your last visit'; -$lang['No_new_posts'] = 'No new posts'; -$lang['New_posts'] = 'New posts'; -$lang['New_post'] = 'New post'; -$lang['No_new_posts_hot'] = 'No new posts [ Popular ]'; -$lang['New_posts_hot'] = 'New posts [ Popular ]'; -$lang['No_new_posts_locked'] = 'No new posts [ Locked ]'; -$lang['New_posts_locked'] = 'New posts [ Locked ]'; -$lang['Forum_is_locked'] = 'Forum is locked'; - - -// -// Login -// -$lang['Enter_password'] = 'Please enter your username and password to log in.'; -$lang['Login'] = 'Log in'; -$lang['Logout'] = 'Log out'; - -$lang['Forgotten_password'] = 'I forgot my password'; - -$lang['Log_me_in'] = 'Log me on automatically each visit'; - -$lang['Error_login'] = 'You have specified an incorrect or inactive username, or an invalid password.'; - - -// -// Index page -// -$lang['Index'] = 'Index'; -$lang['No_Posts'] = 'No Posts'; -$lang['No_forums'] = 'This board has no forums'; - -$lang['Private_Message'] = 'Private Message'; -$lang['Private_Messages'] = 'Private Messages'; -$lang['Who_is_Online'] = 'Who is Online'; - -$lang['Mark_all_forums'] = 'Mark all forums read'; -$lang['Forums_marked_read'] = 'All forums have been marked read'; - - -// -// Viewforum -// -$lang['View_forum'] = 'View Forum'; - -$lang['Forum_not_exist'] = 'The forum you selected does not exist.'; -$lang['Reached_on_error'] = 'You have reached this page in error.'; - -$lang['Display_topics'] = 'Display topics from previous'; -$lang['All_Topics'] = 'All Topics'; - -$lang['Topic_Announcement'] = 'Announcement:'; -$lang['Topic_Sticky'] = 'Sticky:'; -$lang['Topic_Moved'] = 'Moved:'; -$lang['Topic_Poll'] = '[ Poll ]'; - -$lang['Mark_all_topics'] = 'Mark all topics read'; -$lang['Topics_marked_read'] = 'The topics for this forum have now been marked read'; - -$lang['Rules_post_can'] = 'You can post new topics in this forum'; -$lang['Rules_post_cannot'] = 'You cannot post new topics in this forum'; -$lang['Rules_reply_can'] = 'You can reply to topics in this forum'; -$lang['Rules_reply_cannot'] = 'You cannot reply to topics in this forum'; -$lang['Rules_edit_can'] = 'You can edit your posts in this forum'; -$lang['Rules_edit_cannot'] = 'You cannot edit your posts in this forum'; -$lang['Rules_delete_can'] = 'You can delete your posts in this forum'; -$lang['Rules_delete_cannot'] = 'You cannot delete your posts in this forum'; -$lang['Rules_vote_can'] = 'You can vote in polls in this forum'; -$lang['Rules_vote_cannot'] = 'You cannot vote in polls in this forum'; -$lang['Rules_moderate'] = 'You can %smoderate this forum%s'; // %s replaced by a href links, do not remove! - -$lang['No_topics_post_one'] = 'There are no posts in this forum.
    Click on the Post New Topic link on this page to post one.'; - - -// -// Viewtopic -// -$lang['View_topic'] = 'View topic'; - -$lang['Guest'] = 'Guest'; -$lang['Post_subject'] = 'Post subject'; -$lang['View_next_topic'] = 'View next topic'; -$lang['View_previous_topic'] = 'View previous topic'; -$lang['Submit_vote'] = 'Submit Vote'; -$lang['View_results'] = 'View Results'; - -$lang['No_newer_topics'] = 'There are no newer topics in this forum'; -$lang['No_older_topics'] = 'There are no older topics in this forum'; -$lang['Topic_post_not_exist'] = 'The topic or post you requested does not exist'; -$lang['No_posts_topic'] = 'No posts exist for this topic'; - -$lang['Display_posts'] = 'Display posts from previous'; -$lang['All_Posts'] = 'All Posts'; -$lang['Newest_First'] = 'Newest First'; -$lang['Oldest_First'] = 'Oldest First'; - -$lang['Back_to_top'] = 'Back to top'; - -$lang['Read_profile'] = 'View user\'s profile'; -$lang['Visit_website'] = 'Visit poster\'s website'; -$lang['ICQ_status'] = 'ICQ Status'; -$lang['Edit_delete_post'] = 'Edit/Delete this post'; -$lang['View_IP'] = 'View IP address of poster'; -$lang['Delete_post'] = 'Delete this post'; - -$lang['wrote'] = 'wrote'; // proceeds the username and is followed by the quoted text -$lang['Quote'] = 'Quote'; // comes before bbcode quote output. -$lang['Code'] = 'Code'; // comes before bbcode code output. - -$lang['Edited_time_total'] = 'Last edited by %s on %s; edited %d time in total'; // Last edited by me on 12 Oct 2001; edited 1 time in total -$lang['Edited_times_total'] = 'Last edited by %s on %s; edited %d times in total'; // Last edited by me on 12 Oct 2001; edited 2 times in total - -$lang['Lock_topic'] = 'Lock this topic'; -$lang['Unlock_topic'] = 'Unlock this topic'; -$lang['Move_topic'] = 'Move this topic'; -$lang['Delete_topic'] = 'Delete this topic'; -$lang['Split_topic'] = 'Split this topic'; - -$lang['Stop_watching_topic'] = 'Stop watching this topic'; -$lang['Start_watching_topic'] = 'Watch this topic for replies'; -$lang['No_longer_watching'] = 'You are no longer watching this topic'; -$lang['You_are_watching'] = 'You are now watching this topic'; - -$lang['Total_votes'] = 'Total Votes'; - -// -// Posting/Replying (Not private messaging!) -// -$lang['Message_body'] = 'Message body'; -$lang['Topic_review'] = 'Topic review'; - -$lang['No_post_mode'] = 'No post mode specified'; // If posting.php is called without a mode (newtopic/reply/delete/etc, shouldn't be shown normaly) - -$lang['Post_a_new_topic'] = 'Post a new topic'; -$lang['Post_a_reply'] = 'Post a reply'; -$lang['Post_topic_as'] = 'Post topic as'; -$lang['Edit_Post'] = 'Edit post'; -$lang['Options'] = 'Options'; - -$lang['Post_Announcement'] = 'Announcement'; -$lang['Post_Sticky'] = 'Sticky'; -$lang['Post_Normal'] = 'Normal'; - -$lang['Confirm_delete'] = 'Are you sure you want to delete this post?'; -$lang['Confirm_delete_poll'] = 'Are you sure you want to delete this poll?'; - -$lang['Flood_Error'] = 'You cannot make another post so soon after your last; please try again in a short while.'; -$lang['Empty_subject'] = 'You must specify a subject when posting a new topic.'; -$lang['Empty_message'] = 'You must enter a message when posting.'; -$lang['Forum_locked'] = 'This forum is locked: you cannot post, reply to, or edit topics.'; -$lang['Topic_locked'] = 'This topic is locked: you cannot edit posts or make replies.'; -$lang['No_post_id'] = 'You must select a post to edit'; -$lang['No_topic_id'] = 'You must select a topic to reply to'; -$lang['No_valid_mode'] = 'You can only post, reply, edit, or quote messages. Please return and try again.'; -$lang['No_such_post'] = 'There is no such post. Please return and try again.'; -$lang['Edit_own_posts'] = 'Sorry, but you can only edit your own posts.'; -$lang['Delete_own_posts'] = 'Sorry, but you can only delete your own posts.'; -$lang['Cannot_delete_replied'] = 'Sorry, but you may not delete posts that have been replied to.'; -$lang['Cannot_delete_poll'] = 'Sorry, but you cannot delete an active poll.'; -$lang['Empty_poll_title'] = 'You must enter a title for your poll.'; -$lang['To_few_poll_options'] = 'You must enter at least two poll options.'; -$lang['To_many_poll_options'] = 'You have tried to enter too many poll options.'; -$lang['Post_has_no_poll'] = 'This post has no poll.'; -$lang['Already_voted'] = 'You have already voted in this poll.'; -$lang['No_vote_option'] = 'You must specify an option when voting.'; - -$lang['Add_poll'] = 'Add a Poll'; -$lang['Add_poll_explain'] = 'If you do not want to add a poll to your topic, leave the fields blank.'; -$lang['Poll_question'] = 'Poll question'; -$lang['Poll_option'] = 'Poll option'; -$lang['Add_option'] = 'Add option'; -$lang['Update'] = 'Update'; -$lang['Delete'] = 'Delete'; -$lang['Poll_for'] = 'Run poll for'; -$lang['Days'] = 'Days'; // This is used for the Run poll for ... Days + in admin_forums for pruning -$lang['Poll_for_explain'] = '[ Enter 0 or leave blank for a never-ending poll ]'; -$lang['Delete_poll'] = 'Delete Poll'; - -$lang['Disable_HTML_post'] = 'Disable HTML in this post'; -$lang['Disable_BBCode_post'] = 'Disable BBCode in this post'; -$lang['Disable_Smilies_post'] = 'Disable Smilies in this post'; - -$lang['HTML_is_ON'] = 'HTML is ON'; -$lang['HTML_is_OFF'] = 'HTML is OFF'; -$lang['BBCode_is_ON'] = '%sBBCode%s is ON'; // %s are replaced with URI pointing to FAQ -$lang['BBCode_is_OFF'] = '%sBBCode%s is OFF'; -$lang['Smilies_are_ON'] = 'Smilies are ON'; -$lang['Smilies_are_OFF'] = 'Smilies are OFF'; - -$lang['Attach_signature'] = 'Attach signature (signatures can be changed in profile)'; -$lang['Notify'] = 'Notify me when a reply is posted'; - -$lang['Stored'] = 'Your message has been entered successfully.'; -$lang['Deleted'] = 'Your message has been deleted successfully.'; -$lang['Poll_delete'] = 'Your poll has been deleted successfully.'; -$lang['Vote_cast'] = 'Your vote has been cast.'; - -$lang['Topic_reply_notification'] = 'Topic Reply Notification'; - -$lang['bbcode_b_help'] = 'Bold text: [b]text[/b] (alt+b)'; -$lang['bbcode_i_help'] = 'Italic text: [i]text[/i] (alt+i)'; -$lang['bbcode_u_help'] = 'Underline text: [u]text[/u] (alt+u)'; -$lang['bbcode_q_help'] = 'Quote text: [quote]text[/quote] (alt+q)'; -$lang['bbcode_c_help'] = 'Code display: [code]code[/code] (alt+c)'; -$lang['bbcode_l_help'] = 'List: [list]text[/list] (alt+l)'; -$lang['bbcode_o_help'] = 'Ordered list: [list=]text[/list] (alt+o)'; -$lang['bbcode_p_help'] = 'Insert image: [img]http://image_url[/img] (alt+p)'; -$lang['bbcode_w_help'] = 'Insert URL: [url]http://url[/url] or [url=http://url]URL text[/url] (alt+w)'; -$lang['bbcode_a_help'] = 'Close all open bbCode tags'; -$lang['bbcode_s_help'] = 'Font color: [color=red]text[/color] Tip: you can also use color=#FF0000'; -$lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]'; - -$lang['Emoticons'] = 'Emoticons'; -$lang['More_emoticons'] = 'View more Emoticons'; - -$lang['Font_color'] = 'Font colour'; -$lang['color_default'] = 'Default'; -$lang['color_dark_red'] = 'Dark Red'; -$lang['color_red'] = 'Red'; -$lang['color_orange'] = 'Orange'; -$lang['color_brown'] = 'Brown'; -$lang['color_yellow'] = 'Yellow'; -$lang['color_green'] = 'Green'; -$lang['color_olive'] = 'Olive'; -$lang['color_cyan'] = 'Cyan'; -$lang['color_blue'] = 'Blue'; -$lang['color_dark_blue'] = 'Dark Blue'; -$lang['color_indigo'] = 'Indigo'; -$lang['color_violet'] = 'Violet'; -$lang['color_white'] = 'White'; -$lang['color_black'] = 'Black'; - -$lang['Font_size'] = 'Font size'; -$lang['font_tiny'] = 'Tiny'; -$lang['font_small'] = 'Small'; -$lang['font_normal'] = 'Normal'; -$lang['font_large'] = 'Large'; -$lang['font_huge'] = 'Huge'; - -$lang['Close_Tags'] = 'Close Tags'; -$lang['Styles_tip'] = 'Tip: Styles can be applied quickly to selected text.'; - - -// -// Private Messaging -// -$lang['Private_Messaging'] = 'Private Messaging'; - -$lang['Login_check_pm'] = 'Log in to check your private messages'; -$lang['New_pms'] = 'You have %d new messages'; // You have 2 new messages -$lang['New_pm'] = 'You have %d new message'; // You have 1 new message -$lang['No_new_pm'] = 'You have no new messages'; -$lang['Unread_pms'] = 'You have %d unread messages'; -$lang['Unread_pm'] = 'You have %d unread message'; -$lang['No_unread_pm'] = 'You have no unread messages'; -$lang['You_new_pm'] = 'A new private message is waiting for you in your Inbox'; -$lang['You_new_pms'] = 'New private messages are waiting for you in your Inbox'; -$lang['You_no_new_pm'] = 'No new private messages are waiting for you'; - -$lang['Unread_message'] = 'Unread message'; -$lang['Read_message'] = 'Read message'; - -$lang['Read_pm'] = 'Read message'; -$lang['Post_new_pm'] = 'Post message'; -$lang['Post_reply_pm'] = 'Reply to message'; -$lang['Post_quote_pm'] = 'Quote message'; -$lang['Edit_pm'] = 'Edit message'; - -$lang['Inbox'] = 'Inbox'; -$lang['Outbox'] = 'Outbox'; -$lang['Savebox'] = 'Savebox'; -$lang['Sentbox'] = 'Sentbox'; -$lang['Flag'] = 'Flag'; -$lang['Subject'] = 'Subject'; -$lang['From'] = 'From'; -$lang['To'] = 'To'; -$lang['Date'] = 'Date'; -$lang['Mark'] = 'Mark'; -$lang['Sent'] = 'Sent'; -$lang['Saved'] = 'Saved'; -$lang['Delete_marked'] = 'Delete Marked'; -$lang['Delete_all'] = 'Delete All'; -$lang['Save_marked'] = 'Save Marked'; -$lang['Save_message'] = 'Save Message'; -$lang['Delete_message'] = 'Delete Message'; - -$lang['Display_messages'] = 'Display messages from previous'; // Followed by number of days/weeks/months -$lang['All_Messages'] = 'All Messages'; - -$lang['No_messages_folder'] = 'You have no messages in this folder'; - -$lang['PM_disabled'] = 'Private messaging has been disabled on this board.'; -$lang['Cannot_send_privmsg'] = 'Sorry, but the administrator has prevented you from sending private messages.'; -$lang['No_to_user'] = 'You must specify a username to whom to send this message.'; -$lang['No_such_user'] = 'Sorry, but no such user exists.'; - -$lang['Disable_HTML_pm'] = 'Disable HTML in this message'; -$lang['Disable_BBCode_pm'] = 'Disable BBCode in this message'; -$lang['Disable_Smilies_pm'] = 'Disable Smilies in this message'; - -$lang['Message_sent'] = 'Your message has been sent.'; - -$lang['Click_return_inbox'] = 'Click %sHere%s to return to your Inbox'; -$lang['Click_return_index'] = 'Click %sHere%s to return to the Index'; - -$lang['Send_a_new_message'] = 'Send a new private message'; -$lang['Send_a_reply'] = 'Reply to a private message'; -$lang['Edit_message'] = 'Edit private message'; - -$lang['Notification_subject'] = 'New Private Message has arrived!'; - -$lang['Find_username'] = 'Find a username'; -$lang['Find'] = 'Find'; -$lang['No_match'] = 'No matches found.'; - -$lang['No_post_id'] = 'No post ID was specified'; -$lang['No_such_folder'] = 'No such folder exists'; -$lang['No_folder'] = 'No folder specified'; - -$lang['Mark_all'] = 'Mark all'; -$lang['Unmark_all'] = 'Unmark all'; - -$lang['Confirm_delete_pm'] = 'Are you sure you want to delete this message?'; -$lang['Confirm_delete_pms'] = 'Are you sure you want to delete these messages?'; - -$lang['Inbox_size'] = 'Your Inbox is %d%% full'; // eg. Your Inbox is 50% full -$lang['Sentbox_size'] = 'Your Sentbox is %d%% full'; -$lang['Savebox_size'] = 'Your Savebox is %d%% full'; - -$lang['Click_view_privmsg'] = 'Click %sHere%s to visit your Inbox'; - - -// -// Profiles/Registration -// -$lang['Viewing_user_profile'] = 'Viewing profile :: %s'; // %s is username -$lang['About_user'] = 'All about %s'; // %s is username - -$lang['Preferences'] = 'Preferences'; -$lang['Items_required'] = 'Items marked with a * are required unless stated otherwise.'; -$lang['Registration_info'] = 'Registration Information'; -$lang['Profile_info'] = 'Profile Information'; -$lang['Profile_info_warn'] = 'This information will be publicly viewable'; -$lang['Avatar_panel'] = 'Avatar control panel'; -$lang['Avatar_gallery'] = 'Avatar gallery'; - -$lang['Website'] = 'Website'; -$lang['Location'] = 'Location'; -$lang['Contact'] = 'Contact'; -$lang['Email_address'] = 'E-mail address'; -$lang['Send_private_message'] = 'Send private message'; -$lang['Hidden_email'] = '[ Hidden ]'; -$lang['Interests'] = 'Interests'; -$lang['Occupation'] = 'Occupation'; -$lang['Poster_rank'] = 'Poster rank'; - -$lang['Total_posts'] = 'Total posts'; -$lang['User_post_pct_stats'] = '%.2f%% of total'; // 1.25% of total -$lang['User_post_day_stats'] = '%.2f posts per day'; // 1.5 posts per day -$lang['Search_user_posts'] = 'Find all posts by %s'; // Find all posts by username - -$lang['No_user_id_specified'] = 'Sorry, but that user does not exist.'; -$lang['Wrong_Profile'] = 'You cannot modify a profile that is not your own.'; - -$lang['Only_one_avatar'] = 'Only one type of avatar can be specified'; -$lang['File_no_data'] = 'The file at the URL you gave contains no data'; -$lang['No_connection_URL'] = 'A connection could not be made to the URL you gave'; -$lang['Incomplete_URL'] = 'The URL you entered is incomplete'; -$lang['Wrong_remote_avatar_format'] = 'The URL of the remote avatar is not valid'; -$lang['No_send_account_inactive'] = 'Sorry, but your password cannot be retrieved because your account is currently inactive. Please contact the forum administrator for more information.'; - -$lang['Always_smile'] = 'Always enable Smilies'; -$lang['Always_html'] = 'Always allow HTML'; -$lang['Always_bbcode'] = 'Always allow BBCode'; -$lang['Always_add_sig'] = 'Always attach my signature'; -$lang['Always_notify'] = 'Always notify me of replies'; -$lang['Always_notify_explain'] = 'Sends an e-mail when someone replies to a topic you have posted in. This can be changed whenever you post.'; - -$lang['Board_style'] = 'Board Style'; -$lang['Board_lang'] = 'Board Language'; -$lang['No_themes'] = 'No Themes In database'; -$lang['Timezone'] = 'Timezone'; -$lang['Date_format'] = 'Date format'; -$lang['Date_format_explain'] = 'The syntax used is identical to the PHP date() function.'; -$lang['Signature'] = 'Signature'; -$lang['Signature_explain'] = 'This is a block of text that can be added to posts you make. There is a %d character limit'; -$lang['Public_view_email'] = 'Always show my e-mail address'; - -$lang['Current_password'] = 'Current password'; -$lang['New_password'] = 'New password'; -$lang['Confirm_password'] = 'Confirm password'; -$lang['Confirm_password_explain'] = 'You must confirm your current password if you wish to change it or alter your e-mail address'; -$lang['password_if_changed'] = 'You only need to supply a password if you want to change it'; -$lang['password_confirm_if_changed'] = 'You only need to confirm your password if you changed it above'; - -$lang['Avatar'] = 'Avatar'; -$lang['Avatar_explain'] = 'Displays a small graphic image below your details in posts. Only one image can be displayed at a time, its width can be no greater than %d pixels, the height no greater than %d pixels, and the file size no more than %d KB.'; -$lang['Upload_Avatar_file'] = 'Upload Avatar from your machine'; -$lang['Upload_Avatar_URL'] = 'Upload Avatar from a URL'; -$lang['Upload_Avatar_URL_explain'] = 'Enter the URL of the location containing the Avatar image, it will be copied to this site.'; -$lang['Pick_local_Avatar'] = 'Select Avatar from the gallery'; -$lang['Link_remote_Avatar'] = 'Link to off-site Avatar'; -$lang['Link_remote_Avatar_explain'] = 'Enter the URL of the location containing the Avatar image you wish to link to.'; -$lang['Avatar_URL'] = 'URL of Avatar Image'; -$lang['Select_from_gallery'] = 'Select Avatar from gallery'; -$lang['View_avatar_gallery'] = 'Show gallery'; - -$lang['Select_avatar'] = 'Select avatar'; -$lang['Return_profile'] = 'Cancel avatar'; -$lang['Select_category'] = 'Select category'; - -$lang['Delete_Image'] = 'Delete Image'; -$lang['Current_Image'] = 'Current Image'; - -$lang['Notify_on_privmsg'] = 'Notify on new Private Message'; -$lang['Popup_on_privmsg'] = 'Pop up window on new Private Message'; -$lang['Popup_on_privmsg_explain'] = 'Some templates may open a new window to inform you when new private messages arrive.'; -$lang['Hide_user'] = 'Hide your online status'; - -$lang['Profile_updated'] = 'Your profile has been updated'; -$lang['Profile_updated_inactive'] = 'Your profile has been updated. However, you have changed vital details, thus your account is now inactive. Check your e-mail to find out how to reactivate your account, or if admin activation is required, wait for the administrator to reactivate it.'; - -$lang['Password_mismatch'] = 'The passwords you entered did not match.'; -$lang['Current_password_mismatch'] = 'The current password you supplied does not match that stored in the database.'; -$lang['Password_long'] = 'Your password must be no more than 32 characters.'; -$lang['Username_taken'] = 'Sorry, but this username has already been taken.'; -$lang['Username_invalid'] = 'Sorry, but this username contains an invalid character such as \'.'; -$lang['Username_disallowed'] = 'Sorry, but this username has been disallowed.'; -$lang['Email_taken'] = 'Sorry, but that e-mail address is already registered to a user.'; -$lang['Email_banned'] = 'Sorry, but this e-mail address has been banned.'; -$lang['Email_invalid'] = 'Sorry, but this e-mail address is invalid.'; -$lang['Signature_too_long'] = 'Your signature is too long.'; -$lang['Fields_empty'] = 'You must fill in the required fields.'; -$lang['Avatar_filetype'] = 'The avatar filetype must be .jpg, .gif or .png'; -$lang['Avatar_filesize'] = 'The avatar image file size must be less than %d KB'; // The avatar image file size must be less than 6 KB -$lang['Avatar_imagesize'] = 'The avatar must be less than %d pixels wide and %d pixels high'; - -$lang['Welcome_subject'] = 'Welcome to %s Forums'; // Welcome to my.com forums -$lang['New_account_subject'] = 'New user account'; -$lang['Account_activated_subject'] = 'Account Activated'; - -$lang['Account_added'] = 'Thank you for registering. Your account has been created. You may now log in with your username and password'; -$lang['Account_inactive'] = 'Your account has been created. However, this forum requires account activation. An activation key has been sent to the e-mail address you provided. Please check your e-mail for further information'; -$lang['Account_inactive_admin'] = 'Your account has been created. However, this forum requires account activation by the administrator. An e-mail has been sent to them and you will be informed when your account has been activated'; -$lang['Account_active'] = 'Your account has now been activated. Thank you for registering'; -$lang['Account_active_admin'] = 'The account has now been activated'; -$lang['Reactivate'] = 'Reactivate your account!'; -$lang['Already_activated'] = 'You have already activated your account'; -$lang['COPPA'] = 'Your account has been created but has to be approved. Please check your e-mail for details.'; - -$lang['Registration'] = 'Registration Agreement Terms'; -$lang['Reg_agreement'] = 'While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.

    You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.

    This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above; they serve only to improve your viewing pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).

    By clicking Register below you agree to be bound by these conditions.'; - -$lang['Agree_under_13'] = 'I Agree to these terms and am under 13 years of age'; -$lang['Agree_over_13'] = 'I Agree to these terms and am over or exactly 13 years of age'; -$lang['Agree_not'] = 'I do not agree to these terms'; - -$lang['Wrong_activation'] = 'The activation key you supplied does not match any in the database.'; -$lang['Send_password'] = 'Send me a new password'; -$lang['Password_updated'] = 'A new password has been created; please check your e-mail for details on how to activate it.'; -$lang['No_email_match'] = 'The e-mail address you supplied does not match the one listed for that username.'; -$lang['New_password_activation'] = 'New password activation'; -$lang['Password_activated'] = 'Your account has been re-activated. To log in, please use the password supplied in the e-mail you received.'; - -$lang['Send_email_msg'] = 'Send an e-mail message'; -$lang['No_user_specified'] = 'No user was specified'; -$lang['User_prevent_email'] = 'This user does not wish to receive e-mail. Try sending them a private message.'; -$lang['User_not_exist'] = 'That user does not exist'; -$lang['CC_email'] = 'Send a copy of this e-mail to yourself'; -$lang['Email_message_desc'] = 'This message will be sent as plain text, so do not include any HTML or BBCode. The return address for this message will be set to your e-mail address.'; -$lang['Flood_email_limit'] = 'You cannot send another e-mail at this time. Try again later.'; -$lang['Recipient'] = 'Recipient'; -$lang['Email_sent'] = 'The e-mail has been sent.'; -$lang['Send_email'] = 'Send e-mail'; -$lang['Empty_subject_email'] = 'You must specify a subject for the e-mail.'; -$lang['Empty_message_email'] = 'You must enter a message to be e-mailed.'; - - -// -// Visual confirmation system strings -// -$lang['Confirm_code_wrong'] = 'The confirmation code you entered was incorrect'; -$lang['Too_many_registers'] = 'You have exceeded the number of registration attempts for this session. Please try again later.'; -$lang['Confirm_code_impaired'] = 'If you are visually impaired or cannot otherwise read this code please contact the %sAdministrator%s for help.'; -$lang['Confirm_code'] = 'Confirmation code'; -$lang['Confirm_code_explain'] = 'Enter the code exactly as you see it. The code is case sensitive and zero has a diagonal line through it.'; - - - -// -// Memberslist -// -$lang['Select_sort_method'] = 'Select sort method'; -$lang['Sort'] = 'Sort'; -$lang['Sort_Top_Ten'] = 'Top Ten Posters'; -$lang['Sort_Joined'] = 'Joined Date'; -$lang['Sort_Username'] = 'Username'; -$lang['Sort_Location'] = 'Location'; -$lang['Sort_Posts'] = 'Total posts'; -$lang['Sort_Email'] = 'Email'; -$lang['Sort_Website'] = 'Website'; -$lang['Sort_Ascending'] = 'Ascending'; -$lang['Sort_Descending'] = 'Descending'; -$lang['Order'] = 'Order'; - - -// -// Group control panel -// -$lang['Group_Control_Panel'] = 'Group Control Panel'; -$lang['Group_member_details'] = 'Group Membership Details'; -$lang['Group_member_join'] = 'Join a Group'; - -$lang['Group_Information'] = 'Group Information'; -$lang['Group_name'] = 'Group name'; -$lang['Group_description'] = 'Group description'; -$lang['Group_membership'] = 'Group membership'; -$lang['Group_Members'] = 'Group Members'; -$lang['Group_Moderator'] = 'Group Moderator'; -$lang['Pending_members'] = 'Pending Members'; - -$lang['Group_type'] = 'Group type'; -$lang['Group_open'] = 'Open group'; -$lang['Group_closed'] = 'Closed group'; -$lang['Group_hidden'] = 'Hidden group'; - -$lang['Current_memberships'] = 'Current memberships'; -$lang['Non_member_groups'] = 'Non-member groups'; -$lang['Memberships_pending'] = 'Memberships pending'; - -$lang['No_groups_exist'] = 'No Groups Exist'; -$lang['Group_not_exist'] = 'That user group does not exist'; - -$lang['Join_group'] = 'Join Group'; -$lang['No_group_members'] = 'This group has no members'; -$lang['Group_hidden_members'] = 'This group is hidden; you cannot view its membership'; -$lang['No_pending_group_members'] = 'This group has no pending members'; -$lang['Group_joined'] = 'You have successfully subscribed to this group.
    You will be notified when your subscription is approved by the group moderator.'; -$lang['Group_request'] = 'A request to join your group has been made.'; -$lang['Group_approved'] = 'Your request has been approved.'; -$lang['Group_added'] = 'You have been added to this usergroup.'; -$lang['Already_member_group'] = 'You are already a member of this group'; -$lang['User_is_member_group'] = 'User is already a member of this group'; -$lang['Group_type_updated'] = 'Successfully updated group type.'; - -$lang['Could_not_add_user'] = 'The user you selected does not exist.'; -$lang['Could_not_anon_user'] = 'You cannot make Anonymous a group member.'; - -$lang['Confirm_unsub'] = 'Are you sure you want to unsubscribe from this group?'; -$lang['Confirm_unsub_pending'] = 'Your subscription to this group has not yet been approved; are you sure you want to unsubscribe?'; - -$lang['Unsub_success'] = 'You have been un-subscribed from this group.'; - -$lang['Approve_selected'] = 'Approve Selected'; -$lang['Deny_selected'] = 'Deny Selected'; -$lang['Not_logged_in'] = 'You must be logged in to join a group.'; -$lang['Remove_selected'] = 'Remove Selected'; -$lang['Add_member'] = 'Add Member'; -$lang['Not_group_moderator'] = 'You are not this group\'s moderator, therefore you cannot perform that action.'; - -$lang['Login_to_join'] = 'Log in to join or manage group memberships'; -$lang['This_open_group'] = 'This is an open group: click to request membership'; -$lang['This_closed_group'] = 'This is a closed group: no more users accepted'; -$lang['This_hidden_group'] = 'This is a hidden group: automatic user addition is not allowed'; -$lang['Member_this_group'] = 'You are a member of this group'; -$lang['Pending_this_group'] = 'Your membership of this group is pending'; -$lang['Are_group_moderator'] = 'You are the group moderator'; -$lang['None'] = 'None'; - -$lang['Subscribe'] = 'Subscribe'; -$lang['Unsubscribe'] = 'Unsubscribe'; -$lang['View_Information'] = 'View Information'; - - -// -// Search -// -$lang['Search_query'] = 'Search Query'; -$lang['Search_options'] = 'Search Options'; - -$lang['Search_keywords'] = 'Search for Keywords'; -$lang['Search_keywords_explain'] = 'You can use AND to define words which must be in the results, OR to define words which may be in the result and NOT to define words which should not be in the result. Use * as a wildcard for partial matches'; -$lang['Search_author'] = 'Search for Author'; -$lang['Search_author_explain'] = 'Use * as a wildcard for partial matches'; - -$lang['Search_for_any'] = 'Search for any terms or use query as entered'; -$lang['Search_for_all'] = 'Search for all terms'; -$lang['Search_title_msg'] = 'Search topic title and message text'; -$lang['Search_msg_only'] = 'Search message text only'; - -$lang['Return_first'] = 'Return first'; // followed by xxx characters in a select box -$lang['characters_posts'] = 'characters of posts'; - -$lang['Search_previous'] = 'Search previous'; // followed by days, weeks, months, year, all in a select box - -$lang['Sort_by'] = 'Sort by'; -$lang['Sort_Time'] = 'Post Time'; -$lang['Sort_Post_Subject'] = 'Post Subject'; -$lang['Sort_Topic_Title'] = 'Topic Title'; -$lang['Sort_Author'] = 'Author'; -$lang['Sort_Forum'] = 'Forum'; - -$lang['Display_results'] = 'Display results as'; -$lang['All_available'] = 'All available'; -$lang['No_searchable_forums'] = 'You do not have permissions to search any forum on this site.'; - -$lang['No_search_match'] = 'No topics or posts met your search criteria'; -$lang['Found_search_match'] = 'Search found %d match'; // eg. Search found 1 match -$lang['Found_search_matches'] = 'Search found %d matches'; // eg. Search found 24 matches -$lang['Search_Flood_Error'] = 'You cannot make another search so soon after your last; please try again in a short while.'; - -$lang['Close_window'] = 'Close Window'; - - -// -// Auth related entries -// -// Note the %s will be replaced with one of the following 'user' arrays -$lang['Sorry_auth_announce'] = 'Sorry, but only %s can post announcements in this forum.'; -$lang['Sorry_auth_sticky'] = 'Sorry, but only %s can post sticky messages in this forum.'; -$lang['Sorry_auth_read'] = 'Sorry, but only %s can read topics in this forum.'; -$lang['Sorry_auth_post'] = 'Sorry, but only %s can post topics in this forum.'; -$lang['Sorry_auth_reply'] = 'Sorry, but only %s can reply to posts in this forum.'; -$lang['Sorry_auth_edit'] = 'Sorry, but only %s can edit posts in this forum.'; -$lang['Sorry_auth_delete'] = 'Sorry, but only %s can delete posts in this forum.'; -$lang['Sorry_auth_vote'] = 'Sorry, but only %s can vote in polls in this forum.'; - -// These replace the %s in the above strings -$lang['Auth_Anonymous_Users'] = 'anonymous users'; -$lang['Auth_Registered_Users'] = 'registered users'; -$lang['Auth_Users_granted_access'] = 'users granted special access'; -$lang['Auth_Moderators'] = 'moderators'; -$lang['Auth_Administrators'] = 'administrators'; - -$lang['Not_Moderator'] = 'You are not a moderator of this forum.'; -$lang['Not_Authorised'] = 'Not Authorised'; - -$lang['You_been_banned'] = 'You have been banned from this forum.
    Please contact the webmaster or board administrator for more information.'; - - -// -// Viewonline -// -$lang['Reg_users_zero_online'] = 'There are 0 Registered users and '; // There are 5 Registered and -$lang['Reg_users_online'] = 'There are %d Registered users and '; // There are 5 Registered and -$lang['Reg_user_online'] = 'There is %d Registered user and '; // There is 1 Registered and -$lang['Hidden_users_zero_online'] = '0 Hidden users online'; // 6 Hidden users online -$lang['Hidden_users_online'] = '%d Hidden users online'; // 6 Hidden users online -$lang['Hidden_user_online'] = '%d Hidden user online'; // 6 Hidden users online -$lang['Guest_users_online'] = 'There are %d Guest users online'; // There are 10 Guest users online -$lang['Guest_users_zero_online'] = 'There are 0 Guest users online'; // There are 10 Guest users online -$lang['Guest_user_online'] = 'There is %d Guest user online'; // There is 1 Guest user online -$lang['No_users_browsing'] = 'There are no users currently browsing this forum'; - -$lang['Online_explain'] = 'This data is based on users active over the past five minutes'; - -$lang['Forum_Location'] = 'Forum Location'; -$lang['Last_updated'] = 'Last Updated'; - -$lang['Forum_index'] = 'Forum index'; -$lang['Logging_on'] = 'Logging on'; -$lang['Posting_message'] = 'Posting a message'; -$lang['Searching_forums'] = 'Searching forums'; -$lang['Viewing_profile'] = 'Viewing profile'; -$lang['Viewing_online'] = 'Viewing who is online'; -$lang['Viewing_member_list'] = 'Viewing member list'; -$lang['Viewing_priv_msgs'] = 'Viewing Private Messages'; -$lang['Viewing_FAQ'] = 'Viewing FAQ'; - - -// -// Moderator Control Panel -// -$lang['Mod_CP'] = 'Moderator Control Panel'; -$lang['Mod_CP_explain'] = 'Using the form below you can perform mass moderation operations on this forum. You can lock, unlock, move or delete any number of topics.'; - -$lang['Select'] = 'Select'; -$lang['Delete'] = 'Delete'; -$lang['Move'] = 'Move'; -$lang['Lock'] = 'Lock'; -$lang['Unlock'] = 'Unlock'; - -$lang['Topics_Removed'] = 'The selected topics have been successfully removed from the database.'; -$lang['Topics_Locked'] = 'The selected topics have been locked.'; -$lang['Topics_Moved'] = 'The selected topics have been moved.'; -$lang['Topics_Unlocked'] = 'The selected topics have been unlocked.'; -$lang['No_Topics_Moved'] = 'No topics were moved.'; - -$lang['Confirm_delete_topic'] = 'Are you sure you want to remove the selected topic/s?'; -$lang['Confirm_lock_topic'] = 'Are you sure you want to lock the selected topic/s?'; -$lang['Confirm_unlock_topic'] = 'Are you sure you want to unlock the selected topic/s?'; -$lang['Confirm_move_topic'] = 'Are you sure you want to move the selected topic/s?'; - -$lang['Move_to_forum'] = 'Move to forum'; -$lang['Leave_shadow_topic'] = 'Leave shadow topic in old forum.'; - -$lang['Split_Topic'] = 'Split Topic Control Panel'; -$lang['Split_Topic_explain'] = 'Using the form below you can split a topic in two, either by selecting the posts individually or by splitting at a selected post'; -$lang['Split_title'] = 'New topic title'; -$lang['Split_forum'] = 'Forum for new topic'; -$lang['Split_posts'] = 'Split selected posts'; -$lang['Split_after'] = 'Split from selected post'; -$lang['Topic_split'] = 'The selected topic has been split successfully'; - -$lang['Too_many_error'] = 'You have selected too many posts. You can only select one post to split a topic after!'; - -$lang['None_selected'] = 'You have not selected any topics to perform this operation on. Please go back and select at least one.'; -$lang['New_forum'] = 'New forum'; - -$lang['This_posts_IP'] = 'IP address for this post'; -$lang['Other_IP_this_user'] = 'Other IP addresses this user has posted from'; -$lang['Users_this_IP'] = 'Users posting from this IP address'; -$lang['IP_info'] = 'IP Information'; -$lang['Lookup_IP'] = 'Look up IP address'; - - -// -// Timezones ... for display on each page -// -$lang['All_times'] = 'All times are %s'; // eg. All times are GMT - 12 Hours (times from next block) - -$lang['-12'] = 'GMT - 12 Hours'; -$lang['-11'] = 'GMT - 11 Hours'; -$lang['-10'] = 'GMT - 10 Hours'; -$lang['-9'] = 'GMT - 9 Hours'; -$lang['-8'] = 'GMT - 8 Hours'; -$lang['-7'] = 'GMT - 7 Hours'; -$lang['-6'] = 'GMT - 6 Hours'; -$lang['-5'] = 'GMT - 5 Hours'; -$lang['-4'] = 'GMT - 4 Hours'; -$lang['-3.5'] = 'GMT - 3.5 Hours'; -$lang['-3'] = 'GMT - 3 Hours'; -$lang['-2'] = 'GMT - 2 Hours'; -$lang['-1'] = 'GMT - 1 Hours'; -$lang['0'] = 'GMT'; -$lang['1'] = 'GMT + 1 Hour'; -$lang['2'] = 'GMT + 2 Hours'; -$lang['3'] = 'GMT + 3 Hours'; -$lang['3.5'] = 'GMT + 3.5 Hours'; -$lang['4'] = 'GMT + 4 Hours'; -$lang['4.5'] = 'GMT + 4.5 Hours'; -$lang['5'] = 'GMT + 5 Hours'; -$lang['5.5'] = 'GMT + 5.5 Hours'; -$lang['6'] = 'GMT + 6 Hours'; -$lang['6.5'] = 'GMT + 6.5 Hours'; -$lang['7'] = 'GMT + 7 Hours'; -$lang['8'] = 'GMT + 8 Hours'; -$lang['9'] = 'GMT + 9 Hours'; -$lang['9.5'] = 'GMT + 9.5 Hours'; -$lang['10'] = 'GMT + 10 Hours'; -$lang['11'] = 'GMT + 11 Hours'; -$lang['12'] = 'GMT + 12 Hours'; -$lang['13'] = 'GMT + 13 Hours'; - -// These are displayed in the timezone select box -$lang['tz']['-12'] = 'GMT - 12 Hours'; -$lang['tz']['-11'] = 'GMT - 11 Hours'; -$lang['tz']['-10'] = 'GMT - 10 Hours'; -$lang['tz']['-9'] = 'GMT - 9 Hours'; -$lang['tz']['-8'] = 'GMT - 8 Hours'; -$lang['tz']['-7'] = 'GMT - 7 Hours'; -$lang['tz']['-6'] = 'GMT - 6 Hours'; -$lang['tz']['-5'] = 'GMT - 5 Hours'; -$lang['tz']['-4'] = 'GMT - 4 Hours'; -$lang['tz']['-3.5'] = 'GMT - 3.5 Hours'; -$lang['tz']['-3'] = 'GMT - 3 Hours'; -$lang['tz']['-2'] = 'GMT - 2 Hours'; -$lang['tz']['-1'] = 'GMT - 1 Hours'; -$lang['tz']['0'] = 'GMT'; -$lang['tz']['1'] = 'GMT + 1 Hour'; -$lang['tz']['2'] = 'GMT + 2 Hours'; -$lang['tz']['3'] = 'GMT + 3 Hours'; -$lang['tz']['3.5'] = 'GMT + 3.5 Hours'; -$lang['tz']['4'] = 'GMT + 4 Hours'; -$lang['tz']['4.5'] = 'GMT + 4.5 Hours'; -$lang['tz']['5'] = 'GMT + 5 Hours'; -$lang['tz']['5.5'] = 'GMT + 5.5 Hours'; -$lang['tz']['6'] = 'GMT + 6 Hours'; -$lang['tz']['6.5'] = 'GMT + 6.5 Hours'; -$lang['tz']['7'] = 'GMT + 7 Hours'; -$lang['tz']['8'] = 'GMT + 8 Hours'; -$lang['tz']['9'] = 'GMT + 9 Hours'; -$lang['tz']['9.5'] = 'GMT + 9.5 Hours'; -$lang['tz']['10'] = 'GMT + 10 Hours'; -$lang['tz']['11'] = 'GMT + 11 Hours'; -$lang['tz']['12'] = 'GMT + 12 Hours'; -$lang['tz']['13'] = 'GMT + 13 Hours'; - -$lang['datetime']['Sunday'] = 'Sunday'; -$lang['datetime']['Monday'] = 'Monday'; -$lang['datetime']['Tuesday'] = 'Tuesday'; -$lang['datetime']['Wednesday'] = 'Wednesday'; -$lang['datetime']['Thursday'] = 'Thursday'; -$lang['datetime']['Friday'] = 'Friday'; -$lang['datetime']['Saturday'] = 'Saturday'; -$lang['datetime']['Sun'] = 'Sun'; -$lang['datetime']['Mon'] = 'Mon'; -$lang['datetime']['Tue'] = 'Tue'; -$lang['datetime']['Wed'] = 'Wed'; -$lang['datetime']['Thu'] = 'Thu'; -$lang['datetime']['Fri'] = 'Fri'; -$lang['datetime']['Sat'] = 'Sat'; -$lang['datetime']['January'] = 'January'; -$lang['datetime']['February'] = 'February'; -$lang['datetime']['March'] = 'March'; -$lang['datetime']['April'] = 'April'; -$lang['datetime']['May'] = 'May'; -$lang['datetime']['June'] = 'June'; -$lang['datetime']['July'] = 'July'; -$lang['datetime']['August'] = 'August'; -$lang['datetime']['September'] = 'September'; -$lang['datetime']['October'] = 'October'; -$lang['datetime']['November'] = 'November'; -$lang['datetime']['December'] = 'December'; -$lang['datetime']['Jan'] = 'Jan'; -$lang['datetime']['Feb'] = 'Feb'; -$lang['datetime']['Mar'] = 'Mar'; -$lang['datetime']['Apr'] = 'Apr'; -$lang['datetime']['May'] = 'May'; -$lang['datetime']['Jun'] = 'Jun'; -$lang['datetime']['Jul'] = 'Jul'; -$lang['datetime']['Aug'] = 'Aug'; -$lang['datetime']['Sep'] = 'Sep'; -$lang['datetime']['Oct'] = 'Oct'; -$lang['datetime']['Nov'] = 'Nov'; -$lang['datetime']['Dec'] = 'Dec'; - -// -// Errors (not related to a -// specific failure on a page) -// -$lang['Information'] = 'Information'; -$lang['Critical_Information'] = 'Critical Information'; - -$lang['General_Error'] = 'General Error'; -$lang['Critical_Error'] = 'Critical Error'; -$lang['An_error_occured'] = 'An Error Occurred'; -$lang['A_critical_error'] = 'A Critical Error Occurred'; - -$lang['Admin_reauthenticate'] = 'To administer the board you must re-authenticate yourself.'; -$lang['Login_attempts_exceeded'] = 'The maximum number of %s login attempts has been exceeded. You are not allowed to login for the next %s minutes.'; -$lang['Please_remove_install_contrib'] = 'Please ensure both the install/ and contrib/ directories are deleted'; - -$lang['Session_invalid'] = 'Invalid Session. Please resubmit the form.'; - -// -// That's all, Folks! -// ------------------------------------------------- - -?> diff --git a/phpBB2/language/lang_english/lang_xs.php b/phpBB2/language/lang_english/lang_xs.php deleted file mode 100644 index aeabf6d..0000000 --- a/phpBB2/language/lang_english/lang_xs.php +++ /dev/null @@ -1,613 +0,0 @@ -
    Note: This mod replaces the phpBB styles management. You will find the default phpBB functions in this list, but these functions are now optimized and have extra features.

    If you have any questions please visit support forum where you can get assistance for this mod.'; -$lang['xs_main_comment2'] = 'The eXtreme Styles mod allows an admin to store entire styles in .style files. Styles are stored in a small compressed file and by doing so this saves the trouble of downloading/uploading many files. Style files are compressed so download/upload is much more efficient than downloading/uploading usual style files.'; -$lang['xs_main_comment3'] = 'All functions of phpBB styles management are replaced with eXtreme Styles mod.

    Click here to see menu.'; -$lang['xs_main_title'] = 'eXtreme Styles Navigation Menu'; -$lang['xs_menu'] = 'eXtreme Styles Menu'; - -$lang['xs_manage_styles'] = 'Manage Styles'; -$lang['xs_import_export_styles'] = 'Import/Export Styles'; -$lang['xs_install_uninstall_styles'] = 'Install/Uninstall Styles'; -$lang['xs_edit_templates'] = 'Edit Templates'; -$lang['xs_other_functions'] = 'Other Functions'; - -$lang['xs_configuration'] = 'Configuration'; -$lang['xs_configuration_explain'] = 'This feature allows you to change the eXtreme Styles configuration.'; -$lang['xs_default_style'] = 'Default Style'; -$lang['xs_default_style_explain'] = 'This feature allows you to change the default forum style and switch users from one style to another.'; -$lang['xs_manage_cache'] = 'Manage Cache'; -$lang['xs_manage_cache_explain'] = 'This feature allows you to manage cached files.'; -$lang['xs_import_styles'] = 'Import Styles'; -$lang['xs_import_styles_explain'] = 'This feature allows you to download and install .style files.'; -$lang['xs_export_styles'] = 'Export Styles'; -$lang['xs_export_styles_explain'] = 'This feature allows you to save a style from your forum as a .style file and then easily transfer it to another forum or another website.'; -$lang['xs_clone_styles'] = 'Clone Styles'; -$lang['xs_clone_styles_explain'] = 'This feature allows you to quickly clone styles or a whole template.'; -$lang['xs_download_styles'] = 'Download Styles'; -$lang['xs_download_styles_explain'] = 'This feature allows you to quickly download and install styles from websites. You can configure a list of websites yourself.'; -$lang['xs_install_styles'] = 'Install Styles'; -$lang['xs_install_styles_explain'] = 'This feature allows you to install styles that are already uploaded to your forum.'; -$lang['xs_uninstall_styles'] = 'Uninstall Styles'; -$lang['xs_uninstall_styles_explain'] = 'This feature allows you to remove styles from your forum.'; -$lang['xs_edit_templates_explain'] = 'This feature allows you to edit tpl files online.'; -$lang['xs_edit_styles_data'] = 'Edit Styles Data'; -$lang['xs_edit_styles_data_explain'] = 'This feature allows you to edit style variables. It is used by some styles, but most styles don\'t use it and use a css file instead.'; -$lang['xs_export_styles_data'] = 'Export Styles Data'; -$lang['xs_export_styles_data_explain'] = 'This feature allows you to save style variables to theme_info.cfg.'; -$lang['xs_check_for_updates'] = 'Check for Updates'; -$lang['xs_check_for_updates_explain'] = 'This feature allows you to check for updated versions of styles and mods installed on your forum.'; - -$lang['xs_set_configuration_lc'] = 'set configuration'; -$lang['xs_set_default_style_lc'] = 'set default style'; -$lang['xs_manage_cache_lc'] = 'manage cache'; -$lang['xs_import_styles_lc'] = 'import styles'; -$lang['xs_export_styles_lc'] = 'export styles'; -$lang['xs_clone_styles_lc'] = 'clone styles'; -$lang['xs_uninstall_styles_lc'] = 'uninstall styles'; -$lang['xs_edit_templates_lc'] = 'edit templates'; -$lang['xs_edit_styles_data_lc'] = 'edit styles data'; -$lang['xs_export_styles_data_lc'] = 'export styles data'; -$lang['xs_check_for_updates_lc'] = 'check for updates'; - -/* -* ftp.tpl, ftp functions -*/ - -$lang['xs_ftp_comment1'] = 'To use this feature you must select the file upload method. If you select FTP, then a password will not be stored and eXtreme Styles will ask you for a password every time you select functions that requires FTP access. If you select local file system then make sure all required directories are writeable.'; -$lang['xs_ftp_comment2'] = 'To use this feature you must set FTP settings. A password will not be stored and eXtreme Styles will ask you for a password every time you select functions that requires FTP access.'; -$lang['xs_ftp_comment3'] = 'Warning: FTP functions are disabled on this server. You will not be able to use eXtreme Styles functionality that require FTP access.'; - -$lang['xs_ftp_title'] = 'FTP Configuration'; - -$lang['xs_ftp_explain'] = 'FTP is used to upload new styles. If you want to use the import styles feature then you should configure FTP settings accordingly. eXtreme Styles tries to auto-detect settings if and when possible.'; - -$lang['xs_ftp_error_fatal'] = 'FTP functions are disabled on this server. Cannot continue.'; -$lang['xs_ftp_error_connect'] = 'FTP error: cannot connect to {HOST}'; -$lang['xs_ftp_error_login'] = 'FTP error: cannot login'; -$lang['xs_ftp_error_chdir'] = 'FTP error: cannot change directory to {DIR}'; -$lang['xs_ftp_error_nonphpbbdir'] = 'FTP error: you have set invalid directory. There are no phpBB files in that directory'; -$lang['xs_ftp_error_noconnect'] = 'Cannot connect to ftp server'; -$lang['xs_ftp_error_login2'] = 'Invalid ftp login or password'; - -$lang['xs_ftp_log_disabled'] = 'ftp functions are disabled on this server. script cannot continue.'; -$lang['xs_ftp_log_connecting'] = 'connecting to {HOST}'; -$lang['xs_ftp_log_noconnect'] = 'cannot connect to {HOST}'; -$lang['xs_ftp_log_connected'] = 'connected. loggin in...'; -$lang['xs_ftp_log_nologin'] = 'cannot login as {USER}'; -$lang['xs_ftp_log_loggedin'] = 'logged in'; -$lang['xs_ftp_log_end'] = 'finished executing script'; -$lang['xs_ftp_log_nopwd'] = 'error: cannot retrieve current directory'; -$lang['xs_ftp_log_nomkdir'] = 'error: cannot create directory {DIR}'; -$lang['xs_ftp_log_mkdir'] = 'created directory {DIR}'; -$lang['xs_ftp_log_nochdir'] = 'error: cannot change directory to {DIR}'; -$lang['xs_ftp_log_normdir'] = 'error: cannot remove directory {DIR}'; -$lang['xs_ftp_log_rmdir'] = 'removed directory {DIR}'; -$lang['xs_ftp_log_chdir'] = 'changed directory to {DIR}'; -$lang['xs_ftp_log_noupload'] = 'error: cannot upload file {FILE}'; -$lang['xs_ftp_log_upload'] = 'uploaded file {FILE}'; -$lang['xs_ftp_log_nochmod'] = 'warning: cannot chmod file {FILE}'; -$lang['xs_ftp_log_chmod'] = 'chmod file {FILE} to {MODE}'; -$lang['xs_ftp_log_invalidcommand'] = 'error: unknown command: {COMMAND}'; -$lang['xs_ftp_log_chdir2'] = 'changing current directory back to {DIR}'; -$lang['xs_ftp_log_nochdir2'] = 'cannot change directory to {DIR}'; - -$lang['xs_ftp_config'] = 'FTP Configuration'; -$lang['xs_ftp_select_method'] = 'Select upload method'; -$lang['xs_ftp_select_local'] = 'Use local file system (no configuration required)'; -$lang['xs_ftp_select_ftp'] = 'Use FTP (set ftp settings below)'; - -$lang['xs_ftp_settings'] = 'FTP Settings'; -$lang['xs_ftp_host'] = 'FTP Host'; -$lang['xs_ftp_login'] = 'FTP Login'; -$lang['xs_ftp_path'] = 'FTP Path to phpBB'; -$lang['xs_ftp_pass'] = 'FTP Password'; -$lang['xs_ftp_remotedir'] = 'Remote Directory'; - -$lang['xs_ftp_host_guess'] = ' (probably "{HOST}" [set host])'; -$lang['xs_ftp_login_guess'] = ' (probably "{LOGIN}" [set host])'; -$lang['xs_ftp_path_guess'] = ' (probably "{PATH}" [set path])'; - - -/* -* config.tpl -*/ - -$lang['xs_config_updated'] = 'Configuration updated.'; -$lang['xs_config_updated_explain'] = 'You need to refresh this page before the new configuration can take effect. Click here to refresh page.'; -$lang['xs_config_warning'] = 'Warning: cache cannot be written.'; -$lang['xs_config_warning_explain'] = 'Cache directory is not writeable. eXtreme Styles can attempt to fix this problem.
    Click here to try to change access mode to cache directory.

    If cache doesn\'t work on your server for some reason don\'t worry - eXtreme Styles
    increases forum speed many times even without cache.'; - -$lang['xs_config_maintitle'] = 'eXtreme Styles mod Configuration'; -$lang['xs_config_subtitle'] = 'This is the configuration for eXtreme Styles. If you don\'t understand what certain variables do then don\'t change it.'; -$lang['xs_config_title'] = 'eXtreme Styles mod v{VERSION} settings'; -$lang['xs_config_cache'] = 'Cache configuration'; - -$lang['xs_config_navbar'] = 'Show on left frame:'; -$lang['xs_config_navbar_explain'] = 'You can select what items to show on left frame in admin control panel.'; - -$lang['xs_config_def_template'] = 'Default template directory'; -$lang['xs_config_def_template_explain'] = 'If a required tpl file is not found in current template directory (that might happen if you modded phpBB incorrectly) then template system will look for same file in a related directory (like if current template is "myTemplate" and script requires file "myTemplate/myfile.tpl" and that file isn\'t there template system will look for that file as "subSilver/myfile.tpl"). Set to empty to disable this feature.'; - -$lang['xs_config_check_switches'] = 'Check switches while compiling'; -$lang['xs_config_check_switches_explain'] = 'This feature checks for errors in templates. Turning it off will speed up compilation, but the compiler might skip some errors in templates if it contains errors.

    Smart check will check templates for errors and automatically fix all known errors (there are few known typos in different mods). Works little bit slower than simple check.

    But sometimes template looks proper only when error check is disabled; this happens because of bad html coding - contact whoever wrote the tpl file if you want to fix errors.

    If cache feature is disabled, then turn this off for faster compilation.'; -$lang['xs_config_check_switches_0'] = 'Off'; -$lang['xs_config_check_switches_1'] = 'Smart check'; -$lang['xs_config_check_switches_2'] = 'Simple check'; - -$lang['xs_config_show_errors'] = 'Shows errors when files are incorrectly included in tpl files'; -$lang['xs_config_show_error_explain'] = 'This feature enables/disables errors in tpl files that the user used incorrectly <!-- INCLUDE filename -->'; - -$lang['xs_config_tpl_comments'] = 'Add tpl filenames in html'; -$lang['xs_config_tpl_comments_explain'] = 'This feature adds comments to html code that allow style designers to detect which tpl file is displayed.'; - -$lang['xs_config_use_cache'] = 'Use cache'; -$lang['xs_config_use_cache_explain'] = 'Cache is saved to disk and it will accelerate templates system because there would be no need to compile template every time it is shown.'; - -$lang['xs_config_auto_compile'] = 'Automatically save cache'; -$lang['xs_config_auto_compile_explain'] = 'This will automatically compile templates that are not cached and save to cache directory.'; - -$lang['xs_config_auto_recompile'] = 'Automatically re-compile cache'; -$lang['xs_config_auto_recompile_explain'] = 'This will automatically re-compile templates if a template was changed.'; - -$lang['xs_config_php'] = 'Extension of cache filenames'; -$lang['xs_config_php_explain'] = 'This is extension of cached files. Files are stored in php format so default extension is "php". Do not include dot'; - -$lang['xs_config_back'] = 'Click here to return to configuration.'; -$lang['xs_config_sql_error'] = 'Failed to update general configuration for {VAR}'; - -// Debug info -$lang['xs_debug_header'] = 'Debug info'; -$lang['xs_debug_explain'] = 'This is debug info. Used to find/fix problems when configuring cache.'; -$lang['xs_debug_vars'] = 'Template variables'; -$lang['xs_debug_tpl_name'] = 'Template filename:'; -$lang['xs_debug_cache_filename'] = 'Cache filename:'; -$lang['xs_debug_data'] = 'Debug data:'; - -$lang['xs_check_hdr'] = 'Checking cache for %s'; -$lang['xs_check_filename'] = 'Error: invalid filename'; -$lang['xs_check_openfile1'] = 'Error: cannot open file "%s". Will try to create directories...'; -$lang['xs_check_openfile2'] = 'Error: cannot open file "%s" for the second time. Giving up...'; -$lang['xs_check_nodir'] = 'Checking "%s" - no such directory.'; -$lang['xs_check_nodir2'] = 'Error: cannot create directory "%s" - you might need to check permissions.'; -$lang['xs_check_createddir'] = 'Created directory "%s"'; -$lang['xs_check_dir'] = 'Checking "%s" - directory exists.'; -$lang['xs_check_ok'] = 'Opened file "%s" for writing. Everything seems to be ok.'; -$lang['xs_error_demo_edit'] = 'you cannot edit file in demo mode'; -$lang['xs_error_not_installed'] = 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'; - -/* -* chmod -*/ - -$lang['xs_chmod'] = 'CHMOD'; -$lang['xs_chmod_return'] = '

    Click here to return to configuration.'; -$lang['xs_chmod_message1'] = 'Configuration changed.'; -$lang['xs_chmod_error1'] = 'Cannot change access mode to cache directory'; - - -/* -* default style -*/ - -$lang['xs_def_title'] = 'Set Default Style'; -$lang['xs_def_explain'] = 'This feature allows you to quickly change default forum style and also switch users from one style to another.'; - -$lang['xs_styles_set_default'] = 'set default'; -$lang['xs_styles_no_override'] = 'do not override user settings'; -$lang['xs_styles_do_override'] = 'override user settings'; -$lang['xs_styles_switch_all'] = 'switch all users to this style'; -$lang['xs_styles_switch_all2'] = 'switch all users to:'; -$lang['xs_styles_defstyle'] = 'default style'; -$lang['xs_styles_available'] = 'Available styles'; -$lang['xs_styles_make_public'] = 'make style public'; -$lang['xs_styles_make_admin'] = 'make style admin-only'; -$lang['xs_styles_users'] = 'Users List'; - - -/* -* cache management -*/ - -$lang['xs_manage_cache_explain2'] = 'This feature allows you to compile or remove cached files for styles.'; -$lang['xs_clear_all_lc'] = 'clear all'; -$lang['xs_compile_all_lc'] = 'compile all'; -$lang['xs_clear_cache_lc'] = 'clear cache'; -$lang['xs_compile_cache_lc'] = 'compile cache'; -$lang['xs_cache_confirm'] = 'If you have many styles it might cause huge server load. Are you sure you want to continue?'; - -$lang['xs_cache_nowrite'] = 'Error: cannot access cache directory'; -$lang['xs_cache_log_deleted'] = 'Deleted {FILE}'; -$lang['xs_cache_log_nodelete'] = 'Error: cannot delete file {FILE}'; -$lang['xs_cache_log_nothing'] = 'Nothing to delete for template {TPL}'; -$lang['xs_cache_log_nothing2'] = 'Nothing to delete in cache directory'; -$lang['xs_cache_log_count'] = 'Successfully deleted {NUM} files'; -$lang['xs_cache_log_count2'] = 'Error deleting {NUM} files'; -$lang['xs_cache_log_compiled'] = 'Compiled: {NUM} files'; -$lang['xs_cache_log_errors'] = 'Errors: {NUM}'; -$lang['xs_cache_log_noaccess'] = 'Error: cannot access directory {DIR}'; -$lang['xs_cache_log_compiled2'] = 'Compiled: {FILE}'; -$lang['xs_cache_log_nocompile'] = 'Error compiling: {FILE}'; - -/* -* export/import/download/clone -*/ - -$lang['xs_import_explain'] = 'This feature allows you to import styles. It can also automatically install and update styles.

    Note: If you have added any mods (except for eXtreme Styles mod) on this forum then you should be careful when importing styles because styles might not be compatible with your forum. You can only install styles that have the same modifications as the other styles that you\'ve configured on your forums.'; - -$lang['xs_import_lc'] = 'import'; -$lang['xs_list_files_lc'] = 'list files'; -$lang['xs_delete_file_lc'] = 'delete file'; -$lang['xs_export_style_lc'] = 'export style'; - -$lang['xs_import_no_cached'] = 'There are no cached styles to import'; -$lang['xs_add_styles'] = 'Add Styles'; -$lang['xs_add_styles_web'] = 'Download from web'; -$lang['xs_add_styles_web_get'] = 'Get it'; -$lang['xs_add_styles_copy'] = 'Copy from local file'; -$lang['xs_add_styles_copy_get'] = 'Copy'; -$lang['xs_add_styles_upload'] = 'Upload from computer'; -$lang['xs_add_styles_upload_get'] = 'Upload'; - -$lang['xs_export_style'] = 'Export Style'; -$lang['xs_export_style_explain'] = 'This feature allows you to export a style as a single file. This single file is very small - smaller than a .zip file (because it is compressed with gzip, which works better than zip) and all styles inside is a single file. In turn, it is very easy to transfer styles from one forum to another.

    This feature also allows you to upload exported styles using ftp to a server. This system allows you to transfer a style to another forum quickly without manually copying it.'; - -$lang['xs_export_style_title'] = 'Export Template "{TPL}"'; -$lang['xs_export_tpl_name'] = 'Export as (template name)'; -$lang['xs_export_style_names'] = 'Select style(s) to export'; -$lang['xs_export_style_name'] = 'Style to export (style name)'; -$lang['xs_export_style_comment'] = 'Comment'; -$lang['xs_export_where'] = 'Where to export'; -$lang['xs_export_where_download'] = 'Download as file'; -$lang['xs_export_where_store'] = 'Store as file on server'; -$lang['xs_export_where_store_dir'] = 'Directory'; -$lang['xs_export_where_ftp'] = 'Upload via FTP'; -$lang['xs_export_filename'] = 'Export filename'; - -$lang['xs_download_explain2'] = 'This feature allows you to quickly download and install styles directly from different websites. Click on the link near the website name and you will be redirected to a style downloads page.

    You can also manage the list of websites.'; - -$lang['xs_download_locations'] = 'Download Locations'; -$lang['xs_edit_link'] = 'Edit Link'; -$lang['xs_add_link'] = 'Add Link'; -$lang['xs_link_title'] = 'Link Title'; -$lang['xs_link_url'] = 'Link URL'; -$lang['xs_delete'] = 'Delete'; - -$lang['xs_style_header_error_file'] = 'Cannot open local file'; -$lang['xs_style_header_error_server'] = 'Error on server: '; -$lang['xs_style_header_error_invalid'] = 'Invalid file header'; -$lang['xs_style_header_error_reason'] = 'Error reading file header: '; -$lang['xs_style_header_error_incomplete'] = 'File is incomplete'; -$lang['xs_style_header_error_incomplete2'] = 'Invalid file size. Probably file is incomplete.'; -$lang['xs_style_header_error_invalid2'] = 'Invalid file. Presumeably, the file is not an eXtreme Styles mod-compatible style or invalid version.'; -$lang['xs_error_cannot_open'] = 'Cannot open file.'; -$lang['xs_error_decompress_style'] = 'Error decompressing file. Probably file is corrupted.'; -$lang['xs_error_cannot_create_file'] = 'Cannot create file "{FILE}"'; -$lang['xs_error_cannot_create_tmp'] = 'Cannot create temporary file "{FILE}"'; -$lang['xs_import_invalid_file'] = 'Invalid file'; -$lang['xs_import_incomplete_file'] = 'Incomplete file'; -$lang['xs_import_uploaded'] = 'Style uploaded.'; -$lang['xs_import_installed'] = 'Style uploaded and installed.'; -$lang['xs_import_notinstall'] = 'Style uploaded, but error installing style (sql error).'; -$lang['xs_import_notinstall2'] = 'Style uploaded, but error installing style: no styles found in theme_info.cfg'; -$lang['xs_import_notinstall3'] = 'Style uploaded, but error installing style: no entry for "{STYLE}" found in theme_info.cfg'; -$lang['xs_import_notinstall4'] = 'Style uploaded, but error installing style: could not obtain next themes_id information'; -$lang['xs_import_notinstall5'] = 'Style uploaded, but error installing style: could not update styles table'; -$lang['xs_import_nodownload'] = 'Cannot download style from {URL}'; -$lang['xs_import_nodownload2'] = 'Cannot copy style from {URL}'; -$lang['xs_import_nodownload3'] = 'File not uploaded.'; -$lang['xs_import_uploaded2'] = 'Style downloaded. You can now import it.

    Click here to import style.'; -$lang['xs_import_uploaded3'] = 'Style copied. You can now import it.

    Click here to import style.'; -$lang['xs_import_uploaded4'] = 'Style uploaded. You can now import it.

    Click here to import style.'; -$lang['xs_export_no_open_dir'] = 'Cannot open directory {DIR}'; -$lang['xs_export_no_open_file'] = 'Cannot open file {FILE}'; -$lang['xs_export_no_read_file'] = 'Error reading file {FILE}'; -$lang['xs_no_theme_data'] = 'Could not get style data for selected template'; -$lang['xs_no_style_info'] = 'Could not get style information'; -$lang['xs_export_noselect_themes'] = 'You should select at least one style'; -$lang['xs_export_error'] = 'Cannot export template "{TPL}": '; -$lang['xs_export_error2'] = 'Cannot export template "{TPL}": style is empty'; -$lang['xs_export_saved'] = 'Style is saved as "{FILE}"'; -$lang['xs_export_error_uploading'] = 'Error uploading file'; -$lang['xs_export_uploaded'] = 'File uploaded.'; -$lang['xs_clone_taken'] = 'This style name is already used.'; -$lang['xs_error_new_row'] = 'Could not insert new row in table.'; -$lang['xs_theme_cloned'] = 'Style cloned.'; -$lang['xs_invalid_style_name'] = 'Invalid style name.'; -$lang['xs_clone_style_exists'] = 'That template already exists'; -$lang['xs_clone_no_select'] = 'You should select at least one style to clone.'; -$lang['xs_no_themes'] = 'Style not found in database.'; - -$lang['xs_import_back'] = 'Click here to return to import styles page.'; -$lang['xs_import_back_download'] = 'Click here to return to downloads.'; -$lang['xs_export_back'] = 'Click here to return to export styles page.'; -$lang['xs_clone_back'] = 'Click here to return to clone styles page.'; -$lang['xs_download_back'] = 'Click here to return to downloads page.'; - -$lang['xs_import_tpl'] = 'Import Template "{TPL}"'; -$lang['xs_import_tpl_comment'] = 'This feature will upload template to your forum. If template with this name already exists on your forum this feature will automatically overwrite old files so it can also be used to update styles.

    This feature can also automatically install styles. If you want to install style after importing it then select one or more styles below.'; -$lang['xs_import_tpl_filename'] = 'Filename:'; -$lang['xs_import_tpl_tplname'] = 'Template name:'; -$lang['xs_import_tpl_comment2'] = 'Comment:'; -$lang['xs_import_select_styles'] = 'Select style(s) to install:'; -$lang['xs_import_install_def_lc'] = 'make default forum style'; -$lang['xs_import_install_style'] = 'Install style:'; -$lang['xs_import'] = 'Import'; - -$lang['xs_import_list_contents'] = 'Contents of file: '; -$lang['xs_import_list_filename'] = 'Filename: '; -$lang['xs_import_list_template'] = 'Template: '; -$lang['xs_import_list_comment'] = 'Comment: '; -$lang['xs_import_list_styles'] = 'Style(s): '; -$lang['xs_import_list_files'] = 'Files ({NUM}):'; -$lang['xs_import_download_lc'] = 'download file'; -$lang['xs_import_view_lc'] = 'view file'; -$lang['xs_import_file_size'] = '({NUM} bytes)'; - -$lang['xs_import_nogzip'] = 'This function requires gz compression, and apparently that isn\'t supported on this server.'; -$lang['xs_import_nowrite_cache'] = 'Cannot write to cache. This function requires cache to be writable. Check mod configuration.

    Click here to make cache writable.

    Click here to return to import page.'; - -$lang['xs_import_download_warning'] = 'This will take you to an external website where you can quickly download styles with a few simple clicks using the eXtreme Styles import feature.'; - -$lang['xs_clone_style'] = 'Clone Style'; -$lang['xs_clone_style_explain'] = 'This feature allows you to quickly clone style or whole template.

    Warning: If you are copying template make sure author of original template allows you to do this (unless it is subSilver - you can do whatever you want with subSilver). Usually authors allow to modify their styles, but modified style should not be distributed.'; -$lang['xs_clone_style_explain2'] = 'This feature allows you to create new style for a template. This feature will not copy any files - it will add entry in database for your new style. Both old and new style will share same templates.'; -$lang['xs_clone_style_explain3'] = 'Enter name for new style that you are going to create and click "clone" button.'; -$lang['xs_clone_style_explain4'] = 'This feature allows you to clone template. You can also copy all styles associated with that template. Later you can safely edit tpl files for new template and old template will not be affected.'; - -$lang['xs_clone_style_lc'] = 'clone style'; -$lang['xs_clone_style2'] = 'Clone style "{STYLE}":'; -$lang['xs_clone_style3'] = 'Clone Template "{STYLE}"'; -$lang['xs_clone_newdir_name'] = 'New template (directory) name:'; -$lang['xs_clone_select'] = 'Select style(s) to clone:'; -$lang['xs_clone_select_explain'] = 'You should select at least one style.'; -$lang['xs_clone_newname'] = 'New style name:'; - - -/* -* install/uninstall -*/ -$lang['xs_install_styles_explain2'] = 'This is a list of styles that are uploaded on your forum, but aren\'t installed. Click on the "install" link for the style that you want to install, or select several styles and click submit button.'; -$lang['xs_uninstall_styles_explain2'] = 'This is a list of styles that are installed on your forum. Click on the "uninstall" link to remove some styles from the forum. Uninstalling is safe - all users who employ the style that is being uninstalled will be switched to the default forum style. Also, uninstalling will automatically delete cache for that style.'; - -$lang['xs_install'] = 'Install'; -$lang['xs_install_lc'] = 'install'; -$lang['xs_uninstall'] = 'Uninstall'; -$lang['xs_remove_files'] = 'Remove Files'; -$lang['xs_style_removed'] = 'Style removed.'; -$lang['xs_uninstall_lc'] = 'uninstall'; -$lang['xs_uninstall2_lc'] = 'uninstall and delete files'; - -$lang['xs_install_back'] = 'Click here to return to styles installation.'; -$lang['xs_uninstall_back'] = 'Click here to return to styles uninstallation.'; -$lang['xs_goto_default'] = 'Click here to change default style.'; - -$lang['xs_install_installed'] = 'Style(s) installed.'; -$lang['xs_install_error'] = 'Error installing style.'; -$lang['xs_install_none'] = 'There are no new styles to install. All available styles are already installed.'; - -$lang['xs_uninstall_default'] = 'You cannot remove default style. To change default style click here.'; - -/* -* export theme_info.cfg -*/ -$lang['xs_export_styles_data_explain2'] = 'This feature saves style data in theme_info.cfg. It can be used to save database information before transferring styles from one forum to another.

    Note: If you are using the eXtreme Styles export feature to move a style to another forum you don\'t need to save theme_info.cfg - it is done automatically by the style export feature.'; -$lang['xs_export_styles_data_explain3'] = 'Select styles that you want to export.'; - -$lang['xs_export_data_back'] = 'Click here to return to export style data page.'; -$lang['xs_export_style_data_lc'] = 'export style data'; - -$lang['xs_export_data_saved'] = 'Data exported.'; - -/* -* edit templates (file manager) -*/ -$lang['xs_edit_template_comment1'] = 'This feature allows you to edit templates. File browser shows only editable files.'; -$lang['xs_edit_template_comment2'] = 'This feature allows you to edit templates.'; -$lang['xs_edit_file_saved'] = 'File is saved.'; -$lang['xs_edit_not_found'] = 'File not found.'; -$lang['xs_edittpl_back_dir'] = 'Click here to return to file manager.'; - -$lang['xs_fileman_browser'] = 'File Browser'; -$lang['xs_fileman_directory'] = 'Directory:'; -$lang['xs_fileman_dircount'] = 'Directories ({COUNT}):'; -$lang['xs_fileman_filter'] = 'Filter'; -$lang['xs_fileman_filter_ext'] = 'Show only files with extension:'; -$lang['xs_fileman_filter_content'] = 'Show only files that contain:'; -$lang['xs_fileman_filter_clear'] = 'Clear Filter'; -$lang['xs_fileman_filename'] = 'Filename'; -$lang['xs_fileman_filesize'] = 'Size'; -$lang['xs_fileman_filetime'] = 'Modification'; -$lang['xs_fileman_options'] = 'Options'; -$lang['xs_fileman_time_today'] = '(today)'; -$lang['xs_fileman_edit_lc'] = 'edit'; - -$lang['xs_fileedit_search_nomatch'] = 'Match not found'; -$lang['xs_fileedit_search_match1'] = 'Replaced 1 match'; -$lang['xs_fileedit_search_matches'] = "Replaced ' + count + ' matches"; -$lang['xs_fileedit_noundo'] = 'There is nothing to undo'; -$lang['xs_fileedit_undo_complete'] = 'Old content restored'; -$lang['xs_fileedit_edit_name'] = 'Edit file:'; -$lang['xs_fileedit_location'] = 'Location:'; -$lang['xs_fileedit_reload_lc'] = 'reload file'; -$lang['xs_fileedit_download_lc'] = 'download file'; -$lang['xs_fileedit_trim'] = 'Automatically trim spaces at beginning and end of file.'; -$lang['xs_fileedit_functions'] = 'Edit Functions'; -$lang['xs_fileedit_replace1'] = 'Replace '; -$lang['xs_fileedit_replace2'] = ' with '; -$lang['xs_fileedit_replace_first_lc'] = 'replace first match'; -$lang['xs_fileedit_replace_all_lc'] = 'replace all matches'; -$lang['xs_fileedit_replace_undo_lc'] = 'undo replacement'; -$lang['xs_fileedit_backups'] = 'Backups'; -$lang['xs_fileedit_backups_save_lc'] = 'save backup'; -$lang['xs_fileedit_backups_show_lc'] = 'show contents'; -$lang['xs_fileedit_backups_restore_lc'] = 'restore'; -$lang['xs_fileedit_backups_download_lc'] = 'download'; -$lang['xs_fileedit_backups_delete_lc'] = 'delete'; -$lang['xs_fileedit_upload'] = 'Upload'; -$lang['xs_fileedit_upload_file'] = 'Upload file:'; - -/* -* edit styles data (theme_info) -*/ -$lang['xs_data_head_stylesheet'] = 'CSS Stylesheet'; -$lang['xs_data_body_background'] = 'Background Image'; -$lang['xs_data_body_bgcolor'] = 'Background Colour'; -$lang['xs_data_style_name'] = 'Style Name'; -$lang['xs_data_body_link'] = 'Link Colour'; -$lang['xs_data_body_text'] = 'Text Colour'; -$lang['xs_data_body_vlink'] = 'Visited Link Colour'; -$lang['xs_data_body_alink'] = 'Active Link Colour'; -$lang['xs_data_body_hlink'] = 'Hover Link Colour'; -$lang['xs_data_tr_color'] = 'Table Row Colour %s'; -$lang['xs_data_tr_class'] = 'Table Row Class %s'; -$lang['xs_data_th_color'] = 'Table Header Colour %s'; -$lang['xs_data_th_class'] = 'Table Header Class %s'; -$lang['xs_data_td_color'] = 'Table Cell Colour %s'; -$lang['xs_data_td_class'] = 'Table Cell Class %s'; -$lang['xs_data_fontface'] = 'Font Face %s'; -$lang['xs_data_fontsize'] = 'Font Size %s'; -$lang['xs_data_fontcolor'] = 'Font Colour %s'; -$lang['xs_data_span_class'] = 'Span Class %s'; -$lang['xs_data_img_size_poll'] = 'Polling Image Size [px]'; -$lang['xs_data_img_size_privmsg'] = 'Private Message Status size [px]'; -$lang['xs_data_theme_public'] = 'Public Style (1 or 0)'; -$lang['xs_data_unknown'] = 'Description is not available (%s)'; - -$lang['xs_edittpl_error_updating'] = 'Error updating style.'; -$lang['xs_edittpl_style_updated'] = 'Style updated.'; -$lang['xs_invalid_style_id'] = 'Invalid style id.'; - -$lang['xs_edittpl_back_edit'] = 'Click here to return to editing.'; -$lang['xs_edittpl_back_list'] = 'Click here to return to styles list.'; - -$lang['xs_editdata_explain'] = 'This feature allows you to edit database data for installed styles. Some styles ignore database values and use css files instead, and some styles use only some of database values.'; -$lang['xs_editdata_var'] = 'Variable'; -$lang['xs_editdata_value'] = 'Value'; -$lang['xs_editdata_comment'] = 'Comment'; - -/* -* updates -*/ - -$lang['xs_updates'] = 'Updates'; -$lang['xs_updates_comment'] = 'This feature checks for updates of some styles and mods. It works only with items that have relevant update information.'; -$lang['xs_updates_comment2'] = 'This is result of version check.'; -$lang['xs_update_total1'] = 'Total: {NUM} items'; -$lang['xs_update_info1'] = 'This administrator feature will check for available updates of phpBB, certain mods, and some styles installed on your forum. When it finds available updates it shows you the link where you can download the updated file.

    This function requires sockets to be enabled. Most free web hosts do not have this feature so if this forum is on free host (like lycos) then you cannot use update feature, but if this forum is on normal server then everything should be okay.

    When you click "continue", the script will check all software installed on forum. If your website is slow it might take some time. Be patient and don\'t click "stop" in your browser if process is delayed. If this server is slow or update website is slow then script might timeout - if this happens you should increase timeout value.'; -$lang['xs_update_name'] = 'Name'; -$lang['xs_update_type'] = 'Type'; -$lang['xs_update_current_version'] = 'Your version'; -$lang['xs_update_latest_version'] = 'Latest version'; -$lang['xs_update_downloadinfo'] = 'Download URL'; -$lang['xs_update_timeout'] = 'Update script timeout (seconds):'; -$lang['xs_update_continue'] = 'Continue'; - - -$lang['xs_update_total2'] = 'Errors: {NUM}'; -$lang['xs_update_total3'] = 'Updates available: {NUM} items'; -$lang['xs_update_select1'] = 'Select items to update'; -$lang['xs_update_types'] = array( - 0 => 'Unknown', - 1 => 'Style', - 2 => 'Mod', - 3 => 'phpBB' - ); -$lang['xs_update_fileinfo'] = 'More info'; -$lang['xs_update_nothing'] = 'There is nothing to update.'; -$lang['xs_update_noupdate'] = 'You are using the latest version.'; - -$lang['xs_update_error_url'] = 'Error: cannot retrieve url %s'; -$lang['xs_update_error_noitem'] = 'Error: No update information available'; -$lang['xs_update_error_noconnect'] = 'Error: Cannot connect to update server'; - -$lang['xs_update_download'] = 'download'; -$lang['xs_update_downloadinfo2'] = 'download/info'; -$lang['xs_update_info'] = 'website'; - -$lang['xs_permission_denied'] = 'Permission Denied'; - -$lang['xs_download_lc'] = 'download'; -$lang['xs_info_lc'] = 'info'; - -/* -* style configuration -*/ -$lang['Template_Config'] = 'Template Config'; -$lang['xs_style_configuration'] = 'Template Configuration'; - -?> \ No newline at end of file diff --git a/phpBB2/language/lang_english/search_stopwords.txt b/phpBB2/language/lang_english/search_stopwords.txt deleted file mode 100644 index 5629d9a..0000000 --- a/phpBB2/language/lang_english/search_stopwords.txt +++ /dev/null @@ -1,251 +0,0 @@ -a -about -after -ago -all -almost -along -alot -also -am -an -and -answer -any -anybody -anybodys -anywhere -are -arent -around -as -ask -askd -at -bad -be -because -been -before -being -best -better -between -big -btw -but -by -can -cant -come -could -couldnt -day -days -days -did -didnt -do -does -doesnt -dont -down -each -etc -either -else -even -ever -every -everybody -everybodys -everyone -far -find -for -found -from -get -go -going -gone -good -got -gotten -had -has -have -havent -having -her -here -hers -him -his -home -how -hows -href -I -Ive -if -in -ini -into -is -isnt -it -its -its -just -know -large -less -like -liked -little -looking -look -looked -looking -lot -maybe -many -me -more -most -much -must -mustnt -my -near -need -never -new -news -no -none -not -nothing -now -of -off -often -old -on -once -only -oops -or -other -our -ours -out -over -page -please -put -question -questions -questioned -quote -rather -really -recent -said -saw -say -says -she -see -sees -should -sites -small -so -some -something -sometime -somewhere -soon -take -than -true -thank -that -thatd -thats -the -their -theirs -theres -theirs -them -then -there -these -they -theyll -theyd -theyre -this -those -though -through -thus -time -times -to -too -under -until -untrue -up -upon -use -users -version -very -via -want -was -way -we -well -went -were -werent -what -when -where -which -who -whom -whose -why -wide -will -with -within -without -wont -world -worse -worst -would -wrote -www -yes -yet -you -youd -youll -your -youre -yours -AFAIK -IIRC -LOL -ROTF -ROTFLMAO -YMMV diff --git a/phpBB2/language/lang_english/search_synonyms.txt b/phpBB2/language/lang_english/search_synonyms.txt deleted file mode 100644 index 0359039..0000000 --- a/phpBB2/language/lang_english/search_synonyms.txt +++ /dev/null @@ -1,149 +0,0 @@ -abcense absence -abridgement abridgment -accomodate accommodate -acknowledgment acknowledgement -airplane aeroplane -allright alright -andy andrew -anemia anaemia -anemic anaemic -anesthesia anaesthesia -appologize appologise -archean archaean -archeology archaeology -archeozoic archaeozoic -armor armour -artic arctic -attachment attachement -attendence attendance -barbecue barbeque -behavior behaviour -biassed biased -biol biology -buletin bulletin -calender calendar -canceled cancelled -car automobile -catalog catalogue -cenozoic caenozoic -center centre -check cheque -color colour -comission commission -comittee committee -commitee committee -conceed concede -creating createing -curiculum curriculum -defense defence -develope develop -discription description -dulness dullness -encyclopedia encyclopaedia -enroll enrol -esthetic aesthetic -etiology aetiology -exhorbitant exorbitant -exhuberant exuberant -existance existence -favorite favourite -fetus foetus -ficticious fictitious -flavor flavour -flourescent fluorescent -foriegn foreign -fourty forty -gage guage -geneology genealogy -grammer grammar -gray grey -guerilla guerrilla -gynecology gynaecology -harbor harbour -heighth height -hemaglobin haemaglobin -hematin haematin -hematite haematite -hematology haematology -honor honour -innoculate inoculate -installment instalment -irrelevent irrelevant -irrevelant irrelevant -jeweler jeweller -judgement judgment -labeled labelled -labor labour -laborer labourer -laborers labourers -laboring labouring -licence license -liesure leisure -liquify liquefy -maintainance maintenance -maintenence maintenance -medieval mediaeval -meter metre -milage mileage -millipede millepede -miscelaneous miscellaneous -morgage mortgage -noticable noticeable -occurence occurrence -offense offence -ommision omission -ommission omission -optimize optimize -organise organize -pajamas pyjamas -paleography palaeography -paleolithic palaeolithic -paleontological palaeontological -paleontologist palaeontologist -paleontology palaeontology -paleozoic palaeozoic -pamplet pamphlet -paralell parallel -parl parliament -parlt parliament -pediatric paediatric -pediatrician paediatrician -pediatrics paediatrics -pedodontia paedodontia -pedodontics paedodontics -personel personnel -practise practice -program programme -psych psychology -questionaire questionnaire -rarify rarefy -reccomend recommend -recieve receive -resistence resistance -restaraunt restaurant -savior saviour -sep september -seperate separate -sept september -sieze seize -summarize summarise -summerize summarise -superceed supercede -superintendant superintendent -supersede supercede -suprise surprise -surprize surprise -synchronise synchronize -temperary temporary -theater theatre -threshhold threshold -transfered transferred -truely truly -truley truly -useable usable -valor valour -vigor vigour -vol volume -whack wack -withold withhold -yeild yield diff --git a/phpBB2/login.php b/phpBB2/login.php deleted file mode 100644 index 9a97a51..0000000 --- a/phpBB2/login.php +++ /dev/null @@ -1,265 +0,0 @@ -sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error in obtaining userdata', '', __LINE__, __FILE__, $sql); - } - - if( $row = $db->sql_fetchrow($result) ) - { - if( $row['user_level'] != ADMIN && $board_config['board_disable'] ) - { - redirect(append_sid("index.$phpEx", true)); - } - else - { - // If the last login is more than x minutes ago, then reset the login tries/time - if ($row['user_last_login_try'] && $board_config['login_reset_time'] && $row['user_last_login_try'] < (time() - ($board_config['login_reset_time'] * 60))) - { - $db->sql_query('UPDATE ' . USERS_TABLE . ' SET user_login_tries = 0, user_last_login_try = 0 WHERE user_id = ' . $row['user_id']); - $row['user_last_login_try'] = $row['user_login_tries'] = 0; - } - - // Check to see if user is allowed to login again... if his tries are exceeded - if ($row['user_last_login_try'] && $board_config['login_reset_time'] && $board_config['max_login_attempts'] && - $row['user_last_login_try'] >= (time() - ($board_config['login_reset_time'] * 60)) && $row['user_login_tries'] >= $board_config['max_login_attempts'] && $userdata['user_level'] != ADMIN) - { - message_die(GENERAL_MESSAGE, sprintf($lang['Login_attempts_exceeded'], $board_config['max_login_attempts'], $board_config['login_reset_time'])); - } - - if( md5($password) == $row['user_password'] && $row['user_active'] ) - { - $autologin = ( isset($HTTP_POST_VARS['autologin']) ) ? TRUE : 0; - - $admin = (isset($HTTP_POST_VARS['admin'])) ? 1 : 0; - $session_id = session_begin($row['user_id'], $user_ip, PAGE_INDEX, FALSE, $autologin, $admin); - - // Reset login tries - $db->sql_query('UPDATE ' . USERS_TABLE . ' SET user_login_tries = 0, user_last_login_try = 0 WHERE user_id = ' . $row['user_id']); - - if( $session_id ) - { - $url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx"; - redirect(append_sid($url, true)); - } - else - { - message_die(CRITICAL_ERROR, "Couldn't start session : login", "", __LINE__, __FILE__); - } - } - // Only store a failed login attempt for an active user - inactive users can't login even with a correct password - elseif( $row['user_active'] ) - { - // Save login tries and last login - if ($row['user_id'] != ANONYMOUS) - { - $sql = 'UPDATE ' . USERS_TABLE . ' - SET user_login_tries = user_login_tries + 1, user_last_login_try = ' . time() . ' - WHERE user_id = ' . $row['user_id']; - $db->sql_query($sql); - } - } - - $redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : ''; - $redirect = str_replace('?', '&', $redirect); - - if (strstr(urldecode($redirect), "\n") || strstr(urldecode($redirect), "\r") || strstr(urldecode($redirect), ';url')) - { - message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.'); - } - - $template->assign_vars(array( - 'META' => "") - ); - - $message = $lang['Error_login'] . '

    ' . sprintf($lang['Click_return_login'], "", '') . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - } - else - { - $redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : ""; - $redirect = str_replace("?", "&", $redirect); - - if (strstr(urldecode($redirect), "\n") || strstr(urldecode($redirect), "\r") || strstr(urldecode($redirect), ';url')) - { - message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.'); - } - - $template->assign_vars(array( - 'META' => "") - ); - - $message = $lang['Error_login'] . '

    ' . sprintf($lang['Click_return_login'], "", '') . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - } - else if( ( isset($HTTP_GET_VARS['logout']) || isset($HTTP_POST_VARS['logout']) ) && $userdata['session_logged_in'] ) - { - // session id check - if ($sid == '' || $sid != $userdata['session_id']) - { - message_die(GENERAL_ERROR, 'Invalid_session'); - } - - if( $userdata['session_logged_in'] ) - { - session_end($userdata['session_id'], $userdata['user_id']); - } - - if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect'])) - { - $url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']); - $url = str_replace('&', '&', $url); - redirect(append_sid($url, true)); - } - else - { - redirect(append_sid("index.$phpEx", true)); - } - } - else - { - $url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx"; - redirect(append_sid($url, true)); - } -} -else -{ - // - // Do a full login page dohickey if - // user not already logged in - // - if( !$userdata['session_logged_in'] || (isset($HTTP_GET_VARS['admin']) && $userdata['session_logged_in'] && $userdata['user_level'] == ADMIN)) - { - $page_title = $lang['Login']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'body' => 'login_body.tpl') - ); - - $forward_page = ''; - - if( isset($HTTP_POST_VARS['redirect']) || isset($HTTP_GET_VARS['redirect']) ) - { - $forward_to = $HTTP_SERVER_VARS['QUERY_STRING']; - - if( preg_match("/^redirect=([a-z0-9\.#\/\?&=\+\-_]+)/si", $forward_to, $forward_matches) ) - { - $forward_to = ( !empty($forward_matches[3]) ) ? $forward_matches[3] : $forward_matches[1]; - $forward_match = explode('&', $forward_to); - - if(count($forward_match) > 1) - { - for($i = 1; $i < count($forward_match); $i++) - { - if( !ereg("sid=", $forward_match[$i]) ) - { - if( $forward_page != '' ) - { - $forward_page .= '&'; - } - $forward_page .= $forward_match[$i]; - } - } - $forward_page = $forward_match[0] . '?' . $forward_page; - } - else - { - $forward_page = $forward_match[0]; - } - } - } - - $username = ( $userdata['user_id'] != ANONYMOUS ) ? $userdata['username'] : ''; - - $s_hidden_fields = ''; - $s_hidden_fields .= (isset($HTTP_GET_VARS['admin'])) ? '' : ''; - - make_jumpbox('viewforum.'.$phpEx); - $template->assign_vars(array( - 'USERNAME' => $username, - - 'L_ENTER_PASSWORD' => (isset($HTTP_GET_VARS['admin'])) ? $lang['Admin_reauthenticate'] : $lang['Enter_password'], - 'L_SEND_PASSWORD' => $lang['Forgotten_password'], - - 'U_SEND_PASSWORD' => append_sid("profile.$phpEx?mode=sendpassword"), - - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); - - $template->pparse('body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } - else - { - redirect(append_sid("index.$phpEx", true)); - } - -} - -?> \ No newline at end of file diff --git a/phpBB2/memberlist.php b/phpBB2/memberlist.php deleted file mode 100644 index 2f19fde..0000000 --- a/phpBB2/memberlist.php +++ /dev/null @@ -1,312 +0,0 @@ -'; -for($i = 0; $i < count($mode_types_text); $i++) -{ - $selected = ( $mode == $mode_types[$i] ) ? ' selected="selected"' : ''; - $select_sort_mode .= ''; -} -$select_sort_mode .= ''; - -$select_sort_order = ''; - -// -// Generate page -// -$page_title = $lang['Memberlist']; -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -$template->set_filenames(array( - 'body' => 'memberlist_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$template->assign_vars(array( - 'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'], - 'L_EMAIL' => $lang['Email'], - 'L_WEBSITE' => $lang['Website'], - 'L_FROM' => $lang['Location'], - 'L_ORDER' => $lang['Order'], - 'L_SORT' => $lang['Sort'], - 'L_SUBMIT' => $lang['Sort'], - 'L_AIM' => $lang['AIM'], - 'L_YIM' => $lang['YIM'], - 'L_MSNM' => $lang['MSNM'], - 'L_ICQ' => $lang['ICQ'], - 'L_JOINED' => $lang['Joined'], - 'L_POSTS' => $lang['Posts'], - 'L_PM' => $lang['Private_Message'], - - 'S_MODE_SELECT' => $select_sort_mode, - 'S_ORDER_SELECT' => $select_sort_order, - 'S_MODE_ACTION' => append_sid("memberlist.$phpEx")) -); - -switch( $mode ) -{ - case 'joined': - $order_by = "user_regdate $sort_order LIMIT $start, " . $board_config['topics_per_page']; - break; - case 'username': - $order_by = "username $sort_order LIMIT $start, " . $board_config['topics_per_page']; - break; - case 'location': - $order_by = "user_from $sort_order LIMIT $start, " . $board_config['topics_per_page']; - break; - case 'posts': - $order_by = "user_posts $sort_order LIMIT $start, " . $board_config['topics_per_page']; - break; - case 'email': - $order_by = "user_email $sort_order LIMIT $start, " . $board_config['topics_per_page']; - break; - case 'website': - $order_by = "user_website $sort_order LIMIT $start, " . $board_config['topics_per_page']; - break; - case 'topten': - $order_by = "user_posts $sort_order LIMIT 10"; - break; - default: - $order_by = "user_regdate $sort_order LIMIT $start, " . $board_config['topics_per_page']; - break; -} - -$sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar - FROM " . USERS_TABLE . " - WHERE user_id <> " . ANONYMOUS . " - ORDER BY $order_by"; -if( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not query users', '', __LINE__, __FILE__, $sql); -} - -if ( $row = $db->sql_fetchrow($result) ) -{ - $i = 0; - do - { - $username = $row['username']; - $user_id = $row['user_id']; - - $from = ( !empty($row['user_from']) ) ? $row['user_from'] : ' '; - $joined = create_date($lang['DATE_FORMAT'], $row['user_regdate'], $board_config['board_timezone']); - $posts = ( $row['user_posts'] ) ? $row['user_posts'] : 0; - - $poster_avatar = ''; - if ( $row['user_avatar_type'] && $user_id != ANONYMOUS && $row['user_allowavatar'] ) - { - switch( $row['user_avatar_type'] ) - { - case USER_AVATAR_UPLOAD: - $poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '' : ''; - break; - case USER_AVATAR_REMOTE: - $poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '' : ''; - break; - case USER_AVATAR_GALLERY: - $poster_avatar = ( $board_config['allow_avatar_local'] ) ? '' : ''; - break; - } - } - - if ( !empty($row['user_viewemail']) || $userdata['user_level'] == ADMIN ) - { - $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $user_id) : 'mailto:' . $row['user_email']; - - $email_img = '' . $lang['Send_email'] . ''; - $email = '' . $lang['Send_email'] . ''; - } - else - { - $email_img = ' '; - $email = ' '; - } - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"); - $profile_img = '' . $lang['Read_profile'] . ''; - $profile = '' . $lang['Read_profile'] . ''; - - $temp_url = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$user_id"); - $pm_img = '' . $lang['Send_private_message'] . ''; - $pm = '' . $lang['Send_private_message'] . ''; - - $www_img = ( $row['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - $www = ( $row['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - - if ( !empty($row['user_icq']) ) - { - $icq_status_img = ''; - $icq_img = '' . $lang['ICQ'] . ''; - $icq = '' . $lang['ICQ'] . ''; - } - else - { - $icq_status_img = ''; - $icq_img = ''; - $icq = ''; - } - - $aim_img = ( $row['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - $aim = ( $row['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"); - $msn_img = ( $row['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - $msn = ( $row['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - - $yim_img = ( $row['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - $yim = ( $row['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - - $temp_url = append_sid("search.$phpEx?search_author=" . urlencode($username) . "&showresults=posts"); - $search_img = '' . sprintf($lang['Search_user_posts'], $username) . ''; - $search = '' . sprintf($lang['Search_user_posts'], $username) . ''; - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('memberrow', array( - 'ROW_NUMBER' => $i + ( $start + 1 ), - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'USERNAME' => $username, - 'FROM' => $from, - 'JOINED' => $joined, - 'POSTS' => $posts, - 'AVATAR_IMG' => $poster_avatar, - 'PROFILE_IMG' => $profile_img, - 'PROFILE' => $profile, - 'SEARCH_IMG' => $search_img, - 'SEARCH' => $search, - 'PM_IMG' => $pm_img, - 'PM' => $pm, - 'EMAIL_IMG' => $email_img, - 'EMAIL' => $email, - 'WWW_IMG' => $www_img, - 'WWW' => $www, - 'ICQ_STATUS_IMG' => $icq_status_img, - 'ICQ_IMG' => $icq_img, - 'ICQ' => $icq, - 'AIM_IMG' => $aim_img, - 'AIM' => $aim, - 'MSN_IMG' => $msn_img, - 'MSN' => $msn, - 'YIM_IMG' => $yim_img, - 'YIM' => $yim, - - 'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id")) - ); - - $i++; - } - while ( $row = $db->sql_fetchrow($result) ); - $db->sql_freeresult($result); -} - -if ( $mode != 'topten' || $board_config['topics_per_page'] < 10 ) -{ - $sql = "SELECT count(*) AS total - FROM " . USERS_TABLE . " - WHERE user_id <> " . ANONYMOUS; - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting total users', '', __LINE__, __FILE__, $sql); - } - - if ( $total = $db->sql_fetchrow($result) ) - { - $total_members = $total['total']; - - $pagination = generate_pagination("memberlist.$phpEx?mode=$mode&order=$sort_order", $total_members, $board_config['topics_per_page'], $start). ' '; - } - $db->sql_freeresult($result); -} -else -{ - $pagination = ' '; - $total_members = 10; -} - -$template->assign_vars(array( - 'PAGINATION' => $pagination, - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( $total_members / $board_config['topics_per_page'] )), - - 'L_GOTO_PAGE' => $lang['Goto_page']) -); - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/modcp.php b/phpBB2/modcp.php deleted file mode 100644 index e4fbd1c..0000000 --- a/phpBB2/modcp.php +++ /dev/null @@ -1,1256 +0,0 @@ -sql_query($sql)) ) - { - message_die(GENERAL_MESSAGE, 'Topic_post_not_exist'); - } - $topic_row = $db->sql_fetchrow($result); - - if (!$topic_row) - { - message_die(GENERAL_MESSAGE, 'Topic_post_not_exist'); - } - - $forum_topics = ( $topic_row['forum_topics'] == 0 ) ? 1 : $topic_row['forum_topics']; - $forum_id = $topic_row['forum_id']; - $forum_name = $topic_row['forum_name']; -} -else if ( !empty($forum_id) ) -{ - $sql = "SELECT forum_name, forum_topics - FROM " . FORUMS_TABLE . " - WHERE forum_id = " . $forum_id; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_MESSAGE, 'Forum_not_exist'); - } - $topic_row = $db->sql_fetchrow($result); - - if (!$topic_row) - { - message_die(GENERAL_MESSAGE, 'Forum_not_exist'); - } - - $forum_topics = ( $topic_row['forum_topics'] == 0 ) ? 1 : $topic_row['forum_topics']; - $forum_name = $topic_row['forum_name']; -} -else -{ - message_die(GENERAL_MESSAGE, 'Forum_not_exist'); -} - -// -// Start session management -// -$userdata = session_pagestart($user_ip, $forum_id); -init_userprefs($userdata); -// -// End session management -// - -// session id check -if ($sid == '' || $sid != $userdata['session_id']) -{ - message_die(GENERAL_ERROR, 'Invalid_session'); -} - -// -// Check if user did or did not confirm -// If they did not, forward them to the last page they were on -// -if ( isset($HTTP_POST_VARS['cancel']) ) -{ - if ( $topic_id ) - { - $redirect = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id"; - } - else if ( $forum_id ) - { - $redirect = "viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"; - } - else - { - $redirect = "index.$phpEx"; - } - - redirect(append_sid($redirect, true)); -} - -// -// Start auth check -// -$is_auth = auth(AUTH_ALL, $forum_id, $userdata); - -if ( !$is_auth['auth_mod'] ) -{ - message_die(GENERAL_MESSAGE, $lang['Not_Moderator'], $lang['Not_Authorised']); -} -// -// End Auth Check -// - -// -// Do major work ... -// -switch( $mode ) -{ - case 'delete': - if (!$is_auth['auth_delete']) - { - message_die(GENERAL_MESSAGE, sprintf($lang['Sorry_auth_delete'], $is_auth['auth_delete_type'])); - } - - $page_title = $lang['Mod_CP']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - if ( $confirm ) - { - if ( empty($HTTP_POST_VARS['topic_id_list']) && empty($topic_id) ) - { - message_die(GENERAL_MESSAGE, $lang['None_selected']); - } - - include($phpbb_root_path . 'includes/functions_search.'.$phpEx); - - $topics = ( isset($HTTP_POST_VARS['topic_id_list']) ) ? $HTTP_POST_VARS['topic_id_list'] : array($topic_id); - - $topic_id_sql = ''; - for($i = 0; $i < count($topics); $i++) - { - $topic_id_sql .= ( ( $topic_id_sql != '' ) ? ', ' : '' ) . intval($topics[$i]); - } - - $sql = "SELECT topic_id - FROM " . TOPICS_TABLE . " - WHERE topic_id IN ($topic_id_sql) - AND forum_id = $forum_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get topic id information', '', __LINE__, __FILE__, $sql); - } - - $topic_id_sql = ''; - while ($row = $db->sql_fetchrow($result)) - { - $topic_id_sql .= (($topic_id_sql != '') ? ', ' : '') . intval($row['topic_id']); - } - $db->sql_freeresult($result); - - if ( $topic_id_sql == '') - { - message_die(GENERAL_MESSAGE, $lang['None_selected']); - } - - $sql = "SELECT poster_id, COUNT(post_id) AS posts - FROM " . POSTS_TABLE . " - WHERE topic_id IN ($topic_id_sql) - GROUP BY poster_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get poster id information', '', __LINE__, __FILE__, $sql); - } - - $count_sql = array(); - while ( $row = $db->sql_fetchrow($result) ) - { - $count_sql[] = "UPDATE " . USERS_TABLE . " - SET user_posts = user_posts - " . $row['posts'] . " - WHERE user_id = " . $row['poster_id']; - } - $db->sql_freeresult($result); - - if ( sizeof($count_sql) ) - { - for($i = 0; $i < sizeof($count_sql); $i++) - { - if ( !$db->sql_query($count_sql[$i]) ) - { - message_die(GENERAL_ERROR, 'Could not update user post count information', '', __LINE__, __FILE__, $sql); - } - } - } - - $sql = "SELECT post_id - FROM " . POSTS_TABLE . " - WHERE topic_id IN ($topic_id_sql)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get post id information', '', __LINE__, __FILE__, $sql); - } - - $post_id_sql = ''; - while ( $row = $db->sql_fetchrow($result) ) - { - $post_id_sql .= ( ( $post_id_sql != '' ) ? ', ' : '' ) . intval($row['post_id']); - } - $db->sql_freeresult($result); - - $sql = "SELECT vote_id - FROM " . VOTE_DESC_TABLE . " - WHERE topic_id IN ($topic_id_sql)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get vote id information', '', __LINE__, __FILE__, $sql); - } - - $vote_id_sql = ''; - while ( $row = $db->sql_fetchrow($result) ) - { - $vote_id_sql .= ( ( $vote_id_sql != '' ) ? ', ' : '' ) . $row['vote_id']; - } - $db->sql_freeresult($result); - - // - // Got all required info so go ahead and start deleting everything - // - $sql = "DELETE - FROM " . TOPICS_TABLE . " - WHERE topic_id IN ($topic_id_sql) - OR topic_moved_id IN ($topic_id_sql)"; - if ( !$db->sql_query($sql, BEGIN_TRANSACTION) ) - { - message_die(GENERAL_ERROR, 'Could not delete topics', '', __LINE__, __FILE__, $sql); - } - - if ( $post_id_sql != '' ) - { - $sql = "DELETE - FROM " . POSTS_TABLE . " - WHERE post_id IN ($post_id_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete posts', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE - FROM " . POSTS_TEXT_TABLE . " - WHERE post_id IN ($post_id_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete posts text', '', __LINE__, __FILE__, $sql); - } - - remove_search_post($post_id_sql); - } - - if ( $vote_id_sql != '' ) - { - $sql = "DELETE - FROM " . VOTE_DESC_TABLE . " - WHERE vote_id IN ($vote_id_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete vote descriptions', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE - FROM " . VOTE_RESULTS_TABLE . " - WHERE vote_id IN ($vote_id_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete vote results', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE - FROM " . VOTE_USERS_TABLE . " - WHERE vote_id IN ($vote_id_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete vote users', '', __LINE__, __FILE__, $sql); - } - } - - $sql = "DELETE - FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id IN ($topic_id_sql)"; - if ( !$db->sql_query($sql, END_TRANSACTION) ) - { - message_die(GENERAL_ERROR, 'Could not delete watched post list', '', __LINE__, __FILE__, $sql); - } - - sync('forum', $forum_id); - - if ( !empty($topic_id) ) - { - $redirect_page = "viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id&sid=" . $userdata['session_id']; - $l_redirect = sprintf($lang['Click_return_forum'], '', ''); - } - else - { - $redirect_page = "modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id&sid=" . $userdata['session_id']; - $l_redirect = sprintf($lang['Click_return_modcp'], '', ''); - } - - $template->assign_vars(array( - 'META' => '') - ); - - message_die(GENERAL_MESSAGE, $lang['Topics_Removed'] . '

    ' . $l_redirect); - } - else - { - // Not confirmed, show confirmation message - if ( empty($HTTP_POST_VARS['topic_id_list']) && empty($topic_id) ) - { - message_die(GENERAL_MESSAGE, $lang['None_selected']); - } - - $hidden_fields = ''; - - if ( isset($HTTP_POST_VARS['topic_id_list']) ) - { - $topics = $HTTP_POST_VARS['topic_id_list']; - for($i = 0; $i < count($topics); $i++) - { - $hidden_fields .= ''; - } - } - else - { - $hidden_fields .= ''; - } - - // - // Set template files - // - $template->set_filenames(array( - 'confirm' => 'confirm_body.tpl') - ); - - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Confirm'], - 'MESSAGE_TEXT' => $lang['Confirm_delete_topic'], - - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - - 'S_CONFIRM_ACTION' => append_sid("modcp.$phpEx"), - 'S_HIDDEN_FIELDS' => $hidden_fields) - ); - - $template->pparse('confirm'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } - break; - - case 'move': - $page_title = $lang['Mod_CP']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - if ( $confirm ) - { - if ( empty($HTTP_POST_VARS['topic_id_list']) && empty($topic_id) ) - { - message_die(GENERAL_MESSAGE, $lang['None_selected']); - } - - $new_forum_id = intval($HTTP_POST_VARS['new_forum']); - $old_forum_id = $forum_id; - - $sql = 'SELECT forum_id FROM ' . FORUMS_TABLE . ' - WHERE forum_id = ' . $new_forum_id; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select from forums table', '', __LINE__, __FILE__, $sql); - } - - if (!$db->sql_fetchrow($result)) - { - message_die(GENERAL_MESSAGE, 'New forum does not exist'); - } - - $db->sql_freeresult($result); - - if ( $new_forum_id != $old_forum_id ) - { - $topics = ( isset($HTTP_POST_VARS['topic_id_list']) ) ? $HTTP_POST_VARS['topic_id_list'] : array($topic_id); - - $topic_list = ''; - for($i = 0; $i < count($topics); $i++) - { - $topic_list .= ( ( $topic_list != '' ) ? ', ' : '' ) . intval($topics[$i]); - } - - $sql = "SELECT * - FROM " . TOPICS_TABLE . " - WHERE topic_id IN ($topic_list) - AND forum_id = $old_forum_id - AND topic_status <> " . TOPIC_MOVED; - if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) ) - { - message_die(GENERAL_ERROR, 'Could not select from topic table', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - - for($i = 0; $i < count($row); $i++) - { - $topic_id = $row[$i]['topic_id']; - - if ( isset($HTTP_POST_VARS['move_leave_shadow']) ) - { - // Insert topic in the old forum that indicates that the forum has moved. - $sql = "INSERT INTO " . TOPICS_TABLE . " (forum_id, topic_title, topic_poster, topic_time, topic_status, topic_type, topic_vote, topic_views, topic_replies, topic_first_post_id, topic_last_post_id, topic_moved_id) - VALUES ($old_forum_id, '" . addslashes(str_replace("\'", "''", $row[$i]['topic_title'])) . "', '" . str_replace("\'", "''", $row[$i]['topic_poster']) . "', " . $row[$i]['topic_time'] . ", " . TOPIC_MOVED . ", " . POST_NORMAL . ", " . $row[$i]['topic_vote'] . ", " . $row[$i]['topic_views'] . ", " . $row[$i]['topic_replies'] . ", " . $row[$i]['topic_first_post_id'] . ", " . $row[$i]['topic_last_post_id'] . ", $topic_id)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert shadow topic', '', __LINE__, __FILE__, $sql); - } - } - - $sql = "UPDATE " . TOPICS_TABLE . " - SET forum_id = $new_forum_id - WHERE topic_id = $topic_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update old topic', '', __LINE__, __FILE__, $sql); - } - - $sql = "UPDATE " . POSTS_TABLE . " - SET forum_id = $new_forum_id - WHERE topic_id = $topic_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update post topic ids', '', __LINE__, __FILE__, $sql); - } - } - - // Sync the forum indexes - sync('forum', $new_forum_id); - sync('forum', $old_forum_id); - - $message = $lang['Topics_Moved'] . '

    '; - - } - else - { - $message = $lang['No_Topics_Moved'] . '

    '; - } - - if ( !empty($topic_id) ) - { - $redirect_page = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&sid=" . $userdata['session_id']; - $message .= sprintf($lang['Click_return_topic'], '', ''); - } - else - { - $redirect_page = "modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id&sid=" . $userdata['session_id']; - $message .= sprintf($lang['Click_return_modcp'], '', ''); - } - - $message = $message . '

    ' . sprintf($lang['Click_return_forum'], '', ''); - - $template->assign_vars(array( - 'META' => '') - ); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - if ( empty($HTTP_POST_VARS['topic_id_list']) && empty($topic_id) ) - { - message_die(GENERAL_MESSAGE, $lang['None_selected']); - } - - $hidden_fields = ''; - - if ( isset($HTTP_POST_VARS['topic_id_list']) ) - { - $topics = $HTTP_POST_VARS['topic_id_list']; - - for($i = 0; $i < count($topics); $i++) - { - $hidden_fields .= ''; - } - } - else - { - $hidden_fields .= ''; - } - - // - // Set template files - // - $template->set_filenames(array( - 'movetopic' => 'modcp_move.tpl') - ); - - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Confirm'], - 'MESSAGE_TEXT' => $lang['Confirm_move_topic'], - - 'L_MOVE_TO_FORUM' => $lang['Move_to_forum'], - 'L_LEAVESHADOW' => $lang['Leave_shadow_topic'], - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - - 'S_FORUM_SELECT' => make_forum_select('new_forum', $forum_id), - 'S_MODCP_ACTION' => append_sid("modcp.$phpEx"), - 'S_HIDDEN_FIELDS' => $hidden_fields) - ); - - $template->pparse('movetopic'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } - break; - - case 'lock': - if ( empty($HTTP_POST_VARS['topic_id_list']) && empty($topic_id) ) - { - message_die(GENERAL_MESSAGE, $lang['None_selected']); - } - - $topics = ( isset($HTTP_POST_VARS['topic_id_list']) ) ? $HTTP_POST_VARS['topic_id_list'] : array($topic_id); - - $topic_id_sql = ''; - for($i = 0; $i < count($topics); $i++) - { - $topic_id_sql .= ( ( $topic_id_sql != '' ) ? ', ' : '' ) . intval($topics[$i]); - } - - $sql = "UPDATE " . TOPICS_TABLE . " - SET topic_status = " . TOPIC_LOCKED . " - WHERE topic_id IN ($topic_id_sql) - AND forum_id = $forum_id - AND topic_moved_id = 0"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update topics table', '', __LINE__, __FILE__, $sql); - } - - if ( !empty($topic_id) ) - { - $redirect_page = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&sid=" . $userdata['session_id']; - $message = sprintf($lang['Click_return_topic'], '', ''); - } - else - { - $redirect_page = "modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id&sid=" . $userdata['session_id']; - $message = sprintf($lang['Click_return_modcp'], '', ''); - } - - $message = $message . '

    ' . sprintf($lang['Click_return_forum'], '', ''); - - $template->assign_vars(array( - 'META' => '') - ); - - message_die(GENERAL_MESSAGE, $lang['Topics_Locked'] . '

    ' . $message); - - break; - - case 'unlock': - if ( empty($HTTP_POST_VARS['topic_id_list']) && empty($topic_id) ) - { - message_die(GENERAL_MESSAGE, $lang['None_selected']); - } - - $topics = ( isset($HTTP_POST_VARS['topic_id_list']) ) ? $HTTP_POST_VARS['topic_id_list'] : array($topic_id); - - $topic_id_sql = ''; - for($i = 0; $i < count($topics); $i++) - { - $topic_id_sql .= ( ( $topic_id_sql != "") ? ', ' : '' ) . intval($topics[$i]); - } - - $sql = "UPDATE " . TOPICS_TABLE . " - SET topic_status = " . TOPIC_UNLOCKED . " - WHERE topic_id IN ($topic_id_sql) - AND forum_id = $forum_id - AND topic_moved_id = 0"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update topics table', '', __LINE__, __FILE__, $sql); - } - - if ( !empty($topic_id) ) - { - $redirect_page = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&sid=" . $userdata['session_id']; - $message = sprintf($lang['Click_return_topic'], '', ''); - } - else - { - $redirect_page = "modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id&sid=" . $userdata['session_id']; - $message = sprintf($lang['Click_return_modcp'], '', ''); - } - - $message = $message . '

    ' . sprintf($lang['Click_return_forum'], '', ''); - - $template->assign_vars(array( - 'META' => '') - ); - - message_die(GENERAL_MESSAGE, $lang['Topics_Unlocked'] . '

    ' . $message); - - break; - - case 'split': - $page_title = $lang['Mod_CP']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $post_id_sql = ''; - - if (isset($HTTP_POST_VARS['split_type_all']) || isset($HTTP_POST_VARS['split_type_beyond'])) - { - $posts = $HTTP_POST_VARS['post_id_list']; - - for ($i = 0; $i < count($posts); $i++) - { - $post_id_sql .= (($post_id_sql != '') ? ', ' : '') . intval($posts[$i]); - } - } - - if ($post_id_sql != '') - { - $sql = "SELECT post_id - FROM " . POSTS_TABLE . " - WHERE post_id IN ($post_id_sql) - AND forum_id = $forum_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get post id information', '', __LINE__, __FILE__, $sql); - } - - $post_id_sql = ''; - while ($row = $db->sql_fetchrow($result)) - { - $post_id_sql .= (($post_id_sql != '') ? ', ' : '') . intval($row['post_id']); - } - $db->sql_freeresult($result); - - if ($post_id_sql == '') - { - message_die(GENERAL_MESSAGE, $lang['None_selected']); - } - - $sql = "SELECT post_id, poster_id, topic_id, post_time - FROM " . POSTS_TABLE . " - WHERE post_id IN ($post_id_sql) - ORDER BY post_time ASC"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not get post information', '', __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - $first_poster = $row['poster_id']; - $topic_id = $row['topic_id']; - $post_time = $row['post_time']; - - $user_id_sql = ''; - $post_id_sql = ''; - do - { - $user_id_sql .= (($user_id_sql != '') ? ', ' : '') . intval($row['poster_id']); - $post_id_sql .= (($post_id_sql != '') ? ', ' : '') . intval($row['post_id']);; - } - while ($row = $db->sql_fetchrow($result)); - - $post_subject = trim(htmlspecialchars($HTTP_POST_VARS['subject'])); - if (empty($post_subject)) - { - message_die(GENERAL_MESSAGE, $lang['Empty_subject']); - } - - $new_forum_id = intval($HTTP_POST_VARS['new_forum_id']); - $topic_time = time(); - - $sql = 'SELECT forum_id FROM ' . FORUMS_TABLE . ' - WHERE forum_id = ' . $new_forum_id; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select from forums table', '', __LINE__, __FILE__, $sql); - } - - if (!$db->sql_fetchrow($result)) - { - message_die(GENERAL_MESSAGE, 'New forum does not exist'); - } - - $db->sql_freeresult($result); - - $sql = "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type) - VALUES ('" . str_replace("\'", "''", $post_subject) . "', $first_poster, " . $topic_time . ", $new_forum_id, " . TOPIC_UNLOCKED . ", " . POST_NORMAL . ")"; - if (!($db->sql_query($sql, BEGIN_TRANSACTION))) - { - message_die(GENERAL_ERROR, 'Could not insert new topic', '', __LINE__, __FILE__, $sql); - } - - $new_topic_id = $db->sql_nextid(); - - // Update topic watch table, switch users whose posts - // have moved, over to watching the new topic - $sql = "UPDATE " . TOPICS_WATCH_TABLE . " - SET topic_id = $new_topic_id - WHERE topic_id = $topic_id - AND user_id IN ($user_id_sql)"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Could not update topics watch table', '', __LINE__, __FILE__, $sql); - } - - $sql_where = (!empty($HTTP_POST_VARS['split_type_beyond'])) ? " post_time >= $post_time AND topic_id = $topic_id" : "post_id IN ($post_id_sql)"; - - $sql = "UPDATE " . POSTS_TABLE . " - SET topic_id = $new_topic_id, forum_id = $new_forum_id - WHERE $sql_where"; - if (!$db->sql_query($sql, END_TRANSACTION)) - { - message_die(GENERAL_ERROR, 'Could not update posts table', '', __LINE__, __FILE__, $sql); - } - - sync('topic', $new_topic_id); - sync('topic', $topic_id); - sync('forum', $new_forum_id); - sync('forum', $forum_id); - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Topic_split'] . '

    ' . sprintf($lang['Click_return_topic'], '', ''); - message_die(GENERAL_MESSAGE, $message); - } - } - else - { - // - // Set template files - // - $template->set_filenames(array( - 'split_body' => 'modcp_split.tpl') - ); - - $sql = "SELECT u.username, p.*, pt.post_text, pt.bbcode_uid, pt.post_subject, p.post_username - FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt - WHERE p.topic_id = $topic_id - AND p.poster_id = u.user_id - AND p.post_id = pt.post_id - ORDER BY p.post_time ASC"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get topic/post information', '', __LINE__, __FILE__, $sql); - } - - $s_hidden_fields = ''; - - if( ( $total_posts = $db->sql_numrows($result) ) > 0 ) - { - $postrow = $db->sql_fetchrowset($result); - - $template->assign_vars(array( - 'L_SPLIT_TOPIC' => $lang['Split_Topic'], - 'L_SPLIT_TOPIC_EXPLAIN' => $lang['Split_Topic_explain'], - 'L_AUTHOR' => $lang['Author'], - 'L_MESSAGE' => $lang['Message'], - 'L_SELECT' => $lang['Select'], - 'L_SPLIT_SUBJECT' => $lang['Split_title'], - 'L_SPLIT_FORUM' => $lang['Split_forum'], - 'L_POSTED' => $lang['Posted'], - 'L_SPLIT_POSTS' => $lang['Split_posts'], - 'L_SUBMIT' => $lang['Submit'], - 'L_SPLIT_AFTER' => $lang['Split_after'], - 'L_POST_SUBJECT' => $lang['Post_subject'], - 'L_MARK_ALL' => $lang['Mark_all'], - 'L_UNMARK_ALL' => $lang['Unmark_all'], - 'L_POST' => $lang['Post'], - - 'FORUM_NAME' => $forum_name, - - 'U_VIEW_FORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"), - - 'S_SPLIT_ACTION' => append_sid("modcp.$phpEx"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_FORUM_SELECT' => make_forum_select("new_forum_id", false, $forum_id)) - ); - - // - // Define censored word matches - // - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); - - for($i = 0; $i < $total_posts; $i++) - { - $post_id = $postrow[$i]['post_id']; - $poster_id = $postrow[$i]['poster_id']; - $poster = $postrow[$i]['username']; - - $post_date = create_date($board_config['default_dateformat'], $postrow[$i]['post_time'], $board_config['board_timezone']); - - $bbcode_uid = $postrow[$i]['bbcode_uid']; - $message = $postrow[$i]['post_text']; - $post_subject = ( $postrow[$i]['post_subject'] != '' ) ? $postrow[$i]['post_subject'] : $topic_title; - - // - // If the board has HTML off but the post has HTML - // on then we process it, else leave it alone - // - if ( !$board_config['allow_html'] ) - { - if ( $postrow[$i]['enable_html'] ) - { - $message = preg_replace('#(<)([\/]?.*?)(>)#is', '<\\2>', $message); - } - } - - if ( $bbcode_uid != '' ) - { - $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message); - } - - if ( count($orig_word) ) - { - $post_subject = preg_replace($orig_word, $replacement_word, $post_subject); - $message = preg_replace($orig_word, $replacement_word, $message); - } - - $message = make_clickable($message); - - if ( $board_config['allow_smilies'] && $postrow[$i]['enable_smilies'] ) - { - $message = smilies_pass($message); - } - - $message = str_replace("\n", '
    ', $message); - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $checkbox = ( $i > 0 ) ? '' : ' '; - - $template->assign_block_vars('postrow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'POSTER_NAME' => $poster, - 'POST_DATE' => $post_date, - 'POST_SUBJECT' => $post_subject, - 'MESSAGE' => $message, - 'POST_ID' => $post_id, - - 'S_SPLIT_CHECKBOX' => $checkbox) - ); - } - - $template->pparse('split_body'); - } - } - break; - - case 'ip': - $page_title = $lang['Mod_CP']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $rdns_ip_num = ( isset($HTTP_GET_VARS['rdns']) ) ? $HTTP_GET_VARS['rdns'] : ""; - - if ( !$post_id ) - { - message_die(GENERAL_MESSAGE, $lang['No_such_post']); - } - - // - // Set template files - // - $template->set_filenames(array( - 'viewip' => 'modcp_viewip.tpl') - ); - - // Look up relevent data for this post - $sql = "SELECT poster_ip, poster_id - FROM " . POSTS_TABLE . " - WHERE post_id = $post_id - AND forum_id = $forum_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get poster IP information', '', __LINE__, __FILE__, $sql); - } - - if ( !($post_row = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_MESSAGE, $lang['No_such_post']); - } - - $ip_this_post = decode_ip($post_row['poster_ip']); - $ip_this_post = ( $rdns_ip_num == $ip_this_post ) ? htmlspecialchars(gethostbyaddr($ip_this_post)) : $ip_this_post; - - $poster_id = $post_row['poster_id']; - - $template->assign_vars(array( - 'L_IP_INFO' => $lang['IP_info'], - 'L_THIS_POST_IP' => $lang['This_posts_IP'], - 'L_OTHER_IPS' => $lang['Other_IP_this_user'], - 'L_OTHER_USERS' => $lang['Users_this_IP'], - 'L_LOOKUP_IP' => $lang['Lookup_IP'], - 'L_SEARCH' => $lang['Search'], - - 'SEARCH_IMG' => $images['icon_search'], - - 'IP' => $ip_this_post, - - 'U_LOOKUP_IP' => "modcp.$phpEx?mode=ip&" . POST_POST_URL . "=$post_id&" . POST_TOPIC_URL . "=$topic_id&rdns=$ip_this_post&sid=" . $userdata['session_id']) - ); - - // - // Get other IP's this user has posted under - // - $sql = "SELECT poster_ip, COUNT(*) AS postings - FROM " . POSTS_TABLE . " - WHERE poster_id = $poster_id - GROUP BY poster_ip - ORDER BY " . (( SQL_LAYER == 'msaccess' ) ? 'COUNT(*)' : 'postings' ) . " DESC"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get IP information for this user', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $i = 0; - do - { - if ( $row['poster_ip'] == $post_row['poster_ip'] ) - { - $template->assign_vars(array( - 'POSTS' => $row['postings'] . ' ' . ( ( $row['postings'] == 1 ) ? $lang['Post'] : $lang['Posts'] )) - ); - continue; - } - - $ip = decode_ip($row['poster_ip']); - $ip = ( $rdns_ip_num == $row['poster_ip'] || $rdns_ip_num == 'all') ? htmlspecialchars(gethostbyaddr($ip)) : $ip; - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('iprow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'IP' => $ip, - 'POSTS' => $row['postings'] . ' ' . ( ( $row['postings'] == 1 ) ? $lang['Post'] : $lang['Posts'] ), - - 'U_LOOKUP_IP' => "modcp.$phpEx?mode=ip&" . POST_POST_URL . "=$post_id&" . POST_TOPIC_URL . "=$topic_id&rdns=" . $row['poster_ip'] . "&sid=" . $userdata['session_id']) - ); - - $i++; - } - while ( $row = $db->sql_fetchrow($result) ); - } - - // - // Get other users who've posted under this IP - // - $sql = "SELECT u.user_id, u.username, COUNT(*) as postings - FROM " . USERS_TABLE ." u, " . POSTS_TABLE . " p - WHERE p.poster_id = u.user_id - AND p.poster_ip = '" . $post_row['poster_ip'] . "' - GROUP BY u.user_id, u.username - ORDER BY " . (( SQL_LAYER == 'msaccess' ) ? 'COUNT(*)' : 'postings' ) . " DESC"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get posters information based on IP', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $i = 0; - do - { - $id = $row['user_id']; - $username = ( $id == ANONYMOUS ) ? $lang['Guest'] : $row['username']; - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('userrow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'USERNAME' => $username, - 'POSTS' => $row['postings'] . ' ' . ( ( $row['postings'] == 1 ) ? $lang['Post'] : $lang['Posts'] ), - 'L_SEARCH_POSTS' => sprintf($lang['Search_user_posts'], $username), - - 'U_PROFILE' => ($id == ANONYMOUS) ? "modcp.$phpEx?mode=ip&" . POST_POST_URL . "=" . $post_id . "&" . POST_TOPIC_URL . "=" . $topic_id . "&sid=" . $userdata['session_id'] : append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$id"), - 'U_SEARCHPOSTS' => append_sid("search.$phpEx?search_author=" . (($id == ANONYMOUS) ? 'Anonymous' : urlencode($username)) . "&showresults=topics")) - ); - - $i++; - } - while ( $row = $db->sql_fetchrow($result) ); - } - - $template->pparse('viewip'); - - break; - - default: - $page_title = $lang['Mod_CP']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->assign_vars(array( - 'FORUM_NAME' => $forum_name, - - 'L_MOD_CP' => $lang['Mod_CP'], - 'L_MOD_CP_EXPLAIN' => $lang['Mod_CP_explain'], - 'L_SELECT' => $lang['Select'], - 'L_DELETE' => $lang['Delete'], - 'L_MOVE' => $lang['Move'], - 'L_LOCK' => $lang['Lock'], - 'L_UNLOCK' => $lang['Unlock'], - 'L_TOPICS' => $lang['Topics'], - 'L_REPLIES' => $lang['Replies'], - 'L_LASTPOST' => $lang['Last_Post'], - 'L_SELECT' => $lang['Select'], - - 'U_VIEW_FORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"), - 'S_HIDDEN_FIELDS' => '', - 'S_MODCP_ACTION' => append_sid("modcp.$phpEx")) - ); - - $template->set_filenames(array( - 'body' => 'modcp_body.tpl') - ); - make_jumpbox('modcp.'.$phpEx); - - // - // Define censored word matches - // - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); - - $sql = "SELECT t.*, u.username, u.user_id, p.post_time - FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p - WHERE t.forum_id = $forum_id - AND t.topic_poster = u.user_id - AND p.post_id = t.topic_last_post_id - ORDER BY t.topic_type DESC, p.post_time DESC - LIMIT $start, " . $board_config['topics_per_page']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql); - } - - while ( $row = $db->sql_fetchrow($result) ) - { - $topic_title = ''; - - if ( $row['topic_status'] == TOPIC_LOCKED ) - { - $folder_img = $images['folder_locked']; - $folder_alt = $lang['Topic_locked']; - } - else - { - if ( $row['topic_type'] == POST_ANNOUNCE ) - { - $folder_img = $images['folder_announce']; - $folder_alt = $lang['Topic_Announcement']; - } - else if ( $row['topic_type'] == POST_STICKY ) - { - $folder_img = $images['folder_sticky']; - $folder_alt = $lang['Topic_Sticky']; - } - else - { - $folder_img = $images['folder']; - $folder_alt = $lang['No_new_posts']; - } - } - - $topic_id = $row['topic_id']; - $topic_type = $row['topic_type']; - $topic_status = $row['topic_status']; - - if ( $topic_type == POST_ANNOUNCE ) - { - $topic_type = $lang['Topic_Announcement'] . ' '; - } - else if ( $topic_type == POST_STICKY ) - { - $topic_type = $lang['Topic_Sticky'] . ' '; - } - else if ( $topic_status == TOPIC_MOVED ) - { - $topic_type = $lang['Topic_Moved'] . ' '; - } - else - { - $topic_type = ''; - } - - if ( $row['topic_vote'] ) - { - $topic_type .= $lang['Topic_Poll'] . ' '; - } - - $topic_title = $row['topic_title']; - if ( count($orig_word) ) - { - $topic_title = preg_replace($orig_word, $replacement_word, $topic_title); - } - - $u_view_topic = "modcp.$phpEx?mode=split&" . POST_TOPIC_URL . "=$topic_id&sid=" . $userdata['session_id']; - $topic_replies = $row['topic_replies']; - - $last_post_time = create_date($board_config['default_dateformat'], $row['post_time'], $board_config['board_timezone']); - - $template->assign_block_vars('topicrow', array( - 'U_VIEW_TOPIC' => $u_view_topic, - - 'TOPIC_FOLDER_IMG' => $folder_img, - 'TOPIC_TYPE' => $topic_type, - 'TOPIC_TITLE' => $topic_title, - 'REPLIES' => $topic_replies, - 'LAST_POST_TIME' => $last_post_time, - 'TOPIC_ID' => $topic_id, - - 'L_TOPIC_FOLDER_ALT' => $folder_alt) - ); - } - - $template->assign_vars(array( - 'PAGINATION' => generate_pagination("modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id&sid=" . $userdata['session_id'], $forum_topics, $board_config['topics_per_page'], $start), - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( $forum_topics / $board_config['topics_per_page'] )), - 'L_GOTO_PAGE' => $lang['Goto_page']) - ); - - $template->pparse('body'); - - break; -} - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/phpBB-2.0.22-patch.tar.gz b/phpBB2/phpBB-2.0.22-patch.tar.gz deleted file mode 100644 index 8c43bfa..0000000 Binary files a/phpBB2/phpBB-2.0.22-patch.tar.gz and /dev/null differ diff --git a/phpBB2/posting.php b/phpBB2/posting.php deleted file mode 100644 index f8e7595..0000000 --- a/phpBB2/posting.php +++ /dev/null @@ -1,1132 +0,0 @@ - 'post', 'preview' => 'preview', 'delete' => 'delete', 'poll_delete' => 'poll_delete', 'poll_add' => 'add_poll_option', 'poll_edit' => 'edit_poll_option', 'mode' => 'mode'); -while( list($var, $param) = @each($params) ) -{ - if ( !empty($HTTP_POST_VARS[$param]) || !empty($HTTP_GET_VARS[$param]) ) - { - $$var = ( !empty($HTTP_POST_VARS[$param]) ) ? htmlspecialchars($HTTP_POST_VARS[$param]) : htmlspecialchars($HTTP_GET_VARS[$param]); - } - else - { - $$var = ''; - } -} - -$confirm = isset($HTTP_POST_VARS['confirm']) ? true : false; -$sid = (isset($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : 0; - -$params = array('forum_id' => POST_FORUM_URL, 'topic_id' => POST_TOPIC_URL, 'post_id' => POST_POST_URL); -while( list($var, $param) = @each($params) ) -{ - if ( !empty($HTTP_POST_VARS[$param]) || !empty($HTTP_GET_VARS[$param]) ) - { - $$var = ( !empty($HTTP_POST_VARS[$param]) ) ? intval($HTTP_POST_VARS[$param]) : intval($HTTP_GET_VARS[$param]); - } - else - { - $$var = ''; - } -} - -$refresh = $preview || $poll_add || $poll_edit || $poll_delete; -$orig_word = $replacement_word = array(); - -// -// Set topic type -// -$topic_type = ( !empty($HTTP_POST_VARS['topictype']) ) ? intval($HTTP_POST_VARS['topictype']) : POST_NORMAL; -$topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE)) ) ? $topic_type : POST_NORMAL; - -// -// If the mode is set to topic review then output -// that review ... -// -if ( $mode == 'topicreview' ) -{ - require($phpbb_root_path . 'includes/topic_review.'.$phpEx); - - topic_review($topic_id, false); - exit; -} -else if ( $mode == 'smilies' ) -{ - generate_smilies('window', PAGE_POSTING); - exit; -} - -// -// Start session management -// -$userdata = session_pagestart($user_ip, PAGE_POSTING); -init_userprefs($userdata); -// -// End session management -// - -// -// Was cancel pressed? If so then redirect to the appropriate -// page, no point in continuing with any further checks -// -if ( isset($HTTP_POST_VARS['cancel']) ) -{ - if ( $post_id ) - { - $redirect = "viewtopic.$phpEx?" . POST_POST_URL . "=$post_id"; - $post_append = "#$post_id"; - } - else if ( $topic_id ) - { - $redirect = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id"; - $post_append = ''; - } - else if ( $forum_id ) - { - $redirect = "viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"; - $post_append = ''; - } - else - { - $redirect = "index.$phpEx"; - $post_append = ''; - } - - redirect(append_sid($redirect, true) . $post_append); -} - -// -// What auth type do we need to check? -// -$is_auth = array(); -switch( $mode ) -{ - case 'newtopic': - if ( $topic_type == POST_ANNOUNCE ) - { - $is_auth_type = 'auth_announce'; - } - else if ( $topic_type == POST_STICKY ) - { - $is_auth_type = 'auth_sticky'; - } - else - { - $is_auth_type = 'auth_post'; - } - break; - case 'reply': - case 'quote': - $is_auth_type = 'auth_reply'; - break; - case 'editpost': - $is_auth_type = 'auth_edit'; - break; - case 'delete': - case 'poll_delete': - $is_auth_type = 'auth_delete'; - break; - case 'vote': - $is_auth_type = 'auth_vote'; - break; - case 'topicreview': - $is_auth_type = 'auth_read'; - break; - default: - message_die(GENERAL_MESSAGE, $lang['No_post_mode']); - break; -} - -// -// Here we do various lookups to find topic_id, forum_id, post_id etc. -// Doing it here prevents spoofing (eg. faking forum_id, topic_id or post_id -// -$error_msg = ''; -$post_data = array(); -switch ( $mode ) -{ - case 'newtopic': - if ( empty($forum_id) ) - { - message_die(GENERAL_MESSAGE, $lang['Forum_not_exist']); - } - - $sql = "SELECT * - FROM " . FORUMS_TABLE . " - WHERE forum_id = $forum_id"; - break; - - case 'reply': - case 'vote': - if ( empty( $topic_id) ) - { - message_die(GENERAL_MESSAGE, $lang['No_topic_id']); - } - - $sql = "SELECT f.*, t.topic_status, t.topic_title, t.topic_type - FROM " . FORUMS_TABLE . " f, " . TOPICS_TABLE . " t - WHERE t.topic_id = $topic_id - AND f.forum_id = t.forum_id"; - break; - - case 'quote': - case 'editpost': - case 'delete': - case 'poll_delete': - if ( empty($post_id) ) - { - message_die(GENERAL_MESSAGE, $lang['No_post_id']); - } - - $select_sql = (!$submit) ? ', t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig, u.user_sig_bbcode_uid' : ''; - $from_sql = ( !$submit ) ? ", " . POSTS_TEXT_TABLE . " pt, " . USERS_TABLE . " u" : ''; - $where_sql = ( !$submit ) ? "AND pt.post_id = p.post_id AND u.user_id = p.poster_id" : ''; - - $sql = "SELECT f.*, t.topic_id, t.topic_status, t.topic_type, t.topic_first_post_id, t.topic_last_post_id, t.topic_vote, p.post_id, p.poster_id" . $select_sql . " - FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $from_sql . " - WHERE p.post_id = $post_id - AND t.topic_id = p.topic_id - AND f.forum_id = p.forum_id - $where_sql"; - break; - - default: - message_die(GENERAL_MESSAGE, $lang['No_valid_mode']); -} - -if ( ($result = $db->sql_query($sql)) && ($post_info = $db->sql_fetchrow($result)) ) -{ - $db->sql_freeresult($result); - - $forum_id = $post_info['forum_id']; - $forum_name = $post_info['forum_name']; - - $is_auth = auth(AUTH_ALL, $forum_id, $userdata, $post_info); - - if ( $post_info['forum_status'] == FORUM_LOCKED && !$is_auth['auth_mod']) - { - message_die(GENERAL_MESSAGE, $lang['Forum_locked']); - } - else if ( $mode != 'newtopic' && $post_info['topic_status'] == TOPIC_LOCKED && !$is_auth['auth_mod']) - { - message_die(GENERAL_MESSAGE, $lang['Topic_locked']); - } - - if ( $mode == 'editpost' || $mode == 'delete' || $mode == 'poll_delete' ) - { - $topic_id = $post_info['topic_id']; - - $post_data['poster_post'] = ( $post_info['poster_id'] == $userdata['user_id'] ) ? true : false; - $post_data['first_post'] = ( $post_info['topic_first_post_id'] == $post_id ) ? true : false; - $post_data['last_post'] = ( $post_info['topic_last_post_id'] == $post_id ) ? true : false; - $post_data['last_topic'] = ( $post_info['forum_last_post_id'] == $post_id ) ? true : false; - $post_data['has_poll'] = ( $post_info['topic_vote'] ) ? true : false; - $post_data['topic_type'] = $post_info['topic_type']; - $post_data['poster_id'] = $post_info['poster_id']; - - if ( $post_data['first_post'] && $post_data['has_poll'] ) - { - $sql = "SELECT * - FROM " . VOTE_DESC_TABLE . " vd, " . VOTE_RESULTS_TABLE . " vr - WHERE vd.topic_id = $topic_id - AND vr.vote_id = vd.vote_id - ORDER BY vr.vote_option_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain vote data for this topic', '', __LINE__, __FILE__, $sql); - } - - $poll_options = array(); - $poll_results_sum = 0; - if ( $row = $db->sql_fetchrow($result) ) - { - $poll_title = $row['vote_text']; - $poll_id = $row['vote_id']; - $poll_length = $row['vote_length'] / 86400; - - do - { - $poll_options[$row['vote_option_id']] = $row['vote_option_text']; - $poll_results_sum += $row['vote_result']; - } - while ( $row = $db->sql_fetchrow($result) ); - } - $db->sql_freeresult($result); - - $post_data['edit_poll'] = ( ( !$poll_results_sum || $is_auth['auth_mod'] ) && $post_data['first_post'] ) ? true : 0; - } - else - { - $post_data['edit_poll'] = ($post_data['first_post'] && $is_auth['auth_pollcreate']) ? true : false; - } - - // - // Can this user edit/delete the post/poll? - // - if ( $post_info['poster_id'] != $userdata['user_id'] && !$is_auth['auth_mod'] ) - { - $message = ( $delete || $mode == 'delete' ) ? $lang['Delete_own_posts'] : $lang['Edit_own_posts']; - $message .= '

    ' . sprintf($lang['Click_return_topic'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - else if ( !$post_data['last_post'] && !$is_auth['auth_mod'] && ( $mode == 'delete' || $delete ) ) - { - message_die(GENERAL_MESSAGE, $lang['Cannot_delete_replied']); - } - else if ( !$post_data['edit_poll'] && !$is_auth['auth_mod'] && ( $mode == 'poll_delete' || $poll_delete ) ) - { - message_die(GENERAL_MESSAGE, $lang['Cannot_delete_poll']); - } - } - else - { - if ( $mode == 'quote' ) - { - $topic_id = $post_info['topic_id']; - } - if ( $mode == 'newtopic' ) - { - $post_data['topic_type'] = POST_NORMAL; - } - - $post_data['first_post'] = ( $mode == 'newtopic' ) ? true : 0; - $post_data['last_post'] = false; - $post_data['has_poll'] = false; - $post_data['edit_poll'] = false; - } - if ( $mode == 'poll_delete' && !isset($poll_id) ) - { - message_die(GENERAL_MESSAGE, $lang['No_such_post']); - } -} -else -{ - message_die(GENERAL_MESSAGE, $lang['No_such_post']); -} - -// -// The user is not authed, if they're not logged in then redirect -// them, else show them an error message -// -if ( !$is_auth[$is_auth_type] ) -{ - if ( $userdata['session_logged_in'] ) - { - message_die(GENERAL_MESSAGE, sprintf($lang['Sorry_' . $is_auth_type], $is_auth[$is_auth_type . "_type"])); - } - - switch( $mode ) - { - case 'newtopic': - $redirect = "mode=newtopic&" . POST_FORUM_URL . "=" . $forum_id; - break; - case 'reply': - case 'topicreview': - $redirect = "mode=reply&" . POST_TOPIC_URL . "=" . $topic_id; - break; - case 'quote': - case 'editpost': - $redirect = "mode=quote&" . POST_POST_URL ."=" . $post_id; - break; - } - - redirect(append_sid("login.$phpEx?redirect=posting.$phpEx&" . $redirect, true)); -} - -// -// Set toggles for various options -// -if ( !$board_config['allow_html'] ) -{ - $html_on = 0; -} -else -{ - $html_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_html']) ) ? 0 : TRUE ) : ( ( $userdata['user_id'] == ANONYMOUS ) ? $board_config['allow_html'] : $userdata['user_allowhtml'] ); -} - -if ( !$board_config['allow_bbcode'] ) -{ - $bbcode_on = 0; -} -else -{ - $bbcode_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_bbcode']) ) ? 0 : TRUE ) : ( ( $userdata['user_id'] == ANONYMOUS ) ? $board_config['allow_bbcode'] : $userdata['user_allowbbcode'] ); -} - -if ( !$board_config['allow_smilies'] ) -{ - $smilies_on = 0; -} -else -{ - $smilies_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_smilies']) ) ? 0 : TRUE ) : ( ( $userdata['user_id'] == ANONYMOUS ) ? $board_config['allow_smilies'] : $userdata['user_allowsmile'] ); -} - -if ( ($submit || $refresh) && $is_auth['auth_read']) -{ - $notify_user = ( !empty($HTTP_POST_VARS['notify']) ) ? TRUE : 0; -} -else -{ - if ( $mode != 'newtopic' && $userdata['session_logged_in'] && $is_auth['auth_read'] ) - { - $sql = "SELECT topic_id - FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain topic watch information', '', __LINE__, __FILE__, $sql); - } - - $notify_user = ( $db->sql_fetchrow($result) ) ? TRUE : $userdata['user_notify']; - $db->sql_freeresult($result); - } - else - { - $notify_user = ( $userdata['session_logged_in'] && $is_auth['auth_read'] ) ? $userdata['user_notify'] : 0; - } -} - -$attach_sig = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['attach_sig']) ) ? TRUE : 0 ) : ( ( $userdata['user_id'] == ANONYMOUS ) ? 0 : $userdata['user_attachsig'] ); - -// -------------------- -// What shall we do? -// -if ( ( $delete || $poll_delete || $mode == 'delete' ) && !$confirm ) -{ - // - // Confirm deletion - // - $s_hidden_fields = ''; - $s_hidden_fields .= ( $delete || $mode == "delete" ) ? '' : ''; - $s_hidden_fields .= ''; - - $l_confirm = ( $delete || $mode == 'delete' ) ? $lang['Confirm_delete'] : $lang['Confirm_delete_poll']; - - // - // Output confirmation page - // - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'confirm_body' => 'confirm_body.tpl') - ); - - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Information'], - 'MESSAGE_TEXT' => $l_confirm, - - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - - 'S_CONFIRM_ACTION' => append_sid("posting.$phpEx"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); - - $template->pparse('confirm_body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); -} -else if ( $mode == 'vote' ) -{ - // - // Vote in a poll - // - if ( !empty($HTTP_POST_VARS['vote_id']) ) - { - $vote_option_id = intval($HTTP_POST_VARS['vote_id']); - - $sql = "SELECT vd.vote_id - FROM " . VOTE_DESC_TABLE . " vd, " . VOTE_RESULTS_TABLE . " vr - WHERE vd.topic_id = $topic_id - AND vr.vote_id = vd.vote_id - AND vr.vote_option_id = $vote_option_id - GROUP BY vd.vote_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain vote data for this topic', '', __LINE__, __FILE__, $sql); - } - - if ( $vote_info = $db->sql_fetchrow($result) ) - { - $vote_id = $vote_info['vote_id']; - - $sql = "SELECT * - FROM " . VOTE_USERS_TABLE . " - WHERE vote_id = $vote_id - AND vote_user_id = " . $userdata['user_id']; - if ( !($result2 = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user vote data for this topic', '', __LINE__, __FILE__, $sql); - } - - if ( !($row = $db->sql_fetchrow($result2)) ) - { - $sql = "UPDATE " . VOTE_RESULTS_TABLE . " - SET vote_result = vote_result + 1 - WHERE vote_id = $vote_id - AND vote_option_id = $vote_option_id"; - if ( !$db->sql_query($sql, BEGIN_TRANSACTION) ) - { - message_die(GENERAL_ERROR, 'Could not update poll result', '', __LINE__, __FILE__, $sql); - } - - $sql = "INSERT INTO " . VOTE_USERS_TABLE . " (vote_id, vote_user_id, vote_user_ip) - VALUES ($vote_id, " . $userdata['user_id'] . ", '$user_ip')"; - if ( !$db->sql_query($sql, END_TRANSACTION) ) - { - message_die(GENERAL_ERROR, "Could not insert user_id for poll", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Vote_cast']; - } - else - { - $message = $lang['Already_voted']; - } - $db->sql_freeresult($result2); - } - else - { - $message = $lang['No_vote_option']; - } - $db->sql_freeresult($result); - - $template->assign_vars(array( - 'META' => '') - ); - $message .= '

    ' . sprintf($lang['Click_view_message'], '', ''); - message_die(GENERAL_MESSAGE, $message); - } - else - { - redirect(append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id", true)); - } -} -else if ( $submit || $confirm ) -{ - // - // Submit post/vote (newtopic, edit, reply, etc.) - // - $return_message = ''; - $return_meta = ''; - - // session id check - if ($sid == '' || $sid != $userdata['session_id']) - { - $error_msg .= (!empty($error_msg)) ? '
    ' . $lang['Session_invalid'] : $lang['Session_invalid']; - } - - switch ( $mode ) - { - case 'editpost': - case 'newtopic': - case 'reply': - $username = ( !empty($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : ''; - $subject = ( !empty($HTTP_POST_VARS['subject']) ) ? trim($HTTP_POST_VARS['subject']) : ''; - $message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : ''; - $poll_title = ( isset($HTTP_POST_VARS['poll_title']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_title'] : ''; - $poll_options = ( isset($HTTP_POST_VARS['poll_option_text']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_option_text'] : ''; - $poll_length = ( isset($HTTP_POST_VARS['poll_length']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_length'] : ''; - $bbcode_uid = ''; - - prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length); - - if ( $error_msg == '' ) - { - $topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type; - - submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length); - } - break; - - case 'delete': - case 'poll_delete': - if ($error_msg != '') - { - message_die(GENERAL_MESSAGE, $error_msg); - } - - delete_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id); - break; - } - - if ( $error_msg == '' ) - { - if ( $mode != 'editpost' ) - { - $user_id = ( $mode == 'reply' || $mode == 'newtopic' ) ? $userdata['user_id'] : $post_data['poster_id']; - update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id); - } - - if ($error_msg == '' && $mode != 'poll_delete') - { - user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user); - } - - if ( $mode == 'newtopic' || $mode == 'reply' ) - { - $tracking_topics = ( !empty($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array(); - $tracking_forums = ( !empty($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array(); - - if ( count($tracking_topics) + count($tracking_forums) == 100 && empty($tracking_topics[$topic_id]) ) - { - asort($tracking_topics); - unset($tracking_topics[key($tracking_topics)]); - } - - $tracking_topics[$topic_id] = time(); - - setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']); - } - - $template->assign_vars(array( - 'META' => $return_meta) - ); - message_die(GENERAL_MESSAGE, $return_message); - } -} - -if( $refresh || isset($HTTP_POST_VARS['del_poll_option']) || $error_msg != '' ) -{ - $username = ( !empty($HTTP_POST_VARS['username']) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['username']))) : ''; - $subject = ( !empty($HTTP_POST_VARS['subject']) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['subject']))) : ''; - $message = ( !empty($HTTP_POST_VARS['message']) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['message']))) : ''; - - $poll_title = ( !empty($HTTP_POST_VARS['poll_title']) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['poll_title']))) : ''; - $poll_length = ( isset($HTTP_POST_VARS['poll_length']) ) ? max(0, intval($HTTP_POST_VARS['poll_length'])) : 0; - - $poll_options = array(); - if ( !empty($HTTP_POST_VARS['poll_option_text']) ) - { - while( list($option_id, $option_text) = @each($HTTP_POST_VARS['poll_option_text']) ) - { - if( isset($HTTP_POST_VARS['del_poll_option'][$option_id]) ) - { - unset($poll_options[$option_id]); - } - else if ( !empty($option_text) ) - { - $poll_options[intval($option_id)] = htmlspecialchars(trim(stripslashes($option_text))); - } - } - } - - if ( isset($poll_add) && !empty($HTTP_POST_VARS['add_poll_option_text']) ) - { - $poll_options[] = htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['add_poll_option_text']))); - } - - if ( $mode == 'newtopic' || $mode == 'reply') - { - $user_sig = ( $userdata['user_sig'] != '' && $board_config['allow_sig'] ) ? $userdata['user_sig'] : ''; - } - else if ( $mode == 'editpost' ) - { - $user_sig = ( $post_info['user_sig'] != '' && $board_config['allow_sig'] ) ? $post_info['user_sig'] : ''; - $userdata['user_sig_bbcode_uid'] = $post_info['user_sig_bbcode_uid']; - } - - if( $preview ) - { - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); - - $bbcode_uid = ( $bbcode_on ) ? make_bbcode_uid() : ''; - $preview_message = stripslashes(prepare_message(addslashes(unprepare_message($message)), $html_on, $bbcode_on, $smilies_on, $bbcode_uid)); - $preview_subject = $subject; - $preview_username = $username; - - // - // Finalise processing as per viewtopic - // - if( !$html_on ) - { - if( $user_sig != '' || !$userdata['user_allowhtml'] ) - { - $user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', '<\2>', $user_sig); - } - } - - if( $attach_sig && $user_sig != '' && $userdata['user_sig_bbcode_uid'] ) - { - $user_sig = bbencode_second_pass($user_sig, $userdata['user_sig_bbcode_uid']); - } - - if( $bbcode_on ) - { - $preview_message = bbencode_second_pass($preview_message, $bbcode_uid); - } - - if( !empty($orig_word) ) - { - $preview_username = ( !empty($username) ) ? preg_replace($orig_word, $replacement_word, $preview_username) : ''; - $preview_subject = ( !empty($subject) ) ? preg_replace($orig_word, $replacement_word, $preview_subject) : ''; - $preview_message = ( !empty($preview_message) ) ? preg_replace($orig_word, $replacement_word, $preview_message) : ''; - } - - if( $user_sig != '' ) - { - $user_sig = make_clickable($user_sig); - } - $preview_message = make_clickable($preview_message); - - if( $smilies_on ) - { - if( $userdata['user_allowsmile'] && $user_sig != '' ) - { - $user_sig = smilies_pass($user_sig); - } - - $preview_message = smilies_pass($preview_message); - } - - if( $attach_sig && $user_sig != '' ) - { - $preview_message = $preview_message . '

    _________________
    ' . $user_sig; - } - - $preview_message = str_replace("\n", '
    ', $preview_message); - - $template->set_filenames(array( - 'preview' => 'posting_preview.tpl') - ); - - $template->assign_vars(array( - 'TOPIC_TITLE' => $preview_subject, - 'POST_SUBJECT' => $preview_subject, - 'POSTER_NAME' => $preview_username, - 'POST_DATE' => create_date($board_config['default_dateformat'], time(), $board_config['board_timezone']), - 'MESSAGE' => $preview_message, - - 'L_POST_SUBJECT' => $lang['Post_subject'], - 'L_PREVIEW' => $lang['Preview'], - 'L_POSTED' => $lang['Posted'], - 'L_POST' => $lang['Post']) - ); - $template->assign_var_from_handle('POST_PREVIEW_BOX', 'preview'); - } - else if( $error_msg != '' ) - { - $template->set_filenames(array( - 'reg_header' => 'error_body.tpl') - ); - $template->assign_vars(array( - 'ERROR_MESSAGE' => $error_msg) - ); - $template->assign_var_from_handle('ERROR_BOX', 'reg_header'); - } -} -else -{ - // - // User default entry point - // - if ( $mode == 'newtopic' ) - { - $user_sig = ( $userdata['user_sig'] != '' ) ? $userdata['user_sig'] : ''; - - $username = ($userdata['session_logged_in']) ? $userdata['username'] : ''; - $poll_title = ''; - $poll_length = ''; - $subject = ''; - $message = ''; - } - else if ( $mode == 'reply' ) - { - $user_sig = ( $userdata['user_sig'] != '' ) ? $userdata['user_sig'] : ''; - - $username = ( $userdata['session_logged_in'] ) ? $userdata['username'] : ''; - $subject = ''; - $message = ''; - - } - else if ( $mode == 'quote' || $mode == 'editpost' ) - { - $subject = ( $post_data['first_post'] ) ? $post_info['topic_title'] : $post_info['post_subject']; - $message = $post_info['post_text']; - - if ( $mode == 'editpost' ) - { - $attach_sig = ( $post_info['enable_sig'] && $post_info['user_sig'] != '' ) ? TRUE : 0; - $user_sig = $post_info['user_sig']; - - $html_on = ( $post_info['enable_html'] ) ? true : false; - $bbcode_on = ( $post_info['enable_bbcode'] ) ? true : false; - $smilies_on = ( $post_info['enable_smilies'] ) ? true : false; - } - else - { - $attach_sig = ( $userdata['user_attachsig'] ) ? TRUE : 0; - $user_sig = $userdata['user_sig']; - } - - if ( $post_info['bbcode_uid'] != '' ) - { - $message = preg_replace('/\:(([a-z0-9]:)?)' . $post_info['bbcode_uid'] . '/s', '', $message); - } - - $message = str_replace('<', '<', $message); - $message = str_replace('>', '>', $message); - $message = str_replace('
    ', "\n", $message); - - if ( $mode == 'quote' ) - { - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replace_word); - - $msg_date = create_date($board_config['default_dateformat'], $postrow['post_time'], $board_config['board_timezone']); - - // Use trim to get rid of spaces placed there by MS-SQL 2000 - $quote_username = ( trim($post_info['post_username']) != '' ) ? $post_info['post_username'] : $post_info['username']; - $message = '[quote="' . $quote_username . '"]' . $message . '[/quote]'; - - if ( !empty($orig_word) ) - { - $subject = ( !empty($subject) ) ? preg_replace($orig_word, $replace_word, $subject) : ''; - $message = ( !empty($message) ) ? preg_replace($orig_word, $replace_word, $message) : ''; - } - - if ( !preg_match('/^Re:/', $subject) && strlen($subject) > 0 ) - { - $subject = 'Re: ' . $subject; - } - - $mode = 'reply'; - } - else - { - $username = ( $post_info['user_id'] == ANONYMOUS && !empty($post_info['post_username']) ) ? $post_info['post_username'] : ''; - } - } -} - -// -// Signature toggle selection -// -if( $user_sig != '' ) -{ - $template->assign_block_vars('switch_signature_checkbox', array()); -} - -// -// HTML toggle selection -// -if ( $board_config['allow_html'] ) -{ - $html_status = $lang['HTML_is_ON']; - $template->assign_block_vars('switch_html_checkbox', array()); -} -else -{ - $html_status = $lang['HTML_is_OFF']; -} - -// -// BBCode toggle selection -// -if ( $board_config['allow_bbcode'] ) -{ - $bbcode_status = $lang['BBCode_is_ON']; - $template->assign_block_vars('switch_bbcode_checkbox', array()); -} -else -{ - $bbcode_status = $lang['BBCode_is_OFF']; -} - -// -// Smilies toggle selection -// -if ( $board_config['allow_smilies'] ) -{ - $smilies_status = $lang['Smilies_are_ON']; - $template->assign_block_vars('switch_smilies_checkbox', array()); -} -else -{ - $smilies_status = $lang['Smilies_are_OFF']; -} - -if( !$userdata['session_logged_in'] || ( $mode == 'editpost' && $post_info['poster_id'] == ANONYMOUS ) ) -{ - $template->assign_block_vars('switch_username_select', array()); -} - -// -// Notify checkbox - only show if user is logged in -// -if ( $userdata['session_logged_in'] && $is_auth['auth_read'] ) -{ - if ( $mode != 'editpost' || ( $mode == 'editpost' && $post_info['poster_id'] != ANONYMOUS ) ) - { - $template->assign_block_vars('switch_notify_checkbox', array()); - } -} - -// -// Delete selection -// -if ( $mode == 'editpost' && ( ( $is_auth['auth_delete'] && $post_data['last_post'] && ( !$post_data['has_poll'] || $post_data['edit_poll'] ) ) || $is_auth['auth_mod'] ) ) -{ - $template->assign_block_vars('switch_delete_checkbox', array()); -} - -// -// Topic type selection -// -$topic_type_toggle = ''; -if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) ) -{ - $template->assign_block_vars('switch_type_toggle', array()); - - if( $is_auth['auth_sticky'] ) - { - $topic_type_toggle .= ' ' . $lang['Post_Normal'] . '  ' . $topic_type_toggle; - } -} - -$hidden_form_fields = ''; -$hidden_form_fields .= ''; - -switch( $mode ) -{ - case 'newtopic': - $page_title = $lang['Post_a_new_topic']; - $hidden_form_fields .= ''; - break; - - case 'reply': - $page_title = $lang['Post_a_reply']; - $hidden_form_fields .= ''; - break; - - case 'editpost': - $page_title = $lang['Edit_Post']; - $hidden_form_fields .= ''; - break; -} - -// Generate smilies listing for page output -generate_smilies('inline', PAGE_POSTING); - -// -// Include page header -// -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -$template->set_filenames(array( - 'body' => 'posting_body.tpl', - 'pollbody' => 'posting_poll_body.tpl', - 'reviewbody' => 'posting_topic_review.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$template->assign_vars(array( - 'FORUM_NAME' => $forum_name, - 'L_POST_A' => $page_title, - 'L_POST_SUBJECT' => $lang['Post_subject'], - - 'U_VIEW_FORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id")) -); - -// -// This enables the forum/topic title to be output for posting -// but not for privmsg (where it makes no sense) -// -$template->assign_block_vars('switch_not_privmsg', array()); - -// -// Output the data to the template -// -$template->assign_vars(array( - 'USERNAME' => $username, - 'SUBJECT' => $subject, - 'MESSAGE' => $message, - 'HTML_STATUS' => $html_status, - 'BBCODE_STATUS' => sprintf($bbcode_status, '', ''), - 'SMILIES_STATUS' => $smilies_status, - - 'L_SUBJECT' => $lang['Subject'], - 'L_MESSAGE_BODY' => $lang['Message_body'], - 'L_OPTIONS' => $lang['Options'], - 'L_PREVIEW' => $lang['Preview'], - 'L_SPELLCHECK' => $lang['Spellcheck'], - 'L_SUBMIT' => $lang['Submit'], - 'L_CANCEL' => $lang['Cancel'], - 'L_CONFIRM_DELETE' => $lang['Confirm_delete'], - 'L_DISABLE_HTML' => $lang['Disable_HTML_post'], - 'L_DISABLE_BBCODE' => $lang['Disable_BBCode_post'], - 'L_DISABLE_SMILIES' => $lang['Disable_Smilies_post'], - 'L_ATTACH_SIGNATURE' => $lang['Attach_signature'], - 'L_NOTIFY_ON_REPLY' => $lang['Notify'], - 'L_DELETE_POST' => $lang['Delete_post'], - - 'L_BBCODE_B_HELP' => $lang['bbcode_b_help'], - 'L_BBCODE_I_HELP' => $lang['bbcode_i_help'], - 'L_BBCODE_U_HELP' => $lang['bbcode_u_help'], - 'L_BBCODE_Q_HELP' => $lang['bbcode_q_help'], - 'L_BBCODE_C_HELP' => $lang['bbcode_c_help'], - 'L_BBCODE_L_HELP' => $lang['bbcode_l_help'], - 'L_BBCODE_O_HELP' => $lang['bbcode_o_help'], - 'L_BBCODE_P_HELP' => $lang['bbcode_p_help'], - 'L_BBCODE_W_HELP' => $lang['bbcode_w_help'], - 'L_BBCODE_A_HELP' => $lang['bbcode_a_help'], - 'L_BBCODE_S_HELP' => $lang['bbcode_s_help'], - 'L_BBCODE_F_HELP' => $lang['bbcode_f_help'], - 'L_EMPTY_MESSAGE' => $lang['Empty_message'], - - 'L_FONT_COLOR' => $lang['Font_color'], - 'L_COLOR_DEFAULT' => $lang['color_default'], - 'L_COLOR_DARK_RED' => $lang['color_dark_red'], - 'L_COLOR_RED' => $lang['color_red'], - 'L_COLOR_ORANGE' => $lang['color_orange'], - 'L_COLOR_BROWN' => $lang['color_brown'], - 'L_COLOR_YELLOW' => $lang['color_yellow'], - 'L_COLOR_GREEN' => $lang['color_green'], - 'L_COLOR_OLIVE' => $lang['color_olive'], - 'L_COLOR_CYAN' => $lang['color_cyan'], - 'L_COLOR_BLUE' => $lang['color_blue'], - 'L_COLOR_DARK_BLUE' => $lang['color_dark_blue'], - 'L_COLOR_INDIGO' => $lang['color_indigo'], - 'L_COLOR_VIOLET' => $lang['color_violet'], - 'L_COLOR_WHITE' => $lang['color_white'], - 'L_COLOR_BLACK' => $lang['color_black'], - - 'L_FONT_SIZE' => $lang['Font_size'], - 'L_FONT_TINY' => $lang['font_tiny'], - 'L_FONT_SMALL' => $lang['font_small'], - 'L_FONT_NORMAL' => $lang['font_normal'], - 'L_FONT_LARGE' => $lang['font_large'], - 'L_FONT_HUGE' => $lang['font_huge'], - - 'L_BBCODE_CLOSE_TAGS' => $lang['Close_Tags'], - 'L_STYLES_TIP' => $lang['Styles_tip'], - - 'U_VIEWTOPIC' => ( $mode == 'reply' ) ? append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postorder=desc") : '', - 'U_REVIEW_TOPIC' => ( $mode == 'reply' ) ? append_sid("posting.$phpEx?mode=topicreview&" . POST_TOPIC_URL . "=$topic_id") : '', - - 'S_HTML_CHECKED' => ( !$html_on ) ? 'checked="checked"' : '', - 'S_BBCODE_CHECKED' => ( !$bbcode_on ) ? 'checked="checked"' : '', - 'S_SMILIES_CHECKED' => ( !$smilies_on ) ? 'checked="checked"' : '', - 'S_SIGNATURE_CHECKED' => ( $attach_sig ) ? 'checked="checked"' : '', - 'S_NOTIFY_CHECKED' => ( $notify_user ) ? 'checked="checked"' : '', - 'S_TYPE_TOGGLE' => $topic_type_toggle, - 'S_TOPIC_ID' => $topic_id, - 'S_POST_ACTION' => append_sid("posting.$phpEx"), - 'S_HIDDEN_FORM_FIELDS' => $hidden_form_fields) -); - -// -// Poll entry switch/output -// -if( ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['edit_poll']) ) && $is_auth['auth_pollcreate'] ) -{ - $template->assign_vars(array( - 'L_ADD_A_POLL' => $lang['Add_poll'], - 'L_ADD_POLL_EXPLAIN' => $lang['Add_poll_explain'], - 'L_POLL_QUESTION' => $lang['Poll_question'], - 'L_POLL_OPTION' => $lang['Poll_option'], - 'L_ADD_OPTION' => $lang['Add_option'], - 'L_UPDATE_OPTION' => $lang['Update'], - 'L_DELETE_OPTION' => $lang['Delete'], - 'L_POLL_LENGTH' => $lang['Poll_for'], - 'L_DAYS' => $lang['Days'], - 'L_POLL_LENGTH_EXPLAIN' => $lang['Poll_for_explain'], - 'L_POLL_DELETE' => $lang['Delete_poll'], - - 'POLL_TITLE' => $poll_title, - 'POLL_LENGTH' => $poll_length) - ); - - if( $mode == 'editpost' && $post_data['edit_poll'] && $post_data['has_poll']) - { - $template->assign_block_vars('switch_poll_delete_toggle', array()); - } - - if( !empty($poll_options) ) - { - while( list($option_id, $option_text) = each($poll_options) ) - { - $template->assign_block_vars('poll_option_rows', array( - 'POLL_OPTION' => str_replace('"', '"', $option_text), - - 'S_POLL_OPTION_NUM' => $option_id) - ); - } - } - - $template->assign_var_from_handle('POLLBOX', 'pollbody'); -} - -// -// Topic review -// -if( $mode == 'reply' && $is_auth['auth_read'] ) -{ - require($phpbb_root_path . 'includes/topic_review.'.$phpEx); - topic_review($topic_id, true); - - $template->assign_block_vars('switch_inline_mode', array()); - $template->assign_var_from_handle('TOPIC_REVIEW_BOX', 'reviewbody'); -} - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/privmsg.php b/phpBB2/privmsg.php deleted file mode 100644 index 655d601..0000000 --- a/phpBB2/privmsg.php +++ /dev/null @@ -1,2210 +0,0 @@ -#', '#"#'); -$html_entities_replace = array('&', '<', '>', '"'); - -// -// Parameters -// -$submit = ( isset($HTTP_POST_VARS['post']) ) ? TRUE : 0; -$submit_search = ( isset($HTTP_POST_VARS['usersubmit']) ) ? TRUE : 0; -$submit_msgdays = ( isset($HTTP_POST_VARS['submit_msgdays']) ) ? TRUE : 0; -$cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? TRUE : 0; -$preview = ( isset($HTTP_POST_VARS['preview']) ) ? TRUE : 0; -$confirm = ( isset($HTTP_POST_VARS['confirm']) ) ? TRUE : 0; -$delete = ( isset($HTTP_POST_VARS['delete']) ) ? TRUE : 0; -$delete_all = ( isset($HTTP_POST_VARS['deleteall']) ) ? TRUE : 0; -$save = ( isset($HTTP_POST_VARS['save']) ) ? TRUE : 0; -$sid = (isset($HTTP_POST_VARS['sid'])) ? $HTTP_POST_VARS['sid'] : 0; - -$refresh = $preview || $submit_search; - -$mark_list = ( !empty($HTTP_POST_VARS['mark']) ) ? $HTTP_POST_VARS['mark'] : 0; - -if ( isset($HTTP_POST_VARS['folder']) || isset($HTTP_GET_VARS['folder']) ) -{ - $folder = ( isset($HTTP_POST_VARS['folder']) ) ? $HTTP_POST_VARS['folder'] : $HTTP_GET_VARS['folder']; - $folder = htmlspecialchars($folder); - - if ( $folder != 'inbox' && $folder != 'outbox' && $folder != 'sentbox' && $folder != 'savebox' ) - { - $folder = 'inbox'; - } -} -else -{ - $folder = 'inbox'; -} - -// -// Start session management -// -$userdata = session_pagestart($user_ip, PAGE_PRIVMSGS); -init_userprefs($userdata); -// -// End session management -// - -// -// Cancel -// -if ( $cancel ) -{ - redirect(append_sid("privmsg.$phpEx?folder=$folder", true)); -} - -// -// Var definitions -// -if ( !empty($HTTP_POST_VARS['mode']) || !empty($HTTP_GET_VARS['mode']) ) -{ - $mode = ( !empty($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; - $mode = htmlspecialchars($mode); -} -else -{ - $mode = ''; -} - -$start = ( !empty($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0; -$start = ($start < 0) ? 0 : $start; - -if ( isset($HTTP_POST_VARS[POST_POST_URL]) || isset($HTTP_GET_VARS[POST_POST_URL]) ) -{ - $privmsg_id = ( isset($HTTP_POST_VARS[POST_POST_URL]) ) ? intval($HTTP_POST_VARS[POST_POST_URL]) : intval($HTTP_GET_VARS[POST_POST_URL]); -} -else -{ - $privmsg_id = ''; -} - -$error = FALSE; - -// -// Define the box image links -// -$inbox_img = ( $folder != 'inbox' || $mode != '' ) ? '' . $lang['Inbox'] . '' : '' . $lang['Inbox'] . ''; -$inbox_url = ( $folder != 'inbox' || $mode != '' ) ? '' . $lang['Inbox'] . '' : $lang['Inbox']; - -$outbox_img = ( $folder != 'outbox' || $mode != '' ) ? '' . $lang['Outbox'] . '' : '' . $lang['Outbox'] . ''; -$outbox_url = ( $folder != 'outbox' || $mode != '' ) ? '' . $lang['Outbox'] . '' : $lang['Outbox']; - -$sentbox_img = ( $folder != 'sentbox' || $mode != '' ) ? '' . $lang['Sentbox'] . '' : '' . $lang['Sentbox'] . ''; -$sentbox_url = ( $folder != 'sentbox' || $mode != '' ) ? '' . $lang['Sentbox'] . '' : $lang['Sentbox']; - -$savebox_img = ( $folder != 'savebox' || $mode != '' ) ? '' . $lang['Savebox'] . '' : '' . $lang['Savebox'] . ''; -$savebox_url = ( $folder != 'savebox' || $mode != '' ) ? '' . $lang['Savebox'] . '' : $lang['Savebox']; - -// ---------- -// Start main -// -if ( $mode == 'newpm' ) -{ - $gen_simple_header = TRUE; - - $page_title = $lang['Private_Messaging']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'body' => 'privmsgs_popup.tpl') - ); - - if ( $userdata['session_logged_in'] ) - { - if ( $userdata['user_new_privmsg'] ) - { - $l_new_message = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['You_new_pm'] : $lang['You_new_pms']; - } - else - { - $l_new_message = $lang['You_no_new_pm']; - } - - $l_new_message .= '

    ' . sprintf($lang['Click_view_privmsg'], '', ''); - } - else - { - $l_new_message = $lang['Login_check_pm']; - } - - $template->assign_vars(array( - 'L_CLOSE_WINDOW' => $lang['Close_window'], - 'L_MESSAGE' => $l_new_message) - ); - - $template->pparse('body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -} -else if ( $mode == 'read' ) -{ - if ( !empty($HTTP_GET_VARS[POST_POST_URL]) ) - { - $privmsgs_id = intval($HTTP_GET_VARS[POST_POST_URL]); - } - else - { - message_die(GENERAL_ERROR, $lang['No_post_id']); - } - - if ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=privmsg.$phpEx&folder=$folder&mode=$mode&" . POST_POST_URL . "=$privmsgs_id", true)); - } - - // - // SQL to pull appropriate message, prevents nosey people - // reading other peoples messages ... hopefully! - // - switch( $folder ) - { - case 'inbox': - $l_box_name = $lang['Inbox']; - $pm_sql_user = "AND pm.privmsgs_to_userid = " . $userdata['user_id'] . " - AND ( pm.privmsgs_type = " . PRIVMSGS_READ_MAIL . " - OR pm.privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR pm.privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - break; - case 'outbox': - $l_box_name = $lang['Outbox']; - $pm_sql_user = "AND pm.privmsgs_from_userid = " . $userdata['user_id'] . " - AND ( pm.privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR pm.privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " ) "; - break; - case 'sentbox': - $l_box_name = $lang['Sentbox']; - $pm_sql_user = "AND pm.privmsgs_from_userid = " . $userdata['user_id'] . " - AND pm.privmsgs_type = " . PRIVMSGS_SENT_MAIL; - break; - case 'savebox': - $l_box_name = $lang['Savebox']; - $pm_sql_user = "AND ( ( pm.privmsgs_to_userid = " . $userdata['user_id'] . " - AND pm.privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) - OR ( pm.privmsgs_from_userid = " . $userdata['user_id'] . " - AND pm.privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . " ) - )"; - break; - default: - message_die(GENERAL_ERROR, $lang['No_such_folder']); - break; - } - - // - // Major query obtains the message ... - // - $sql = "SELECT u.username AS username_1, u.user_id AS user_id_1, u2.username AS username_2, u2.user_id AS user_id_2, u.user_sig_bbcode_uid, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_avatar, pm.*, pmt.privmsgs_bbcode_uid, pmt.privmsgs_text - FROM " . PRIVMSGS_TABLE . " pm, " . PRIVMSGS_TEXT_TABLE . " pmt, " . USERS_TABLE . " u, " . USERS_TABLE . " u2 - WHERE pm.privmsgs_id = $privmsgs_id - AND pmt.privmsgs_text_id = pm.privmsgs_id - $pm_sql_user - AND u.user_id = pm.privmsgs_from_userid - AND u2.user_id = pm.privmsgs_to_userid"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not query private message post information', '', __LINE__, __FILE__, $sql); - } - - // - // Did the query return any data? - // - if ( !($privmsg = $db->sql_fetchrow($result)) ) - { - redirect(append_sid("privmsg.$phpEx?folder=$folder", true)); - } - - $privmsg_id = $privmsg['privmsgs_id']; - - // - // Is this a new message in the inbox? If it is then save - // a copy in the posters sent box - // - if (($privmsg['privmsgs_type'] == PRIVMSGS_NEW_MAIL || $privmsg['privmsgs_type'] == PRIVMSGS_UNREAD_MAIL) && $folder == 'inbox') - { - // Update appropriate counter - switch ($privmsg['privmsgs_type']) - { - case PRIVMSGS_NEW_MAIL: - $sql = "user_new_privmsg = user_new_privmsg - 1"; - break; - case PRIVMSGS_UNREAD_MAIL: - $sql = "user_unread_privmsg = user_unread_privmsg - 1"; - break; - } - - $sql = "UPDATE " . USERS_TABLE . " - SET $sql - WHERE user_id = " . $userdata['user_id']; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update private message read status for user', '', __LINE__, __FILE__, $sql); - } - - $sql = "UPDATE " . PRIVMSGS_TABLE . " - SET privmsgs_type = " . PRIVMSGS_READ_MAIL . " - WHERE privmsgs_id = " . $privmsg['privmsgs_id']; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update private message read status', '', __LINE__, __FILE__, $sql); - } - - // Check to see if the poster has a 'full' sent box - $sql = "SELECT COUNT(privmsgs_id) AS sent_items, MIN(privmsgs_date) AS oldest_post_time - FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_type = " . PRIVMSGS_SENT_MAIL . " - AND privmsgs_from_userid = " . $privmsg['privmsgs_from_userid']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain sent message info for sendee', '', __LINE__, __FILE__, $sql); - } - - $sql_priority = ( SQL_LAYER == 'mysql' ) ? 'LOW_PRIORITY' : ''; - - if ( $sent_info = $db->sql_fetchrow($result) ) - { - if ($board_config['max_sentbox_privmsgs'] && $sent_info['sent_items'] >= $board_config['max_sentbox_privmsgs']) - { - $sql = "SELECT privmsgs_id FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_type = " . PRIVMSGS_SENT_MAIL . " - AND privmsgs_date = " . $sent_info['oldest_post_time'] . " - AND privmsgs_from_userid = " . $privmsg['privmsgs_from_userid']; - if ( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not find oldest privmsgs', '', __LINE__, __FILE__, $sql); - } - $old_privmsgs_id = $db->sql_fetchrow($result); - $old_privmsgs_id = $old_privmsgs_id['privmsgs_id']; - - $sql = "DELETE $sql_priority FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_id = $old_privmsgs_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete oldest privmsgs (sent)', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE $sql_priority FROM " . PRIVMSGS_TEXT_TABLE . " - WHERE privmsgs_text_id = $old_privmsgs_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete oldest privmsgs text (sent)', '', __LINE__, __FILE__, $sql); - } - } - } - - // - // This makes a copy of the post and stores it as a SENT message from the sendee. Perhaps - // not the most DB friendly way but a lot easier to manage, besides the admin will be able to - // set limits on numbers of storable posts for users ... hopefully! - // - $sql = "INSERT $sql_priority INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) - VALUES (" . PRIVMSGS_SENT_MAIL . ", '" . str_replace("\'", "''", addslashes($privmsg['privmsgs_subject'])) . "', " . $privmsg['privmsgs_from_userid'] . ", " . $privmsg['privmsgs_to_userid'] . ", " . $privmsg['privmsgs_date'] . ", '" . $privmsg['privmsgs_ip'] . "', " . $privmsg['privmsgs_enable_html'] . ", " . $privmsg['privmsgs_enable_bbcode'] . ", " . $privmsg['privmsgs_enable_smilies'] . ", " . $privmsg['privmsgs_attach_sig'] . ")"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert private message sent info', '', __LINE__, __FILE__, $sql); - } - - $privmsg_sent_id = $db->sql_nextid(); - - $sql = "INSERT $sql_priority INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_bbcode_uid, privmsgs_text) - VALUES ($privmsg_sent_id, '" . $privmsg['privmsgs_bbcode_uid'] . "', '" . str_replace("\'", "''", addslashes($privmsg['privmsgs_text'])) . "')"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert private message sent text', '', __LINE__, __FILE__, $sql); - } - } - - // - // Pick a folder, any folder, so long as it's one below ... - // - $post_urls = array( - 'post' => append_sid("privmsg.$phpEx?mode=post"), - 'reply' => append_sid("privmsg.$phpEx?mode=reply&" . POST_POST_URL . "=$privmsg_id"), - 'quote' => append_sid("privmsg.$phpEx?mode=quote&" . POST_POST_URL . "=$privmsg_id"), - 'edit' => append_sid("privmsg.$phpEx?mode=edit&" . POST_POST_URL . "=$privmsg_id") - ); - $post_icons = array( - 'post_img' => '' . $lang['Post_new_pm'] . '', - 'post' => '' . $lang['Post_new_pm'] . '', - 'reply_img' => '' . $lang['Post_reply_pm'] . '', - 'reply' => '' . $lang['Post_reply_pm'] . '', - 'quote_img' => '' . $lang['Post_quote_pm'] . '', - 'quote' => '' . $lang['Post_quote_pm'] . '', - 'edit_img' => '' . $lang['Edit_pm'] . '', - 'edit' => '' . $lang['Edit_pm'] . '' - ); - - if ( $folder == 'inbox' ) - { - $post_img = $post_icons['post_img']; - $reply_img = $post_icons['reply_img']; - $quote_img = $post_icons['quote_img']; - $edit_img = ''; - $post = $post_icons['post']; - $reply = $post_icons['reply']; - $quote = $post_icons['quote']; - $edit = ''; - $l_box_name = $lang['Inbox']; - } - else if ( $folder == 'outbox' ) - { - $post_img = $post_icons['post_img']; - $reply_img = ''; - $quote_img = ''; - $edit_img = $post_icons['edit_img']; - $post = $post_icons['post']; - $reply = ''; - $quote = ''; - $edit = $post_icons['edit']; - $l_box_name = $lang['Outbox']; - } - else if ( $folder == 'savebox' ) - { - if ( $privmsg['privmsgs_type'] == PRIVMSGS_SAVED_IN_MAIL ) - { - $post_img = $post_icons['post_img']; - $reply_img = $post_icons['reply_img']; - $quote_img = $post_icons['quote_img']; - $edit_img = ''; - $post = $post_icons['post']; - $reply = $post_icons['reply']; - $quote = $post_icons['quote']; - $edit = ''; - } - else - { - $post_img = $post_icons['post_img']; - $reply_img = ''; - $quote_img = ''; - $edit_img = ''; - $post = $post_icons['post']; - $reply = ''; - $quote = ''; - $edit = ''; - } - $l_box_name = $lang['Saved']; - } - else if ( $folder == 'sentbox' ) - { - $post_img = $post_icons['post_img']; - $reply_img = ''; - $quote_img = ''; - $edit_img = ''; - $post = $post_icons['post']; - $reply = ''; - $quote = ''; - $edit = ''; - $l_box_name = $lang['Sent']; - } - - $s_hidden_fields = ''; - - $page_title = $lang['Read_pm']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - // - // Load templates - // - $template->set_filenames(array( - 'body' => 'privmsgs_read_body.tpl') - ); - make_jumpbox('viewforum.'.$phpEx); - - $template->assign_vars(array( - 'INBOX_IMG' => $inbox_img, - 'SENTBOX_IMG' => $sentbox_img, - 'OUTBOX_IMG' => $outbox_img, - 'SAVEBOX_IMG' => $savebox_img, - 'INBOX' => $inbox_url, - - 'POST_PM_IMG' => $post_img, - 'REPLY_PM_IMG' => $reply_img, - 'EDIT_PM_IMG' => $edit_img, - 'QUOTE_PM_IMG' => $quote_img, - 'POST_PM' => $post, - 'REPLY_PM' => $reply, - 'EDIT_PM' => $edit, - 'QUOTE_PM' => $quote, - - 'SENTBOX' => $sentbox_url, - 'OUTBOX' => $outbox_url, - 'SAVEBOX' => $savebox_url, - - 'BOX_NAME' => $l_box_name, - - 'L_MESSAGE' => $lang['Message'], - 'L_INBOX' => $lang['Inbox'], - 'L_OUTBOX' => $lang['Outbox'], - 'L_SENTBOX' => $lang['Sent'], - 'L_SAVEBOX' => $lang['Saved'], - 'L_FLAG' => $lang['Flag'], - 'L_SUBJECT' => $lang['Subject'], - 'L_POSTED' => $lang['Posted'], - 'L_DATE' => $lang['Date'], - 'L_FROM' => $lang['From'], - 'L_TO' => $lang['To'], - 'L_SAVE_MSG' => $lang['Save_message'], - 'L_DELETE_MSG' => $lang['Delete_message'], - - 'S_PRIVMSGS_ACTION' => append_sid("privmsg.$phpEx?folder=$folder"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); - - $username_from = $privmsg['username_1']; - $user_id_from = $privmsg['user_id_1']; - $username_to = $privmsg['username_2']; - $user_id_to = $privmsg['user_id_2']; - - $post_date = create_date($board_config['default_dateformat'], $privmsg['privmsgs_date'], $board_config['board_timezone']); - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $user_id_from); - $profile_img = '' . $lang['Read_profile'] . ''; - $profile = '' . $lang['Read_profile'] . ''; - - $temp_url = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$user_id_from"); - $pm_img = '' . $lang['Send_private_message'] . ''; - $pm = '' . $lang['Send_private_message'] . ''; - - if ( !empty($privmsg['user_viewemail']) || $userdata['user_level'] == ADMIN ) - { - $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $user_id_from) : 'mailto:' . $privmsg['user_email']; - - $email_img = '' . $lang['Send_email'] . ''; - $email = '' . $lang['Send_email'] . ''; - } - else - { - $email_img = ''; - $email = ''; - } - - $www_img = ( $privmsg['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - $www = ( $privmsg['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - - if ( !empty($privmsg['user_icq']) ) - { - $icq_status_img = ''; - $icq_img = '' . $lang['ICQ'] . ''; - $icq = '' . $lang['ICQ'] . ''; - } - else - { - $icq_status_img = ''; - $icq_img = ''; - $icq = ''; - } - - $aim_img = ( $privmsg['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - $aim = ( $privmsg['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id_from"); - $msn_img = ( $privmsg['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - $msn = ( $privmsg['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - - $yim_img = ( $privmsg['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - $yim = ( $privmsg['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - - $temp_url = append_sid("search.$phpEx?search_author=" . urlencode($username_from) . "&showresults=posts"); - $search_img = '' . sprintf($lang['Search_user_posts'], $username_from) . ''; - $search = '' . sprintf($lang['Search_user_posts'], $username_from) . ''; - - // - // Processing of post - // - $post_subject = $privmsg['privmsgs_subject']; - - $private_message = $privmsg['privmsgs_text']; - $bbcode_uid = $privmsg['privmsgs_bbcode_uid']; - - if ( $board_config['allow_sig'] ) - { - $user_sig = ( $privmsg['privmsgs_from_userid'] == $userdata['user_id'] ) ? $userdata['user_sig'] : $privmsg['user_sig']; - } - else - { - $user_sig = ''; - } - - $user_sig_bbcode_uid = ( $privmsg['privmsgs_from_userid'] == $userdata['user_id'] ) ? $userdata['user_sig_bbcode_uid'] : $privmsg['user_sig_bbcode_uid']; - - // - // If the board has HTML off but the post has HTML - // on then we process it, else leave it alone - // - if ( !$board_config['allow_html'] || !$userdata['user_allowhtml']) - { - if ( $user_sig != '') - { - $user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $user_sig); - } - - if ( $privmsg['privmsgs_enable_html'] ) - { - $private_message = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $private_message); - } - } - - if ( $user_sig != '' && $privmsg['privmsgs_attach_sig'] && $user_sig_bbcode_uid != '' ) - { - $user_sig = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $user_sig); - } - - if ( $bbcode_uid != '' ) - { - $private_message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($private_message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $private_message); - } - - $private_message = make_clickable($private_message); - - if ( $privmsg['privmsgs_attach_sig'] && $user_sig != '' ) - { - $private_message .= '

    _________________
    ' . make_clickable($user_sig); - } - - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); - - if ( count($orig_word) ) - { - $post_subject = preg_replace($orig_word, $replacement_word, $post_subject); - $private_message = preg_replace($orig_word, $replacement_word, $private_message); - } - - if ( $board_config['allow_smilies'] && $privmsg['privmsgs_enable_smilies'] ) - { - $private_message = smilies_pass($private_message); - } - - $private_message = str_replace("\n", '
    ', $private_message); - - // - // Dump it to the templating engine - // - $template->assign_vars(array( - 'MESSAGE_TO' => $username_to, - 'MESSAGE_FROM' => $username_from, - 'RANK_IMAGE' => $rank_image, - 'POSTER_JOINED' => $poster_joined, - 'POSTER_POSTS' => $poster_posts, - 'POSTER_FROM' => $poster_from, - 'POSTER_AVATAR' => $poster_avatar, - 'POST_SUBJECT' => $post_subject, - 'POST_DATE' => $post_date, - 'MESSAGE' => $private_message, - - 'PROFILE_IMG' => $profile_img, - 'PROFILE' => $profile, - 'SEARCH_IMG' => $search_img, - 'SEARCH' => $search, - 'EMAIL_IMG' => $email_img, - 'EMAIL' => $email, - 'WWW_IMG' => $www_img, - 'WWW' => $www, - 'ICQ_STATUS_IMG' => $icq_status_img, - 'ICQ_IMG' => $icq_img, - 'ICQ' => $icq, - 'AIM_IMG' => $aim_img, - 'AIM' => $aim, - 'MSN_IMG' => $msn_img, - 'MSN' => $msn, - 'YIM_IMG' => $yim_img, - 'YIM' => $yim) - ); - - $template->pparse('body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -} -else if ( ( $delete && $mark_list ) || $delete_all ) -{ - if ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=privmsg.$phpEx&folder=inbox", true)); - } - - if ( isset($mark_list) && !is_array($mark_list) ) - { - // Set to empty array instead of '0' if nothing is selected. - $mark_list = array(); - } - - if ( !$confirm ) - { - $s_hidden_fields = ''; - $s_hidden_fields .= ( isset($HTTP_POST_VARS['delete']) ) ? '' : ''; - - for($i = 0; $i < count($mark_list); $i++) - { - $s_hidden_fields .= ''; - } - - // - // Output confirmation page - // - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'confirm_body' => 'confirm_body.tpl') - ); - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Information'], - 'MESSAGE_TEXT' => ( count($mark_list) == 1 ) ? $lang['Confirm_delete_pm'] : $lang['Confirm_delete_pms'], - - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - - 'S_CONFIRM_ACTION' => append_sid("privmsg.$phpEx?folder=$folder"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); - - $template->pparse('confirm_body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - - } - else if ( $confirm ) - { - $delete_sql_id = ''; - - if (!$delete_all) - { - for ($i = 0; $i < count($mark_list); $i++) - { - $delete_sql_id .= (($delete_sql_id != '') ? ', ' : '') . intval($mark_list[$i]); - } - $delete_sql_id = "AND privmsgs_id IN ($delete_sql_id)"; - } - - switch($folder) - { - case 'inbox': - $delete_type = "privmsgs_to_userid = " . $userdata['user_id'] . " AND ( - privmsgs_type = " . PRIVMSGS_READ_MAIL . " OR privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - break; - - case 'outbox': - $delete_type = "privmsgs_from_userid = " . $userdata['user_id'] . " AND ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - break; - - case 'sentbox': - $delete_type = "privmsgs_from_userid = " . $userdata['user_id'] . " AND privmsgs_type = " . PRIVMSGS_SENT_MAIL; - break; - - case 'savebox': - $delete_type = "( ( privmsgs_from_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . " ) - OR ( privmsgs_to_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) )"; - break; - } - - $sql = "SELECT privmsgs_id - FROM " . PRIVMSGS_TABLE . " - WHERE $delete_type $delete_sql_id"; - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain id list to delete messages', '', __LINE__, __FILE__, $sql); - } - - $mark_list = array(); - while ( $row = $db->sql_fetchrow($result) ) - { - $mark_list[] = $row['privmsgs_id']; - } - - unset($delete_type); - - if ( count($mark_list) ) - { - $delete_sql_id = ''; - for ($i = 0; $i < sizeof($mark_list); $i++) - { - $delete_sql_id .= (($delete_sql_id != '') ? ', ' : '') . intval($mark_list[$i]); - } - - if ($folder == 'inbox' || $folder == 'outbox') - { - switch ($folder) - { - case 'inbox': - $sql = "privmsgs_to_userid = " . $userdata['user_id']; - break; - case 'outbox': - $sql = "privmsgs_from_userid = " . $userdata['user_id']; - break; - } - - // Get information relevant to new or unread mail - // so we can adjust users counters appropriately - $sql = "SELECT privmsgs_to_userid, privmsgs_type - FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_id IN ($delete_sql_id) - AND $sql - AND privmsgs_type IN (" . PRIVMSGS_NEW_MAIL . ", " . PRIVMSGS_UNREAD_MAIL . ")"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user id list for outbox messages', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result)) - { - $update_users = $update_list = array(); - - do - { - switch ($row['privmsgs_type']) - { - case PRIVMSGS_NEW_MAIL: - $update_users['new'][$row['privmsgs_to_userid']]++; - break; - - case PRIVMSGS_UNREAD_MAIL: - $update_users['unread'][$row['privmsgs_to_userid']]++; - break; - } - } - while ($row = $db->sql_fetchrow($result)); - - if (sizeof($update_users)) - { - while (list($type, $users) = each($update_users)) - { - while (list($user_id, $dec) = each($users)) - { - $update_list[$type][$dec][] = $user_id; - } - } - unset($update_users); - - while (list($type, $dec_ary) = each($update_list)) - { - switch ($type) - { - case 'new': - $type = "user_new_privmsg"; - break; - - case 'unread': - $type = "user_unread_privmsg"; - break; - } - - while (list($dec, $user_ary) = each($dec_ary)) - { - $user_ids = implode(', ', $user_ary); - - $sql = "UPDATE " . USERS_TABLE . " - SET $type = $type - $dec - WHERE user_id IN ($user_ids)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update user pm counters', '', __LINE__, __FILE__, $sql); - } - } - } - unset($update_list); - } - } - $db->sql_freeresult($result); - } - - // Delete the messages - $delete_text_sql = "DELETE FROM " . PRIVMSGS_TEXT_TABLE . " - WHERE privmsgs_text_id IN ($delete_sql_id)"; - $delete_sql = "DELETE FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_id IN ($delete_sql_id) - AND "; - - switch( $folder ) - { - case 'inbox': - $delete_sql .= "privmsgs_to_userid = " . $userdata['user_id'] . " AND ( - privmsgs_type = " . PRIVMSGS_READ_MAIL . " OR privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - break; - - case 'outbox': - $delete_sql .= "privmsgs_from_userid = " . $userdata['user_id'] . " AND ( - privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - break; - - case 'sentbox': - $delete_sql .= "privmsgs_from_userid = " . $userdata['user_id'] . " AND privmsgs_type = " . PRIVMSGS_SENT_MAIL; - break; - - case 'savebox': - $delete_sql .= "( ( privmsgs_from_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . " ) - OR ( privmsgs_to_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) )"; - break; - } - - if ( !$db->sql_query($delete_sql, BEGIN_TRANSACTION) ) - { - message_die(GENERAL_ERROR, 'Could not delete private message info', '', __LINE__, __FILE__, $delete_sql); - } - - if ( !$db->sql_query($delete_text_sql, END_TRANSACTION) ) - { - message_die(GENERAL_ERROR, 'Could not delete private message text', '', __LINE__, __FILE__, $delete_text_sql); - } - } - } -} -else if ( $save && $mark_list && $folder != 'savebox' && $folder != 'outbox' ) -{ - if ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=privmsg.$phpEx&folder=inbox", true)); - } - - if (sizeof($mark_list)) - { - // See if recipient is at their savebox limit - $sql = "SELECT COUNT(privmsgs_id) AS savebox_items, MIN(privmsgs_date) AS oldest_post_time - FROM " . PRIVMSGS_TABLE . " - WHERE ( ( privmsgs_to_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) - OR ( privmsgs_from_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . ") )"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain sent message info for sendee', '', __LINE__, __FILE__, $sql); - } - - $sql_priority = ( SQL_LAYER == 'mysql' ) ? 'LOW_PRIORITY' : ''; - - if ( $saved_info = $db->sql_fetchrow($result) ) - { - if ($board_config['max_savebox_privmsgs'] && $saved_info['savebox_items'] >= $board_config['max_savebox_privmsgs'] ) - { - $sql = "SELECT privmsgs_id FROM " . PRIVMSGS_TABLE . " - WHERE ( ( privmsgs_to_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) - OR ( privmsgs_from_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . ") ) - AND privmsgs_date = " . $saved_info['oldest_post_time']; - if ( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not find oldest privmsgs (save)', '', __LINE__, __FILE__, $sql); - } - $old_privmsgs_id = $db->sql_fetchrow($result); - $old_privmsgs_id = $old_privmsgs_id['privmsgs_id']; - - $sql = "DELETE $sql_priority FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_id = $old_privmsgs_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete oldest privmsgs (save)', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE $sql_priority FROM " . PRIVMSGS_TEXT_TABLE . " - WHERE privmsgs_text_id = $old_privmsgs_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete oldest privmsgs text (save)', '', __LINE__, __FILE__, $sql); - } - } - } - - $saved_sql_id = ''; - for ($i = 0; $i < sizeof($mark_list); $i++) - { - $saved_sql_id .= (($saved_sql_id != '') ? ', ' : '') . intval($mark_list[$i]); - } - - // Process request - $saved_sql = "UPDATE " . PRIVMSGS_TABLE; - - // Decrement read/new counters if appropriate - if ($folder == 'inbox' || $folder == 'outbox') - { - switch ($folder) - { - case 'inbox': - $sql = "privmsgs_to_userid = " . $userdata['user_id']; - break; - case 'outbox': - $sql = "privmsgs_from_userid = " . $userdata['user_id']; - break; - } - - // Get information relevant to new or unread mail - // so we can adjust users counters appropriately - $sql = "SELECT privmsgs_to_userid, privmsgs_type - FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_id IN ($saved_sql_id) - AND $sql - AND privmsgs_type IN (" . PRIVMSGS_NEW_MAIL . ", " . PRIVMSGS_UNREAD_MAIL . ")"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user id list for outbox messages', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result)) - { - $update_users = $update_list = array(); - - do - { - switch ($row['privmsgs_type']) - { - case PRIVMSGS_NEW_MAIL: - $update_users['new'][$row['privmsgs_to_userid']]++; - break; - - case PRIVMSGS_UNREAD_MAIL: - $update_users['unread'][$row['privmsgs_to_userid']]++; - break; - } - } - while ($row = $db->sql_fetchrow($result)); - - if (sizeof($update_users)) - { - while (list($type, $users) = each($update_users)) - { - while (list($user_id, $dec) = each($users)) - { - $update_list[$type][$dec][] = $user_id; - } - } - unset($update_users); - - while (list($type, $dec_ary) = each($update_list)) - { - switch ($type) - { - case 'new': - $type = "user_new_privmsg"; - break; - - case 'unread': - $type = "user_unread_privmsg"; - break; - } - - while (list($dec, $user_ary) = each($dec_ary)) - { - $user_ids = implode(', ', $user_ary); - - $sql = "UPDATE " . USERS_TABLE . " - SET $type = $type - $dec - WHERE user_id IN ($user_ids)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update user pm counters', '', __LINE__, __FILE__, $sql); - } - } - } - unset($update_list); - } - } - $db->sql_freeresult($result); - } - - switch ($folder) - { - case 'inbox': - $saved_sql .= " SET privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " - WHERE privmsgs_to_userid = " . $userdata['user_id'] . " - AND ( privmsgs_type = " . PRIVMSGS_READ_MAIL . " - OR privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . ")"; - break; - - case 'outbox': - $saved_sql .= " SET privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . " - WHERE privmsgs_from_userid = " . $userdata['user_id'] . " - AND ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " ) "; - break; - - case 'sentbox': - $saved_sql .= " SET privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . " - WHERE privmsgs_from_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SENT_MAIL; - break; - } - - $saved_sql .= " AND privmsgs_id IN ($saved_sql_id)"; - - if ( !$db->sql_query($saved_sql) ) - { - message_die(GENERAL_ERROR, 'Could not save private messages', '', __LINE__, __FILE__, $saved_sql); - } - - redirect(append_sid("privmsg.$phpEx?folder=savebox", true)); - } -} -else if ( $submit || $refresh || $mode != '' ) -{ - if ( !$userdata['session_logged_in'] ) - { - $user_id = ( isset($HTTP_GET_VARS[POST_USERS_URL]) ) ? '&' . POST_USERS_URL . '=' . intval($HTTP_GET_VARS[POST_USERS_URL]) : ''; - redirect(append_sid("login.$phpEx?redirect=privmsg.$phpEx&folder=$folder&mode=$mode" . $user_id, true)); - } - - // - // Toggles - // - if ( !$board_config['allow_html'] ) - { - $html_on = 0; - } - else - { - $html_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_html']) ) ? 0 : TRUE ) : $userdata['user_allowhtml']; - } - - if ( !$board_config['allow_bbcode'] ) - { - $bbcode_on = 0; - } - else - { - $bbcode_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_bbcode']) ) ? 0 : TRUE ) : $userdata['user_allowbbcode']; - } - - if ( !$board_config['allow_smilies'] ) - { - $smilies_on = 0; - } - else - { - $smilies_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_smilies']) ) ? 0 : TRUE ) : $userdata['user_allowsmile']; - } - - $attach_sig = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['attach_sig']) ) ? TRUE : 0 ) : $userdata['user_attachsig']; - $user_sig = ( $userdata['user_sig'] != '' && $board_config['allow_sig'] ) ? $userdata['user_sig'] : ""; - - if ( $submit && $mode != 'edit' ) - { - // - // Flood control - // - $sql = "SELECT MAX(privmsgs_date) AS last_post_time - FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_from_userid = " . $userdata['user_id']; - if ( $result = $db->sql_query($sql) ) - { - $db_row = $db->sql_fetchrow($result); - - $last_post_time = $db_row['last_post_time']; - $current_time = time(); - - if ( ( $current_time - $last_post_time ) < $board_config['flood_interval']) - { - message_die(GENERAL_MESSAGE, $lang['Flood_Error']); - } - } - // - // End Flood control - // - } - - if ($submit && $mode == 'edit') - { - $sql = 'SELECT privmsgs_from_userid - FROM ' . PRIVMSGS_TABLE . ' - WHERE privmsgs_id = ' . (int) $privmsg_id . ' - AND privmsgs_from_userid = ' . $userdata['user_id']; - - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, "Could not obtain message details", "", __LINE__, __FILE__, $sql); - } - - if (!($row = $db->sql_fetchrow($result))) - { - message_die(GENERAL_MESSAGE, $lang['No_such_post']); - } - $db->sql_freeresult($result); - - unset($row); - } - - if ( $submit ) - { - // session id check - if ($sid == '' || $sid != $userdata['session_id']) - { - $error = true; - $error_msg .= ( ( !empty($error_msg) ) ? '
    ' : '' ) . $lang['Session_invalid']; - } - - if ( !empty($HTTP_POST_VARS['username']) ) - { - $to_username = phpbb_clean_username($HTTP_POST_VARS['username']); - - $sql = "SELECT user_id, user_notify_pm, user_email, user_lang, user_active - FROM " . USERS_TABLE . " - WHERE username = '" . str_replace("\'", "''", $to_username) . "' - AND user_id <> " . ANONYMOUS; - if ( !($result = $db->sql_query($sql)) ) - { - $error = TRUE; - $error_msg = $lang['No_such_user']; - } - - if (!($to_userdata = $db->sql_fetchrow($result))) - { - $error = TRUE; - $error_msg = $lang['No_such_user']; - } - } - else - { - $error = TRUE; - $error_msg .= ( ( !empty($error_msg) ) ? '
    ' : '' ) . $lang['No_to_user']; - } - - $privmsg_subject = trim(htmlspecialchars($HTTP_POST_VARS['subject'])); - if ( empty($privmsg_subject) ) - { - $error = TRUE; - $error_msg .= ( ( !empty($error_msg) ) ? '
    ' : '' ) . $lang['Empty_subject']; - } - - if ( !empty($HTTP_POST_VARS['message']) ) - { - if ( !$error ) - { - if ( $bbcode_on ) - { - $bbcode_uid = make_bbcode_uid(); - } - - $privmsg_message = prepare_message($HTTP_POST_VARS['message'], $html_on, $bbcode_on, $smilies_on, $bbcode_uid); - - } - } - else - { - $error = TRUE; - $error_msg .= ( ( !empty($error_msg) ) ? '
    ' : '' ) . $lang['Empty_message']; - } - } - - if ( $submit && !$error ) - { - // - // Has admin prevented user from sending PM's? - // - if ( !$userdata['user_allow_pm'] ) - { - $message = $lang['Cannot_send_privmsg']; - message_die(GENERAL_MESSAGE, $message); - } - - $msg_time = time(); - - if ( $mode != 'edit' ) - { - // - // See if recipient is at their inbox limit - // - $sql = "SELECT COUNT(privmsgs_id) AS inbox_items, MIN(privmsgs_date) AS oldest_post_time - FROM " . PRIVMSGS_TABLE . " - WHERE ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR privmsgs_type = " . PRIVMSGS_READ_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " ) - AND privmsgs_to_userid = " . $to_userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_MESSAGE, $lang['No_such_user']); - } - - $sql_priority = ( SQL_LAYER == 'mysql' ) ? 'LOW_PRIORITY' : ''; - - if ( $inbox_info = $db->sql_fetchrow($result) ) - { - if ($board_config['max_inbox_privmsgs'] && $inbox_info['inbox_items'] >= $board_config['max_inbox_privmsgs']) - { - $sql = "SELECT privmsgs_id FROM " . PRIVMSGS_TABLE . " - WHERE ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR privmsgs_type = " . PRIVMSGS_READ_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " ) - AND privmsgs_date = " . $inbox_info['oldest_post_time'] . " - AND privmsgs_to_userid = " . $to_userdata['user_id']; - if ( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not find oldest privmsgs (inbox)', '', __LINE__, __FILE__, $sql); - } - $old_privmsgs_id = $db->sql_fetchrow($result); - $old_privmsgs_id = $old_privmsgs_id['privmsgs_id']; - - $sql = "DELETE $sql_priority FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_id = $old_privmsgs_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete oldest privmsgs (inbox)'.$sql, '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE $sql_priority FROM " . PRIVMSGS_TEXT_TABLE . " - WHERE privmsgs_text_id = $old_privmsgs_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete oldest privmsgs text (inbox)', '', __LINE__, __FILE__, $sql); - } - } - } - - $sql_info = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) - VALUES (" . PRIVMSGS_NEW_MAIL . ", '" . str_replace("\'", "''", $privmsg_subject) . "', " . $userdata['user_id'] . ", " . $to_userdata['user_id'] . ", $msg_time, '$user_ip', $html_on, $bbcode_on, $smilies_on, $attach_sig)"; - } - else - { - $sql_info = "UPDATE " . PRIVMSGS_TABLE . " - SET privmsgs_type = " . PRIVMSGS_NEW_MAIL . ", privmsgs_subject = '" . str_replace("\'", "''", $privmsg_subject) . "', privmsgs_from_userid = " . $userdata['user_id'] . ", privmsgs_to_userid = " . $to_userdata['user_id'] . ", privmsgs_date = $msg_time, privmsgs_ip = '$user_ip', privmsgs_enable_html = $html_on, privmsgs_enable_bbcode = $bbcode_on, privmsgs_enable_smilies = $smilies_on, privmsgs_attach_sig = $attach_sig - WHERE privmsgs_id = $privmsg_id"; - } - - if ( !($result = $db->sql_query($sql_info, BEGIN_TRANSACTION)) ) - { - message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); - } - - if ( $mode != 'edit' ) - { - $privmsg_sent_id = $db->sql_nextid(); - - $sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_bbcode_uid, privmsgs_text) - VALUES ($privmsg_sent_id, '" . $bbcode_uid . "', '" . str_replace("\'", "''", $privmsg_message) . "')"; - } - else - { - $sql = "UPDATE " . PRIVMSGS_TEXT_TABLE . " - SET privmsgs_text = '" . str_replace("\'", "''", $privmsg_message) . "', privmsgs_bbcode_uid = '$bbcode_uid' - WHERE privmsgs_text_id = $privmsg_id"; - } - - if ( !$db->sql_query($sql, END_TRANSACTION) ) - { - message_die(GENERAL_ERROR, "Could not insert/update private message sent text.", "", __LINE__, __FILE__, $sql); - } - - if ( $mode != 'edit' ) - { - // - // Add to the users new pm counter - // - $sql = "UPDATE " . USERS_TABLE . " - SET user_new_privmsg = user_new_privmsg + 1, user_last_privmsg = " . time() . " - WHERE user_id = " . $to_userdata['user_id']; - if ( !$status = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update private message new/read status for user', '', __LINE__, __FILE__, $sql); - } - - if ( $to_userdata['user_notify_pm'] && !empty($to_userdata['user_email']) && $to_userdata['user_active'] ) - { - $script_name = preg_replace('/^\/?(.*?)\/?$/', "\\1", trim($board_config['script_path'])); - $script_name = ( $script_name != '' ) ? $script_name . '/privmsg.'.$phpEx : 'privmsg.'.$phpEx; - $server_name = trim($board_config['server_name']); - $server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://'; - $server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/'; - - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->use_template('privmsg_notify', $to_userdata['user_lang']); - $emailer->email_address($to_userdata['user_email']); - $emailer->set_subject($lang['Notification_subject']); - - $emailer->assign_vars(array( - 'USERNAME' => stripslashes($to_username), - 'SITENAME' => $board_config['sitename'], - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
    ', "\n", "-- \n" . $board_config['board_email_sig']) : '', - - 'U_INBOX' => $server_protocol . $server_name . $server_port . $script_name . '?folder=inbox') - ); - - $emailer->send(); - $emailer->reset(); - } - } - - $template->assign_vars(array( - 'META' => '') - ); - - $msg = $lang['Message_sent'] . '

    ' . sprintf($lang['Click_return_inbox'], '', ' ') . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $msg); - } - else if ( $preview || $refresh || $error ) - { - - // - // If we're previewing or refreshing then obtain the data - // passed to the script, process it a little, do some checks - // where neccessary, etc. - // - $to_username = (isset($HTTP_POST_VARS['username']) ) ? trim(htmlspecialchars(stripslashes($HTTP_POST_VARS['username']))) : ''; - - $privmsg_subject = ( isset($HTTP_POST_VARS['subject']) ) ? trim(htmlspecialchars(stripslashes($HTTP_POST_VARS['subject']))) : ''; - $privmsg_message = ( isset($HTTP_POST_VARS['message']) ) ? trim($HTTP_POST_VARS['message']) : ''; - // $privmsg_message = preg_replace('##si', '</textarea>', $privmsg_message); - - $user_sig = ( $board_config['allow_sig'] ) ? (($privmsg['privmsgs_type'] == PRIVMSGS_NEW_MAIL) ? $user_sig : $privmsg['user_sig']) : ''; - - $to_username = $privmsg['username']; - $to_userid = $privmsg['user_id']; - - } - else if ( $mode == 'reply' || $mode == 'quote' ) - { - - $sql = "SELECT pm.privmsgs_subject, pm.privmsgs_date, pmt.privmsgs_bbcode_uid, pmt.privmsgs_text, u.username, u.user_id - FROM " . PRIVMSGS_TABLE . " pm, " . PRIVMSGS_TEXT_TABLE . " pmt, " . USERS_TABLE . " u - WHERE pm.privmsgs_id = $privmsg_id - AND pmt.privmsgs_text_id = pm.privmsgs_id - AND pm.privmsgs_to_userid = " . $userdata['user_id'] . " - AND u.user_id = pm.privmsgs_from_userid"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain private message for editing', '', __LINE__, __FILE__, $sql); - } - - if ( !($privmsg = $db->sql_fetchrow($result)) ) - { - redirect(append_sid("privmsg.$phpEx?folder=$folder", true)); - } - - $orig_word = $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); - - $privmsg_subject = ( ( !preg_match('/^Re:/', $privmsg['privmsgs_subject']) ) ? 'Re: ' : '' ) . $privmsg['privmsgs_subject']; - $privmsg_subject = preg_replace($orig_word, $replacement_word, $privmsg_subject); - - $to_username = $privmsg['username']; - $to_userid = $privmsg['user_id']; - - if ( $mode == 'quote' ) - { - $privmsg_message = $privmsg['privmsgs_text']; - $privmsg_bbcode_uid = $privmsg['privmsgs_bbcode_uid']; - - $privmsg_message = preg_replace("/\:(([a-z0-9]:)?)$privmsg_bbcode_uid/si", '', $privmsg_message); - $privmsg_message = str_replace('
    ', "\n", $privmsg_message); - // $privmsg_message = preg_replace('##si', '</textarea>', $privmsg_message); - $privmsg_message = preg_replace($orig_word, $replacement_word, $privmsg_message); - - $msg_date = create_date($board_config['default_dateformat'], $privmsg['privmsgs_date'], $board_config['board_timezone']); - - $privmsg_message = '[quote="' . $to_username . '"]' . $privmsg_message . '[/quote]'; - - $mode = 'reply'; - } - } - else - { - $privmsg_subject = $privmsg_message = $to_username = ''; - } - } - - // - // Has admin prevented user from sending PM's? - // - if ( !$userdata['user_allow_pm'] && $mode != 'edit' ) - { - $message = $lang['Cannot_send_privmsg']; - message_die(GENERAL_MESSAGE, $message); - } - - // - // Start output, first preview, then errors then post form - // - $page_title = $lang['Send_private_message']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - if ( $preview && !$error ) - { - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); - - if ( $bbcode_on ) - { - $bbcode_uid = make_bbcode_uid(); - } - - $preview_message = stripslashes(prepare_message($privmsg_message, $html_on, $bbcode_on, $smilies_on, $bbcode_uid)); - $privmsg_message = stripslashes(preg_replace($html_entities_match, $html_entities_replace, $privmsg_message)); - - // - // Finalise processing as per viewtopic - // - if ( !$html_on || !$board_config['allow_html'] || !$userdata['user_allowhtml'] ) - { - if ( $user_sig != '' ) - { - $user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $user_sig); - } - } - - if ( $attach_sig && $user_sig != '' && $userdata['user_sig_bbcode_uid'] ) - { - $user_sig = bbencode_second_pass($user_sig, $userdata['user_sig_bbcode_uid']); - } - - if ( $bbcode_on ) - { - $preview_message = bbencode_second_pass($preview_message, $bbcode_uid); - } - - if ( $attach_sig && $user_sig != '' ) - { - $preview_message = $preview_message . '

    _________________
    ' . $user_sig; - } - - if ( count($orig_word) ) - { - $preview_subject = preg_replace($orig_word, $replacement_word, $privmsg_subject); - $preview_message = preg_replace($orig_word, $replacement_word, $preview_message); - } - else - { - $preview_subject = $privmsg_subject; - } - - if ( $smilies_on ) - { - $preview_message = smilies_pass($preview_message); - } - - $preview_message = make_clickable($preview_message); - $preview_message = str_replace("\n", '
    ', $preview_message); - - $s_hidden_fields = ''; - $s_hidden_fields .= ''; - - if ( isset($privmsg_id) ) - { - $s_hidden_fields .= ''; - } - - $template->set_filenames(array( - "preview" => 'privmsgs_preview.tpl') - ); - - $template->assign_vars(array( - 'TOPIC_TITLE' => $preview_subject, - 'POST_SUBJECT' => $preview_subject, - 'MESSAGE_TO' => $to_username, - 'MESSAGE_FROM' => $userdata['username'], - 'POST_DATE' => create_date($board_config['default_dateformat'], time(), $board_config['board_timezone']), - 'MESSAGE' => $preview_message, - - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - - 'L_SUBJECT' => $lang['Subject'], - 'L_DATE' => $lang['Date'], - 'L_FROM' => $lang['From'], - 'L_TO' => $lang['To'], - 'L_PREVIEW' => $lang['Preview'], - 'L_POSTED' => $lang['Posted']) - ); - - $template->assign_var_from_handle('POST_PREVIEW_BOX', 'preview'); - } - - // - // Start error handling - // - if ($error) - { - $privmsg_message = htmlspecialchars($privmsg_message); - $template->set_filenames(array( - 'reg_header' => 'error_body.tpl') - ); - $template->assign_vars(array( - 'ERROR_MESSAGE' => $error_msg) - ); - $template->assign_var_from_handle('ERROR_BOX', 'reg_header'); - } - - // - // Load templates - // - $template->set_filenames(array( - 'body' => 'posting_body.tpl') - ); - make_jumpbox('viewforum.'.$phpEx); - - // - // Enable extensions in posting_body - // - $template->assign_block_vars('switch_privmsg', array()); - - // - // HTML toggle selection - // - if ( $board_config['allow_html'] ) - { - $html_status = $lang['HTML_is_ON']; - $template->assign_block_vars('switch_html_checkbox', array()); - } - else - { - $html_status = $lang['HTML_is_OFF']; - } - - // - // BBCode toggle selection - // - if ( $board_config['allow_bbcode'] ) - { - $bbcode_status = $lang['BBCode_is_ON']; - $template->assign_block_vars('switch_bbcode_checkbox', array()); - } - else - { - $bbcode_status = $lang['BBCode_is_OFF']; - } - - // - // Smilies toggle selection - // - if ( $board_config['allow_smilies'] ) - { - $smilies_status = $lang['Smilies_are_ON']; - $template->assign_block_vars('switch_smilies_checkbox', array()); - } - else - { - $smilies_status = $lang['Smilies_are_OFF']; - } - - // - // Signature toggle selection - only show if - // the user has a signature - // - if ( $user_sig != '' ) - { - $template->assign_block_vars('switch_signature_checkbox', array()); - } - - if ( $mode == 'post' ) - { - $post_a = $lang['Send_a_new_message']; - } - else if ( $mode == 'reply' ) - { - $post_a = $lang['Send_a_reply']; - $mode = 'post'; - } - else if ( $mode == 'edit' ) - { - $post_a = $lang['Edit_message']; - } - - $s_hidden_fields = ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - if ( $mode == 'edit' ) - { - $s_hidden_fields .= ''; - } - - // - // Send smilies to template - // - generate_smilies('inline', PAGE_PRIVMSGS); - - $template->assign_vars(array( - 'SUBJECT' => $privmsg_subject, - 'USERNAME' => $to_username, - 'MESSAGE' => $privmsg_message, - 'HTML_STATUS' => $html_status, - 'SMILIES_STATUS' => $smilies_status, - 'BBCODE_STATUS' => sprintf($bbcode_status, '', ''), - 'FORUM_NAME' => $lang['Private_Message'], - - 'BOX_NAME' => $l_box_name, - 'INBOX_IMG' => $inbox_img, - 'SENTBOX_IMG' => $sentbox_img, - 'OUTBOX_IMG' => $outbox_img, - 'SAVEBOX_IMG' => $savebox_img, - 'INBOX' => $inbox_url, - 'SENTBOX' => $sentbox_url, - 'OUTBOX' => $outbox_url, - 'SAVEBOX' => $savebox_url, - - 'L_SUBJECT' => $lang['Subject'], - 'L_MESSAGE_BODY' => $lang['Message_body'], - 'L_OPTIONS' => $lang['Options'], - 'L_SPELLCHECK' => $lang['Spellcheck'], - 'L_PREVIEW' => $lang['Preview'], - 'L_SUBMIT' => $lang['Submit'], - 'L_CANCEL' => $lang['Cancel'], - 'L_POST_A' => $post_a, - 'L_FIND_USERNAME' => $lang['Find_username'], - 'L_FIND' => $lang['Find'], - 'L_DISABLE_HTML' => $lang['Disable_HTML_pm'], - 'L_DISABLE_BBCODE' => $lang['Disable_BBCode_pm'], - 'L_DISABLE_SMILIES' => $lang['Disable_Smilies_pm'], - 'L_ATTACH_SIGNATURE' => $lang['Attach_signature'], - - 'L_BBCODE_B_HELP' => $lang['bbcode_b_help'], - 'L_BBCODE_I_HELP' => $lang['bbcode_i_help'], - 'L_BBCODE_U_HELP' => $lang['bbcode_u_help'], - 'L_BBCODE_Q_HELP' => $lang['bbcode_q_help'], - 'L_BBCODE_C_HELP' => $lang['bbcode_c_help'], - 'L_BBCODE_L_HELP' => $lang['bbcode_l_help'], - 'L_BBCODE_O_HELP' => $lang['bbcode_o_help'], - 'L_BBCODE_P_HELP' => $lang['bbcode_p_help'], - 'L_BBCODE_W_HELP' => $lang['bbcode_w_help'], - 'L_BBCODE_A_HELP' => $lang['bbcode_a_help'], - 'L_BBCODE_S_HELP' => $lang['bbcode_s_help'], - 'L_BBCODE_F_HELP' => $lang['bbcode_f_help'], - 'L_EMPTY_MESSAGE' => $lang['Empty_message'], - - 'L_FONT_COLOR' => $lang['Font_color'], - 'L_COLOR_DEFAULT' => $lang['color_default'], - 'L_COLOR_DARK_RED' => $lang['color_dark_red'], - 'L_COLOR_RED' => $lang['color_red'], - 'L_COLOR_ORANGE' => $lang['color_orange'], - 'L_COLOR_BROWN' => $lang['color_brown'], - 'L_COLOR_YELLOW' => $lang['color_yellow'], - 'L_COLOR_GREEN' => $lang['color_green'], - 'L_COLOR_OLIVE' => $lang['color_olive'], - 'L_COLOR_CYAN' => $lang['color_cyan'], - 'L_COLOR_BLUE' => $lang['color_blue'], - 'L_COLOR_DARK_BLUE' => $lang['color_dark_blue'], - 'L_COLOR_INDIGO' => $lang['color_indigo'], - 'L_COLOR_VIOLET' => $lang['color_violet'], - 'L_COLOR_WHITE' => $lang['color_white'], - 'L_COLOR_BLACK' => $lang['color_black'], - - 'L_FONT_SIZE' => $lang['Font_size'], - 'L_FONT_TINY' => $lang['font_tiny'], - 'L_FONT_SMALL' => $lang['font_small'], - 'L_FONT_NORMAL' => $lang['font_normal'], - 'L_FONT_LARGE' => $lang['font_large'], - 'L_FONT_HUGE' => $lang['font_huge'], - - 'L_BBCODE_CLOSE_TAGS' => $lang['Close_Tags'], - 'L_STYLES_TIP' => $lang['Styles_tip'], - - 'S_HTML_CHECKED' => ( !$html_on ) ? ' checked="checked"' : '', - 'S_BBCODE_CHECKED' => ( !$bbcode_on ) ? ' checked="checked"' : '', - 'S_SMILIES_CHECKED' => ( !$smilies_on ) ? ' checked="checked"' : '', - 'S_SIGNATURE_CHECKED' => ( $attach_sig ) ? ' checked="checked"' : '', - 'S_HIDDEN_FORM_FIELDS' => $s_hidden_fields, - 'S_POST_ACTION' => append_sid("privmsg.$phpEx"), - - 'U_SEARCH_USER' => append_sid("search.$phpEx?mode=searchuser"), - 'U_VIEW_FORUM' => append_sid("privmsg.$phpEx")) - ); - - $template->pparse('body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); -} - -// -// Default page -// -if ( !$userdata['session_logged_in'] ) -{ - redirect(append_sid("login.$phpEx?redirect=privmsg.$phpEx&folder=inbox", true)); -} - -// -// Update unread status -// -$sql = "UPDATE " . USERS_TABLE . " - SET user_unread_privmsg = user_unread_privmsg + user_new_privmsg, user_new_privmsg = 0, user_last_privmsg = " . $userdata['session_start'] . " - WHERE user_id = " . $userdata['user_id']; -if ( !$db->sql_query($sql) ) -{ - message_die(GENERAL_ERROR, 'Could not update private message new/read status for user', '', __LINE__, __FILE__, $sql); -} - -$sql = "UPDATE " . PRIVMSGS_TABLE . " - SET privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " - WHERE privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - AND privmsgs_to_userid = " . $userdata['user_id']; -if ( !$db->sql_query($sql) ) -{ - message_die(GENERAL_ERROR, 'Could not update private message new/read status (2) for user', '', __LINE__, __FILE__, $sql); -} - -// -// Reset PM counters -// -$userdata['user_new_privmsg'] = 0; -$userdata['user_unread_privmsg'] = ( $userdata['user_new_privmsg'] + $userdata['user_unread_privmsg'] ); - -// -// Generate page -// -$page_title = $lang['Private_Messaging']; -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -// -// Load templates -// -$template->set_filenames(array( - 'body' => 'privmsgs_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$orig_word = array(); -$replacement_word = array(); -obtain_word_list($orig_word, $replacement_word); - -// -// New message -// -$post_new_mesg_url = '' . $lang['Send_a_new_message'] . ''; - -// -// General SQL to obtain messages -// -$sql_tot = "SELECT COUNT(privmsgs_id) AS total - FROM " . PRIVMSGS_TABLE . " "; -$sql = "SELECT pm.privmsgs_type, pm.privmsgs_id, pm.privmsgs_date, pm.privmsgs_subject, u.user_id, u.username - FROM " . PRIVMSGS_TABLE . " pm, " . USERS_TABLE . " u "; -switch( $folder ) -{ - case 'inbox': - $sql_tot .= "WHERE privmsgs_to_userid = " . $userdata['user_id'] . " - AND ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR privmsgs_type = " . PRIVMSGS_READ_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - - $sql .= "WHERE pm.privmsgs_to_userid = " . $userdata['user_id'] . " - AND u.user_id = pm.privmsgs_from_userid - AND ( pm.privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR pm.privmsgs_type = " . PRIVMSGS_READ_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - break; - - case 'outbox': - $sql_tot .= "WHERE privmsgs_from_userid = " . $userdata['user_id'] . " - AND ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - - $sql .= "WHERE pm.privmsgs_from_userid = " . $userdata['user_id'] . " - AND u.user_id = pm.privmsgs_to_userid - AND ( pm.privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - break; - - case 'sentbox': - $sql_tot .= "WHERE privmsgs_from_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SENT_MAIL; - - $sql .= "WHERE pm.privmsgs_from_userid = " . $userdata['user_id'] . " - AND u.user_id = pm.privmsgs_to_userid - AND pm.privmsgs_type = " . PRIVMSGS_SENT_MAIL; - break; - - case 'savebox': - $sql_tot .= "WHERE ( ( privmsgs_to_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) - OR ( privmsgs_from_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . ") )"; - - $sql .= "WHERE u.user_id = pm.privmsgs_from_userid - AND ( ( pm.privmsgs_to_userid = " . $userdata['user_id'] . " - AND pm.privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) - OR ( pm.privmsgs_from_userid = " . $userdata['user_id'] . " - AND pm.privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . " ) )"; - break; - - default: - message_die(GENERAL_MESSAGE, $lang['No_such_folder']); - break; -} - -// -// Show messages over previous x days/months -// -if ( $submit_msgdays && ( !empty($HTTP_POST_VARS['msgdays']) || !empty($HTTP_GET_VARS['msgdays']) ) ) -{ - $msg_days = ( !empty($HTTP_POST_VARS['msgdays']) ) ? intval($HTTP_POST_VARS['msgdays']) : intval($HTTP_GET_VARS['msgdays']); - $min_msg_time = time() - ($msg_days * 86400); - - $limit_msg_time_total = " AND privmsgs_date > $min_msg_time"; - $limit_msg_time = " AND pm.privmsgs_date > $min_msg_time "; - - if ( !empty($HTTP_POST_VARS['msgdays']) ) - { - $start = 0; - } -} -else -{ - $limit_msg_time = $limit_msg_time_total = ''; - $msg_days = 0; -} - -$sql .= $limit_msg_time . " ORDER BY pm.privmsgs_date DESC LIMIT $start, " . $board_config['topics_per_page']; -$sql_all_tot = $sql_tot; -$sql_tot .= $limit_msg_time_total; - -// -// Get messages -// -if ( !($result = $db->sql_query($sql_tot)) ) -{ - message_die(GENERAL_ERROR, 'Could not query private message information', '', __LINE__, __FILE__, $sql_tot); -} - -$pm_total = ( $row = $db->sql_fetchrow($result) ) ? $row['total'] : 0; - -if ( !($result = $db->sql_query($sql_all_tot)) ) -{ - message_die(GENERAL_ERROR, 'Could not query private message information', '', __LINE__, __FILE__, $sql_tot); -} - -$pm_all_total = ( $row = $db->sql_fetchrow($result) ) ? $row['total'] : 0; - -// -// Build select box -// -$previous_days = array(0, 1, 7, 14, 30, 90, 180, 364); -$previous_days_text = array($lang['All_Posts'], $lang['1_Day'], $lang['7_Days'], $lang['2_Weeks'], $lang['1_Month'], $lang['3_Months'], $lang['6_Months'], $lang['1_Year']); - -$select_msg_days = ''; -for($i = 0; $i < count($previous_days); $i++) -{ - $selected = ( $msg_days == $previous_days[$i] ) ? ' selected="selected"' : ''; - $select_msg_days .= ''; -} - -// -// Define correct icons -// -switch ( $folder ) -{ - case 'inbox': - $l_box_name = $lang['Inbox']; - break; - case 'outbox': - $l_box_name = $lang['Outbox']; - break; - case 'savebox': - $l_box_name = $lang['Savebox']; - break; - case 'sentbox': - $l_box_name = $lang['Sentbox']; - break; -} -$post_pm = append_sid("privmsg.$phpEx?mode=post"); -$post_pm_img = '' . $lang['Post_new_pm'] . ''; -$post_pm = '' . $lang['Post_new_pm'] . ''; - -// -// Output data for inbox status -// -if ( $folder != 'outbox' ) -{ - $inbox_limit_pct = ( $board_config['max_' . $folder . '_privmsgs'] > 0 ) ? round(( $pm_all_total / $board_config['max_' . $folder . '_privmsgs'] ) * 100) : 100; - $inbox_limit_img_length = ( $board_config['max_' . $folder . '_privmsgs'] > 0 ) ? round(( $pm_all_total / $board_config['max_' . $folder . '_privmsgs'] ) * $board_config['privmsg_graphic_length']) : $board_config['privmsg_graphic_length']; - $inbox_limit_remain = ( $board_config['max_' . $folder . '_privmsgs'] > 0 ) ? $board_config['max_' . $folder . '_privmsgs'] - $pm_all_total : 0; - - $template->assign_block_vars('switch_box_size_notice', array()); - - switch( $folder ) - { - case 'inbox': - $l_box_size_status = sprintf($lang['Inbox_size'], $inbox_limit_pct); - break; - case 'sentbox': - $l_box_size_status = sprintf($lang['Sentbox_size'], $inbox_limit_pct); - break; - case 'savebox': - $l_box_size_status = sprintf($lang['Savebox_size'], $inbox_limit_pct); - break; - default: - $l_box_size_status = ''; - break; - } -} -else -{ - $inbox_limit_img_length = $inbox_limit_pct = $l_box_size_status = ''; -} - -// -// Dump vars to template -// -$template->assign_vars(array( - 'BOX_NAME' => $l_box_name, - 'INBOX_IMG' => $inbox_img, - 'SENTBOX_IMG' => $sentbox_img, - 'OUTBOX_IMG' => $outbox_img, - 'SAVEBOX_IMG' => $savebox_img, - 'INBOX' => $inbox_url, - 'SENTBOX' => $sentbox_url, - 'OUTBOX' => $outbox_url, - 'SAVEBOX' => $savebox_url, - - 'POST_PM_IMG' => $post_pm_img, - 'POST_PM' => $post_pm, - - 'INBOX_LIMIT_IMG_WIDTH' => $inbox_limit_img_length, - 'INBOX_LIMIT_PERCENT' => $inbox_limit_pct, - - 'BOX_SIZE_STATUS' => $l_box_size_status, - - 'L_INBOX' => $lang['Inbox'], - 'L_OUTBOX' => $lang['Outbox'], - 'L_SENTBOX' => $lang['Sent'], - 'L_SAVEBOX' => $lang['Saved'], - 'L_MARK' => $lang['Mark'], - 'L_FLAG' => $lang['Flag'], - 'L_SUBJECT' => $lang['Subject'], - 'L_DATE' => $lang['Date'], - 'L_DISPLAY_MESSAGES' => $lang['Display_messages'], - 'L_FROM_OR_TO' => ( $folder == 'inbox' || $folder == 'savebox' ) ? $lang['From'] : $lang['To'], - 'L_MARK_ALL' => $lang['Mark_all'], - 'L_UNMARK_ALL' => $lang['Unmark_all'], - 'L_DELETE_MARKED' => $lang['Delete_marked'], - 'L_DELETE_ALL' => $lang['Delete_all'], - 'L_SAVE_MARKED' => $lang['Save_marked'], - - 'S_PRIVMSGS_ACTION' => append_sid("privmsg.$phpEx?folder=$folder"), - 'S_HIDDEN_FIELDS' => '', - 'S_POST_NEW_MSG' => $post_new_mesg_url, - 'S_SELECT_MSG_DAYS' => $select_msg_days, - - 'U_POST_NEW_TOPIC' => append_sid("privmsg.$phpEx?mode=post")) -); - -// -// Okay, let's build the correct folder -// -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not query private messages', '', __LINE__, __FILE__, $sql); -} - -if ( $row = $db->sql_fetchrow($result) ) -{ - $i = 0; - do - { - $privmsg_id = $row['privmsgs_id']; - - $flag = $row['privmsgs_type']; - - $icon_flag = ( $flag == PRIVMSGS_NEW_MAIL || $flag == PRIVMSGS_UNREAD_MAIL ) ? $images['pm_unreadmsg'] : $images['pm_readmsg']; - $icon_flag_alt = ( $flag == PRIVMSGS_NEW_MAIL || $flag == PRIVMSGS_UNREAD_MAIL ) ? $lang['Unread_message'] : $lang['Read_message']; - - $msg_userid = $row['user_id']; - $msg_username = $row['username']; - - $u_from_user_profile = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$msg_userid"); - - $msg_subject = $row['privmsgs_subject']; - - if ( count($orig_word) ) - { - $msg_subject = preg_replace($orig_word, $replacement_word, $msg_subject); - } - - $u_subject = append_sid("privmsg.$phpEx?folder=$folder&mode=read&" . POST_POST_URL . "=$privmsg_id"); - - $msg_date = create_date($board_config['default_dateformat'], $row['privmsgs_date'], $board_config['board_timezone']); - - if ( $flag == PRIVMSGS_NEW_MAIL && $folder == 'inbox' ) - { - $msg_subject = '' . $msg_subject . ''; - $msg_date = '' . $msg_date . ''; - $msg_username = '' . $msg_username . ''; - } - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - $i++; - - $template->assign_block_vars('listrow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'FROM' => $msg_username, - 'SUBJECT' => $msg_subject, - 'DATE' => $msg_date, - 'PRIVMSG_FOLDER_IMG' => $icon_flag, - - 'L_PRIVMSG_FOLDER_ALT' => $icon_flag_alt, - - 'S_MARK_ID' => $privmsg_id, - - 'U_READ' => $u_subject, - 'U_FROM_USER_PROFILE' => $u_from_user_profile) - ); - } - while( $row = $db->sql_fetchrow($result) ); - - $template->assign_vars(array( - 'PAGINATION' => generate_pagination("privmsg.$phpEx?folder=$folder", $pm_total, $board_config['topics_per_page'], $start), - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( $pm_total / $board_config['topics_per_page'] )), - - 'L_GOTO_PAGE' => $lang['Goto_page']) - ); - -} -else -{ - $template->assign_vars(array( - 'L_NO_MESSAGES' => $lang['No_messages_folder']) - ); - - $template->assign_block_vars("switch_no_messages", array() ); -} - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/profile.php b/phpBB2/profile.php deleted file mode 100644 index 749c3ff..0000000 --- a/phpBB2/profile.php +++ /dev/null @@ -1,124 +0,0 @@ - 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/'; - -$server_url = $server_protocol . $server_name . $server_port . $script_name; - -// ----------------------- -// Page specific functions -// -function gen_rand_string($hash) -{ - $rand_str = dss_rand(); - - return ( $hash ) ? md5($rand_str) : substr($rand_str, 0, 8); -} -// -// End page specific functions -// --------------------------- - -// -// Start of program proper -// -if ( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) -{ - $mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode']; - $mode = htmlspecialchars($mode); - - if ( $mode == 'viewprofile' ) - { - include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx); - exit; - } - else if ( $mode == 'editprofile' || $mode == 'reg' ) - { - if ( !$userdata['session_logged_in'] && $mode == 'editprofile' ) - { - redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editprofile", true)); - } - - include($phpbb_root_path . 'includes/usercp_register.'.$phpEx); - exit; - } - else if ( $mode == 'conf' ) - { - // Visual Confirmation - if ( $userdata['session_logged_in'] ) - { - exit; - } - - include($phpbb_root_path . 'includes/usercp_confirm.'.$phpEx); - exit; - } - else if ( $mode == 'sendpassword' ) - { - include($phpbb_root_path . 'includes/usercp_sendpasswd.'.$phpEx); - exit; - } - else if ( $mode == 'activate' ) - { - include($phpbb_root_path . 'includes/usercp_activate.'.$phpEx); - exit; - } - else if ( $mode == 'email' ) - { - include($phpbb_root_path . 'includes/usercp_email.'.$phpEx); - exit; - } -} - -redirect(append_sid("index.$phpEx", true)); - -?> diff --git a/phpBB2/profile_normal.php b/phpBB2/profile_normal.php deleted file mode 100644 index a5a677d..0000000 --- a/phpBB2/profile_normal.php +++ /dev/null @@ -1,124 +0,0 @@ - 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/'; - -$server_url = $server_protocol . $server_name . $server_port . $script_name; - -// ----------------------- -// Page specific functions -// -function gen_rand_string($hash) -{ - $rand_str = dss_rand(); - - return ( $hash ) ? md5($rand_str) : substr($rand_str, 0, 8); -} -// -// End page specific functions -// --------------------------- - -// -// Start of program proper -// -if ( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) -{ - $mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode']; - $mode = htmlspecialchars($mode); - - if ( $mode == 'viewprofile' ) - { - include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx); - exit; - } - else if ( $mode == 'editprofile' || $mode == 'register' ) - { - if ( !$userdata['session_logged_in'] && $mode == 'editprofile' ) - { - redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editprofile", true)); - } - - include($phpbb_root_path . 'includes/usercp_register.'.$phpEx); - exit; - } - else if ( $mode == 'confirm' ) - { - // Visual Confirmation - if ( $userdata['session_logged_in'] ) - { - exit; - } - - include($phpbb_root_path . 'includes/usercp_confirm.'.$phpEx); - exit; - } - else if ( $mode == 'sendpassword' ) - { - include($phpbb_root_path . 'includes/usercp_sendpasswd.'.$phpEx); - exit; - } - else if ( $mode == 'activate' ) - { - include($phpbb_root_path . 'includes/usercp_activate.'.$phpEx); - exit; - } - else if ( $mode == 'email' ) - { - include($phpbb_root_path . 'includes/usercp_email.'.$phpEx); - exit; - } -} - -redirect(append_sid("index.$phpEx", true)); - -?> \ No newline at end of file diff --git a/phpBB2/readme.txt b/phpBB2/readme.txt deleted file mode 100644 index bff5644..0000000 --- a/phpBB2/readme.txt +++ /dev/null @@ -1,29 +0,0 @@ -Installation Instructions: - -This is Version 2.2.1 of the eXtreme Styles mod. - -For Installation Instructions, please read install.txt. - -Warning: if you are updating from version 1.19 or older then you MUST delete old mod files in directory "admin" - ---- - -Some Informations on the contrib and scripts directory. - -For Informations what is placed into the contrib directory, please read: contrib/readme.txt - ---- - -For latest version of mod check out http://www.phpbbstyles.com -For documentation for this mod check out http://www.phpbbstyles.com/viewforum.php?f=6 - -Included translations for admin control panel: - - English - ---- - -Installation: - -Upload contents of directory "root" including all subdirectories to your forum. -When uploading files overwrite existing includes/template.php -Then CHMOD directory "cache" to 777 to make it writable. diff --git a/phpBB2/search.php b/phpBB2/search.php deleted file mode 100644 index 43a7a45..0000000 --- a/phpBB2/search.php +++ /dev/null @@ -1,1434 +0,0 @@ -sql_query($sql)) - { - if ($row = $db->sql_fetchrow($result)) - { - if (intval($row['last_search_time']) > 0 && ($current_time - intval($row['last_search_time'])) < intval($board_config['search_flood_interval'])) - { - message_die(GENERAL_MESSAGE, $lang['Search_Flood_Error']); - } - } - } - if ( $search_id == 'newposts' || $search_id == 'egosearch' || ( $search_author != '' && $search_keywords == '' ) ) - { - if ( $search_id == 'newposts' ) - { - if ( $userdata['session_logged_in'] ) - { - $sql = "SELECT post_id - FROM " . POSTS_TABLE . " - WHERE post_time >= " . $userdata['user_lastvisit']; - } - else - { - redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=newposts", true)); - } - - $show_results = 'topics'; - $sort_by = 0; - $sort_dir = 'DESC'; - } - else if ( $search_id == 'egosearch' ) - { - if ( $userdata['session_logged_in'] ) - { - $sql = "SELECT post_id - FROM " . POSTS_TABLE . " - WHERE poster_id = " . $userdata['user_id']; - } - else - { - redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=egosearch", true)); - } - - $show_results = 'topics'; - $sort_by = 0; - $sort_dir = 'DESC'; - } - else - { - $search_author = str_replace('*', '%', trim($search_author)); - - if( ( strpos($search_author, '%') !== false ) && ( strlen(str_replace('%', '', $search_author)) < $board_config['search_min_chars'] ) ) - { - $search_author = ''; - } - - $sql = "SELECT user_id - FROM " . USERS_TABLE . " - WHERE username LIKE '" . str_replace("\'", "''", $search_author) . "'"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain list of matching users (searching for: $search_author)", "", __LINE__, __FILE__, $sql); - } - - $matching_userids = ''; - if ( $row = $db->sql_fetchrow($result) ) - { - do - { - $matching_userids .= ( ( $matching_userids != '' ) ? ', ' : '' ) . $row['user_id']; - } - while( $row = $db->sql_fetchrow($result) ); - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_search_match']); - } - - $sql = "SELECT post_id - FROM " . POSTS_TABLE . " - WHERE poster_id IN ($matching_userids)"; - - if ($search_time) - { - $sql .= " AND post_time >= " . $search_time; - } - } - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain matched posts list', '', __LINE__, __FILE__, $sql); - } - - $search_ids = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $search_ids[] = $row['post_id']; - } - $db->sql_freeresult($result); - - $total_match_count = count($search_ids); - - } - else if ( $search_keywords != '' ) - { - $stopword_array = @file($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/search_stopwords.txt'); - $synonym_array = @file($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/search_synonyms.txt'); - - $split_search = array(); - $stripped_keywords = stripslashes($search_keywords); - $split_search = ( !strstr($multibyte_charset, $lang['ENCODING']) ) ? split_words(clean_words('search', $stripped_keywords, $stopword_array, $synonym_array), 'search') : split(' ', $search_keywords); - unset($stripped_keywords); - - $search_msg_only = ( !$search_fields ) ? "AND m.title_match = 0" : ( ( strstr($multibyte_charset, $lang['ENCODING']) ) ? '' : '' ); - - $word_count = 0; - $current_match_type = 'or'; - - $word_match = array(); - $result_list = array(); - - for($i = 0; $i < count($split_search); $i++) - { - if ( strlen(str_replace(array('*', '%'), '', trim($split_search[$i]))) < $board_config['search_min_chars'] ) - { - $split_search[$i] = ''; - continue; - } - - switch ( $split_search[$i] ) - { - case 'and': - $current_match_type = 'and'; - break; - - case 'or': - $current_match_type = 'or'; - break; - - case 'not': - $current_match_type = 'not'; - break; - - default: - if ( !empty($search_terms) ) - { - $current_match_type = 'and'; - } - - if ( !strstr($multibyte_charset, $lang['ENCODING']) ) - { - $match_word = str_replace('*', '%', $split_search[$i]); - $sql = "SELECT m.post_id - FROM " . SEARCH_WORD_TABLE . " w, " . SEARCH_MATCH_TABLE . " m - WHERE w.word_text LIKE '$match_word' - AND m.word_id = w.word_id - AND w.word_common <> 1 - $search_msg_only"; - } - else - { - $match_word = addslashes('%' . str_replace('*', '', $split_search[$i]) . '%'); - $search_msg_only = ( $search_fields ) ? "OR post_subject LIKE '$match_word'" : ''; - $sql = "SELECT post_id - FROM " . POSTS_TEXT_TABLE . " - WHERE post_text LIKE '$match_word' - $search_msg_only"; - } - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain matched posts list', '', __LINE__, __FILE__, $sql); - } - - $row = array(); - while( $temp_row = $db->sql_fetchrow($result) ) - { - $row[$temp_row['post_id']] = 1; - - if ( !$word_count ) - { - $result_list[$temp_row['post_id']] = 1; - } - else if ( $current_match_type == 'or' ) - { - $result_list[$temp_row['post_id']] = 1; - } - else if ( $current_match_type == 'not' ) - { - $result_list[$temp_row['post_id']] = 0; - } - } - - if ( $current_match_type == 'and' && $word_count ) - { - @reset($result_list); - while( list($post_id, $match_count) = @each($result_list) ) - { - if ( !$row[$post_id] ) - { - $result_list[$post_id] = 0; - } - } - } - - $word_count++; - - $db->sql_freeresult($result); - } - } - - @reset($result_list); - - $search_ids = array(); - while( list($post_id, $matches) = each($result_list) ) - { - if ( $matches ) - { - $search_ids[] = $post_id; - } - } - - unset($result_list); - $total_match_count = count($search_ids); - } - - // - // If user is logged in then we'll check to see which (if any) private - // forums they are allowed to view and include them in the search. - // - // If not logged in we explicitly prevent searching of private forums - // - $auth_sql = ''; - if ( $search_forum != -1 ) - { - $is_auth = auth(AUTH_READ, $search_forum, $userdata); - - if ( !$is_auth['auth_read'] ) - { - message_die(GENERAL_MESSAGE, $lang['No_searchable_forums']); - } - - $auth_sql = "f.forum_id = $search_forum"; - } - else - { - $is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata); - - if ( $search_cat != -1 ) - { - $auth_sql = "f.cat_id = $search_cat"; - } - - $ignore_forum_sql = ''; - while( list($key, $value) = each($is_auth_ary) ) - { - if ( !$value['auth_read'] ) - { - $ignore_forum_sql .= ( ( $ignore_forum_sql != '' ) ? ', ' : '' ) . $key; - } - } - - if ( $ignore_forum_sql != '' ) - { - $auth_sql .= ( $auth_sql != '' ) ? " AND f.forum_id NOT IN ($ignore_forum_sql) " : "f.forum_id NOT IN ($ignore_forum_sql) "; - } - } - - // - // Author name search - // - if ( $search_author != '' ) - { - $search_author = str_replace('*', '%', trim($search_author)); - - if( ( strpos($search_author, '%') !== false ) && ( strlen(str_replace('%', '', $search_author)) < $board_config['search_min_chars'] ) ) - { - $search_author = ''; - } - } - - if ( $total_match_count ) - { - if ( $show_results == 'topics' ) - { - // - // This one is a beast, try to seperate it a bit (workaround for connection timeouts) - // - $search_id_chunks = array(); - $count = 0; - $chunk = 0; - - if (count($search_ids) > $limiter) - { - for ($i = 0; $i < count($search_ids); $i++) - { - if ($count == $limiter) - { - $chunk++; - $count = 0; - } - - $search_id_chunks[$chunk][$count] = $search_ids[$i]; - $count++; - } - } - else - { - $search_id_chunks[0] = $search_ids; - } - - $search_ids = array(); - - for ($i = 0; $i < count($search_id_chunks); $i++) - { - $where_sql = ''; - - if ( $search_time ) - { - $where_sql .= ( $search_author == '' && $auth_sql == '' ) ? " AND post_time >= $search_time " : " AND p.post_time >= $search_time "; - } - - if ( $search_author == '' && $auth_sql == '' ) - { - $sql = "SELECT topic_id - FROM " . POSTS_TABLE . " - WHERE post_id IN (" . implode(", ", $search_id_chunks[$i]) . ") - $where_sql - GROUP BY topic_id"; - } - else - { - $from_sql = POSTS_TABLE . " p"; - - if ( $search_author != '' ) - { - $from_sql .= ", " . USERS_TABLE . " u"; - $where_sql .= " AND u.user_id = p.poster_id AND u.username LIKE '$search_author' "; - } - - if ( $auth_sql != '' ) - { - $from_sql .= ", " . FORUMS_TABLE . " f"; - $where_sql .= " AND f.forum_id = p.forum_id AND $auth_sql"; - } - - $sql = "SELECT p.topic_id - FROM $from_sql - WHERE p.post_id IN (" . implode(", ", $search_id_chunks[$i]) . ") - $where_sql - GROUP BY p.topic_id"; - } - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain topic ids', '', __LINE__, __FILE__, $sql); - } - - while ($row = $db->sql_fetchrow($result)) - { - $search_ids[] = $row['topic_id']; - } - $db->sql_freeresult($result); - } - - $total_match_count = sizeof($search_ids); - - } - else if ( $search_author != '' || $search_time || $auth_sql != '' ) - { - $search_id_chunks = array(); - $count = 0; - $chunk = 0; - - if (count($search_ids) > $limiter) - { - for ($i = 0; $i < count($search_ids); $i++) - { - if ($count == $limiter) - { - $chunk++; - $count = 0; - } - - $search_id_chunks[$chunk][$count] = $search_ids[$i]; - $count++; - } - } - else - { - $search_id_chunks[0] = $search_ids; - } - - $search_ids = array(); - - for ($i = 0; $i < count($search_id_chunks); $i++) - { - $where_sql = ( $search_author == '' && $auth_sql == '' ) ? 'post_id IN (' . implode(', ', $search_id_chunks[$i]) . ')' : 'p.post_id IN (' . implode(', ', $search_id_chunks[$i]) . ')'; - $select_sql = ( $search_author == '' && $auth_sql == '' ) ? 'post_id' : 'p.post_id'; - $from_sql = ( $search_author == '' && $auth_sql == '' ) ? POSTS_TABLE : POSTS_TABLE . ' p'; - - if ( $search_time ) - { - $where_sql .= ( $search_author == '' && $auth_sql == '' ) ? " AND post_time >= $search_time " : " AND p.post_time >= $search_time"; - } - - if ( $auth_sql != '' ) - { - $from_sql .= ", " . FORUMS_TABLE . " f"; - $where_sql .= " AND f.forum_id = p.forum_id AND $auth_sql"; - } - - if ( $search_author != '' ) - { - $from_sql .= ", " . USERS_TABLE . " u"; - $where_sql .= " AND u.user_id = p.poster_id AND u.username LIKE '$search_author'"; - } - - $sql = "SELECT " . $select_sql . " - FROM $from_sql - WHERE $where_sql"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain post ids', '', __LINE__, __FILE__, $sql); - } - - while( $row = $db->sql_fetchrow($result) ) - { - $search_ids[] = $row['post_id']; - } - $db->sql_freeresult($result); - } - - $total_match_count = count($search_ids); - } - } - else if ( $search_id == 'unanswered' ) - { - if ( $auth_sql != '' ) - { - $sql = "SELECT t.topic_id, f.forum_id - FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f - WHERE t.topic_replies = 0 - AND t.forum_id = f.forum_id - AND t.topic_moved_id = 0 - AND $auth_sql"; - } - else - { - $sql = "SELECT topic_id - FROM " . TOPICS_TABLE . " - WHERE topic_replies = 0 - AND topic_moved_id = 0"; - } - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain post ids', '', __LINE__, __FILE__, $sql); - } - - $search_ids = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $search_ids[] = $row['topic_id']; - } - $db->sql_freeresult($result); - - $total_match_count = count($search_ids); - - // - // Basic requirements - // - $show_results = 'topics'; - $sort_by = 0; - $sort_dir = 'DESC'; - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_search_match']); - } - - // - // Delete old data from the search result table - // - $sql = 'DELETE FROM ' . SEARCH_TABLE . ' - WHERE search_time < ' . ($current_time - (int) $board_config['session_length']); - if ( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete old search id sessions', '', __LINE__, __FILE__, $sql); - } - - // - // Store new result data - // - $search_results = implode(', ', $search_ids); - $per_page = ( $show_results == 'posts' ) ? $board_config['posts_per_page'] : $board_config['topics_per_page']; - - // - // Combine both results and search data (apart from original query) - // so we can serialize it and place it in the DB - // - $store_search_data = array(); - - // - // Limit the character length (and with this the results displayed at all following pages) to prevent - // truncated result arrays. Normally, search results above 12000 are affected. - // - to include or not to include - /* - $max_result_length = 60000; - if (strlen($search_results) > $max_result_length) - { - $search_results = substr($search_results, 0, $max_result_length); - $search_results = substr($search_results, 0, strrpos($search_results, ',')); - $total_match_count = count(explode(', ', $search_results)); - } - */ - - for($i = 0; $i < count($store_vars); $i++) - { - $store_search_data[$store_vars[$i]] = $$store_vars[$i]; - } - - $result_array = serialize($store_search_data); - unset($store_search_data); - - mt_srand ((double) microtime() * 1000000); - $search_id = mt_rand(); - - $sql = "UPDATE " . SEARCH_TABLE . " - SET search_id = $search_id, search_time = $current_time, search_array = '" . str_replace("\'", "''", $result_array) . "' - WHERE session_id = '" . $userdata['session_id'] . "'"; - if ( !($result = $db->sql_query($sql)) || !$db->sql_affectedrows() ) - { - $sql = "INSERT INTO " . SEARCH_TABLE . " (search_id, session_id, search_time, search_array) - VALUES($search_id, '" . $userdata['session_id'] . "', $current_time, '" . str_replace("\'", "''", $result_array) . "')"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not insert search results', '', __LINE__, __FILE__, $sql); - } - } - } - else - { - $search_id = intval($search_id); - if ( $search_id ) - { - $sql = "SELECT search_array - FROM " . SEARCH_TABLE . " - WHERE search_id = $search_id - AND session_id = '". $userdata['session_id'] . "'"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain search results', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $search_data = unserialize($row['search_array']); - for($i = 0; $i < count($store_vars); $i++) - { - $$store_vars[$i] = $search_data[$store_vars[$i]]; - } - } - } - } - - // - // Look up data ... - // - if ( $search_results != '' ) - { - if ( $show_results == 'posts' ) - { - $sql = "SELECT pt.post_text, pt.bbcode_uid, pt.post_subject, p.*, f.forum_id, f.forum_name, t.*, u.username, u.user_id, u.user_sig, u.user_sig_bbcode_uid - FROM " . FORUMS_TABLE . " f, " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . POSTS_TEXT_TABLE . " pt - WHERE p.post_id IN ($search_results) - AND pt.post_id = p.post_id - AND f.forum_id = p.forum_id - AND p.topic_id = t.topic_id - AND p.poster_id = u.user_id"; - } - else - { - $sql = "SELECT t.*, f.forum_id, f.forum_name, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time - FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u2 - WHERE t.topic_id IN ($search_results) - AND t.topic_poster = u.user_id - AND f.forum_id = t.forum_id - AND p.post_id = t.topic_first_post_id - AND p2.post_id = t.topic_last_post_id - AND u2.user_id = p2.poster_id"; - } - - $per_page = ( $show_results == 'posts' ) ? $board_config['posts_per_page'] : $board_config['topics_per_page']; - - $sql .= " ORDER BY "; - switch ( $sort_by ) - { - case 1: - $sql .= ( $show_results == 'posts' ) ? 'pt.post_subject' : 't.topic_title'; - break; - case 2: - $sql .= 't.topic_title'; - break; - case 3: - $sql .= 'u.username'; - break; - case 4: - $sql .= 'f.forum_id'; - break; - default: - $sql .= ( $show_results == 'posts' ) ? 'p.post_time' : 'p2.post_time'; - break; - } - $sql .= " $sort_dir LIMIT $start, " . $per_page; - - if ( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not obtain search results', '', __LINE__, __FILE__, $sql); - } - - $searchset = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $searchset[] = $row; - } - - $db->sql_freeresult($result); - - // - // Define censored word matches - // - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); - - // - // Output header - // - $page_title = $lang['Search']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - if ( $show_results == 'posts' ) - { - $template->set_filenames(array( - 'body' => 'search_results_posts.tpl') - ); - } - else - { - $template->set_filenames(array( - 'body' => 'search_results_topics.tpl') - ); - } - make_jumpbox('viewforum.'.$phpEx); - - $l_search_matches = ( $total_match_count == 1 ) ? sprintf($lang['Found_search_match'], $total_match_count) : sprintf($lang['Found_search_matches'], $total_match_count); - - $template->assign_vars(array( - 'L_SEARCH_MATCHES' => $l_search_matches, - 'L_TOPIC' => $lang['Topic']) - ); - - $highlight_active = ''; - $highlight_match = array(); - for($j = 0; $j < count($split_search); $j++ ) - { - $split_word = $split_search[$j]; - - if ( $split_word != 'and' && $split_word != 'or' && $split_word != 'not' ) - { - $highlight_match[] = '#\b(' . str_replace("*", "([\w]+)?", $split_word) . ')\b#is'; - $highlight_active .= " " . $split_word; - - for ($k = 0; $k < count($synonym_array); $k++) - { - list($replace_synonym, $match_synonym) = split(' ', trim(strtolower($synonym_array[$k]))); - - if ( $replace_synonym == $split_word ) - { - $highlight_match[] = '#\b(' . str_replace("*", "([\w]+)?", $replace_synonym) . ')\b#is'; - $highlight_active .= ' ' . $match_synonym; - } - } - } - } - - $highlight_active = urlencode(trim($highlight_active)); - - $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array(); - $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array(); - - for($i = 0; $i < count($searchset); $i++) - { - $forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $searchset[$i]['forum_id']); - $topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $searchset[$i]['topic_id'] . "&highlight=$highlight_active"); - $post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['post_id'] . "&highlight=$highlight_active") . '#' . $searchset[$i]['post_id']; - - $post_date = create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); - - $message = $searchset[$i]['post_text']; - $topic_title = $searchset[$i]['topic_title']; - - $forum_id = $searchset[$i]['forum_id']; - $topic_id = $searchset[$i]['topic_id']; - - if ( $show_results == 'posts' ) - { - if ( isset($return_chars) ) - { - $bbcode_uid = $searchset[$i]['bbcode_uid']; - - // - // If the board has HTML off but the post has HTML - // on then we process it, else leave it alone - // - if ( $return_chars != -1 ) - { - $message = strip_tags($message); - $message = preg_replace("/\[.*?:$bbcode_uid:?.*?\]/si", '', $message); - $message = preg_replace('/\[url\]|\[\/url\]/si', '', $message); - $message = ( strlen($message) > $return_chars ) ? substr($message, 0, $return_chars) . ' ...' : $message; - } - else - { - if ( !$board_config['allow_html'] ) - { - if ( $postrow[$i]['enable_html'] ) - { - $message = preg_replace('#(<)([\/]?.*?)(>)#is', '<\\2>', $message); - } - } - - if ( $bbcode_uid != '' ) - { - $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message); - } - - $message = make_clickable($message); - - if ( $highlight_active ) - { - if ( preg_match('/<.*>/', $message) ) - { - $message = preg_replace($highlight_match, '\1', $message); - - $end_html = 0; - $start_html = 1; - $temp_message = ''; - $message = ' ' . $message . ' '; - - while( $start_html = strpos($message, '<', $start_html) ) - { - $grab_length = $start_html - $end_html - 1; - $temp_message .= substr($message, $end_html + 1, $grab_length); - - if ( $end_html = strpos($message, '>', $start_html) ) - { - $length = $end_html - $start_html + 1; - $hold_string = substr($message, $start_html, $length); - - if ( strrpos(' ' . $hold_string, '<') != 1 ) - { - $end_html = $start_html + 1; - $end_counter = 1; - - while ( $end_counter && $end_html < strlen($message) ) - { - if ( substr($message, $end_html, 1) == '>' ) - { - $end_counter--; - } - else if ( substr($message, $end_html, 1) == '<' ) - { - $end_counter++; - } - - $end_html++; - } - - $length = $end_html - $start_html + 1; - $hold_string = substr($message, $start_html, $length); - $hold_string = str_replace('', '', $hold_string); - $hold_string = str_replace('', '', $hold_string); - } - else if ( $hold_string == '' ) - { - $hold_string = str_replace('', '', $hold_string); - } - else if ( $hold_string == '' ) - { - $hold_string = str_replace('', '', $hold_string); - } - - $temp_message .= $hold_string; - - $start_html += $length; - } - else - { - $start_html = strlen($message); - } - } - - $grab_length = strlen($message) - $end_html - 1; - $temp_message .= substr($message, $end_html + 1, $grab_length); - - $message = trim($temp_message); - } - else - { - $message = preg_replace($highlight_match, '\1', $message); - } - } - } - - if ( count($orig_word) ) - { - $topic_title = preg_replace($orig_word, $replacement_word, $topic_title); - $post_subject = ( $searchset[$i]['post_subject'] != "" ) ? preg_replace($orig_word, $replacement_word, $searchset[$i]['post_subject']) : $topic_title; - - $message = preg_replace($orig_word, $replacement_word, $message); - } - else - { - $post_subject = ( $searchset[$i]['post_subject'] != '' ) ? $searchset[$i]['post_subject'] : $topic_title; - } - - if ($board_config['allow_smilies'] && $searchset[$i]['enable_smilies']) - { - $message = smilies_pass($message); - } - - $message = str_replace("\n", '
    ', $message); - - } - - $poster = ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '' : ''; - $poster .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? $searchset[$i]['username'] : ( ( $searchset[$i]['post_username'] != "" ) ? $searchset[$i]['post_username'] : $lang['Guest'] ); - $poster .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '' : ''; - - if ( $userdata['session_logged_in'] && $searchset[$i]['post_time'] > $userdata['user_lastvisit'] ) - { - if ( !empty($tracking_topics[$topic_id]) && !empty($tracking_forums[$forum_id]) ) - { - $topic_last_read = ( $tracking_topics[$topic_id] > $tracking_forums[$forum_id] ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id]; - } - else if ( !empty($tracking_topics[$topic_id]) || !empty($tracking_forums[$forum_id]) ) - { - $topic_last_read = ( !empty($tracking_topics[$topic_id]) ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id]; - } - - if ( $searchset[$i]['post_time'] > $topic_last_read ) - { - $mini_post_img = $images['icon_minipost_new']; - $mini_post_alt = $lang['New_post']; - } - else - { - $mini_post_img = $images['icon_minipost']; - $mini_post_alt = $lang['Post']; - } - } - else - { - $mini_post_img = $images['icon_minipost']; - $mini_post_alt = $lang['Post']; - } - - $template->assign_block_vars("searchresults", array( - 'TOPIC_TITLE' => $topic_title, - 'FORUM_NAME' => $searchset[$i]['forum_name'], - 'POST_SUBJECT' => $post_subject, - 'POST_DATE' => $post_date, - 'POSTER_NAME' => $poster, - 'TOPIC_REPLIES' => $searchset[$i]['topic_replies'], - 'TOPIC_VIEWS' => $searchset[$i]['topic_views'], - 'MESSAGE' => $message, - 'MINI_POST_IMG' => $mini_post_img, - - 'L_MINI_POST_ALT' => $mini_post_alt, - - 'U_POST' => $post_url, - 'U_TOPIC' => $topic_url, - 'U_FORUM' => $forum_url) - ); - } - else - { - $message = ''; - - if ( count($orig_word) ) - { - $topic_title = preg_replace($orig_word, $replacement_word, $searchset[$i]['topic_title']); - } - - $topic_type = $searchset[$i]['topic_type']; - - if ($topic_type == POST_ANNOUNCE) - { - $topic_type = $lang['Topic_Announcement'] . ' '; - } - else if ($topic_type == POST_STICKY) - { - $topic_type = $lang['Topic_Sticky'] . ' '; - } - else - { - $topic_type = ''; - } - - if ( $searchset[$i]['topic_vote'] ) - { - $topic_type .= $lang['Topic_Poll'] . ' '; - } - - $views = $searchset[$i]['topic_views']; - $replies = $searchset[$i]['topic_replies']; - - if ( ( $replies + 1 ) > $board_config['posts_per_page'] ) - { - $total_pages = ceil( ( $replies + 1 ) / $board_config['posts_per_page'] ); - $goto_page = ' [ ' . $lang['Goto_page'] . '' . $lang['Goto_page'] . ': '; - - $times = 1; - for($j = 0; $j < $replies + 1; $j += $board_config['posts_per_page']) - { - $goto_page .= '' . $times . ''; - if ( $times == 1 && $total_pages > 4 ) - { - $goto_page .= ' ... '; - $times = $total_pages - 3; - $j += ( $total_pages - 4 ) * $board_config['posts_per_page']; - } - else if ( $times < $total_pages ) - { - $goto_page .= ', '; - } - $times++; - } - $goto_page .= ' ] '; - } - else - { - $goto_page = ''; - } - - if ( $searchset[$i]['topic_status'] == TOPIC_MOVED ) - { - $topic_type = $lang['Topic_Moved'] . ' '; - $topic_id = $searchset[$i]['topic_moved_id']; - - $folder_image = '' . $lang['No_new_posts'] . ''; - $newest_post_img = ''; - } - else - { - if ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) - { - $folder = $images['folder_locked']; - $folder_new = $images['folder_locked_new']; - } - else if ( $searchset[$i]['topic_type'] == POST_ANNOUNCE ) - { - $folder = $images['folder_announce']; - $folder_new = $images['folder_announce_new']; - } - else if ( $searchset[$i]['topic_type'] == POST_STICKY ) - { - $folder = $images['folder_sticky']; - $folder_new = $images['folder_sticky_new']; - } - else - { - if ( $replies >= $board_config['hot_threshold'] ) - { - $folder = $images['folder_hot']; - $folder_new = $images['folder_hot_new']; - } - else - { - $folder = $images['folder']; - $folder_new = $images['folder_new']; - } - } - - if ( $userdata['session_logged_in'] ) - { - if ( $searchset[$i]['post_time'] > $userdata['user_lastvisit'] ) - { - if ( !empty($tracking_topics) || !empty($tracking_forums) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) - { - - $unread_topics = true; - - if ( !empty($tracking_topics[$topic_id]) ) - { - if ( $tracking_topics[$topic_id] > $searchset[$i]['post_time'] ) - { - $unread_topics = false; - } - } - - if ( !empty($tracking_forums[$forum_id]) ) - { - if ( $tracking_forums[$forum_id] > $searchset[$i]['post_time'] ) - { - $unread_topics = false; - } - } - - if ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) - { - if ( $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all'] > $searchset[$i]['post_time'] ) - { - $unread_topics = false; - } - } - - if ( $unread_topics ) - { - $folder_image = $folder_new; - $folder_alt = $lang['New_posts']; - - $newest_post_img = '' . $lang['View_newest_post'] . ' '; - } - else - { - $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; - - $folder_image = $folder; - $folder_alt = $folder_alt; - $newest_post_img = ''; - } - - } - else if ( $searchset[$i]['post_time'] > $userdata['user_lastvisit'] ) - { - $folder_image = $folder_new; - $folder_alt = $lang['New_posts']; - - $newest_post_img = '' . $lang['View_newest_post'] . ' '; - } - else - { - $folder_image = $folder; - $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; - $newest_post_img = ''; - } - } - else - { - $folder_image = $folder; - $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; - $newest_post_img = ''; - } - } - else - { - $folder_image = $folder; - $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; - $newest_post_img = ''; - } - } - - - $topic_author = ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '' : ''; - $topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? $searchset[$i]['username'] : ( ( $searchset[$i]['post_username'] != '' ) ? $searchset[$i]['post_username'] : $lang['Guest'] ); - - $topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '' : ''; - - $first_post_time = create_date($board_config['default_dateformat'], $searchset[$i]['topic_time'], $board_config['board_timezone']); - - $last_post_time = create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); - - $last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '' . $searchset[$i]['user2'] . ''; - - $last_post_url = '' . $lang['View_latest_post'] . ''; - - $template->assign_block_vars('searchresults', array( - 'FORUM_NAME' => $searchset[$i]['forum_name'], - 'FORUM_ID' => $forum_id, - 'TOPIC_ID' => $topic_id, - 'FOLDER' => $folder_image, - 'NEWEST_POST_IMG' => $newest_post_img, - 'TOPIC_FOLDER_IMG' => $folder_image, - 'GOTO_PAGE' => $goto_page, - 'REPLIES' => $replies, - 'TOPIC_TITLE' => $topic_title, - 'TOPIC_TYPE' => $topic_type, - 'VIEWS' => $views, - 'TOPIC_AUTHOR' => $topic_author, - 'FIRST_POST_TIME' => $first_post_time, - 'LAST_POST_TIME' => $last_post_time, - 'LAST_POST_AUTHOR' => $last_post_author, - 'LAST_POST_IMG' => $last_post_url, - - 'L_TOPIC_FOLDER_ALT' => $folder_alt, - - 'U_VIEW_FORUM' => $forum_url, - 'U_VIEW_TOPIC' => $topic_url) - ); - } - } - - $base_url = "search.$phpEx?search_id=$search_id"; - - $template->assign_vars(array( - 'PAGINATION' => generate_pagination($base_url, $total_match_count, $per_page, $start), - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $per_page ) + 1 ), ceil( $total_match_count / $per_page )), - - 'L_AUTHOR' => $lang['Author'], - 'L_MESSAGE' => $lang['Message'], - 'L_FORUM' => $lang['Forum'], - 'L_TOPICS' => $lang['Topics'], - 'L_REPLIES' => $lang['Replies'], - 'L_VIEWS' => $lang['Views'], - 'L_POSTS' => $lang['Posts'], - 'L_LASTPOST' => $lang['Last_Post'], - 'L_POSTED' => $lang['Posted'], - 'L_SUBJECT' => $lang['Subject'], - - 'L_GOTO_PAGE' => $lang['Goto_page']) - ); - - $template->pparse('body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_search_match']); - } -} - -// -// Search forum -// -$sql = "SELECT c.cat_title, c.cat_id, f.forum_name, f.forum_id - FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f - WHERE f.cat_id = c.cat_id - ORDER BY c.cat_order, f.forum_order"; -$result = $db->sql_query($sql); -if ( !$result ) -{ - message_die(GENERAL_ERROR, 'Could not obtain forum_name/forum_id', '', __LINE__, __FILE__, $sql); -} - -$is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata); - -$s_forums = ''; -while( $row = $db->sql_fetchrow($result) ) -{ - if ( $is_auth_ary[$row['forum_id']]['auth_read'] ) - { - $s_forums .= ''; - if ( empty($list_cat[$row['cat_id']]) ) - { - $list_cat[$row['cat_id']] = $row['cat_title']; - } - } -} - -if ( $s_forums != '' ) -{ - $s_forums = '' . $s_forums; - - // - // Category to search - // - $s_categories = ''; - while( list($cat_id, $cat_title) = @each($list_cat)) - { - $s_categories .= ''; - } -} -else -{ - message_die(GENERAL_MESSAGE, $lang['No_searchable_forums']); -} - -// -// Number of chars returned -// -$s_characters = ''; -$s_characters .= ''; -$s_characters .= ''; -$s_characters .= ''; - -for($i = 100; $i < 1100 ; $i += 100) -{ - $selected = ( $i == 200 ) ? ' selected="selected"' : ''; - $s_characters .= ''; -} - -// -// Sorting -// -$s_sort_by = ""; -for($i = 0; $i < count($sort_by_types); $i++) -{ - $s_sort_by .= ''; -} - -// -// Search time -// -$previous_days = array(0, 1, 7, 14, 30, 90, 180, 364); -$previous_days_text = array($lang['All_Posts'], $lang['1_Day'], $lang['7_Days'], $lang['2_Weeks'], $lang['1_Month'], $lang['3_Months'], $lang['6_Months'], $lang['1_Year']); - -$s_time = ''; -for($i = 0; $i < count($previous_days); $i++) -{ - $selected = ( $topic_days == $previous_days[$i] ) ? ' selected="selected"' : ''; - $s_time .= ''; -} - -// -// Output the basic page -// -$page_title = $lang['Search']; -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -$template->set_filenames(array( - 'body' => 'search_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$template->assign_vars(array( - 'L_SEARCH_QUERY' => $lang['Search_query'], - 'L_SEARCH_OPTIONS' => $lang['Search_options'], - 'L_SEARCH_KEYWORDS' => $lang['Search_keywords'], - 'L_SEARCH_KEYWORDS_EXPLAIN' => $lang['Search_keywords_explain'], - 'L_SEARCH_AUTHOR' => $lang['Search_author'], - 'L_SEARCH_AUTHOR_EXPLAIN' => $lang['Search_author_explain'], - 'L_SEARCH_ANY_TERMS' => $lang['Search_for_any'], - 'L_SEARCH_ALL_TERMS' => $lang['Search_for_all'], - 'L_SEARCH_MESSAGE_ONLY' => $lang['Search_msg_only'], - 'L_SEARCH_MESSAGE_TITLE' => $lang['Search_title_msg'], - 'L_CATEGORY' => $lang['Category'], - 'L_RETURN_FIRST' => $lang['Return_first'], - 'L_CHARACTERS' => $lang['characters_posts'], - 'L_SORT_BY' => $lang['Sort_by'], - 'L_SORT_ASCENDING' => $lang['Sort_Ascending'], - 'L_SORT_DESCENDING' => $lang['Sort_Descending'], - 'L_SEARCH_PREVIOUS' => $lang['Search_previous'], - 'L_DISPLAY_RESULTS' => $lang['Display_results'], - 'L_FORUM' => $lang['Forum'], - 'L_TOPICS' => $lang['Topics'], - 'L_POSTS' => $lang['Posts'], - - 'S_SEARCH_ACTION' => append_sid("search.$phpEx?mode=results"), - 'S_CHARACTER_OPTIONS' => $s_characters, - 'S_FORUM_OPTIONS' => $s_forums, - 'S_CATEGORY_OPTIONS' => $s_categories, - 'S_TIME_OPTIONS' => $s_time, - 'S_SORT_OPTIONS' => $s_sort_by, - 'S_HIDDEN_FIELDS' => '') -); - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/templates/Helius/Helius.cfg b/phpBB2/templates/Helius/Helius.cfg deleted file mode 100644 index 1408ceb..0000000 --- a/phpBB2/templates/Helius/Helius.cfg +++ /dev/null @@ -1,137 +0,0 @@ - 0) && (substr($template_dir, 0, strlen($phpbb_root_path)) !== $phpbb_root_path)) -{ - $template_dir = $phpbb_root_path . $template_dir; -} - -// -// testing if image exists -// -$test_file = $template_dir . '/images/lang_{LANG}/btn_login.gif'; -$lang = 'english'; -if(@file_exists(str_replace('{LANG}', $board_config['default_lang'], $test_file))) -{ - // image exists, setting language variable to correct url - $lang = $board_config['default_lang']; -} -elseif($board_config['default_lang'] !== 'english') -{ - // image doesn't exist, testing if there is english version - if(!@file_exists(str_replace('{LANG}', 'english', $test_file))) - { - // nothing found. setting to default language - $lang = $board_config['default_lang']; - } -} - -// -// adding custom template variables -// -$template->assign_vars(array( - 'LANG' => $lang, - 'T_TEMPLATE_PATH' => $template_dir, - 'C_ROW1' => '#EDEFF2', - 'C_ROW1_OVER' => '#F8F9FA', - 'C_ROW2' => '#DDE2EC', - 'C_ROW2_OVER' => '#EBEEF3', - 'C_ROW3' => '#E2E6EE', - 'C_ROW3_OVER' => '#ECEFF4', - 'C_VERSION' => '1.91', - 'TPL_FORUM_URL' => urlencode($board_config['server_name'] . $board_config['script_path']), - 'TPL_HDR1' => '
    ', - 'TPL_HDR2' => '
    ', - 'TPL_FTR' => '
    ' - )); - -$images['icon_quote'] = "$current_template_images/{LANG}/icon_quote.gif"; -$images['icon_edit'] = "$current_template_images/{LANG}/icon_edit.gif"; -$images['icon_search'] = "$current_template_images/{LANG}/icon_search.gif"; -$images['icon_profile'] = "$current_template_images/{LANG}/icon_profile.gif"; -$images['icon_pm'] = "$current_template_images/{LANG}/icon_pm.gif"; -$images['icon_email'] = "$current_template_images/{LANG}/icon_email.gif"; -$images['icon_delpost'] = "$current_template_images/icon_delete.gif"; -$images['icon_ip'] = "$current_template_images/icon_ip.gif"; -$images['icon_www'] = "$current_template_images/{LANG}/icon_www.gif"; -$images['icon_icq'] = "$current_template_images/icon_icq_add.gif"; -$images['icon_aim'] = "$current_template_images/icon_aim.gif"; -$images['icon_yim'] = "$current_template_images/icon_yim.gif"; -$images['icon_msnm'] = "$current_template_images/icon_msnm.gif"; -$images['icon_minipost'] = "$current_template_images/icon_minipost.gif"; -$images['icon_gotopost'] = "$current_template_images/icon_minipost.gif"; -$images['icon_minipost_new'] = "$current_template_images/icon_minipost_new.gif"; -$images['icon_latest_reply'] = "$current_template_images/icon_latest_reply.gif"; -$images['icon_newest_reply'] = "$current_template_images/icon_newest_reply.gif"; - -$images['forum'] = "$current_template_images/folder_big.gif"; -$images['forum_new'] = "$current_template_images/folder_new_big.gif"; -$images['forum_locked'] = "$current_template_images/folder_locked_big.gif"; - -$images['folder'] = "$current_template_images/folder.gif"; -$images['folder_new'] = "$current_template_images/folder_new.gif"; -$images['folder_hot'] = "$current_template_images/folder_hot.gif"; -$images['folder_hot_new'] = "$current_template_images/folder_new_hot.gif"; -$images['folder_locked'] = "$current_template_images/folder_lock.gif"; -$images['folder_locked_new'] = "$current_template_images/folder_lock_new.gif"; -$images['folder_sticky'] = "$current_template_images/folder_sticky.gif"; -$images['folder_sticky_new'] = "$current_template_images/folder_sticky_new.gif"; -$images['folder_announce'] = "$current_template_images/folder_announce.gif"; -$images['folder_announce_new'] = "$current_template_images/folder_announce_new.gif"; - -$images['post_new'] = "$current_template_images/{LANG}/post.gif"; -$images['post_locked'] = "$current_template_images/{LANG}/reply-locked.gif"; -$images['reply_new'] = "$current_template_images/{LANG}/reply.gif"; -$images['reply_locked'] = "$current_template_images/{LANG}/reply-locked.gif"; - -$images['pm_inbox'] = "$current_template_images/msg_inbox.gif"; -$images['pm_outbox'] = "$current_template_images/msg_outbox.gif"; -$images['pm_savebox'] = "$current_template_images/msg_savebox.gif"; -$images['pm_sentbox'] = "$current_template_images/msg_sentbox.gif"; -$images['pm_readmsg'] = "$current_template_images/folder.gif"; -$images['pm_unreadmsg'] = "$current_template_images/folder_new.gif"; -$images['pm_replymsg'] = "$current_template_images/{LANG}/reply.gif"; -$images['pm_postmsg'] = "$current_template_images/{LANG}/msg_newpost.gif"; -$images['pm_quotemsg'] = "$current_template_images/{LANG}/icon_quote.gif"; -$images['pm_editmsg'] = "$current_template_images/{LANG}/icon_edit.gif"; -$images['pm_new_msg'] = ""; -$images['pm_no_new_msg'] = ""; - -$images['Topic_watch'] = ""; -$images['topic_un_watch'] = ""; -$images['topic_mod_lock'] = "$current_template_images/topic_lock.gif"; -$images['topic_mod_unlock'] = "$current_template_images/topic_unlock.gif"; -$images['topic_mod_split'] = "$current_template_images/topic_split.gif"; -$images['topic_mod_move'] = "$current_template_images/topic_move.gif"; -$images['topic_mod_delete'] = "$current_template_images/topic_delete.gif"; - -$images['voting_graphic'][0] = "$current_template_images/voting_bar.gif"; -$images['voting_graphic'][1] = "$current_template_images/voting_bar.gif"; -$images['voting_graphic'][2] = "$current_template_images/voting_bar.gif"; -$images['voting_graphic'][3] = "$current_template_images/voting_bar.gif"; -$images['voting_graphic'][4] = "$current_template_images/voting_bar.gif"; - -// -// Vote graphic length defines the maximum length of a vote result -// graphic, ie. 100% = this length -// -$board_config['vote_graphic_length'] = 300; -$board_config['privmsg_graphic_length'] = 175; - -?> \ No newline at end of file diff --git a/phpBB2/templates/Helius/Helius.css b/phpBB2/templates/Helius/Helius.css deleted file mode 100644 index f109f6e..0000000 --- a/phpBB2/templates/Helius/Helius.css +++ /dev/null @@ -1,209 +0,0 @@ -/* - Helius Theme for phpBB version 2+ - Created by Vjacheslav Trushkin - http://www.trushkin.net -*/ - - - /* General page style. The scroll bar colours only visible in IE5.5+ */ -body { - background-color: #E5E8EE; - scrollbar-arrow-color: #1D2938; - scrollbar-face-color: #9DB3CC; - scrollbar-track-color: #D6DEE9; - scrollbar-highlight-color: #C8D3E1; - scrollbar-3dlight-color: #EAEFF4; - scrollbar-shadow-color: #7492B6; - scrollbar-darkshadow-color: #3A5370; -} - -/* General font families for common tags */ -font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } -a { text-decoration: underline; color: #364D67; } -a:visited { text-decoration: underline; color: #2C3E52; } -a:hover { text-decoration: underline; color: #FF6600; } -a:active { text-decoration: underline; color: #FF0000; } -hr { height: 0px; border: solid #364D67 0px; border-top-width: 1px;} - - -/* This is the outline round the main forum tables */ -.forumline { background-color: #525E6E; } - - -/* Main table cell colours and backgrounds */ -td.row1 { background-color: #EDEFF2; } -td.row1_over { background-color: #F8F9FA; } -td.row2 { background-color: #DDE2EC; } -td.row2_over { background-color: #EBEEF3; } -td.row3, td.row3Right { background-color: #E2E6EE; } -td.row3_over { background-color: #ECEFF4; } -td.row4 { background-color: #CED5E2; } - - -/* - This is for the table cell above the Topics, Post & Last posts on the index.php page - By default this is the fading out gradiated silver background. - However, you could replace this with a bitmap specific for each forum -*/ -td.rowpic { - background-color: #FFFFFF; -} - -/* Header cells - the blue and silver gradient backgrounds */ -th, td.th { - color: #3A5370; font-size: 12px; font-weight: bold; - background-color: #FFCC00; height: 26px; -} - -td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { - background-color:#D1D7DC; height: 28px; -} - -td.th2 {background-color:#D1D7DC; height: 20px; color: #FFFFFF; } - -td.spaceRow { - background-color: #D1D7DC; } - - -/* - Setting additional nice inner borders for the main table cells. - The names indicate which sides the border will be on. - Don't worry if you don't understand this, just ignore it :-) -*/ - -/* The largest text used in the index page title and toptic title etc. */ -h1,h2 { - font-weight: bold; font-size: 18px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; - text-decoration: none; line-height : 120%; color: #000000; -} -.maintitle { - font-weight: bold; font-size: 18px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; - text-decoration: none; line-height : 120%; color: #364D67; -} -.subtitle { - font-size: 16px; font-family: Arial, Helvetica, sans-serif; - text-decoration: none; font-weight: bold; color: #FFFFFF; -} - - -/* General text */ -.gen { font-size : 12px; } -.genmed { font-size : 11px; } -.gensmall, .gensmall2 { font-size : 10px; } -.gen,.genmed,.gensmall { color : #000000; } -a.gen,a.genmed,a.gensmall { color: #364D67; text-decoration: underline; } -a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #FF6600; text-decoration: underline; } - - -/* The register, login, search etc links at the top of the page */ -.mainmenu { font-size: 11px; color: #000000 } -a.mainmenu { text-decoration: underline; color: #364D67; } -a.mainmenu:hover{ text-decoration: underline; color: #FF6600; } - - -/* Forum category titles */ -.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color: #364D67} -a.cattitle, .cattitle a { text-decoration: underline; color: #364D67; } -a.cattitle:visited, .cattitle a:visited { text-decoration: underline; color: #2C3E52; } -a.cattitle:hover, .cattitle a:hover { text-decoration: underline; color: #FF6600; } -a.cattitle:active, .cattitle a:active { text-decoration: underline; color: #FF0000; } - - -/* Forum title: Text and link to the forums used in: index.php */ -.forumlink { font-weight: bold; font-size: 12px; color: #364D67; } -a.forumlink { text-decoration: underline; color: #364D67; } -a.forumlink:hover{ text-decoration: underline; color: #FF6600; } - - -/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ -.nav { font-weight: bold; font-size: 11px; color : #000000;} -a.nav { text-decoration: underline; color: #364D67; } -a.nav:hover { text-decoration: underline; color: #FF6600; } - - -/* titles for the topics: could specify viewed link colour too */ -.topictitle { font-weight: bold; font-size: 11px; color : #000000; } -a.topictitle:link { text-decoration: underline; color: #364D67; } -a.topictitle:visited { text-decoration: underline; color: #2C3E52; } -a.topictitle:hover { text-decoration: underline; color: #FF6600; } -a.topictitle:active { text-decoration: underline; color: #FF0000; } - - -/* Name of poster in viewmsg.php and viewtopic.php and other places */ -.name { font-size: 11px; color: #000000;} -a.name:link { text-decoration: underline; color: #364D67; } -a.name:visited { text-decoration: underline; color: #2C3E52; } -a.name:hover { text-decoration: underline; color: #FF6600; } -a.name:active { text-decoration: underline; color: #FF0000; } - -/* Location, number of posts, post date etc */ -.postdetails { font-size: 10px; color: #000000; } - - -/* The content of the posts (body of text) */ -.postbody { font-size: 12px;} -a.postlink:link { text-decoration: underline; color: #364D67; } -a.postlink:visited { text-decoration: underline; color: #2C3E52; } -a.postlink:hover { text-decoration: underline; color: #FF6600; } -a.postlink:active { text-decoration: underline; color: #FF0000; } - - -/* Quote & Code blocks */ -.code { - font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; - background-color: #F1F4F8; border: #525E6E; border-style: dashed; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - -.quote { - font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #3A5370; line-height: 125%; - background-color: #F1F4F8; border: #525E6E; border-style: dotted; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - - -/* Copyright and bottom info */ -.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} -a.copyright, a.copyright:visited, .copyright a, .copyright a:visited { color: #444444; text-decoration: none;} -a.copyright:hover, a.copyright:active, .copyright a:hover, .copyright a:active { color: #000000; text-decoration: underline;} - - -/* Form elements */ -input,textarea, select { - color : #000000; - font: normal 11px Verdana, Arial, Helvetica, sans-serif; -} - -form { display: inline; } - -/* The text input fields background colour */ -input.post, textarea.post, select { - background-color : #FFFFFF; -} - -input { text-indent : 2px; } - -/* The buttons used for bbCode styling in message post */ -input.button { - background-color: #EAEFF4; - color: #000000; - font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; -} - -/* The main submit button option */ -input.mainoption { - background-color : #FAFAFA; - font-weight : bold; -} - -/* None-bold submit button */ -input.liteoption { - background-color : #FAFAFA; - font-weight : normal; -} - -/* This is the line in the posting page which shows the rollover - help line. This is actually a text box, but if set to be the same - colour as the background no one will know ;) -*/ -input.helpline { background-color: #DDE2EC; border: solid 1px #DDE2EC; } diff --git a/phpBB2/templates/Helius/_extra/btn_about.gif b/phpBB2/templates/Helius/_extra/btn_about.gif deleted file mode 100644 index 4abe1da..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_about.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_about_on.gif b/phpBB2/templates/Helius/_extra/btn_about_on.gif deleted file mode 100644 index 28effad..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_about_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_album.gif b/phpBB2/templates/Helius/_extra/btn_album.gif deleted file mode 100644 index 3d39890..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_album.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_album_on.gif b/phpBB2/templates/Helius/_extra/btn_album_on.gif deleted file mode 100644 index 3a174f9..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_album_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_boardrules.gif b/phpBB2/templates/Helius/_extra/btn_boardrules.gif deleted file mode 100644 index 79e6897..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_boardrules.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_boardrules_on.gif b/phpBB2/templates/Helius/_extra/btn_boardrules_on.gif deleted file mode 100644 index e1a8718..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_boardrules_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_calendar.gif b/phpBB2/templates/Helius/_extra/btn_calendar.gif deleted file mode 100644 index 806c194..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_calendar.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_calendar_on.gif b/phpBB2/templates/Helius/_extra/btn_calendar_on.gif deleted file mode 100644 index 72e8f63..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_calendar_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_calender.gif b/phpBB2/templates/Helius/_extra/btn_calender.gif deleted file mode 100644 index 5fcbce1..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_calender.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_calender_on.gif b/phpBB2/templates/Helius/_extra/btn_calender_on.gif deleted file mode 100644 index 06db81a..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_calender_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_chat.gif b/phpBB2/templates/Helius/_extra/btn_chat.gif deleted file mode 100644 index 933dd91..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_chat.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_chat_on.gif b/phpBB2/templates/Helius/_extra/btn_chat_on.gif deleted file mode 100644 index 07637c3..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_chat_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_chatbox.gif b/phpBB2/templates/Helius/_extra/btn_chatbox.gif deleted file mode 100644 index ff2eaf1..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_chatbox.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_chatbox_on.gif b/phpBB2/templates/Helius/_extra/btn_chatbox_on.gif deleted file mode 100644 index ac6c3b6..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_chatbox_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_contact.gif b/phpBB2/templates/Helius/_extra/btn_contact.gif deleted file mode 100644 index 795b4b0..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_contact.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_contact_on.gif b/phpBB2/templates/Helius/_extra/btn_contact_on.gif deleted file mode 100644 index 9b07824..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_contact_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_download.gif b/phpBB2/templates/Helius/_extra/btn_download.gif deleted file mode 100644 index a6f2568..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_download.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_download_on.gif b/phpBB2/templates/Helius/_extra/btn_download_on.gif deleted file mode 100644 index 25a22fd..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_download_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_downloads.gif b/phpBB2/templates/Helius/_extra/btn_downloads.gif deleted file mode 100644 index 85e6aa6..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_downloads.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_downloads_on.gif b/phpBB2/templates/Helius/_extra/btn_downloads_on.gif deleted file mode 100644 index 5710a1d..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_downloads_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_favorieten.gif b/phpBB2/templates/Helius/_extra/btn_favorieten.gif deleted file mode 100644 index 02e2d14..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_favorieten.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_favorieten_on.gif b/phpBB2/templates/Helius/_extra/btn_favorieten_on.gif deleted file mode 100644 index 289e5f3..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_favorieten_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_favorites.gif b/phpBB2/templates/Helius/_extra/btn_favorites.gif deleted file mode 100644 index 17d46de..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_favorites.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_favorites_on.gif b/phpBB2/templates/Helius/_extra/btn_favorites_on.gif deleted file mode 100644 index bdbd1d8..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_favorites_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_files.gif b/phpBB2/templates/Helius/_extra/btn_files.gif deleted file mode 100644 index f56ca9a..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_files.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_files_on.gif b/phpBB2/templates/Helius/_extra/btn_files_on.gif deleted file mode 100644 index 4369cea..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_files_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_forum.gif b/phpBB2/templates/Helius/_extra/btn_forum.gif deleted file mode 100644 index 3fdcbbb..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_forum.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_forum_on.gif b/phpBB2/templates/Helius/_extra/btn_forum_on.gif deleted file mode 100644 index fae29c0..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_forum_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_forumrules.gif b/phpBB2/templates/Helius/_extra/btn_forumrules.gif deleted file mode 100644 index 5f259e7..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_forumrules.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_forumrules_on.gif b/phpBB2/templates/Helius/_extra/btn_forumrules_on.gif deleted file mode 100644 index e4a3dab..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_forumrules_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_gallery.gif b/phpBB2/templates/Helius/_extra/btn_gallery.gif deleted file mode 100644 index c576fbb..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_gallery.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_gallery_on.gif b/phpBB2/templates/Helius/_extra/btn_gallery_on.gif deleted file mode 100644 index c7d0a7b..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_gallery_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_home.gif b/phpBB2/templates/Helius/_extra/btn_home.gif deleted file mode 100644 index a72dfd3..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_home.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_home_on.gif b/phpBB2/templates/Helius/_extra/btn_home_on.gif deleted file mode 100644 index e39084a..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_home_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_info.gif b/phpBB2/templates/Helius/_extra/btn_info.gif deleted file mode 100644 index 1883f67..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_info.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_info_on.gif b/phpBB2/templates/Helius/_extra/btn_info_on.gif deleted file mode 100644 index e79f097..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_info_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_kalender.gif b/phpBB2/templates/Helius/_extra/btn_kalender.gif deleted file mode 100644 index 80b756c..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_kalender.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_kalender_on.gif b/phpBB2/templates/Helius/_extra/btn_kalender_on.gif deleted file mode 100644 index 0fa70ed..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_kalender_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_links.gif b/phpBB2/templates/Helius/_extra/btn_links.gif deleted file mode 100644 index e265a1f..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_links.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_links_on.gif b/phpBB2/templates/Helius/_extra/btn_links_on.gif deleted file mode 100644 index 79472f8..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_links_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_main.gif b/phpBB2/templates/Helius/_extra/btn_main.gif deleted file mode 100644 index d18ff19..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_main.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_main_on.gif b/phpBB2/templates/Helius/_extra/btn_main_on.gif deleted file mode 100644 index d6b7a52..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_main_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_mainpage.gif b/phpBB2/templates/Helius/_extra/btn_mainpage.gif deleted file mode 100644 index b879a28..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_mainpage.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_mainpage_on.gif b/phpBB2/templates/Helius/_extra/btn_mainpage_on.gif deleted file mode 100644 index 405bcec..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_mainpage_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_news.gif b/phpBB2/templates/Helius/_extra/btn_news.gif deleted file mode 100644 index 8ce2dd0..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_news.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_news_on.gif b/phpBB2/templates/Helius/_extra/btn_news_on.gif deleted file mode 100644 index 1c39a03..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_news_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_portal.gif b/phpBB2/templates/Helius/_extra/btn_portal.gif deleted file mode 100644 index bf59649..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_portal.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_portal_on.gif b/phpBB2/templates/Helius/_extra/btn_portal_on.gif deleted file mode 100644 index 597a036..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_portal_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_profiel.gif b/phpBB2/templates/Helius/_extra/btn_profiel.gif deleted file mode 100644 index e0da00e..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_profiel.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_profiel_on.gif b/phpBB2/templates/Helius/_extra/btn_profiel_on.gif deleted file mode 100644 index e391e59..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_profiel_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_statistic.gif b/phpBB2/templates/Helius/_extra/btn_statistic.gif deleted file mode 100644 index 94ccd6d..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_statistic.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_statistic_on.gif b/phpBB2/templates/Helius/_extra/btn_statistic_on.gif deleted file mode 100644 index 461ab88..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_statistic_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_statistics.gif b/phpBB2/templates/Helius/_extra/btn_statistics.gif deleted file mode 100644 index 2296f2a..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_statistics.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_statistics_on.gif b/phpBB2/templates/Helius/_extra/btn_statistics_on.gif deleted file mode 100644 index bb536e4..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_statistics_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_statistik.gif b/phpBB2/templates/Helius/_extra/btn_statistik.gif deleted file mode 100644 index 5dcf587..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_statistik.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_statistik_on.gif b/phpBB2/templates/Helius/_extra/btn_statistik_on.gif deleted file mode 100644 index 7d04245..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_statistik_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_stats.gif b/phpBB2/templates/Helius/_extra/btn_stats.gif deleted file mode 100644 index 145c63e..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_stats.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_stats_on.gif b/phpBB2/templates/Helius/_extra/btn_stats_on.gif deleted file mode 100644 index ccb8e92..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_stats_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_store.gif b/phpBB2/templates/Helius/_extra/btn_store.gif deleted file mode 100644 index dcf7715..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_store.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_store_on.gif b/phpBB2/templates/Helius/_extra/btn_store_on.gif deleted file mode 100644 index e6c9056..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_store_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_website.gif b/phpBB2/templates/Helius/_extra/btn_website.gif deleted file mode 100644 index 75978e3..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_website.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_extra/btn_website_on.gif b/phpBB2/templates/Helius/_extra/btn_website_on.gif deleted file mode 100644 index 4026ccd..0000000 Binary files a/phpBB2/templates/Helius/_extra/btn_website_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/_logo_src/logo_bg.bmp b/phpBB2/templates/Helius/_logo_src/logo_bg.bmp deleted file mode 100644 index bae060b..0000000 Binary files a/phpBB2/templates/Helius/_logo_src/logo_bg.bmp and /dev/null differ diff --git a/phpBB2/templates/Helius/_logo_src/readme.txt b/phpBB2/templates/Helius/_logo_src/readme.txt deleted file mode 100644 index 60ce29e..0000000 --- a/phpBB2/templates/Helius/_logo_src/readme.txt +++ /dev/null @@ -1,15 +0,0 @@ -Theme is created with Macromedia Fireworks MX, but almost noone has it so -i exported logo background to bmp file that can be used with any editor. - -After you create logo it should be splitted in 2 images: -logo1.gif and logo2.gif - -width of logo1.gif should be the same as width of logo2.gif -height of logo1.gif is 23px -height of logo2.gif is 30px - -if width of image will be different from "130" then open overall_header.tpl -with notepad (or any other text editor) and replace all "130" width width of -your logo. - -html code for header is in overall_header.tpl file (tpl files are usual html files) diff --git a/phpBB2/templates/Helius/admin/admin_message_body.tpl b/phpBB2/templates/Helius/admin/admin_message_body.tpl deleted file mode 100644 index 7431f09..0000000 --- a/phpBB2/templates/Helius/admin/admin_message_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    - - - - - - - - -
    {MESSAGE_TITLE}
    {MESSAGE_TEXT}
    - -
    diff --git a/phpBB2/templates/Helius/admin/auth_forum_body.tpl b/phpBB2/templates/Helius/admin/auth_forum_body.tpl deleted file mode 100644 index c013a2a..0000000 --- a/phpBB2/templates/Helius/admin/auth_forum_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - - - - - - - - -
    {forum_auth_titles.CELL_TITLE}
    {forum_auth_data.S_AUTH_LEVELS_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/Helius/admin/auth_select_body.tpl b/phpBB2/templates/Helius/admin/auth_select_body.tpl deleted file mode 100644 index 80ebd36..0000000 --- a/phpBB2/templates/Helius/admin/auth_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -
    - - - - - - -
    {L_AUTH_SELECT}
    {S_HIDDEN_FIELDS}{S_AUTH_SELECT}   
    diff --git a/phpBB2/templates/Helius/admin/auth_ug_body.tpl b/phpBB2/templates/Helius/admin/auth_ug_body.tpl deleted file mode 100644 index 69e4bab..0000000 --- a/phpBB2/templates/Helius/admin/auth_ug_body.tpl +++ /dev/null @@ -1,49 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_USER_OR_GROUPNAME}: {USERNAME}

    - -
    - - -

    {USER_LEVEL}

    -

    {USER_GROUP_MEMBERSHIPS}

    - - - -

    {GROUP_MEMBERSHIP}

    - - -

    {L_PERMISSIONS}

    - -

    {L_AUTH_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM}{acltype.L_UG_ACL_TYPE}{L_MODERATOR_STATUS}
    {forums.FORUM_NAME}{forums.aclvalues.S_ACL_SELECT}{forums.S_MOD_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/Helius/admin/board_config_body.tpl b/phpBB2/templates/Helius/admin/board_config_body.tpl deleted file mode 100644 index 2b474f2..0000000 --- a/phpBB2/templates/Helius/admin/board_config_body.tpl +++ /dev/null @@ -1,272 +0,0 @@ - -

    {L_CONFIGURATION_TITLE}

    - -

    {L_CONFIGURATION_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GENERAL_SETTINGS}
    {L_SERVER_NAME}
    {L_SERVER_PORT}
    {L_SERVER_PORT_EXPLAIN}
    {L_SCRIPT_PATH}
    {L_SCRIPT_PATH_EXPLAIN}
    {L_SITE_NAME}
    {L_SITE_NAME_EXPLAIN}
    {L_SITE_DESCRIPTION}
    {L_DISABLE_BOARD}
    {L_DISABLE_BOARD_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ACCT_ACTIVATION}{L_NONE}   {L_USER}   {L_ADMIN}
    {L_VISUAL_CONFIRM}
    {L_VISUAL_CONFIRM_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ALLOW_AUTOLOGIN}
    {L_ALLOW_AUTOLOGIN_EXPLAIN}
    {L_YES}   {L_NO}
    {L_AUTOLOGIN_TIME}
    {L_AUTOLOGIN_TIME_EXPLAIN}
    {L_BOARD_EMAIL_FORM}
    {L_BOARD_EMAIL_FORM_EXPLAIN}
    {L_ENABLED}   {L_DISABLED}
    {L_FLOOD_INTERVAL}
    {L_FLOOD_INTERVAL_EXPLAIN}
    {L_SEARCH_FLOOD_INTERVAL}
    {L_SEARCH_FLOOD_INTERVAL_EXPLAIN}
    {L_MAX_LOGIN_ATTEMPTS}
    {L_MAX_LOGIN_ATTEMPTS_EXPLAIN}
    {L_LOGIN_RESET_TIME}
    {L_LOGIN_RESET_TIME_EXPLAIN}
    {L_TOPICS_PER_PAGE}
    {L_POSTS_PER_PAGE}
    {L_HOT_THRESHOLD}
    {L_DEFAULT_STYLE}{STYLE_SELECT}
    {L_OVERRIDE_STYLE}
    {L_OVERRIDE_STYLE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_DEFAULT_LANGUAGE}{LANG_SELECT}
    {L_DATE_FORMAT}
    {L_DATE_FORMAT_EXPLAIN}
    {L_SYSTEM_TIMEZONE}{TIMEZONE_SELECT}
    {L_ENABLE_GZIP} {L_YES}   {L_NO}
    {L_ENABLE_PRUNE} {L_YES}   {L_NO}
    {L_COOKIE_SETTINGS}
    {L_COOKIE_SETTINGS_EXPLAIN}
    {L_COOKIE_DOMAIN}
    {L_COOKIE_NAME}
    {L_COOKIE_PATH}
    {L_COOKIE_SECURE}
    {L_COOKIE_SECURE_EXPLAIN}
    {L_DISABLED}   {L_ENABLED}
    {L_SESSION_LENGTH}
    {L_PRIVATE_MESSAGING}
    {L_DISABLE_PRIVATE_MESSAGING}{L_ENABLED}   {L_DISABLED}
    {L_INBOX_LIMIT}
    {L_SENTBOX_LIMIT}
    {L_SAVEBOX_LIMIT}
    {L_ABILITIES_SETTINGS}
    {L_MAX_POLL_OPTIONS}
    {L_ALLOW_HTML} {L_YES}   {L_NO}
    {L_ALLOWED_TAGS}
    {L_ALLOWED_TAGS_EXPLAIN}
    {L_ALLOW_BBCODE} {L_YES}   {L_NO}
    {L_ALLOW_SMILIES} {L_YES}   {L_NO}
    {L_SMILIES_PATH}
    {L_SMILIES_PATH_EXPLAIN}
    {L_ALLOW_SIG} {L_YES}   {L_NO}
    {L_MAX_SIG_LENGTH}
    {L_MAX_SIG_LENGTH_EXPLAIN}
    {L_ALLOW_NAME_CHANGE} {L_YES}   {L_NO}
    {L_AVATAR_SETTINGS}
    {L_ALLOW_LOCAL} {L_YES}   {L_NO}
    {L_ALLOW_REMOTE}
    {L_ALLOW_REMOTE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ALLOW_UPLOAD} {L_YES}   {L_NO}
    {L_MAX_FILESIZE}
    {L_MAX_FILESIZE_EXPLAIN}
    Bytes
    {L_MAX_AVATAR_SIZE}
    - {L_MAX_AVATAR_SIZE_EXPLAIN} -
    x
    {L_AVATAR_STORAGE_PATH}
    {L_AVATAR_STORAGE_PATH_EXPLAIN}
    {L_AVATAR_GALLERY_PATH}
    {L_AVATAR_GALLERY_PATH_EXPLAIN}
    {L_COPPA_SETTINGS}
    {L_COPPA_FAX}
    {L_COPPA_MAIL}
    {L_COPPA_MAIL_EXPLAIN}
    {L_EMAIL_SETTINGS}
    {L_ADMIN_EMAIL}
    {L_EMAIL_SIG}
    {L_EMAIL_SIG_EXPLAIN}
    {L_USE_SMTP}
    {L_USE_SMTP_EXPLAIN}
    {L_YES}   {L_NO}
    {L_SMTP_SERVER}
    {L_SMTP_USERNAME}
    {L_SMTP_USERNAME_EXPLAIN}
    {L_SMTP_PASSWORD}
    {L_SMTP_PASSWORD_EXPLAIN}
    {S_HIDDEN_FIELDS}   -
    - -
    diff --git a/phpBB2/templates/Helius/admin/category_edit_body.tpl b/phpBB2/templates/Helius/admin/category_edit_body.tpl deleted file mode 100644 index b159a10..0000000 --- a/phpBB2/templates/Helius/admin/category_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_EDIT_CATEGORY}

    - -

    {L_EDIT_CATEGORY_EXPLAIN}

    - -
    - - - - - - - - - - - -
    {L_EDIT_CATEGORY}
    {L_CATEGORY}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2/templates/Helius/admin/confirm_body.tpl b/phpBB2/templates/Helius/admin/confirm_body.tpl deleted file mode 100644 index 376480c..0000000 --- a/phpBB2/templates/Helius/admin/confirm_body.tpl +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - -
    {MESSAGE_TITLE}

    {MESSAGE_TEXT}

    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2/templates/Helius/admin/db_utils_backup_body.tpl b/phpBB2/templates/Helius/admin/db_utils_backup_body.tpl deleted file mode 100644 index 208624f..0000000 --- a/phpBB2/templates/Helius/admin/db_utils_backup_body.tpl +++ /dev/null @@ -1,33 +0,0 @@ - -

    {L_DATABASE_BACKUP}

    - -

    {L_BACKUP_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BACKUP_OPTIONS}
    {L_FULL_BACKUP}
    {L_STRUCTURE_BACKUP}
    {L_DATA_BACKUP}
    {L_ADDITIONAL_TABLES}
    {L_GZIP_COMPRESS}{L_NO}  {L_YES}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/Helius/admin/db_utils_restore_body.tpl b/phpBB2/templates/Helius/admin/db_utils_restore_body.tpl deleted file mode 100644 index 6c87461..0000000 --- a/phpBB2/templates/Helius/admin/db_utils_restore_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_DATABASE_RESTORE}

    - -

    {L_RESTORE_EXPLAIN}

    - -
    - - - - - - -
    {L_SELECT_FILE}
       {S_HIDDEN_FIELDS} 
    diff --git a/phpBB2/templates/Helius/admin/disallow_body.tpl b/phpBB2/templates/Helius/admin/disallow_body.tpl deleted file mode 100644 index c518e66..0000000 --- a/phpBB2/templates/Helius/admin/disallow_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_DISALLOW_TITLE}

    - -

    {L_DISALLOW_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_ADD_DISALLOW}
    {L_USERNAME}
    {L_ADD_EXPLAIN}
     
    {L_DELETE_DISALLOW}
    {L_USERNAME}
    {L_DELETE_EXPLAIN}
    {S_DISALLOW_SELECT} 
     
    diff --git a/phpBB2/templates/Helius/admin/forum_admin_body.tpl b/phpBB2/templates/Helius/admin/forum_admin_body.tpl deleted file mode 100644 index f62582f..0000000 --- a/phpBB2/templates/Helius/admin/forum_admin_body.tpl +++ /dev/null @@ -1,39 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_TITLE}
    {catrow.CAT_DESC}{L_EDIT}{L_DELETE}{L_MOVE_UP} {L_MOVE_DOWN} 
    {catrow.forumrow.FORUM_NAME}
    {catrow.forumrow.FORUM_DESC}
    {catrow.forumrow.NUM_TOPICS}{catrow.forumrow.NUM_POSTS}{L_EDIT}{L_DELETE}{L_MOVE_UP}
    {L_MOVE_DOWN}
    {L_RESYNC}
    diff --git a/phpBB2/templates/Helius/admin/forum_delete_body.tpl b/phpBB2/templates/Helius/admin/forum_delete_body.tpl deleted file mode 100644 index 8151718..0000000 --- a/phpBB2/templates/Helius/admin/forum_delete_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_FORUM_DELETE}

    - -

    {L_FORUM_DELETE_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - -
    {L_FORUM_DELETE}
    {L_FORUM_NAME}{NAME}
    {L_MOVE_CONTENTS}{S_SELECT_TO}
    {S_HIDDEN_FIELDS}
    -
    diff --git a/phpBB2/templates/Helius/admin/forum_edit_body.tpl b/phpBB2/templates/Helius/admin/forum_edit_body.tpl deleted file mode 100644 index 0fca787..0000000 --- a/phpBB2/templates/Helius/admin/forum_edit_body.tpl +++ /dev/null @@ -1,50 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_SETTINGS}
    {L_FORUM_NAME}
    {L_FORUM_DESCRIPTION}
    {L_CATEGORY}
    {L_FORUM_STATUS}
    {L_AUTO_PRUNE} - - - - - - - - - - - - -
    {L_ENABLED}
    {L_PRUNE_DAYS}  {L_DAYS}
    {L_PRUNE_FREQ}  {L_DAYS}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2/templates/Helius/admin/forum_prune_body.tpl b/phpBB2/templates/Helius/admin/forum_prune_body.tpl deleted file mode 100644 index fcd5fe7..0000000 --- a/phpBB2/templates/Helius/admin/forum_prune_body.tpl +++ /dev/null @@ -1,22 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_FORUM_PRUNE_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - -
    {L_FORUM_PRUNE}
    {S_PRUNE_DATA}
    {S_HIDDEN_VARS} - -
    -
    diff --git a/phpBB2/templates/Helius/admin/forum_prune_result_body.tpl b/phpBB2/templates/Helius/admin/forum_prune_result_body.tpl deleted file mode 100644 index 42fc100..0000000 --- a/phpBB2/templates/Helius/admin/forum_prune_result_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_PRUNE_RESULT}

    - - - - - - - - - - - - - - -
    {L_FORUM}{L_TOPICS_PRUNED}{L_POSTS_PRUNED}
    {prune_results.FORUM_NAME}{prune_results.FORUM_TOPICS}{prune_results.FORUM_POSTS}
    - -
    diff --git a/phpBB2/templates/Helius/admin/forum_prune_select_body.tpl b/phpBB2/templates/Helius/admin/forum_prune_select_body.tpl deleted file mode 100644 index 95787d8..0000000 --- a/phpBB2/templates/Helius/admin/forum_prune_select_body.tpl +++ /dev/null @@ -1,12 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -
    - - - - - - - -
    {L_SELECT_FORUM}
    {S_FORUMS_SELECT}   
    diff --git a/phpBB2/templates/Helius/admin/group_edit_body.tpl b/phpBB2/templates/Helius/admin/group_edit_body.tpl deleted file mode 100644 index 864b951..0000000 --- a/phpBB2/templates/Helius/admin/group_edit_body.tpl +++ /dev/null @@ -1,56 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_EDIT_DELETE}
    {L_ITEMS_REQUIRED}
    {L_GROUP_NAME}: - -
    {L_GROUP_DESCRIPTION}: - -
    {L_GROUP_MODERATOR}:  
    {L_GROUP_STATUS}: - {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}
    {L_DELETE_MODERATOR} -
    - {L_DELETE_MODERATOR_EXPLAIN}
    - - {L_YES}
    {L_GROUP_DELETE}: - - {L_GROUP_DELETE_CHECK}
    - -    - -
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/Helius/admin/group_select_body.tpl b/phpBB2/templates/Helius/admin/group_select_body.tpl deleted file mode 100644 index 62e5139..0000000 --- a/phpBB2/templates/Helius/admin/group_select_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -

    {L_GROUP_EXPLAIN}

    - -
    - - - - - - - - - - - - -
    {L_GROUP_SELECT}
    {S_GROUP_SELECT}   
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/Helius/admin/index.htm b/phpBB2/templates/Helius/admin/index.htm deleted file mode 100644 index 7575902..0000000 --- a/phpBB2/templates/Helius/admin/index.htm +++ /dev/null @@ -1,13 +0,0 @@ - - -Style by phpBBStyles.com - - - - - -This phpBB style is designed by phpBBStyles.com.
    -See readme.txt for details. - - - \ No newline at end of file diff --git a/phpBB2/templates/Helius/admin/index_body.tpl b/phpBB2/templates/Helius/admin/index_body.tpl deleted file mode 100644 index f7ede53..0000000 --- a/phpBB2/templates/Helius/admin/index_body.tpl +++ /dev/null @@ -1,86 +0,0 @@ - -

    {L_WELCOME}

    - -

    {L_ADMIN_INTRO}

    - -

    {L_FORUM_STATS}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_STATISTIC}{L_VALUE}{L_STATISTIC}{L_VALUE}
    {L_NUMBER_POSTS}:{NUMBER_OF_POSTS}{L_POSTS_PER_DAY}:{POSTS_PER_DAY}
    {L_NUMBER_TOPICS}:{NUMBER_OF_TOPICS}{L_TOPICS_PER_DAY}:{TOPICS_PER_DAY}
    {L_NUMBER_USERS}:{NUMBER_OF_USERS}{L_USERS_PER_DAY}:{USERS_PER_DAY}
    {L_BOARD_STARTED}:{START_DATE}{L_AVATAR_DIR_SIZE}:{AVATAR_DIR_SIZE}
    {L_DB_SIZE}:{DB_SIZE}{L_GZIP_COMPRESSION}:{GZIP_COMPRESSION}
    - -

    {L_VERSION_INFORMATION}

    - -{VERSION_INFO} - -
    - -

    {L_WHO_IS_ONLINE}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_STARTED}  {L_LAST_UPDATE}  {L_FORUM_LOCATION}  {L_IP_ADDRESS} 
     {reg_user_row.USERNAME}  {reg_user_row.STARTED}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION}  {reg_user_row.IP_ADDRESS} 
    .
     {guest_user_row.USERNAME}  {guest_user_row.STARTED}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION}  {guest_user_row.IP_ADDRESS} 
    - -
    diff --git a/phpBB2/templates/Helius/admin/index_frameset.tpl b/phpBB2/templates/Helius/admin/index_frameset.tpl deleted file mode 100644 index c3c734a..0000000 --- a/phpBB2/templates/Helius/admin/index_frameset.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - -phpBB Administration - - - - - - - - - - <body bgcolor="#FFFFFF" text="#000000"> - <p>Sorry, your browser doesn't seem to support frames</p> - </body> - - \ No newline at end of file diff --git a/phpBB2/templates/Helius/admin/index_navigate.tpl b/phpBB2/templates/Helius/admin/index_navigate.tpl deleted file mode 100644 index f1aa03a..0000000 --- a/phpBB2/templates/Helius/admin/index_navigate.tpl +++ /dev/null @@ -1,34 +0,0 @@ - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_ADMIN}
    {L_ADMIN_INDEX}
    {L_FORUM_INDEX}
    {L_PREVIEW_FORUM}
    {catrow.ADMIN_CATEGORY}
    {catrow.modulerow.ADMIN_MODULE} -
    -
    - -
    diff --git a/phpBB2/templates/Helius/admin/page_footer.tpl b/phpBB2/templates/Helius/admin/page_footer.tpl deleted file mode 100644 index 55a8470..0000000 --- a/phpBB2/templates/Helius/admin/page_footer.tpl +++ /dev/null @@ -1,34 +0,0 @@ - - - -
    Powered by phpBB {PHPBB_VERSION} © 2001-2004 phpBB Group
    Style by phpBBStyles.com
    {TRANSLATION_INFO}
    - - - \ No newline at end of file diff --git a/phpBB2/templates/Helius/admin/page_header.tpl b/phpBB2/templates/Helius/admin/page_header.tpl deleted file mode 100644 index 968143d..0000000 --- a/phpBB2/templates/Helius/admin/page_header.tpl +++ /dev/null @@ -1,21 +0,0 @@ - - - -{META} - - - -{SITENAME} - {L_PHPBB_ADMIN} - - - -
    For support for this phpBB Style visit phpBBStyles.com

    diff --git a/phpBB2/templates/Helius/admin/ranks_edit_body.tpl b/phpBB2/templates/Helius/admin/ranks_edit_body.tpl deleted file mode 100644 index 0296ddb..0000000 --- a/phpBB2/templates/Helius/admin/ranks_edit_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - - - - -
    {L_RANKS_TITLE}
    {L_RANK_TITLE}:
    {L_RANK_SPECIAL}{L_YES}    {L_NO}
    {L_RANK_MINIMUM}:
    {L_RANK_IMAGE}:
    - {L_RANK_IMAGE_EXPLAIN}

    {IMAGE_DISPLAY}
      
    -{S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/Helius/admin/ranks_list_body.tpl b/phpBB2/templates/Helius/admin/ranks_list_body.tpl deleted file mode 100644 index 3444a24..0000000 --- a/phpBB2/templates/Helius/admin/ranks_list_body.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - -
    {L_RANK}{L_RANK_MINIMUM}{L_SPECIAL_RANK}{L_EDIT}{L_DELETE}
    {ranks.RANK}{ranks.RANK_MIN}{ranks.SPECIAL_RANK}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2/templates/Helius/admin/smile_edit_body.tpl b/phpBB2/templates/Helius/admin/smile_edit_body.tpl deleted file mode 100644 index b9a7bcd..0000000 --- a/phpBB2/templates/Helius/admin/smile_edit_body.tpl +++ /dev/null @@ -1,34 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - - - -
    - - - - - - - - - - - - - - - - - - -
    {L_SMILEY_CONFIG}
    {L_SMILEY_CODE}
    {L_SMILEY_URL}    
    {L_SMILEY_EMOTION}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/Helius/admin/smile_import_body.tpl b/phpBB2/templates/Helius/admin/smile_import_body.tpl deleted file mode 100644 index dcea5dc..0000000 --- a/phpBB2/templates/Helius/admin/smile_import_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_SMILEY_IMPORT}
    {L_SELECT_LBL}{S_SMILE_SELECT}
    {L_DEL_EXISTING}
    {L_CONFLICTS}
    {L_REPLACE_EXISTING}   {L_KEEP_EXISTING}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/Helius/admin/smile_list_body.tpl b/phpBB2/templates/Helius/admin/smile_list_body.tpl deleted file mode 100644 index 4f644df..0000000 --- a/phpBB2/templates/Helius/admin/smile_list_body.tpl +++ /dev/null @@ -1,25 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - -
    {L_CODE}{L_SMILE}{L_EMOT}{L_ACTION}
    {smiles.CODE}{smiles.CODE}{smiles.EMOT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}    
    diff --git a/phpBB2/templates/Helius/admin/styles_addnew_body.tpl b/phpBB2/templates/Helius/admin/styles_addnew_body.tpl deleted file mode 100644 index 80f5df1..0000000 --- a/phpBB2/templates/Helius/admin/styles_addnew_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_ADD_TEXT}

    - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_ACTION}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_INSTALL}
    diff --git a/phpBB2/templates/Helius/admin/styles_edit_body.tpl b/phpBB2/templates/Helius/admin/styles_edit_body.tpl deleted file mode 100644 index 0198c0e..0000000 --- a/phpBB2/templates/Helius/admin/styles_edit_body.tpl +++ /dev/null @@ -1,246 +0,0 @@ - -

    {L_THEMES_TITLE}

    - -

    {L_THEMES_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_THEME_SETTINGS}
    {L_THEME_NAME}:
    {L_TEMPLATE}:{S_TEMPLATE_SELECT}
    {L_THEME_ELEMENT}{L_VALUE}{L_SIMPLE_NAME}
    {L_STYLESHEET}:
    {L_STYLESHEET_EXPLAIN}
     
    {L_BACKGROUND_IMAGE}: 
    {L_BACKGROUND_COLOR}: 
    {L_BODY_TEXT_COLOR}: 
    {L_BODY_LINK_COLOR}: 
    {L_BODY_VLINK_COLOR}: 
    {L_BODY_ALINK_COLOR}: 
    {L_BODY_HLINK_COLOR}: 
    {L_TR_COLOR1}: -
    {L_TR_COLOR2}: -
    {L_TR_COLOR3}: -
    {L_TR_CLASS1}: -
    {L_TR_CLASS2}: -
    {L_TR_CLASS3}: -
    {L_TH_COLOR1}: -
    {L_TH_COLOR2}: -
    {L_TH_COLOR3}: -
    {L_TH_CLASS1}: -
    {L_TH_CLASS2}: -
    {L_TH_CLASS3}: -
    {L_TD_COLOR1}: -
    {L_TD_COLOR2}: -
    {L_TD_COLOR3}: -
    {L_TD_CLASS1}: -
    {L_TD_CLASS2}: -
    {L_TD_CLASS3}: -
    {L_FONTFACE_1}: -
    {L_FONTFACE_2}: -
    {L_FONTFACE_3}: -
    {L_FONTSIZE_1}: -
    {L_FONTSIZE_2}: -
    {L_FONTSIZE_3}: -
    {L_FONTCOLOR_1}: -
    {L_FONTCOLOR_2}: -
    {L_FONTCOLOR_3}: -
    {L_SPAN_CLASS_1}: -
    {L_SPAN_CLASS_2}: -
    {L_SPAN_CLASS_3}: -
    {S_HIDDEN_FIELDS} -
    - -
    diff --git a/phpBB2/templates/Helius/admin/styles_exporter.tpl b/phpBB2/templates/Helius/admin/styles_exporter.tpl deleted file mode 100644 index 1a34342..0000000 --- a/phpBB2/templates/Helius/admin/styles_exporter.tpl +++ /dev/null @@ -1,14 +0,0 @@ - -

    {L_STYLE_EXPORTER}

    - -

    {L_EXPORTER_EXPLAIN}

    - -
    - - - - - - - -
    {L_TEMPLATE_SELECT}
    {S_TEMPLATE_SELECT}   
    diff --git a/phpBB2/templates/Helius/admin/styles_list_body.tpl b/phpBB2/templates/Helius/admin/styles_list_body.tpl deleted file mode 100644 index 1c7afa5..0000000 --- a/phpBB2/templates/Helius/admin/styles_list_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_TEXT}

    - - - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_EDIT}{L_DELETE}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2/templates/Helius/admin/user_avatar_gallery.tpl b/phpBB2/templates/Helius/admin/user_avatar_gallery.tpl deleted file mode 100644 index e68c795..0000000 --- a/phpBB2/templates/Helius/admin/user_avatar_gallery.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}:  
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/Helius/admin/user_ban_body.tpl b/phpBB2/templates/Helius/admin/user_ban_body.tpl deleted file mode 100644 index f520ec6..0000000 --- a/phpBB2/templates/Helius/admin/user_ban_body.tpl +++ /dev/null @@ -1,54 +0,0 @@ - -

    {L_BAN_TITLE}

    - -

    {L_BAN_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BAN_USER}
    {L_USERNAME}: {S_HIDDEN_FIELDS}
    {L_UNBAN_USER}
    {L_USERNAME}:
    {L_UNBAN_USER_EXPLAIN}
    {S_UNBAN_USERLIST_SELECT}
    {L_BAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_BAN_IP_EXPLAIN}
    {L_UNBAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_UNBAN_IP_EXPLAIN}
    {S_UNBAN_IPLIST_SELECT}
    {L_BAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_BAN_EMAIL_EXPLAIN}
    {L_UNBAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_UNBAN_EMAIL_EXPLAIN}
    {S_UNBAN_EMAILLIST_SELECT}
      
    - -

    {L_BAN_EXPLAIN_WARN}

    diff --git a/phpBB2/templates/Helius/admin/user_edit_body.tpl b/phpBB2/templates/Helius/admin/user_edit_body.tpl deleted file mode 100644 index e50a6d0..0000000 --- a/phpBB2/templates/Helius/admin/user_edit_body.tpl +++ /dev/null @@ -1,310 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -{ERROR_BOX} - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER} - -
    {L_AIM} - -
    {L_MESSENGER} - -
    {L_YAHOO} - -
    {L_WEBSITE} - -
    {L_LOCATION} - -
    {L_OCCUPATION} - -
    {L_INTERESTS} - -
    {L_SIGNATURE}
    - {L_SIGNATURE_EXPLAIN}
    -
    - {HTML_STATUS}
    - {BBCODE_STATUS}
    - {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL} - - {L_YES}   - - {L_NO}
    {L_HIDE_USER} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES} - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}{LANGUAGE_SELECT}
    {L_BOARD_STYLE}{STYLE_SELECT}
    {L_TIMEZONE}{TIMEZONE_SELECT}
    {L_DATE_FORMAT}
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    - {AVATAR}
    - -  {L_DELETE_AVATAR}
    -
    {L_UPLOAD_AVATAR_FILE} - - -
    {L_UPLOAD_AVATAR_URL} - -
    {L_LINK_REMOTE_AVATAR} - -
    {L_AVATAR_GALLERY} - -
     
    {L_SPECIAL}
    {L_SPECIAL_EXPLAIN}
    {L_USER_ACTIVE} - - {L_YES}   - - {L_NO}
    {L_ALLOW_PM} - - {L_YES}   - - {L_NO}
    {L_ALLOW_AVATAR} - - {L_YES}   - - {L_NO}
    {L_SELECT_RANK}
    {L_DELETE_USER}? - - {L_DELETE_USER_EXPLAIN}
    {S_HIDDEN_FIELDS} - -    - -
    diff --git a/phpBB2/templates/Helius/admin/user_email_body.tpl b/phpBB2/templates/Helius/admin/user_email_body.tpl deleted file mode 100644 index 11914e8..0000000 --- a/phpBB2/templates/Helius/admin/user_email_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_EMAIL_TITLE}

    - -

    {L_EMAIL_EXPLAIN}

    - -
    - -{ERROR_BOX} - - - - - - - - - - - - - - - - - - -
    {L_COMPOSE}
    {L_RECIPIENTS}{S_GROUP_SELECT}
    {L_EMAIL_SUBJECT}
    {L_EMAIL_MSG} - -
    - -
    diff --git a/phpBB2/templates/Helius/admin/user_select_body.tpl b/phpBB2/templates/Helius/admin/user_select_body.tpl deleted file mode 100644 index d19cec5..0000000 --- a/phpBB2/templates/Helius/admin/user_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - -
    {L_USER_SELECT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/Helius/admin/words_edit_body.tpl b/phpBB2/templates/Helius/admin/words_edit_body.tpl deleted file mode 100644 index 48fe3b2..0000000 --- a/phpBB2/templates/Helius/admin/words_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - -
    {L_WORD_CENSOR}
    {L_WORD}
    {L_REPLACEMENT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/Helius/admin/words_list_body.tpl b/phpBB2/templates/Helius/admin/words_list_body.tpl deleted file mode 100644 index 710bd04..0000000 --- a/phpBB2/templates/Helius/admin/words_list_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - - - -
    {L_WORD}{L_REPLACEMENT}{L_ACTION}
    {words.WORD}{words.REPLACEMENT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/Helius/agreement.tpl b/phpBB2/templates/Helius/agreement.tpl deleted file mode 100644 index a5b9fed..0000000 --- a/phpBB2/templates/Helius/agreement.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - -
    {L_INDEX}
    - - -{TPL_HDR1}{SITENAME} - {REGISTRATION}{TPL_HDR2} - - - -
    - - - -

    {AGREEMENT}



    {TPL_FTR} \ No newline at end of file diff --git a/phpBB2/templates/Helius/bbcode.tpl b/phpBB2/templates/Helius/bbcode.tpl deleted file mode 100644 index 38e13ad..0000000 --- a/phpBB2/templates/Helius/bbcode.tpl +++ /dev/null @@ -1,60 +0,0 @@ -
      -
    - -
      -
    - -
  • - - - - - - - - - -
    {USERNAME} {L_WROTE}:
    - - - - - - - - -
    {L_QUOTE}:
    -
    - - - - - - - - - - -
    {L_CODE}:
    -
    - - - - - - - - - - - - - - - - - - - - -{DESCRIPTION} - -{EMAIL} diff --git a/phpBB2/templates/Helius/confirm_body.tpl b/phpBB2/templates/Helius/confirm_body.tpl deleted file mode 100644 index 096c3ac..0000000 --- a/phpBB2/templates/Helius/confirm_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - - - - - -
    - -{TPL_HDR1}{MESSAGE_TITLE}{TPL_HDR2} - - - -

    {MESSAGE_TEXT}

    {S_HIDDEN_FIELDS}  
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2/templates/Helius/error_body.tpl b/phpBB2/templates/Helius/error_body.tpl deleted file mode 100644 index fbf69f4..0000000 --- a/phpBB2/templates/Helius/error_body.tpl +++ /dev/null @@ -1,17 +0,0 @@ - -{TPL_HDR1} {TPL_HDR2} - - - -
    - - - - - - - - - -
     
    {ERROR_MESSAGE}
     
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2/templates/Helius/faq_body.tpl b/phpBB2/templates/Helius/faq_body.tpl deleted file mode 100644 index 5f23aa1..0000000 --- a/phpBB2/templates/Helius/faq_body.tpl +++ /dev/null @@ -1,41 +0,0 @@ - - - - - -
    - -{TPL_HDR1}{L_FAQ_TITLE}{TPL_HDR2} - - - -
    - - {faq_block_link.BLOCK_TITLE}
    - - {faq_block_link.faq_row_link.FAQ_LINK}
    - -
    - -
    {TPL_FTR} -
    - - -{TPL_HDR1}{faq_block.BLOCK_TITLE}{TPL_HDR2} - - - - - - - - -
    {faq_block.faq_row.FAQ_QUESTION}
    {faq_block.faq_row.FAQ_ANSWER}
    {L_BACK_TO_TOP}
    -
    - - - - - - -
    {S_TIMEZONE}

    {JUMPBOX}
    diff --git a/phpBB2/templates/Helius/formIE.css b/phpBB2/templates/Helius/formIE.css deleted file mode 100644 index fde54cb..0000000 --- a/phpBB2/templates/Helius/formIE.css +++ /dev/null @@ -1,19 +0,0 @@ -/* Fancy form styles for IE */ - -input, textarea, select { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -input { text-indent : 2px; } - -input.button { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -.postbody { line-height: 18px} diff --git a/phpBB2/templates/Helius/groupcp_info_body.tpl b/phpBB2/templates/Helius/groupcp_info_body.tpl deleted file mode 100644 index c616efb..0000000 --- a/phpBB2/templates/Helius/groupcp_info_body.tpl +++ /dev/null @@ -1,128 +0,0 @@ - -
    - - - - - -
    - -{TPL_HDR1}{L_GROUP_INFORMATION}{TPL_HDR2} - - - - - - - - - - - - - - - - - - -
    {L_GROUP_NAME}:{GROUP_NAME}
    {L_GROUP_DESC}:{GROUP_DESC}
    {L_GROUP_MEMBERSHIP}:{GROUP_DETAILS}    - - - - - - -
    {L_GROUP_TYPE}: {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}   
    {TPL_FTR} -
    -{S_HIDDEN_FIELDS} -
    - - -
    -{TPL_HDR1}{L_GROUP_MODERATOR}{TPL_HDR2} - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {MOD_PM_IMG} {MOD_USERNAME}{MOD_POSTS}{MOD_FROM}{MOD_EMAIL_IMG}{MOD_WWW_IMG}  
    {TPL_FTR} -
    - -{TPL_HDR1}{L_GROUP_MEMBERS}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {member_row.PM_IMG} {member_row.USERNAME}{member_row.POSTS} {member_row.FROM}{member_row.EMAIL_IMG} {member_row.WWW_IMG} - - - -
    {L_NO_MEMBERS}
    {L_HIDDEN_MEMBERS}
    - -
    {TPL_FTR} - - - - - - -
    - -

    - - {PAGE_NUMBER}
    {S_TIMEZONE}
    {PAGINATION}
    - -{PENDING_USER_BOX} - -{S_HIDDEN_FIELDS}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/Helius/groupcp_pending_info.tpl b/phpBB2/templates/Helius/groupcp_pending_info.tpl deleted file mode 100644 index 59b7714..0000000 --- a/phpBB2/templates/Helius/groupcp_pending_info.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -{TPL_HDR1}{L_PENDING_MEMBERS}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {pending_members_row.PM_IMG} {pending_members_row.USERNAME}{pending_members_row.POSTS}{pending_members_row.FROM}{pending_members_row.EMAIL_IMG}{pending_members_row.WWW_IMG}
    - -   - -
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2/templates/Helius/groupcp_user_body.tpl b/phpBB2/templates/Helius/groupcp_user_body.tpl deleted file mode 100644 index f4a8e29..0000000 --- a/phpBB2/templates/Helius/groupcp_user_body.tpl +++ /dev/null @@ -1,73 +0,0 @@ - - - - - -
    {L_INDEX}
    - - -{TPL_HDR1}{L_GROUP_MEMBERSHIP_DETAILS}{TPL_HDR2} - - - - - - - - - - - - -
    {L_YOU_BELONG_GROUPS} - - - - -
    {GROUP_MEMBER_SELECT} - {S_HIDDEN_FIELDS} -
    {L_PENDING_GROUPS} - - - - - -
    {GROUP_PENDING_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {TPL_FTR} -
    - - - -{TPL_HDR1}{L_JOIN_A_GROUP}{TPL_HDR2} - - - - -
    {L_SELECT_A_GROUP} - - - - - -
    {GROUP_LIST_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {TPL_FTR} -
    - - - - - - -
    {S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/Helius/images/addform.html b/phpBB2/templates/Helius/images/addform.html deleted file mode 100644 index 8903207..0000000 --- a/phpBB2/templates/Helius/images/addform.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/phpBB2/templates/Helius/images/bg_cat.gif b/phpBB2/templates/Helius/images/bg_cat.gif deleted file mode 100644 index ffdc0ee..0000000 Binary files a/phpBB2/templates/Helius/images/bg_cat.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/bg_cat2.gif b/phpBB2/templates/Helius/images/bg_cat2.gif deleted file mode 100644 index d142e2d..0000000 Binary files a/phpBB2/templates/Helius/images/bg_cat2.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/bg_cat4.gif b/phpBB2/templates/Helius/images/bg_cat4.gif deleted file mode 100644 index 7034856..0000000 Binary files a/phpBB2/templates/Helius/images/bg_cat4.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/bg_main.gif b/phpBB2/templates/Helius/images/bg_main.gif deleted file mode 100644 index 3f65ef4..0000000 Binary files a/phpBB2/templates/Helius/images/bg_main.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/bottom_center.gif b/phpBB2/templates/Helius/images/bottom_center.gif deleted file mode 100644 index db623cc..0000000 Binary files a/phpBB2/templates/Helius/images/bottom_center.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/bottom_left.gif b/phpBB2/templates/Helius/images/bottom_left.gif deleted file mode 100644 index 72708e6..0000000 Binary files a/phpBB2/templates/Helius/images/bottom_left.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/bottom_right.gif b/phpBB2/templates/Helius/images/bottom_right.gif deleted file mode 100644 index bb20603..0000000 Binary files a/phpBB2/templates/Helius/images/bottom_right.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/btn_bg.gif b/phpBB2/templates/Helius/images/btn_bg.gif deleted file mode 100644 index f8e2ee2..0000000 Binary files a/phpBB2/templates/Helius/images/btn_bg.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/btn_left.gif b/phpBB2/templates/Helius/images/btn_left.gif deleted file mode 100644 index c7ec2a1..0000000 Binary files a/phpBB2/templates/Helius/images/btn_left.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/btn_right.gif b/phpBB2/templates/Helius/images/btn_right.gif deleted file mode 100644 index d3202c5..0000000 Binary files a/phpBB2/templates/Helius/images/btn_right.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/cellpic.gif b/phpBB2/templates/Helius/images/cellpic.gif deleted file mode 100644 index 47457ef..0000000 Binary files a/phpBB2/templates/Helius/images/cellpic.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/cellpic1.gif b/phpBB2/templates/Helius/images/cellpic1.gif deleted file mode 100644 index 715b8d4..0000000 Binary files a/phpBB2/templates/Helius/images/cellpic1.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/cellpic2.jpg b/phpBB2/templates/Helius/images/cellpic2.jpg deleted file mode 100644 index a0ca7e8..0000000 Binary files a/phpBB2/templates/Helius/images/cellpic2.jpg and /dev/null differ diff --git a/phpBB2/templates/Helius/images/cellpic3.gif b/phpBB2/templates/Helius/images/cellpic3.gif deleted file mode 100644 index ecf70e1..0000000 Binary files a/phpBB2/templates/Helius/images/cellpic3.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/folder.gif b/phpBB2/templates/Helius/images/folder.gif deleted file mode 100644 index ad8af67..0000000 Binary files a/phpBB2/templates/Helius/images/folder.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/folder_announce.gif b/phpBB2/templates/Helius/images/folder_announce.gif deleted file mode 100644 index ad8af67..0000000 Binary files a/phpBB2/templates/Helius/images/folder_announce.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/folder_announce_new.gif b/phpBB2/templates/Helius/images/folder_announce_new.gif deleted file mode 100644 index 6276c26..0000000 Binary files a/phpBB2/templates/Helius/images/folder_announce_new.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/folder_big.gif b/phpBB2/templates/Helius/images/folder_big.gif deleted file mode 100644 index 2946e65..0000000 Binary files a/phpBB2/templates/Helius/images/folder_big.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/folder_hot.gif b/phpBB2/templates/Helius/images/folder_hot.gif deleted file mode 100644 index 7d307f1..0000000 Binary files a/phpBB2/templates/Helius/images/folder_hot.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/folder_lock.gif b/phpBB2/templates/Helius/images/folder_lock.gif deleted file mode 100644 index 1b477ce..0000000 Binary files a/phpBB2/templates/Helius/images/folder_lock.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/folder_lock_new.gif b/phpBB2/templates/Helius/images/folder_lock_new.gif deleted file mode 100644 index b03adc4..0000000 Binary files a/phpBB2/templates/Helius/images/folder_lock_new.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/folder_locked_big.gif b/phpBB2/templates/Helius/images/folder_locked_big.gif deleted file mode 100644 index 187e4a4..0000000 Binary files a/phpBB2/templates/Helius/images/folder_locked_big.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/folder_new.gif b/phpBB2/templates/Helius/images/folder_new.gif deleted file mode 100644 index 6276c26..0000000 Binary files a/phpBB2/templates/Helius/images/folder_new.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/folder_new_big.gif b/phpBB2/templates/Helius/images/folder_new_big.gif deleted file mode 100644 index 4e9c91f..0000000 Binary files a/phpBB2/templates/Helius/images/folder_new_big.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/folder_new_hot.gif b/phpBB2/templates/Helius/images/folder_new_hot.gif deleted file mode 100644 index 4c4036a..0000000 Binary files a/phpBB2/templates/Helius/images/folder_new_hot.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/folder_sticky.gif b/phpBB2/templates/Helius/images/folder_sticky.gif deleted file mode 100644 index ad8af67..0000000 Binary files a/phpBB2/templates/Helius/images/folder_sticky.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/folder_sticky_new.gif b/phpBB2/templates/Helius/images/folder_sticky_new.gif deleted file mode 100644 index 6276c26..0000000 Binary files a/phpBB2/templates/Helius/images/folder_sticky_new.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/icon_aim.gif b/phpBB2/templates/Helius/images/icon_aim.gif deleted file mode 100644 index cc381d2..0000000 Binary files a/phpBB2/templates/Helius/images/icon_aim.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/icon_delete.gif b/phpBB2/templates/Helius/images/icon_delete.gif deleted file mode 100644 index 98dd64e..0000000 Binary files a/phpBB2/templates/Helius/images/icon_delete.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/icon_icq_add.gif b/phpBB2/templates/Helius/images/icon_icq_add.gif deleted file mode 100644 index 3ef1fe2..0000000 Binary files a/phpBB2/templates/Helius/images/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/icon_ip.gif b/phpBB2/templates/Helius/images/icon_ip.gif deleted file mode 100644 index f777926..0000000 Binary files a/phpBB2/templates/Helius/images/icon_ip.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/icon_latest_reply.gif b/phpBB2/templates/Helius/images/icon_latest_reply.gif deleted file mode 100644 index fa04fb2..0000000 Binary files a/phpBB2/templates/Helius/images/icon_latest_reply.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/icon_minipost.gif b/phpBB2/templates/Helius/images/icon_minipost.gif deleted file mode 100644 index e68e0fa..0000000 Binary files a/phpBB2/templates/Helius/images/icon_minipost.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/icon_minipost_new.gif b/phpBB2/templates/Helius/images/icon_minipost_new.gif deleted file mode 100644 index e8e1df0..0000000 Binary files a/phpBB2/templates/Helius/images/icon_minipost_new.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/icon_msnm.gif b/phpBB2/templates/Helius/images/icon_msnm.gif deleted file mode 100644 index ce1a938..0000000 Binary files a/phpBB2/templates/Helius/images/icon_msnm.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/icon_newest_reply.gif b/phpBB2/templates/Helius/images/icon_newest_reply.gif deleted file mode 100644 index 24f8a27..0000000 Binary files a/phpBB2/templates/Helius/images/icon_newest_reply.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/icon_yim.gif b/phpBB2/templates/Helius/images/icon_yim.gif deleted file mode 100644 index 379b3b6..0000000 Binary files a/phpBB2/templates/Helius/images/icon_yim.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/index.htm b/phpBB2/templates/Helius/images/index.htm deleted file mode 100644 index 7575902..0000000 --- a/phpBB2/templates/Helius/images/index.htm +++ /dev/null @@ -1,13 +0,0 @@ - - -Style by phpBBStyles.com - - - - - -This phpBB style is designed by phpBBStyles.com.
    -See readme.txt for details. - - - \ No newline at end of file diff --git a/phpBB2/templates/Helius/images/lang_english/btn_faq.gif b/phpBB2/templates/Helius/images/lang_english/btn_faq.gif deleted file mode 100644 index 62e17cc..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_faq.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_faq_on.gif b/phpBB2/templates/Helius/images/lang_english/btn_faq_on.gif deleted file mode 100644 index d0bb3d8..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_faq_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_groups.gif b/phpBB2/templates/Helius/images/lang_english/btn_groups.gif deleted file mode 100644 index 4a82b8f..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_groups.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_groups_on.gif b/phpBB2/templates/Helius/images/lang_english/btn_groups_on.gif deleted file mode 100644 index 089a3b9..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_groups_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_index.gif b/phpBB2/templates/Helius/images/lang_english/btn_index.gif deleted file mode 100644 index c47adbb..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_index.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_index_on.gif b/phpBB2/templates/Helius/images/lang_english/btn_index_on.gif deleted file mode 100644 index af0d2e2..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_index_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_login.gif b/phpBB2/templates/Helius/images/lang_english/btn_login.gif deleted file mode 100644 index cffd402..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_login.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_login_on.gif b/phpBB2/templates/Helius/images/lang_english/btn_login_on.gif deleted file mode 100644 index df4a302..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_login_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_logout.gif b/phpBB2/templates/Helius/images/lang_english/btn_logout.gif deleted file mode 100644 index 9babd64..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_logout.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_logout_on.gif b/phpBB2/templates/Helius/images/lang_english/btn_logout_on.gif deleted file mode 100644 index 68b8289..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_logout_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_pm.gif b/phpBB2/templates/Helius/images/lang_english/btn_pm.gif deleted file mode 100644 index a1f23fd..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_pm.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_pm_on.gif b/phpBB2/templates/Helius/images/lang_english/btn_pm_on.gif deleted file mode 100644 index 99e8ee1..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_pm_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_profile.gif b/phpBB2/templates/Helius/images/lang_english/btn_profile.gif deleted file mode 100644 index 7906a8d..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_profile.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_profile_on.gif b/phpBB2/templates/Helius/images/lang_english/btn_profile_on.gif deleted file mode 100644 index 649293b..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_profile_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_register.gif b/phpBB2/templates/Helius/images/lang_english/btn_register.gif deleted file mode 100644 index 59e8057..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_register.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_register_on.gif b/phpBB2/templates/Helius/images/lang_english/btn_register_on.gif deleted file mode 100644 index 6f74375..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_register_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_search.gif b/phpBB2/templates/Helius/images/lang_english/btn_search.gif deleted file mode 100644 index 14b9b4c..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_search.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_search_on.gif b/phpBB2/templates/Helius/images/lang_english/btn_search_on.gif deleted file mode 100644 index 27bb422..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_search_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_users.gif b/phpBB2/templates/Helius/images/lang_english/btn_users.gif deleted file mode 100644 index 69c4e13..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_users.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/btn_users_on.gif b/phpBB2/templates/Helius/images/lang_english/btn_users_on.gif deleted file mode 100644 index 424e06f..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/btn_users_on.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/icon_edit.gif b/phpBB2/templates/Helius/images/lang_english/icon_edit.gif deleted file mode 100644 index d47c75d..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/icon_edit.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/icon_email.gif b/phpBB2/templates/Helius/images/lang_english/icon_email.gif deleted file mode 100644 index 4fb9360..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/icon_email.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/icon_pm.gif b/phpBB2/templates/Helius/images/lang_english/icon_pm.gif deleted file mode 100644 index 62e0ba8..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/icon_pm.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/icon_profile.gif b/phpBB2/templates/Helius/images/lang_english/icon_profile.gif deleted file mode 100644 index 558cfcb..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/icon_profile.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/icon_quote.gif b/phpBB2/templates/Helius/images/lang_english/icon_quote.gif deleted file mode 100644 index 938a134..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/icon_quote.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/icon_search.gif b/phpBB2/templates/Helius/images/lang_english/icon_search.gif deleted file mode 100644 index 80d551a..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/icon_search.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/icon_www.gif b/phpBB2/templates/Helius/images/lang_english/icon_www.gif deleted file mode 100644 index 699f632..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/icon_www.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/msg_newpost.gif b/phpBB2/templates/Helius/images/lang_english/msg_newpost.gif deleted file mode 100644 index 23dba89..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/msg_newpost.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/post.gif b/phpBB2/templates/Helius/images/lang_english/post.gif deleted file mode 100644 index cc0b645..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/post.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/reply-locked.gif b/phpBB2/templates/Helius/images/lang_english/reply-locked.gif deleted file mode 100644 index 2b1c365..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/reply-locked.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/lang_english/reply.gif b/phpBB2/templates/Helius/images/lang_english/reply.gif deleted file mode 100644 index ce20aa7..0000000 Binary files a/phpBB2/templates/Helius/images/lang_english/reply.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/logo1.gif b/phpBB2/templates/Helius/images/logo1.gif deleted file mode 100644 index a0c5843..0000000 Binary files a/phpBB2/templates/Helius/images/logo1.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/logo2.gif b/phpBB2/templates/Helius/images/logo2.gif deleted file mode 100644 index bd6b494..0000000 Binary files a/phpBB2/templates/Helius/images/logo2.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/logo_bg.gif b/phpBB2/templates/Helius/images/logo_bg.gif deleted file mode 100644 index 8225bbd..0000000 Binary files a/phpBB2/templates/Helius/images/logo_bg.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/logo_phpBB_med.gif b/phpBB2/templates/Helius/images/logo_phpBB_med.gif deleted file mode 100644 index 3d84f94..0000000 Binary files a/phpBB2/templates/Helius/images/logo_phpBB_med.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/msg_inbox.gif b/phpBB2/templates/Helius/images/msg_inbox.gif deleted file mode 100644 index a6ad3d5..0000000 Binary files a/phpBB2/templates/Helius/images/msg_inbox.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/msg_outbox.gif b/phpBB2/templates/Helius/images/msg_outbox.gif deleted file mode 100644 index 14f7469..0000000 Binary files a/phpBB2/templates/Helius/images/msg_outbox.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/msg_savebox.gif b/phpBB2/templates/Helius/images/msg_savebox.gif deleted file mode 100644 index 2a8d080..0000000 Binary files a/phpBB2/templates/Helius/images/msg_savebox.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/msg_sentbox.gif b/phpBB2/templates/Helius/images/msg_sentbox.gif deleted file mode 100644 index fc8746a..0000000 Binary files a/phpBB2/templates/Helius/images/msg_sentbox.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/post_bg.gif b/phpBB2/templates/Helius/images/post_bg.gif deleted file mode 100644 index ae88cf1..0000000 Binary files a/phpBB2/templates/Helius/images/post_bg.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/post_bottom.gif b/phpBB2/templates/Helius/images/post_bottom.gif deleted file mode 100644 index 36e5571..0000000 Binary files a/phpBB2/templates/Helius/images/post_bottom.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/post_corner.gif b/phpBB2/templates/Helius/images/post_corner.gif deleted file mode 100644 index 1e21447..0000000 Binary files a/phpBB2/templates/Helius/images/post_corner.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/post_right.gif b/phpBB2/templates/Helius/images/post_right.gif deleted file mode 100644 index 5bc1e43..0000000 Binary files a/phpBB2/templates/Helius/images/post_right.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/spacer.gif b/phpBB2/templates/Helius/images/spacer.gif deleted file mode 100644 index 5bfd67a..0000000 Binary files a/phpBB2/templates/Helius/images/spacer.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/top_center.gif b/phpBB2/templates/Helius/images/top_center.gif deleted file mode 100644 index 62dd737..0000000 Binary files a/phpBB2/templates/Helius/images/top_center.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/top_left.gif b/phpBB2/templates/Helius/images/top_left.gif deleted file mode 100644 index 50cf243..0000000 Binary files a/phpBB2/templates/Helius/images/top_left.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/top_right.gif b/phpBB2/templates/Helius/images/top_right.gif deleted file mode 100644 index 104c47a..0000000 Binary files a/phpBB2/templates/Helius/images/top_right.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/topic_delete.gif b/phpBB2/templates/Helius/images/topic_delete.gif deleted file mode 100644 index 2d504d9..0000000 Binary files a/phpBB2/templates/Helius/images/topic_delete.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/topic_lock.gif b/phpBB2/templates/Helius/images/topic_lock.gif deleted file mode 100644 index 9e65621..0000000 Binary files a/phpBB2/templates/Helius/images/topic_lock.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/topic_move.gif b/phpBB2/templates/Helius/images/topic_move.gif deleted file mode 100644 index eb0037b..0000000 Binary files a/phpBB2/templates/Helius/images/topic_move.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/topic_split.gif b/phpBB2/templates/Helius/images/topic_split.gif deleted file mode 100644 index 11d11ec..0000000 Binary files a/phpBB2/templates/Helius/images/topic_split.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/topic_unlock.gif b/phpBB2/templates/Helius/images/topic_unlock.gif deleted file mode 100644 index d86ada2..0000000 Binary files a/phpBB2/templates/Helius/images/topic_unlock.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/vote_lcap.gif b/phpBB2/templates/Helius/images/vote_lcap.gif deleted file mode 100644 index a19fce1..0000000 Binary files a/phpBB2/templates/Helius/images/vote_lcap.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/vote_rcap.gif b/phpBB2/templates/Helius/images/vote_rcap.gif deleted file mode 100644 index 1e9755b..0000000 Binary files a/phpBB2/templates/Helius/images/vote_rcap.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/voting_bar.gif b/phpBB2/templates/Helius/images/voting_bar.gif deleted file mode 100644 index 5148b3c..0000000 Binary files a/phpBB2/templates/Helius/images/voting_bar.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/images/whosonline.gif b/phpBB2/templates/Helius/images/whosonline.gif deleted file mode 100644 index d55f4f2..0000000 Binary files a/phpBB2/templates/Helius/images/whosonline.gif and /dev/null differ diff --git a/phpBB2/templates/Helius/index.htm b/phpBB2/templates/Helius/index.htm deleted file mode 100644 index 711f4f8..0000000 --- a/phpBB2/templates/Helius/index.htm +++ /dev/null @@ -1,13 +0,0 @@ - - -Style by phpBBStyles.com - - - - - -This phpBB style is designed by phpBBStyles.com.
    -See readme.txt for details. - - - \ No newline at end of file diff --git a/phpBB2/templates/Helius/index_body.tpl b/phpBB2/templates/Helius/index_body.tpl deleted file mode 100644 index e17138f..0000000 --- a/phpBB2/templates/Helius/index_body.tpl +++ /dev/null @@ -1,110 +0,0 @@ - -vars['PRIVATE_MESSAGE_INFO'])) -{ - $this->vars['PRIVATE_MESSAGE_INFO'] = '' . $this->vars['PRIVATE_MESSAGE_INFO'] . ''; -} - -?> - - - - - - -
    - - {PRIVATE_MESSAGE_INFO}
    - {LAST_VISIT_DATE}
    - - {CURRENT_TIME}
    - {S_TIMEZONE}
    -
    {L_INDEX}
    - - {L_SEARCH_NEW}
    {L_SEARCH_SELF}
    - - {L_SEARCH_UNANSWERED}
    - {L_MARK_FORUMS_READ}
    - - -{TPL_HDR1} {catrow.CAT_DESC} {TPL_HDR2}
    - - - - - - - - - - - - - - - -
     {L_FORUM}  {L_TOPICS}  {L_POSTS}  {L_LASTPOST} 
    {catrow.forumrow.L_FORUM_FOLDER_ALT} {catrow.forumrow.FORUM_NAME}
    -
    {catrow.forumrow.FORUM_DESC}
    -
    {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
    {catrow.forumrow.TOPICS}{catrow.forumrow.POSTS} {catrow.forumrow.LAST_POST}
    {TPL_FTR} - -
    - - -{TPL_HDR1} {L_WHO_IS_ONLINE} {TPL_HDR2} - - - - - - - -
    {L_WHO_IS_ONLINE}{TOTAL_POSTS}
    {TOTAL_USERS}
    {NEWEST_USER}
    -
    {TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
    {RECORD_USERS}
    {LOGGED_IN_USER_LIST}
    {L_ONLINE_EXPLAIN}
    {TPL_FTR} -
    - - -
    -{TPL_HDR1}{L_LOGIN_LOGOUT}{TPL_HDR2} - - - -
    {L_USERNAME}: - -    {L_PASSWORD}: - - -      {L_AUTO_LOGIN} - - -     - -
    {TPL_FTR} -
    -
    - - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_FORUM_LOCKED}{L_FORUM_LOCKED}
    diff --git a/phpBB2/templates/Helius/jumpbox.tpl b/phpBB2/templates/Helius/jumpbox.tpl deleted file mode 100644 index 7987347..0000000 --- a/phpBB2/templates/Helius/jumpbox.tpl +++ /dev/null @@ -1,127 +0,0 @@ - - tags. -// - -$str = $this->vars['S_JUMPBOX_SELECT']; -$options = array(); -// getting header -$pos = strpos($str, ' 0) -{ - $start = substr($str, 0, $pos); - $str = substr($str, $pos, strlen($str)); -} -else -{ - $start = 0; -} -// getting footer -$str = strrev($str); -$pos = strpos($str, strrev('')); -if($pos > 0) -{ - $end = strrev(substr($str, 0, $pos)); - $str = substr($str, $pos, strlen($str)); -} -else -{ - $end = ''; -} -$str = trim(strrev($str)); -// getting all options -while(strlen($str) > 0) -{ - $pos = strpos($str, ''); - if($pos > 0) - { - $pos += 9; - $item = trim(substr($str, 0, $pos)); - $str = trim(substr($str, $pos, strlen($str))); - } - else - { - $item = $str; - $str = ''; - } - $value = ''; - $text = ''; - $selected = false; - $pos = strpos($item, '>') + 1; - // getting text - $text = substr($item, $pos, strlen($item)); - $item = substr($item, 0, $pos); - $pos = strpos($text, '<'); - if($pos) - { - $text = substr($text, 0, $pos); - } - // checking if item is selected - if(strpos($str1, ' selected')) - { - $selected = true; - } - // getting value - $pos = strpos($item, 'value="'); - if($pos) - { - $pos += 7; - $str1 = substr($item, $pos, strlen($item)); - $pos = strpos($str1, '"'); - $value = substr($str1, 0, $pos); - } - $options[] = array( - 'text' => $text, - 'value' => $value, - 'selected' => $selected - ); -} - -$text = $start; -$group = 0; -for($i=0; $i= 2) - { - $item = $options[$i+1]; - $i+=2; - $group = true; - $text .= ''; - } - } - else - { - $text .= ''; -} -$text .= $end; -$this->vars['S_JUMPBOX_SELECT'] = $text; - -?> - - - - - - - -
    {S_JUMPBOX_SELECT}  
    \ No newline at end of file diff --git a/phpBB2/templates/Helius/login_body.tpl b/phpBB2/templates/Helius/login_body.tpl deleted file mode 100644 index 890cb99..0000000 --- a/phpBB2/templates/Helius/login_body.tpl +++ /dev/null @@ -1,42 +0,0 @@ - - - - - -
    - - -
    -{TPL_HDR1}{L_ENTER_PASSWORD}{TPL_HDR2} - - - -
    - - - - - - - - - - - - - - - - - - - - - - -
     
    {L_USERNAME}: - -
    {L_PASSWORD}: - -
    {L_AUTO_LOGIN}:
    {S_HIDDEN_FIELDS}
    {L_SEND_PASSWORD}
    {TPL_FTR} -
    diff --git a/phpBB2/templates/Helius/memberlist_body.tpl b/phpBB2/templates/Helius/memberlist_body.tpl deleted file mode 100644 index f3909d6..0000000 --- a/phpBB2/templates/Helius/memberlist_body.tpl +++ /dev/null @@ -1,48 +0,0 @@ - -
    - - - - - -
    {L_INDEX}{L_SELECT_SORT_METHOD}: {S_MODE_SELECT}  {L_ORDER} {S_ORDER_SELECT}   - -
    - -{TPL_HDR1} {TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - -
    # {L_USERNAME}{L_EMAIL}{L_FROM}{L_JOINED}{L_POSTS}{L_WEBSITE}
     {memberrow.ROW_NUMBER}  {memberrow.PM_IMG} {memberrow.USERNAME} {memberrow.EMAIL_IMG} {memberrow.FROM}{memberrow.JOINED}{memberrow.POSTS} {memberrow.WWW_IMG} 
    {TPL_FTR} - - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/Helius/message_body.tpl b/phpBB2/templates/Helius/message_body.tpl deleted file mode 100644 index d9ea058..0000000 --- a/phpBB2/templates/Helius/message_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - - - - - -
    - -{TPL_HDR1}{MESSAGE_TITLE}{TPL_HDR2} - - - -
    - - - - - - - - - -
     
    {MESSAGE_TEXT}
     
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2/templates/Helius/modcp_body.tpl b/phpBB2/templates/Helius/modcp_body.tpl deleted file mode 100644 index 6ae2472..0000000 --- a/phpBB2/templates/Helius/modcp_body.tpl +++ /dev/null @@ -1,56 +0,0 @@ - -
    - - - - -
    {L_INDEX} » {FORUM_NAME}
    - - -{TPL_HDR1}{L_MOD_CP}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - -
    {L_MOD_CP_EXPLAIN}
      {L_TOPICS}  {L_REPLIES}  {L_LASTPOST}  {L_SELECT} 
    {topicrow.L_TOPIC_FOLDER_ALT} {topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}{topicrow.REPLIES}{topicrow.LAST_POST_TIME} - -
    {S_HIDDEN_FIELDS} - -   - -   - -   - -
    {TPL_FTR} - - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    -
    - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/Helius/modcp_move.tpl b/phpBB2/templates/Helius/modcp_move.tpl deleted file mode 100644 index 71d4ae6..0000000 --- a/phpBB2/templates/Helius/modcp_move.tpl +++ /dev/null @@ -1,36 +0,0 @@ - - - - - -
    - - -
    -{TPL_HDR1}{MESSAGE_TITLE}{TPL_HDR2} - - - -
    - - - - - - - - - - -
     
    {L_MOVE_TO_FORUM}   {S_FORUM_SELECT}

    - {L_LEAVESHADOW}
    -
    - {MESSAGE_TEXT}

    -
    - {S_HIDDEN_FIELDS} - -    - -
     
    -
    {TPL_FTR} -
    diff --git a/phpBB2/templates/Helius/modcp_split.tpl b/phpBB2/templates/Helius/modcp_split.tpl deleted file mode 100644 index 4b6a70d..0000000 --- a/phpBB2/templates/Helius/modcp_split.tpl +++ /dev/null @@ -1,81 +0,0 @@ - - - - - -
    - -
    -{TPL_HDR1}{L_SPLIT_TOPIC}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SPLIT_TOPIC_EXPLAIN} -
    {L_SPLIT_SUBJECT}
    {L_SPLIT_FORUM}{S_FORUM_SELECT}
    - - - - - -
    - - - -
    -
    {L_AUTHOR}{L_MESSAGE}{L_SELECT}
    {postrow.POSTER_NAME} - - - - - - - -
    {L_POST}{L_POSTED}: - {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}
    -
    - {postrow.MESSAGE}
    -
    {postrow.S_SPLIT_CHECKBOX}
    - - - - - -
    - - - - {S_HIDDEN_FIELDS}
    -
    {TPL_FTR} - - - - - -
    {S_TIMEZONE}
    -
    diff --git a/phpBB2/templates/Helius/modcp_viewip.tpl b/phpBB2/templates/Helius/modcp_viewip.tpl deleted file mode 100644 index ec6a692..0000000 --- a/phpBB2/templates/Helius/modcp_viewip.tpl +++ /dev/null @@ -1,53 +0,0 @@ - - - - - -
    {L_INDEX}
    - -{TPL_HDR1}{L_IP_INFO}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - -
    {L_THIS_POST_IP}
    - - - - - -
     {IP} [ {POSTS} ][ {L_LOOKUP_IP} - ] 
    -
    {L_OTHER_USERS}
    - - - - - -
     {userrow.USERNAME} [ {userrow.POSTS} ]{L_SEARCH} -  
    -
    {L_OTHER_IPS}
    - - - - -
     {iprow.IP} [ {iprow.POSTS} ][ {L_LOOKUP_IP} - ] 
    {TPL_FTR} \ No newline at end of file diff --git a/phpBB2/templates/Helius/overall_footer.tpl b/phpBB2/templates/Helius/overall_footer.tpl deleted file mode 100644 index af9af9f..0000000 --- a/phpBB2/templates/Helius/overall_footer.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -

    {ADMIN_LINK}
    - -Powered by phpBB {PHPBB_VERSION} © 2001-2004 phpBB Group
    Designed for Trushkin.net | Themes Database
    {TRANSLATION_INFO}
    -
    - - - diff --git a/phpBB2/templates/Helius/overall_header.tpl b/phpBB2/templates/Helius/overall_header.tpl deleted file mode 100644 index db0a394..0000000 --- a/phpBB2/templates/Helius/overall_header.tpl +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - -{META} -{NAV_LINKS} -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - -
    - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - -
    {L_LOGIN_LOGOUT}{L_REGISTER}{L_PROFILE}{PRIVATE_MESSAGE_INFO}{L_FAQ}{L_MEMBERLIST}{L_SEARCH}{L_USERGROUPS}{L_LOGIN_LOGOUT}{L_INDEX}
    {SITE_DESCRIPTION}
    -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/phpBB2/templates/Helius/posting_preview.tpl b/phpBB2/templates/Helius/posting_preview.tpl deleted file mode 100644 index 061b814..0000000 --- a/phpBB2/templates/Helius/posting_preview.tpl +++ /dev/null @@ -1,34 +0,0 @@ -{TPL_HDR1}{L_PREVIEW}{TPL_HDR2}
    diff --git a/phpBB2/templates/Helius/posting_body.tpl b/phpBB2/templates/Helius/posting_body.tpl deleted file mode 100644 index 771335a..0000000 --- a/phpBB2/templates/Helius/posting_body.tpl +++ /dev/null @@ -1,511 +0,0 @@ - -vars['USERNAME'])) -{ - global $HTTP_COOKIE_VARS; - if(isset($HTTP_COOKIE_VARS['guest_name'])) - { - $this->vars['USERNAME'] = htmlspecialchars(stripslashes($HTTP_COOKIE_VARS['guest_name'])); - } -} -?> - - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}  
    -
    - -
    - - -
    - -{POST_PREVIEW_BOX} -{ERROR_BOX} - - - - - - -
    {L_INDEX} - - » {FORUM_NAME}
    - -{TPL_HDR1}{L_POST_A}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - -{POLLBOX} - - - -
    {L_USERNAME}
    {L_USERNAME} 
    {L_SUBJECT} - -
    - - - - - - - -
    {L_MESSAGE_BODY}

    - - - - - - - - - - - - - - - - -
    {L_EMOTICONS}
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}
    -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - - - -
    - - - - - -
     {L_FONT_COLOR}: -  {L_FONT_SIZE}: - {L_BBCODE_CLOSE_TAGS}
    -
    - -
    -
    - Add image to post -
    -
    {L_OPTIONS}
    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - {L_DISABLE_HTML}
    - - {L_DISABLE_BBCODE}
    - - {L_DISABLE_SMILIES}
    - - {L_ATTACH_SIGNATURE}
    - - {L_NOTIFY_ON_REPLY}
    - - {L_DELETE_POST}
    {S_TYPE_TOGGLE}
    -
    {S_HIDDEN_FORM_FIELDS} 
    {TPL_FTR} - - - - - -
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    - -{TOPIC_REVIEW_BOX} diff --git a/phpBB2/templates/Helius/posting_poll_body.tpl b/phpBB2/templates/Helius/posting_poll_body.tpl deleted file mode 100644 index 68ce567..0000000 --- a/phpBB2/templates/Helius/posting_poll_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -
    {L_ADD_A_POLL}
    {L_ADD_POLL_EXPLAIN}
    {L_POLL_QUESTION}
    {L_POLL_OPTION}  
    {L_POLL_OPTION}  
    {L_POLL_LENGTH} {L_DAYS}   {L_POLL_LENGTH_EXPLAIN}
    {L_POLL_DELETE}
    - - - - - - -
    - - -
    {L_POST}{L_POSTED}: {POST_DATE}
    - - - - -
    - - - - - - - - -
    - - - -




    - - - -
    {MESSAGE}
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2/templates/Helius/posting_smilies.tpl b/phpBB2/templates/Helius/posting_smilies.tpl deleted file mode 100644 index b0c482b..0000000 --- a/phpBB2/templates/Helius/posting_smilies.tpl +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - -
    - -{TPL_HDR1}{L_EMOTICONS}{TPL_HDR2} - - - - - - -
    - - - - - - - - - - - - -
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}
    {L_CLOSE_WINDOW}
    {TPL_FTR} -
    diff --git a/phpBB2/templates/Helius/posting_topic_review.tpl b/phpBB2/templates/Helius/posting_topic_review.tpl deleted file mode 100644 index 26c710e..0000000 --- a/phpBB2/templates/Helius/posting_topic_review.tpl +++ /dev/null @@ -1,36 +0,0 @@ - - -{TPL_HDR1}{L_TOPIC_REVIEW}{TPL_HDR2} - - - -
    {TPL_FTR} - diff --git a/phpBB2/templates/Helius/privmsgs_body.tpl b/phpBB2/templates/Helius/privmsgs_body.tpl deleted file mode 100644 index 42d1c8b..0000000 --- a/phpBB2/templates/Helius/privmsgs_body.tpl +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}  
    -
    - - - - - - - - - - - - - -
    {BOX_SIZE_STATUS}
    {INBOX_LIMIT_PERCENT}
    0%50%100%
    - -
    - -
    - -
    - - - - - - -
    {POST_PM_IMG} {L_INDEX}{L_DISPLAY_MESSAGES}: - - -
    - -{TPL_HDR1}{BOX_NAME}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FLAG}  {L_SUBJECT}  {L_FROM_OR_TO}  {L_DATE}  {L_MARK} 
    {listrow.L_PRIVMSG_FOLDER_ALT} {listrow.SUBJECT} {listrow.FROM}{listrow.DATE} - -
    {L_NO_MESSAGES}
    {S_HIDDEN_FIELDS} - -   - -   - -
    {TPL_FTR} - - - - - - - -
    {POST_PM_IMG}{PAGE_NUMBER}{L_MARK_ALL} :: {L_UNMARK_ALL}
    {PAGINATION}
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/Helius/privmsgs_popup.tpl b/phpBB2/templates/Helius/privmsgs_popup.tpl deleted file mode 100644 index 419c752..0000000 --- a/phpBB2/templates/Helius/privmsgs_popup.tpl +++ /dev/null @@ -1,18 +0,0 @@ - - - -
    -{TPL_HDR1} {TPL_HDR2} - - - -

    {L_MESSAGE}

    {L_CLOSE_WINDOW}

    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2/templates/Helius/privmsgs_preview.tpl b/phpBB2/templates/Helius/privmsgs_preview.tpl deleted file mode 100644 index 5c410d5..0000000 --- a/phpBB2/templates/Helius/privmsgs_preview.tpl +++ /dev/null @@ -1,45 +0,0 @@ - -{TPL_HDR1}{L_PREVIEW}{TPL_HDR2} - - - - - - -
    {POST_SUBJECT}
    - - - - -
    - - - - - - - - -
    - - - - - - - - - - - - - - - - -
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT}




    - - - -
    {MESSAGE}
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2/templates/Helius/privmsgs_read_body.tpl b/phpBB2/templates/Helius/privmsgs_read_body.tpl deleted file mode 100644 index c16af58..0000000 --- a/phpBB2/templates/Helius/privmsgs_read_body.tpl +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}
    - -
    - -
    -{S_HIDDEN_FIELDS} - - - - - -
    {REPLY_PM_IMG} {L_INDEX}
    - -{TPL_HDR1}{POST_SUBJECT}{TPL_HDR2} - - - - - - - - - -
    - - - -
    {QUOTE_PM_IMG} {EDIT_PM_IMG}
    - - - - - - - -
    - - - - - - - - -
    - - - - - - - - - - - - - - - - -
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT}




    - - - -
    {MESSAGE}
    - -
    - - - -
    {PROFILE_IMG} {PM_IMG} {EMAIL_IMG} {WWW_IMG} {AIM_IMG} {YIM_IMG} {MSN_IMG} {ICQ_IMG}
    {TPL_FTR} - - - - - - -
    {REPLY_PM_IMG}{S_TIMEZONE}
    -
    - - - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/Helius/profile_add_body.tpl b/phpBB2/templates/Helius/profile_add_body.tpl deleted file mode 100644 index e4963a3..0000000 --- a/phpBB2/templates/Helius/profile_add_body.tpl +++ /dev/null @@ -1,264 +0,0 @@ - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - -{TPL_HDR1}{L_REGISTRATION_INFO}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: *{USERNAME}
    {L_USERNAME}: *
    {L_EMAIL_ADDRESS}: *
    {L_CURRENT_PASSWORD}: *
    - {L_CONFIRM_PASSWORD_EXPLAIN}
    - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
    {L_CONFIRM_CODE_IMPAIRED}

    {CONFIRM_IMG}

    {L_CONFIRM_CODE}: *
    {L_CONFIRM_CODE_EXPLAIN}
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER}: - -
    {L_AIM}: - -
    {L_MESSENGER}: - -
    {L_YAHOO}: - -
    {L_WEBSITE}: - -
    {L_LOCATION}: - -
    {L_OCCUPATION}: - -
    {L_INTERESTS}: - -
    {L_SIGNATURE}:
    {L_SIGNATURE_EXPLAIN}

    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - -
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL}: - - {L_YES}   - - {L_NO}
    {L_HIDE_USER}: - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY}:
    - {L_NOTIFY_ON_REPLY_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG}: - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG}:
    {L_POPUP_ON_PRIVMSG_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES}: - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}:{LANGUAGE_SELECT}
    {L_BOARD_STYLE}:{STYLE_SELECT}
    {L_TIMEZONE}:{TIMEZONE_SELECT}
    {L_DATE_FORMAT}:
    - {L_DATE_FORMAT_EXPLAIN}
    - -
    {L_AVATAR_PANEL}
    - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    {AVATAR}
     {L_DELETE_AVATAR}
    {L_UPLOAD_AVATAR_FILE}:
    {L_UPLOAD_AVATAR_URL}:
    {L_UPLOAD_AVATAR_URL_EXPLAIN}
    {L_LINK_REMOTE_AVATAR}:
    {L_LINK_REMOTE_AVATAR_EXPLAIN}
    {L_AVATAR_GALLERY}:
    {S_HIDDEN_FIELDS}  
    {TPL_FTR} - - -
    diff --git a/phpBB2/templates/Helius/profile_avatar_gallery.tpl b/phpBB2/templates/Helius/profile_avatar_gallery.tpl deleted file mode 100644 index fb55da1..0000000 --- a/phpBB2/templates/Helius/profile_avatar_gallery.tpl +++ /dev/null @@ -1,34 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - -{TPL_HDR1}{L_AVATAR_GALLERY}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - -
    {L_CATEGORY}: {S_CATEGORY_SELECT} 
    {avatar_row.avatar_column.AVATAR_NAME}
    {S_HIDDEN_FIELDS} - -    - -
    {TPL_FTR} -
    diff --git a/phpBB2/templates/Helius/profile_send_email.tpl b/phpBB2/templates/Helius/profile_send_email.tpl deleted file mode 100644 index 8df5430..0000000 --- a/phpBB2/templates/Helius/profile_send_email.tpl +++ /dev/null @@ -1,71 +0,0 @@ - - - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - -{TPL_HDR1}{L_SEND_EMAIL_MSG}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - -
    {L_RECIPIENT}{USERNAME}
    {L_SUBJECT}
    {L_MESSAGE_BODY}
    {L_MESSAGE_BODY_DESC}
    {L_OPTIONS} - - - - -
    {L_CC_EMAIL}
    {S_HIDDEN_FIELDS}
    {TPL_FTR} - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/Helius/profile_send_pass.tpl b/phpBB2/templates/Helius/profile_send_pass.tpl deleted file mode 100644 index 9b65f8e..0000000 --- a/phpBB2/templates/Helius/profile_send_pass.tpl +++ /dev/null @@ -1,32 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    -{TPL_HDR1}{L_SEND_PASSWORD}{TPL_HDR2} - - - - - - - - - - - - - - -
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {S_HIDDEN_FIELDS} - -    - -
    {TPL_FTR} -
    diff --git a/phpBB2/templates/Helius/profile_view_body.tpl b/phpBB2/templates/Helius/profile_view_body.tpl deleted file mode 100644 index 5c2774e..0000000 --- a/phpBB2/templates/Helius/profile_view_body.tpl +++ /dev/null @@ -1,81 +0,0 @@ - - - - - -
    {L_INDEX}
    - -{TPL_HDR1}{L_VIEWING_PROFILE}{TPL_HDR2} - - - - - - - - - - - - - -
    {L_AVATAR}{L_ABOUT_USER} -
    {AVATAR_IMG}
    {POSTER_RANK}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_JOINED}: {JOINED}
    {L_TOTAL_POSTS}: {POSTS}
    [{POST_PERCENT_STATS} / {POST_DAY_STATS}]
    {L_SEARCH_USER_POSTS}
    {L_LOCATION}: {LOCATION}
    {L_WEBSITE}: {WWW}
    {L_OCCUPATION}: {OCCUPATION}
    {L_INTERESTS}: {INTERESTS}
    -
    {L_CONTACT} {USERNAME}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_EMAIL_ADDRESS}:{EMAIL_IMG}
    {L_PM}:{PM_IMG}
    {L_MESSENGER}:{MSN}
    {L_YAHOO}:{YIM_IMG}
    {L_AIM}:{AIM_IMG}
    {L_ICQ_NUMBER}:{ICQ_IMG}
    -
    {TPL_FTR} - - - - - -

    {JUMPBOX}
    diff --git a/phpBB2/templates/Helius/readme.txt b/phpBB2/templates/Helius/readme.txt deleted file mode 100644 index 3566746..0000000 --- a/phpBB2/templates/Helius/readme.txt +++ /dev/null @@ -1,50 +0,0 @@ -"Helius" phpBB theme -Version 1.92 -Created by Vjacheslav Trushkin (aka CyberAlien) -Demo URL: http://helius.phpbbdemo.com -phpBB version: 2.0.5 - 2.0.18 - -Right now translations are available for only these languages: -- Bulgarian -- Danish -- Dutch -- English -- Estonian -- Finnish -- French -- German -- Italian -- Norwegian -- Portuguese -- Portuguese (brazil) -- Russian -- Spanish -- Spanish (argentina) -- Swedish - -For latest list of translations and updates visit -http://www.phpbbstyles.com - - -If you need to contact me here is my contact info: - -Web: http://www.phpbbstyles.com -phpbb.com forum: CyberAlien - -..and don't ask me for images in PSD format because all images are - created using Fireworks MX, not Photoshop. - ------ -Note: ------ - -This theme is optimized for eXtreme Styles mod. I suggest you to install -it. You can download it from here: http://www.phpbbstyles.com/xs.php - ------------- -Installation: ------------- - -Just upload it to phpbb/templates/ directory. Make sure that -directory name is templates/Helius/, not templates/helius (first -letter should be in upper case) diff --git a/phpBB2/templates/Helius/search_body.tpl b/phpBB2/templates/Helius/search_body.tpl deleted file mode 100644 index b51b2f0..0000000 --- a/phpBB2/templates/Helius/search_body.tpl +++ /dev/null @@ -1,54 +0,0 @@ - -
    - - - -
    {L_INDEX}
    - -{TPL_HDR1}{L_SEARCH_QUERY}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEARCH_KEYWORDS}:
    {L_SEARCH_KEYWORDS_EXPLAIN}

    {L_SEARCH_ANY_TERMS}
    {L_SEARCH_ALL_TERMS}
    {L_SEARCH_AUTHOR}:
    {L_SEARCH_AUTHOR_EXPLAIN}
    {L_SEARCH_OPTIONS}
    {L_FORUM}: {L_SEARCH_PREVIOUS}: 
    {L_SEARCH_MESSAGE_TITLE}
    {L_SEARCH_MESSAGE_ONLY}
    {L_CATEGORY}: {L_SORT_BY}: 
    {L_SORT_ASCENDING}
    {L_SORT_DESCENDING}
     
    {L_DISPLAY_RESULTS}: {L_POSTS}{L_TOPICS}{L_RETURN_FIRST} {L_CHARACTERS}
    {S_HIDDEN_FIELDS}
    {TPL_FTR} - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/Helius/search_results_posts.tpl b/phpBB2/templates/Helius/search_results_posts.tpl deleted file mode 100644 index 3cf99db..0000000 --- a/phpBB2/templates/Helius/search_results_posts.tpl +++ /dev/null @@ -1,68 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - -
    {L_SEARCH_MATCHES}
    - - -
    -{TPL_HDR1}{searchresults.TOPIC_TITLE}{TPL_HDR2} - - - - - - -
    - - - -
    {searchresults.L_MINI_POST_ALT}{L_FORUM}: {searchresults.FORUM_NAME}   {L_POSTED}: {searchresults.POST_DATE}   {L_SUBJECT}: {searchresults.POST_SUBJECT}
    - - - - -
    - - - - - - - - -
    - - - -
    - - - - -
    {searchresults.POSTER_NAME}
     
    {L_REPLIES}: {searchresults.TOPIC_REPLIES}
    {L_VIEWS}: {searchresults.TOPIC_VIEWS}




    - - - -
    {searchresults.MESSAGE}
    {TPL_FTR} - - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/Helius/search_results_topics.tpl b/phpBB2/templates/Helius/search_results_topics.tpl deleted file mode 100644 index ef5789e..0000000 --- a/phpBB2/templates/Helius/search_results_topics.tpl +++ /dev/null @@ -1,42 +0,0 @@ - - - - - -
    {L_INDEX}
    - -{TPL_HDR1}{L_SEARCH_MATCHES}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - -
      {L_FORUM}  {L_TOPICS}  {L_AUTHOR}  {L_REPLIES}  {L_VIEWS}  {L_LASTPOST} 
    {searchresults.L_TOPIC_FOLDER_ALT}{searchresults.FORUM_NAME}{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}{searchresults.TOPIC_TITLE}
    {searchresults.GOTO_PAGE}
    {searchresults.TOPIC_AUTHOR}{searchresults.REPLIES}{searchresults.VIEWS}{searchresults.LAST_POST_TIME}
    {searchresults.LAST_POST_AUTHOR} {searchresults.LAST_POST_IMG}
    {TPL_FTR} - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/Helius/search_username.tpl b/phpBB2/templates/Helius/search_username.tpl deleted file mode 100644 index a70af25..0000000 --- a/phpBB2/templates/Helius/search_username.tpl +++ /dev/null @@ -1,29 +0,0 @@ - - - -
    - - - - -
    -{TPL_HDR1}{L_SEARCH_USERNAME}{TPL_HDR2} - - - -

     

    {L_SEARCH_EXPLAIN}
    - - {L_UPDATE_USERNAME}
     

    - -
    {L_CLOSE_WINDOW}
    {TPL_FTR} -
    -
    diff --git a/phpBB2/templates/Helius/simple_footer.tpl b/phpBB2/templates/Helius/simple_footer.tpl deleted file mode 100644 index 0ca7e2f..0000000 --- a/phpBB2/templates/Helius/simple_footer.tpl +++ /dev/null @@ -1,34 +0,0 @@ - -

    - -Powered by phpBB {PHPBB_VERSION} © 2001-2004 phpBB Group
    Designed by phpBBStyles.com for Trushkin.net
    - - - diff --git a/phpBB2/templates/Helius/simple_header.tpl b/phpBB2/templates/Helius/simple_header.tpl deleted file mode 100644 index 2973c37..0000000 --- a/phpBB2/templates/Helius/simple_header.tpl +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - -{META} -{SITENAME} :: {PAGE_TITLE} - - - - - - diff --git a/phpBB2/templates/Helius/theme_info.cfg b/phpBB2/templates/Helius/theme_info.cfg deleted file mode 100644 index 8c7e501..0000000 --- a/phpBB2/templates/Helius/theme_info.cfg +++ /dev/null @@ -1,51 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2/templates/Helius/viewforum_body.tpl b/phpBB2/templates/Helius/viewforum_body.tpl deleted file mode 100644 index 800874f..0000000 --- a/phpBB2/templates/Helius/viewforum_body.tpl +++ /dev/null @@ -1,92 +0,0 @@ - -
    - - - - - - - - - - -
    {L_MODERATOR}: {MODERATORS}
    {LOGGED_IN_USER_LIST}
    {PAGINATION}
    {L_POST_NEW_TOPIC}
    - -{TPL_HDR1}{FORUM_NAME}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_TOPICS}  {L_REPLIES}  {L_AUTHOR}  {L_VIEWS}  {L_LASTPOST} 
    {topicrow.L_TOPIC_FOLDER_ALT}{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}
    - {topicrow.GOTO_PAGE}
    {topicrow.REPLIES}{topicrow.TOPIC_AUTHOR}{topicrow.VIEWS}{topicrow.LAST_POST_TIME}
    {topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}
    {L_NO_TOPICS}
    {L_DISPLAY_TOPICS}: {S_SELECT_TOPIC_DAYS}  - -
    {TPL_FTR} - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_INDEX} » {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    -
    - - - - - -
    {JUMPBOX}
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}
    {L_NEW_POSTS_HOT}{L_NEW_POSTS_HOT}  {L_NO_NEW_POSTS_HOT}{L_NO_NEW_POSTS_HOT}
    {L_NEW_POSTS_TOPIC_LOCKED}{L_NEW_POSTS_LOCKED}  {L_NO_NEW_POSTS_TOPIC_LOCKED}{L_NO_NEW_POSTS_LOCKED}
    {S_AUTH_LIST}
    diff --git a/phpBB2/templates/Helius/viewonline_body.tpl b/phpBB2/templates/Helius/viewonline_body.tpl deleted file mode 100644 index 7bbc2ba..0000000 --- a/phpBB2/templates/Helius/viewonline_body.tpl +++ /dev/null @@ -1,53 +0,0 @@ - - - - - -
    {L_INDEX}
    - -{TPL_HDR1}{L_WHOSONLINE}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_LAST_UPDATE}  {L_FORUM_LOCATION} 
    {TOTAL_REGISTERED_USERS_ONLINE}
     {reg_user_row.USERNAME}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION} 
    .
    {TOTAL_GUEST_USERS_ONLINE}
     {guest_user_row.USERNAME}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION} 
    {TPL_FTR} - - - - - - -
    {L_ONLINE_EXPLAIN}{S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    - diff --git a/phpBB2/templates/Helius/viewtopic_body.tpl b/phpBB2/templates/Helius/viewtopic_body.tpl deleted file mode 100644 index 0f9c253..0000000 --- a/phpBB2/templates/Helius/viewtopic_body.tpl +++ /dev/null @@ -1,136 +0,0 @@ - -_tpldata['postrow.']) ) ? sizeof($this->_tpldata['postrow.']) : 0; -for ($postrow_i = 0; $postrow_i < $postrow_count; $postrow_i++) -{ - $postrow_item = &$this->_tpldata['postrow.'][$postrow_i]; - // replace username with link to user profile - if(!empty($postrow_item['PROFILE'])) - { - $postrow_item['SEARCH_IMG2'] = $postrow_item['SEARCH_IMG']; - $search = array($lang['Read_profile'], ' - - - - - - - - - - -
    - {L_INDEX} - » {FORUM_NAME} - » {TOPIC_TITLE}{PAGINATION}
    {L_POST_NEW_TOPIC}  {L_POST_REPLY_TOPIC} - {L_VIEW_PREVIOUS_TOPIC} :: {L_VIEW_NEXT_TOPIC}  -
    - -{POLL_DISPLAY} - - -
    -{TPL_HDR1}{postrow.POST_SUBJECT}{TPL_HDR2} - - - - - - - - - -
    - - - -
    {postrow.L_MINI_POST_ALT}{L_POSTED}: {postrow.POST_DATE}{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}
    - - - - - - - -
    - - - - - - - - -
    - - - -
    - - - - - - - -
    {postrow.POSTER_NAME}
    {postrow.POSTER_RANK}
    {postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}
    {postrow.POSTER_JOINED}
    {postrow.POSTER_POSTS}
    {postrow.POSTER_FROM}




    - - - -
    {postrow.MESSAGE}
    - - - -
    {postrow.EDITED_MESSAGE}{postrow.SIGNATURE}
    - - - -
    {postrow.PROFILE_IMG} {postrow.SEARCH_IMG2} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.ICQ_IMG}
    {TPL_FTR} -
    - - -{TPL_HDR1}{TOPIC_TITLE}{TPL_HDR2} - - - - - - -
    -   {L_INDEX} » {FORUM_NAME}
    - - - - - -
    - {S_AUTH_LIST} - - {S_TIMEZONE}  
    - {PAGE_NUMBER}  
    - {PAGINATION}
    - {S_WATCH_TOPIC} -
    -
    - - - - -
    {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} {JUMPBOX}
    -
    {TPL_FTR} - - - - - - -
     {L_POST_NEW_TOPIC}  {L_POST_REPLY_TOPIC}{S_TOPIC_ADMIN} 
    diff --git a/phpBB2/templates/Helius/viewtopic_poll_ballot.tpl b/phpBB2/templates/Helius/viewtopic_poll_ballot.tpl deleted file mode 100644 index 200b053..0000000 --- a/phpBB2/templates/Helius/viewtopic_poll_ballot.tpl +++ /dev/null @@ -1,29 +0,0 @@ -{TPL_HDR1}{MESSAGE_TITLE}{TPL_HDR2} - - - -

    - - - - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - -
     {poll_option.POLL_OPTION_CAPTION}
    - -
    {L_VIEW_RESULTS}
    {S_HIDDEN_FIELDS}
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2/templates/Helius/viewtopic_poll_result.tpl b/phpBB2/templates/Helius/viewtopic_poll_result.tpl deleted file mode 100644 index 219073e..0000000 --- a/phpBB2/templates/Helius/viewtopic_poll_result.tpl +++ /dev/null @@ -1,38 +0,0 @@ -{TPL_HDR1}{MESSAGE_TITLE}{TPL_HDR2} - - - -

    - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - - - - -
    {poll_option.POLL_OPTION_CAPTION} - - - - - - -
    {poll_option.POLL_OPTION_PERCENT}
    -
     {poll_option.POLL_OPTION_PERCENT} [ {poll_option.POLL_OPTION_RESULT} ]
    -
    {L_TOTAL_VOTES} : {TOTAL_VOTES}
    -
    -
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2/templates/Helius/xs.cfg b/phpBB2/templates/Helius/xs.cfg deleted file mode 100644 index 102f013..0000000 --- a/phpBB2/templates/Helius/xs.cfg +++ /dev/null @@ -1,13 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2/templates/christmas/admin/admin_message_body.tpl b/phpBB2/templates/christmas/admin/admin_message_body.tpl deleted file mode 100644 index 7431f09..0000000 --- a/phpBB2/templates/christmas/admin/admin_message_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    - - - - - - - - -
    {MESSAGE_TITLE}
    {MESSAGE_TEXT}
    - -
    diff --git a/phpBB2/templates/christmas/admin/auth_forum_body.tpl b/phpBB2/templates/christmas/admin/auth_forum_body.tpl deleted file mode 100644 index c013a2a..0000000 --- a/phpBB2/templates/christmas/admin/auth_forum_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - - - - - - - - -
    {forum_auth_titles.CELL_TITLE}
    {forum_auth_data.S_AUTH_LEVELS_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/christmas/admin/auth_select_body.tpl b/phpBB2/templates/christmas/admin/auth_select_body.tpl deleted file mode 100644 index 80ebd36..0000000 --- a/phpBB2/templates/christmas/admin/auth_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -
    - - - - - - -
    {L_AUTH_SELECT}
    {S_HIDDEN_FIELDS}{S_AUTH_SELECT}   
    diff --git a/phpBB2/templates/christmas/admin/auth_ug_body.tpl b/phpBB2/templates/christmas/admin/auth_ug_body.tpl deleted file mode 100644 index 69e4bab..0000000 --- a/phpBB2/templates/christmas/admin/auth_ug_body.tpl +++ /dev/null @@ -1,49 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_USER_OR_GROUPNAME}: {USERNAME}

    - -
    - - -

    {USER_LEVEL}

    -

    {USER_GROUP_MEMBERSHIPS}

    - - - -

    {GROUP_MEMBERSHIP}

    - - -

    {L_PERMISSIONS}

    - -

    {L_AUTH_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM}{acltype.L_UG_ACL_TYPE}{L_MODERATOR_STATUS}
    {forums.FORUM_NAME}{forums.aclvalues.S_ACL_SELECT}{forums.S_MOD_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/christmas/admin/board_config_body.tpl b/phpBB2/templates/christmas/admin/board_config_body.tpl deleted file mode 100644 index 5647487..0000000 --- a/phpBB2/templates/christmas/admin/board_config_body.tpl +++ /dev/null @@ -1,248 +0,0 @@ - -

    {L_CONFIGURATION_TITLE}

    - -

    {L_CONFIGURATION_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GENERAL_SETTINGS}
    {L_SERVER_NAME}
    {L_SERVER_PORT}
    {L_SERVER_PORT_EXPLAIN}
    {L_SCRIPT_PATH}
    {L_SCRIPT_PATH_EXPLAIN}
    {L_SITE_NAME}
    {L_SITE_NAME_EXPLAIN}
    {L_SITE_DESCRIPTION}
    {L_DISABLE_BOARD}
    {L_DISABLE_BOARD_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ACCT_ACTIVATION}{L_NONE}   {L_USER}   {L_ADMIN}
    {L_BOARD_EMAIL_FORM}
    {L_BOARD_EMAIL_FORM_EXPLAIN}
    {L_ENABLED}   {L_DISABLED}
    {L_FLOOD_INTERVAL}
    {L_FLOOD_INTERVAL_EXPLAIN}
    {L_TOPICS_PER_PAGE}
    {L_POSTS_PER_PAGE}
    {L_HOT_THRESHOLD}
    {L_DEFAULT_STYLE}{STYLE_SELECT}
    {L_OVERRIDE_STYLE}
    {L_OVERRIDE_STYLE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_DEFAULT_LANGUAGE}{LANG_SELECT}
    {L_DATE_FORMAT}
    {L_DATE_FORMAT_EXPLAIN}
    {L_SYSTEM_TIMEZONE}{TIMEZONE_SELECT}
    {L_ENABLE_GZIP} {L_YES}   {L_NO}
    {L_ENABLE_PRUNE} {L_YES}   {L_NO}
    {L_COOKIE_SETTINGS}
    {L_COOKIE_SETTINGS_EXPLAIN}
    {L_COOKIE_DOMAIN}
    {L_COOKIE_NAME}
    {L_COOKIE_PATH}
    {L_COOKIE_SECURE}
    {L_COOKIE_SECURE_EXPLAIN}
    {L_DISABLED}   {L_ENABLED}
    {L_SESSION_LENGTH}
    {L_PRIVATE_MESSAGING}
    {L_DISABLE_PRIVATE_MESSAGING}{L_ENABLED}   {L_DISABLED}
    {L_INBOX_LIMIT}
    {L_SENTBOX_LIMIT}
    {L_SAVEBOX_LIMIT}
    {L_ABILITIES_SETTINGS}
    {L_MAX_POLL_OPTIONS}
    {L_ALLOW_HTML} {L_YES}   {L_NO}
    {L_ALLOWED_TAGS}
    {L_ALLOWED_TAGS_EXPLAIN}
    {L_ALLOW_BBCODE} {L_YES}   {L_NO}
    {L_ALLOW_SMILIES} {L_YES}   {L_NO}
    {L_SMILIES_PATH}
    {L_SMILIES_PATH_EXPLAIN}
    {L_ALLOW_SIG} {L_YES}   {L_NO}
    {L_MAX_SIG_LENGTH}
    {L_MAX_SIG_LENGTH_EXPLAIN}
    {L_ALLOW_NAME_CHANGE} {L_YES}   {L_NO}
    {L_AVATAR_SETTINGS}
    {L_ALLOW_LOCAL} {L_YES}   {L_NO}
    {L_ALLOW_REMOTE}
    {L_ALLOW_REMOTE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ALLOW_UPLOAD} {L_YES}   {L_NO}
    {L_MAX_FILESIZE}
    {L_MAX_FILESIZE_EXPLAIN}
    Bytes
    {L_MAX_AVATAR_SIZE}
    - {L_MAX_AVATAR_SIZE_EXPLAIN} -
    x
    {L_AVATAR_STORAGE_PATH}
    {L_AVATAR_STORAGE_PATH_EXPLAIN}
    {L_AVATAR_GALLERY_PATH}
    {L_AVATAR_GALLERY_PATH_EXPLAIN}
    {L_COPPA_SETTINGS}
    {L_COPPA_FAX}
    {L_COPPA_MAIL}
    {L_COPPA_MAIL_EXPLAIN}
    {L_EMAIL_SETTINGS}
    {L_ADMIN_EMAIL}
    {L_EMAIL_SIG}
    {L_EMAIL_SIG_EXPLAIN}
    {L_USE_SMTP}
    {L_USE_SMTP_EXPLAIN}
    {L_YES}   {L_NO}
    {L_SMTP_SERVER}
    {L_SMTP_USERNAME}
    {L_SMTP_USERNAME_EXPLAIN}
    {L_SMTP_PASSWORD}
    {L_SMTP_PASSWORD_EXPLAIN}
    {S_HIDDEN_FIELDS}   -
    - -
    diff --git a/phpBB2/templates/christmas/admin/category_edit_body.tpl b/phpBB2/templates/christmas/admin/category_edit_body.tpl deleted file mode 100644 index 07de378..0000000 --- a/phpBB2/templates/christmas/admin/category_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_EDIT_CATEGORY}

    - -

    {L_EDIT_CATEGORY_EXPLAIN}

    - -
    - - - - - - - - - - - -
    {L_EDIT_CATEGORY}
    {L_CATEGORY}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2/templates/christmas/admin/db_utils_backup_body.tpl b/phpBB2/templates/christmas/admin/db_utils_backup_body.tpl deleted file mode 100644 index 7a96953..0000000 --- a/phpBB2/templates/christmas/admin/db_utils_backup_body.tpl +++ /dev/null @@ -1,33 +0,0 @@ - -

    {L_DATABASE_BACKUP}

    - -

    {L_BACKUP_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BACKUP_OPTIONS}
    {L_FULL_BACKUP}
    {L_STRUCTURE_BACKUP}
    {L_DATA_BACKUP}
    {L_ADDITIONAL_TABLES}
    {L_GZIP_COMPRESS}{L_NO}  {L_YES}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas/admin/db_utils_restore_body.tpl b/phpBB2/templates/christmas/admin/db_utils_restore_body.tpl deleted file mode 100644 index 6c87461..0000000 --- a/phpBB2/templates/christmas/admin/db_utils_restore_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_DATABASE_RESTORE}

    - -

    {L_RESTORE_EXPLAIN}

    - -
    - - - - - - -
    {L_SELECT_FILE}
       {S_HIDDEN_FIELDS} 
    diff --git a/phpBB2/templates/christmas/admin/disallow_body.tpl b/phpBB2/templates/christmas/admin/disallow_body.tpl deleted file mode 100644 index 37caa6b..0000000 --- a/phpBB2/templates/christmas/admin/disallow_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_DISALLOW_TITLE}

    - -

    {L_DISALLOW_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_ADD_DISALLOW}
    {L_USERNAME}
    {L_ADD_EXPLAIN}
     
    {L_DELETE_DISALLOW}
    {L_USERNAME}
    {L_DELETE_EXPLAIN}
    {S_DISALLOW_SELECT} 
     
    diff --git a/phpBB2/templates/christmas/admin/forum_admin_body.tpl b/phpBB2/templates/christmas/admin/forum_admin_body.tpl deleted file mode 100644 index 0d301c4..0000000 --- a/phpBB2/templates/christmas/admin/forum_admin_body.tpl +++ /dev/null @@ -1,39 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_TITLE}
    {catrow.CAT_DESC}{L_EDIT}{L_DELETE}{L_MOVE_UP} {L_MOVE_DOWN} 
    {catrow.forumrow.FORUM_NAME}
    {catrow.forumrow.FORUM_DESC}
    {catrow.forumrow.NUM_TOPICS}{catrow.forumrow.NUM_POSTS}{L_EDIT}{L_DELETE}{L_MOVE_UP}
    {L_MOVE_DOWN}
    {L_RESYNC}
    diff --git a/phpBB2/templates/christmas/admin/forum_delete_body.tpl b/phpBB2/templates/christmas/admin/forum_delete_body.tpl deleted file mode 100644 index 8151718..0000000 --- a/phpBB2/templates/christmas/admin/forum_delete_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_FORUM_DELETE}

    - -

    {L_FORUM_DELETE_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - -
    {L_FORUM_DELETE}
    {L_FORUM_NAME}{NAME}
    {L_MOVE_CONTENTS}{S_SELECT_TO}
    {S_HIDDEN_FIELDS}
    -
    diff --git a/phpBB2/templates/christmas/admin/forum_edit_body.tpl b/phpBB2/templates/christmas/admin/forum_edit_body.tpl deleted file mode 100644 index 0fca787..0000000 --- a/phpBB2/templates/christmas/admin/forum_edit_body.tpl +++ /dev/null @@ -1,50 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_SETTINGS}
    {L_FORUM_NAME}
    {L_FORUM_DESCRIPTION}
    {L_CATEGORY}
    {L_FORUM_STATUS}
    {L_AUTO_PRUNE} - - - - - - - - - - - - -
    {L_ENABLED}
    {L_PRUNE_DAYS}  {L_DAYS}
    {L_PRUNE_FREQ}  {L_DAYS}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2/templates/christmas/admin/forum_prune_body.tpl b/phpBB2/templates/christmas/admin/forum_prune_body.tpl deleted file mode 100644 index fcd5fe7..0000000 --- a/phpBB2/templates/christmas/admin/forum_prune_body.tpl +++ /dev/null @@ -1,22 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_FORUM_PRUNE_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - -
    {L_FORUM_PRUNE}
    {S_PRUNE_DATA}
    {S_HIDDEN_VARS} - -
    -
    diff --git a/phpBB2/templates/christmas/admin/forum_prune_result_body.tpl b/phpBB2/templates/christmas/admin/forum_prune_result_body.tpl deleted file mode 100644 index 42fc100..0000000 --- a/phpBB2/templates/christmas/admin/forum_prune_result_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_PRUNE_RESULT}

    - - - - - - - - - - - - - - -
    {L_FORUM}{L_TOPICS_PRUNED}{L_POSTS_PRUNED}
    {prune_results.FORUM_NAME}{prune_results.FORUM_TOPICS}{prune_results.FORUM_POSTS}
    - -
    diff --git a/phpBB2/templates/christmas/admin/forum_prune_select_body.tpl b/phpBB2/templates/christmas/admin/forum_prune_select_body.tpl deleted file mode 100644 index 95787d8..0000000 --- a/phpBB2/templates/christmas/admin/forum_prune_select_body.tpl +++ /dev/null @@ -1,12 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -
    - - - - - - - -
    {L_SELECT_FORUM}
    {S_FORUMS_SELECT}   
    diff --git a/phpBB2/templates/christmas/admin/group_edit_body.tpl b/phpBB2/templates/christmas/admin/group_edit_body.tpl deleted file mode 100644 index 3fd89c7..0000000 --- a/phpBB2/templates/christmas/admin/group_edit_body.tpl +++ /dev/null @@ -1,56 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_EDIT_DELETE}
    {L_ITEMS_REQUIRED}
    {L_GROUP_NAME}: - -
    {L_GROUP_DESCRIPTION}: - -
    {L_GROUP_MODERATOR}:  
    {L_GROUP_STATUS}: - {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}
    {L_DELETE_MODERATOR} -
    - {L_DELETE_MODERATOR_EXPLAIN}
    - - {L_YES}
    {L_GROUP_DELETE}: - - {L_GROUP_DELETE_CHECK}
    - -    - -
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas/admin/group_select_body.tpl b/phpBB2/templates/christmas/admin/group_select_body.tpl deleted file mode 100644 index 62e5139..0000000 --- a/phpBB2/templates/christmas/admin/group_select_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -

    {L_GROUP_EXPLAIN}

    - -
    - - - - - - - - - - - - -
    {L_GROUP_SELECT}
    {S_GROUP_SELECT}   
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas/admin/index.htm b/phpBB2/templates/christmas/admin/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2/templates/christmas/admin/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2/templates/christmas/admin/index_body.tpl b/phpBB2/templates/christmas/admin/index_body.tpl deleted file mode 100644 index e715dda..0000000 --- a/phpBB2/templates/christmas/admin/index_body.tpl +++ /dev/null @@ -1,79 +0,0 @@ - -

    {L_WELCOME}

    - -

    {L_ADMIN_INTRO}

    - -

    {L_FORUM_STATS}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_STATISTIC}{L_VALUE}{L_STATISTIC}{L_VALUE}
    {L_NUMBER_POSTS}:{NUMBER_OF_POSTS}{L_POSTS_PER_DAY}:{POSTS_PER_DAY}
    {L_NUMBER_TOPICS}:{NUMBER_OF_TOPICS}{L_TOPICS_PER_DAY}:{TOPICS_PER_DAY}
    {L_NUMBER_USERS}:{NUMBER_OF_USERS}{L_USERS_PER_DAY}:{USERS_PER_DAY}
    {L_BOARD_STARTED}:{START_DATE}{L_AVATAR_DIR_SIZE}:{AVATAR_DIR_SIZE}
    {L_DB_SIZE}:{DB_SIZE}{L_GZIP_COMPRESSION}:{GZIP_COMPRESSION}
    -

    {L_WHO_IS_ONLINE}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_STARTED}  {L_LAST_UPDATE}  {L_FORUM_LOCATION}  {L_IP_ADDRESS} 
     {reg_user_row.USERNAME}  {reg_user_row.STARTED}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION}  {reg_user_row.IP_ADDRESS} 
    .
     {guest_user_row.USERNAME}  {guest_user_row.STARTED}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION}  {guest_user_row.IP_ADDRESS} 
    - -
    diff --git a/phpBB2/templates/christmas/admin/index_frameset.tpl b/phpBB2/templates/christmas/admin/index_frameset.tpl deleted file mode 100644 index d3f3f31..0000000 --- a/phpBB2/templates/christmas/admin/index_frameset.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - -phpBB Administration - - - - - - - - - - <body bgcolor="#FFFFFF" text="#000000"> - <p>Sorry, your browser doesn't seem to support frames</p> - </body> - - \ No newline at end of file diff --git a/phpBB2/templates/christmas/admin/index_navigate.tpl b/phpBB2/templates/christmas/admin/index_navigate.tpl deleted file mode 100644 index 784f838..0000000 --- a/phpBB2/templates/christmas/admin/index_navigate.tpl +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_ADMIN}
    {L_ADMIN_INDEX}
    {L_FORUM_INDEX}
    {L_PREVIEW_FORUM}
    {catrow.ADMIN_CATEGORY}
    {catrow.modulerow.ADMIN_MODULE} -
    -
    - -
    diff --git a/phpBB2/templates/christmas/admin/page_footer.tpl b/phpBB2/templates/christmas/admin/page_footer.tpl deleted file mode 100644 index 4b45f2d..0000000 --- a/phpBB2/templates/christmas/admin/page_footer.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - -
    Powered by phpBB {PHPBB_VERSION} © 2001 phpBB Group
    {TRANSLATION_INFO}
    - - - \ No newline at end of file diff --git a/phpBB2/templates/christmas/admin/page_header.tpl b/phpBB2/templates/christmas/admin/page_header.tpl deleted file mode 100644 index 8fa72f1..0000000 --- a/phpBB2/templates/christmas/admin/page_header.tpl +++ /dev/null @@ -1,226 +0,0 @@ - - - -{META} - - - -{SITENAME} - {L_PHPBB_ADMIN} - - - - diff --git a/phpBB2/templates/christmas/admin/ranks_edit_body.tpl b/phpBB2/templates/christmas/admin/ranks_edit_body.tpl deleted file mode 100644 index cca80cb..0000000 --- a/phpBB2/templates/christmas/admin/ranks_edit_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - - - - -
    {L_RANKS_TITLE}
    {L_RANK_TITLE}:
    {L_RANK_SPECIAL}{L_YES}    {L_NO}
    {L_RANK_MINIMUM}:
    {L_RANK_IMAGE}:
    - {L_RANK_IMAGE_EXPLAIN}

    {IMAGE_DISPLAY}
      
    -{S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas/admin/ranks_list_body.tpl b/phpBB2/templates/christmas/admin/ranks_list_body.tpl deleted file mode 100644 index 3444a24..0000000 --- a/phpBB2/templates/christmas/admin/ranks_list_body.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - -
    {L_RANK}{L_RANK_MINIMUM}{L_SPECIAL_RANK}{L_EDIT}{L_DELETE}
    {ranks.RANK}{ranks.RANK_MIN}{ranks.SPECIAL_RANK}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2/templates/christmas/admin/smile_edit_body.tpl b/phpBB2/templates/christmas/admin/smile_edit_body.tpl deleted file mode 100644 index db6a6ec..0000000 --- a/phpBB2/templates/christmas/admin/smile_edit_body.tpl +++ /dev/null @@ -1,34 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - - - -
    - - - - - - - - - - - - - - - - - - -
    {L_SMILEY_CONFIG}
    {L_SMILEY_CODE}
    {L_SMILEY_URL}    
    {L_SMILEY_EMOTION}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas/admin/smile_import_body.tpl b/phpBB2/templates/christmas/admin/smile_import_body.tpl deleted file mode 100644 index dcea5dc..0000000 --- a/phpBB2/templates/christmas/admin/smile_import_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_SMILEY_IMPORT}
    {L_SELECT_LBL}{S_SMILE_SELECT}
    {L_DEL_EXISTING}
    {L_CONFLICTS}
    {L_REPLACE_EXISTING}   {L_KEEP_EXISTING}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas/admin/smile_list_body.tpl b/phpBB2/templates/christmas/admin/smile_list_body.tpl deleted file mode 100644 index 4f644df..0000000 --- a/phpBB2/templates/christmas/admin/smile_list_body.tpl +++ /dev/null @@ -1,25 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - -
    {L_CODE}{L_SMILE}{L_EMOT}{L_ACTION}
    {smiles.CODE}{smiles.CODE}{smiles.EMOT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}    
    diff --git a/phpBB2/templates/christmas/admin/styles_addnew_body.tpl b/phpBB2/templates/christmas/admin/styles_addnew_body.tpl deleted file mode 100644 index b564656..0000000 --- a/phpBB2/templates/christmas/admin/styles_addnew_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_ADD_TEXT}

    - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_ACTION}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_INSTALL}
    diff --git a/phpBB2/templates/christmas/admin/styles_edit_body.tpl b/phpBB2/templates/christmas/admin/styles_edit_body.tpl deleted file mode 100644 index e8e0f15..0000000 --- a/phpBB2/templates/christmas/admin/styles_edit_body.tpl +++ /dev/null @@ -1,246 +0,0 @@ - -

    {L_THEMES_TITLE}

    - -

    {L_THEMES_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_THEME_SETTINGS}
    {L_THEME_NAME}:
    {L_TEMPLATE}:{S_TEMPLATE_SELECT}
    {L_THEME_ELEMENT}{L_VALUE}{L_SIMPLE_NAME}
    {L_STYLESHEET}:
    Filename for CSS stylesheet to use for this theme.
     
    {L_BACKGROUND_IMAGE}: 
    {L_BACKGROUND_COLOR}: 
    {L_BODY_TEXT_COLOR}: 
    {L_BODY_LINK_COLOR}: 
    {L_BODY_VLINK_COLOR}: 
    {L_BODY_ALINK_COLOR}: 
    {L_BODY_HLINK_COLOR}: 
    {L_TR_COLOR1}: -
    {L_TR_COLOR2}: -
    {L_TR_COLOR3}: -
    {L_TR_CLASS1}: -
    {L_TR_CLASS2}: -
    {L_TR_CLASS3}: -
    {L_TH_COLOR1}: -
    {L_TH_COLOR2}: -
    {L_TH_COLOR3}: -
    {L_TH_CLASS1}: -
    {L_TH_CLASS2}: -
    {L_TH_CLASS3}: -
    {L_TD_COLOR1}: -
    {L_TD_COLOR2}: -
    {L_TD_COLOR3}: -
    {L_TD_CLASS1}: -
    {L_TD_CLASS2}: -
    {L_TD_CLASS3}: -
    {L_FONTFACE_1}: -
    {L_FONTFACE_2}: -
    {L_FONTFACE_3}: -
    {L_FONTSIZE_1}: -
    {L_FONTSIZE_2}: -
    {L_FONTSIZE_3}: -
    {L_FONTCOLOR_1}: -
    {L_FONTCOLOR_2}: -
    {L_FONTCOLOR_3}: -
    {L_SPAN_CLASS_1}: -
    {L_SPAN_CLASS_2}: -
    {L_SPAN_CLASS_3}: -
    {S_HIDDEN_FIELDS} -
    - -
    diff --git a/phpBB2/templates/christmas/admin/styles_exporter.tpl b/phpBB2/templates/christmas/admin/styles_exporter.tpl deleted file mode 100644 index 1a34342..0000000 --- a/phpBB2/templates/christmas/admin/styles_exporter.tpl +++ /dev/null @@ -1,14 +0,0 @@ - -

    {L_STYLE_EXPORTER}

    - -

    {L_EXPORTER_EXPLAIN}

    - -
    - - - - - - - -
    {L_TEMPLATE_SELECT}
    {S_TEMPLATE_SELECT}   
    diff --git a/phpBB2/templates/christmas/admin/styles_list_body.tpl b/phpBB2/templates/christmas/admin/styles_list_body.tpl deleted file mode 100644 index 52c7519..0000000 --- a/phpBB2/templates/christmas/admin/styles_list_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_TEXT}

    - - - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_EDIT}{L_DELETE}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2/templates/christmas/admin/user_avatar_gallery.tpl b/phpBB2/templates/christmas/admin/user_avatar_gallery.tpl deleted file mode 100644 index e68c795..0000000 --- a/phpBB2/templates/christmas/admin/user_avatar_gallery.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}:  
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/christmas/admin/user_ban_body.tpl b/phpBB2/templates/christmas/admin/user_ban_body.tpl deleted file mode 100644 index 7486e90..0000000 --- a/phpBB2/templates/christmas/admin/user_ban_body.tpl +++ /dev/null @@ -1,54 +0,0 @@ - -

    {L_BAN_TITLE}

    - -

    {L_BAN_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BAN_USER}
    {L_USERNAME}: {S_HIDDEN_FIELDS}
    {L_UNBAN_USER}
    {L_USERNAME}:
    {L_UNBAN_USER_EXPLAIN}
    {S_UNBAN_USERLIST_SELECT}
    {L_BAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_BAN_IP_EXPLAIN}
    {L_UNBAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_UNBAN_IP_EXPLAIN}
    {S_UNBAN_IPLIST_SELECT}
    {L_BAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_BAN_EMAIL_EXPLAIN}
    {L_UNBAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_UNBAN_EMAIL_EXPLAIN}
    {S_UNBAN_EMAILLIST_SELECT}
      
    - -

    {L_BAN_EXPLAIN_WARN}

    diff --git a/phpBB2/templates/christmas/admin/user_edit_body.tpl b/phpBB2/templates/christmas/admin/user_edit_body.tpl deleted file mode 100644 index e43a307..0000000 --- a/phpBB2/templates/christmas/admin/user_edit_body.tpl +++ /dev/null @@ -1,310 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -{ERROR_BOX} - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER} - -
    {L_AIM} - -
    {L_MESSENGER} - -
    {L_YAHOO} - -
    {L_WEBSITE} - -
    {L_LOCATION} - -
    {L_OCCUPATION} - -
    {L_INTERESTS} - -
    {L_SIGNATURE}
    - {L_SIGNATURE_EXPLAIN}
    -
    - {HTML_STATUS}
    - {BBCODE_STATUS}
    - {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL} - - {L_YES}   - - {L_NO}
    {L_HIDE_USER} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES} - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}{LANGUAGE_SELECT}
    {L_BOARD_STYLE}{STYLE_SELECT}
    {L_TIMEZONE}{TIMEZONE_SELECT}
    {L_DATE_FORMAT}
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    - {AVATAR}
    - -  {L_DELETE_AVATAR}
    -
    {L_UPLOAD_AVATAR_FILE} - - -
    {L_UPLOAD_AVATAR_URL} - -
    {L_LINK_REMOTE_AVATAR} - -
    {L_AVATAR_GALLERY} - -
     
    {L_SPECIAL}
    {L_SPECIAL_EXPLAIN}
    {L_USER_ACTIVE} - - {L_YES}   - - {L_NO}
    {L_ALLOW_PM} - - {L_YES}   - - {L_NO}
    {L_ALLOW_AVATAR} - - {L_YES}   - - {L_NO}
    {L_SELECT_RANK}
    {L_DELETE_USER}? - - {L_DELETE_USER_EXPLAIN}
    {S_HIDDEN_FIELDS} - -    - -
    diff --git a/phpBB2/templates/christmas/admin/user_email_body.tpl b/phpBB2/templates/christmas/admin/user_email_body.tpl deleted file mode 100644 index 88bac1e..0000000 --- a/phpBB2/templates/christmas/admin/user_email_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_EMAIL_TITLE}

    - -

    {L_EMAIL_EXPLAIN}

    - -
    - -{ERROR_BOX} - - - - - - - - - - - - - - - - - - -
    {L_COMPOSE}
    {L_RECIPIENTS}{S_GROUP_SELECT}
    {L_EMAIL_SUBJECT}
    {L_EMAIL_MSG} - -
    - -
    diff --git a/phpBB2/templates/christmas/admin/user_select_body.tpl b/phpBB2/templates/christmas/admin/user_select_body.tpl deleted file mode 100644 index d19cec5..0000000 --- a/phpBB2/templates/christmas/admin/user_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - -
    {L_USER_SELECT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas/admin/words_edit_body.tpl b/phpBB2/templates/christmas/admin/words_edit_body.tpl deleted file mode 100644 index 0364237..0000000 --- a/phpBB2/templates/christmas/admin/words_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - -
    {L_WORD_CENSOR}
    {L_WORD}
    {L_REPLACEMENT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas/admin/words_list_body.tpl b/phpBB2/templates/christmas/admin/words_list_body.tpl deleted file mode 100644 index 710bd04..0000000 --- a/phpBB2/templates/christmas/admin/words_list_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - - - -
    {L_WORD}{L_REPLACEMENT}{L_ACTION}
    {words.WORD}{words.REPLACEMENT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas/agreement.tpl b/phpBB2/templates/christmas/agreement.tpl deleted file mode 100644 index 4f4fd7b..0000000 --- a/phpBB2/templates/christmas/agreement.tpl +++ /dev/null @@ -1,19 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - -
    {SITENAME} - {REGISTRATION}
    - - - -

    {AGREEMENT}



    diff --git a/phpBB2/templates/christmas/bbcode.tpl b/phpBB2/templates/christmas/bbcode.tpl deleted file mode 100644 index 1e3f650..0000000 --- a/phpBB2/templates/christmas/bbcode.tpl +++ /dev/null @@ -1,60 +0,0 @@ -
      -
    - -
      -
    - -
  • - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/phpBB2/templates/christmas/posting_preview.tpl b/phpBB2/templates/christmas/posting_preview.tpl deleted file mode 100644 index 572ebf4..0000000 --- a/phpBB2/templates/christmas/posting_preview.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -
    {USERNAME} {L_WROTE}:
    - - - - - - - - -
    {L_QUOTE}:
    -
    - - - - - - - - - - -
    {L_CODE}:
    -
    - - - - - - - - - - - - - - - - - - - - -{DESCRIPTION} - -{EMAIL} diff --git a/phpBB2/templates/christmas/christmas.cfg b/phpBB2/templates/christmas/christmas.cfg deleted file mode 100644 index 39088d2..0000000 --- a/phpBB2/templates/christmas/christmas.cfg +++ /dev/null @@ -1,101 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2/templates/christmas/christmas.css b/phpBB2/templates/christmas/christmas.css deleted file mode 100644 index 0ea5c05..0000000 --- a/phpBB2/templates/christmas/christmas.css +++ /dev/null @@ -1,210 +0,0 @@ -/* - The orightinal christmas Theme for phpBB version 2+ - Created by subBlue design - http://www.subBlue.com -*/ - - - /* General page style. The scroll bar colours only visible in IE5.5+ */ -body { - background-color: #E5E5E5; - scrollbar-face-color: #DEE3E7; - scrollbar-highlight-color: #FFFFFF; - scrollbar-shadow-color: #DEE3E7; - scrollbar-3dlight-color: #D1D7DC; - scrollbar-arrow-color: #006699; - scrollbar-track-color: #EFEFEF; - scrollbar-darkshadow-color: #98AAB1; -} - -/* General font families for common tags */ -font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } -a:link,a:active,a:visited { color : #006699; } -a:hover { text-decoration: underline; color : #DD6900; } -hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} - - -/* This is the border line & background colour round the entire page */ -.bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } - -/* This is the outline round the main forum tables */ -.forumline { background-color: #FFFFFF; border: 2px #006699 solid; } - - -/* Main table cell colours and backgrounds */ -td.row1 { background-color: #EFEFEF; } -td.row2 { background-color: #DEE3E7; } -td.row3 { background-color: #D1D7DC; } - - -/* - This is for the table cell above the Topics, Post & Last posts on the index.php page - By default this is the fading out gradiated silver background. - However, you could replace this with a bitmap specific for each forum -*/ -td.rowpic { - background-color: #FFFFFF; - background-image: url(images/cellpic2.jpg); - background-repeat: repeat-y; -} - -/* Header cells - the blue and silver gradient backgrounds */ -th { - color: #FFA34F; font-size: 11px; font-weight : bold; - background-color: #006699; height: 25px; - background-image: url(images/cellpic3.gif); -} - -td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { - background-image: url(images/cellpic1.gif); - background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; -} - - -/* - Setting additional nice inner borders for the main table cells. - The names indicate which sides the border will be on. - Don't worry if you don't understand this, just ignore it :-) -*/ -td.cat,td.catHead,td.catBottom { - height: 29px; - border-width: 0px 0px 0px 0px; -} -th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { - font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } -td.row3Right,td.spaceRow { - background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } - -th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } -th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } -th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } -th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } -th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } -th.thTop { border-width: 1px 0px 0px 0px; } -th.thCornerL { border-width: 1px 0px 0px 1px; } -th.thCornerR { border-width: 1px 1px 0px 0px; } - - -/* The largest text used in the index page title and toptic title etc. */ -.maintitle,h1,h2 { - font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; - text-decoration: none; line-height : 120%; color : #000000; -} - - -/* General text */ -.gen { font-size : 12px; } -.genmed { font-size : 11px; } -.gensmall { font-size : 10px; } -.gen,.genmed,.gensmall { color : #000000; } -a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } -a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } - - -/* The register, login, search etc links at the top of the page */ -.mainmenu { font-size : 11px; color : #000000 } -a.mainmenu { text-decoration: none; color : #006699; } -a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } - - -/* Forum category titles */ -.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} -a.cattitle { text-decoration: none; color : #006699; } -a.cattitle:hover{ text-decoration: underline; } - - -/* Forum title: Text and link to the forums used in: index.php */ -.forumlink { font-weight: bold; font-size: 12px; color : #006699; } -a.forumlink { text-decoration: none; color : #006699; } -a.forumlink:hover{ text-decoration: underline; color : #DD6900; } - - -/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ -.nav { font-weight: bold; font-size: 11px; color : #000000;} -a.nav { text-decoration: none; color : #006699; } -a.nav:hover { text-decoration: underline; } - - -/* titles for the topics: could specify viewed link colour too */ -.topictitle { font-weight: bold; font-size: 11px; color : #000000; } -a.topictitle:link { text-decoration: none; color : #006699; } -a.topictitle:visited { text-decoration: none; color : #5493B4; } -a.topictitle:hover { text-decoration: underline; color : #DD6900; } - - -/* Name of poster in viewmsg.php and viewtopic.php and other places */ -.name { font-size : 11px; color : #000000;} - -/* Location, number of posts, post date etc */ -.postdetails { font-size : 10px; color : #000000; } - - -/* The content of the posts (body of text) */ -.postbody { font-size : 12px;} -a.postlink:link { text-decoration: none; color : #006699 } -a.postlink:visited { text-decoration: none; color : #5493B4; } -a.postlink:hover { text-decoration: underline; color : #DD6900} - - -/* Quote & Code blocks */ -.code { - font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; - background-color: #FAFAFA; border: #D1D7DC; border-style: solid; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - -.quote { - font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; - background-color: #FAFAFA; border: #D1D7DC; border-style: solid; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - - -/* Copyright and bottom info */ -.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} -a.copyright { color: #444444; text-decoration: none;} -a.copyright:hover { color: #000000; text-decoration: underline;} - - -/* Form elements */ -input,textarea, select { - color : #000000; - font: normal 11px Verdana, Arial, Helvetica, sans-serif; - border-color : #000000; -} - -/* The text input fields background colour */ -input.post, textarea.post, select { - background-color : #FFFFFF; -} - -input { text-indent : 2px; } - -/* The buttons used for bbCode styling in message post */ -input.button { - background-color : #EFEFEF; - color : #000000; - font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; -} - -/* The main submit button option */ -input.mainoption { - background-color : #FAFAFA; - font-weight : bold; -} - -/* None-bold submit button */ -input.liteoption { - background-color : #FAFAFA; - font-weight : normal; -} - -/* This is the line in the posting page which shows the rollover - help line. This is actually a text box, but if set to be the same - colour as the background no one will know ;) -*/ -.helpline { background-color: #DEE3E7; border-style: none; } - - -/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ -@import url("formIE.css"); diff --git a/phpBB2/templates/christmas/confirm_body.tpl b/phpBB2/templates/christmas/confirm_body.tpl deleted file mode 100644 index 318ac5a..0000000 --- a/phpBB2/templates/christmas/confirm_body.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}

    {MESSAGE_TEXT}

    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2/templates/christmas/error_body.tpl b/phpBB2/templates/christmas/error_body.tpl deleted file mode 100644 index bd7bc8d..0000000 --- a/phpBB2/templates/christmas/error_body.tpl +++ /dev/null @@ -1,18 +0,0 @@ - - - - - -
    - - - - - - - - - -
     
    {ERROR_MESSAGE}
     
    - -
    diff --git a/phpBB2/templates/christmas/faq_body.tpl b/phpBB2/templates/christmas/faq_body.tpl deleted file mode 100644 index 68bafb5..0000000 --- a/phpBB2/templates/christmas/faq_body.tpl +++ /dev/null @@ -1,52 +0,0 @@ - - - - - -
    - - - - - - - - - - - -
    {L_FAQ_TITLE}
    - - {faq_block_link.BLOCK_TITLE}
    - - {faq_block_link.faq_row_link.FAQ_LINK}
    - -
    - -
     
    - -
    - - - - - - - - - - - - - - -
    {faq_block.BLOCK_TITLE}
    {faq_block.faq_row.FAQ_QUESTION}
    {faq_block.faq_row.FAQ_ANSWER}
    {L_BACK_TO_TOP}
    - -
    - - - - - - -
    {S_TIMEZONE}

    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas/formIE.css b/phpBB2/templates/christmas/formIE.css deleted file mode 100644 index fde54cb..0000000 --- a/phpBB2/templates/christmas/formIE.css +++ /dev/null @@ -1,19 +0,0 @@ -/* Fancy form styles for IE */ - -input, textarea, select { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -input { text-indent : 2px; } - -input.button { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -.postbody { line-height: 18px} diff --git a/phpBB2/templates/christmas/groupcp_info_body.tpl b/phpBB2/templates/christmas/groupcp_info_body.tpl deleted file mode 100644 index 776eb3a..0000000 --- a/phpBB2/templates/christmas/groupcp_info_body.tpl +++ /dev/null @@ -1,128 +0,0 @@ - -
    - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_INFORMATION}
    {L_GROUP_NAME}:{GROUP_NAME}
    {L_GROUP_DESC}:{GROUP_DESC}
    {L_GROUP_MEMBERSHIP}:{GROUP_DETAILS}    - - - - - - -
    {L_GROUP_TYPE}: {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}   
    - -{S_HIDDEN_FIELDS} - -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_GROUP_MODERATOR}
    {MOD_PM_IMG} {MOD_USERNAME}{MOD_POSTS}{MOD_FROM}{MOD_EMAIL_IMG}{MOD_WWW_IMG}  
    {L_GROUP_MEMBERS}
    {member_row.PM_IMG} {member_row.USERNAME}{member_row.POSTS} {member_row.FROM} - {member_row.EMAIL_IMG} {member_row.WWW_IMG} - - - -
    {L_NO_MEMBERS}
    {L_HIDDEN_MEMBERS}
    - -
    - - - - - - -
    - -

    - - {PAGE_NUMBER}
    {S_TIMEZONE}
    {PAGINATION}
    - -{PENDING_USER_BOX} - -{S_HIDDEN_FIELDS}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas/groupcp_pending_info.tpl b/phpBB2/templates/christmas/groupcp_pending_info.tpl deleted file mode 100644 index 5b00be4..0000000 --- a/phpBB2/templates/christmas/groupcp_pending_info.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_PENDING_MEMBERS}
    {pending_members_row.PM_IMG} - {pending_members_row.USERNAME}{pending_members_row.POSTS}{pending_members_row.FROM}{pending_members_row.EMAIL_IMG}{pending_members_row.WWW_IMG}
    - -   - -
    diff --git a/phpBB2/templates/christmas/groupcp_user_body.tpl b/phpBB2/templates/christmas/groupcp_user_body.tpl deleted file mode 100644 index 906611a..0000000 --- a/phpBB2/templates/christmas/groupcp_user_body.tpl +++ /dev/null @@ -1,76 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_MEMBERSHIP_DETAILS}
    {L_YOU_BELONG_GROUPS} - - - - - -
    {GROUP_MEMBER_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_PENDING_GROUPS} - - - - - -
    {GROUP_PENDING_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_JOIN_A_GROUP}
    {L_SELECT_A_GROUP} - - - - - -
    {GROUP_LIST_SELECT} - {S_HIDDEN_FIELDS} -
    -
    - - - - - -
    {S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas/images/barre3.gif b/phpBB2/templates/christmas/images/barre3.gif deleted file mode 100644 index f9ad7e0..0000000 Binary files a/phpBB2/templates/christmas/images/barre3.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/cellpic.gif b/phpBB2/templates/christmas/images/cellpic.gif deleted file mode 100644 index 58846d0..0000000 Binary files a/phpBB2/templates/christmas/images/cellpic.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/cellpic1.gif b/phpBB2/templates/christmas/images/cellpic1.gif deleted file mode 100644 index 44b3430..0000000 Binary files a/phpBB2/templates/christmas/images/cellpic1.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/cellpic2.jpg b/phpBB2/templates/christmas/images/cellpic2.jpg deleted file mode 100644 index 764c0e5..0000000 Binary files a/phpBB2/templates/christmas/images/cellpic2.jpg and /dev/null differ diff --git a/phpBB2/templates/christmas/images/cellpic3.gif b/phpBB2/templates/christmas/images/cellpic3.gif deleted file mode 100644 index e27cdfd..0000000 Binary files a/phpBB2/templates/christmas/images/cellpic3.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/cellpic_bkg.gif b/phpBB2/templates/christmas/images/cellpic_bkg.gif deleted file mode 100644 index c806b23..0000000 Binary files a/phpBB2/templates/christmas/images/cellpic_bkg.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/created_by.jpg b/phpBB2/templates/christmas/images/created_by.jpg deleted file mode 100644 index 35f141b..0000000 Binary files a/phpBB2/templates/christmas/images/created_by.jpg and /dev/null differ diff --git a/phpBB2/templates/christmas/images/folder.gif b/phpBB2/templates/christmas/images/folder.gif deleted file mode 100644 index c2e74f5..0000000 Binary files a/phpBB2/templates/christmas/images/folder.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/folder_announce.gif b/phpBB2/templates/christmas/images/folder_announce.gif deleted file mode 100644 index b290827..0000000 Binary files a/phpBB2/templates/christmas/images/folder_announce.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/folder_announce_new.gif b/phpBB2/templates/christmas/images/folder_announce_new.gif deleted file mode 100644 index b290827..0000000 Binary files a/phpBB2/templates/christmas/images/folder_announce_new.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/folder_big.gif b/phpBB2/templates/christmas/images/folder_big.gif deleted file mode 100644 index c2e74f5..0000000 Binary files a/phpBB2/templates/christmas/images/folder_big.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/folder_hot.gif b/phpBB2/templates/christmas/images/folder_hot.gif deleted file mode 100644 index 30ed45d..0000000 Binary files a/phpBB2/templates/christmas/images/folder_hot.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/folder_lock.gif b/phpBB2/templates/christmas/images/folder_lock.gif deleted file mode 100644 index f782f79..0000000 Binary files a/phpBB2/templates/christmas/images/folder_lock.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/folder_lock_new.gif b/phpBB2/templates/christmas/images/folder_lock_new.gif deleted file mode 100644 index c1eb69c..0000000 Binary files a/phpBB2/templates/christmas/images/folder_lock_new.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/folder_locked_big.gif b/phpBB2/templates/christmas/images/folder_locked_big.gif deleted file mode 100644 index f782f79..0000000 Binary files a/phpBB2/templates/christmas/images/folder_locked_big.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/folder_new.gif b/phpBB2/templates/christmas/images/folder_new.gif deleted file mode 100644 index aea561b..0000000 Binary files a/phpBB2/templates/christmas/images/folder_new.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/folder_new_big.gif b/phpBB2/templates/christmas/images/folder_new_big.gif deleted file mode 100644 index aea561b..0000000 Binary files a/phpBB2/templates/christmas/images/folder_new_big.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/folder_new_hot.gif b/phpBB2/templates/christmas/images/folder_new_hot.gif deleted file mode 100644 index d326aef..0000000 Binary files a/phpBB2/templates/christmas/images/folder_new_hot.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/folder_sticky.gif b/phpBB2/templates/christmas/images/folder_sticky.gif deleted file mode 100644 index a5fadc9..0000000 Binary files a/phpBB2/templates/christmas/images/folder_sticky.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/folder_sticky_new.gif b/phpBB2/templates/christmas/images/folder_sticky_new.gif deleted file mode 100644 index a5fadc9..0000000 Binary files a/phpBB2/templates/christmas/images/folder_sticky_new.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/icon_delete.gif b/phpBB2/templates/christmas/images/icon_delete.gif deleted file mode 100644 index 4dd7962..0000000 Binary files a/phpBB2/templates/christmas/images/icon_delete.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/icon_latest_reply.gif b/phpBB2/templates/christmas/images/icon_latest_reply.gif deleted file mode 100644 index b45e57a..0000000 Binary files a/phpBB2/templates/christmas/images/icon_latest_reply.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/icon_login.gif b/phpBB2/templates/christmas/images/icon_login.gif deleted file mode 100644 index 1a77964..0000000 Binary files a/phpBB2/templates/christmas/images/icon_login.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/icon_logout.gif b/phpBB2/templates/christmas/images/icon_logout.gif deleted file mode 100644 index 94df93c..0000000 Binary files a/phpBB2/templates/christmas/images/icon_logout.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/icon_mini_faq.gif b/phpBB2/templates/christmas/images/icon_mini_faq.gif deleted file mode 100644 index 26f7a57..0000000 Binary files a/phpBB2/templates/christmas/images/icon_mini_faq.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/icon_mini_groups.gif b/phpBB2/templates/christmas/images/icon_mini_groups.gif deleted file mode 100644 index 8fe8d48..0000000 Binary files a/phpBB2/templates/christmas/images/icon_mini_groups.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/icon_mini_login.gif b/phpBB2/templates/christmas/images/icon_mini_login.gif deleted file mode 100644 index 30b309b..0000000 Binary files a/phpBB2/templates/christmas/images/icon_mini_login.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/icon_mini_members.gif b/phpBB2/templates/christmas/images/icon_mini_members.gif deleted file mode 100644 index 3a64e10..0000000 Binary files a/phpBB2/templates/christmas/images/icon_mini_members.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/icon_mini_message.gif b/phpBB2/templates/christmas/images/icon_mini_message.gif deleted file mode 100644 index a8c7ddf..0000000 Binary files a/phpBB2/templates/christmas/images/icon_mini_message.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/icon_mini_profile.gif b/phpBB2/templates/christmas/images/icon_mini_profile.gif deleted file mode 100644 index 8b10145..0000000 Binary files a/phpBB2/templates/christmas/images/icon_mini_profile.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/icon_mini_register.gif b/phpBB2/templates/christmas/images/icon_mini_register.gif deleted file mode 100644 index 4ac3b77..0000000 Binary files a/phpBB2/templates/christmas/images/icon_mini_register.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/icon_mini_search.gif b/phpBB2/templates/christmas/images/icon_mini_search.gif deleted file mode 100644 index b1eb8c9..0000000 Binary files a/phpBB2/templates/christmas/images/icon_mini_search.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/icon_minipost.gif b/phpBB2/templates/christmas/images/icon_minipost.gif deleted file mode 100644 index d172abb..0000000 Binary files a/phpBB2/templates/christmas/images/icon_minipost.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/icon_minipost_new.gif b/phpBB2/templates/christmas/images/icon_minipost_new.gif deleted file mode 100644 index 8ec44a1..0000000 Binary files a/phpBB2/templates/christmas/images/icon_minipost_new.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/icon_newest_reply.gif b/phpBB2/templates/christmas/images/icon_newest_reply.gif deleted file mode 100644 index eca2861..0000000 Binary files a/phpBB2/templates/christmas/images/icon_newest_reply.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/index.htm b/phpBB2/templates/christmas/images/index.htm deleted file mode 100644 index 4c5bb15..0000000 --- a/phpBB2/templates/christmas/images/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -christmas created by subBlue Design - - - - - - - - - -
    Created by subBlue Design
    - - - \ No newline at end of file diff --git a/phpBB2/templates/christmas/images/lang_english/icon_aim.gif b/phpBB2/templates/christmas/images/lang_english/icon_aim.gif deleted file mode 100644 index 3014853..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/icon_aim.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_english/icon_edit.gif b/phpBB2/templates/christmas/images/lang_english/icon_edit.gif deleted file mode 100644 index 11668a5..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/icon_edit.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_english/icon_email.gif b/phpBB2/templates/christmas/images/lang_english/icon_email.gif deleted file mode 100644 index 5f194b0..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/icon_email.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_english/icon_icq_add.gif b/phpBB2/templates/christmas/images/lang_english/icon_icq_add.gif deleted file mode 100644 index c8d2830..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_english/icon_ip.gif b/phpBB2/templates/christmas/images/lang_english/icon_ip.gif deleted file mode 100644 index 1c9923a..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/icon_ip.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_english/icon_msnm.gif b/phpBB2/templates/christmas/images/lang_english/icon_msnm.gif deleted file mode 100644 index d5507e2..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/icon_msnm.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_english/icon_pm.gif b/phpBB2/templates/christmas/images/lang_english/icon_pm.gif deleted file mode 100644 index 270e39a..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/icon_pm.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_english/icon_profile.gif b/phpBB2/templates/christmas/images/lang_english/icon_profile.gif deleted file mode 100644 index 20f1d93..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/icon_profile.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_english/icon_quote.gif b/phpBB2/templates/christmas/images/lang_english/icon_quote.gif deleted file mode 100644 index a7a9984..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/icon_quote.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_english/icon_search.gif b/phpBB2/templates/christmas/images/lang_english/icon_search.gif deleted file mode 100644 index c4df944..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/icon_search.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_english/icon_www.gif b/phpBB2/templates/christmas/images/lang_english/icon_www.gif deleted file mode 100644 index de76a44..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/icon_www.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_english/icon_yim.gif b/phpBB2/templates/christmas/images/lang_english/icon_yim.gif deleted file mode 100644 index da307c9..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/icon_yim.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_english/msg_newpost.gif b/phpBB2/templates/christmas/images/lang_english/msg_newpost.gif deleted file mode 100644 index 6fcf81c..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/msg_newpost.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_english/post.gif b/phpBB2/templates/christmas/images/lang_english/post.gif deleted file mode 100644 index d427967..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/post.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_english/reply-locked.gif b/phpBB2/templates/christmas/images/lang_english/reply-locked.gif deleted file mode 100644 index 175dae0..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/reply-locked.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_english/reply.gif b/phpBB2/templates/christmas/images/lang_english/reply.gif deleted file mode 100644 index 6c24898..0000000 Binary files a/phpBB2/templates/christmas/images/lang_english/reply.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/Thumbs.db b/phpBB2/templates/christmas/images/lang_french/Thumbs.db deleted file mode 100644 index ac35725..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/Thumbs.db and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/icon_aim.gif b/phpBB2/templates/christmas/images/lang_french/icon_aim.gif deleted file mode 100644 index 3014853..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/icon_aim.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/icon_edit.gif b/phpBB2/templates/christmas/images/lang_french/icon_edit.gif deleted file mode 100644 index 3d7f78c..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/icon_edit.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/icon_email.gif b/phpBB2/templates/christmas/images/lang_french/icon_email.gif deleted file mode 100644 index 5e3647c..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/icon_email.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/icon_icq_add.gif b/phpBB2/templates/christmas/images/lang_french/icon_icq_add.gif deleted file mode 100644 index 2b1361d..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/icon_ip.gif b/phpBB2/templates/christmas/images/lang_french/icon_ip.gif deleted file mode 100644 index 79b59fe..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/icon_ip.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/icon_msnm.gif b/phpBB2/templates/christmas/images/lang_french/icon_msnm.gif deleted file mode 100644 index 4288be0..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/icon_msnm.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/icon_pm.gif b/phpBB2/templates/christmas/images/lang_french/icon_pm.gif deleted file mode 100644 index 02375cb..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/icon_pm.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/icon_profile.gif b/phpBB2/templates/christmas/images/lang_french/icon_profile.gif deleted file mode 100644 index 777f844..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/icon_profile.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/icon_quote.gif b/phpBB2/templates/christmas/images/lang_french/icon_quote.gif deleted file mode 100644 index f67d2d6..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/icon_quote.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/icon_search.gif b/phpBB2/templates/christmas/images/lang_french/icon_search.gif deleted file mode 100644 index c4df944..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/icon_search.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/icon_www.gif b/phpBB2/templates/christmas/images/lang_french/icon_www.gif deleted file mode 100644 index de76a44..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/icon_www.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/icon_yim.gif b/phpBB2/templates/christmas/images/lang_french/icon_yim.gif deleted file mode 100644 index da307c9..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/icon_yim.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/msg_newpost.gif b/phpBB2/templates/christmas/images/lang_french/msg_newpost.gif deleted file mode 100644 index 8eaeb9c..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/msg_newpost.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/post.gif b/phpBB2/templates/christmas/images/lang_french/post.gif deleted file mode 100644 index 8eaeb9c..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/post.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/reply-locked.gif b/phpBB2/templates/christmas/images/lang_french/reply-locked.gif deleted file mode 100644 index aa12418..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/reply-locked.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/lang_french/reply.gif b/phpBB2/templates/christmas/images/lang_french/reply.gif deleted file mode 100644 index f8d596f..0000000 Binary files a/phpBB2/templates/christmas/images/lang_french/reply.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/logo_phpBB.gif b/phpBB2/templates/christmas/images/logo_phpBB.gif deleted file mode 100644 index d7b3166..0000000 Binary files a/phpBB2/templates/christmas/images/logo_phpBB.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/logo_phpBB2.gif b/phpBB2/templates/christmas/images/logo_phpBB2.gif deleted file mode 100644 index 3bd7a8e..0000000 Binary files a/phpBB2/templates/christmas/images/logo_phpBB2.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/logo_phpBB_med.gif b/phpBB2/templates/christmas/images/logo_phpBB_med.gif deleted file mode 100644 index dbda1ae..0000000 Binary files a/phpBB2/templates/christmas/images/logo_phpBB_med.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/msg_inbox.gif b/phpBB2/templates/christmas/images/msg_inbox.gif deleted file mode 100644 index 1647465..0000000 Binary files a/phpBB2/templates/christmas/images/msg_inbox.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/msg_outbox.gif b/phpBB2/templates/christmas/images/msg_outbox.gif deleted file mode 100644 index 9a7262e..0000000 Binary files a/phpBB2/templates/christmas/images/msg_outbox.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/msg_savebox.gif b/phpBB2/templates/christmas/images/msg_savebox.gif deleted file mode 100644 index 072f628..0000000 Binary files a/phpBB2/templates/christmas/images/msg_savebox.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/msg_sentbox.gif b/phpBB2/templates/christmas/images/msg_sentbox.gif deleted file mode 100644 index 5cde5b0..0000000 Binary files a/phpBB2/templates/christmas/images/msg_sentbox.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/phpbb-design.gif b/phpBB2/templates/christmas/images/phpbb-design.gif deleted file mode 100644 index a389dff..0000000 Binary files a/phpBB2/templates/christmas/images/phpbb-design.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/spacer.gif b/phpBB2/templates/christmas/images/spacer.gif deleted file mode 100644 index 5bfd67a..0000000 Binary files a/phpBB2/templates/christmas/images/spacer.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/topic_delete.gif b/phpBB2/templates/christmas/images/topic_delete.gif deleted file mode 100644 index ecff1e5..0000000 Binary files a/phpBB2/templates/christmas/images/topic_delete.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/topic_lock.gif b/phpBB2/templates/christmas/images/topic_lock.gif deleted file mode 100644 index e4d37a7..0000000 Binary files a/phpBB2/templates/christmas/images/topic_lock.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/topic_move.gif b/phpBB2/templates/christmas/images/topic_move.gif deleted file mode 100644 index 138646f..0000000 Binary files a/phpBB2/templates/christmas/images/topic_move.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/topic_split.gif b/phpBB2/templates/christmas/images/topic_split.gif deleted file mode 100644 index 9d9d893..0000000 Binary files a/phpBB2/templates/christmas/images/topic_split.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/topic_unlock.gif b/phpBB2/templates/christmas/images/topic_unlock.gif deleted file mode 100644 index 36f3d68..0000000 Binary files a/phpBB2/templates/christmas/images/topic_unlock.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/vote_lcap.gif b/phpBB2/templates/christmas/images/vote_lcap.gif deleted file mode 100644 index 22e1080..0000000 Binary files a/phpBB2/templates/christmas/images/vote_lcap.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/vote_rcap.gif b/phpBB2/templates/christmas/images/vote_rcap.gif deleted file mode 100644 index 28da06f..0000000 Binary files a/phpBB2/templates/christmas/images/vote_rcap.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/voting_bar.gif b/phpBB2/templates/christmas/images/voting_bar.gif deleted file mode 100644 index ced112d..0000000 Binary files a/phpBB2/templates/christmas/images/voting_bar.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/images/whosonline.gif b/phpBB2/templates/christmas/images/whosonline.gif deleted file mode 100644 index 3bea906..0000000 Binary files a/phpBB2/templates/christmas/images/whosonline.gif and /dev/null differ diff --git a/phpBB2/templates/christmas/index.htm b/phpBB2/templates/christmas/index.htm deleted file mode 100644 index 18ad2af..0000000 --- a/phpBB2/templates/christmas/index.htm +++ /dev/null @@ -1,20 +0,0 @@ - - -christmas created by subBlue Design - - - - - - - - - - - - -
    Created by subBlue Design

     

    -

    phpBB-design.com

    - - - \ No newline at end of file diff --git a/phpBB2/templates/christmas/index_body.tpl b/phpBB2/templates/christmas/index_body.tpl deleted file mode 100644 index 4daa0e0..0000000 --- a/phpBB2/templates/christmas/index_body.tpl +++ /dev/null @@ -1,104 +0,0 @@ - -
    - - - - - - - -
    {L_LOGIN_LOGOUT}
    {L_USERNAME}: - -    {L_PASSWORD}: - -      {L_AUTO_LOGIN} - -     - -
    -
    - - - - - - - -
    - - {LAST_VISIT_DATE}
    - - {CURRENT_TIME}
    {L_INDEX}
    - - {L_SEARCH_NEW}
    {L_SEARCH_SELF}
    - - {L_SEARCH_UNANSWERED}
    - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FORUM}  {L_TOPICS}  {L_POSTS}  {L_LASTPOST} 
    {catrow.CAT_DESC} 
    {catrow.forumrow.L_FORUM_FOLDER_ALT} {catrow.forumrow.FORUM_NAME}
    -
    {catrow.forumrow.FORUM_DESC}
    -
    {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
    {catrow.forumrow.TOPICS}{catrow.forumrow.POSTS} {catrow.forumrow.LAST_POST}
    - - - - - - -
    {L_MARK_FORUMS_READ}{S_TIMEZONE}
    - - - - - - - - - - - - -
    {L_WHO_IS_ONLINE}
    {L_WHO_IS_ONLINE}{TOTAL_POSTS}
    {TOTAL_USERS}
    {NEWEST_USER}
    -
    {TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
    {RECORD_USERS}
    {LOGGED_IN_USER_LIST}
    - - - - - -
    {L_ONLINE_EXPLAIN}
    - - -
    - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_FORUM_LOCKED}{L_FORUM_LOCKED}
    diff --git a/phpBB2/templates/christmas/install.tpl b/phpBB2/templates/christmas/install.tpl deleted file mode 100644 index 292d18b..0000000 --- a/phpBB2/templates/christmas/install.tpl +++ /dev/null @@ -1,183 +0,0 @@ - - - - - -{L_INSTALLATION} - - - - - - - - - -
    - - - - - - - - - - - - - - - -
    - - - - -
    Forum Home{L_INSTALLATION}


    - - - -
    {L_INSTRUCTION_TEXT}


    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_INITIAL_CONFIGURATION}
    {L_LANGUAGE}: {S_LANG_SELECT}
    {L_DBMS}: {S_DBMS_SELECT}
    {L_UPGRADE}:{S_UPGRADE_SELECT}
    {L_DATABASE_CONFIGURATION}
    {L_DB_HOST}:
    {L_DB_NAME}:
    {L_DB_USER}:
    {L_DB_PASSWORD}:
    {L_DB_PREFIX}:
    {L_ADMIN_CONFIGURATION}
    {L_ADMIN_EMAIL}:
    {L_SERVER_NAME}:
    {L_SERVER_PORT}:
    {L_SCRIPT_PATH}:
    {L_ADMIN_USERNAME}:
    {L_ADMIN_PASSWORD}:
    {L_ADMIN_CONFIRM_PASSWORD}:
    {L_ERROR_TITLE}
    {L_ERROR}
    {L_FTP_INFO}
    {L_FTP_PATH}
    {L_FTP_USER}
    {L_FTP_PASS}
    {L_CHOOSE_FTP}
    {L_ATTEMPT_FTP}
    {L_SEND_FILE}
    {S_HIDDEN_FIELDS}
    {L_UPGRADE_INST}
    - - -
    diff --git a/phpBB2/templates/christmas/jumpbox.tpl b/phpBB2/templates/christmas/jumpbox.tpl deleted file mode 100644 index 5cddb06..0000000 --- a/phpBB2/templates/christmas/jumpbox.tpl +++ /dev/null @@ -1,6 +0,0 @@ - -
    - - - -
    {L_JUMP_TO}: {S_JUMPBOX_SELECT} 
    diff --git a/phpBB2/templates/christmas/login_body.tpl b/phpBB2/templates/christmas/login_body.tpl deleted file mode 100644 index 7fe86be..0000000 --- a/phpBB2/templates/christmas/login_body.tpl +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - -
    - - - - - - - - -
    {L_ENTER_PASSWORD}
    - - - - - - - - - - - - - - - - - - - - -
     
    {L_USERNAME}: - -
    {L_PASSWORD}: - -
    {L_AUTO_LOGIN}:
    {S_HIDDEN_FIELDS}
    {L_SEND_PASSWORD}
    - -
    diff --git a/phpBB2/templates/christmas/memberlist_body.tpl b/phpBB2/templates/christmas/memberlist_body.tpl deleted file mode 100644 index bc27389..0000000 --- a/phpBB2/templates/christmas/memberlist_body.tpl +++ /dev/null @@ -1,55 +0,0 @@ - -
    - - - - - -
    {L_INDEX}{L_SELECT_SORT_METHOD}: {S_MODE_SELECT}  {L_ORDER} {S_ORDER_SELECT}   - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # {L_USERNAME}{L_EMAIL}{L_FROM}{L_JOINED}{L_POSTS}{L_WEBSITE}
     {memberrow.ROW_NUMBER}  {memberrow.PM_IMG} {memberrow.USERNAME} {memberrow.EMAIL_IMG} {memberrow.FROM}{memberrow.JOINED}{memberrow.POSTS} {memberrow.WWW_IMG} 
     
    - - - - -
    - - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas/message_body.tpl b/phpBB2/templates/christmas/message_body.tpl deleted file mode 100644 index 95a510e..0000000 --- a/phpBB2/templates/christmas/message_body.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - -
     
    {MESSAGE_TEXT}
     
    - -
    diff --git a/phpBB2/templates/christmas/modcp_body.tpl b/phpBB2/templates/christmas/modcp_body.tpl deleted file mode 100644 index 0d3d1f7..0000000 --- a/phpBB2/templates/christmas/modcp_body.tpl +++ /dev/null @@ -1,58 +0,0 @@ - -
    - - - - -
    {L_INDEX} -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_MOD_CP} -
    {L_MOD_CP_EXPLAIN}
      {L_TOPICS}  {L_REPLIES}  {L_LASTPOST}  {L_SELECT} 
    {topicrow.L_TOPIC_FOLDER_ALT} {topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}{topicrow.REPLIES}{topicrow.LAST_POST_TIME} - -
    {S_HIDDEN_FIELDS} - -   - -   - -   - -
    - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    -
    - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas/modcp_move.tpl b/phpBB2/templates/christmas/modcp_move.tpl deleted file mode 100644 index 38bbe35..0000000 --- a/phpBB2/templates/christmas/modcp_move.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - - -
     
    {L_MOVE_TO_FORUM}   {S_FORUM_SELECT}

    - {L_LEAVESHADOW}
    -
    - {MESSAGE_TEXT}

    -
    - {S_HIDDEN_FIELDS} - -    - -
     
    -
    -
    diff --git a/phpBB2/templates/christmas/modcp_split.tpl b/phpBB2/templates/christmas/modcp_split.tpl deleted file mode 100644 index c343a9c..0000000 --- a/phpBB2/templates/christmas/modcp_split.tpl +++ /dev/null @@ -1,87 +0,0 @@ - -
    - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SPLIT_TOPIC}
    {L_SPLIT_TOPIC_EXPLAIN}
    {L_SPLIT_SUBJECT} - -
    {L_SPLIT_FORUM}{S_FORUM_SELECT}
    - - - - - -
    - - - -
    -
    {L_AUTHOR}{L_MESSAGE}{L_SELECT}
    {postrow.POSTER_NAME} - - - - - - - -
    {L_POST}{L_POSTED}: - {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}
    -
    - {postrow.MESSAGE}
    -
    {postrow.S_SPLIT_CHECKBOX}
    .
    - - - - - -
    - - - - {S_HIDDEN_FIELDS}
    -
    - - - - -
    {S_TIMEZONE}
    -
    diff --git a/phpBB2/templates/christmas/modcp_viewip.tpl b/phpBB2/templates/christmas/modcp_viewip.tpl deleted file mode 100644 index a28deb8..0000000 --- a/phpBB2/templates/christmas/modcp_viewip.tpl +++ /dev/null @@ -1,58 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_IP_INFO}
    {L_THIS_POST_IP}
    - - - - - -
     {IP} [ {POSTS} ][ {L_LOOKUP_IP} - ] 
    -
    {L_OTHER_USERS}
    - - - - - -
     {userrow.USERNAME} [ {userrow.POSTS} ]{L_SEARCH} -  
    -
    {L_OTHER_IPS}
    - - - - -
     {iprow.IP} [ {iprow.POSTS} ][ {L_LOOKUP_IP} - ] 
    - -
    diff --git a/phpBB2/templates/christmas/overall_footer.tpl b/phpBB2/templates/christmas/overall_footer.tpl deleted file mode 100644 index 8c590c1..0000000 --- a/phpBB2/templates/christmas/overall_footer.tpl +++ /dev/null @@ -1,15 +0,0 @@ - -


    {ADMIN_LINK}
    - -Powered by phpBB - {PHPBB_VERSION} © 2001, 2002 phpBB Group
    Thème Designed by The SoSophpBB Team © 2002
    {TRANSLATION_INFO}
    -
    \ No newline at end of file diff --git a/phpBB2/templates/christmas/overall_header.tpl b/phpBB2/templates/christmas/overall_header.tpl deleted file mode 100644 index 3460a3b..0000000 --- a/phpBB2/templates/christmas/overall_header.tpl +++ /dev/null @@ -1,379 +0,0 @@ - - - - - -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - - -{META} -{NAV_LINKS} - - - - - -
    - - - -
    {L_INDEX}

    {SITE_DESCRIPTION}
      - - -
    - -
    {L_FAQ} {L_SEARCH} {L_MEMBERLIST} {L_USERGROUPS} - - {L_REGISTER} - -
    {L_PROFILE} {PRIVATE_MESSAGE_INFO} - - {L_LOGIN_LOGOUT} - - - {L_LOGIN_LOGOUT} - -
    - -
    -

    -

    diff --git a/phpBB2/templates/christmas/posting_body.tpl b/phpBB2/templates/christmas/posting_body.tpl deleted file mode 100644 index 7657e7c..0000000 --- a/phpBB2/templates/christmas/posting_body.tpl +++ /dev/null @@ -1,448 +0,0 @@ - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX_LINK}  {SENTBOX_IMG}{SENTBOX_LINK}  {OUTBOX_IMG}{OUTBOX_LINK}  {SAVEBOX_IMG}{SAVEBOX_LINK}  
    -
    - -
    - - -
    - -{POST_PREVIEW_BOX} -{ERROR_BOX} - - - - - - -
    {L_INDEX} - - -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {POLLBOX} - - - -
    {L_POST_A}
    {L_USERNAME}
    {L_USERNAME} 
    {L_SUBJECT} - -
    - - - - - - - -
    {L_MESSAGE_BODY}

    - - - - - - - - - - - - - - - - -
    {L_EMOTICONS}
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}
    -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - - - -
    - - - - - -
     {L_FONT_COLOR}: -  {L_FONT_SIZE}: - {L_BBCODE_CLOSE_TAGS}
    -
    - -
    - -
    -
    {L_OPTIONS}
    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - {L_DISABLE_HTML}
    - - {L_DISABLE_BBCODE}
    - - {L_DISABLE_SMILIES}
    - - {L_ATTACH_SIGNATURE}
    - - {L_NOTIFY_ON_REPLY}
    - - {L_DELETE_POST}
    {S_TYPE_TOGGLE}
    -
    {S_HIDDEN_FORM_FIELDS} 
    - - - - - -
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    - -{TOPIC_REVIEW_BOX} diff --git a/phpBB2/templates/christmas/posting_poll_body.tpl b/phpBB2/templates/christmas/posting_poll_body.tpl deleted file mode 100644 index 68ce567..0000000 --- a/phpBB2/templates/christmas/posting_poll_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -
    {L_ADD_A_POLL}
    {L_ADD_POLL_EXPLAIN}
    {L_POLL_QUESTION}
    {L_POLL_OPTION}  
    {L_POLL_OPTION}  
    {L_POLL_LENGTH} {L_DAYS}   {L_POLL_LENGTH_EXPLAIN}
    {L_POLL_DELETE}
    - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_POST}{L_POSTED}: {POST_DATE}     {L_POST_SUBJECT}: {POST_SUBJECT}
    - - - -
    - {MESSAGE} -
    - -
    diff --git a/phpBB2/templates/christmas/posting_smilies.tpl b/phpBB2/templates/christmas/posting_smilies.tpl deleted file mode 100644 index 72ac84c..0000000 --- a/phpBB2/templates/christmas/posting_smilies.tpl +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - -
    - - - - - - - - - -
    {L_EMOTICONS}
    - - - - - - - - - - - - -
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}

    {L_CLOSE_WINDOW}
    diff --git a/phpBB2/templates/christmas/posting_topic_review.tpl b/phpBB2/templates/christmas/posting_topic_review.tpl deleted file mode 100644 index ac77328..0000000 --- a/phpBB2/templates/christmas/posting_topic_review.tpl +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - -
    {L_TOPIC_REVIEW}
    - diff --git a/phpBB2/templates/christmas/privmsgs_body.tpl b/phpBB2/templates/christmas/privmsgs_body.tpl deleted file mode 100644 index 4a40dda..0000000 --- a/phpBB2/templates/christmas/privmsgs_body.tpl +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}  
    -
    - - - - - - - - - - - - - -
    {BOX_SIZE_STATUS}
    - - - - -
    {INBOX_LIMIT_PERCENT}
    -
    0%50%100%
    - -
    - -
    - -
    - - - - - - -
    {POST_PM_IMG} {L_INDEX}{L_DISPLAY_MESSAGES}: - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FLAG}  {L_SUBJECT}  {L_FROM_OR_TO}  {L_DATE}  {L_MARK} 
    {listrow.L_PRIVMSG_FOLDER_ALT} {listrow.SUBJECT} {listrow.FROM}{listrow.DATE} - -
    {L_NO_MESSAGES}
    {S_HIDDEN_FIELDS} - -   - -   - -
    - - - - - - - -
    {POST_PM_IMG}{PAGE_NUMBER}{L_MARK_ALL} :: {L_UNMARK_ALL}
    {PAGINATION}
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas/privmsgs_popup.tpl b/phpBB2/templates/christmas/privmsgs_popup.tpl deleted file mode 100644 index 8f1213f..0000000 --- a/phpBB2/templates/christmas/privmsgs_popup.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - -
    - - - - -

    {L_MESSAGE}

    {L_CLOSE_WINDOW}

    -
    diff --git a/phpBB2/templates/christmas/privmsgs_preview.tpl b/phpBB2/templates/christmas/privmsgs_preview.tpl deleted file mode 100644 index 84fd116..0000000 --- a/phpBB2/templates/christmas/privmsgs_preview.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT}
    {MESSAGE}
    - -
    diff --git a/phpBB2/templates/christmas/privmsgs_read_body.tpl b/phpBB2/templates/christmas/privmsgs_read_body.tpl deleted file mode 100644 index 19cb9f4..0000000 --- a/phpBB2/templates/christmas/privmsgs_read_body.tpl +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}
    - -
    - -
    - - - - - -
    {REPLY_PM_IMG} {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {BOX_NAME} :: {L_MESSAGE}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT} {QUOTE_PM_IMG} {EDIT_PM_IMG}
    {MESSAGE}
    - - - - -
    {PROFILE_IMG} {PM_IMG} {EMAIL_IMG} - {WWW_IMG} {AIM_IMG} {YIM_IMG} {MSN_IMG} 
    -
    {S_HIDDEN_FIELDS} - -   - -
    - - - - - -
    {REPLY_PM_IMG}{S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas/profile_add_body.tpl b/phpBB2/templates/christmas/profile_add_body.tpl deleted file mode 100644 index 4bca8b8..0000000 --- a/phpBB2/templates/christmas/profile_add_body.tpl +++ /dev/null @@ -1,264 +0,0 @@ - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: *{USERNAME}
    {L_USERNAME}: *
    {L_EMAIL_ADDRESS}: *
    {L_CURRENT_PASSWORD}: *
    - {L_CONFIRM_PASSWORD_EXPLAIN}
    - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER}: - -
    {L_AIM}: - -
    {L_MESSENGER}: - -
    {L_YAHOO}: - -
    {L_WEBSITE}: - -
    {L_LOCATION}: - -
    {L_OCCUPATION}: - -
    {L_INTERESTS}: - -
    {L_SIGNATURE}:
    {L_SIGNATURE_EXPLAIN}

    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL}: - - {L_YES}   - - {L_NO}
    {L_HIDE_USER}: - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY}:
    - {L_NOTIFY_ON_REPLY_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG}: - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG}:
    {L_POPUP_ON_PRIVMSG_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES}: - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}:{LANGUAGE_SELECT}
    {L_BOARD_STYLE}:{STYLE_SELECT}
    {L_TIMEZONE}:{TIMEZONE_SELECT}
    {L_DATE_FORMAT}:
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    {AVATAR}
     {L_DELETE_AVATAR}
    {L_UPLOAD_AVATAR_FILE}:
    {L_UPLOAD_AVATAR_URL}:
    {L_UPLOAD_AVATAR_URL_EXPLAIN}
    {L_LINK_REMOTE_AVATAR}:
    {L_LINK_REMOTE_AVATAR_EXPLAIN}
    {L_AVATAR_GALLERY}:
    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2/templates/christmas/profile_avatar_gallery.tpl b/phpBB2/templates/christmas/profile_avatar_gallery.tpl deleted file mode 100644 index a04eafe..0000000 --- a/phpBB2/templates/christmas/profile_avatar_gallery.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}: {S_CATEGORY_SELECT} 
    {avatar_row.avatar_column.AVATAR_NAME}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/christmas/profile_send_email.tpl b/phpBB2/templates/christmas/profile_send_email.tpl deleted file mode 100644 index 7b85aab..0000000 --- a/phpBB2/templates/christmas/profile_send_email.tpl +++ /dev/null @@ -1,74 +0,0 @@ - - - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEND_EMAIL_MSG}
    {L_RECIPIENT}{USERNAME}
    {L_SUBJECT}
    {L_MESSAGE_BODY}
    {L_MESSAGE_BODY_DESC}
    {L_OPTIONS} - - - - -
    {L_CC_EMAIL}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas/profile_send_pass.tpl b/phpBB2/templates/christmas/profile_send_pass.tpl deleted file mode 100644 index dd6f039..0000000 --- a/phpBB2/templates/christmas/profile_send_pass.tpl +++ /dev/null @@ -1,35 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - -
    {L_SEND_PASSWORD}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/christmas/profile_view_body.tpl b/phpBB2/templates/christmas/profile_view_body.tpl deleted file mode 100644 index 32eda1b..0000000 --- a/phpBB2/templates/christmas/profile_view_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - -
    {L_VIEWING_PROFILE}
    {L_AVATAR}{L_ABOUT_USER}
    {AVATAR_IMG}
    {POSTER_RANK}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_JOINED}: {JOINED}
    {L_TOTAL_POSTS}: {POSTS}
    [{POST_PERCENT_STATS} / {POST_DAY_STATS}]
    {L_SEARCH_USER_POSTS}
    {L_LOCATION}: {LOCATION}
    {L_WEBSITE}: {WWW}
    {L_OCCUPATION}: {OCCUPATION}
    {L_INTERESTS}: {INTERESTS}
    -
    {L_CONTACT} {USERNAME}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_EMAIL_ADDRESS}:{EMAIL_IMG}
    {L_PM}:{PM_IMG}
    {L_MESSENGER}:{MSN}
    {L_YAHOO}:{YIM_IMG}
    {L_AIM}:{AIM_IMG}
    {L_ICQ_NUMBER}:
    -
    - - - - - -

    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas/rainbow.js b/phpBB2/templates/christmas/rainbow.js deleted file mode 100644 index b583e06..0000000 --- a/phpBB2/templates/christmas/rainbow.js +++ /dev/null @@ -1,121 +0,0 @@ -var rate = 20; -var obj; -var act = 0; -var elmH = 0; -var elmS = 128; -var elmV = 255; -var clrOrg; -var TimerID; - -if (navigator.appName.indexOf("Microsoft",0) != -1 && parseInt(navigator.appVersion) >= 4) { -Browser = true; -} else { -Browser = false; -} - -if (Browser) { -document.onmouseover = doRainbowAnchor; -document.onmouseout = stopRainbowAnchor; -} - -function doRainbow() -{ -if (Browser && act != 1) { -act = 1; -obj = event.srcElement; -clrOrg = obj.style.color; -TimerID = setInterval("ChangeColor()",100); -} -} - -function stopRainbow() -{ -if (Browser && act != 0) { -obj.style.color = clrOrg; -clearInterval(TimerID); -act = 0; -} -} - -function doRainbowAnchor() -{ -if (Browser && act != 1) { -obj = event.srcElement; - -while (obj.tagName != 'A' && obj.tagName != 'BODY') { -obj = obj.parentElement; -if (obj.tagName == 'A' || obj.tagName == 'BODY') -break; -} - -if (obj.tagName == 'A' && obj.href != '') { -act = 1; -clrOrg = obj.style.color; -TimerID = setInterval("ChangeColor()",100); -} -} -} - -function stopRainbowAnchor() -{ -if (Browser && act != 0) { -if (obj.tagName == 'A') { -obj.style.color = clrOrg; -clearInterval(TimerID); -act = 0; -} -} -} - -function ChangeColor() -{ -obj.style.color = makeColor(); -} - -function makeColor() -{ - -if (elmS == 0) { -elmR = elmV; elmG = elmV; elmB = elmV; -} -else { -t1 = elmV; -t2 = (255 - elmS) * elmV / 255; -t3 = elmH % 60; -t3 = (t1 - t2) * t3 / 60; - -if (elmH < 60) { -elmR = t1; elmB = t2; elmG = t2 + t3; -} -else if (elmH < 120) { -elmG = t1; elmB = t2; elmR = t1 - t3; -} -else if (elmH < 180) { -elmG = t1; elmR = t2; elmB = t2 + t3; -} -else if (elmH < 240) { -elmB = t1; elmR = t2; elmG = t1 - t3; -} -else if (elmH < 300) { -elmB = t1; elmG = t2; elmR = t2 + t3; -} -else if (elmH < 360) { -elmR = t1; elmG = t2; elmB = t1 - t3; -} -else { -elmR = 0; elmG = 0; elmB = 0; -} -} - -elmR = Math.floor(elmR); -elmG = Math.floor(elmG); -elmB = Math.floor(elmB); - -clrRGB = '#' + elmR.toString(16) + elmG.toString(16) + elmB.toString(16); - -elmH = elmH + rate; -if (elmH >= 360) -elmH = 0; - -return clrRGB; -} diff --git a/phpBB2/templates/christmas/readme.txt b/phpBB2/templates/christmas/readme.txt deleted file mode 100644 index e63769c..0000000 --- a/phpBB2/templates/christmas/readme.txt +++ /dev/null @@ -1,24 +0,0 @@ - - ############################################################################################### - ############################################################################################### - ############################################################################################### - # # - # Vous venez de télécharger ce template via le site : # - # # - # http://www.phpbb-design.com # - # # - ############################################################################################### - # # - # Nous vous conseillons de nous visiter régulièrement afin de vous tenir au courant # - # des mises à jours nécessaires au bon fonctionnement de votre forum phpBB. # - # # - ############################################################################################### - # # - # Ce thème à été trouvé en libre distribution sur le net. Nous ne faisons que # - # relayer sa diffusion, le tout gratuitement. Si vous êtes le créateur de ce template et # - # que vous souhaitez garder l'entière exclusivité de sa distribution, contactez nous par mail # - # à cette adresse : webmaster@phpbb-design.com # - # # - ############################################################################################### - #######################################################################################02#2004# - ############################################################################################### \ No newline at end of file diff --git a/phpBB2/templates/christmas/search_body.tpl b/phpBB2/templates/christmas/search_body.tpl deleted file mode 100644 index 6621c41..0000000 --- a/phpBB2/templates/christmas/search_body.tpl +++ /dev/null @@ -1,57 +0,0 @@ - -
    - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEARCH_QUERY}
    {L_SEARCH_KEYWORDS}:
    {L_SEARCH_KEYWORDS_EXPLAIN}

    {L_SEARCH_ANY_TERMS}
    {L_SEARCH_ALL_TERMS}
    {L_SEARCH_AUTHOR}:
    {L_SEARCH_AUTHOR_EXPLAIN}
    {L_SEARCH_OPTIONS}
    {L_FORUM}: {L_SEARCH_PREVIOUS}: 
    {L_SEARCH_MESSAGE_TITLE}
    {L_SEARCH_MESSAGE_ONLY}
    {L_CATEGORY}: {L_SORT_BY}: 
    {L_SORT_ASCENDING}
    {L_SORT_DESCENDING}
     
    {L_DISPLAY_RESULTS}: {L_POSTS}{L_TOPICS}{L_RETURN_FIRST} {L_CHARACTERS}
    {S_HIDDEN_FIELDS}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas/search_results_posts.tpl b/phpBB2/templates/christmas/search_results_posts.tpl deleted file mode 100644 index 912c501..0000000 --- a/phpBB2/templates/christmas/search_results_posts.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - -
    {L_AUTHOR}{L_MESSAGE}
      {L_TOPIC}: {searchresults.TOPIC_TITLE}
    {searchresults.POSTER_NAME}
    -
    - {L_REPLIES}: {searchresults.TOPIC_REPLIES}
    - {L_VIEWS}: {searchresults.TOPIC_VIEWS}

    -
    {searchresults.L_MINI_POST_ALT}{L_FORUM}: {searchresults.FORUM_NAME}   {L_POSTED}: {searchresults.POST_DATE}   {L_SUBJECT}: {searchresults.POST_SUBJECT}
    {searchresults.MESSAGE}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas/search_results_topics.tpl b/phpBB2/templates/christmas/search_results_topics.tpl deleted file mode 100644 index 22175ea..0000000 --- a/phpBB2/templates/christmas/search_results_topics.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - -
      {L_FORUM}  {L_TOPICS}  {L_AUTHOR}  {L_REPLIES}  {L_VIEWS}  {L_LASTPOST} 
    {searchresults.L_TOPIC_FOLDER_ALT}{searchresults.FORUM_NAME}{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}{searchresults.TOPIC_TITLE}
    {searchresults.GOTO_PAGE}
    {searchresults.TOPIC_AUTHOR}{searchresults.REPLIES}{searchresults.VIEWS}{searchresults.LAST_POST_TIME}
    {searchresults.LAST_POST_AUTHOR} {searchresults.LAST_POST_IMG}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas/search_username.tpl b/phpBB2/templates/christmas/search_username.tpl deleted file mode 100644 index a2dace6..0000000 --- a/phpBB2/templates/christmas/search_username.tpl +++ /dev/null @@ -1,30 +0,0 @@ - - - -
    - - - - -
    - - - - - - -
    {L_SEARCH_USERNAME}

     

    {L_SEARCH_EXPLAIN}
    - - {L_UPDATE_USERNAME}
     

    - -
    {L_CLOSE_WINDOW}
    -
    diff --git a/phpBB2/templates/christmas/simple_footer.tpl b/phpBB2/templates/christmas/simple_footer.tpl deleted file mode 100644 index 880aa47..0000000 --- a/phpBB2/templates/christmas/simple_footer.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    - -Powered by phpBB {PHPBB_VERSION} © 2001,2002 phpBB Group
    - - - - - - diff --git a/phpBB2/templates/christmas/simple_header.tpl b/phpBB2/templates/christmas/simple_header.tpl deleted file mode 100644 index f232c43..0000000 --- a/phpBB2/templates/christmas/simple_header.tpl +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - - - -{META} -{SITENAME} :: {PAGE_TITLE} - - - - - - diff --git a/phpBB2/templates/christmas/theme_info.cfg b/phpBB2/templates/christmas/theme_info.cfg deleted file mode 100644 index 82fb1d0..0000000 --- a/phpBB2/templates/christmas/theme_info.cfg +++ /dev/null @@ -1,51 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2/templates/christmas/viewforum_body.tpl b/phpBB2/templates/christmas/viewforum_body.tpl deleted file mode 100644 index c87f57e..0000000 --- a/phpBB2/templates/christmas/viewforum_body.tpl +++ /dev/null @@ -1,93 +0,0 @@ - -
    - - - - - - - - - - -
    {FORUM_NAME}
    {L_MODERATOR}: {MODERATORS}

    {LOGGED_IN_USER_LIST}
    {PAGINATION}
    {L_POST_NEW_TOPIC}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_TOPICS}  {L_REPLIES}  {L_AUTHOR}  {L_VIEWS}  {L_LASTPOST} 
    {topicrow.L_TOPIC_FOLDER_ALT}{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}
    - {topicrow.GOTO_PAGE}
    {topicrow.REPLIES}{topicrow.TOPIC_AUTHOR}{topicrow.VIEWS}{topicrow.LAST_POST_TIME}
    {topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}
    {L_NO_TOPICS}
    {L_DISPLAY_TOPICS}: {S_SELECT_TOPIC_DAYS}  - -
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_INDEX} -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    -
    -
    - - - - - - -
    {JUMPBOX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_ANNOUNCEMENT}{L_ANNOUNCEMENT}
    {L_NEW_POSTS_HOT}{L_NEW_POSTS_HOT}  {L_NO_NEW_POSTS_HOT}{L_NO_NEW_POSTS_HOT}  {L_STICKY}{L_STICKY}
    {L_NEW_POSTS_TOPIC_LOCKED}{L_NEW_POSTS_LOCKED}  {L_NO_NEW_POSTS_TOPIC_LOCKED}{L_NO_NEW_POSTS_LOCKED}
    {S_AUTH_LIST}
    \ No newline at end of file diff --git a/phpBB2/templates/christmas/viewonline_body.tpl b/phpBB2/templates/christmas/viewonline_body.tpl deleted file mode 100644 index 12568bb..0000000 --- a/phpBB2/templates/christmas/viewonline_body.tpl +++ /dev/null @@ -1,53 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_LAST_UPDATE}  {L_FORUM_LOCATION} 
    {TOTAL_REGISTERED_USERS_ONLINE}
     {reg_user_row.USERNAME}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION} 
    .
    {TOTAL_GUEST_USERS_ONLINE}
     {guest_user_row.USERNAME}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION} 
    - - - - - - -
    {L_ONLINE_EXPLAIN}{S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    - diff --git a/phpBB2/templates/christmas/viewtopic_body.tpl b/phpBB2/templates/christmas/viewtopic_body.tpl deleted file mode 100644 index cff5e6b..0000000 --- a/phpBB2/templates/christmas/viewtopic_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {TOPIC_TITLE}
    - {PAGINATION}
    -  
    - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}
    - - - - - - {POLL_DISPLAY} - - - - - - - - - - - - - - - - - - - - -
    {L_VIEW_PREVIOUS_TOPIC} :: {L_VIEW_NEXT_TOPIC}  
    {L_AUTHOR}{L_MESSAGE}
    {postrow.POSTER_NAME}
    {postrow.POSTER_RANK}
    {postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}

    {postrow.POSTER_JOINED}
    {postrow.POSTER_POSTS}
    {postrow.POSTER_FROM}

    - - - - - - - - - - -
    {postrow.L_MINI_POST_ALT}{L_POSTED}: {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}

    {postrow.MESSAGE}{postrow.SIGNATURE}{postrow.EDITED_MESSAGE}
    {L_BACK_TO_TOP} - - - -
    {postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}
    - - - -
    {L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} 
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    - - - - - - -
    {S_WATCH_TOPIC}
    -  
    - {S_TOPIC_ADMIN}
    {JUMPBOX}{S_AUTH_LIST}
    diff --git a/phpBB2/templates/christmas/viewtopic_poll_ballot.tpl b/phpBB2/templates/christmas/viewtopic_poll_ballot.tpl deleted file mode 100644 index a9daffa..0000000 --- a/phpBB2/templates/christmas/viewtopic_poll_ballot.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -
    - - - - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - -
     {poll_option.POLL_OPTION_CAPTION}
    - -
    {L_VIEW_RESULTS}
    {S_HIDDEN_FIELDS}
    - \ No newline at end of file diff --git a/phpBB2/templates/christmas/viewtopic_poll_result.tpl b/phpBB2/templates/christmas/viewtopic_poll_result.tpl deleted file mode 100644 index 18eaa89..0000000 --- a/phpBB2/templates/christmas/viewtopic_poll_result.tpl +++ /dev/null @@ -1,36 +0,0 @@ - - -
    - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - - - - -
    {poll_option.POLL_OPTION_CAPTION} - - - - - - -
    {poll_option.POLL_OPTION_PERCENT}
    -
     {poll_option.POLL_OPTION_PERCENT} [ {poll_option.POLL_OPTION_RESULT} ]
    -
    {L_TOTAL_VOTES} : {TOTAL_VOTES}
    -
    - - diff --git a/phpBB2/templates/christmas2/admin/admin_message_body.tpl b/phpBB2/templates/christmas2/admin/admin_message_body.tpl deleted file mode 100644 index 68e69ca..0000000 --- a/phpBB2/templates/christmas2/admin/admin_message_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    - - - - - - - - -
    {MESSAGE_TITLE}
    {MESSAGE_TEXT}
    - -
    diff --git a/phpBB2/templates/christmas2/admin/auth_forum_body.tpl b/phpBB2/templates/christmas2/admin/auth_forum_body.tpl deleted file mode 100644 index 7e58992..0000000 --- a/phpBB2/templates/christmas2/admin/auth_forum_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - - - - - - - - -
    {forum_auth_titles.CELL_TITLE}
    {forum_auth_data.S_AUTH_LEVELS_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/christmas2/admin/auth_select_body.tpl b/phpBB2/templates/christmas2/admin/auth_select_body.tpl deleted file mode 100644 index b1fdd98..0000000 --- a/phpBB2/templates/christmas2/admin/auth_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -
    - - - - - - -
    {L_AUTH_SELECT}
    {S_HIDDEN_FIELDS}{S_AUTH_SELECT}   
    diff --git a/phpBB2/templates/christmas2/admin/auth_ug_body.tpl b/phpBB2/templates/christmas2/admin/auth_ug_body.tpl deleted file mode 100644 index 78c8e60..0000000 --- a/phpBB2/templates/christmas2/admin/auth_ug_body.tpl +++ /dev/null @@ -1,49 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_USER_OR_GROUPNAME}: {USERNAME}

    - -
    - - -

    {USER_LEVEL}

    -

    {USER_GROUP_MEMBERSHIPS}

    - - - -

    {GROUP_MEMBERSHIP}

    - - -

    {L_PERMISSIONS}

    - -

    {L_AUTH_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM}{acltype.L_UG_ACL_TYPE}{L_MODERATOR_STATUS}
    {forums.FORUM_NAME}{forums.aclvalues.S_ACL_SELECT}{forums.S_MOD_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/christmas2/admin/board_config_body.tpl b/phpBB2/templates/christmas2/admin/board_config_body.tpl deleted file mode 100644 index 26515ed..0000000 --- a/phpBB2/templates/christmas2/admin/board_config_body.tpl +++ /dev/null @@ -1,248 +0,0 @@ - -

    {L_CONFIGURATION_TITLE}

    - -

    {L_CONFIGURATION_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GENERAL_SETTINGS}
    {L_SERVER_NAME}
    {L_SERVER_PORT}
    {L_SERVER_PORT_EXPLAIN}
    {L_SCRIPT_PATH}
    {L_SCRIPT_PATH_EXPLAIN}
    {L_SITE_NAME}
    {L_SITE_NAME_EXPLAIN}
    {L_SITE_DESCRIPTION}
    {L_DISABLE_BOARD}
    {L_DISABLE_BOARD_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ACCT_ACTIVATION}{L_NONE}   {L_USER}   {L_ADMIN}
    {L_BOARD_EMAIL_FORM}
    {L_BOARD_EMAIL_FORM_EXPLAIN}
    {L_ENABLED}   {L_DISABLED}
    {L_FLOOD_INTERVAL}
    {L_FLOOD_INTERVAL_EXPLAIN}
    {L_TOPICS_PER_PAGE}
    {L_POSTS_PER_PAGE}
    {L_HOT_THRESHOLD}
    {L_DEFAULT_STYLE}{STYLE_SELECT}
    {L_OVERRIDE_STYLE}
    {L_OVERRIDE_STYLE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_DEFAULT_LANGUAGE}{LANG_SELECT}
    {L_DATE_FORMAT}
    {L_DATE_FORMAT_EXPLAIN}
    {L_SYSTEM_TIMEZONE}{TIMEZONE_SELECT}
    {L_ENABLE_GZIP} {L_YES}   {L_NO}
    {L_ENABLE_PRUNE} {L_YES}   {L_NO}
    {L_COOKIE_SETTINGS}
    {L_COOKIE_SETTINGS_EXPLAIN}
    {L_COOKIE_DOMAIN}
    {L_COOKIE_NAME}
    {L_COOKIE_PATH}
    {L_COOKIE_SECURE}
    {L_COOKIE_SECURE_EXPLAIN}
    {L_DISABLED}   {L_ENABLED}
    {L_SESSION_LENGTH}
    {L_PRIVATE_MESSAGING}
    {L_DISABLE_PRIVATE_MESSAGING}{L_ENABLED}   {L_DISABLED}
    {L_INBOX_LIMIT}
    {L_SENTBOX_LIMIT}
    {L_SAVEBOX_LIMIT}
    {L_ABILITIES_SETTINGS}
    {L_MAX_POLL_OPTIONS}
    {L_ALLOW_HTML} {L_YES}   {L_NO}
    {L_ALLOWED_TAGS}
    {L_ALLOWED_TAGS_EXPLAIN}
    {L_ALLOW_BBCODE} {L_YES}   {L_NO}
    {L_ALLOW_SMILIES} {L_YES}   {L_NO}
    {L_SMILIES_PATH}
    {L_SMILIES_PATH_EXPLAIN}
    {L_ALLOW_SIG} {L_YES}   {L_NO}
    {L_MAX_SIG_LENGTH}
    {L_MAX_SIG_LENGTH_EXPLAIN}
    {L_ALLOW_NAME_CHANGE} {L_YES}   {L_NO}
    {L_AVATAR_SETTINGS}
    {L_ALLOW_LOCAL} {L_YES}   {L_NO}
    {L_ALLOW_REMOTE}
    {L_ALLOW_REMOTE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ALLOW_UPLOAD} {L_YES}   {L_NO}
    {L_MAX_FILESIZE}
    {L_MAX_FILESIZE_EXPLAIN}
    Bytes
    {L_MAX_AVATAR_SIZE}
    - {L_MAX_AVATAR_SIZE_EXPLAIN} -
    x
    {L_AVATAR_STORAGE_PATH}
    {L_AVATAR_STORAGE_PATH_EXPLAIN}
    {L_AVATAR_GALLERY_PATH}
    {L_AVATAR_GALLERY_PATH_EXPLAIN}
    {L_COPPA_SETTINGS}
    {L_COPPA_FAX}
    {L_COPPA_MAIL}
    {L_COPPA_MAIL_EXPLAIN}
    {L_EMAIL_SETTINGS}
    {L_ADMIN_EMAIL}
    {L_EMAIL_SIG}
    {L_EMAIL_SIG_EXPLAIN}
    {L_USE_SMTP}
    {L_USE_SMTP_EXPLAIN}
    {L_YES}   {L_NO}
    {L_SMTP_SERVER}
    {L_SMTP_USERNAME}
    {L_SMTP_USERNAME_EXPLAIN}
    {L_SMTP_PASSWORD}
    {L_SMTP_PASSWORD_EXPLAIN}
    {S_HIDDEN_FIELDS}   -
    - -
    diff --git a/phpBB2/templates/christmas2/admin/category_edit_body.tpl b/phpBB2/templates/christmas2/admin/category_edit_body.tpl deleted file mode 100644 index 8fed1c9..0000000 --- a/phpBB2/templates/christmas2/admin/category_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_EDIT_CATEGORY}

    - -

    {L_EDIT_CATEGORY_EXPLAIN}

    - -
    - - - - - - - - - - - -
    {L_EDIT_CATEGORY}
    {L_CATEGORY}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2/templates/christmas2/admin/db_utils_backup_body.tpl b/phpBB2/templates/christmas2/admin/db_utils_backup_body.tpl deleted file mode 100644 index 8ee6ab9..0000000 --- a/phpBB2/templates/christmas2/admin/db_utils_backup_body.tpl +++ /dev/null @@ -1,33 +0,0 @@ - -

    {L_DATABASE_BACKUP}

    - -

    {L_BACKUP_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BACKUP_OPTIONS}
    {L_FULL_BACKUP}
    {L_STRUCTURE_BACKUP}
    {L_DATA_BACKUP}
    {L_ADDITIONAL_TABLES}
    {L_GZIP_COMPRESS}{L_NO}  {L_YES}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas2/admin/db_utils_restore_body.tpl b/phpBB2/templates/christmas2/admin/db_utils_restore_body.tpl deleted file mode 100644 index 13a74dd..0000000 --- a/phpBB2/templates/christmas2/admin/db_utils_restore_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_DATABASE_RESTORE}

    - -

    {L_RESTORE_EXPLAIN}

    - -
    - - - - - - -
    {L_SELECT_FILE}
       {S_HIDDEN_FIELDS} 
    diff --git a/phpBB2/templates/christmas2/admin/disallow_body.tpl b/phpBB2/templates/christmas2/admin/disallow_body.tpl deleted file mode 100644 index ea269f6..0000000 --- a/phpBB2/templates/christmas2/admin/disallow_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_DISALLOW_TITLE}

    - -

    {L_DISALLOW_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_ADD_DISALLOW}
    {L_USERNAME}
    {L_ADD_EXPLAIN}
     
    {L_DELETE_DISALLOW}
    {L_USERNAME}
    {L_DELETE_EXPLAIN}
    {S_DISALLOW_SELECT} 
     
    diff --git a/phpBB2/templates/christmas2/admin/forum_admin_body.tpl b/phpBB2/templates/christmas2/admin/forum_admin_body.tpl deleted file mode 100644 index ca64c2d..0000000 --- a/phpBB2/templates/christmas2/admin/forum_admin_body.tpl +++ /dev/null @@ -1,39 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_TITLE}
    {catrow.CAT_DESC}{L_EDIT}{L_DELETE}{L_MOVE_UP} {L_MOVE_DOWN} 
    {catrow.forumrow.FORUM_NAME}
    {catrow.forumrow.FORUM_DESC}
    {catrow.forumrow.NUM_TOPICS}{catrow.forumrow.NUM_POSTS}{L_EDIT}{L_DELETE}{L_MOVE_UP}
    {L_MOVE_DOWN}
    {L_RESYNC}
    diff --git a/phpBB2/templates/christmas2/admin/forum_delete_body.tpl b/phpBB2/templates/christmas2/admin/forum_delete_body.tpl deleted file mode 100644 index 4a26710..0000000 --- a/phpBB2/templates/christmas2/admin/forum_delete_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_FORUM_DELETE}

    - -

    {L_FORUM_DELETE_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - -
    {L_FORUM_DELETE}
    {L_FORUM_NAME}{NAME}
    {L_MOVE_CONTENTS}{S_SELECT_TO}
    {S_HIDDEN_FIELDS}
    -
    diff --git a/phpBB2/templates/christmas2/admin/forum_edit_body.tpl b/phpBB2/templates/christmas2/admin/forum_edit_body.tpl deleted file mode 100644 index 7f56bbe..0000000 --- a/phpBB2/templates/christmas2/admin/forum_edit_body.tpl +++ /dev/null @@ -1,50 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_SETTINGS}
    {L_FORUM_NAME}
    {L_FORUM_DESCRIPTION}
    {L_CATEGORY}
    {L_FORUM_STATUS}
    {L_AUTO_PRUNE} - - - - - - - - - - - - -
    {L_ENABLED}
    {L_PRUNE_DAYS}  {L_DAYS}
    {L_PRUNE_FREQ}  {L_DAYS}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2/templates/christmas2/admin/forum_prune_body.tpl b/phpBB2/templates/christmas2/admin/forum_prune_body.tpl deleted file mode 100644 index 56a2e02..0000000 --- a/phpBB2/templates/christmas2/admin/forum_prune_body.tpl +++ /dev/null @@ -1,22 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_FORUM_PRUNE_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - -
    {L_FORUM_PRUNE}
    {S_PRUNE_DATA}
    {S_HIDDEN_VARS} - -
    -
    diff --git a/phpBB2/templates/christmas2/admin/forum_prune_result_body.tpl b/phpBB2/templates/christmas2/admin/forum_prune_result_body.tpl deleted file mode 100644 index 10e6d06..0000000 --- a/phpBB2/templates/christmas2/admin/forum_prune_result_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_PRUNE_RESULT}

    - - - - - - - - - - - - - - -
    {L_FORUM}{L_TOPICS_PRUNED}{L_POSTS_PRUNED}
    {prune_results.FORUM_NAME}{prune_results.FORUM_TOPICS}{prune_results.FORUM_POSTS}
    - -
    diff --git a/phpBB2/templates/christmas2/admin/forum_prune_select_body.tpl b/phpBB2/templates/christmas2/admin/forum_prune_select_body.tpl deleted file mode 100644 index d59e7f7..0000000 --- a/phpBB2/templates/christmas2/admin/forum_prune_select_body.tpl +++ /dev/null @@ -1,12 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -
    - - - - - - - -
    {L_SELECT_FORUM}
    {S_FORUMS_SELECT}   
    diff --git a/phpBB2/templates/christmas2/admin/group_edit_body.tpl b/phpBB2/templates/christmas2/admin/group_edit_body.tpl deleted file mode 100644 index ed96b17..0000000 --- a/phpBB2/templates/christmas2/admin/group_edit_body.tpl +++ /dev/null @@ -1,56 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_EDIT_DELETE}
    {L_ITEMS_REQUIRED}
    {L_GROUP_NAME}: - -
    {L_GROUP_DESCRIPTION}: - -
    {L_GROUP_MODERATOR}:  
    {L_GROUP_STATUS}: - {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}
    {L_DELETE_MODERATOR} -
    - {L_DELETE_MODERATOR_EXPLAIN}
    - - {L_YES}
    {L_GROUP_DELETE}: - - {L_GROUP_DELETE_CHECK}
    - -    - -
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas2/admin/group_select_body.tpl b/phpBB2/templates/christmas2/admin/group_select_body.tpl deleted file mode 100644 index 7428918..0000000 --- a/phpBB2/templates/christmas2/admin/group_select_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -

    {L_GROUP_EXPLAIN}

    - -
    - - - - - - - - - - - - -
    {L_GROUP_SELECT}
    {S_GROUP_SELECT}   
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas2/admin/index.htm b/phpBB2/templates/christmas2/admin/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2/templates/christmas2/admin/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2/templates/christmas2/admin/index_body.tpl b/phpBB2/templates/christmas2/admin/index_body.tpl deleted file mode 100644 index 1f40246..0000000 --- a/phpBB2/templates/christmas2/admin/index_body.tpl +++ /dev/null @@ -1,79 +0,0 @@ - -

    {L_WELCOME}

    - -

    {L_ADMIN_INTRO}

    - -

    {L_FORUM_STATS}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_STATISTIC}dddddd{L_VALUE}{L_STATISTIC}{L_VALUE}
    {L_NUMBER_POSTS}:{NUMBER_OF_POSTS}{L_POSTS_PER_DAY}:{POSTS_PER_DAY}
    {L_NUMBER_TOPICS}:{NUMBER_OF_TOPICS}{L_TOPICS_PER_DAY}:{TOPICS_PER_DAY}
    {L_NUMBER_USERS}:{NUMBER_OF_USERS}{L_USERS_PER_DAY}:{USERS_PER_DAY}
    {L_BOARD_STARTED}:{START_DATE}{L_AVATAR_DIR_SIZE}:{AVATAR_DIR_SIZE}
    {L_DB_SIZE}:{DB_SIZE}{L_GZIP_COMPRESSION}:{GZIP_COMPRESSION}
    -

    {L_WHO_IS_ONLINE}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_STARTED}  {L_LAST_UPDATE}  {L_FORUM_LOCATION}  {L_IP_ADDRESS} 
     {reg_user_row.USERNAME}  {reg_user_row.STARTED}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION}  {reg_user_row.IP_ADDRESS} 
    .
     {guest_user_row.USERNAME}  {guest_user_row.STARTED}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION}  {guest_user_row.IP_ADDRESS} 
    - -
    diff --git a/phpBB2/templates/christmas2/admin/index_frameset.tpl b/phpBB2/templates/christmas2/admin/index_frameset.tpl deleted file mode 100644 index fef79af..0000000 --- a/phpBB2/templates/christmas2/admin/index_frameset.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - -phpBB Administration - - - - - - - - - - <body bgcolor="#FFFFFF" text="#000000"> - <p>Sorry, your browser doesn't seem to support frames</p> - </body> - - \ No newline at end of file diff --git a/phpBB2/templates/christmas2/admin/index_navigate.tpl b/phpBB2/templates/christmas2/admin/index_navigate.tpl deleted file mode 100644 index ec9f212..0000000 --- a/phpBB2/templates/christmas2/admin/index_navigate.tpl +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_ADMIN}
    {L_ADMIN_INDEX}
    {L_FORUM_INDEX}
    {L_PREVIEW_FORUM}
    {catrow.ADMIN_CATEGORY}
    {catrow.modulerow.ADMIN_MODULE} -
    -
    - -
    diff --git a/phpBB2/templates/christmas2/admin/page_footer.tpl b/phpBB2/templates/christmas2/admin/page_footer.tpl deleted file mode 100644 index 278b360..0000000 --- a/phpBB2/templates/christmas2/admin/page_footer.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - -
    Powered by phpBB {PHPBB_VERSION} © 2001 phpBB Group
    {TRANSLATION_INFO}
    - - - \ No newline at end of file diff --git a/phpBB2/templates/christmas2/admin/page_header.tpl b/phpBB2/templates/christmas2/admin/page_header.tpl deleted file mode 100644 index cc690a8..0000000 --- a/phpBB2/templates/christmas2/admin/page_header.tpl +++ /dev/null @@ -1,10 +0,0 @@ - - - -{META} - - -{SITENAME} - {L_PHPBB_ADMIN} - - - diff --git a/phpBB2/templates/christmas2/admin/ranks_edit_body.tpl b/phpBB2/templates/christmas2/admin/ranks_edit_body.tpl deleted file mode 100644 index b3974ea..0000000 --- a/phpBB2/templates/christmas2/admin/ranks_edit_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - - - - -
    {L_RANKS_TITLE}
    {L_RANK_TITLE}:
    {L_RANK_SPECIAL}{L_YES}    {L_NO}
    {L_RANK_MINIMUM}:
    {L_RANK_IMAGE}:
    - {L_RANK_IMAGE_EXPLAIN}

    {IMAGE_DISPLAY}
      
    -{S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas2/admin/ranks_list_body.tpl b/phpBB2/templates/christmas2/admin/ranks_list_body.tpl deleted file mode 100644 index 368326f..0000000 --- a/phpBB2/templates/christmas2/admin/ranks_list_body.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - -
    {L_RANK}{L_RANK_MINIMUM}{L_SPECIAL_RANK}{L_EDIT}{L_DELETE}
    {ranks.RANK}{ranks.RANK_MIN}{ranks.SPECIAL_RANK}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2/templates/christmas2/admin/smile_edit_body.tpl b/phpBB2/templates/christmas2/admin/smile_edit_body.tpl deleted file mode 100644 index b453afc..0000000 --- a/phpBB2/templates/christmas2/admin/smile_edit_body.tpl +++ /dev/null @@ -1,34 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - - - -
    - - - - - - - - - - - - - - - - - - -
    {L_SMILEY_CONFIG}
    {L_SMILEY_CODE}
    {L_SMILEY_URL}    
    {L_SMILEY_EMOTION}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas2/admin/smile_import_body.tpl b/phpBB2/templates/christmas2/admin/smile_import_body.tpl deleted file mode 100644 index 9881cb1..0000000 --- a/phpBB2/templates/christmas2/admin/smile_import_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_SMILEY_IMPORT}
    {L_SELECT_LBL}{S_SMILE_SELECT}
    {L_DEL_EXISTING}
    {L_CONFLICTS}
    {L_REPLACE_EXISTING}   {L_KEEP_EXISTING}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas2/admin/smile_list_body.tpl b/phpBB2/templates/christmas2/admin/smile_list_body.tpl deleted file mode 100644 index ae85ad9..0000000 --- a/phpBB2/templates/christmas2/admin/smile_list_body.tpl +++ /dev/null @@ -1,25 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - -
    {L_CODE}{L_SMILE}{L_EMOT}{L_ACTION}
    {smiles.CODE}{smiles.CODE}{smiles.EMOT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}    
    diff --git a/phpBB2/templates/christmas2/admin/styles_addnew_body.tpl b/phpBB2/templates/christmas2/admin/styles_addnew_body.tpl deleted file mode 100644 index 6240a79..0000000 --- a/phpBB2/templates/christmas2/admin/styles_addnew_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_ADD_TEXT}

    - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_ACTION}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_INSTALL}
    diff --git a/phpBB2/templates/christmas2/admin/styles_edit_body.tpl b/phpBB2/templates/christmas2/admin/styles_edit_body.tpl deleted file mode 100644 index 08cf721..0000000 --- a/phpBB2/templates/christmas2/admin/styles_edit_body.tpl +++ /dev/null @@ -1,246 +0,0 @@ - -

    {L_THEMES_TITLE}

    - -

    {L_THEMES_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_THEME_SETTINGS}
    {L_THEME_NAME}:
    {L_TEMPLATE}:{S_TEMPLATE_SELECT}
    {L_THEME_ELEMENT}{L_VALUE}{L_SIMPLE_NAME}
    {L_STYLESHEET}:
    Filename for CSS stylesheet to use for this theme.
     
    {L_BACKGROUND_IMAGE}: 
    {L_BACKGROUND_COLOR}: 
    {L_BODY_TEXT_COLOR}: 
    {L_BODY_LINK_COLOR}: 
    {L_BODY_VLINK_COLOR}: 
    {L_BODY_ALINK_COLOR}: 
    {L_BODY_HLINK_COLOR}: 
    {L_TR_COLOR1}: -
    {L_TR_COLOR2}: -
    {L_TR_COLOR3}: -
    {L_TR_CLASS1}: -
    {L_TR_CLASS2}: -
    {L_TR_CLASS3}: -
    {L_TH_COLOR1}: -
    {L_TH_COLOR2}: -
    {L_TH_COLOR3}: -
    {L_TH_CLASS1}: -
    {L_TH_CLASS2}: -
    {L_TH_CLASS3}: -
    {L_TD_COLOR1}: -
    {L_TD_COLOR2}: -
    {L_TD_COLOR3}: -
    {L_TD_CLASS1}: -
    {L_TD_CLASS2}: -
    {L_TD_CLASS3}: -
    {L_FONTFACE_1}: -
    {L_FONTFACE_2}: -
    {L_FONTFACE_3}: -
    {L_FONTSIZE_1}: -
    {L_FONTSIZE_2}: -
    {L_FONTSIZE_3}: -
    {L_FONTCOLOR_1}: -
    {L_FONTCOLOR_2}: -
    {L_FONTCOLOR_3}: -
    {L_SPAN_CLASS_1}: -
    {L_SPAN_CLASS_2}: -
    {L_SPAN_CLASS_3}: -
    {S_HIDDEN_FIELDS} -
    - -
    diff --git a/phpBB2/templates/christmas2/admin/styles_exporter.tpl b/phpBB2/templates/christmas2/admin/styles_exporter.tpl deleted file mode 100644 index 2056260..0000000 --- a/phpBB2/templates/christmas2/admin/styles_exporter.tpl +++ /dev/null @@ -1,14 +0,0 @@ - -

    {L_STYLE_EXPORTER}

    - -

    {L_EXPORTER_EXPLAIN}

    - -
    - - - - - - - -
    {L_TEMPLATE_SELECT}
    {S_TEMPLATE_SELECT}   
    diff --git a/phpBB2/templates/christmas2/admin/styles_list_body.tpl b/phpBB2/templates/christmas2/admin/styles_list_body.tpl deleted file mode 100644 index 915fe49..0000000 --- a/phpBB2/templates/christmas2/admin/styles_list_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_TEXT}

    - - - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_EDIT}{L_DELETE}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2/templates/christmas2/admin/user_avatar_gallery.tpl b/phpBB2/templates/christmas2/admin/user_avatar_gallery.tpl deleted file mode 100644 index db861ee..0000000 --- a/phpBB2/templates/christmas2/admin/user_avatar_gallery.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}:  
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/christmas2/admin/user_ban_body.tpl b/phpBB2/templates/christmas2/admin/user_ban_body.tpl deleted file mode 100644 index c805f7b..0000000 --- a/phpBB2/templates/christmas2/admin/user_ban_body.tpl +++ /dev/null @@ -1,54 +0,0 @@ - -

    {L_BAN_TITLE}

    - -

    {L_BAN_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BAN_USER}
    {L_USERNAME}: {S_HIDDEN_FIELDS}
    {L_UNBAN_USER}
    {L_USERNAME}:
    {L_UNBAN_USER_EXPLAIN}
    {S_UNBAN_USERLIST_SELECT}
    {L_BAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_BAN_IP_EXPLAIN}
    {L_UNBAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_UNBAN_IP_EXPLAIN}
    {S_UNBAN_IPLIST_SELECT}
    {L_BAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_BAN_EMAIL_EXPLAIN}
    {L_UNBAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_UNBAN_EMAIL_EXPLAIN}
    {S_UNBAN_EMAILLIST_SELECT}
      
    - -

    {L_BAN_EXPLAIN_WARN}

    diff --git a/phpBB2/templates/christmas2/admin/user_edit_body.tpl b/phpBB2/templates/christmas2/admin/user_edit_body.tpl deleted file mode 100644 index 359bdeb..0000000 --- a/phpBB2/templates/christmas2/admin/user_edit_body.tpl +++ /dev/null @@ -1,310 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -{ERROR_BOX} - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER} - -
    {L_AIM} - -
    {L_MESSENGER} - -
    {L_YAHOO} - -
    {L_WEBSITE} - -
    {L_LOCATION} - -
    {L_OCCUPATION} - -
    {L_INTERESTS} - -
    {L_SIGNATURE}
    - {L_SIGNATURE_EXPLAIN}
    -
    - {HTML_STATUS}
    - {BBCODE_STATUS}
    - {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL} - - {L_YES}   - - {L_NO}
    {L_HIDE_USER} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES} - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}{LANGUAGE_SELECT}
    {L_BOARD_STYLE}{STYLE_SELECT}
    {L_TIMEZONE}{TIMEZONE_SELECT}
    {L_DATE_FORMAT}
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    - {AVATAR}
    - -  {L_DELETE_AVATAR}
    -
    {L_UPLOAD_AVATAR_FILE} - - -
    {L_UPLOAD_AVATAR_URL} - -
    {L_LINK_REMOTE_AVATAR} - -
    {L_AVATAR_GALLERY} - -
     
    {L_SPECIAL}
    {L_SPECIAL_EXPLAIN}
    {L_USER_ACTIVE} - - {L_YES}   - - {L_NO}
    {L_ALLOW_PM} - - {L_YES}   - - {L_NO}
    {L_ALLOW_AVATAR} - - {L_YES}   - - {L_NO}
    {L_SELECT_RANK}
    {L_DELETE_USER}? - - {L_DELETE_USER_EXPLAIN}
    {S_HIDDEN_FIELDS} - -    - -
    diff --git a/phpBB2/templates/christmas2/admin/user_email_body.tpl b/phpBB2/templates/christmas2/admin/user_email_body.tpl deleted file mode 100644 index 5f52658..0000000 --- a/phpBB2/templates/christmas2/admin/user_email_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_EMAIL_TITLE}

    - -

    {L_EMAIL_EXPLAIN}

    - -
    - -{ERROR_BOX} - - - - - - - - - - - - - - - - - - -
    {L_COMPOSE}
    {L_RECIPIENTS}{S_GROUP_SELECT}
    {L_EMAIL_SUBJECT}
    {L_EMAIL_MSG} - -
    - -
    diff --git a/phpBB2/templates/christmas2/admin/user_select_body.tpl b/phpBB2/templates/christmas2/admin/user_select_body.tpl deleted file mode 100644 index 5d7a31b..0000000 --- a/phpBB2/templates/christmas2/admin/user_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - -
    {L_USER_SELECT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas2/admin/words_edit_body.tpl b/phpBB2/templates/christmas2/admin/words_edit_body.tpl deleted file mode 100644 index 569a94f..0000000 --- a/phpBB2/templates/christmas2/admin/words_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - -
    {L_WORD_CENSOR}
    {L_WORD}
    {L_REPLACEMENT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas2/admin/words_list_body.tpl b/phpBB2/templates/christmas2/admin/words_list_body.tpl deleted file mode 100644 index 40acf81..0000000 --- a/phpBB2/templates/christmas2/admin/words_list_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - - - -
    {L_WORD}{L_REPLACEMENT}{L_ACTION}
    {words.WORD}{words.REPLACEMENT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmas2/agreement.tpl b/phpBB2/templates/christmas2/agreement.tpl deleted file mode 100644 index 5635a35..0000000 --- a/phpBB2/templates/christmas2/agreement.tpl +++ /dev/null @@ -1,19 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - -
    {SITENAME} - {REGISTRATION}
    - - - -

    {AGREEMENT}



    diff --git a/phpBB2/templates/christmas2/bbcode.tpl b/phpBB2/templates/christmas2/bbcode.tpl deleted file mode 100644 index caef76b..0000000 --- a/phpBB2/templates/christmas2/bbcode.tpl +++ /dev/null @@ -1,60 +0,0 @@ -
      -
    - -
      -
    - -
  • - - - - - - - - - -
    {USERNAME} {L_WROTE}:
    - - - - - - - - -
    {L_QUOTE}:
    -
    - - - - - - - - - - -
    {L_CODE}:
    -
    - - - - - - - - - - - - - - - - - - - - -{DESCRIPTION} - -{EMAIL} diff --git a/phpBB2/templates/christmas2/christmas2.cfg b/phpBB2/templates/christmas2/christmas2.cfg deleted file mode 100644 index bd84476..0000000 --- a/phpBB2/templates/christmas2/christmas2.cfg +++ /dev/null @@ -1,101 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2/templates/christmas2/christmas2.css b/phpBB2/templates/christmas2/christmas2.css deleted file mode 100644 index f4cd45c..0000000 --- a/phpBB2/templates/christmas2/christmas2.css +++ /dev/null @@ -1,196 +0,0 @@ -/* - The original subSilver Theme for phpBB version 2+ - Created by subBlue design - http://www.subBlue.com -*/ - - - /* General page style. The scroll bar colours only visible in IE5.5+ */ -body { - background-color: #800000; -scrollbar-3dlight-color:#006600; -scrollbar-arrow-color:#FFFF80; -scrollbar-darkshadow-color:#066000; -scrollbar-face-color:#066000; -scrollbar-highlight-color:#008000; -scrollbar-shadow-color:##008000; -scrollbar-track-color:#008000} -} - -/* General font families for common tags */ -font,th,td,p { font:11px;font-family: Verdana, Arial, Helvetica, sans-serif } -a:link,a:active,a:visited { color : #FFFFFF; text-decoration: none; font-weight: bold; } -a:hover { text-decoration: underline; color : #C0FFC0; } -hr { height: 0px; border: solid #FFFFFF 0px; border-top-width: 1px;} - - -/* This is the border line & background colour round the entire page */ -.bodyline{background:#066000;color:#008000;border:8px ridge #C0FFC0} - -/* This is the outline round the main forum tables */ -.forumline{background:#33CC00;color:#008000;border:3px ridge #C0FFC0} - - -/* Main table cell colours and backgrounds */ -td.row1{background:#008000; color:#ffffff} -td.row2{background:#066000; color:#ffffff} -td.row3{background:#008000; color:#ffffff} - - -/* - This is for the table cell above the Topics, Post & Last posts on the index.php page - By default this is the fading out gradiated silver background. - However, you could replace this with a bitmap specific for each forum -*/ -td.rowpic{background:#008000 repeat-y} - -/* Header cells - the blue and silver gradient backgrounds */ -th{background:url(images/cellpic3.gif) #066000;color:#FFFFFF;font-size:12px; -font-weight:bold;height:20px;white-space:nowrap} - -td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { - background-image: url(images/cellpic1.gif); background-color:#066000; - color:#FFFFFF; height: 25px; -} - - -/* - Setting additional nice inner borders for the main table cells. - The names indicate which sides the border will be on. - Don't worry if you don't understand this, just ignore it :-) -*/ -td.cat,td.catHead,td.catBottom { - height: 29px; - border-width: 0px 0px 0px 0px; -} -th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { - font-weight: bold; border: #FFFFFF; height: 28px; } -td.row3Right,td.spaceRow { - background-color: #008000; border: #008000; border-style: solid; } - -th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } -th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } -th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } -th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } -th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } -th.thTop { border-width: 1px 0px 0px 0px; } -th.thCornerL { border-width: 1px 0px 0px 1px; } -th.thCornerR { border-width: 1px 1px 0px 0px; } - - -/* The largest text used in the index page title and toptic title etc. */ -.maintitle,h1,h2 { - font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, - sans-serif;text-decoration: none; line-height : 120%; color : #FFFFFF; -} - - -/* General text */ -.gen { font-size : 11px; } -.genmed { font-size : 11px; } -.gensmall { font-size : 10px; } -.gen,.genmed,.gensmall { color : #FFFFFF; } -a.gen,a.genmed,a.gensmall { color: #FFFFFF; text-decoration: none; } -a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #C0FFC0; text-decoration: underline; } - - -/* The register, login, search etc links at the top of the page */ -.mainmenu { font-size : 11px; color : #FFFFFF } -a.mainmenu { text-decoration: none; color : #FFFFFF; } -a.mainmenu:hover{ text-decoration: none; color : #C0FFC0; } - - -/* Forum category titles */ -.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #FFFFFF} -a.cattitle { text-decoration: none; color : #FFFFFF; } -a.cattitle:hover{ text-decoration: none; color : #C0FFC0; } - - -/* Forum title: Text and link to the forums used in: index.php */ -.forumlink { font-weight: bold; font-size: 12px; color : #FFFFFF; } -a.forumlink { text-decoration: none; color : #FFFFFF; } -a.forumlink:hover{ text-decoration: none; color : #C0FFC0; } - - -/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ -.nav { font-weight: bold; font-size: 11px; color : #FFFFFF;} -a.nav { text-decoration: none; color : #FFFFFF; } -a.nav:hover { text-decoration: none; color : #C0FFC0; } - -.topnav{font-size:10px;background: #e5ebf3 url(images/cellpic1.gif) repeat-x;color:#dd6900; - -/* titles for the topics: could specify viewed link colour too */ -.topictitle { font-weight: bold; font-size: 11px; color : #FFFFFF; } -a.topictitle:link { text-decoration: none; color : #FFFFFF; } -a.topictitle:visited { text-decoration: none; color : #FFFFFF; } -a.topictitle:hover { text-decoration: none; color : #C0FFC0; } - - -/* Name of poster in viewmsg.php and viewtopic.php and other places */ -.name { font-size : 11px; color : #FFFFFF;} - -/* Location, number of posts, post date etc */ -.postdetails { font-size : 10px; color : #FFFFFF; } - - -/* The content of the posts (body of text) */ -.postbody { font-size : 12px;color : #FFFFFF} -a.postlink:link { text-decoration: none; color : #FFFFFF } -a.postlink:visited { text-decoration: none; color : #FFFFFF; } -a.postlink:hover { text-decoration: none; color : #C0FFC0} - - -/* Quote & Code blocks */ -.code{background:#C0FFC0;border:1px dashed #FFFFFF;color:#000000; -font:11px Courier,"Courier New",sans-serif;padding:5px} - -.quote{background:#C0FFC0;border:1px dashed #FFFFFF;color:#000000; -font:bold 11px/125% Verdana,Arial,Helvetica,sans-serif} - - -/* Copyright and bottom info */ -.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; letter-spacing: -1px;} -a.copyright { color: #FFFFFF; text-decoration: none;} -a.copyright:hover { color: #FFFFFF; text-decoration: none;} - - -/* Form elements */ -input,textarea, select { - color : #FFFFFF; - font: normal 11px Verdana, Arial, Helvetica, sans-serif; - border-color : #008000; -} - -/* The text input fields background colour */ -input.post, textarea.post, select {background-color : #066000;} - -input { text-indent : 2px; } - -/* The buttons used for bbCode styling in message post */ -input.button { - background-color : #008000; - color : #FFFFFF; - font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; -} - -/* The main submit button option */ -input.mainoption { - background-color : #008000; - font-weight : bold; -} - -/* None-bold submit button */ -input.liteoption { - background-color : #008000;border-color : #ffffff; - font-weight : normal; -} - -/* This is the line in the posting page which shows the rollover - help line. This is actually a text box, but if set to be the same - colour as the background no one will know ;) -*/ -.helpline { background-color: #008000; border-style: none; } - - -/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ -@import url("formIE.css"); diff --git a/phpBB2/templates/christmas2/confirm_body.tpl b/phpBB2/templates/christmas2/confirm_body.tpl deleted file mode 100644 index f79a643..0000000 --- a/phpBB2/templates/christmas2/confirm_body.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}

    {MESSAGE_TEXT}

    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2/templates/christmas2/error_body.tpl b/phpBB2/templates/christmas2/error_body.tpl deleted file mode 100644 index f211ad0..0000000 --- a/phpBB2/templates/christmas2/error_body.tpl +++ /dev/null @@ -1,18 +0,0 @@ - - - - - -
    - - - - - - - - - -
     
    {ERROR_MESSAGE}
     
    - -
    diff --git a/phpBB2/templates/christmas2/faq_body.tpl b/phpBB2/templates/christmas2/faq_body.tpl deleted file mode 100644 index 9b11149..0000000 --- a/phpBB2/templates/christmas2/faq_body.tpl +++ /dev/null @@ -1,52 +0,0 @@ - - - - - -
    - - - - - - - - - - - -
    {L_FAQ_TITLE}
    - - {faq_block_link.BLOCK_TITLE}
    - - {faq_block_link.faq_row_link.FAQ_LINK}
    - -
    - -
     
    - -
    - - - - - - - - - - - - - - -
    {faq_block.BLOCK_TITLE}
    {faq_block.faq_row.FAQ_QUESTION}
    {faq_block.faq_row.FAQ_ANSWER}
    {L_BACK_TO_TOP}
    - -
    - - - - - - -
    {S_TIMEZONE}

    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas2/formIE.css b/phpBB2/templates/christmas2/formIE.css deleted file mode 100644 index fde54cb..0000000 --- a/phpBB2/templates/christmas2/formIE.css +++ /dev/null @@ -1,19 +0,0 @@ -/* Fancy form styles for IE */ - -input, textarea, select { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -input { text-indent : 2px; } - -input.button { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -.postbody { line-height: 18px} diff --git a/phpBB2/templates/christmas2/groupcp_info_body.tpl b/phpBB2/templates/christmas2/groupcp_info_body.tpl deleted file mode 100644 index 93875fa..0000000 --- a/phpBB2/templates/christmas2/groupcp_info_body.tpl +++ /dev/null @@ -1,128 +0,0 @@ - -
    - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_INFORMATION}
    {L_GROUP_NAME}:{GROUP_NAME}
    {L_GROUP_DESC}:{GROUP_DESC}
    {L_GROUP_MEMBERSHIP}:{GROUP_DETAILS}    - - - - - - -
    {L_GROUP_TYPE}: {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}   
    - -{S_HIDDEN_FIELDS} - -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_GROUP_MODERATOR}
    {MOD_PM_IMG} {MOD_USERNAME}{MOD_POSTS}{MOD_FROM}{MOD_EMAIL_IMG}{MOD_WWW_IMG}  
    {L_GROUP_MEMBERS}
    {member_row.PM_IMG} {member_row.USERNAME}{member_row.POSTS} {member_row.FROM} - {member_row.EMAIL_IMG} {member_row.WWW_IMG} - - - -
    {L_NO_MEMBERS}
    {L_HIDDEN_MEMBERS}
    - -
    - - - - - - -
    - -

    - - {PAGE_NUMBER}
    {S_TIMEZONE}
    {PAGINATION}
    - -{PENDING_USER_BOX} - -{S_HIDDEN_FIELDS}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas2/groupcp_pending_info.tpl b/phpBB2/templates/christmas2/groupcp_pending_info.tpl deleted file mode 100644 index 68f618c..0000000 --- a/phpBB2/templates/christmas2/groupcp_pending_info.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_PENDING_MEMBERS}
    {pending_members_row.PM_IMG} - {pending_members_row.USERNAME}{pending_members_row.POSTS}{pending_members_row.FROM}{pending_members_row.EMAIL_IMG}{pending_members_row.WWW_IMG}
    - -   - -
    diff --git a/phpBB2/templates/christmas2/groupcp_user_body.tpl b/phpBB2/templates/christmas2/groupcp_user_body.tpl deleted file mode 100644 index 8be36f6..0000000 --- a/phpBB2/templates/christmas2/groupcp_user_body.tpl +++ /dev/null @@ -1,76 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_MEMBERSHIP_DETAILS}
    {L_YOU_BELONG_GROUPS} - - - - - -
    {GROUP_MEMBER_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_PENDING_GROUPS} - - - - - -
    {GROUP_PENDING_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_JOIN_A_GROUP}
    {L_SELECT_A_GROUP} - - - - - -
    {GROUP_LIST_SELECT} - {S_HIDDEN_FIELDS} -
    -
    - - - - - -
    {S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas2/images/Thumbs.db b/phpBB2/templates/christmas2/images/Thumbs.db deleted file mode 100644 index 0b8d72c..0000000 Binary files a/phpBB2/templates/christmas2/images/Thumbs.db and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/banner.gif b/phpBB2/templates/christmas2/images/banner.gif deleted file mode 100644 index 9b3ab93..0000000 Binary files a/phpBB2/templates/christmas2/images/banner.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/cellpic.gif b/phpBB2/templates/christmas2/images/cellpic.gif deleted file mode 100644 index 58846d0..0000000 Binary files a/phpBB2/templates/christmas2/images/cellpic.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/cellpic1.gif b/phpBB2/templates/christmas2/images/cellpic1.gif deleted file mode 100644 index 44b3430..0000000 Binary files a/phpBB2/templates/christmas2/images/cellpic1.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/cellpic2.jpg b/phpBB2/templates/christmas2/images/cellpic2.jpg deleted file mode 100644 index 764c0e5..0000000 Binary files a/phpBB2/templates/christmas2/images/cellpic2.jpg and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/cellpic3.gif b/phpBB2/templates/christmas2/images/cellpic3.gif deleted file mode 100644 index e27cdfd..0000000 Binary files a/phpBB2/templates/christmas2/images/cellpic3.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/cellpic_bkg.gif b/phpBB2/templates/christmas2/images/cellpic_bkg.gif deleted file mode 100644 index c806b23..0000000 Binary files a/phpBB2/templates/christmas2/images/cellpic_bkg.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/folder.gif b/phpBB2/templates/christmas2/images/folder.gif deleted file mode 100644 index c2e74f5..0000000 Binary files a/phpBB2/templates/christmas2/images/folder.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/folder_announce.gif b/phpBB2/templates/christmas2/images/folder_announce.gif deleted file mode 100644 index b290827..0000000 Binary files a/phpBB2/templates/christmas2/images/folder_announce.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/folder_announce_new.gif b/phpBB2/templates/christmas2/images/folder_announce_new.gif deleted file mode 100644 index b290827..0000000 Binary files a/phpBB2/templates/christmas2/images/folder_announce_new.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/folder_big.gif b/phpBB2/templates/christmas2/images/folder_big.gif deleted file mode 100644 index c2e74f5..0000000 Binary files a/phpBB2/templates/christmas2/images/folder_big.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/folder_hot.gif b/phpBB2/templates/christmas2/images/folder_hot.gif deleted file mode 100644 index 30ed45d..0000000 Binary files a/phpBB2/templates/christmas2/images/folder_hot.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/folder_lock.gif b/phpBB2/templates/christmas2/images/folder_lock.gif deleted file mode 100644 index f782f79..0000000 Binary files a/phpBB2/templates/christmas2/images/folder_lock.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/folder_lock_new.gif b/phpBB2/templates/christmas2/images/folder_lock_new.gif deleted file mode 100644 index c1eb69c..0000000 Binary files a/phpBB2/templates/christmas2/images/folder_lock_new.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/folder_locked_big.gif b/phpBB2/templates/christmas2/images/folder_locked_big.gif deleted file mode 100644 index f782f79..0000000 Binary files a/phpBB2/templates/christmas2/images/folder_locked_big.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/folder_new.gif b/phpBB2/templates/christmas2/images/folder_new.gif deleted file mode 100644 index aea561b..0000000 Binary files a/phpBB2/templates/christmas2/images/folder_new.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/folder_new_big.gif b/phpBB2/templates/christmas2/images/folder_new_big.gif deleted file mode 100644 index aea561b..0000000 Binary files a/phpBB2/templates/christmas2/images/folder_new_big.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/folder_new_hot.gif b/phpBB2/templates/christmas2/images/folder_new_hot.gif deleted file mode 100644 index d326aef..0000000 Binary files a/phpBB2/templates/christmas2/images/folder_new_hot.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/folder_sticky.gif b/phpBB2/templates/christmas2/images/folder_sticky.gif deleted file mode 100644 index a5fadc9..0000000 Binary files a/phpBB2/templates/christmas2/images/folder_sticky.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/folder_sticky_new.gif b/phpBB2/templates/christmas2/images/folder_sticky_new.gif deleted file mode 100644 index a5fadc9..0000000 Binary files a/phpBB2/templates/christmas2/images/folder_sticky_new.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/icon_delete.gif b/phpBB2/templates/christmas2/images/icon_delete.gif deleted file mode 100644 index 4e3fc6c..0000000 Binary files a/phpBB2/templates/christmas2/images/icon_delete.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/icon_latest_reply.gif b/phpBB2/templates/christmas2/images/icon_latest_reply.gif deleted file mode 100644 index b45e57a..0000000 Binary files a/phpBB2/templates/christmas2/images/icon_latest_reply.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/icon_mini.gif b/phpBB2/templates/christmas2/images/icon_mini.gif deleted file mode 100644 index 0108cd3..0000000 Binary files a/phpBB2/templates/christmas2/images/icon_mini.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/icon_minipost.gif b/phpBB2/templates/christmas2/images/icon_minipost.gif deleted file mode 100644 index d172abb..0000000 Binary files a/phpBB2/templates/christmas2/images/icon_minipost.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/icon_minipost_new.gif b/phpBB2/templates/christmas2/images/icon_minipost_new.gif deleted file mode 100644 index 8ec44a1..0000000 Binary files a/phpBB2/templates/christmas2/images/icon_minipost_new.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/icon_newest_reply.gif b/phpBB2/templates/christmas2/images/icon_newest_reply.gif deleted file mode 100644 index eca2861..0000000 Binary files a/phpBB2/templates/christmas2/images/icon_newest_reply.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/index.htm b/phpBB2/templates/christmas2/images/index.htm deleted file mode 100644 index 4c5bb15..0000000 --- a/phpBB2/templates/christmas2/images/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -christmas created by subBlue Design - - - - - - - - - -
    Created by subBlue Design
    - - - \ No newline at end of file diff --git a/phpBB2/templates/christmas2/images/lang_english/icon_aim.gif b/phpBB2/templates/christmas2/images/lang_english/icon_aim.gif deleted file mode 100644 index a4a0dc5..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/icon_aim.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/icon_delete.gif b/phpBB2/templates/christmas2/images/lang_english/icon_delete.gif deleted file mode 100644 index 4e3fc6c..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/icon_delete.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/icon_edit.gif b/phpBB2/templates/christmas2/images/lang_english/icon_edit.gif deleted file mode 100644 index 813d24d..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/icon_edit.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/icon_email.gif b/phpBB2/templates/christmas2/images/lang_english/icon_email.gif deleted file mode 100644 index 37dbdeb..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/icon_email.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/icon_icq_add.gif b/phpBB2/templates/christmas2/images/lang_english/icon_icq_add.gif deleted file mode 100644 index b306aea..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/icon_ip.gif b/phpBB2/templates/christmas2/images/lang_english/icon_ip.gif deleted file mode 100644 index 2645d3e..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/icon_ip.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/icon_msnm.gif b/phpBB2/templates/christmas2/images/lang_english/icon_msnm.gif deleted file mode 100644 index b6591f6..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/icon_msnm.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/icon_pm.gif b/phpBB2/templates/christmas2/images/lang_english/icon_pm.gif deleted file mode 100644 index ce2db4e..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/icon_pm.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/icon_profile.gif b/phpBB2/templates/christmas2/images/lang_english/icon_profile.gif deleted file mode 100644 index 769e6da..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/icon_profile.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/icon_quote.gif b/phpBB2/templates/christmas2/images/lang_english/icon_quote.gif deleted file mode 100644 index 0f8d473..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/icon_quote.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/icon_search.gif b/phpBB2/templates/christmas2/images/lang_english/icon_search.gif deleted file mode 100644 index 205c02b..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/icon_search.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/icon_www.gif b/phpBB2/templates/christmas2/images/lang_english/icon_www.gif deleted file mode 100644 index 6d94cc1..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/icon_www.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/icon_yim.gif b/phpBB2/templates/christmas2/images/lang_english/icon_yim.gif deleted file mode 100644 index 15d0702..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/icon_yim.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/msg_newpost.gif b/phpBB2/templates/christmas2/images/lang_english/msg_newpost.gif deleted file mode 100644 index 30d5067..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/msg_newpost.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/post.gif b/phpBB2/templates/christmas2/images/lang_english/post.gif deleted file mode 100644 index 5f60b0e..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/post.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/reply-locked.gif b/phpBB2/templates/christmas2/images/lang_english/reply-locked.gif deleted file mode 100644 index 88bf4a5..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/reply-locked.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_english/reply.gif b/phpBB2/templates/christmas2/images/lang_english/reply.gif deleted file mode 100644 index 226021e..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_english/reply.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/icon_aim.gif b/phpBB2/templates/christmas2/images/lang_german/icon_aim.gif deleted file mode 100644 index a4a0dc5..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/icon_aim.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/icon_delete.gif b/phpBB2/templates/christmas2/images/lang_german/icon_delete.gif deleted file mode 100644 index 4e3fc6c..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/icon_delete.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/icon_edit.gif b/phpBB2/templates/christmas2/images/lang_german/icon_edit.gif deleted file mode 100644 index 813d24d..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/icon_edit.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/icon_email.gif b/phpBB2/templates/christmas2/images/lang_german/icon_email.gif deleted file mode 100644 index 37dbdeb..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/icon_email.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/icon_icq_add.gif b/phpBB2/templates/christmas2/images/lang_german/icon_icq_add.gif deleted file mode 100644 index b306aea..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/icon_ip.gif b/phpBB2/templates/christmas2/images/lang_german/icon_ip.gif deleted file mode 100644 index 2645d3e..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/icon_ip.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/icon_msnm.gif b/phpBB2/templates/christmas2/images/lang_german/icon_msnm.gif deleted file mode 100644 index b6591f6..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/icon_msnm.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/icon_pm.gif b/phpBB2/templates/christmas2/images/lang_german/icon_pm.gif deleted file mode 100644 index ce2db4e..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/icon_pm.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/icon_profile.gif b/phpBB2/templates/christmas2/images/lang_german/icon_profile.gif deleted file mode 100644 index 769e6da..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/icon_profile.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/icon_quote.gif b/phpBB2/templates/christmas2/images/lang_german/icon_quote.gif deleted file mode 100644 index d86b74e..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/icon_quote.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/icon_search.gif b/phpBB2/templates/christmas2/images/lang_german/icon_search.gif deleted file mode 100644 index 1de9f57..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/icon_search.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/icon_www.gif b/phpBB2/templates/christmas2/images/lang_german/icon_www.gif deleted file mode 100644 index 6d94cc1..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/icon_www.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/icon_yim.gif b/phpBB2/templates/christmas2/images/lang_german/icon_yim.gif deleted file mode 100644 index 15d0702..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/icon_yim.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/index.html b/phpBB2/templates/christmas2/images/lang_german/index.html deleted file mode 100644 index bd93b50..0000000 --- a/phpBB2/templates/christmas2/images/lang_german/index.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - -Forum Images :: FI Subsilver Images - German - - - - - - - - - - - - - - -
    FI Subsilver Images - German

     

    - - - - - - - -
    icon_aim.gificon_edit.gificon_email.gificon_icq_add.gificon_msnm.gificon_pm.gificon_profile.gificon_quote.gificon_search.gificon_www.gificon_yim.gificon_ip.gif
    msg_newpost.gifpost.gifreply.gifreply-locked.gif
    -

     

    -

    Close - Window

    -
    - - \ No newline at end of file diff --git a/phpBB2/templates/christmas2/images/lang_german/msg_newpost.gif b/phpBB2/templates/christmas2/images/lang_german/msg_newpost.gif deleted file mode 100644 index a620bdf..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/msg_newpost.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/post.gif b/phpBB2/templates/christmas2/images/lang_german/post.gif deleted file mode 100644 index b4f86bc..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/post.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/reply-locked.gif b/phpBB2/templates/christmas2/images/lang_german/reply-locked.gif deleted file mode 100644 index d23d849..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/reply-locked.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/lang_german/reply.gif b/phpBB2/templates/christmas2/images/lang_german/reply.gif deleted file mode 100644 index f1c8edd..0000000 Binary files a/phpBB2/templates/christmas2/images/lang_german/reply.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/logo_phpBB.gif b/phpBB2/templates/christmas2/images/logo_phpBB.gif deleted file mode 100644 index f6d87ac..0000000 Binary files a/phpBB2/templates/christmas2/images/logo_phpBB.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/logo_phpBB2.gif b/phpBB2/templates/christmas2/images/logo_phpBB2.gif deleted file mode 100644 index 221b50d..0000000 Binary files a/phpBB2/templates/christmas2/images/logo_phpBB2.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/logo_phpBB_med.gif b/phpBB2/templates/christmas2/images/logo_phpBB_med.gif deleted file mode 100644 index 5b4e6b3..0000000 Binary files a/phpBB2/templates/christmas2/images/logo_phpBB_med.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/msg_inbox.gif b/phpBB2/templates/christmas2/images/msg_inbox.gif deleted file mode 100644 index dc455b6..0000000 Binary files a/phpBB2/templates/christmas2/images/msg_inbox.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/msg_outbox.gif b/phpBB2/templates/christmas2/images/msg_outbox.gif deleted file mode 100644 index a7b19b8..0000000 Binary files a/phpBB2/templates/christmas2/images/msg_outbox.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/msg_savebox.gif b/phpBB2/templates/christmas2/images/msg_savebox.gif deleted file mode 100644 index 8a5d7d2..0000000 Binary files a/phpBB2/templates/christmas2/images/msg_savebox.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/msg_sentbox.gif b/phpBB2/templates/christmas2/images/msg_sentbox.gif deleted file mode 100644 index b157808..0000000 Binary files a/phpBB2/templates/christmas2/images/msg_sentbox.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/snow.gif b/phpBB2/templates/christmas2/images/snow.gif deleted file mode 100644 index c29c435..0000000 Binary files a/phpBB2/templates/christmas2/images/snow.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/spacer.gif b/phpBB2/templates/christmas2/images/spacer.gif deleted file mode 100644 index 5bfd67a..0000000 Binary files a/phpBB2/templates/christmas2/images/spacer.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/topic_delete.gif b/phpBB2/templates/christmas2/images/topic_delete.gif deleted file mode 100644 index d1d3a62..0000000 Binary files a/phpBB2/templates/christmas2/images/topic_delete.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/topic_lock.gif b/phpBB2/templates/christmas2/images/topic_lock.gif deleted file mode 100644 index 3aadda3..0000000 Binary files a/phpBB2/templates/christmas2/images/topic_lock.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/topic_move.gif b/phpBB2/templates/christmas2/images/topic_move.gif deleted file mode 100644 index af8b3c7..0000000 Binary files a/phpBB2/templates/christmas2/images/topic_move.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/topic_split.gif b/phpBB2/templates/christmas2/images/topic_split.gif deleted file mode 100644 index 977dedb..0000000 Binary files a/phpBB2/templates/christmas2/images/topic_split.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/topic_unlock.gif b/phpBB2/templates/christmas2/images/topic_unlock.gif deleted file mode 100644 index a088619..0000000 Binary files a/phpBB2/templates/christmas2/images/topic_unlock.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/vote_lcap.gif b/phpBB2/templates/christmas2/images/vote_lcap.gif deleted file mode 100644 index 22e1080..0000000 Binary files a/phpBB2/templates/christmas2/images/vote_lcap.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/vote_rcap.gif b/phpBB2/templates/christmas2/images/vote_rcap.gif deleted file mode 100644 index 28da06f..0000000 Binary files a/phpBB2/templates/christmas2/images/vote_rcap.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/voting_bar.gif b/phpBB2/templates/christmas2/images/voting_bar.gif deleted file mode 100644 index ced112d..0000000 Binary files a/phpBB2/templates/christmas2/images/voting_bar.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/images/whosonline.gif b/phpBB2/templates/christmas2/images/whosonline.gif deleted file mode 100644 index 3bea906..0000000 Binary files a/phpBB2/templates/christmas2/images/whosonline.gif and /dev/null differ diff --git a/phpBB2/templates/christmas2/index.htm b/phpBB2/templates/christmas2/index.htm deleted file mode 100644 index 387c05d..0000000 --- a/phpBB2/templates/christmas2/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -christmas2 created by subBlue Design - - - - - - - - - -
    Created by subBlue Design
    - - - \ No newline at end of file diff --git a/phpBB2/templates/christmas2/index_body.tpl b/phpBB2/templates/christmas2/index_body.tpl deleted file mode 100644 index d8d5b89..0000000 --- a/phpBB2/templates/christmas2/index_body.tpl +++ /dev/null @@ -1,104 +0,0 @@ - - - - - -
    - - {LAST_VISIT_DATE}
    - - {CURRENT_TIME}
    {L_INDEX}
    - - - {L_SEARCH_NEW}
    {L_SEARCH_SELF}
    - - {L_SEARCH_UNANSWERED}
    - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FORUM}  {L_TOPICS}  {L_POSTS}  {L_LASTPOST} 
    {catrow.CAT_DESC}
    {catrow.forumrow.L_FORUM_FOLDER_ALT} {catrow.forumrow.FORUM_NAME}
    -
    {catrow.forumrow.FORUM_DESC}
    -
    {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
    {catrow.forumrow.TOPICS}{catrow.forumrow.POSTS} {catrow.forumrow.LAST_POST}
    - - - - - - -
    {L_MARK_FORUMS_READ}{S_TIMEZONE}
    - - - - - - - - - - - - -
    {L_WHO_IS_ONLINE}
    {L_WHO_IS_ONLINE}{TOTAL_POSTS}
    {TOTAL_USERS}
    {NEWEST_USER}
    -
    {TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
    {RECORD_USERS}
    {LOGGED_IN_USER_LIST}
    - - - - - -
    {L_ONLINE_EXPLAIN}
    - - -
    - - - - - - - -
    {L_LOGIN_LOGOUT}
    {L_USERNAME}: - -    {L_PASSWORD}: - -      {L_AUTO_LOGIN} - -     - -
    -
    - - -
    - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_FORUM_LOCKED}{L_FORUM_LOCKED}
    diff --git a/phpBB2/templates/christmas2/jumpbox.tpl b/phpBB2/templates/christmas2/jumpbox.tpl deleted file mode 100644 index 2000e92..0000000 --- a/phpBB2/templates/christmas2/jumpbox.tpl +++ /dev/null @@ -1,6 +0,0 @@ - -
    - - - -
    {L_JUMP_TO}: {S_JUMPBOX_SELECT} 
    diff --git a/phpBB2/templates/christmas2/login_body.tpl b/phpBB2/templates/christmas2/login_body.tpl deleted file mode 100644 index 50d7f71..0000000 --- a/phpBB2/templates/christmas2/login_body.tpl +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - -
    - - - - - - - - -
    {L_ENTER_PASSWORD}
    - - - - - - - - - - - - - - - - - - - - -
     
    {L_USERNAME}: - -
    {L_PASSWORD}: - -
    {L_AUTO_LOGIN}:
    {S_HIDDEN_FIELDS}
    {L_SEND_PASSWORD}
    - -
    diff --git a/phpBB2/templates/christmas2/memberlist_body.tpl b/phpBB2/templates/christmas2/memberlist_body.tpl deleted file mode 100644 index af1340d..0000000 --- a/phpBB2/templates/christmas2/memberlist_body.tpl +++ /dev/null @@ -1,55 +0,0 @@ - -
    - - - - - -
    {L_INDEX}{L_SELECT_SORT_METHOD}: {S_MODE_SELECT}  {L_ORDER} {S_ORDER_SELECT}   - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # {L_USERNAME}{L_EMAIL}{L_FROM}{L_JOINED}{L_POSTS}{L_WEBSITE}
     {memberrow.ROW_NUMBER}  {memberrow.PM_IMG} {memberrow.USERNAME} {memberrow.EMAIL_IMG} {memberrow.FROM}{memberrow.JOINED}{memberrow.POSTS} {memberrow.WWW_IMG} 
     
    - - - - -
    - - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas2/message_body.tpl b/phpBB2/templates/christmas2/message_body.tpl deleted file mode 100644 index 6be7f51..0000000 --- a/phpBB2/templates/christmas2/message_body.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - -
     
    {MESSAGE_TEXT}
     
    - -
    diff --git a/phpBB2/templates/christmas2/modcp_body.tpl b/phpBB2/templates/christmas2/modcp_body.tpl deleted file mode 100644 index fd0fe1b..0000000 --- a/phpBB2/templates/christmas2/modcp_body.tpl +++ /dev/null @@ -1,58 +0,0 @@ - -
    - - - - -
    {L_INDEX} -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_MOD_CP} -
    {L_MOD_CP_EXPLAIN}
      {L_TOPICS}  {L_REPLIES}  {L_LASTPOST}  {L_SELECT} 
    {topicrow.L_TOPIC_FOLDER_ALT} {topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}{topicrow.REPLIES}{topicrow.LAST_POST_TIME} - -
    {S_HIDDEN_FIELDS} - -   - -   - -   - -
    - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    -
    - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas2/modcp_move.tpl b/phpBB2/templates/christmas2/modcp_move.tpl deleted file mode 100644 index 730952c..0000000 --- a/phpBB2/templates/christmas2/modcp_move.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - - -
     
    {L_MOVE_TO_FORUM}   {S_FORUM_SELECT}

    - {L_LEAVESHADOW}
    -
    - {MESSAGE_TEXT}

    -
    - {S_HIDDEN_FIELDS} - -    - -
     
    -
    -
    diff --git a/phpBB2/templates/christmas2/modcp_split.tpl b/phpBB2/templates/christmas2/modcp_split.tpl deleted file mode 100644 index 3de4e2c..0000000 --- a/phpBB2/templates/christmas2/modcp_split.tpl +++ /dev/null @@ -1,85 +0,0 @@ - -
    - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SPLIT_TOPIC}
    {L_SPLIT_TOPIC_EXPLAIN}
    {L_SPLIT_SUBJECT}
    {L_SPLIT_FORUM}{S_FORUM_SELECT}
    - - - - - -
    - - - -
    -
    {L_AUTHOR}{L_MESSAGE}{L_SELECT}
    {postrow.POSTER_NAME} - - - - - - - -
    {L_POST}{L_POSTED}: - {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}
    -
    - {postrow.MESSAGE}
    -
    {postrow.S_SPLIT_CHECKBOX}
    .
    - - - - - -
    - - - - {S_HIDDEN_FIELDS}
    -
    - - - - -
    {S_TIMEZONE}
    -
    diff --git a/phpBB2/templates/christmas2/modcp_viewip.tpl b/phpBB2/templates/christmas2/modcp_viewip.tpl deleted file mode 100644 index d497d88..0000000 --- a/phpBB2/templates/christmas2/modcp_viewip.tpl +++ /dev/null @@ -1,58 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_IP_INFO}
    {L_THIS_POST_IP}
    - - - - - -
     {IP} [ {POSTS} ][ {L_LOOKUP_IP} - ] 
    -
    {L_OTHER_USERS}
    - - - - - -
     {userrow.USERNAME} [ {userrow.POSTS} ]{L_SEARCH} -  
    -
    {L_OTHER_IPS}
    - - - - -
     {iprow.IP} [ {iprow.POSTS} ][ {L_LOOKUP_IP} - ] 
    - -
    diff --git a/phpBB2/templates/christmas2/overall_footer.tpl b/phpBB2/templates/christmas2/overall_footer.tpl deleted file mode 100644 index dffcc72..0000000 --- a/phpBB2/templates/christmas2/overall_footer.tpl +++ /dev/null @@ -1,20 +0,0 @@ - -

    {ADMIN_LINK}
    - -Powered by phpBB {PHPBB_VERSION} © 2001, 2002 phpBB Group
    {TRANSLATION_INFO} -
    Original Template   Modify Template by   BremerJunge
    -
    - - - diff --git a/phpBB2/templates/christmas2/overall_header.tpl b/phpBB2/templates/christmas2/overall_header.tpl deleted file mode 100644 index cfe0d02..0000000 --- a/phpBB2/templates/christmas2/overall_header.tpl +++ /dev/null @@ -1,155 +0,0 @@ - - - - - -{META} -{NAV_LINKS} -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/phpBB2/templates/christmas2/posting_preview.tpl b/phpBB2/templates/christmas2/posting_preview.tpl deleted file mode 100644 index 18e2895..0000000 --- a/phpBB2/templates/christmas2/posting_preview.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -
    - - - - -
    {L_INDEX}{SITENAME}
    {SITE_DESCRIPTION}
     
    - - - - - -
     {L_FAQ}{L_FAQ}   {L_SEARCH}{L_SEARCH}   {L_MEMBERLIST}{L_MEMBERLIST}   {L_USERGROUPS}{L_USERGROUPS}  - -  {L_REGISTER}{L_REGISTER}  - -
     {L_PROFILE}{L_PROFILE}   {PRIVATE_MESSAGE_INFO}{PRIVATE_MESSAGE_INFO}   {L_LOGIN_LOGOUT}{L_LOGIN_LOGOUT} 
    -
    - -
    diff --git a/phpBB2/templates/christmas2/posting_body.tpl b/phpBB2/templates/christmas2/posting_body.tpl deleted file mode 100644 index c16b19c..0000000 --- a/phpBB2/templates/christmas2/posting_body.tpl +++ /dev/null @@ -1,481 +0,0 @@ - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX_LINK}  {SENTBOX_IMG}{SENTBOX_LINK}  {OUTBOX_IMG}{OUTBOX_LINK}  {SAVEBOX_IMG}{SAVEBOX_LINK}  
    -
    - -
    - - -
    - -{POST_PREVIEW_BOX} -{ERROR_BOX} - - - - - - -
    {L_INDEX} - - -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {POLLBOX} - - - -
    {L_POST_A}
    {L_USERNAME}
    {L_USERNAME} 
    {L_SUBJECT} - -
    - - - - - - - -
    {L_MESSAGE_BODY}

    - - - - - - - - - - - - - - - - -
    {L_EMOTICONS}
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}
    -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - - - -
    - - - - - -
     {L_FONT_COLOR}: -  {L_FONT_SIZE}: - {L_BBCODE_CLOSE_TAGS}
    -
    - -
    - -
    -
    {L_OPTIONS}
    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - {L_DISABLE_HTML}
    - - {L_DISABLE_BBCODE}
    - - {L_DISABLE_SMILIES}
    - - {L_ATTACH_SIGNATURE}
    - - {L_NOTIFY_ON_REPLY}
    - - {L_DELETE_POST}
    {S_TYPE_TOGGLE}
    -
    {S_HIDDEN_FORM_FIELDS} 
    - - - - - -
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    - -{TOPIC_REVIEW_BOX} diff --git a/phpBB2/templates/christmas2/posting_poll_body.tpl b/phpBB2/templates/christmas2/posting_poll_body.tpl deleted file mode 100644 index 4391393..0000000 --- a/phpBB2/templates/christmas2/posting_poll_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -
    {L_ADD_A_POLL}
    {L_ADD_POLL_EXPLAIN}
    {L_POLL_QUESTION}
    {L_POLL_OPTION}  
    {L_POLL_OPTION}  
    {L_POLL_LENGTH} {L_DAYS}   {L_POLL_LENGTH_EXPLAIN}
    {L_POLL_DELETE}
    - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_POST}{L_POSTED}: {POST_DATE}     {L_POST_SUBJECT}: {POST_SUBJECT}
    - - - -
    - {MESSAGE} -
    - -
    diff --git a/phpBB2/templates/christmas2/posting_smilies.tpl b/phpBB2/templates/christmas2/posting_smilies.tpl deleted file mode 100644 index 7028535..0000000 --- a/phpBB2/templates/christmas2/posting_smilies.tpl +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - -
    - - - - - - - - - -
    {L_EMOTICONS}
    - - - - - - - - - - - - -
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}

    {L_CLOSE_WINDOW}
    diff --git a/phpBB2/templates/christmas2/posting_topic_review.tpl b/phpBB2/templates/christmas2/posting_topic_review.tpl deleted file mode 100644 index cbef5f3..0000000 --- a/phpBB2/templates/christmas2/posting_topic_review.tpl +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - -
    {L_TOPIC_REVIEW}
    - diff --git a/phpBB2/templates/christmas2/privmsgs_body.tpl b/phpBB2/templates/christmas2/privmsgs_body.tpl deleted file mode 100644 index 41611c9..0000000 --- a/phpBB2/templates/christmas2/privmsgs_body.tpl +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}  
    -
    - - - - - - - - - - - - - -
    {BOX_SIZE_STATUS}
    - - - - -
    {INBOX_LIMIT_PERCENT}
    -
    0%50%100%
    - -
    - -
    - -
    - - - - - - -
    {POST_PM_IMG} {L_INDEX}{L_DISPLAY_MESSAGES}: - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FLAG}  {L_SUBJECT}  {L_FROM_OR_TO}  {L_DATE}  {L_MARK} 
    {listrow.L_PRIVMSG_FOLDER_ALT} {listrow.SUBJECT} {listrow.FROM}{listrow.DATE} - -
    {L_NO_MESSAGES}
    {S_HIDDEN_FIELDS} - -   - -   - -
    - - - - - - - -
    {POST_PM_IMG}{PAGE_NUMBER}{L_MARK_ALL} :: {L_UNMARK_ALL}
    {PAGINATION}
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas2/privmsgs_popup.tpl b/phpBB2/templates/christmas2/privmsgs_popup.tpl deleted file mode 100644 index e48205b..0000000 --- a/phpBB2/templates/christmas2/privmsgs_popup.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - -
    - - - - -

    {L_MESSAGE}

    {L_CLOSE_WINDOW}

    -
    diff --git a/phpBB2/templates/christmas2/privmsgs_preview.tpl b/phpBB2/templates/christmas2/privmsgs_preview.tpl deleted file mode 100644 index ba2ed93..0000000 --- a/phpBB2/templates/christmas2/privmsgs_preview.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT}
    {MESSAGE}
    - -
    diff --git a/phpBB2/templates/christmas2/privmsgs_read_body.tpl b/phpBB2/templates/christmas2/privmsgs_read_body.tpl deleted file mode 100644 index 3c85e6a..0000000 --- a/phpBB2/templates/christmas2/privmsgs_read_body.tpl +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}
    - -
    - -
    - - - - - -
    {REPLY_PM_IMG} {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {BOX_NAME} :: {L_MESSAGE}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT} {QUOTE_PM_IMG} {EDIT_PM_IMG}
    {MESSAGE}
    - - - - -
    {PROFILE_IMG} {PM_IMG} {EMAIL_IMG} - {WWW_IMG} {AIM_IMG} {YIM_IMG} {MSN_IMG} 
    -
    {S_HIDDEN_FIELDS} - -   - -
    - - - - - -
    {REPLY_PM_IMG}{S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas2/profile_add_body.tpl b/phpBB2/templates/christmas2/profile_add_body.tpl deleted file mode 100644 index ede3217..0000000 --- a/phpBB2/templates/christmas2/profile_add_body.tpl +++ /dev/null @@ -1,274 +0,0 @@ - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: *{USERNAME}
    {L_USERNAME}: *
    {L_EMAIL_ADDRESS}: *
    {L_CURRENT_PASSWORD}: *
    - {L_CONFIRM_PASSWORD_EXPLAIN}
    - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
    {L_CONFIRM_CODE_IMPAIRED}

    {CONFIRM_IMG}

    {L_CONFIRM_CODE}: *
    {L_CONFIRM_CODE_EXPLAIN}
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER}: - -
    {L_AIM}: - -
    {L_MESSENGER}: - -
    {L_YAHOO}: - -
    {L_WEBSITE}: - -
    {L_LOCATION}: - -
    {L_OCCUPATION}: - -
    {L_INTERESTS}: - -
    {L_SIGNATURE}:
    {L_SIGNATURE_EXPLAIN}

    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL}: - - {L_YES}   - - {L_NO}
    {L_HIDE_USER}: - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY}:
    - {L_NOTIFY_ON_REPLY_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG}: - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG}:
    {L_POPUP_ON_PRIVMSG_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES}: - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}:{LANGUAGE_SELECT}
    {L_BOARD_STYLE}:{STYLE_SELECT}
    {L_TIMEZONE}:{TIMEZONE_SELECT}
    {L_DATE_FORMAT}:
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    {AVATAR}
     {L_DELETE_AVATAR}
    {L_UPLOAD_AVATAR_FILE}:
    {L_UPLOAD_AVATAR_URL}:
    {L_UPLOAD_AVATAR_URL_EXPLAIN}
    {L_LINK_REMOTE_AVATAR}:
    {L_LINK_REMOTE_AVATAR_EXPLAIN}
    {L_AVATAR_GALLERY}:
    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2/templates/christmas2/profile_avatar_gallery.tpl b/phpBB2/templates/christmas2/profile_avatar_gallery.tpl deleted file mode 100644 index 9be5375..0000000 --- a/phpBB2/templates/christmas2/profile_avatar_gallery.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}: {S_CATEGORY_SELECT} 
    {avatar_row.avatar_column.AVATAR_NAME}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/christmas2/profile_send_email.tpl b/phpBB2/templates/christmas2/profile_send_email.tpl deleted file mode 100644 index 86c28cb..0000000 --- a/phpBB2/templates/christmas2/profile_send_email.tpl +++ /dev/null @@ -1,74 +0,0 @@ - - - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEND_EMAIL_MSG}
    {L_RECIPIENT}{USERNAME}
    {L_SUBJECT}
    {L_MESSAGE_BODY}
    {L_MESSAGE_BODY_DESC}
    {L_OPTIONS} - - - - -
    {L_CC_EMAIL}
    {S_HIDDEN_FIELDS}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas2/profile_send_pass.tpl b/phpBB2/templates/christmas2/profile_send_pass.tpl deleted file mode 100644 index 8d31aa4..0000000 --- a/phpBB2/templates/christmas2/profile_send_pass.tpl +++ /dev/null @@ -1,35 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - -
    {L_SEND_PASSWORD}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/christmas2/profile_view_body.tpl b/phpBB2/templates/christmas2/profile_view_body.tpl deleted file mode 100644 index a9c3c6f..0000000 --- a/phpBB2/templates/christmas2/profile_view_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - -
    {L_VIEWING_PROFILE}
    {L_AVATAR}{L_ABOUT_USER}
    {AVATAR_IMG}
    {POSTER_RANK}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_JOINED}: {JOINED}
    {L_TOTAL_POSTS}: {POSTS}
    [{POST_PERCENT_STATS} / {POST_DAY_STATS}]
    {L_SEARCH_USER_POSTS}
    {L_LOCATION}: {LOCATION}
    {L_WEBSITE}: {WWW}
    {L_OCCUPATION}: {OCCUPATION}
    {L_INTERESTS}: {INTERESTS}
    -
    {L_CONTACT} {USERNAME}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_EMAIL_ADDRESS}:{EMAIL_IMG}
    {L_PM}:{PM_IMG}
    {L_MESSENGER}:{MSN}
    {L_YAHOO}:{YIM_IMG}
    {L_AIM}:{AIM_IMG}
    {L_ICQ_NUMBER}:
    -
    - - - - - -

    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas2/search_body.tpl b/phpBB2/templates/christmas2/search_body.tpl deleted file mode 100644 index d1316df..0000000 --- a/phpBB2/templates/christmas2/search_body.tpl +++ /dev/null @@ -1,57 +0,0 @@ - -
    - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEARCH_QUERY}
    {L_SEARCH_KEYWORDS}:
    {L_SEARCH_KEYWORDS_EXPLAIN}

    {L_SEARCH_ANY_TERMS}
    {L_SEARCH_ALL_TERMS}
    {L_SEARCH_AUTHOR}:
    {L_SEARCH_AUTHOR_EXPLAIN}
    {L_SEARCH_OPTIONS}
    {L_FORUM}: {L_SEARCH_PREVIOUS}: 
    {L_SEARCH_MESSAGE_TITLE}
    {L_SEARCH_MESSAGE_ONLY}
    {L_CATEGORY}: {L_SORT_BY}: 
    {L_SORT_ASCENDING}
    {L_SORT_DESCENDING}
     
    {L_DISPLAY_RESULTS}: {L_POSTS}{L_TOPICS}{L_RETURN_FIRST} {L_CHARACTERS}
    {S_HIDDEN_FIELDS}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas2/search_results_posts.tpl b/phpBB2/templates/christmas2/search_results_posts.tpl deleted file mode 100644 index fc5f0b8..0000000 --- a/phpBB2/templates/christmas2/search_results_posts.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - -
    {L_AUTHOR}{L_MESSAGE}
      {L_TOPIC}: {searchresults.TOPIC_TITLE}
    {searchresults.POSTER_NAME}
    -
    - {L_REPLIES}: {searchresults.TOPIC_REPLIES}
    - {L_VIEWS}: {searchresults.TOPIC_VIEWS}

    -
    {searchresults.L_MINI_POST_ALT}{L_FORUM}: {searchresults.FORUM_NAME}   {L_POSTED}: {searchresults.POST_DATE}   {L_SUBJECT}: {searchresults.POST_SUBJECT}
    {searchresults.MESSAGE}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas2/search_results_topics.tpl b/phpBB2/templates/christmas2/search_results_topics.tpl deleted file mode 100644 index be0d424..0000000 --- a/phpBB2/templates/christmas2/search_results_topics.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - -
      {L_FORUM}  {L_TOPICS}  {L_AUTHOR}  {L_REPLIES}  {L_VIEWS}  {L_LASTPOST} 
    {searchresults.L_TOPIC_FOLDER_ALT}{searchresults.FORUM_NAME}{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}{searchresults.TOPIC_TITLE}
    {searchresults.GOTO_PAGE}
    {searchresults.TOPIC_AUTHOR}{searchresults.REPLIES}{searchresults.VIEWS}{searchresults.LAST_POST_TIME}
    {searchresults.LAST_POST_AUTHOR} {searchresults.LAST_POST_IMG}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmas2/search_username.tpl b/phpBB2/templates/christmas2/search_username.tpl deleted file mode 100644 index 611ec3f..0000000 --- a/phpBB2/templates/christmas2/search_username.tpl +++ /dev/null @@ -1,30 +0,0 @@ - - - -
    - - - - -
    - - - - - - -
    {L_SEARCH_USERNAME}

     

    {L_SEARCH_EXPLAIN}
    - - {L_UPDATE_USERNAME}
     

    - -
    {L_CLOSE_WINDOW}
    -
    diff --git a/phpBB2/templates/christmas2/simple_footer.tpl b/phpBB2/templates/christmas2/simple_footer.tpl deleted file mode 100644 index 68c2b00..0000000 --- a/phpBB2/templates/christmas2/simple_footer.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    - -Powered by phpBB {PHPBB_VERSION} © 2001,2002 phpBB Group
    - - - - - - diff --git a/phpBB2/templates/christmas2/simple_header.tpl b/phpBB2/templates/christmas2/simple_header.tpl deleted file mode 100644 index 6e2da20..0000000 --- a/phpBB2/templates/christmas2/simple_header.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - -{META} -{SITENAME} :: {PAGE_TITLE} - - - - - - diff --git a/phpBB2/templates/christmas2/theme_info.cfg b/phpBB2/templates/christmas2/theme_info.cfg deleted file mode 100644 index adedbe8..0000000 --- a/phpBB2/templates/christmas2/theme_info.cfg +++ /dev/null @@ -1,51 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2/templates/christmas2/viewforum_body.tpl b/phpBB2/templates/christmas2/viewforum_body.tpl deleted file mode 100644 index b1414f7..0000000 --- a/phpBB2/templates/christmas2/viewforum_body.tpl +++ /dev/null @@ -1,98 +0,0 @@ - -
    - - - - - - - - - - -
    {FORUM_NAME}
    {L_MODERATOR}: {MODERATORS}

    {LOGGED_IN_USER_LIST}
    {PAGINATION}
    {L_POST_NEW_TOPIC}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_TOPICS}  {L_REPLIES}  {L_AUTHOR}  {L_VIEWS}  {L_LASTPOST} 
    {topicrow.L_TOPIC_FOLDER_ALT}{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}
    - {topicrow.GOTO_PAGE}
    {topicrow.REPLIES}{topicrow.TOPIC_AUTHOR}{topicrow.VIEWS}{topicrow.LAST_POST_TIME}
    {topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}
    {L_NO_TOPICS}
    {L_DISPLAY_TOPICS}: {S_SELECT_TOPIC_DAYS}  - -
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_INDEX} -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    -
    - - - - - -
    {JUMPBOX}
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_ANNOUNCEMENT}{L_ANNOUNCEMENT}
    {L_NEW_POSTS_HOT}{L_NEW_POSTS_HOT}  {L_NO_NEW_POSTS_HOT}{L_NO_NEW_POSTS_HOT}  {L_STICKY}{L_STICKY}
    {L_NEW_POSTS_LOCKED}{L_NEW_POSTS_LOCKED}  {L_NO_NEW_POSTS_LOCKED}{L_NO_NEW_POSTS_LOCKED}
    {S_AUTH_LIST}
    diff --git a/phpBB2/templates/christmas2/viewonline_body.tpl b/phpBB2/templates/christmas2/viewonline_body.tpl deleted file mode 100644 index 5d0cacb..0000000 --- a/phpBB2/templates/christmas2/viewonline_body.tpl +++ /dev/null @@ -1,53 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_LAST_UPDATE}  {L_FORUM_LOCATION} 
    {TOTAL_REGISTERED_USERS_ONLINE}
     {reg_user_row.USERNAME}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION} 
    .
    {TOTAL_GUEST_USERS_ONLINE}
     {guest_user_row.USERNAME}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION} 
    - - - - - - -
    {L_ONLINE_EXPLAIN}{S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    - diff --git a/phpBB2/templates/christmas2/viewtopic_body.tpl b/phpBB2/templates/christmas2/viewtopic_body.tpl deleted file mode 100644 index 91c0894..0000000 --- a/phpBB2/templates/christmas2/viewtopic_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {TOPIC_TITLE}
    - {PAGINATION}
    -  
    - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}
    - - - - - - {POLL_DISPLAY} - - - - - - - - - - - - - - - - - - - - -
    {L_VIEW_PREVIOUS_TOPIC} :: {L_VIEW_NEXT_TOPIC}  
    {L_AUTHOR}{L_MESSAGE}
    {postrow.POSTER_NAME}
    {postrow.POSTER_RANK}
    {postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}

    {postrow.POSTER_JOINED}
    {postrow.POSTER_POSTS}
    {postrow.POSTER_FROM}

    - - - - - - - - - - -
    {postrow.L_MINI_POST_ALT}{L_POSTED}: {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}

    {postrow.MESSAGE}{postrow.SIGNATURE}{postrow.EDITED_MESSAGE}
    {L_BACK_TO_TOP} - - - -
    {postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}
    - - - -
    {L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} 
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    - - - - - - -
    {S_WATCH_TOPIC}
    -  
    - {S_TOPIC_ADMIN}
    {JUMPBOX}{S_AUTH_LIST}
    diff --git a/phpBB2/templates/christmas2/viewtopic_poll_ballot.tpl b/phpBB2/templates/christmas2/viewtopic_poll_ballot.tpl deleted file mode 100644 index 1e0cb21..0000000 --- a/phpBB2/templates/christmas2/viewtopic_poll_ballot.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -
    - - - - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - -
     {poll_option.POLL_OPTION_CAPTION}
    - -
    {L_VIEW_RESULTS}
    {S_HIDDEN_FIELDS}
    - \ No newline at end of file diff --git a/phpBB2/templates/christmas2/viewtopic_poll_result.tpl b/phpBB2/templates/christmas2/viewtopic_poll_result.tpl deleted file mode 100644 index d841400..0000000 --- a/phpBB2/templates/christmas2/viewtopic_poll_result.tpl +++ /dev/null @@ -1,36 +0,0 @@ - - -
    - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - - - - -
    {poll_option.POLL_OPTION_CAPTION} - - - - - - -
    {poll_option.POLL_OPTION_PERCENT}
    -
     {poll_option.POLL_OPTION_PERCENT} [ {poll_option.POLL_OPTION_RESULT} ]
    -
    {L_TOTAL_VOTES} : {TOTAL_VOTES}
    -
    - - diff --git a/phpBB2/templates/christmasWithoutSnow/admin/admin_message_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/admin_message_body.tpl deleted file mode 100644 index 68e69ca..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/admin_message_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    - - - - - - - - -
    {MESSAGE_TITLE}
    {MESSAGE_TEXT}
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/auth_forum_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/auth_forum_body.tpl deleted file mode 100644 index 7e58992..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/auth_forum_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - - - - - - - - -
    {forum_auth_titles.CELL_TITLE}
    {forum_auth_data.S_AUTH_LEVELS_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/auth_select_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/auth_select_body.tpl deleted file mode 100644 index b1fdd98..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/auth_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -
    - - - - - - -
    {L_AUTH_SELECT}
    {S_HIDDEN_FIELDS}{S_AUTH_SELECT}   
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/auth_ug_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/auth_ug_body.tpl deleted file mode 100644 index 78c8e60..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/auth_ug_body.tpl +++ /dev/null @@ -1,49 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_USER_OR_GROUPNAME}: {USERNAME}

    - -
    - - -

    {USER_LEVEL}

    -

    {USER_GROUP_MEMBERSHIPS}

    - - - -

    {GROUP_MEMBERSHIP}

    - - -

    {L_PERMISSIONS}

    - -

    {L_AUTH_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM}{acltype.L_UG_ACL_TYPE}{L_MODERATOR_STATUS}
    {forums.FORUM_NAME}{forums.aclvalues.S_ACL_SELECT}{forums.S_MOD_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/board_config_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/board_config_body.tpl deleted file mode 100644 index 26515ed..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/board_config_body.tpl +++ /dev/null @@ -1,248 +0,0 @@ - -

    {L_CONFIGURATION_TITLE}

    - -

    {L_CONFIGURATION_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GENERAL_SETTINGS}
    {L_SERVER_NAME}
    {L_SERVER_PORT}
    {L_SERVER_PORT_EXPLAIN}
    {L_SCRIPT_PATH}
    {L_SCRIPT_PATH_EXPLAIN}
    {L_SITE_NAME}
    {L_SITE_NAME_EXPLAIN}
    {L_SITE_DESCRIPTION}
    {L_DISABLE_BOARD}
    {L_DISABLE_BOARD_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ACCT_ACTIVATION}{L_NONE}   {L_USER}   {L_ADMIN}
    {L_BOARD_EMAIL_FORM}
    {L_BOARD_EMAIL_FORM_EXPLAIN}
    {L_ENABLED}   {L_DISABLED}
    {L_FLOOD_INTERVAL}
    {L_FLOOD_INTERVAL_EXPLAIN}
    {L_TOPICS_PER_PAGE}
    {L_POSTS_PER_PAGE}
    {L_HOT_THRESHOLD}
    {L_DEFAULT_STYLE}{STYLE_SELECT}
    {L_OVERRIDE_STYLE}
    {L_OVERRIDE_STYLE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_DEFAULT_LANGUAGE}{LANG_SELECT}
    {L_DATE_FORMAT}
    {L_DATE_FORMAT_EXPLAIN}
    {L_SYSTEM_TIMEZONE}{TIMEZONE_SELECT}
    {L_ENABLE_GZIP} {L_YES}   {L_NO}
    {L_ENABLE_PRUNE} {L_YES}   {L_NO}
    {L_COOKIE_SETTINGS}
    {L_COOKIE_SETTINGS_EXPLAIN}
    {L_COOKIE_DOMAIN}
    {L_COOKIE_NAME}
    {L_COOKIE_PATH}
    {L_COOKIE_SECURE}
    {L_COOKIE_SECURE_EXPLAIN}
    {L_DISABLED}   {L_ENABLED}
    {L_SESSION_LENGTH}
    {L_PRIVATE_MESSAGING}
    {L_DISABLE_PRIVATE_MESSAGING}{L_ENABLED}   {L_DISABLED}
    {L_INBOX_LIMIT}
    {L_SENTBOX_LIMIT}
    {L_SAVEBOX_LIMIT}
    {L_ABILITIES_SETTINGS}
    {L_MAX_POLL_OPTIONS}
    {L_ALLOW_HTML} {L_YES}   {L_NO}
    {L_ALLOWED_TAGS}
    {L_ALLOWED_TAGS_EXPLAIN}
    {L_ALLOW_BBCODE} {L_YES}   {L_NO}
    {L_ALLOW_SMILIES} {L_YES}   {L_NO}
    {L_SMILIES_PATH}
    {L_SMILIES_PATH_EXPLAIN}
    {L_ALLOW_SIG} {L_YES}   {L_NO}
    {L_MAX_SIG_LENGTH}
    {L_MAX_SIG_LENGTH_EXPLAIN}
    {L_ALLOW_NAME_CHANGE} {L_YES}   {L_NO}
    {L_AVATAR_SETTINGS}
    {L_ALLOW_LOCAL} {L_YES}   {L_NO}
    {L_ALLOW_REMOTE}
    {L_ALLOW_REMOTE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ALLOW_UPLOAD} {L_YES}   {L_NO}
    {L_MAX_FILESIZE}
    {L_MAX_FILESIZE_EXPLAIN}
    Bytes
    {L_MAX_AVATAR_SIZE}
    - {L_MAX_AVATAR_SIZE_EXPLAIN} -
    x
    {L_AVATAR_STORAGE_PATH}
    {L_AVATAR_STORAGE_PATH_EXPLAIN}
    {L_AVATAR_GALLERY_PATH}
    {L_AVATAR_GALLERY_PATH_EXPLAIN}
    {L_COPPA_SETTINGS}
    {L_COPPA_FAX}
    {L_COPPA_MAIL}
    {L_COPPA_MAIL_EXPLAIN}
    {L_EMAIL_SETTINGS}
    {L_ADMIN_EMAIL}
    {L_EMAIL_SIG}
    {L_EMAIL_SIG_EXPLAIN}
    {L_USE_SMTP}
    {L_USE_SMTP_EXPLAIN}
    {L_YES}   {L_NO}
    {L_SMTP_SERVER}
    {L_SMTP_USERNAME}
    {L_SMTP_USERNAME_EXPLAIN}
    {L_SMTP_PASSWORD}
    {L_SMTP_PASSWORD_EXPLAIN}
    {S_HIDDEN_FIELDS}   -
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/category_edit_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/category_edit_body.tpl deleted file mode 100644 index 8fed1c9..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/category_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_EDIT_CATEGORY}

    - -

    {L_EDIT_CATEGORY_EXPLAIN}

    - -
    - - - - - - - - - - - -
    {L_EDIT_CATEGORY}
    {L_CATEGORY}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/db_utils_backup_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/db_utils_backup_body.tpl deleted file mode 100644 index 8ee6ab9..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/db_utils_backup_body.tpl +++ /dev/null @@ -1,33 +0,0 @@ - -

    {L_DATABASE_BACKUP}

    - -

    {L_BACKUP_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BACKUP_OPTIONS}
    {L_FULL_BACKUP}
    {L_STRUCTURE_BACKUP}
    {L_DATA_BACKUP}
    {L_ADDITIONAL_TABLES}
    {L_GZIP_COMPRESS}{L_NO}  {L_YES}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/db_utils_restore_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/db_utils_restore_body.tpl deleted file mode 100644 index 13a74dd..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/db_utils_restore_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_DATABASE_RESTORE}

    - -

    {L_RESTORE_EXPLAIN}

    - -
    - - - - - - -
    {L_SELECT_FILE}
       {S_HIDDEN_FIELDS} 
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/disallow_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/disallow_body.tpl deleted file mode 100644 index ea269f6..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/disallow_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_DISALLOW_TITLE}

    - -

    {L_DISALLOW_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_ADD_DISALLOW}
    {L_USERNAME}
    {L_ADD_EXPLAIN}
     
    {L_DELETE_DISALLOW}
    {L_USERNAME}
    {L_DELETE_EXPLAIN}
    {S_DISALLOW_SELECT} 
     
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/forum_admin_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/forum_admin_body.tpl deleted file mode 100644 index c06388a..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/forum_admin_body.tpl +++ /dev/null @@ -1,39 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_TITLE}
    {catrow.CAT_DESC}{L_EDIT}{L_DELETE}{L_MOVE_UP} {L_MOVE_DOWN} 
    {catrow.forumrow.FORUM_NAME}
    {catrow.forumrow.FORUM_DESC}
    {catrow.forumrow.NUM_TOPICS}{catrow.forumrow.NUM_POSTS}{L_EDIT}{L_DELETE}{L_MOVE_UP}
    {L_MOVE_DOWN}
    {L_RESYNC}
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/forum_delete_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/forum_delete_body.tpl deleted file mode 100644 index 4a26710..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/forum_delete_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_FORUM_DELETE}

    - -

    {L_FORUM_DELETE_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - -
    {L_FORUM_DELETE}
    {L_FORUM_NAME}{NAME}
    {L_MOVE_CONTENTS}{S_SELECT_TO}
    {S_HIDDEN_FIELDS}
    -
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/forum_edit_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/forum_edit_body.tpl deleted file mode 100644 index 7f56bbe..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/forum_edit_body.tpl +++ /dev/null @@ -1,50 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_SETTINGS}
    {L_FORUM_NAME}
    {L_FORUM_DESCRIPTION}
    {L_CATEGORY}
    {L_FORUM_STATUS}
    {L_AUTO_PRUNE} - - - - - - - - - - - - -
    {L_ENABLED}
    {L_PRUNE_DAYS}  {L_DAYS}
    {L_PRUNE_FREQ}  {L_DAYS}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/forum_prune_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/forum_prune_body.tpl deleted file mode 100644 index 56a2e02..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/forum_prune_body.tpl +++ /dev/null @@ -1,22 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_FORUM_PRUNE_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - -
    {L_FORUM_PRUNE}
    {S_PRUNE_DATA}
    {S_HIDDEN_VARS} - -
    -
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/forum_prune_result_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/forum_prune_result_body.tpl deleted file mode 100644 index 10e6d06..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/forum_prune_result_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_PRUNE_RESULT}

    - - - - - - - - - - - - - - -
    {L_FORUM}{L_TOPICS_PRUNED}{L_POSTS_PRUNED}
    {prune_results.FORUM_NAME}{prune_results.FORUM_TOPICS}{prune_results.FORUM_POSTS}
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/forum_prune_select_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/forum_prune_select_body.tpl deleted file mode 100644 index d59e7f7..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/forum_prune_select_body.tpl +++ /dev/null @@ -1,12 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -
    - - - - - - - -
    {L_SELECT_FORUM}
    {S_FORUMS_SELECT}   
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/group_edit_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/group_edit_body.tpl deleted file mode 100644 index ed96b17..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/group_edit_body.tpl +++ /dev/null @@ -1,56 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_EDIT_DELETE}
    {L_ITEMS_REQUIRED}
    {L_GROUP_NAME}: - -
    {L_GROUP_DESCRIPTION}: - -
    {L_GROUP_MODERATOR}:  
    {L_GROUP_STATUS}: - {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}
    {L_DELETE_MODERATOR} -
    - {L_DELETE_MODERATOR_EXPLAIN}
    - - {L_YES}
    {L_GROUP_DELETE}: - - {L_GROUP_DELETE_CHECK}
    - -    - -
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/group_select_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/group_select_body.tpl deleted file mode 100644 index 7428918..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/group_select_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -

    {L_GROUP_EXPLAIN}

    - -
    - - - - - - - - - - - - -
    {L_GROUP_SELECT}
    {S_GROUP_SELECT}   
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/index.htm b/phpBB2/templates/christmasWithoutSnow/admin/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2/templates/christmasWithoutSnow/admin/index_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/index_body.tpl deleted file mode 100644 index 5cb4277..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/index_body.tpl +++ /dev/null @@ -1,79 +0,0 @@ - -

    {L_WELCOME}

    - -

    {L_ADMIN_INTRO}

    - -

    {L_FORUM_STATS}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_STATISTIC}dddddd{L_VALUE}{L_STATISTIC}{L_VALUE}
    {L_NUMBER_POSTS}:{NUMBER_OF_POSTS}{L_POSTS_PER_DAY}:{POSTS_PER_DAY}
    {L_NUMBER_TOPICS}:{NUMBER_OF_TOPICS}{L_TOPICS_PER_DAY}:{TOPICS_PER_DAY}
    {L_NUMBER_USERS}:{NUMBER_OF_USERS}{L_USERS_PER_DAY}:{USERS_PER_DAY}
    {L_BOARD_STARTED}:{START_DATE}{L_AVATAR_DIR_SIZE}:{AVATAR_DIR_SIZE}
    {L_DB_SIZE}:{DB_SIZE}{L_GZIP_COMPRESSION}:{GZIP_COMPRESSION}
    -

    {L_WHO_IS_ONLINE}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_STARTED}  {L_LAST_UPDATE}  {L_FORUM_LOCATION}  {L_IP_ADDRESS} 
     {reg_user_row.USERNAME}  {reg_user_row.STARTED}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION}  {reg_user_row.IP_ADDRESS} 
    .
     {guest_user_row.USERNAME}  {guest_user_row.STARTED}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION}  {guest_user_row.IP_ADDRESS} 
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/index_frameset.tpl b/phpBB2/templates/christmasWithoutSnow/admin/index_frameset.tpl deleted file mode 100644 index fef79af..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/index_frameset.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - -phpBB Administration - - - - - - - - - - <body bgcolor="#FFFFFF" text="#000000"> - <p>Sorry, your browser doesn't seem to support frames</p> - </body> - - \ No newline at end of file diff --git a/phpBB2/templates/christmasWithoutSnow/admin/index_navigate.tpl b/phpBB2/templates/christmasWithoutSnow/admin/index_navigate.tpl deleted file mode 100644 index ac18bdd..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/index_navigate.tpl +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_ADMIN}
    {L_ADMIN_INDEX}
    {L_FORUM_INDEX}
    {L_PREVIEW_FORUM}
    {catrow.ADMIN_CATEGORY}
    {catrow.modulerow.ADMIN_MODULE} -
    -
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/page_footer.tpl b/phpBB2/templates/christmasWithoutSnow/admin/page_footer.tpl deleted file mode 100644 index 278b360..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/page_footer.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - -
    Powered by phpBB {PHPBB_VERSION} © 2001 phpBB Group
    {TRANSLATION_INFO}
    - - - \ No newline at end of file diff --git a/phpBB2/templates/christmasWithoutSnow/admin/page_header.tpl b/phpBB2/templates/christmasWithoutSnow/admin/page_header.tpl deleted file mode 100644 index 6246e8f..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/page_header.tpl +++ /dev/null @@ -1,10 +0,0 @@ - - - -{META} - - -{SITENAME} - {L_PHPBB_ADMIN} - - - diff --git a/phpBB2/templates/christmasWithoutSnow/admin/ranks_edit_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/ranks_edit_body.tpl deleted file mode 100644 index b3974ea..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/ranks_edit_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - - - - -
    {L_RANKS_TITLE}
    {L_RANK_TITLE}:
    {L_RANK_SPECIAL}{L_YES}    {L_NO}
    {L_RANK_MINIMUM}:
    {L_RANK_IMAGE}:
    - {L_RANK_IMAGE_EXPLAIN}

    {IMAGE_DISPLAY}
      
    -{S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/ranks_list_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/ranks_list_body.tpl deleted file mode 100644 index 368326f..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/ranks_list_body.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - -
    {L_RANK}{L_RANK_MINIMUM}{L_SPECIAL_RANK}{L_EDIT}{L_DELETE}
    {ranks.RANK}{ranks.RANK_MIN}{ranks.SPECIAL_RANK}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/smile_edit_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/smile_edit_body.tpl deleted file mode 100644 index b453afc..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/smile_edit_body.tpl +++ /dev/null @@ -1,34 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - - - -
    - - - - - - - - - - - - - - - - - - -
    {L_SMILEY_CONFIG}
    {L_SMILEY_CODE}
    {L_SMILEY_URL}    
    {L_SMILEY_EMOTION}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/smile_import_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/smile_import_body.tpl deleted file mode 100644 index 9881cb1..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/smile_import_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_SMILEY_IMPORT}
    {L_SELECT_LBL}{S_SMILE_SELECT}
    {L_DEL_EXISTING}
    {L_CONFLICTS}
    {L_REPLACE_EXISTING}   {L_KEEP_EXISTING}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/smile_list_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/smile_list_body.tpl deleted file mode 100644 index ae85ad9..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/smile_list_body.tpl +++ /dev/null @@ -1,25 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - -
    {L_CODE}{L_SMILE}{L_EMOT}{L_ACTION}
    {smiles.CODE}{smiles.CODE}{smiles.EMOT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}    
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/styles_addnew_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/styles_addnew_body.tpl deleted file mode 100644 index 6240a79..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/styles_addnew_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_ADD_TEXT}

    - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_ACTION}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_INSTALL}
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/styles_edit_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/styles_edit_body.tpl deleted file mode 100644 index 08cf721..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/styles_edit_body.tpl +++ /dev/null @@ -1,246 +0,0 @@ - -

    {L_THEMES_TITLE}

    - -

    {L_THEMES_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_THEME_SETTINGS}
    {L_THEME_NAME}:
    {L_TEMPLATE}:{S_TEMPLATE_SELECT}
    {L_THEME_ELEMENT}{L_VALUE}{L_SIMPLE_NAME}
    {L_STYLESHEET}:
    Filename for CSS stylesheet to use for this theme.
     
    {L_BACKGROUND_IMAGE}: 
    {L_BACKGROUND_COLOR}: 
    {L_BODY_TEXT_COLOR}: 
    {L_BODY_LINK_COLOR}: 
    {L_BODY_VLINK_COLOR}: 
    {L_BODY_ALINK_COLOR}: 
    {L_BODY_HLINK_COLOR}: 
    {L_TR_COLOR1}: -
    {L_TR_COLOR2}: -
    {L_TR_COLOR3}: -
    {L_TR_CLASS1}: -
    {L_TR_CLASS2}: -
    {L_TR_CLASS3}: -
    {L_TH_COLOR1}: -
    {L_TH_COLOR2}: -
    {L_TH_COLOR3}: -
    {L_TH_CLASS1}: -
    {L_TH_CLASS2}: -
    {L_TH_CLASS3}: -
    {L_TD_COLOR1}: -
    {L_TD_COLOR2}: -
    {L_TD_COLOR3}: -
    {L_TD_CLASS1}: -
    {L_TD_CLASS2}: -
    {L_TD_CLASS3}: -
    {L_FONTFACE_1}: -
    {L_FONTFACE_2}: -
    {L_FONTFACE_3}: -
    {L_FONTSIZE_1}: -
    {L_FONTSIZE_2}: -
    {L_FONTSIZE_3}: -
    {L_FONTCOLOR_1}: -
    {L_FONTCOLOR_2}: -
    {L_FONTCOLOR_3}: -
    {L_SPAN_CLASS_1}: -
    {L_SPAN_CLASS_2}: -
    {L_SPAN_CLASS_3}: -
    {S_HIDDEN_FIELDS} -
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/styles_exporter.tpl b/phpBB2/templates/christmasWithoutSnow/admin/styles_exporter.tpl deleted file mode 100644 index 2056260..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/styles_exporter.tpl +++ /dev/null @@ -1,14 +0,0 @@ - -

    {L_STYLE_EXPORTER}

    - -

    {L_EXPORTER_EXPLAIN}

    - -
    - - - - - - - -
    {L_TEMPLATE_SELECT}
    {S_TEMPLATE_SELECT}   
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/styles_list_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/styles_list_body.tpl deleted file mode 100644 index 915fe49..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/styles_list_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_TEXT}

    - - - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_EDIT}{L_DELETE}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/user_avatar_gallery.tpl b/phpBB2/templates/christmasWithoutSnow/admin/user_avatar_gallery.tpl deleted file mode 100644 index db861ee..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/user_avatar_gallery.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}:  
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/user_ban_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/user_ban_body.tpl deleted file mode 100644 index c805f7b..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/user_ban_body.tpl +++ /dev/null @@ -1,54 +0,0 @@ - -

    {L_BAN_TITLE}

    - -

    {L_BAN_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BAN_USER}
    {L_USERNAME}: {S_HIDDEN_FIELDS}
    {L_UNBAN_USER}
    {L_USERNAME}:
    {L_UNBAN_USER_EXPLAIN}
    {S_UNBAN_USERLIST_SELECT}
    {L_BAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_BAN_IP_EXPLAIN}
    {L_UNBAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_UNBAN_IP_EXPLAIN}
    {S_UNBAN_IPLIST_SELECT}
    {L_BAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_BAN_EMAIL_EXPLAIN}
    {L_UNBAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_UNBAN_EMAIL_EXPLAIN}
    {S_UNBAN_EMAILLIST_SELECT}
      
    - -

    {L_BAN_EXPLAIN_WARN}

    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/user_edit_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/user_edit_body.tpl deleted file mode 100644 index 359bdeb..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/user_edit_body.tpl +++ /dev/null @@ -1,310 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -{ERROR_BOX} - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER} - -
    {L_AIM} - -
    {L_MESSENGER} - -
    {L_YAHOO} - -
    {L_WEBSITE} - -
    {L_LOCATION} - -
    {L_OCCUPATION} - -
    {L_INTERESTS} - -
    {L_SIGNATURE}
    - {L_SIGNATURE_EXPLAIN}
    -
    - {HTML_STATUS}
    - {BBCODE_STATUS}
    - {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL} - - {L_YES}   - - {L_NO}
    {L_HIDE_USER} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES} - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}{LANGUAGE_SELECT}
    {L_BOARD_STYLE}{STYLE_SELECT}
    {L_TIMEZONE}{TIMEZONE_SELECT}
    {L_DATE_FORMAT}
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    - {AVATAR}
    - -  {L_DELETE_AVATAR}
    -
    {L_UPLOAD_AVATAR_FILE} - - -
    {L_UPLOAD_AVATAR_URL} - -
    {L_LINK_REMOTE_AVATAR} - -
    {L_AVATAR_GALLERY} - -
     
    {L_SPECIAL}
    {L_SPECIAL_EXPLAIN}
    {L_USER_ACTIVE} - - {L_YES}   - - {L_NO}
    {L_ALLOW_PM} - - {L_YES}   - - {L_NO}
    {L_ALLOW_AVATAR} - - {L_YES}   - - {L_NO}
    {L_SELECT_RANK}
    {L_DELETE_USER}? - - {L_DELETE_USER_EXPLAIN}
    {S_HIDDEN_FIELDS} - -    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/user_email_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/user_email_body.tpl deleted file mode 100644 index 5f52658..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/user_email_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_EMAIL_TITLE}

    - -

    {L_EMAIL_EXPLAIN}

    - -
    - -{ERROR_BOX} - - - - - - - - - - - - - - - - - - -
    {L_COMPOSE}
    {L_RECIPIENTS}{S_GROUP_SELECT}
    {L_EMAIL_SUBJECT}
    {L_EMAIL_MSG} - -
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/user_select_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/user_select_body.tpl deleted file mode 100644 index 5d7a31b..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/user_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - -
    {L_USER_SELECT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/words_edit_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/words_edit_body.tpl deleted file mode 100644 index 569a94f..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/words_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - -
    {L_WORD_CENSOR}
    {L_WORD}
    {L_REPLACEMENT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmasWithoutSnow/admin/words_list_body.tpl b/phpBB2/templates/christmasWithoutSnow/admin/words_list_body.tpl deleted file mode 100644 index 40acf81..0000000 --- a/phpBB2/templates/christmasWithoutSnow/admin/words_list_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - - - -
    {L_WORD}{L_REPLACEMENT}{L_ACTION}
    {words.WORD}{words.REPLACEMENT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/christmasWithoutSnow/agreement.tpl b/phpBB2/templates/christmasWithoutSnow/agreement.tpl deleted file mode 100644 index 5635a35..0000000 --- a/phpBB2/templates/christmasWithoutSnow/agreement.tpl +++ /dev/null @@ -1,19 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - -
    {SITENAME} - {REGISTRATION}
    - - - -

    {AGREEMENT}



    diff --git a/phpBB2/templates/christmasWithoutSnow/bbcode.tpl b/phpBB2/templates/christmasWithoutSnow/bbcode.tpl deleted file mode 100644 index caef76b..0000000 --- a/phpBB2/templates/christmasWithoutSnow/bbcode.tpl +++ /dev/null @@ -1,60 +0,0 @@ -
      -
    - -
      -
    - -
  • - - - - - - - - - -
    {USERNAME} {L_WROTE}:
    - - - - - - - - -
    {L_QUOTE}:
    -
    - - - - - - - - - - -
    {L_CODE}:
    -
    - - - - - - - - - - - - - - - - - - - - -{DESCRIPTION} - -{EMAIL} diff --git a/phpBB2/templates/christmasWithoutSnow/christmasWithoutSnow.cfg b/phpBB2/templates/christmasWithoutSnow/christmasWithoutSnow.cfg deleted file mode 100644 index bd84476..0000000 --- a/phpBB2/templates/christmasWithoutSnow/christmasWithoutSnow.cfg +++ /dev/null @@ -1,101 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2/templates/christmasWithoutSnow/christmasWithoutSnow.css b/phpBB2/templates/christmasWithoutSnow/christmasWithoutSnow.css deleted file mode 100644 index f4cd45c..0000000 --- a/phpBB2/templates/christmasWithoutSnow/christmasWithoutSnow.css +++ /dev/null @@ -1,196 +0,0 @@ -/* - The original subSilver Theme for phpBB version 2+ - Created by subBlue design - http://www.subBlue.com -*/ - - - /* General page style. The scroll bar colours only visible in IE5.5+ */ -body { - background-color: #800000; -scrollbar-3dlight-color:#006600; -scrollbar-arrow-color:#FFFF80; -scrollbar-darkshadow-color:#066000; -scrollbar-face-color:#066000; -scrollbar-highlight-color:#008000; -scrollbar-shadow-color:##008000; -scrollbar-track-color:#008000} -} - -/* General font families for common tags */ -font,th,td,p { font:11px;font-family: Verdana, Arial, Helvetica, sans-serif } -a:link,a:active,a:visited { color : #FFFFFF; text-decoration: none; font-weight: bold; } -a:hover { text-decoration: underline; color : #C0FFC0; } -hr { height: 0px; border: solid #FFFFFF 0px; border-top-width: 1px;} - - -/* This is the border line & background colour round the entire page */ -.bodyline{background:#066000;color:#008000;border:8px ridge #C0FFC0} - -/* This is the outline round the main forum tables */ -.forumline{background:#33CC00;color:#008000;border:3px ridge #C0FFC0} - - -/* Main table cell colours and backgrounds */ -td.row1{background:#008000; color:#ffffff} -td.row2{background:#066000; color:#ffffff} -td.row3{background:#008000; color:#ffffff} - - -/* - This is for the table cell above the Topics, Post & Last posts on the index.php page - By default this is the fading out gradiated silver background. - However, you could replace this with a bitmap specific for each forum -*/ -td.rowpic{background:#008000 repeat-y} - -/* Header cells - the blue and silver gradient backgrounds */ -th{background:url(images/cellpic3.gif) #066000;color:#FFFFFF;font-size:12px; -font-weight:bold;height:20px;white-space:nowrap} - -td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { - background-image: url(images/cellpic1.gif); background-color:#066000; - color:#FFFFFF; height: 25px; -} - - -/* - Setting additional nice inner borders for the main table cells. - The names indicate which sides the border will be on. - Don't worry if you don't understand this, just ignore it :-) -*/ -td.cat,td.catHead,td.catBottom { - height: 29px; - border-width: 0px 0px 0px 0px; -} -th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { - font-weight: bold; border: #FFFFFF; height: 28px; } -td.row3Right,td.spaceRow { - background-color: #008000; border: #008000; border-style: solid; } - -th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } -th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } -th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } -th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } -th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } -th.thTop { border-width: 1px 0px 0px 0px; } -th.thCornerL { border-width: 1px 0px 0px 1px; } -th.thCornerR { border-width: 1px 1px 0px 0px; } - - -/* The largest text used in the index page title and toptic title etc. */ -.maintitle,h1,h2 { - font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, - sans-serif;text-decoration: none; line-height : 120%; color : #FFFFFF; -} - - -/* General text */ -.gen { font-size : 11px; } -.genmed { font-size : 11px; } -.gensmall { font-size : 10px; } -.gen,.genmed,.gensmall { color : #FFFFFF; } -a.gen,a.genmed,a.gensmall { color: #FFFFFF; text-decoration: none; } -a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #C0FFC0; text-decoration: underline; } - - -/* The register, login, search etc links at the top of the page */ -.mainmenu { font-size : 11px; color : #FFFFFF } -a.mainmenu { text-decoration: none; color : #FFFFFF; } -a.mainmenu:hover{ text-decoration: none; color : #C0FFC0; } - - -/* Forum category titles */ -.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #FFFFFF} -a.cattitle { text-decoration: none; color : #FFFFFF; } -a.cattitle:hover{ text-decoration: none; color : #C0FFC0; } - - -/* Forum title: Text and link to the forums used in: index.php */ -.forumlink { font-weight: bold; font-size: 12px; color : #FFFFFF; } -a.forumlink { text-decoration: none; color : #FFFFFF; } -a.forumlink:hover{ text-decoration: none; color : #C0FFC0; } - - -/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ -.nav { font-weight: bold; font-size: 11px; color : #FFFFFF;} -a.nav { text-decoration: none; color : #FFFFFF; } -a.nav:hover { text-decoration: none; color : #C0FFC0; } - -.topnav{font-size:10px;background: #e5ebf3 url(images/cellpic1.gif) repeat-x;color:#dd6900; - -/* titles for the topics: could specify viewed link colour too */ -.topictitle { font-weight: bold; font-size: 11px; color : #FFFFFF; } -a.topictitle:link { text-decoration: none; color : #FFFFFF; } -a.topictitle:visited { text-decoration: none; color : #FFFFFF; } -a.topictitle:hover { text-decoration: none; color : #C0FFC0; } - - -/* Name of poster in viewmsg.php and viewtopic.php and other places */ -.name { font-size : 11px; color : #FFFFFF;} - -/* Location, number of posts, post date etc */ -.postdetails { font-size : 10px; color : #FFFFFF; } - - -/* The content of the posts (body of text) */ -.postbody { font-size : 12px;color : #FFFFFF} -a.postlink:link { text-decoration: none; color : #FFFFFF } -a.postlink:visited { text-decoration: none; color : #FFFFFF; } -a.postlink:hover { text-decoration: none; color : #C0FFC0} - - -/* Quote & Code blocks */ -.code{background:#C0FFC0;border:1px dashed #FFFFFF;color:#000000; -font:11px Courier,"Courier New",sans-serif;padding:5px} - -.quote{background:#C0FFC0;border:1px dashed #FFFFFF;color:#000000; -font:bold 11px/125% Verdana,Arial,Helvetica,sans-serif} - - -/* Copyright and bottom info */ -.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; letter-spacing: -1px;} -a.copyright { color: #FFFFFF; text-decoration: none;} -a.copyright:hover { color: #FFFFFF; text-decoration: none;} - - -/* Form elements */ -input,textarea, select { - color : #FFFFFF; - font: normal 11px Verdana, Arial, Helvetica, sans-serif; - border-color : #008000; -} - -/* The text input fields background colour */ -input.post, textarea.post, select {background-color : #066000;} - -input { text-indent : 2px; } - -/* The buttons used for bbCode styling in message post */ -input.button { - background-color : #008000; - color : #FFFFFF; - font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; -} - -/* The main submit button option */ -input.mainoption { - background-color : #008000; - font-weight : bold; -} - -/* None-bold submit button */ -input.liteoption { - background-color : #008000;border-color : #ffffff; - font-weight : normal; -} - -/* This is the line in the posting page which shows the rollover - help line. This is actually a text box, but if set to be the same - colour as the background no one will know ;) -*/ -.helpline { background-color: #008000; border-style: none; } - - -/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ -@import url("formIE.css"); diff --git a/phpBB2/templates/christmasWithoutSnow/confirm_body.tpl b/phpBB2/templates/christmasWithoutSnow/confirm_body.tpl deleted file mode 100644 index f79a643..0000000 --- a/phpBB2/templates/christmasWithoutSnow/confirm_body.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}

    {MESSAGE_TEXT}

    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/error_body.tpl b/phpBB2/templates/christmasWithoutSnow/error_body.tpl deleted file mode 100644 index f211ad0..0000000 --- a/phpBB2/templates/christmasWithoutSnow/error_body.tpl +++ /dev/null @@ -1,18 +0,0 @@ - - - - - -
    - - - - - - - - - -
     
    {ERROR_MESSAGE}
     
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/faq_body.tpl b/phpBB2/templates/christmasWithoutSnow/faq_body.tpl deleted file mode 100644 index 321d945..0000000 --- a/phpBB2/templates/christmasWithoutSnow/faq_body.tpl +++ /dev/null @@ -1,52 +0,0 @@ - - - - - -
    - - - - - - - - - - - -
    {L_FAQ_TITLE}
    - - {faq_block_link.BLOCK_TITLE}
    - - {faq_block_link.faq_row_link.FAQ_LINK}
    - -
    - -
     
    - -
    - - - - - - - - - - - - - - -
    {faq_block.BLOCK_TITLE}
    {faq_block.faq_row.FAQ_QUESTION}
    {faq_block.faq_row.FAQ_ANSWER}
    {L_BACK_TO_TOP}
    - -
    - - - - - - -
    {S_TIMEZONE}

    {JUMPBOX}
    diff --git a/phpBB2/templates/christmasWithoutSnow/formIE.css b/phpBB2/templates/christmasWithoutSnow/formIE.css deleted file mode 100644 index fde54cb..0000000 --- a/phpBB2/templates/christmasWithoutSnow/formIE.css +++ /dev/null @@ -1,19 +0,0 @@ -/* Fancy form styles for IE */ - -input, textarea, select { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -input { text-indent : 2px; } - -input.button { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -.postbody { line-height: 18px} diff --git a/phpBB2/templates/christmasWithoutSnow/groupcp_info_body.tpl b/phpBB2/templates/christmasWithoutSnow/groupcp_info_body.tpl deleted file mode 100644 index 93875fa..0000000 --- a/phpBB2/templates/christmasWithoutSnow/groupcp_info_body.tpl +++ /dev/null @@ -1,128 +0,0 @@ - -
    - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_INFORMATION}
    {L_GROUP_NAME}:{GROUP_NAME}
    {L_GROUP_DESC}:{GROUP_DESC}
    {L_GROUP_MEMBERSHIP}:{GROUP_DETAILS}    - - - - - - -
    {L_GROUP_TYPE}: {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}   
    - -{S_HIDDEN_FIELDS} - -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_GROUP_MODERATOR}
    {MOD_PM_IMG} {MOD_USERNAME}{MOD_POSTS}{MOD_FROM}{MOD_EMAIL_IMG}{MOD_WWW_IMG}  
    {L_GROUP_MEMBERS}
    {member_row.PM_IMG} {member_row.USERNAME}{member_row.POSTS} {member_row.FROM} - {member_row.EMAIL_IMG} {member_row.WWW_IMG} - - - -
    {L_NO_MEMBERS}
    {L_HIDDEN_MEMBERS}
    - -
    - - - - - - -
    - -

    - - {PAGE_NUMBER}
    {S_TIMEZONE}
    {PAGINATION}
    - -{PENDING_USER_BOX} - -{S_HIDDEN_FIELDS}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmasWithoutSnow/groupcp_pending_info.tpl b/phpBB2/templates/christmasWithoutSnow/groupcp_pending_info.tpl deleted file mode 100644 index 68f618c..0000000 --- a/phpBB2/templates/christmasWithoutSnow/groupcp_pending_info.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_PENDING_MEMBERS}
    {pending_members_row.PM_IMG} - {pending_members_row.USERNAME}{pending_members_row.POSTS}{pending_members_row.FROM}{pending_members_row.EMAIL_IMG}{pending_members_row.WWW_IMG}
    - -   - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/groupcp_user_body.tpl b/phpBB2/templates/christmasWithoutSnow/groupcp_user_body.tpl deleted file mode 100644 index 8be36f6..0000000 --- a/phpBB2/templates/christmasWithoutSnow/groupcp_user_body.tpl +++ /dev/null @@ -1,76 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_MEMBERSHIP_DETAILS}
    {L_YOU_BELONG_GROUPS} - - - - - -
    {GROUP_MEMBER_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_PENDING_GROUPS} - - - - - -
    {GROUP_PENDING_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_JOIN_A_GROUP}
    {L_SELECT_A_GROUP} - - - - - -
    {GROUP_LIST_SELECT} - {S_HIDDEN_FIELDS} -
    -
    - - - - - -
    {S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmasWithoutSnow/images/Thumbs.db b/phpBB2/templates/christmasWithoutSnow/images/Thumbs.db deleted file mode 100644 index 0b8d72c..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/Thumbs.db and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/banner.gif b/phpBB2/templates/christmasWithoutSnow/images/banner.gif deleted file mode 100644 index 9b3ab93..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/banner.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/cellpic.gif b/phpBB2/templates/christmasWithoutSnow/images/cellpic.gif deleted file mode 100644 index 58846d0..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/cellpic.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/cellpic1.gif b/phpBB2/templates/christmasWithoutSnow/images/cellpic1.gif deleted file mode 100644 index 44b3430..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/cellpic1.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/cellpic2.jpg b/phpBB2/templates/christmasWithoutSnow/images/cellpic2.jpg deleted file mode 100644 index 764c0e5..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/cellpic2.jpg and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/cellpic3.gif b/phpBB2/templates/christmasWithoutSnow/images/cellpic3.gif deleted file mode 100644 index e27cdfd..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/cellpic3.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/cellpic_bkg.gif b/phpBB2/templates/christmasWithoutSnow/images/cellpic_bkg.gif deleted file mode 100644 index c806b23..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/cellpic_bkg.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/folder.gif b/phpBB2/templates/christmasWithoutSnow/images/folder.gif deleted file mode 100644 index c2e74f5..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/folder.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/folder_announce.gif b/phpBB2/templates/christmasWithoutSnow/images/folder_announce.gif deleted file mode 100644 index b290827..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/folder_announce.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/folder_announce_new.gif b/phpBB2/templates/christmasWithoutSnow/images/folder_announce_new.gif deleted file mode 100644 index b290827..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/folder_announce_new.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/folder_big.gif b/phpBB2/templates/christmasWithoutSnow/images/folder_big.gif deleted file mode 100644 index c2e74f5..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/folder_big.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/folder_hot.gif b/phpBB2/templates/christmasWithoutSnow/images/folder_hot.gif deleted file mode 100644 index 30ed45d..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/folder_hot.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/folder_lock.gif b/phpBB2/templates/christmasWithoutSnow/images/folder_lock.gif deleted file mode 100644 index f782f79..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/folder_lock.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/folder_lock_new.gif b/phpBB2/templates/christmasWithoutSnow/images/folder_lock_new.gif deleted file mode 100644 index c1eb69c..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/folder_lock_new.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/folder_locked_big.gif b/phpBB2/templates/christmasWithoutSnow/images/folder_locked_big.gif deleted file mode 100644 index f782f79..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/folder_locked_big.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/folder_new.gif b/phpBB2/templates/christmasWithoutSnow/images/folder_new.gif deleted file mode 100644 index aea561b..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/folder_new.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/folder_new_big.gif b/phpBB2/templates/christmasWithoutSnow/images/folder_new_big.gif deleted file mode 100644 index aea561b..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/folder_new_big.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/folder_new_hot.gif b/phpBB2/templates/christmasWithoutSnow/images/folder_new_hot.gif deleted file mode 100644 index d326aef..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/folder_new_hot.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/folder_sticky.gif b/phpBB2/templates/christmasWithoutSnow/images/folder_sticky.gif deleted file mode 100644 index a5fadc9..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/folder_sticky.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/folder_sticky_new.gif b/phpBB2/templates/christmasWithoutSnow/images/folder_sticky_new.gif deleted file mode 100644 index a5fadc9..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/folder_sticky_new.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/icon_delete.gif b/phpBB2/templates/christmasWithoutSnow/images/icon_delete.gif deleted file mode 100644 index 4e3fc6c..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/icon_delete.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/icon_latest_reply.gif b/phpBB2/templates/christmasWithoutSnow/images/icon_latest_reply.gif deleted file mode 100644 index b45e57a..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/icon_latest_reply.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/icon_mini.gif b/phpBB2/templates/christmasWithoutSnow/images/icon_mini.gif deleted file mode 100644 index 0108cd3..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/icon_mini.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/icon_minipost.gif b/phpBB2/templates/christmasWithoutSnow/images/icon_minipost.gif deleted file mode 100644 index d172abb..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/icon_minipost.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/icon_minipost_new.gif b/phpBB2/templates/christmasWithoutSnow/images/icon_minipost_new.gif deleted file mode 100644 index 8ec44a1..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/icon_minipost_new.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/icon_newest_reply.gif b/phpBB2/templates/christmasWithoutSnow/images/icon_newest_reply.gif deleted file mode 100644 index eca2861..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/icon_newest_reply.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/index.htm b/phpBB2/templates/christmasWithoutSnow/images/index.htm deleted file mode 100644 index 4c5bb15..0000000 --- a/phpBB2/templates/christmasWithoutSnow/images/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -christmas created by subBlue Design - - - - - - - - - -
    Created by subBlue Design
    - - - \ No newline at end of file diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_aim.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_aim.gif deleted file mode 100644 index a4a0dc5..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_aim.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_delete.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_delete.gif deleted file mode 100644 index 4e3fc6c..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_delete.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_edit.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_edit.gif deleted file mode 100644 index 813d24d..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_edit.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_email.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_email.gif deleted file mode 100644 index 37dbdeb..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_email.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_icq_add.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_icq_add.gif deleted file mode 100644 index b306aea..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_ip.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_ip.gif deleted file mode 100644 index 2645d3e..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_ip.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_msnm.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_msnm.gif deleted file mode 100644 index b6591f6..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_msnm.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_pm.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_pm.gif deleted file mode 100644 index ce2db4e..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_pm.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_profile.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_profile.gif deleted file mode 100644 index 769e6da..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_profile.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_quote.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_quote.gif deleted file mode 100644 index 0f8d473..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_quote.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_search.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_search.gif deleted file mode 100644 index 205c02b..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_search.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_www.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_www.gif deleted file mode 100644 index 6d94cc1..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_www.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_yim.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_yim.gif deleted file mode 100644 index 15d0702..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/icon_yim.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/msg_newpost.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/msg_newpost.gif deleted file mode 100644 index 30d5067..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/msg_newpost.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/post.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/post.gif deleted file mode 100644 index 5f60b0e..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/post.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/reply-locked.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/reply-locked.gif deleted file mode 100644 index 88bf4a5..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/reply-locked.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_english/reply.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_english/reply.gif deleted file mode 100644 index 226021e..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_english/reply.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_aim.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_aim.gif deleted file mode 100644 index a4a0dc5..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_aim.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_delete.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_delete.gif deleted file mode 100644 index 4e3fc6c..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_delete.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_edit.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_edit.gif deleted file mode 100644 index 813d24d..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_edit.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_email.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_email.gif deleted file mode 100644 index 37dbdeb..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_email.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_icq_add.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_icq_add.gif deleted file mode 100644 index b306aea..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_ip.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_ip.gif deleted file mode 100644 index 2645d3e..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_ip.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_msnm.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_msnm.gif deleted file mode 100644 index b6591f6..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_msnm.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_pm.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_pm.gif deleted file mode 100644 index ce2db4e..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_pm.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_profile.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_profile.gif deleted file mode 100644 index 769e6da..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_profile.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_quote.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_quote.gif deleted file mode 100644 index d86b74e..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_quote.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_search.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_search.gif deleted file mode 100644 index 1de9f57..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_search.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_www.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_www.gif deleted file mode 100644 index 6d94cc1..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_www.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_yim.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_yim.gif deleted file mode 100644 index 15d0702..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/icon_yim.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/index.html b/phpBB2/templates/christmasWithoutSnow/images/lang_german/index.html deleted file mode 100644 index bd93b50..0000000 --- a/phpBB2/templates/christmasWithoutSnow/images/lang_german/index.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - -Forum Images :: FI Subsilver Images - German - - - - - - - - - - - - - - -
    FI Subsilver Images - German

     

    - - - - - - - -
    icon_aim.gificon_edit.gificon_email.gificon_icq_add.gificon_msnm.gificon_pm.gificon_profile.gificon_quote.gificon_search.gificon_www.gificon_yim.gificon_ip.gif
    msg_newpost.gifpost.gifreply.gifreply-locked.gif
    -

     

    -

    Close - Window

    -
    - - \ No newline at end of file diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/msg_newpost.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/msg_newpost.gif deleted file mode 100644 index a620bdf..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/msg_newpost.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/post.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/post.gif deleted file mode 100644 index b4f86bc..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/post.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/reply-locked.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/reply-locked.gif deleted file mode 100644 index d23d849..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/reply-locked.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/lang_german/reply.gif b/phpBB2/templates/christmasWithoutSnow/images/lang_german/reply.gif deleted file mode 100644 index f1c8edd..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/lang_german/reply.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/logo_phpBB.gif b/phpBB2/templates/christmasWithoutSnow/images/logo_phpBB.gif deleted file mode 100644 index f6d87ac..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/logo_phpBB.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/logo_phpBB2.gif b/phpBB2/templates/christmasWithoutSnow/images/logo_phpBB2.gif deleted file mode 100644 index 221b50d..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/logo_phpBB2.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/logo_phpBB_med.gif b/phpBB2/templates/christmasWithoutSnow/images/logo_phpBB_med.gif deleted file mode 100644 index 5b4e6b3..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/logo_phpBB_med.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/msg_inbox.gif b/phpBB2/templates/christmasWithoutSnow/images/msg_inbox.gif deleted file mode 100644 index dc455b6..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/msg_inbox.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/msg_outbox.gif b/phpBB2/templates/christmasWithoutSnow/images/msg_outbox.gif deleted file mode 100644 index a7b19b8..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/msg_outbox.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/msg_savebox.gif b/phpBB2/templates/christmasWithoutSnow/images/msg_savebox.gif deleted file mode 100644 index 8a5d7d2..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/msg_savebox.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/msg_sentbox.gif b/phpBB2/templates/christmasWithoutSnow/images/msg_sentbox.gif deleted file mode 100644 index b157808..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/msg_sentbox.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/snow.gif b/phpBB2/templates/christmasWithoutSnow/images/snow.gif deleted file mode 100644 index c29c435..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/snow.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/spacer.gif b/phpBB2/templates/christmasWithoutSnow/images/spacer.gif deleted file mode 100644 index 5bfd67a..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/spacer.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/topic_delete.gif b/phpBB2/templates/christmasWithoutSnow/images/topic_delete.gif deleted file mode 100644 index d1d3a62..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/topic_delete.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/topic_lock.gif b/phpBB2/templates/christmasWithoutSnow/images/topic_lock.gif deleted file mode 100644 index 3aadda3..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/topic_lock.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/topic_move.gif b/phpBB2/templates/christmasWithoutSnow/images/topic_move.gif deleted file mode 100644 index af8b3c7..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/topic_move.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/topic_split.gif b/phpBB2/templates/christmasWithoutSnow/images/topic_split.gif deleted file mode 100644 index 977dedb..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/topic_split.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/topic_unlock.gif b/phpBB2/templates/christmasWithoutSnow/images/topic_unlock.gif deleted file mode 100644 index a088619..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/topic_unlock.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/vote_lcap.gif b/phpBB2/templates/christmasWithoutSnow/images/vote_lcap.gif deleted file mode 100644 index 22e1080..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/vote_lcap.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/vote_rcap.gif b/phpBB2/templates/christmasWithoutSnow/images/vote_rcap.gif deleted file mode 100644 index 28da06f..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/vote_rcap.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/voting_bar.gif b/phpBB2/templates/christmasWithoutSnow/images/voting_bar.gif deleted file mode 100644 index ced112d..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/voting_bar.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/images/whosonline.gif b/phpBB2/templates/christmasWithoutSnow/images/whosonline.gif deleted file mode 100644 index 3bea906..0000000 Binary files a/phpBB2/templates/christmasWithoutSnow/images/whosonline.gif and /dev/null differ diff --git a/phpBB2/templates/christmasWithoutSnow/index.htm b/phpBB2/templates/christmasWithoutSnow/index.htm deleted file mode 100644 index 387c05d..0000000 --- a/phpBB2/templates/christmasWithoutSnow/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -christmas2 created by subBlue Design - - - - - - - - - -
    Created by subBlue Design
    - - - \ No newline at end of file diff --git a/phpBB2/templates/christmasWithoutSnow/index_body b/phpBB2/templates/christmasWithoutSnow/index_body deleted file mode 100644 index f714a0f..0000000 --- a/phpBB2/templates/christmasWithoutSnow/index_body +++ /dev/null @@ -1,104 +0,0 @@ - - - - - -
    - - {LAST_VISIT_DATE}
    - - {CURRENT_TIME}
    {L_INDEX}
    - - - {L_SEARCH_NEW}
    {L_SEARCH_SELF}
    - - {L_SEARCH_UNANSWERED}
    - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FORUM}  {L_TOPICS}  {L_POSTS}  {L_LASTPOST} 
    {catrow.CAT_DESC}
    {catrow.forumrow.L_FORUM_FOLDER_ALT} {catrow.forumrow.FORUM_NAME}
    -
    {catrow.forumrow.FORUM_DESC}
    -
    {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
    {catrow.forumrow.TOPICS}{catrow.forumrow.POSTS} {catrow.forumrow.LAST_POST}
    - - - - - - -
    {L_MARK_FORUMS_READ}{S_TIMEZONE}
    - - - - - - - - - - - - -
    {L_WHO_IS_ONLINE}
    {L_WHO_IS_ONLINE}{TOTAL_POSTS}
    {TOTAL_USERS}
    {NEWEST_USER}
    -
    {TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
    {RECORD_USERS}
    {LOGGED_IN_USER_LIST}
    - - - - - -
    {L_ONLINE_EXPLAIN}
    - - -
    - - - - - - - -
    {L_LOGIN_LOGOUT}
    {L_USERNAME}: - -    {L_PASSWORD}: - -      {L_AUTO_LOGIN} - -     - -
    -
    - - -
    - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_FORUM_LOCKED}{L_FORUM_LOCKED}
    diff --git a/phpBB2/templates/christmasWithoutSnow/index_body.tpl b/phpBB2/templates/christmasWithoutSnow/index_body.tpl deleted file mode 100644 index f714a0f..0000000 --- a/phpBB2/templates/christmasWithoutSnow/index_body.tpl +++ /dev/null @@ -1,104 +0,0 @@ - - - - - -
    - - {LAST_VISIT_DATE}
    - - {CURRENT_TIME}
    {L_INDEX}
    - - - {L_SEARCH_NEW}
    {L_SEARCH_SELF}
    - - {L_SEARCH_UNANSWERED}
    - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FORUM}  {L_TOPICS}  {L_POSTS}  {L_LASTPOST} 
    {catrow.CAT_DESC}
    {catrow.forumrow.L_FORUM_FOLDER_ALT} {catrow.forumrow.FORUM_NAME}
    -
    {catrow.forumrow.FORUM_DESC}
    -
    {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
    {catrow.forumrow.TOPICS}{catrow.forumrow.POSTS} {catrow.forumrow.LAST_POST}
    - - - - - - -
    {L_MARK_FORUMS_READ}{S_TIMEZONE}
    - - - - - - - - - - - - -
    {L_WHO_IS_ONLINE}
    {L_WHO_IS_ONLINE}{TOTAL_POSTS}
    {TOTAL_USERS}
    {NEWEST_USER}
    -
    {TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
    {RECORD_USERS}
    {LOGGED_IN_USER_LIST}
    - - - - - -
    {L_ONLINE_EXPLAIN}
    - - -
    - - - - - - - -
    {L_LOGIN_LOGOUT}
    {L_USERNAME}: - -    {L_PASSWORD}: - -      {L_AUTO_LOGIN} - -     - -
    -
    - - -
    - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_FORUM_LOCKED}{L_FORUM_LOCKED}
    diff --git a/phpBB2/templates/christmasWithoutSnow/jumpbox.tpl b/phpBB2/templates/christmasWithoutSnow/jumpbox.tpl deleted file mode 100644 index 2000e92..0000000 --- a/phpBB2/templates/christmasWithoutSnow/jumpbox.tpl +++ /dev/null @@ -1,6 +0,0 @@ - -
    - - - -
    {L_JUMP_TO}: {S_JUMPBOX_SELECT} 
    diff --git a/phpBB2/templates/christmasWithoutSnow/login_body.tpl b/phpBB2/templates/christmasWithoutSnow/login_body.tpl deleted file mode 100644 index 50d7f71..0000000 --- a/phpBB2/templates/christmasWithoutSnow/login_body.tpl +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - -
    - - - - - - - - -
    {L_ENTER_PASSWORD}
    - - - - - - - - - - - - - - - - - - - - -
     
    {L_USERNAME}: - -
    {L_PASSWORD}: - -
    {L_AUTO_LOGIN}:
    {S_HIDDEN_FIELDS}
    {L_SEND_PASSWORD}
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/memberlist_body.tpl b/phpBB2/templates/christmasWithoutSnow/memberlist_body.tpl deleted file mode 100644 index af1340d..0000000 --- a/phpBB2/templates/christmasWithoutSnow/memberlist_body.tpl +++ /dev/null @@ -1,55 +0,0 @@ - -
    - - - - - -
    {L_INDEX}{L_SELECT_SORT_METHOD}: {S_MODE_SELECT}  {L_ORDER} {S_ORDER_SELECT}   - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # {L_USERNAME}{L_EMAIL}{L_FROM}{L_JOINED}{L_POSTS}{L_WEBSITE}
     {memberrow.ROW_NUMBER}  {memberrow.PM_IMG} {memberrow.USERNAME} {memberrow.EMAIL_IMG} {memberrow.FROM}{memberrow.JOINED}{memberrow.POSTS} {memberrow.WWW_IMG} 
     
    - - - - -
    - - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmasWithoutSnow/message_body.tpl b/phpBB2/templates/christmasWithoutSnow/message_body.tpl deleted file mode 100644 index 6be7f51..0000000 --- a/phpBB2/templates/christmasWithoutSnow/message_body.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - -
     
    {MESSAGE_TEXT}
     
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/modcp_body.tpl b/phpBB2/templates/christmasWithoutSnow/modcp_body.tpl deleted file mode 100644 index fd0fe1b..0000000 --- a/phpBB2/templates/christmasWithoutSnow/modcp_body.tpl +++ /dev/null @@ -1,58 +0,0 @@ - -
    - - - - -
    {L_INDEX} -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_MOD_CP} -
    {L_MOD_CP_EXPLAIN}
      {L_TOPICS}  {L_REPLIES}  {L_LASTPOST}  {L_SELECT} 
    {topicrow.L_TOPIC_FOLDER_ALT} {topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}{topicrow.REPLIES}{topicrow.LAST_POST_TIME} - -
    {S_HIDDEN_FIELDS} - -   - -   - -   - -
    - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    -
    - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmasWithoutSnow/modcp_move.tpl b/phpBB2/templates/christmasWithoutSnow/modcp_move.tpl deleted file mode 100644 index 730952c..0000000 --- a/phpBB2/templates/christmasWithoutSnow/modcp_move.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - - -
     
    {L_MOVE_TO_FORUM}   {S_FORUM_SELECT}

    - {L_LEAVESHADOW}
    -
    - {MESSAGE_TEXT}

    -
    - {S_HIDDEN_FIELDS} - -    - -
     
    -
    -
    diff --git a/phpBB2/templates/christmasWithoutSnow/modcp_split.tpl b/phpBB2/templates/christmasWithoutSnow/modcp_split.tpl deleted file mode 100644 index 837544c..0000000 --- a/phpBB2/templates/christmasWithoutSnow/modcp_split.tpl +++ /dev/null @@ -1,85 +0,0 @@ - -
    - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SPLIT_TOPIC}
    {L_SPLIT_TOPIC_EXPLAIN}
    {L_SPLIT_SUBJECT}
    {L_SPLIT_FORUM}{S_FORUM_SELECT}
    - - - - - -
    - - - -
    -
    {L_AUTHOR}{L_MESSAGE}{L_SELECT}
    {postrow.POSTER_NAME} - - - - - - - -
    {L_POST}{L_POSTED}: - {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}
    -
    - {postrow.MESSAGE}
    -
    {postrow.S_SPLIT_CHECKBOX}
    .
    - - - - - -
    - - - - {S_HIDDEN_FIELDS}
    -
    - - - - -
    {S_TIMEZONE}
    -
    diff --git a/phpBB2/templates/christmasWithoutSnow/modcp_viewip.tpl b/phpBB2/templates/christmasWithoutSnow/modcp_viewip.tpl deleted file mode 100644 index d497d88..0000000 --- a/phpBB2/templates/christmasWithoutSnow/modcp_viewip.tpl +++ /dev/null @@ -1,58 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_IP_INFO}
    {L_THIS_POST_IP}
    - - - - - -
     {IP} [ {POSTS} ][ {L_LOOKUP_IP} - ] 
    -
    {L_OTHER_USERS}
    - - - - - -
     {userrow.USERNAME} [ {userrow.POSTS} ]{L_SEARCH} -  
    -
    {L_OTHER_IPS}
    - - - - -
     {iprow.IP} [ {iprow.POSTS} ][ {L_LOOKUP_IP} - ] 
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/overall_footer.tpl b/phpBB2/templates/christmasWithoutSnow/overall_footer.tpl deleted file mode 100644 index c0750a1..0000000 --- a/phpBB2/templates/christmasWithoutSnow/overall_footer.tpl +++ /dev/null @@ -1,20 +0,0 @@ - -

    {ADMIN_LINK}
    - -Powered by phpBB {PHPBB_VERSION} © 2001, 2002 phpBB Group
    {TRANSLATION_INFO} -
    Original Template   Modify Template by   BremerJunge
    -
    - - - diff --git a/phpBB2/templates/christmasWithoutSnow/overall_header b/phpBB2/templates/christmasWithoutSnow/overall_header deleted file mode 100644 index eae5c10..0000000 --- a/phpBB2/templates/christmasWithoutSnow/overall_header +++ /dev/null @@ -1,47 +0,0 @@ - - - - - -{META} -{NAV_LINKS} -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - -
    - - - - -
    {L_INDEX}{SITENAME}
    {SITE_DESCRIPTION}
     
    - - - - - -
     {L_FAQ}{L_FAQ}   {L_SEARCH}{L_SEARCH}   {L_MEMBERLIST}{L_MEMBERLIST}   {L_USERGROUPS}{L_USERGROUPS}  - -  {L_REGISTER}{L_REGISTER}  - -
     {L_PROFILE}{L_PROFILE}   {PRIVATE_MESSAGE_INFO}{PRIVATE_MESSAGE_INFO}   {L_LOGIN_LOGOUT}{L_LOGIN_LOGOUT} 
    -
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/overall_header.tpl b/phpBB2/templates/christmasWithoutSnow/overall_header.tpl deleted file mode 100644 index eae5c10..0000000 --- a/phpBB2/templates/christmasWithoutSnow/overall_header.tpl +++ /dev/null @@ -1,47 +0,0 @@ - - - - - -{META} -{NAV_LINKS} -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/phpBB2/templates/christmasWithoutSnow/posting_preview b/phpBB2/templates/christmasWithoutSnow/posting_preview deleted file mode 100644 index 6479929..0000000 --- a/phpBB2/templates/christmasWithoutSnow/posting_preview +++ /dev/null @@ -1,23 +0,0 @@ - -
    - - - - -
    {L_INDEX}{SITENAME}
    {SITE_DESCRIPTION}
     
    - - - - - -
     {L_FAQ}{L_FAQ}   {L_SEARCH}{L_SEARCH}   {L_MEMBERLIST}{L_MEMBERLIST}   {L_USERGROUPS}{L_USERGROUPS}  - -  {L_REGISTER}{L_REGISTER}  - -
     {L_PROFILE}{L_PROFILE}   {PRIVATE_MESSAGE_INFO}{PRIVATE_MESSAGE_INFO}   {L_LOGIN_LOGOUT}{L_LOGIN_LOGOUT} 
    -
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/posting_body.tpl b/phpBB2/templates/christmasWithoutSnow/posting_body.tpl deleted file mode 100644 index c16b19c..0000000 --- a/phpBB2/templates/christmasWithoutSnow/posting_body.tpl +++ /dev/null @@ -1,481 +0,0 @@ - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX_LINK}  {SENTBOX_IMG}{SENTBOX_LINK}  {OUTBOX_IMG}{OUTBOX_LINK}  {SAVEBOX_IMG}{SAVEBOX_LINK}  
    -
    - -
    - - -
    - -{POST_PREVIEW_BOX} -{ERROR_BOX} - - - - - - -
    {L_INDEX} - - -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {POLLBOX} - - - -
    {L_POST_A}
    {L_USERNAME}
    {L_USERNAME} 
    {L_SUBJECT} - -
    - - - - - - - -
    {L_MESSAGE_BODY}

    - - - - - - - - - - - - - - - - -
    {L_EMOTICONS}
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}
    -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - - - -
    - - - - - -
     {L_FONT_COLOR}: -  {L_FONT_SIZE}: - {L_BBCODE_CLOSE_TAGS}
    -
    - -
    - -
    -
    {L_OPTIONS}
    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - {L_DISABLE_HTML}
    - - {L_DISABLE_BBCODE}
    - - {L_DISABLE_SMILIES}
    - - {L_ATTACH_SIGNATURE}
    - - {L_NOTIFY_ON_REPLY}
    - - {L_DELETE_POST}
    {S_TYPE_TOGGLE}
    -
    {S_HIDDEN_FORM_FIELDS} 
    - - - - - -
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    - -{TOPIC_REVIEW_BOX} diff --git a/phpBB2/templates/christmasWithoutSnow/posting_poll_body.tpl b/phpBB2/templates/christmasWithoutSnow/posting_poll_body.tpl deleted file mode 100644 index 4391393..0000000 --- a/phpBB2/templates/christmasWithoutSnow/posting_poll_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -
    {L_ADD_A_POLL}
    {L_ADD_POLL_EXPLAIN}
    {L_POLL_QUESTION}
    {L_POLL_OPTION}  
    {L_POLL_OPTION}  
    {L_POLL_LENGTH} {L_DAYS}   {L_POLL_LENGTH_EXPLAIN}
    {L_POLL_DELETE}
    - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_POST}{L_POSTED}: {POST_DATE}     {L_POST_SUBJECT}: {POST_SUBJECT}
    - - - -
    - {MESSAGE} -
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/posting_preview.tpl b/phpBB2/templates/christmasWithoutSnow/posting_preview.tpl deleted file mode 100644 index 6479929..0000000 --- a/phpBB2/templates/christmasWithoutSnow/posting_preview.tpl +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_POST}{L_POSTED}: {POST_DATE}     {L_POST_SUBJECT}: {POST_SUBJECT}
    - - - -
    - {MESSAGE} -
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/posting_smilies.tpl b/phpBB2/templates/christmasWithoutSnow/posting_smilies.tpl deleted file mode 100644 index 7028535..0000000 --- a/phpBB2/templates/christmasWithoutSnow/posting_smilies.tpl +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - -
    - - - - - - - - - -
    {L_EMOTICONS}
    - - - - - - - - - - - - -
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}

    {L_CLOSE_WINDOW}
    diff --git a/phpBB2/templates/christmasWithoutSnow/posting_topic_review b/phpBB2/templates/christmasWithoutSnow/posting_topic_review deleted file mode 100644 index 9bc0bfa..0000000 --- a/phpBB2/templates/christmasWithoutSnow/posting_topic_review +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - -
    {L_TOPIC_REVIEW}
    - diff --git a/phpBB2/templates/christmasWithoutSnow/posting_topic_review.tpl b/phpBB2/templates/christmasWithoutSnow/posting_topic_review.tpl deleted file mode 100644 index 9bc0bfa..0000000 --- a/phpBB2/templates/christmasWithoutSnow/posting_topic_review.tpl +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - -
    {L_TOPIC_REVIEW}
    - diff --git a/phpBB2/templates/christmasWithoutSnow/privmsgs_body.tpl b/phpBB2/templates/christmasWithoutSnow/privmsgs_body.tpl deleted file mode 100644 index 9422071..0000000 --- a/phpBB2/templates/christmasWithoutSnow/privmsgs_body.tpl +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}  
    -
    - - - - - - - - - - - - - -
    {BOX_SIZE_STATUS}
    - - - - -
    {INBOX_LIMIT_PERCENT}
    -
    0%50%100%
    - -
    - -
    - -
    - - - - - - -
    {POST_PM_IMG} {L_INDEX}{L_DISPLAY_MESSAGES}: - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FLAG}  {L_SUBJECT}  {L_FROM_OR_TO}  {L_DATE}  {L_MARK} 
    {listrow.L_PRIVMSG_FOLDER_ALT} {listrow.SUBJECT} {listrow.FROM}{listrow.DATE} - -
    {L_NO_MESSAGES}
    {S_HIDDEN_FIELDS} - -   - -   - -
    - - - - - - - -
    {POST_PM_IMG}{PAGE_NUMBER}{L_MARK_ALL} :: {L_UNMARK_ALL}
    {PAGINATION}
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmasWithoutSnow/privmsgs_popup.tpl b/phpBB2/templates/christmasWithoutSnow/privmsgs_popup.tpl deleted file mode 100644 index e48205b..0000000 --- a/phpBB2/templates/christmasWithoutSnow/privmsgs_popup.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - -
    - - - - -

    {L_MESSAGE}

    {L_CLOSE_WINDOW}

    -
    diff --git a/phpBB2/templates/christmasWithoutSnow/privmsgs_preview.tpl b/phpBB2/templates/christmasWithoutSnow/privmsgs_preview.tpl deleted file mode 100644 index ba2ed93..0000000 --- a/phpBB2/templates/christmasWithoutSnow/privmsgs_preview.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT}
    {MESSAGE}
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/privmsgs_read_body.tpl b/phpBB2/templates/christmasWithoutSnow/privmsgs_read_body.tpl deleted file mode 100644 index 3c85e6a..0000000 --- a/phpBB2/templates/christmasWithoutSnow/privmsgs_read_body.tpl +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}
    - -
    - -
    - - - - - -
    {REPLY_PM_IMG} {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {BOX_NAME} :: {L_MESSAGE}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT} {QUOTE_PM_IMG} {EDIT_PM_IMG}
    {MESSAGE}
    - - - - -
    {PROFILE_IMG} {PM_IMG} {EMAIL_IMG} - {WWW_IMG} {AIM_IMG} {YIM_IMG} {MSN_IMG} 
    -
    {S_HIDDEN_FIELDS} - -   - -
    - - - - - -
    {REPLY_PM_IMG}{S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmasWithoutSnow/profile_add_body.tpl b/phpBB2/templates/christmasWithoutSnow/profile_add_body.tpl deleted file mode 100644 index ede3217..0000000 --- a/phpBB2/templates/christmasWithoutSnow/profile_add_body.tpl +++ /dev/null @@ -1,274 +0,0 @@ - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: *{USERNAME}
    {L_USERNAME}: *
    {L_EMAIL_ADDRESS}: *
    {L_CURRENT_PASSWORD}: *
    - {L_CONFIRM_PASSWORD_EXPLAIN}
    - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
    {L_CONFIRM_CODE_IMPAIRED}

    {CONFIRM_IMG}

    {L_CONFIRM_CODE}: *
    {L_CONFIRM_CODE_EXPLAIN}
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER}: - -
    {L_AIM}: - -
    {L_MESSENGER}: - -
    {L_YAHOO}: - -
    {L_WEBSITE}: - -
    {L_LOCATION}: - -
    {L_OCCUPATION}: - -
    {L_INTERESTS}: - -
    {L_SIGNATURE}:
    {L_SIGNATURE_EXPLAIN}

    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL}: - - {L_YES}   - - {L_NO}
    {L_HIDE_USER}: - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY}:
    - {L_NOTIFY_ON_REPLY_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG}: - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG}:
    {L_POPUP_ON_PRIVMSG_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES}: - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}:{LANGUAGE_SELECT}
    {L_BOARD_STYLE}:{STYLE_SELECT}
    {L_TIMEZONE}:{TIMEZONE_SELECT}
    {L_DATE_FORMAT}:
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    {AVATAR}
     {L_DELETE_AVATAR}
    {L_UPLOAD_AVATAR_FILE}:
    {L_UPLOAD_AVATAR_URL}:
    {L_UPLOAD_AVATAR_URL_EXPLAIN}
    {L_LINK_REMOTE_AVATAR}:
    {L_LINK_REMOTE_AVATAR_EXPLAIN}
    {L_AVATAR_GALLERY}:
    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2/templates/christmasWithoutSnow/profile_avatar_gallery.tpl b/phpBB2/templates/christmasWithoutSnow/profile_avatar_gallery.tpl deleted file mode 100644 index 9be5375..0000000 --- a/phpBB2/templates/christmasWithoutSnow/profile_avatar_gallery.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}: {S_CATEGORY_SELECT} 
    {avatar_row.avatar_column.AVATAR_NAME}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/christmasWithoutSnow/profile_send_email.tpl b/phpBB2/templates/christmasWithoutSnow/profile_send_email.tpl deleted file mode 100644 index 86c28cb..0000000 --- a/phpBB2/templates/christmasWithoutSnow/profile_send_email.tpl +++ /dev/null @@ -1,74 +0,0 @@ - - - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEND_EMAIL_MSG}
    {L_RECIPIENT}{USERNAME}
    {L_SUBJECT}
    {L_MESSAGE_BODY}
    {L_MESSAGE_BODY_DESC}
    {L_OPTIONS} - - - - -
    {L_CC_EMAIL}
    {S_HIDDEN_FIELDS}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmasWithoutSnow/profile_send_pass.tpl b/phpBB2/templates/christmasWithoutSnow/profile_send_pass.tpl deleted file mode 100644 index 8d31aa4..0000000 --- a/phpBB2/templates/christmasWithoutSnow/profile_send_pass.tpl +++ /dev/null @@ -1,35 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - -
    {L_SEND_PASSWORD}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/christmasWithoutSnow/profile_view_body.tpl b/phpBB2/templates/christmasWithoutSnow/profile_view_body.tpl deleted file mode 100644 index a9c3c6f..0000000 --- a/phpBB2/templates/christmasWithoutSnow/profile_view_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - -
    {L_VIEWING_PROFILE}
    {L_AVATAR}{L_ABOUT_USER}
    {AVATAR_IMG}
    {POSTER_RANK}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_JOINED}: {JOINED}
    {L_TOTAL_POSTS}: {POSTS}
    [{POST_PERCENT_STATS} / {POST_DAY_STATS}]
    {L_SEARCH_USER_POSTS}
    {L_LOCATION}: {LOCATION}
    {L_WEBSITE}: {WWW}
    {L_OCCUPATION}: {OCCUPATION}
    {L_INTERESTS}: {INTERESTS}
    -
    {L_CONTACT} {USERNAME}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_EMAIL_ADDRESS}:{EMAIL_IMG}
    {L_PM}:{PM_IMG}
    {L_MESSENGER}:{MSN}
    {L_YAHOO}:{YIM_IMG}
    {L_AIM}:{AIM_IMG}
    {L_ICQ_NUMBER}:
    -
    - - - - - -

    {JUMPBOX}
    diff --git a/phpBB2/templates/christmasWithoutSnow/search_body.tpl b/phpBB2/templates/christmasWithoutSnow/search_body.tpl deleted file mode 100644 index d1316df..0000000 --- a/phpBB2/templates/christmasWithoutSnow/search_body.tpl +++ /dev/null @@ -1,57 +0,0 @@ - -
    - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEARCH_QUERY}
    {L_SEARCH_KEYWORDS}:
    {L_SEARCH_KEYWORDS_EXPLAIN}

    {L_SEARCH_ANY_TERMS}
    {L_SEARCH_ALL_TERMS}
    {L_SEARCH_AUTHOR}:
    {L_SEARCH_AUTHOR_EXPLAIN}
    {L_SEARCH_OPTIONS}
    {L_FORUM}: {L_SEARCH_PREVIOUS}: 
    {L_SEARCH_MESSAGE_TITLE}
    {L_SEARCH_MESSAGE_ONLY}
    {L_CATEGORY}: {L_SORT_BY}: 
    {L_SORT_ASCENDING}
    {L_SORT_DESCENDING}
     
    {L_DISPLAY_RESULTS}: {L_POSTS}{L_TOPICS}{L_RETURN_FIRST} {L_CHARACTERS}
    {S_HIDDEN_FIELDS}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmasWithoutSnow/search_results_posts.tpl b/phpBB2/templates/christmasWithoutSnow/search_results_posts.tpl deleted file mode 100644 index edb8e76..0000000 --- a/phpBB2/templates/christmasWithoutSnow/search_results_posts.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - -
    {L_AUTHOR}{L_MESSAGE}
      {L_TOPIC}: {searchresults.TOPIC_TITLE}
    {searchresults.POSTER_NAME}
    -
    - {L_REPLIES}: {searchresults.TOPIC_REPLIES}
    - {L_VIEWS}: {searchresults.TOPIC_VIEWS}

    -
    {searchresults.L_MINI_POST_ALT}{L_FORUM}: {searchresults.FORUM_NAME}   {L_POSTED}: {searchresults.POST_DATE}   {L_SUBJECT}: {searchresults.POST_SUBJECT}
    {searchresults.MESSAGE}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmasWithoutSnow/search_results_topics.tpl b/phpBB2/templates/christmasWithoutSnow/search_results_topics.tpl deleted file mode 100644 index be0d424..0000000 --- a/phpBB2/templates/christmasWithoutSnow/search_results_topics.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - -
      {L_FORUM}  {L_TOPICS}  {L_AUTHOR}  {L_REPLIES}  {L_VIEWS}  {L_LASTPOST} 
    {searchresults.L_TOPIC_FOLDER_ALT}{searchresults.FORUM_NAME}{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}{searchresults.TOPIC_TITLE}
    {searchresults.GOTO_PAGE}
    {searchresults.TOPIC_AUTHOR}{searchresults.REPLIES}{searchresults.VIEWS}{searchresults.LAST_POST_TIME}
    {searchresults.LAST_POST_AUTHOR} {searchresults.LAST_POST_IMG}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/christmasWithoutSnow/search_username.tpl b/phpBB2/templates/christmasWithoutSnow/search_username.tpl deleted file mode 100644 index 611ec3f..0000000 --- a/phpBB2/templates/christmasWithoutSnow/search_username.tpl +++ /dev/null @@ -1,30 +0,0 @@ - - - -
    - - - - -
    - - - - - - -
    {L_SEARCH_USERNAME}

     

    {L_SEARCH_EXPLAIN}
    - - {L_UPDATE_USERNAME}
     

    - -
    {L_CLOSE_WINDOW}
    -
    diff --git a/phpBB2/templates/christmasWithoutSnow/simple_footer.tpl b/phpBB2/templates/christmasWithoutSnow/simple_footer.tpl deleted file mode 100644 index 68c2b00..0000000 --- a/phpBB2/templates/christmasWithoutSnow/simple_footer.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    - -Powered by phpBB {PHPBB_VERSION} © 2001,2002 phpBB Group
    -
    - - - diff --git a/phpBB2/templates/christmasWithoutSnow/simple_header.tpl b/phpBB2/templates/christmasWithoutSnow/simple_header.tpl deleted file mode 100644 index 90a4fb9..0000000 --- a/phpBB2/templates/christmasWithoutSnow/simple_header.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - -{META} -{SITENAME} :: {PAGE_TITLE} - - - - - - diff --git a/phpBB2/templates/christmasWithoutSnow/theme_info.cfg b/phpBB2/templates/christmasWithoutSnow/theme_info.cfg deleted file mode 100644 index 3831e55..0000000 --- a/phpBB2/templates/christmasWithoutSnow/theme_info.cfg +++ /dev/null @@ -1,51 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2/templates/christmasWithoutSnow/viewforum_body.tpl b/phpBB2/templates/christmasWithoutSnow/viewforum_body.tpl deleted file mode 100644 index b1414f7..0000000 --- a/phpBB2/templates/christmasWithoutSnow/viewforum_body.tpl +++ /dev/null @@ -1,98 +0,0 @@ - -
    - - - - - - - - - - -
    {FORUM_NAME}
    {L_MODERATOR}: {MODERATORS}

    {LOGGED_IN_USER_LIST}
    {PAGINATION}
    {L_POST_NEW_TOPIC}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_TOPICS}  {L_REPLIES}  {L_AUTHOR}  {L_VIEWS}  {L_LASTPOST} 
    {topicrow.L_TOPIC_FOLDER_ALT}{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}
    - {topicrow.GOTO_PAGE}
    {topicrow.REPLIES}{topicrow.TOPIC_AUTHOR}{topicrow.VIEWS}{topicrow.LAST_POST_TIME}
    {topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}
    {L_NO_TOPICS}
    {L_DISPLAY_TOPICS}: {S_SELECT_TOPIC_DAYS}  - -
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_INDEX} -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    -
    - - - - - -
    {JUMPBOX}
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_ANNOUNCEMENT}{L_ANNOUNCEMENT}
    {L_NEW_POSTS_HOT}{L_NEW_POSTS_HOT}  {L_NO_NEW_POSTS_HOT}{L_NO_NEW_POSTS_HOT}  {L_STICKY}{L_STICKY}
    {L_NEW_POSTS_LOCKED}{L_NEW_POSTS_LOCKED}  {L_NO_NEW_POSTS_LOCKED}{L_NO_NEW_POSTS_LOCKED}
    {S_AUTH_LIST}
    diff --git a/phpBB2/templates/christmasWithoutSnow/viewonline_body.tpl b/phpBB2/templates/christmasWithoutSnow/viewonline_body.tpl deleted file mode 100644 index d68a180..0000000 --- a/phpBB2/templates/christmasWithoutSnow/viewonline_body.tpl +++ /dev/null @@ -1,53 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_LAST_UPDATE}  {L_FORUM_LOCATION} 
    {TOTAL_REGISTERED_USERS_ONLINE}
     {reg_user_row.USERNAME}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION} 
    .
    {TOTAL_GUEST_USERS_ONLINE}
     {guest_user_row.USERNAME}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION} 
    - - - - - - -
    {L_ONLINE_EXPLAIN}{S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    - diff --git a/phpBB2/templates/christmasWithoutSnow/viewtopic_body.tpl b/phpBB2/templates/christmasWithoutSnow/viewtopic_body.tpl deleted file mode 100644 index a699f7d..0000000 --- a/phpBB2/templates/christmasWithoutSnow/viewtopic_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {TOPIC_TITLE}
    - {PAGINATION}
    -  
    - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}
    - - - - - - {POLL_DISPLAY} - - - - - - - - - - - - - - - - - - - - -
    {L_VIEW_PREVIOUS_TOPIC} :: {L_VIEW_NEXT_TOPIC}  
    {L_AUTHOR}{L_MESSAGE}
    {postrow.POSTER_NAME}
    {postrow.POSTER_RANK}
    {postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}

    {postrow.POSTER_JOINED}
    {postrow.POSTER_POSTS}
    {postrow.POSTER_FROM}

    - - - - - - - - - - -
    {postrow.L_MINI_POST_ALT}{L_POSTED}: {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}

    {postrow.MESSAGE}{postrow.SIGNATURE}{postrow.EDITED_MESSAGE}
    {L_BACK_TO_TOP} - - - -
    {postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}
    - - - -
    {L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} 
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    - - - - - - -
    {S_WATCH_TOPIC}
    -  
    - {S_TOPIC_ADMIN}
    {JUMPBOX}{S_AUTH_LIST}
    diff --git a/phpBB2/templates/christmasWithoutSnow/viewtopic_poll_ballot.tpl b/phpBB2/templates/christmasWithoutSnow/viewtopic_poll_ballot.tpl deleted file mode 100644 index 1e0cb21..0000000 --- a/phpBB2/templates/christmasWithoutSnow/viewtopic_poll_ballot.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -
    - - - - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - -
     {poll_option.POLL_OPTION_CAPTION}
    - -
    {L_VIEW_RESULTS}
    {S_HIDDEN_FIELDS}
    - \ No newline at end of file diff --git a/phpBB2/templates/christmasWithoutSnow/viewtopic_poll_result.tpl b/phpBB2/templates/christmasWithoutSnow/viewtopic_poll_result.tpl deleted file mode 100644 index e0cc347..0000000 --- a/phpBB2/templates/christmasWithoutSnow/viewtopic_poll_result.tpl +++ /dev/null @@ -1,36 +0,0 @@ - - -
    - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - - - - -
    {poll_option.POLL_OPTION_CAPTION} - - - - - - -
    {poll_option.POLL_OPTION_PERCENT}
    -
     {poll_option.POLL_OPTION_PERCENT} [ {poll_option.POLL_OPTION_RESULT} ]
    -
    {L_TOTAL_VOTES} : {TOTAL_VOTES}
    -
    - - diff --git a/phpBB2/templates/index.htm b/phpBB2/templates/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2/templates/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2/templates/subSilver/admin/admin_message_body.tpl b/phpBB2/templates/subSilver/admin/admin_message_body.tpl deleted file mode 100644 index 68e69ca..0000000 --- a/phpBB2/templates/subSilver/admin/admin_message_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    - - - - - - - - -
    {MESSAGE_TITLE}
    {MESSAGE_TEXT}
    - -
    diff --git a/phpBB2/templates/subSilver/admin/auth_forum_body.tpl b/phpBB2/templates/subSilver/admin/auth_forum_body.tpl deleted file mode 100644 index 7e58992..0000000 --- a/phpBB2/templates/subSilver/admin/auth_forum_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - - - - - - - - -
    {forum_auth_titles.CELL_TITLE}
    {forum_auth_data.S_AUTH_LEVELS_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/subSilver/admin/auth_select_body.tpl b/phpBB2/templates/subSilver/admin/auth_select_body.tpl deleted file mode 100644 index b1fdd98..0000000 --- a/phpBB2/templates/subSilver/admin/auth_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -
    - - - - - - -
    {L_AUTH_SELECT}
    {S_HIDDEN_FIELDS}{S_AUTH_SELECT}   
    diff --git a/phpBB2/templates/subSilver/admin/auth_ug_body.tpl b/phpBB2/templates/subSilver/admin/auth_ug_body.tpl deleted file mode 100644 index 78c8e60..0000000 --- a/phpBB2/templates/subSilver/admin/auth_ug_body.tpl +++ /dev/null @@ -1,49 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_USER_OR_GROUPNAME}: {USERNAME}

    - -
    - - -

    {USER_LEVEL}

    -

    {USER_GROUP_MEMBERSHIPS}

    - - - -

    {GROUP_MEMBERSHIP}

    - - -

    {L_PERMISSIONS}

    - -

    {L_AUTH_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM}{acltype.L_UG_ACL_TYPE}{L_MODERATOR_STATUS}
    {forums.FORUM_NAME}{forums.aclvalues.S_ACL_SELECT}{forums.S_MOD_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/subSilver/admin/board_config_body.tpl b/phpBB2/templates/subSilver/admin/board_config_body.tpl deleted file mode 100644 index 2b474f2..0000000 --- a/phpBB2/templates/subSilver/admin/board_config_body.tpl +++ /dev/null @@ -1,272 +0,0 @@ - -

    {L_CONFIGURATION_TITLE}

    - -

    {L_CONFIGURATION_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GENERAL_SETTINGS}
    {L_SERVER_NAME}
    {L_SERVER_PORT}
    {L_SERVER_PORT_EXPLAIN}
    {L_SCRIPT_PATH}
    {L_SCRIPT_PATH_EXPLAIN}
    {L_SITE_NAME}
    {L_SITE_NAME_EXPLAIN}
    {L_SITE_DESCRIPTION}
    {L_DISABLE_BOARD}
    {L_DISABLE_BOARD_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ACCT_ACTIVATION}{L_NONE}   {L_USER}   {L_ADMIN}
    {L_VISUAL_CONFIRM}
    {L_VISUAL_CONFIRM_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ALLOW_AUTOLOGIN}
    {L_ALLOW_AUTOLOGIN_EXPLAIN}
    {L_YES}   {L_NO}
    {L_AUTOLOGIN_TIME}
    {L_AUTOLOGIN_TIME_EXPLAIN}
    {L_BOARD_EMAIL_FORM}
    {L_BOARD_EMAIL_FORM_EXPLAIN}
    {L_ENABLED}   {L_DISABLED}
    {L_FLOOD_INTERVAL}
    {L_FLOOD_INTERVAL_EXPLAIN}
    {L_SEARCH_FLOOD_INTERVAL}
    {L_SEARCH_FLOOD_INTERVAL_EXPLAIN}
    {L_MAX_LOGIN_ATTEMPTS}
    {L_MAX_LOGIN_ATTEMPTS_EXPLAIN}
    {L_LOGIN_RESET_TIME}
    {L_LOGIN_RESET_TIME_EXPLAIN}
    {L_TOPICS_PER_PAGE}
    {L_POSTS_PER_PAGE}
    {L_HOT_THRESHOLD}
    {L_DEFAULT_STYLE}{STYLE_SELECT}
    {L_OVERRIDE_STYLE}
    {L_OVERRIDE_STYLE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_DEFAULT_LANGUAGE}{LANG_SELECT}
    {L_DATE_FORMAT}
    {L_DATE_FORMAT_EXPLAIN}
    {L_SYSTEM_TIMEZONE}{TIMEZONE_SELECT}
    {L_ENABLE_GZIP} {L_YES}   {L_NO}
    {L_ENABLE_PRUNE} {L_YES}   {L_NO}
    {L_COOKIE_SETTINGS}
    {L_COOKIE_SETTINGS_EXPLAIN}
    {L_COOKIE_DOMAIN}
    {L_COOKIE_NAME}
    {L_COOKIE_PATH}
    {L_COOKIE_SECURE}
    {L_COOKIE_SECURE_EXPLAIN}
    {L_DISABLED}   {L_ENABLED}
    {L_SESSION_LENGTH}
    {L_PRIVATE_MESSAGING}
    {L_DISABLE_PRIVATE_MESSAGING}{L_ENABLED}   {L_DISABLED}
    {L_INBOX_LIMIT}
    {L_SENTBOX_LIMIT}
    {L_SAVEBOX_LIMIT}
    {L_ABILITIES_SETTINGS}
    {L_MAX_POLL_OPTIONS}
    {L_ALLOW_HTML} {L_YES}   {L_NO}
    {L_ALLOWED_TAGS}
    {L_ALLOWED_TAGS_EXPLAIN}
    {L_ALLOW_BBCODE} {L_YES}   {L_NO}
    {L_ALLOW_SMILIES} {L_YES}   {L_NO}
    {L_SMILIES_PATH}
    {L_SMILIES_PATH_EXPLAIN}
    {L_ALLOW_SIG} {L_YES}   {L_NO}
    {L_MAX_SIG_LENGTH}
    {L_MAX_SIG_LENGTH_EXPLAIN}
    {L_ALLOW_NAME_CHANGE} {L_YES}   {L_NO}
    {L_AVATAR_SETTINGS}
    {L_ALLOW_LOCAL} {L_YES}   {L_NO}
    {L_ALLOW_REMOTE}
    {L_ALLOW_REMOTE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ALLOW_UPLOAD} {L_YES}   {L_NO}
    {L_MAX_FILESIZE}
    {L_MAX_FILESIZE_EXPLAIN}
    Bytes
    {L_MAX_AVATAR_SIZE}
    - {L_MAX_AVATAR_SIZE_EXPLAIN} -
    x
    {L_AVATAR_STORAGE_PATH}
    {L_AVATAR_STORAGE_PATH_EXPLAIN}
    {L_AVATAR_GALLERY_PATH}
    {L_AVATAR_GALLERY_PATH_EXPLAIN}
    {L_COPPA_SETTINGS}
    {L_COPPA_FAX}
    {L_COPPA_MAIL}
    {L_COPPA_MAIL_EXPLAIN}
    {L_EMAIL_SETTINGS}
    {L_ADMIN_EMAIL}
    {L_EMAIL_SIG}
    {L_EMAIL_SIG_EXPLAIN}
    {L_USE_SMTP}
    {L_USE_SMTP_EXPLAIN}
    {L_YES}   {L_NO}
    {L_SMTP_SERVER}
    {L_SMTP_USERNAME}
    {L_SMTP_USERNAME_EXPLAIN}
    {L_SMTP_PASSWORD}
    {L_SMTP_PASSWORD_EXPLAIN}
    {S_HIDDEN_FIELDS}   -
    - -
    diff --git a/phpBB2/templates/subSilver/admin/category_edit_body.tpl b/phpBB2/templates/subSilver/admin/category_edit_body.tpl deleted file mode 100644 index 8fed1c9..0000000 --- a/phpBB2/templates/subSilver/admin/category_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_EDIT_CATEGORY}

    - -

    {L_EDIT_CATEGORY_EXPLAIN}

    - -
    - - - - - - - - - - - -
    {L_EDIT_CATEGORY}
    {L_CATEGORY}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2/templates/subSilver/admin/confirm_body.tpl b/phpBB2/templates/subSilver/admin/confirm_body.tpl deleted file mode 100644 index 376480c..0000000 --- a/phpBB2/templates/subSilver/admin/confirm_body.tpl +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - -
    {MESSAGE_TITLE}

    {MESSAGE_TEXT}

    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2/templates/subSilver/admin/db_utils_backup_body.tpl b/phpBB2/templates/subSilver/admin/db_utils_backup_body.tpl deleted file mode 100644 index 8ee6ab9..0000000 --- a/phpBB2/templates/subSilver/admin/db_utils_backup_body.tpl +++ /dev/null @@ -1,33 +0,0 @@ - -

    {L_DATABASE_BACKUP}

    - -

    {L_BACKUP_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BACKUP_OPTIONS}
    {L_FULL_BACKUP}
    {L_STRUCTURE_BACKUP}
    {L_DATA_BACKUP}
    {L_ADDITIONAL_TABLES}
    {L_GZIP_COMPRESS}{L_NO}  {L_YES}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/subSilver/admin/db_utils_restore_body.tpl b/phpBB2/templates/subSilver/admin/db_utils_restore_body.tpl deleted file mode 100644 index 13a74dd..0000000 --- a/phpBB2/templates/subSilver/admin/db_utils_restore_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_DATABASE_RESTORE}

    - -

    {L_RESTORE_EXPLAIN}

    - -
    - - - - - - -
    {L_SELECT_FILE}
       {S_HIDDEN_FIELDS} 
    diff --git a/phpBB2/templates/subSilver/admin/disallow_body.tpl b/phpBB2/templates/subSilver/admin/disallow_body.tpl deleted file mode 100644 index ea269f6..0000000 --- a/phpBB2/templates/subSilver/admin/disallow_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_DISALLOW_TITLE}

    - -

    {L_DISALLOW_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_ADD_DISALLOW}
    {L_USERNAME}
    {L_ADD_EXPLAIN}
     
    {L_DELETE_DISALLOW}
    {L_USERNAME}
    {L_DELETE_EXPLAIN}
    {S_DISALLOW_SELECT} 
     
    diff --git a/phpBB2/templates/subSilver/admin/forum_admin_body.tpl b/phpBB2/templates/subSilver/admin/forum_admin_body.tpl deleted file mode 100644 index 8c631f9..0000000 --- a/phpBB2/templates/subSilver/admin/forum_admin_body.tpl +++ /dev/null @@ -1,39 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_TITLE}
    {catrow.CAT_DESC}{L_EDIT}{L_DELETE}{L_MOVE_UP} {L_MOVE_DOWN} 
    {catrow.forumrow.FORUM_NAME}
    {catrow.forumrow.FORUM_DESC}
    {catrow.forumrow.NUM_TOPICS}{catrow.forumrow.NUM_POSTS}{L_EDIT}{L_DELETE}{L_MOVE_UP}
    {L_MOVE_DOWN}
    {L_RESYNC}
    diff --git a/phpBB2/templates/subSilver/admin/forum_delete_body.tpl b/phpBB2/templates/subSilver/admin/forum_delete_body.tpl deleted file mode 100644 index 4a26710..0000000 --- a/phpBB2/templates/subSilver/admin/forum_delete_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_FORUM_DELETE}

    - -

    {L_FORUM_DELETE_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - -
    {L_FORUM_DELETE}
    {L_FORUM_NAME}{NAME}
    {L_MOVE_CONTENTS}{S_SELECT_TO}
    {S_HIDDEN_FIELDS}
    -
    diff --git a/phpBB2/templates/subSilver/admin/forum_edit_body.tpl b/phpBB2/templates/subSilver/admin/forum_edit_body.tpl deleted file mode 100644 index 7f56bbe..0000000 --- a/phpBB2/templates/subSilver/admin/forum_edit_body.tpl +++ /dev/null @@ -1,50 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_SETTINGS}
    {L_FORUM_NAME}
    {L_FORUM_DESCRIPTION}
    {L_CATEGORY}
    {L_FORUM_STATUS}
    {L_AUTO_PRUNE} - - - - - - - - - - - - -
    {L_ENABLED}
    {L_PRUNE_DAYS}  {L_DAYS}
    {L_PRUNE_FREQ}  {L_DAYS}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2/templates/subSilver/admin/forum_prune_body.tpl b/phpBB2/templates/subSilver/admin/forum_prune_body.tpl deleted file mode 100644 index 56a2e02..0000000 --- a/phpBB2/templates/subSilver/admin/forum_prune_body.tpl +++ /dev/null @@ -1,22 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_FORUM_PRUNE_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - -
    {L_FORUM_PRUNE}
    {S_PRUNE_DATA}
    {S_HIDDEN_VARS} - -
    -
    diff --git a/phpBB2/templates/subSilver/admin/forum_prune_result_body.tpl b/phpBB2/templates/subSilver/admin/forum_prune_result_body.tpl deleted file mode 100644 index 10e6d06..0000000 --- a/phpBB2/templates/subSilver/admin/forum_prune_result_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_PRUNE_RESULT}

    - - - - - - - - - - - - - - -
    {L_FORUM}{L_TOPICS_PRUNED}{L_POSTS_PRUNED}
    {prune_results.FORUM_NAME}{prune_results.FORUM_TOPICS}{prune_results.FORUM_POSTS}
    - -
    diff --git a/phpBB2/templates/subSilver/admin/forum_prune_select_body.tpl b/phpBB2/templates/subSilver/admin/forum_prune_select_body.tpl deleted file mode 100644 index d59e7f7..0000000 --- a/phpBB2/templates/subSilver/admin/forum_prune_select_body.tpl +++ /dev/null @@ -1,12 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -
    - - - - - - - -
    {L_SELECT_FORUM}
    {S_FORUMS_SELECT}   
    diff --git a/phpBB2/templates/subSilver/admin/group_edit_body.tpl b/phpBB2/templates/subSilver/admin/group_edit_body.tpl deleted file mode 100644 index ed96b17..0000000 --- a/phpBB2/templates/subSilver/admin/group_edit_body.tpl +++ /dev/null @@ -1,56 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_EDIT_DELETE}
    {L_ITEMS_REQUIRED}
    {L_GROUP_NAME}: - -
    {L_GROUP_DESCRIPTION}: - -
    {L_GROUP_MODERATOR}:  
    {L_GROUP_STATUS}: - {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}
    {L_DELETE_MODERATOR} -
    - {L_DELETE_MODERATOR_EXPLAIN}
    - - {L_YES}
    {L_GROUP_DELETE}: - - {L_GROUP_DELETE_CHECK}
    - -    - -
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/subSilver/admin/group_select_body.tpl b/phpBB2/templates/subSilver/admin/group_select_body.tpl deleted file mode 100644 index 7428918..0000000 --- a/phpBB2/templates/subSilver/admin/group_select_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -

    {L_GROUP_EXPLAIN}

    - -
    - - - - - - - - - - - - -
    {L_GROUP_SELECT}
    {S_GROUP_SELECT}   
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/subSilver/admin/index.htm b/phpBB2/templates/subSilver/admin/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2/templates/subSilver/admin/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2/templates/subSilver/admin/index_body.tpl b/phpBB2/templates/subSilver/admin/index_body.tpl deleted file mode 100644 index 6e9f8d3..0000000 --- a/phpBB2/templates/subSilver/admin/index_body.tpl +++ /dev/null @@ -1,86 +0,0 @@ - -

    {L_WELCOME}

    - -

    {L_ADMIN_INTRO}

    - -

    {L_FORUM_STATS}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_STATISTIC}{L_VALUE}{L_STATISTIC}{L_VALUE}
    {L_NUMBER_POSTS}:{NUMBER_OF_POSTS}{L_POSTS_PER_DAY}:{POSTS_PER_DAY}
    {L_NUMBER_TOPICS}:{NUMBER_OF_TOPICS}{L_TOPICS_PER_DAY}:{TOPICS_PER_DAY}
    {L_NUMBER_USERS}:{NUMBER_OF_USERS}{L_USERS_PER_DAY}:{USERS_PER_DAY}
    {L_BOARD_STARTED}:{START_DATE}{L_AVATAR_DIR_SIZE}:{AVATAR_DIR_SIZE}
    {L_DB_SIZE}:{DB_SIZE}{L_GZIP_COMPRESSION}:{GZIP_COMPRESSION}
    - -

    {L_VERSION_INFORMATION}

    - -{VERSION_INFO} - -
    - -

    {L_WHO_IS_ONLINE}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_STARTED}  {L_LAST_UPDATE}  {L_FORUM_LOCATION}  {L_IP_ADDRESS} 
     {reg_user_row.USERNAME}  {reg_user_row.STARTED}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION}  {reg_user_row.IP_ADDRESS} 
    .
     {guest_user_row.USERNAME}  {guest_user_row.STARTED}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION}  {guest_user_row.IP_ADDRESS} 
    - -
    diff --git a/phpBB2/templates/subSilver/admin/index_frameset.tpl b/phpBB2/templates/subSilver/admin/index_frameset.tpl deleted file mode 100644 index 5cf48df..0000000 --- a/phpBB2/templates/subSilver/admin/index_frameset.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - -phpBB Administration - - - - - - - - - - <body bgcolor="#FFFFFF" text="#000000"> - <p>Sorry, your browser doesn't seem to support frames</p> - </body> - - \ No newline at end of file diff --git a/phpBB2/templates/subSilver/admin/index_navigate.tpl b/phpBB2/templates/subSilver/admin/index_navigate.tpl deleted file mode 100644 index 5977bdf..0000000 --- a/phpBB2/templates/subSilver/admin/index_navigate.tpl +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_ADMIN}
    {L_ADMIN_INDEX}
    {L_FORUM_INDEX}
    {L_PREVIEW_FORUM}
    {catrow.ADMIN_CATEGORY}
    {catrow.modulerow.ADMIN_MODULE} -
    -
    - -
    diff --git a/phpBB2/templates/subSilver/admin/page_footer.tpl b/phpBB2/templates/subSilver/admin/page_footer.tpl deleted file mode 100644 index 278b360..0000000 --- a/phpBB2/templates/subSilver/admin/page_footer.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - -
    Powered by phpBB {PHPBB_VERSION} © 2001 phpBB Group
    {TRANSLATION_INFO}
    - - - \ No newline at end of file diff --git a/phpBB2/templates/subSilver/admin/page_header.tpl b/phpBB2/templates/subSilver/admin/page_header.tpl deleted file mode 100644 index 507a296..0000000 --- a/phpBB2/templates/subSilver/admin/page_header.tpl +++ /dev/null @@ -1,226 +0,0 @@ - - - -{META} - - - -{SITENAME} - {L_PHPBB_ADMIN} - - - - diff --git a/phpBB2/templates/subSilver/admin/ranks_edit_body.tpl b/phpBB2/templates/subSilver/admin/ranks_edit_body.tpl deleted file mode 100644 index b3974ea..0000000 --- a/phpBB2/templates/subSilver/admin/ranks_edit_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - - - - -
    {L_RANKS_TITLE}
    {L_RANK_TITLE}:
    {L_RANK_SPECIAL}{L_YES}    {L_NO}
    {L_RANK_MINIMUM}:
    {L_RANK_IMAGE}:
    - {L_RANK_IMAGE_EXPLAIN}

    {IMAGE_DISPLAY}
      
    -{S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/subSilver/admin/ranks_list_body.tpl b/phpBB2/templates/subSilver/admin/ranks_list_body.tpl deleted file mode 100644 index 368326f..0000000 --- a/phpBB2/templates/subSilver/admin/ranks_list_body.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - -
    {L_RANK}{L_RANK_MINIMUM}{L_SPECIAL_RANK}{L_EDIT}{L_DELETE}
    {ranks.RANK}{ranks.RANK_MIN}{ranks.SPECIAL_RANK}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2/templates/subSilver/admin/smile_edit_body.tpl b/phpBB2/templates/subSilver/admin/smile_edit_body.tpl deleted file mode 100644 index b453afc..0000000 --- a/phpBB2/templates/subSilver/admin/smile_edit_body.tpl +++ /dev/null @@ -1,34 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - - - -
    - - - - - - - - - - - - - - - - - - -
    {L_SMILEY_CONFIG}
    {L_SMILEY_CODE}
    {L_SMILEY_URL}    
    {L_SMILEY_EMOTION}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/subSilver/admin/smile_import_body.tpl b/phpBB2/templates/subSilver/admin/smile_import_body.tpl deleted file mode 100644 index 9881cb1..0000000 --- a/phpBB2/templates/subSilver/admin/smile_import_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_SMILEY_IMPORT}
    {L_SELECT_LBL}{S_SMILE_SELECT}
    {L_DEL_EXISTING}
    {L_CONFLICTS}
    {L_REPLACE_EXISTING}   {L_KEEP_EXISTING}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/subSilver/admin/smile_list_body.tpl b/phpBB2/templates/subSilver/admin/smile_list_body.tpl deleted file mode 100644 index ae85ad9..0000000 --- a/phpBB2/templates/subSilver/admin/smile_list_body.tpl +++ /dev/null @@ -1,25 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - -
    {L_CODE}{L_SMILE}{L_EMOT}{L_ACTION}
    {smiles.CODE}{smiles.CODE}{smiles.EMOT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}    
    diff --git a/phpBB2/templates/subSilver/admin/styles_addnew_body.tpl b/phpBB2/templates/subSilver/admin/styles_addnew_body.tpl deleted file mode 100644 index 1cb9df5..0000000 --- a/phpBB2/templates/subSilver/admin/styles_addnew_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_ADD_TEXT}

    - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_ACTION}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_INSTALL}
    diff --git a/phpBB2/templates/subSilver/admin/styles_edit_body.tpl b/phpBB2/templates/subSilver/admin/styles_edit_body.tpl deleted file mode 100644 index 939f643..0000000 --- a/phpBB2/templates/subSilver/admin/styles_edit_body.tpl +++ /dev/null @@ -1,246 +0,0 @@ - -

    {L_THEMES_TITLE}

    - -

    {L_THEMES_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_THEME_SETTINGS}
    {L_THEME_NAME}:
    {L_TEMPLATE}:{S_TEMPLATE_SELECT}
    {L_THEME_ELEMENT}{L_VALUE}{L_SIMPLE_NAME}
    {L_STYLESHEET}:
    {L_STYLESHEET_EXPLAIN}
     
    {L_BACKGROUND_IMAGE}: 
    {L_BACKGROUND_COLOR}: 
    {L_BODY_TEXT_COLOR}: 
    {L_BODY_LINK_COLOR}: 
    {L_BODY_VLINK_COLOR}: 
    {L_BODY_ALINK_COLOR}: 
    {L_BODY_HLINK_COLOR}: 
    {L_TR_COLOR1}: -
    {L_TR_COLOR2}: -
    {L_TR_COLOR3}: -
    {L_TR_CLASS1}: -
    {L_TR_CLASS2}: -
    {L_TR_CLASS3}: -
    {L_TH_COLOR1}: -
    {L_TH_COLOR2}: -
    {L_TH_COLOR3}: -
    {L_TH_CLASS1}: -
    {L_TH_CLASS2}: -
    {L_TH_CLASS3}: -
    {L_TD_COLOR1}: -
    {L_TD_COLOR2}: -
    {L_TD_COLOR3}: -
    {L_TD_CLASS1}: -
    {L_TD_CLASS2}: -
    {L_TD_CLASS3}: -
    {L_FONTFACE_1}: -
    {L_FONTFACE_2}: -
    {L_FONTFACE_3}: -
    {L_FONTSIZE_1}: -
    {L_FONTSIZE_2}: -
    {L_FONTSIZE_3}: -
    {L_FONTCOLOR_1}: -
    {L_FONTCOLOR_2}: -
    {L_FONTCOLOR_3}: -
    {L_SPAN_CLASS_1}: -
    {L_SPAN_CLASS_2}: -
    {L_SPAN_CLASS_3}: -
    {S_HIDDEN_FIELDS} -
    - -
    diff --git a/phpBB2/templates/subSilver/admin/styles_exporter.tpl b/phpBB2/templates/subSilver/admin/styles_exporter.tpl deleted file mode 100644 index 2056260..0000000 --- a/phpBB2/templates/subSilver/admin/styles_exporter.tpl +++ /dev/null @@ -1,14 +0,0 @@ - -

    {L_STYLE_EXPORTER}

    - -

    {L_EXPORTER_EXPLAIN}

    - -
    - - - - - - - -
    {L_TEMPLATE_SELECT}
    {S_TEMPLATE_SELECT}   
    diff --git a/phpBB2/templates/subSilver/admin/styles_list_body.tpl b/phpBB2/templates/subSilver/admin/styles_list_body.tpl deleted file mode 100644 index eb59c64..0000000 --- a/phpBB2/templates/subSilver/admin/styles_list_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_TEXT}

    - - - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_EDIT}{L_DELETE}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2/templates/subSilver/admin/user_avatar_gallery.tpl b/phpBB2/templates/subSilver/admin/user_avatar_gallery.tpl deleted file mode 100644 index db861ee..0000000 --- a/phpBB2/templates/subSilver/admin/user_avatar_gallery.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}:  
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/subSilver/admin/user_ban_body.tpl b/phpBB2/templates/subSilver/admin/user_ban_body.tpl deleted file mode 100644 index c805f7b..0000000 --- a/phpBB2/templates/subSilver/admin/user_ban_body.tpl +++ /dev/null @@ -1,54 +0,0 @@ - -

    {L_BAN_TITLE}

    - -

    {L_BAN_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BAN_USER}
    {L_USERNAME}: {S_HIDDEN_FIELDS}
    {L_UNBAN_USER}
    {L_USERNAME}:
    {L_UNBAN_USER_EXPLAIN}
    {S_UNBAN_USERLIST_SELECT}
    {L_BAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_BAN_IP_EXPLAIN}
    {L_UNBAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_UNBAN_IP_EXPLAIN}
    {S_UNBAN_IPLIST_SELECT}
    {L_BAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_BAN_EMAIL_EXPLAIN}
    {L_UNBAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_UNBAN_EMAIL_EXPLAIN}
    {S_UNBAN_EMAILLIST_SELECT}
      
    - -

    {L_BAN_EXPLAIN_WARN}

    diff --git a/phpBB2/templates/subSilver/admin/user_edit_body.tpl b/phpBB2/templates/subSilver/admin/user_edit_body.tpl deleted file mode 100644 index 0f4bc26..0000000 --- a/phpBB2/templates/subSilver/admin/user_edit_body.tpl +++ /dev/null @@ -1,310 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -{ERROR_BOX} - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER} - -
    {L_AIM} - -
    {L_MESSENGER} - -
    {L_YAHOO} - -
    {L_WEBSITE} - -
    {L_LOCATION} - -
    {L_OCCUPATION} - -
    {L_INTERESTS} - -
    {L_SIGNATURE}
    - {L_SIGNATURE_EXPLAIN}
    -
    - {HTML_STATUS}
    - {BBCODE_STATUS}
    - {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL} - - {L_YES}   - - {L_NO}
    {L_HIDE_USER} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES} - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}{LANGUAGE_SELECT}
    {L_BOARD_STYLE}{STYLE_SELECT}
    {L_TIMEZONE}{TIMEZONE_SELECT}
    {L_DATE_FORMAT}
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    - {AVATAR}
    - -  {L_DELETE_AVATAR}
    -
    {L_UPLOAD_AVATAR_FILE} - - -
    {L_UPLOAD_AVATAR_URL} - -
    {L_LINK_REMOTE_AVATAR} - -
    {L_AVATAR_GALLERY} - -
     
    {L_SPECIAL}
    {L_SPECIAL_EXPLAIN}
    {L_USER_ACTIVE} - - {L_YES}   - - {L_NO}
    {L_ALLOW_PM} - - {L_YES}   - - {L_NO}
    {L_ALLOW_AVATAR} - - {L_YES}   - - {L_NO}
    {L_SELECT_RANK}
    {L_DELETE_USER}? - - {L_DELETE_USER_EXPLAIN}
    {S_HIDDEN_FIELDS} - -    - -
    diff --git a/phpBB2/templates/subSilver/admin/user_email_body.tpl b/phpBB2/templates/subSilver/admin/user_email_body.tpl deleted file mode 100644 index 5f52658..0000000 --- a/phpBB2/templates/subSilver/admin/user_email_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_EMAIL_TITLE}

    - -

    {L_EMAIL_EXPLAIN}

    - -
    - -{ERROR_BOX} - - - - - - - - - - - - - - - - - - -
    {L_COMPOSE}
    {L_RECIPIENTS}{S_GROUP_SELECT}
    {L_EMAIL_SUBJECT}
    {L_EMAIL_MSG} - -
    - -
    diff --git a/phpBB2/templates/subSilver/admin/user_select_body.tpl b/phpBB2/templates/subSilver/admin/user_select_body.tpl deleted file mode 100644 index 5d7a31b..0000000 --- a/phpBB2/templates/subSilver/admin/user_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - -
    {L_USER_SELECT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/subSilver/admin/userlist_body.tpl b/phpBB2/templates/subSilver/admin/userlist_body.tpl deleted file mode 100644 index 8a953d4..0000000 --- a/phpBB2/templates/subSilver/admin/userlist_body.tpl +++ /dev/null @@ -1,144 +0,0 @@ - - -

    {L_TITLE}

    - -

    {L_DESCRIPTION}

    - -
    - - - - - - - - - - -
     {L_SORT_BY}{L_SHOW}{S_HIDDEN_FIELDS}
    -
    - - - - - - - -
    - {alphanumsearch.SEARCH_TERM} -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}{L_ACTIVE}{L_JOINED}{L_ACTIVTY}
       {L_OPEN_CLOSE}{user_row.USERNAME}{user_row.ACTIVE}{user_row.JOINED}{user_row.LAST_ACTIVITY}
    - - -
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    -
    - -
    \ No newline at end of file diff --git a/phpBB2/templates/subSilver/admin/userlist_group.tpl b/phpBB2/templates/subSilver/admin/userlist_group.tpl deleted file mode 100644 index 9a736ae..0000000 --- a/phpBB2/templates/subSilver/admin/userlist_group.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - -
    {MESSAGE_TITLE}

    {MESSAGE_TEXT}

    {S_HIDDEN_FIELDS} - -
    - -
    diff --git a/phpBB2/templates/subSilver/admin/words_edit_body.tpl b/phpBB2/templates/subSilver/admin/words_edit_body.tpl deleted file mode 100644 index 569a94f..0000000 --- a/phpBB2/templates/subSilver/admin/words_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - -
    {L_WORD_CENSOR}
    {L_WORD}
    {L_REPLACEMENT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/subSilver/admin/words_list_body.tpl b/phpBB2/templates/subSilver/admin/words_list_body.tpl deleted file mode 100644 index 40acf81..0000000 --- a/phpBB2/templates/subSilver/admin/words_list_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - - - -
    {L_WORD}{L_REPLACEMENT}{L_ACTION}
    {words.WORD}{words.REPLACEMENT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/templates/subSilver/agreement.tpl b/phpBB2/templates/subSilver/agreement.tpl deleted file mode 100644 index 5635a35..0000000 --- a/phpBB2/templates/subSilver/agreement.tpl +++ /dev/null @@ -1,19 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - -
    {SITENAME} - {REGISTRATION}
    - - - -

    {AGREEMENT}



    diff --git a/phpBB2/templates/subSilver/bbcode.tpl b/phpBB2/templates/subSilver/bbcode.tpl deleted file mode 100644 index 6f86f55..0000000 --- a/phpBB2/templates/subSilver/bbcode.tpl +++ /dev/null @@ -1,60 +0,0 @@ -
      -
    - -
      -
    - -
  • - - - - - - - - - -
    {USERNAME} {L_WROTE}:
    - - - - - - - - -
    {L_QUOTE}:
    -
    - - - - - - - - - - -
    {L_CODE}:
    -
    - - - - - - - - - - - - - - - - - - - - -{DESCRIPTION} - -{EMAIL} diff --git a/phpBB2/templates/subSilver/confirm_body.tpl b/phpBB2/templates/subSilver/confirm_body.tpl deleted file mode 100644 index d17fa82..0000000 --- a/phpBB2/templates/subSilver/confirm_body.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}

    {MESSAGE_TEXT}

    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2/templates/subSilver/error_body.tpl b/phpBB2/templates/subSilver/error_body.tpl deleted file mode 100644 index f211ad0..0000000 --- a/phpBB2/templates/subSilver/error_body.tpl +++ /dev/null @@ -1,18 +0,0 @@ - - - - - -
    - - - - - - - - - -
     
    {ERROR_MESSAGE}
     
    - -
    diff --git a/phpBB2/templates/subSilver/faq_body.tpl b/phpBB2/templates/subSilver/faq_body.tpl deleted file mode 100644 index 9933a2c..0000000 --- a/phpBB2/templates/subSilver/faq_body.tpl +++ /dev/null @@ -1,52 +0,0 @@ - - - - - -
    - - - - - - - - - - - -
    {L_FAQ_TITLE}
    - - {faq_block_link.BLOCK_TITLE}
    - - {faq_block_link.faq_row_link.FAQ_LINK}
    - -
    - -
     
    - -
    - - - - - - - - - - - - - - -
    {faq_block.BLOCK_TITLE}
    {faq_block.faq_row.FAQ_QUESTION}
    {faq_block.faq_row.FAQ_ANSWER}
    {L_BACK_TO_TOP}
    - -
    - - - - - - -
    {S_TIMEZONE}

    {JUMPBOX}
    diff --git a/phpBB2/templates/subSilver/formIE.css b/phpBB2/templates/subSilver/formIE.css deleted file mode 100644 index fde54cb..0000000 --- a/phpBB2/templates/subSilver/formIE.css +++ /dev/null @@ -1,19 +0,0 @@ -/* Fancy form styles for IE */ - -input, textarea, select { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -input { text-indent : 2px; } - -input.button { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -.postbody { line-height: 18px} diff --git a/phpBB2/templates/subSilver/groupcp_info_body.tpl b/phpBB2/templates/subSilver/groupcp_info_body.tpl deleted file mode 100644 index 6c3acf9..0000000 --- a/phpBB2/templates/subSilver/groupcp_info_body.tpl +++ /dev/null @@ -1,128 +0,0 @@ - -
    - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_INFORMATION}
    {L_GROUP_NAME}:{GROUP_NAME}
    {L_GROUP_DESC}:{GROUP_DESC}
    {L_GROUP_MEMBERSHIP}:{GROUP_DETAILS}    - - - - - - -
    {L_GROUP_TYPE}: {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}   
    - -{S_HIDDEN_FIELDS} - -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_GROUP_MODERATOR}
    {MOD_PM_IMG} {MOD_USERNAME}{MOD_POSTS}{MOD_FROM}{MOD_EMAIL_IMG}{MOD_WWW_IMG}  
    {L_GROUP_MEMBERS}
    {member_row.PM_IMG} {member_row.USERNAME}{member_row.POSTS} {member_row.FROM} - {member_row.EMAIL_IMG} {member_row.WWW_IMG} - - - -
    {L_NO_MEMBERS}
    {L_HIDDEN_MEMBERS}
    - -
    - - - - - - -
    - -

    - - {PAGE_NUMBER}
    {S_TIMEZONE}
    {PAGINATION}
    - -{PENDING_USER_BOX} - -{S_HIDDEN_FIELDS}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/subSilver/groupcp_pending_info.tpl b/phpBB2/templates/subSilver/groupcp_pending_info.tpl deleted file mode 100644 index 68f618c..0000000 --- a/phpBB2/templates/subSilver/groupcp_pending_info.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_PENDING_MEMBERS}
    {pending_members_row.PM_IMG} - {pending_members_row.USERNAME}{pending_members_row.POSTS}{pending_members_row.FROM}{pending_members_row.EMAIL_IMG}{pending_members_row.WWW_IMG}
    - -   - -
    diff --git a/phpBB2/templates/subSilver/groupcp_user_body.tpl b/phpBB2/templates/subSilver/groupcp_user_body.tpl deleted file mode 100644 index 8be36f6..0000000 --- a/phpBB2/templates/subSilver/groupcp_user_body.tpl +++ /dev/null @@ -1,76 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_MEMBERSHIP_DETAILS}
    {L_YOU_BELONG_GROUPS} - - - - - -
    {GROUP_MEMBER_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_PENDING_GROUPS} - - - - - -
    {GROUP_PENDING_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_JOIN_A_GROUP}
    {L_SELECT_A_GROUP} - - - - - -
    {GROUP_LIST_SELECT} - {S_HIDDEN_FIELDS} -
    -
    - - - - - -
    {S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/subSilver/header.tpl b/phpBB2/templates/subSilver/header.tpl deleted file mode 100644 index c037df0..0000000 --- a/phpBB2/templates/subSilver/header.tpl +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - -
    - - -Home -About me -Forum -News -Pictures -Search - - -
    - - - -
    -
    - diff --git a/phpBB2/templates/subSilver/images/cellpic.gif b/phpBB2/templates/subSilver/images/cellpic.gif deleted file mode 100644 index 47457ef..0000000 Binary files a/phpBB2/templates/subSilver/images/cellpic.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/cellpic1.gif b/phpBB2/templates/subSilver/images/cellpic1.gif deleted file mode 100644 index 715b8d4..0000000 Binary files a/phpBB2/templates/subSilver/images/cellpic1.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/cellpic2.jpg b/phpBB2/templates/subSilver/images/cellpic2.jpg deleted file mode 100644 index a0ca7e8..0000000 Binary files a/phpBB2/templates/subSilver/images/cellpic2.jpg and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/cellpic3.gif b/phpBB2/templates/subSilver/images/cellpic3.gif deleted file mode 100644 index ecf70e1..0000000 Binary files a/phpBB2/templates/subSilver/images/cellpic3.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/created_by.jpg b/phpBB2/templates/subSilver/images/created_by.jpg deleted file mode 100644 index f274727..0000000 Binary files a/phpBB2/templates/subSilver/images/created_by.jpg and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/folder.gif b/phpBB2/templates/subSilver/images/folder.gif deleted file mode 100644 index c16bfa7..0000000 Binary files a/phpBB2/templates/subSilver/images/folder.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/folder_announce.gif b/phpBB2/templates/subSilver/images/folder_announce.gif deleted file mode 100644 index 0589feb..0000000 Binary files a/phpBB2/templates/subSilver/images/folder_announce.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/folder_announce_new.gif b/phpBB2/templates/subSilver/images/folder_announce_new.gif deleted file mode 100644 index 56b2702..0000000 Binary files a/phpBB2/templates/subSilver/images/folder_announce_new.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/folder_big.gif b/phpBB2/templates/subSilver/images/folder_big.gif deleted file mode 100644 index 9b2bc47..0000000 Binary files a/phpBB2/templates/subSilver/images/folder_big.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/folder_hot.gif b/phpBB2/templates/subSilver/images/folder_hot.gif deleted file mode 100644 index a7e8831..0000000 Binary files a/phpBB2/templates/subSilver/images/folder_hot.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/folder_lock.gif b/phpBB2/templates/subSilver/images/folder_lock.gif deleted file mode 100644 index 10eb776..0000000 Binary files a/phpBB2/templates/subSilver/images/folder_lock.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/folder_lock_new.gif b/phpBB2/templates/subSilver/images/folder_lock_new.gif deleted file mode 100644 index 720e210..0000000 Binary files a/phpBB2/templates/subSilver/images/folder_lock_new.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/folder_locked_big.gif b/phpBB2/templates/subSilver/images/folder_locked_big.gif deleted file mode 100644 index 436f3d2..0000000 Binary files a/phpBB2/templates/subSilver/images/folder_locked_big.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/folder_new.gif b/phpBB2/templates/subSilver/images/folder_new.gif deleted file mode 100644 index 4e56157..0000000 Binary files a/phpBB2/templates/subSilver/images/folder_new.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/folder_new_big.gif b/phpBB2/templates/subSilver/images/folder_new_big.gif deleted file mode 100644 index 5eec565..0000000 Binary files a/phpBB2/templates/subSilver/images/folder_new_big.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/folder_new_hot.gif b/phpBB2/templates/subSilver/images/folder_new_hot.gif deleted file mode 100644 index 25ced64..0000000 Binary files a/phpBB2/templates/subSilver/images/folder_new_hot.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/folder_sticky.gif b/phpBB2/templates/subSilver/images/folder_sticky.gif deleted file mode 100644 index 09861a9..0000000 Binary files a/phpBB2/templates/subSilver/images/folder_sticky.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/folder_sticky_new.gif b/phpBB2/templates/subSilver/images/folder_sticky_new.gif deleted file mode 100644 index dd2e366..0000000 Binary files a/phpBB2/templates/subSilver/images/folder_sticky_new.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/icon_delete.gif b/phpBB2/templates/subSilver/images/icon_delete.gif deleted file mode 100644 index 1153ba5..0000000 Binary files a/phpBB2/templates/subSilver/images/icon_delete.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/icon_latest_reply.gif b/phpBB2/templates/subSilver/images/icon_latest_reply.gif deleted file mode 100644 index b45e57a..0000000 Binary files a/phpBB2/templates/subSilver/images/icon_latest_reply.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/icon_mini_faq.gif b/phpBB2/templates/subSilver/images/icon_mini_faq.gif deleted file mode 100644 index b8b873d..0000000 Binary files a/phpBB2/templates/subSilver/images/icon_mini_faq.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/icon_mini_groups.gif b/phpBB2/templates/subSilver/images/icon_mini_groups.gif deleted file mode 100644 index be5c201..0000000 Binary files a/phpBB2/templates/subSilver/images/icon_mini_groups.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/icon_mini_login.gif b/phpBB2/templates/subSilver/images/icon_mini_login.gif deleted file mode 100644 index 30b309b..0000000 Binary files a/phpBB2/templates/subSilver/images/icon_mini_login.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/icon_mini_members.gif b/phpBB2/templates/subSilver/images/icon_mini_members.gif deleted file mode 100644 index a79a5a7..0000000 Binary files a/phpBB2/templates/subSilver/images/icon_mini_members.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/icon_mini_message.gif b/phpBB2/templates/subSilver/images/icon_mini_message.gif deleted file mode 100644 index 57071d6..0000000 Binary files a/phpBB2/templates/subSilver/images/icon_mini_message.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/icon_mini_profile.gif b/phpBB2/templates/subSilver/images/icon_mini_profile.gif deleted file mode 100644 index 3dc0871..0000000 Binary files a/phpBB2/templates/subSilver/images/icon_mini_profile.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/icon_mini_register.gif b/phpBB2/templates/subSilver/images/icon_mini_register.gif deleted file mode 100644 index 11b8f31..0000000 Binary files a/phpBB2/templates/subSilver/images/icon_mini_register.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/icon_mini_search.gif b/phpBB2/templates/subSilver/images/icon_mini_search.gif deleted file mode 100644 index 1295e9f..0000000 Binary files a/phpBB2/templates/subSilver/images/icon_mini_search.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/icon_minipost.gif b/phpBB2/templates/subSilver/images/icon_minipost.gif deleted file mode 100644 index d172abb..0000000 Binary files a/phpBB2/templates/subSilver/images/icon_minipost.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/icon_minipost_new.gif b/phpBB2/templates/subSilver/images/icon_minipost_new.gif deleted file mode 100644 index 8ec44a1..0000000 Binary files a/phpBB2/templates/subSilver/images/icon_minipost_new.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/icon_newest_reply.gif b/phpBB2/templates/subSilver/images/icon_newest_reply.gif deleted file mode 100644 index eca2861..0000000 Binary files a/phpBB2/templates/subSilver/images/icon_newest_reply.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/index.htm b/phpBB2/templates/subSilver/images/index.htm deleted file mode 100644 index 491b26d..0000000 --- a/phpBB2/templates/subSilver/images/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -subSilver created by subBlue Design - - - - - - - - - -
    Created by subBlue Design
    - - - \ No newline at end of file diff --git a/phpBB2/templates/subSilver/images/lang_english/icon_aim.gif b/phpBB2/templates/subSilver/images/lang_english/icon_aim.gif deleted file mode 100644 index 4b6a858..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/icon_aim.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/lang_english/icon_edit.gif b/phpBB2/templates/subSilver/images/lang_english/icon_edit.gif deleted file mode 100644 index bb70004..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/icon_edit.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/lang_english/icon_email.gif b/phpBB2/templates/subSilver/images/lang_english/icon_email.gif deleted file mode 100644 index 3d359c2..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/icon_email.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/lang_english/icon_icq_add.gif b/phpBB2/templates/subSilver/images/lang_english/icon_icq_add.gif deleted file mode 100644 index 4bf276d..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/lang_english/icon_ip.gif b/phpBB2/templates/subSilver/images/lang_english/icon_ip.gif deleted file mode 100644 index bf17a51..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/icon_ip.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/lang_english/icon_msnm.gif b/phpBB2/templates/subSilver/images/lang_english/icon_msnm.gif deleted file mode 100644 index 6518415..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/icon_msnm.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/lang_english/icon_pm.gif b/phpBB2/templates/subSilver/images/lang_english/icon_pm.gif deleted file mode 100644 index f87b4f5..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/icon_pm.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/lang_english/icon_profile.gif b/phpBB2/templates/subSilver/images/lang_english/icon_profile.gif deleted file mode 100644 index 2bd32d2..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/icon_profile.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/lang_english/icon_quote.gif b/phpBB2/templates/subSilver/images/lang_english/icon_quote.gif deleted file mode 100644 index 3dec675..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/icon_quote.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/lang_english/icon_search.gif b/phpBB2/templates/subSilver/images/lang_english/icon_search.gif deleted file mode 100644 index 8dd38a3..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/icon_search.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/lang_english/icon_www.gif b/phpBB2/templates/subSilver/images/lang_english/icon_www.gif deleted file mode 100644 index 8c1731f..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/icon_www.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/lang_english/icon_yim.gif b/phpBB2/templates/subSilver/images/lang_english/icon_yim.gif deleted file mode 100644 index 57e75b3..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/icon_yim.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/lang_english/msg_newpost.gif b/phpBB2/templates/subSilver/images/lang_english/msg_newpost.gif deleted file mode 100644 index ce2c1a8..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/msg_newpost.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/lang_english/post.gif b/phpBB2/templates/subSilver/images/lang_english/post.gif deleted file mode 100644 index 4b7cb20..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/post.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/lang_english/reply-locked.gif b/phpBB2/templates/subSilver/images/lang_english/reply-locked.gif deleted file mode 100644 index 5ab1d7a..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/reply-locked.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/lang_english/reply.gif b/phpBB2/templates/subSilver/images/lang_english/reply.gif deleted file mode 100644 index cb385af..0000000 Binary files a/phpBB2/templates/subSilver/images/lang_english/reply.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/logo_phpBB.gif b/phpBB2/templates/subSilver/images/logo_phpBB.gif deleted file mode 100644 index 37aa0fd..0000000 Binary files a/phpBB2/templates/subSilver/images/logo_phpBB.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/logo_phpBB_med.gif b/phpBB2/templates/subSilver/images/logo_phpBB_med.gif deleted file mode 100644 index 3d84f94..0000000 Binary files a/phpBB2/templates/subSilver/images/logo_phpBB_med.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/msg_inbox.gif b/phpBB2/templates/subSilver/images/msg_inbox.gif deleted file mode 100644 index 011d0bd..0000000 Binary files a/phpBB2/templates/subSilver/images/msg_inbox.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/msg_outbox.gif b/phpBB2/templates/subSilver/images/msg_outbox.gif deleted file mode 100644 index 84fdce3..0000000 Binary files a/phpBB2/templates/subSilver/images/msg_outbox.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/msg_savebox.gif b/phpBB2/templates/subSilver/images/msg_savebox.gif deleted file mode 100644 index 86d1f2c..0000000 Binary files a/phpBB2/templates/subSilver/images/msg_savebox.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/msg_sentbox.gif b/phpBB2/templates/subSilver/images/msg_sentbox.gif deleted file mode 100644 index b95db75..0000000 Binary files a/phpBB2/templates/subSilver/images/msg_sentbox.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/spacer.gif b/phpBB2/templates/subSilver/images/spacer.gif deleted file mode 100644 index 5bfd67a..0000000 Binary files a/phpBB2/templates/subSilver/images/spacer.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/topic_delete.gif b/phpBB2/templates/subSilver/images/topic_delete.gif deleted file mode 100644 index 3b21b11..0000000 Binary files a/phpBB2/templates/subSilver/images/topic_delete.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/topic_lock.gif b/phpBB2/templates/subSilver/images/topic_lock.gif deleted file mode 100644 index fe32fea..0000000 Binary files a/phpBB2/templates/subSilver/images/topic_lock.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/topic_move.gif b/phpBB2/templates/subSilver/images/topic_move.gif deleted file mode 100644 index ab2fd23..0000000 Binary files a/phpBB2/templates/subSilver/images/topic_move.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/topic_split.gif b/phpBB2/templates/subSilver/images/topic_split.gif deleted file mode 100644 index bdbc884..0000000 Binary files a/phpBB2/templates/subSilver/images/topic_split.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/topic_unlock.gif b/phpBB2/templates/subSilver/images/topic_unlock.gif deleted file mode 100644 index dae3e4d..0000000 Binary files a/phpBB2/templates/subSilver/images/topic_unlock.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/vote_lcap.gif b/phpBB2/templates/subSilver/images/vote_lcap.gif deleted file mode 100644 index 269088b..0000000 Binary files a/phpBB2/templates/subSilver/images/vote_lcap.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/vote_rcap.gif b/phpBB2/templates/subSilver/images/vote_rcap.gif deleted file mode 100644 index f9584e2..0000000 Binary files a/phpBB2/templates/subSilver/images/vote_rcap.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/voting_bar.gif b/phpBB2/templates/subSilver/images/voting_bar.gif deleted file mode 100644 index 9947315..0000000 Binary files a/phpBB2/templates/subSilver/images/voting_bar.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/images/whosonline.gif b/phpBB2/templates/subSilver/images/whosonline.gif deleted file mode 100644 index b450927..0000000 Binary files a/phpBB2/templates/subSilver/images/whosonline.gif and /dev/null differ diff --git a/phpBB2/templates/subSilver/index.htm b/phpBB2/templates/subSilver/index.htm deleted file mode 100644 index 79908c5..0000000 --- a/phpBB2/templates/subSilver/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -subSilver created by subBlue Design - - - - - - - - - -
    Created by subBlue Design
    - - - \ No newline at end of file diff --git a/phpBB2/templates/subSilver/index_body.tpl b/phpBB2/templates/subSilver/index_body.tpl deleted file mode 100644 index a6624b7..0000000 --- a/phpBB2/templates/subSilver/index_body.tpl +++ /dev/null @@ -1,109 +0,0 @@ - - - - - -
    - - {LAST_VISIT_DATE}
    - - {CURRENT_TIME}
    {L_INDEX}
    - - {L_SEARCH_NEW}
    {L_SEARCH_SELF}
    - - {L_SEARCH_UNANSWERED}
    - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FORUM}  {L_TOPICS}  {L_POSTS}  {L_LASTPOST} 
    {catrow.CAT_DESC} 
    {catrow.forumrow.L_FORUM_FOLDER_ALT} {catrow.forumrow.FORUM_NAME}
    -
    {catrow.forumrow.FORUM_DESC}
    -
    {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
    {catrow.forumrow.TOPICS}{catrow.forumrow.POSTS} {catrow.forumrow.LAST_POST}
    - - - - - - -
    - - {L_MARK_FORUMS_READ} - - {S_TIMEZONE}
    - - - - - - - - - - - - -
    {L_WHO_IS_ONLINE}
    {L_WHO_IS_ONLINE}{TOTAL_POSTS}
    {TOTAL_USERS}
    {NEWEST_USER}
    -
    {TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
    {RECORD_USERS}
    {LOGGED_IN_USER_LIST}
    - - - - - -
    {L_ONLINE_EXPLAIN}
    - - -
    - - - - - - - -
    {L_LOGIN_LOGOUT}
    {L_USERNAME}: - -    {L_PASSWORD}: - - -      {L_AUTO_LOGIN} - - -     - -
    -
    - - -
    - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_FORUM_LOCKED}{L_FORUM_LOCKED}
    diff --git a/phpBB2/templates/subSilver/jumpbox.tpl b/phpBB2/templates/subSilver/jumpbox.tpl deleted file mode 100644 index 2000e92..0000000 --- a/phpBB2/templates/subSilver/jumpbox.tpl +++ /dev/null @@ -1,6 +0,0 @@ - -
    - - - -
    {L_JUMP_TO}: {S_JUMPBOX_SELECT} 
    diff --git a/phpBB2/templates/subSilver/login_body.tpl b/phpBB2/templates/subSilver/login_body.tpl deleted file mode 100644 index 6806cd6..0000000 --- a/phpBB2/templates/subSilver/login_body.tpl +++ /dev/null @@ -1,46 +0,0 @@ - -
    - - - - - -
    - - - - - - - - -
    {L_ENTER_PASSWORD}
    - - - - - - - - - - - - - - - - - - - - - - -
     
    {L_USERNAME}: - -
    {L_PASSWORD}: - -
    {L_AUTO_LOGIN}:
    {S_HIDDEN_FIELDS}
    {L_SEND_PASSWORD}
    - -
    diff --git a/phpBB2/templates/subSilver/memberlist_body.tpl b/phpBB2/templates/subSilver/memberlist_body.tpl deleted file mode 100644 index af1340d..0000000 --- a/phpBB2/templates/subSilver/memberlist_body.tpl +++ /dev/null @@ -1,55 +0,0 @@ - -
    - - - - - -
    {L_INDEX}{L_SELECT_SORT_METHOD}: {S_MODE_SELECT}  {L_ORDER} {S_ORDER_SELECT}   - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # {L_USERNAME}{L_EMAIL}{L_FROM}{L_JOINED}{L_POSTS}{L_WEBSITE}
     {memberrow.ROW_NUMBER}  {memberrow.PM_IMG} {memberrow.USERNAME} {memberrow.EMAIL_IMG} {memberrow.FROM}{memberrow.JOINED}{memberrow.POSTS} {memberrow.WWW_IMG} 
     
    - - - - -
    - - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/subSilver/message_body.tpl b/phpBB2/templates/subSilver/message_body.tpl deleted file mode 100644 index 6be7f51..0000000 --- a/phpBB2/templates/subSilver/message_body.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - -
     
    {MESSAGE_TEXT}
     
    - -
    diff --git a/phpBB2/templates/subSilver/modcp_body.tpl b/phpBB2/templates/subSilver/modcp_body.tpl deleted file mode 100644 index fd0fe1b..0000000 --- a/phpBB2/templates/subSilver/modcp_body.tpl +++ /dev/null @@ -1,58 +0,0 @@ - -
    - - - - -
    {L_INDEX} -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_MOD_CP} -
    {L_MOD_CP_EXPLAIN}
      {L_TOPICS}  {L_REPLIES}  {L_LASTPOST}  {L_SELECT} 
    {topicrow.L_TOPIC_FOLDER_ALT} {topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}{topicrow.REPLIES}{topicrow.LAST_POST_TIME} - -
    {S_HIDDEN_FIELDS} - -   - -   - -   - -
    - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    -
    - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/subSilver/modcp_move.tpl b/phpBB2/templates/subSilver/modcp_move.tpl deleted file mode 100644 index 730952c..0000000 --- a/phpBB2/templates/subSilver/modcp_move.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - - -
     
    {L_MOVE_TO_FORUM}   {S_FORUM_SELECT}

    - {L_LEAVESHADOW}
    -
    - {MESSAGE_TEXT}

    -
    - {S_HIDDEN_FIELDS} - -    - -
     
    -
    -
    diff --git a/phpBB2/templates/subSilver/modcp_split.tpl b/phpBB2/templates/subSilver/modcp_split.tpl deleted file mode 100644 index c8be76a..0000000 --- a/phpBB2/templates/subSilver/modcp_split.tpl +++ /dev/null @@ -1,85 +0,0 @@ - -
    - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SPLIT_TOPIC}
    {L_SPLIT_TOPIC_EXPLAIN}
    {L_SPLIT_SUBJECT}
    {L_SPLIT_FORUM}{S_FORUM_SELECT}
    - - - - - -
    - - - -
    -
    {L_AUTHOR}{L_MESSAGE}{L_SELECT}
    {postrow.POSTER_NAME} - - - - - - - -
    {L_POST}{L_POSTED}: - {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}
    -
    - {postrow.MESSAGE}
    -
    {postrow.S_SPLIT_CHECKBOX}
    .
    - - - - - -
    - - - - {S_HIDDEN_FIELDS}
    -
    - - - - -
    {S_TIMEZONE}
    -
    diff --git a/phpBB2/templates/subSilver/modcp_viewip.tpl b/phpBB2/templates/subSilver/modcp_viewip.tpl deleted file mode 100644 index d497d88..0000000 --- a/phpBB2/templates/subSilver/modcp_viewip.tpl +++ /dev/null @@ -1,58 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_IP_INFO}
    {L_THIS_POST_IP}
    - - - - - -
     {IP} [ {POSTS} ][ {L_LOOKUP_IP} - ] 
    -
    {L_OTHER_USERS}
    - - - - - -
     {userrow.USERNAME} [ {userrow.POSTS} ]{L_SEARCH} -  
    -
    {L_OTHER_IPS}
    - - - - -
     {iprow.IP} [ {iprow.POSTS} ][ {L_LOOKUP_IP} - ] 
    - -
    diff --git a/phpBB2/templates/subSilver/overall_footer.tpl b/phpBB2/templates/subSilver/overall_footer.tpl deleted file mode 100644 index 0e2a66b..0000000 --- a/phpBB2/templates/subSilver/overall_footer.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {ADMIN_LINK}
    - -Powered by phpBB © 2001, 2005 phpBB Group
    {TRANSLATION_INFO}
    -
    - - - diff --git a/phpBB2/templates/subSilver/overall_header.tpl b/phpBB2/templates/subSilver/overall_header.tpl deleted file mode 100644 index 9b9c0cb..0000000 --- a/phpBB2/templates/subSilver/overall_header.tpl +++ /dev/null @@ -1,254 +0,0 @@ - - - - - -{META} -{NAV_LINKS} -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - - - -
    - - - - -
    - - - - - - - - -
     {L_FAQ}{L_FAQ}   {L_SEARCH}{L_SEARCH}   {L_MEMBERLIST}{L_MEMBERLIST}   {L_USERGROUPS}{L_USERGROUPS}  - -  {L_REGISTER}{L_REGISTER}  - -
     {L_PROFILE}{L_PROFILE}   {PRIVATE_MESSAGE_INFO}{PRIVATE_MESSAGE_INFO}   {L_LOGIN_LOGOUT}{L_LOGIN_LOGOUT} 
    - -
    diff --git a/phpBB2/templates/subSilver/overall_header.tpl.orig b/phpBB2/templates/subSilver/overall_header.tpl.orig deleted file mode 100644 index 008badc..0000000 --- a/phpBB2/templates/subSilver/overall_header.tpl.orig +++ /dev/null @@ -1,254 +0,0 @@ - - - - - -{META} -{NAV_LINKS} -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/phpBB2/templates/subSilver/posting_preview.tpl b/phpBB2/templates/subSilver/posting_preview.tpl deleted file mode 100644 index 8da3409..0000000 --- a/phpBB2/templates/subSilver/posting_preview.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -
    - - - - -
    - - - - - - - - -
     {L_FAQ}{L_FAQ}   {L_SEARCH}{L_SEARCH}   {L_MEMBERLIST}{L_MEMBERLIST}   {L_USERGROUPS}{L_USERGROUPS}  - -  {L_REGISTER}{L_REGISTER}  - -
     {L_PROFILE}{L_PROFILE}   {PRIVATE_MESSAGE_INFO}{PRIVATE_MESSAGE_INFO}   {L_LOGIN_LOGOUT}{L_LOGIN_LOGOUT} 
    - -
    diff --git a/phpBB2/templates/subSilver/posting_body.tpl b/phpBB2/templates/subSilver/posting_body.tpl deleted file mode 100644 index 94853d4..0000000 --- a/phpBB2/templates/subSilver/posting_body.tpl +++ /dev/null @@ -1,482 +0,0 @@ - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX_LINK}  {SENTBOX_IMG}{SENTBOX_LINK}  {OUTBOX_IMG}{OUTBOX_LINK}  {SAVEBOX_IMG}{SAVEBOX_LINK}  
    -
    - -
    - - -
    - -{POST_PREVIEW_BOX} -{ERROR_BOX} - - - - - - -
    {L_INDEX} - - -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {POLLBOX} - - - -
    {L_POST_A}
    {L_USERNAME}
    {L_USERNAME} 
    {L_SUBJECT} - -
    - - - - - - - -
    {L_MESSAGE_BODY}

    - - - - - - - - - - - - - - - - -
    {L_EMOTICONS}
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}
    -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - - - -
    - - - - - -
     {L_FONT_COLOR}: -  {L_FONT_SIZE}: - {L_BBCODE_CLOSE_TAGS}
    -
    - -
    - -
    -
    {L_OPTIONS}
    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - {L_DISABLE_HTML}
    - - {L_DISABLE_BBCODE}
    - - {L_DISABLE_SMILIES}
    - - {L_ATTACH_SIGNATURE}
    - - {L_NOTIFY_ON_REPLY}
    - - {L_DELETE_POST}
    {S_TYPE_TOGGLE}
    -
    {S_HIDDEN_FORM_FIELDS} 
    - - - - - -
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    - -{TOPIC_REVIEW_BOX} diff --git a/phpBB2/templates/subSilver/posting_poll_body.tpl b/phpBB2/templates/subSilver/posting_poll_body.tpl deleted file mode 100644 index 4391393..0000000 --- a/phpBB2/templates/subSilver/posting_poll_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -
    {L_ADD_A_POLL}
    {L_ADD_POLL_EXPLAIN}
    {L_POLL_QUESTION}
    {L_POLL_OPTION}  
    {L_POLL_OPTION}  
    {L_POLL_LENGTH} {L_DAYS}   {L_POLL_LENGTH_EXPLAIN}
    {L_POLL_DELETE}
    - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_POST}{L_POSTED}: {POST_DATE}     {L_POST_SUBJECT}: {POST_SUBJECT}
    - - - -
    - {MESSAGE} -
    - -
    diff --git a/phpBB2/templates/subSilver/posting_smilies.tpl b/phpBB2/templates/subSilver/posting_smilies.tpl deleted file mode 100644 index 7028535..0000000 --- a/phpBB2/templates/subSilver/posting_smilies.tpl +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - -
    - - - - - - - - - -
    {L_EMOTICONS}
    - - - - - - - - - - - - -
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}

    {L_CLOSE_WINDOW}
    diff --git a/phpBB2/templates/subSilver/posting_topic_review.tpl b/phpBB2/templates/subSilver/posting_topic_review.tpl deleted file mode 100644 index 7b8960c..0000000 --- a/phpBB2/templates/subSilver/posting_topic_review.tpl +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - -
    {L_TOPIC_REVIEW}
    - diff --git a/phpBB2/templates/subSilver/privmsgs_body.tpl b/phpBB2/templates/subSilver/privmsgs_body.tpl deleted file mode 100644 index 3c221c5..0000000 --- a/phpBB2/templates/subSilver/privmsgs_body.tpl +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}  
    -
    - - - - - - - - - - - - - -
    {BOX_SIZE_STATUS}
    - - - - -
    {INBOX_LIMIT_PERCENT}
    -
    0%50%100%
    - -
    - -
    - -
    - - - - - - -
    {POST_PM_IMG} {L_INDEX}{L_DISPLAY_MESSAGES}: - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FLAG}  {L_SUBJECT}  {L_FROM_OR_TO}  {L_DATE}  {L_MARK} 
    {listrow.L_PRIVMSG_FOLDER_ALT} {listrow.SUBJECT} {listrow.FROM}{listrow.DATE} - -
    {L_NO_MESSAGES}
    {S_HIDDEN_FIELDS} - -   - -   - -
    - - - - - - - -
    {POST_PM_IMG}{PAGE_NUMBER}{L_MARK_ALL} :: {L_UNMARK_ALL}
    {PAGINATION}
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/subSilver/privmsgs_popup.tpl b/phpBB2/templates/subSilver/privmsgs_popup.tpl deleted file mode 100644 index e48205b..0000000 --- a/phpBB2/templates/subSilver/privmsgs_popup.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - -
    - - - - -

    {L_MESSAGE}

    {L_CLOSE_WINDOW}

    -
    diff --git a/phpBB2/templates/subSilver/privmsgs_preview.tpl b/phpBB2/templates/subSilver/privmsgs_preview.tpl deleted file mode 100644 index ba2ed93..0000000 --- a/phpBB2/templates/subSilver/privmsgs_preview.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT}
    {MESSAGE}
    - -
    diff --git a/phpBB2/templates/subSilver/privmsgs_read_body.tpl b/phpBB2/templates/subSilver/privmsgs_read_body.tpl deleted file mode 100644 index 3c85e6a..0000000 --- a/phpBB2/templates/subSilver/privmsgs_read_body.tpl +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}
    - -
    - -
    - - - - - -
    {REPLY_PM_IMG} {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {BOX_NAME} :: {L_MESSAGE}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT} {QUOTE_PM_IMG} {EDIT_PM_IMG}
    {MESSAGE}
    - - - - -
    {PROFILE_IMG} {PM_IMG} {EMAIL_IMG} - {WWW_IMG} {AIM_IMG} {YIM_IMG} {MSN_IMG} 
    -
    {S_HIDDEN_FIELDS} - -   - -
    - - - - - -
    {REPLY_PM_IMG}{S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/subSilver/profile_add_body.tpl b/phpBB2/templates/subSilver/profile_add_body.tpl deleted file mode 100644 index a9d1f62..0000000 --- a/phpBB2/templates/subSilver/profile_add_body.tpl +++ /dev/null @@ -1,274 +0,0 @@ - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: *{USERNAME}
    {L_USERNAME}: *
    {L_EMAIL_ADDRESS}: *
    {L_CURRENT_PASSWORD}: *
    - {L_CONFIRM_PASSWORD_EXPLAIN}
    - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
    {L_CONFIRM_CODE_IMPAIRED}

    {CONFIRM_IMG}

    {L_CONFIRM_CODE}: *
    {L_CONFIRM_CODE_EXPLAIN}
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER}: - -
    {L_AIM}: - -
    {L_MESSENGER}: - -
    {L_YAHOO}: - -
    {L_WEBSITE}: - -
    {L_LOCATION}: - -
    {L_OCCUPATION}: - -
    {L_INTERESTS}: - -
    {L_SIGNATURE}:
    {L_SIGNATURE_EXPLAIN}

    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL}: - - {L_YES}   - - {L_NO}
    {L_HIDE_USER}: - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY}:
    - {L_NOTIFY_ON_REPLY_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG}: - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG}:
    {L_POPUP_ON_PRIVMSG_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES}: - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}:{LANGUAGE_SELECT}
    {L_BOARD_STYLE}:{STYLE_SELECT}
    {L_TIMEZONE}:{TIMEZONE_SELECT}
    {L_DATE_FORMAT}:
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    {AVATAR}
     {L_DELETE_AVATAR}
    {L_UPLOAD_AVATAR_FILE}:
    {L_UPLOAD_AVATAR_URL}:
    {L_UPLOAD_AVATAR_URL_EXPLAIN}
    {L_LINK_REMOTE_AVATAR}:
    {L_LINK_REMOTE_AVATAR_EXPLAIN}
    {L_AVATAR_GALLERY}:
    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2/templates/subSilver/profile_avatar_gallery.tpl b/phpBB2/templates/subSilver/profile_avatar_gallery.tpl deleted file mode 100644 index 9be5375..0000000 --- a/phpBB2/templates/subSilver/profile_avatar_gallery.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}: {S_CATEGORY_SELECT} 
    {avatar_row.avatar_column.AVATAR_NAME}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/subSilver/profile_send_email.tpl b/phpBB2/templates/subSilver/profile_send_email.tpl deleted file mode 100644 index 86c28cb..0000000 --- a/phpBB2/templates/subSilver/profile_send_email.tpl +++ /dev/null @@ -1,74 +0,0 @@ - - - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEND_EMAIL_MSG}
    {L_RECIPIENT}{USERNAME}
    {L_SUBJECT}
    {L_MESSAGE_BODY}
    {L_MESSAGE_BODY_DESC}
    {L_OPTIONS} - - - - -
    {L_CC_EMAIL}
    {S_HIDDEN_FIELDS}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/subSilver/profile_send_pass.tpl b/phpBB2/templates/subSilver/profile_send_pass.tpl deleted file mode 100644 index 8d31aa4..0000000 --- a/phpBB2/templates/subSilver/profile_send_pass.tpl +++ /dev/null @@ -1,35 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - -
    {L_SEND_PASSWORD}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2/templates/subSilver/profile_view_body.tpl b/phpBB2/templates/subSilver/profile_view_body.tpl deleted file mode 100644 index a9c3c6f..0000000 --- a/phpBB2/templates/subSilver/profile_view_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - -
    {L_VIEWING_PROFILE}
    {L_AVATAR}{L_ABOUT_USER}
    {AVATAR_IMG}
    {POSTER_RANK}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_JOINED}: {JOINED}
    {L_TOTAL_POSTS}: {POSTS}
    [{POST_PERCENT_STATS} / {POST_DAY_STATS}]
    {L_SEARCH_USER_POSTS}
    {L_LOCATION}: {LOCATION}
    {L_WEBSITE}: {WWW}
    {L_OCCUPATION}: {OCCUPATION}
    {L_INTERESTS}: {INTERESTS}
    -
    {L_CONTACT} {USERNAME}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_EMAIL_ADDRESS}:{EMAIL_IMG}
    {L_PM}:{PM_IMG}
    {L_MESSENGER}:{MSN}
    {L_YAHOO}:{YIM_IMG}
    {L_AIM}:{AIM_IMG}
    {L_ICQ_NUMBER}:
    -
    - - - - - -

    {JUMPBOX}
    diff --git a/phpBB2/templates/subSilver/search_body.tpl b/phpBB2/templates/subSilver/search_body.tpl deleted file mode 100644 index 23887b9..0000000 --- a/phpBB2/templates/subSilver/search_body.tpl +++ /dev/null @@ -1,57 +0,0 @@ - -
    - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEARCH_QUERY}
    {L_SEARCH_KEYWORDS}:
    {L_SEARCH_KEYWORDS_EXPLAIN}

    {L_SEARCH_ANY_TERMS}
    {L_SEARCH_ALL_TERMS}
    {L_SEARCH_AUTHOR}:
    {L_SEARCH_AUTHOR_EXPLAIN}
    {L_SEARCH_OPTIONS}
    {L_FORUM}: {L_SEARCH_PREVIOUS}: 
    {L_SEARCH_MESSAGE_TITLE}
    {L_SEARCH_MESSAGE_ONLY}
    {L_CATEGORY}: {L_SORT_BY}: 
    {L_SORT_ASCENDING}
    {L_SORT_DESCENDING}
     
    {L_DISPLAY_RESULTS}: {L_POSTS}{L_TOPICS}{L_RETURN_FIRST} {L_CHARACTERS}
    {S_HIDDEN_FIELDS}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/subSilver/search_results_posts.tpl b/phpBB2/templates/subSilver/search_results_posts.tpl deleted file mode 100644 index 15187c3..0000000 --- a/phpBB2/templates/subSilver/search_results_posts.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - -
    {L_AUTHOR}{L_MESSAGE}
      {L_TOPIC}: {searchresults.TOPIC_TITLE}
    {searchresults.POSTER_NAME}
    -
    - {L_REPLIES}: {searchresults.TOPIC_REPLIES}
    - {L_VIEWS}: {searchresults.TOPIC_VIEWS}

    -
    {searchresults.L_MINI_POST_ALT}{L_FORUM}: {searchresults.FORUM_NAME}   {L_POSTED}: {searchresults.POST_DATE}   {L_SUBJECT}: {searchresults.POST_SUBJECT}
    {searchresults.MESSAGE}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/subSilver/search_results_topics.tpl b/phpBB2/templates/subSilver/search_results_topics.tpl deleted file mode 100644 index d628e01..0000000 --- a/phpBB2/templates/subSilver/search_results_topics.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - -
      {L_FORUM}  {L_TOPICS}  {L_AUTHOR}  {L_REPLIES}  {L_VIEWS}  {L_LASTPOST} 
    {searchresults.L_TOPIC_FOLDER_ALT}{searchresults.FORUM_NAME}{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}{searchresults.TOPIC_TITLE}
    {searchresults.GOTO_PAGE}
    {searchresults.TOPIC_AUTHOR}{searchresults.REPLIES}{searchresults.VIEWS}{searchresults.LAST_POST_TIME}
    {searchresults.LAST_POST_AUTHOR} {searchresults.LAST_POST_IMG}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2/templates/subSilver/search_username.tpl b/phpBB2/templates/subSilver/search_username.tpl deleted file mode 100644 index 611ec3f..0000000 --- a/phpBB2/templates/subSilver/search_username.tpl +++ /dev/null @@ -1,30 +0,0 @@ - - - -
    - - - - -
    - - - - - - -
    {L_SEARCH_USERNAME}

     

    {L_SEARCH_EXPLAIN}
    - - {L_UPDATE_USERNAME}
     

    - -
    {L_CLOSE_WINDOW}
    -
    diff --git a/phpBB2/templates/subSilver/simple_footer.tpl b/phpBB2/templates/subSilver/simple_footer.tpl deleted file mode 100644 index 92d54d4..0000000 --- a/phpBB2/templates/subSilver/simple_footer.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    - -Powered by phpBB © 2001, 2005 phpBB Group
    -
    - - - diff --git a/phpBB2/templates/subSilver/simple_header.tpl b/phpBB2/templates/subSilver/simple_header.tpl deleted file mode 100644 index 52733c9..0000000 --- a/phpBB2/templates/subSilver/simple_header.tpl +++ /dev/null @@ -1,243 +0,0 @@ - - - - - - - - - - -{META} -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - diff --git a/phpBB2/templates/subSilver/subSilver.cfg b/phpBB2/templates/subSilver/subSilver.cfg deleted file mode 100644 index 2c859ad..0000000 --- a/phpBB2/templates/subSilver/subSilver.cfg +++ /dev/null @@ -1,101 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2/templates/subSilver/subSilver.css b/phpBB2/templates/subSilver/subSilver.css deleted file mode 100644 index ba58268..0000000 --- a/phpBB2/templates/subSilver/subSilver.css +++ /dev/null @@ -1,210 +0,0 @@ -/* - The original subSilver Theme for phpBB version 2+ - Created by subBlue design - http://www.subBlue.com -*/ - - - /* General page style. The scroll bar colours only visible in IE5.5+ */ -body { - background-color: #E5E5E5; - scrollbar-face-color: #DEE3E7; - scrollbar-highlight-color: #FFFFFF; - scrollbar-shadow-color: #DEE3E7; - scrollbar-3dlight-color: #D1D7DC; - scrollbar-arrow-color: #006699; - scrollbar-track-color: #EFEFEF; - scrollbar-darkshadow-color: #98AAB1; -} - -/* General font families for common tags */ -font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } -a:link,a:active,a:visited { color : #006699; } -a:hover { text-decoration: underline; color : #DD6900; } -hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} - - -/* This is the border line & background colour round the entire page */ -.bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } - -/* This is the outline round the main forum tables */ -.forumline { background-color: #FFFFFF; border: 2px #006699 solid; } - - -/* Main table cell colours and backgrounds */ -td.row1 { background-color: #EFEFEF; } -td.row2 { background-color: #DEE3E7; } -td.row3 { background-color: #D1D7DC; } - - -/* - This is for the table cell above the Topics, Post & Last posts on the index.php page - By default this is the fading out gradiated silver background. - However, you could replace this with a bitmap specific for each forum -*/ -td.rowpic { - background-color: #FFFFFF; - background-image: url(images/cellpic2.jpg); - background-repeat: repeat-y; -} - -/* Header cells - the blue and silver gradient backgrounds */ -th { - color: #FFA34F; font-size: 11px; font-weight : bold; - background-color: #006699; height: 25px; - background-image: url(images/cellpic3.gif); -} - -td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { - background-image: url(images/cellpic1.gif); - background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; -} - - -/* - Setting additional nice inner borders for the main table cells. - The names indicate which sides the border will be on. - Don't worry if you don't understand this, just ignore it :-) -*/ -td.cat,td.catHead,td.catBottom { - height: 29px; - border-width: 0px 0px 0px 0px; -} -th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { - font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } -td.row3Right,td.spaceRow { - background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } - -th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } -th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } -th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } -th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } -th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } -th.thTop { border-width: 1px 0px 0px 0px; } -th.thCornerL { border-width: 1px 0px 0px 1px; } -th.thCornerR { border-width: 1px 1px 0px 0px; } - - -/* The largest text used in the index page title and toptic title etc. */ -.maintitle,h1,h2 { - font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; - text-decoration: none; line-height : 120%; color : #000000; -} - - -/* General text */ -.gen { font-size : 12px; } -.genmed { font-size : 11px; } -.gensmall { font-size : 10px; } -.gen,.genmed,.gensmall { color : #000000; } -a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } -a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } - - -/* The register, login, search etc links at the top of the page */ -.mainmenu { font-size : 11px; color : #000000 } -a.mainmenu { text-decoration: none; color : #006699; } -a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } - - -/* Forum category titles */ -.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} -a.cattitle { text-decoration: none; color : #006699; } -a.cattitle:hover{ text-decoration: underline; } - - -/* Forum title: Text and link to the forums used in: index.php */ -.forumlink { font-weight: bold; font-size: 12px; color : #006699; } -a.forumlink { text-decoration: none; color : #006699; } -a.forumlink:hover{ text-decoration: underline; color : #DD6900; } - - -/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ -.nav { font-weight: bold; font-size: 11px; color : #000000;} -a.nav { text-decoration: none; color : #006699; } -a.nav:hover { text-decoration: underline; } - - -/* titles for the topics: could specify viewed link colour too */ -.topictitle { font-weight: bold; font-size: 11px; color : #000000; } -a.topictitle:link { text-decoration: none; color : #006699; } -a.topictitle:visited { text-decoration: none; color : #5493B4; } -a.topictitle:hover { text-decoration: underline; color : #DD6900; } - - -/* Name of poster in viewmsg.php and viewtopic.php and other places */ -.name { font-size : 11px; color : #000000;} - -/* Location, number of posts, post date etc */ -.postdetails { font-size : 10px; color : #000000; } - - -/* The content of the posts (body of text) */ -.postbody { font-size : 12px;} -a.postlink:link { text-decoration: none; color : #006699 } -a.postlink:visited { text-decoration: none; color : #5493B4; } -a.postlink:hover { text-decoration: underline; color : #DD6900} - - -/* Quote & Code blocks */ -.code { - font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; - background-color: #FAFAFA; border: #D1D7DC; border-style: solid; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - -.quote { - font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; - background-color: #FAFAFA; border: #D1D7DC; border-style: solid; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - - -/* Copyright and bottom info */ -.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} -a.copyright { color: #444444; text-decoration: none;} -a.copyright:hover { color: #000000; text-decoration: underline;} - - -/* Form elements */ -input,textarea, select { - color : #000000; - font: normal 11px Verdana, Arial, Helvetica, sans-serif; - border-color : #000000; -} - -/* The text input fields background colour */ -input.post, textarea.post, select { - background-color : #FFFFFF; -} - -input { text-indent : 2px; } - -/* The buttons used for bbCode styling in message post */ -input.button { - background-color : #EFEFEF; - color : #000000; - font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; -} - -/* The main submit button option */ -input.mainoption { - background-color : #FAFAFA; - font-weight : bold; -} - -/* None-bold submit button */ -input.liteoption { - background-color : #FAFAFA; - font-weight : normal; -} - -/* This is the line in the posting page which shows the rollover - help line. This is actually a text box, but if set to be the same - colour as the background no one will know ;) -*/ -.helpline { background-color: #DEE3E7; border-style: none; } - - -/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ -@import url("formIE.css"); diff --git a/phpBB2/templates/subSilver/temp/header.tpl b/phpBB2/templates/subSilver/temp/header.tpl deleted file mode 100644 index c037df0..0000000 --- a/phpBB2/templates/subSilver/temp/header.tpl +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - -
    - - -Home -About me -Forum -News -Pictures -Search - - -
    - - - -
    -
    - diff --git a/phpBB2/templates/subSilver/temp/index_body.tpl b/phpBB2/templates/subSilver/temp/index_body.tpl deleted file mode 100644 index 86da30d..0000000 --- a/phpBB2/templates/subSilver/temp/index_body.tpl +++ /dev/null @@ -1,103 +0,0 @@ - - - - - -
    - - {LAST_VISIT_DATE}
    - - {CURRENT_TIME}
    {L_INDEX}
    - - {L_SEARCH_NEW}
    {L_SEARCH_SELF}
    - - {L_SEARCH_UNANSWERED}
    - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FORUM}  {L_TOPICS}  {L_POSTS}  {L_LASTPOST} 
    {catrow.CAT_DESC} 
    {catrow.forumrow.L_FORUM_FOLDER_ALT} {catrow.forumrow.FORUM_NAME}
    -
    {catrow.forumrow.FORUM_DESC}
    -
    {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
    {catrow.forumrow.TOPICS}{catrow.forumrow.POSTS} {catrow.forumrow.LAST_POST}
    - - - - - - -
    {L_MARK_FORUMS_READ}{S_TIMEZONE}
    - - - - - - - - - - - - -
    {L_WHO_IS_ONLINE}
    {L_WHO_IS_ONLINE}{TOTAL_POSTS}
    {TOTAL_USERS}
    {NEWEST_USER}
    -
    {TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
    {RECORD_USERS}
    {LOGGED_IN_USER_LIST}
    - - - - - -
    {L_ONLINE_EXPLAIN}
    - - -
    - - - - - - - -
    {L_LOGIN_LOGOUT}
    {L_USERNAME}: - -    {L_PASSWORD}: - -      {L_AUTO_LOGIN} - -     - -
    -
    - - -
    - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_FORUM_LOCKED}{L_FORUM_LOCKED}
    diff --git a/phpBB2/templates/subSilver/temp/overall_footer.tpl b/phpBB2/templates/subSilver/temp/overall_footer.tpl deleted file mode 100644 index 91ad361..0000000 --- a/phpBB2/templates/subSilver/temp/overall_footer.tpl +++ /dev/null @@ -1,20 +0,0 @@ - -

    {ADMIN_LINK}
    - -
    -Powered by phpBB {PHPBB_VERSION} © 2001, 2002 phpBB Group
    {TRANSLATION_INFO}
    - - - -
  • - - diff --git a/phpBB2/templates/subSilver/temp/overall_header.tpl b/phpBB2/templates/subSilver/temp/overall_header.tpl deleted file mode 100644 index 5a57a97..0000000 --- a/phpBB2/templates/subSilver/temp/overall_header.tpl +++ /dev/null @@ -1,252 +0,0 @@ - - - - - -{META} -{NAV_LINKS} -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/phpBB2/templates/subSilver/viewtopic_poll_result.tpl b/phpBB2/templates/subSilver/viewtopic_poll_result.tpl deleted file mode 100644 index 45d11ea..0000000 --- a/phpBB2/templates/subSilver/viewtopic_poll_result.tpl +++ /dev/null @@ -1,36 +0,0 @@ - - - - diff --git a/phpBB2/viewforum.php b/phpBB2/viewforum.php deleted file mode 100644 index 69b76a7..0000000 --- a/phpBB2/viewforum.php +++ /dev/null @@ -1,696 +0,0 @@ -sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql); - } -} -else -{ - message_die(GENERAL_MESSAGE, 'Forum_not_exist'); -} - -// -// If the query doesn't return any rows this isn't a valid forum. Inform -// the user. -// -if ( !($forum_row = $db->sql_fetchrow($result)) ) -{ - message_die(GENERAL_MESSAGE, 'Forum_not_exist'); -} - -// -// Start session management -// -$userdata = session_pagestart($user_ip, $forum_id); -init_userprefs($userdata); -// -// End session management -// - -// -// Start auth check -// -$is_auth = array(); -$is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_row); - -if ( !$is_auth['auth_read'] || !$is_auth['auth_view'] ) -{ - if ( !$userdata['session_logged_in'] ) - { - $redirect = POST_FORUM_URL . "=$forum_id" . ( ( isset($start) ) ? "&start=$start" : '' ); - redirect(append_sid("login.$phpEx?redirect=viewforum.$phpEx&$redirect", true)); - } - // - // The user is not authed to read this forum ... - // - $message = ( !$is_auth['auth_view'] ) ? $lang['Forum_not_exist'] : sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']); - - message_die(GENERAL_MESSAGE, $message); -} -// -// End of auth check -// - -// -// Handle marking posts -// -if ( $mark_read == 'topics' ) -{ - if ( $userdata['session_logged_in'] ) - { - $sql = "SELECT MAX(post_time) AS last_post - FROM " . POSTS_TABLE . " - WHERE forum_id = $forum_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array(); - $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array(); - - if ( ( count($tracking_forums) + count($tracking_topics) ) >= 150 && empty($tracking_forums[$forum_id]) ) - { - asort($tracking_forums); - unset($tracking_forums[key($tracking_forums)]); - } - - if ( $row['last_post'] > $userdata['user_lastvisit'] ) - { - $tracking_forums[$forum_id] = time(); - - setcookie($board_config['cookie_name'] . '_f', serialize($tracking_forums), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']); - } - } - - $template->assign_vars(array( - 'META' => '') - ); - } - - $message = $lang['Topics_marked_read'] . '

    ' . sprintf($lang['Click_return_forum'], '', ' '); - message_die(GENERAL_MESSAGE, $message); -} -// -// End handle marking posts -// - -$tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : ''; -$tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : ''; - -// -// Do the forum Prune -// -if ( $is_auth['auth_mod'] && $board_config['prune_enable'] ) -{ - if ( $forum_row['prune_next'] < time() && $forum_row['prune_enable'] ) - { - include($phpbb_root_path . 'includes/prune.'.$phpEx); - require($phpbb_root_path . 'includes/functions_admin.'.$phpEx); - auto_prune($forum_id); - } -} -// -// End of forum prune -// - -// -// Obtain list of moderators of each forum -// First users, then groups ... broken into two queries -// -$sql = "SELECT u.user_id, u.username - FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g, " . USERS_TABLE . " u - WHERE aa.forum_id = $forum_id - AND aa.auth_mod = " . TRUE . " - AND g.group_single_user = 1 - AND ug.group_id = aa.group_id - AND g.group_id = aa.group_id - AND u.user_id = ug.user_id - GROUP BY u.user_id, u.username - ORDER BY u.user_id"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql); -} - -$moderators = array(); -while( $row = $db->sql_fetchrow($result) ) -{ - $moderators[] = '' . $row['username'] . ''; -} - -$sql = "SELECT g.group_id, g.group_name - FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g - WHERE aa.forum_id = $forum_id - AND aa.auth_mod = " . TRUE . " - AND g.group_single_user = 0 - AND g.group_type <> ". GROUP_HIDDEN ." - AND ug.group_id = aa.group_id - AND g.group_id = aa.group_id - GROUP BY g.group_id, g.group_name - ORDER BY g.group_id"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql); -} - -while( $row = $db->sql_fetchrow($result) ) -{ - $moderators[] = '' . $row['group_name'] . ''; -} - -$l_moderators = ( count($moderators) == 1 ) ? $lang['Moderator'] : $lang['Moderators']; -$forum_moderators = ( count($moderators) ) ? implode(', ', $moderators) : $lang['None']; -unset($moderators); - -// -// Generate a 'Show topics in previous x days' select box. If the topicsdays var is sent -// then get it's value, find the number of topics with dates newer than it (to properly -// handle pagination) and alter the main query -// -$previous_days = array(0, 1, 7, 14, 30, 90, 180, 364); -$previous_days_text = array($lang['All_Topics'], $lang['1_Day'], $lang['7_Days'], $lang['2_Weeks'], $lang['1_Month'], $lang['3_Months'], $lang['6_Months'], $lang['1_Year']); - -if ( !empty($HTTP_POST_VARS['topicdays']) || !empty($HTTP_GET_VARS['topicdays']) ) -{ - $topic_days = ( !empty($HTTP_POST_VARS['topicdays']) ) ? intval($HTTP_POST_VARS['topicdays']) : intval($HTTP_GET_VARS['topicdays']); - $min_topic_time = time() - ($topic_days * 86400); - - $sql = "SELECT COUNT(t.topic_id) AS forum_topics - FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p - WHERE t.forum_id = $forum_id - AND p.post_id = t.topic_last_post_id - AND p.post_time >= $min_topic_time"; - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain limited topics count information', '', __LINE__, __FILE__, $sql); - } - $row = $db->sql_fetchrow($result); - - $topics_count = ( $row['forum_topics'] ) ? $row['forum_topics'] : 1; - $limit_topics_time = "AND p.post_time >= $min_topic_time"; - - if ( !empty($HTTP_POST_VARS['topicdays']) ) - { - $start = 0; - } -} -else -{ - $topics_count = ( $forum_row['forum_topics'] ) ? $forum_row['forum_topics'] : 1; - - $limit_topics_time = ''; - $topic_days = 0; -} - -$select_topic_days = ''; - - -// -// All announcement data, this keeps announcements -// on each viewforum page ... -// -$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_time, p.post_username - FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . USERS_TABLE . " u2 - WHERE t.forum_id = $forum_id - AND t.topic_poster = u.user_id - AND p.post_id = t.topic_last_post_id - AND p.poster_id = u2.user_id - AND t.topic_type = " . POST_ANNOUNCE . " - ORDER BY t.topic_last_post_id DESC "; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql); -} - -$topic_rowset = array(); -$total_announcements = 0; -while( $row = $db->sql_fetchrow($result) ) -{ - $topic_rowset[] = $row; - $total_announcements++; -} - -$db->sql_freeresult($result); - -// -// Grab all the basic data (all topics except announcements) -// for this forum -// -$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time - FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u2 - WHERE t.forum_id = $forum_id - AND t.topic_poster = u.user_id - AND p.post_id = t.topic_first_post_id - AND p2.post_id = t.topic_last_post_id - AND u2.user_id = p2.poster_id - AND t.topic_type <> " . POST_ANNOUNCE . " - $limit_topics_time - ORDER BY t.topic_type DESC, t.topic_last_post_id DESC - LIMIT $start, ".$board_config['topics_per_page']; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql); -} - -$total_topics = 0; -while( $row = $db->sql_fetchrow($result) ) -{ - $topic_rowset[] = $row; - $total_topics++; -} - -$db->sql_freeresult($result); - -// -// Total topics ... -// -$total_topics += $total_announcements; - -// -// Define censored word matches -// -$orig_word = array(); -$replacement_word = array(); -obtain_word_list($orig_word, $replacement_word); - -// -// Post URL generation for templating vars -// -$template->assign_vars(array( - 'L_DISPLAY_TOPICS' => $lang['Display_topics'], - - 'U_POST_NEW_TOPIC' => append_sid("posting.$phpEx?mode=newtopic&" . POST_FORUM_URL . "=$forum_id"), - - 'S_SELECT_TOPIC_DAYS' => $select_topic_days, - 'S_POST_DAYS_ACTION' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_id . "&start=$start")) -); - -// -// User authorisation levels output -// -$s_auth_can = ( ( $is_auth['auth_post'] ) ? $lang['Rules_post_can'] : $lang['Rules_post_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_reply'] ) ? $lang['Rules_reply_can'] : $lang['Rules_reply_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_edit'] ) ? $lang['Rules_edit_can'] : $lang['Rules_edit_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_delete'] ) ? $lang['Rules_delete_can'] : $lang['Rules_delete_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot'] ) . '
    '; - -if ( $is_auth['auth_mod'] ) -{ - $s_auth_can .= sprintf($lang['Rules_moderate'], "', ''); -} - -// -// Mozilla navigation bar -// -$nav_links['up'] = array( - 'url' => append_sid('index.'.$phpEx), - 'title' => sprintf($lang['Forum_Index'], $board_config['sitename']) -); - -// -// Dump out the page header and load viewforum template -// -define('SHOW_ONLINE', true); -$page_title = $lang['View_forum'] . ' - ' . $forum_row['forum_name']; -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -$template->set_filenames(array( - 'body' => 'viewforum_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$template->assign_vars(array( - 'FORUM_ID' => $forum_id, - 'FORUM_NAME' => $forum_row['forum_name'], - 'MODERATORS' => $forum_moderators, - 'POST_IMG' => ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new'], - - 'FOLDER_IMG' => $images['folder'], - 'FOLDER_NEW_IMG' => $images['folder_new'], - 'FOLDER_HOT_IMG' => $images['folder_hot'], - 'FOLDER_HOT_NEW_IMG' => $images['folder_hot_new'], - 'FOLDER_LOCKED_IMG' => $images['folder_locked'], - 'FOLDER_LOCKED_NEW_IMG' => $images['folder_locked_new'], - 'FOLDER_STICKY_IMG' => $images['folder_sticky'], - 'FOLDER_STICKY_NEW_IMG' => $images['folder_sticky_new'], - 'FOLDER_ANNOUNCE_IMG' => $images['folder_announce'], - 'FOLDER_ANNOUNCE_NEW_IMG' => $images['folder_announce_new'], - - 'L_TOPICS' => $lang['Topics'], - 'L_REPLIES' => $lang['Replies'], - 'L_VIEWS' => $lang['Views'], - 'L_POSTS' => $lang['Posts'], - 'L_LASTPOST' => $lang['Last_Post'], - 'L_MODERATOR' => $l_moderators, - 'L_MARK_TOPICS_READ' => $lang['Mark_all_topics'], - 'L_POST_NEW_TOPIC' => ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['Post_new_topic'], - 'L_NO_NEW_POSTS' => $lang['No_new_posts'], - 'L_NEW_POSTS' => $lang['New_posts'], - 'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'], - 'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'], - 'L_NO_NEW_POSTS_HOT' => $lang['No_new_posts_hot'], - 'L_NEW_POSTS_HOT' => $lang['New_posts_hot'], - 'L_ANNOUNCEMENT' => $lang['Post_Announcement'], - 'L_STICKY' => $lang['Post_Sticky'], - 'L_POSTED' => $lang['Posted'], - 'L_JOINED' => $lang['Joined'], - 'L_AUTHOR' => $lang['Author'], - - 'S_AUTH_LIST' => $s_auth_can, - - 'U_VIEW_FORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL ."=$forum_id"), - - 'U_MARK_READ' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id&mark=topics")) -); -// -// End header -// - -// -// Okay, lets dump out the page ... -// -if( $total_topics ) -{ - for($i = 0; $i < $total_topics; $i++) - { - $topic_id = $topic_rowset[$i]['topic_id']; - - $topic_title = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $topic_rowset[$i]['topic_title']) : $topic_rowset[$i]['topic_title']; - - $replies = $topic_rowset[$i]['topic_replies']; - - $topic_type = $topic_rowset[$i]['topic_type']; - - if( $topic_type == POST_ANNOUNCE ) - { - $topic_type = $lang['Topic_Announcement'] . ' '; - } - else if( $topic_type == POST_STICKY ) - { - $topic_type = $lang['Topic_Sticky'] . ' '; - } - else - { - $topic_type = ''; - } - - if( $topic_rowset[$i]['topic_vote'] ) - { - $topic_type .= $lang['Topic_Poll'] . ' '; - } - - if( $topic_rowset[$i]['topic_status'] == TOPIC_MOVED ) - { - $topic_type = $lang['Topic_Moved'] . ' '; - $topic_id = $topic_rowset[$i]['topic_moved_id']; - - $folder_image = $images['folder']; - $folder_alt = $lang['Topics_Moved']; - $newest_post_img = ''; - } - else - { - if( $topic_rowset[$i]['topic_type'] == POST_ANNOUNCE ) - { - $folder = $images['folder_announce']; - $folder_new = $images['folder_announce_new']; - } - else if( $topic_rowset[$i]['topic_type'] == POST_STICKY ) - { - $folder = $images['folder_sticky']; - $folder_new = $images['folder_sticky_new']; - } - else if( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) - { - $folder = $images['folder_locked']; - $folder_new = $images['folder_locked_new']; - } - else - { - if($replies >= $board_config['hot_threshold']) - { - $folder = $images['folder_hot']; - $folder_new = $images['folder_hot_new']; - } - else - { - $folder = $images['folder']; - $folder_new = $images['folder_new']; - } - } - - $newest_post_img = ''; - if( $userdata['session_logged_in'] ) - { - if( $topic_rowset[$i]['post_time'] > $userdata['user_lastvisit'] ) - { - if( !empty($tracking_topics) || !empty($tracking_forums) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) - { - $unread_topics = true; - - if( !empty($tracking_topics[$topic_id]) ) - { - if( $tracking_topics[$topic_id] >= $topic_rowset[$i]['post_time'] ) - { - $unread_topics = false; - } - } - - if( !empty($tracking_forums[$forum_id]) ) - { - if( $tracking_forums[$forum_id] >= $topic_rowset[$i]['post_time'] ) - { - $unread_topics = false; - } - } - - if( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) - { - if( $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all'] >= $topic_rowset[$i]['post_time'] ) - { - $unread_topics = false; - } - } - - if( $unread_topics ) - { - $folder_image = $folder_new; - $folder_alt = $lang['New_posts']; - - $newest_post_img = '' . $lang['View_newest_post'] . ' '; - } - else - { - $folder_image = $folder; - $folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; - - $newest_post_img = ''; - } - } - else - { - $folder_image = $folder_new; - $folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['New_posts']; - - $newest_post_img = '' . $lang['View_newest_post'] . ' '; - } - } - else - { - $folder_image = $folder; - $folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; - - $newest_post_img = ''; - } - } - else - { - $folder_image = $folder; - $folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; - - $newest_post_img = ''; - } - } - - if( ( $replies + 1 ) > $board_config['posts_per_page'] ) - { - $total_pages = ceil( ( $replies + 1 ) / $board_config['posts_per_page'] ); - $goto_page = ' [ ' . $lang['Goto_page'] . '' . $lang['Goto_page'] . ': '; - - $times = 1; - for($j = 0; $j < $replies + 1; $j += $board_config['posts_per_page']) - { - $goto_page .= '' . $times . ''; - if( $times == 1 && $total_pages > 4 ) - { - $goto_page .= ' ... '; - $times = $total_pages - 3; - $j += ( $total_pages - 4 ) * $board_config['posts_per_page']; - } - else if ( $times < $total_pages ) - { - $goto_page .= ', '; - } - $times++; - } - $goto_page .= ' ] '; - } - else - { - $goto_page = ''; - } - - $view_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id"); - - $topic_author = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '' : ''; - $topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? $topic_rowset[$i]['username'] : ( ( $topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : $lang['Guest'] ); - - $topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '' : ''; - - $first_post_time = create_date($board_config['default_dateformat'], $topic_rowset[$i]['topic_time'], $board_config['board_timezone']); - - $last_post_time = create_date($board_config['default_dateformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']); - - $last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '' . $topic_rowset[$i]['user2'] . ''; - - $last_post_url = '' . $lang['View_latest_post'] . ''; - - $views = $topic_rowset[$i]['topic_views']; - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('topicrow', array( - 'ROW_COLOR' => $row_color, - 'ROW_CLASS' => $row_class, - 'FORUM_ID' => $forum_id, - 'TOPIC_ID' => $topic_id, - 'TOPIC_FOLDER_IMG' => $folder_image, - 'TOPIC_AUTHOR' => $topic_author, - 'GOTO_PAGE' => $goto_page, - 'REPLIES' => $replies, - 'NEWEST_POST_IMG' => $newest_post_img, - 'TOPIC_TITLE' => $topic_title, - 'TOPIC_TYPE' => $topic_type, - 'VIEWS' => $views, - 'FIRST_POST_TIME' => $first_post_time, - 'LAST_POST_TIME' => $last_post_time, - 'LAST_POST_AUTHOR' => $last_post_author, - 'LAST_POST_IMG' => $last_post_url, - - 'L_TOPIC_FOLDER_ALT' => $folder_alt, - - 'U_VIEW_TOPIC' => $view_topic_url) - ); - } - - $topics_count -= $total_announcements; - - $template->assign_vars(array( - 'PAGINATION' => generate_pagination("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id&topicdays=$topic_days", $topics_count, $board_config['topics_per_page'], $start), - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( $topics_count / $board_config['topics_per_page'] )), - - 'L_GOTO_PAGE' => $lang['Goto_page']) - ); -} -else -{ - // - // No topics - // - $no_topics_msg = ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['No_topics_post_one']; - $template->assign_vars(array( - 'L_NO_TOPICS' => $no_topics_msg) - ); - - $template->assign_block_vars('switch_no_topics', array() ); - -} - -// -// Parse the page and print -// -$template->pparse('body'); - -// -// Page footer -// -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/viewonline.php b/phpBB2/viewonline.php deleted file mode 100644 index 6c13b08..0000000 --- a/phpBB2/viewonline.php +++ /dev/null @@ -1,289 +0,0 @@ -set_filenames(array( - 'body' => 'viewonline_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$template->assign_vars(array( - 'L_WHOSONLINE' => $lang['Who_is_Online'], - 'L_ONLINE_EXPLAIN' => $lang['Online_explain'], - 'L_USERNAME' => $lang['Username'], - 'L_FORUM_LOCATION' => $lang['Forum_Location'], - 'L_LAST_UPDATE' => $lang['Last_updated']) -); - -// -// Forum info -// -$sql = "SELECT forum_name, forum_id - FROM " . FORUMS_TABLE; -if ( $result = $db->sql_query($sql) ) -{ - while( $row = $db->sql_fetchrow($result) ) - { - $forum_data[$row['forum_id']] = $row['forum_name']; - } -} -else -{ - message_die(GENERAL_ERROR, 'Could not obtain user/online forums information', '', __LINE__, __FILE__, $sql); -} - -// -// Get auth data -// -$is_auth_ary = array(); -$is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata); - -// -// Get user list -// -$sql = "SELECT u.user_id, u.username, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_time, s.session_page, s.session_ip - FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s - WHERE u.user_id = s.session_user_id - AND s.session_time >= ".( time() - 300 ) . " - ORDER BY u.username ASC, s.session_ip ASC"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not obtain regd user/online information', '', __LINE__, __FILE__, $sql); -} - -$guest_users = 0; -$registered_users = 0; -$hidden_users = 0; - -$reg_counter = 0; -$guest_counter = 0; -$prev_user = 0; -$prev_ip = ''; - -while ( $row = $db->sql_fetchrow($result) ) -{ - $view_online = false; - - if ( $row['session_logged_in'] ) - { - $user_id = $row['user_id']; - - if ( $user_id != $prev_user ) - { - $username = $row['username']; - - $style_color = ''; - if ( $row['user_level'] == ADMIN ) - { - $username = '' . $username . ''; - } - else if ( $row['user_level'] == MOD ) - { - $username = '' . $username . ''; - } - - if ( !$row['user_allow_viewonline'] ) - { - $view_online = ( $userdata['user_level'] == ADMIN ) ? true : false; - $hidden_users++; - - $username = '' . $username . ''; - } - else - { - $view_online = true; - $registered_users++; - } - - $which_counter = 'reg_counter'; - $which_row = 'reg_user_row'; - $prev_user = $user_id; - } - } - else - { - if ( $row['session_ip'] != $prev_ip ) - { - $username = $lang['Guest']; - $view_online = true; - $guest_users++; - - $which_counter = 'guest_counter'; - $which_row = 'guest_user_row'; - } - } - - $prev_ip = $row['session_ip']; - - if ( $view_online ) - { - if ( $row['session_page'] < 1 || !$is_auth_ary[$row['session_page']]['auth_view'] ) - { - switch( $row['session_page'] ) - { - case PAGE_INDEX: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx"; - break; - case PAGE_POSTING: - $location = $lang['Posting_message']; - $location_url = "index.$phpEx"; - break; - case PAGE_LOGIN: - $location = $lang['Logging_on']; - $location_url = "index.$phpEx"; - break; - case PAGE_SEARCH: - $location = $lang['Searching_forums']; - $location_url = "search.$phpEx"; - break; - case PAGE_PROFILE: - $location = $lang['Viewing_profile']; - $location_url = "index.$phpEx"; - break; - case PAGE_VIEWONLINE: - $location = $lang['Viewing_online']; - $location_url = "viewonline.$phpEx"; - break; - case PAGE_VIEWMEMBERS: - $location = $lang['Viewing_member_list']; - $location_url = "memberlist.$phpEx"; - break; - case PAGE_PRIVMSGS: - $location = $lang['Viewing_priv_msgs']; - $location_url = "privmsg.$phpEx"; - break; - case PAGE_FAQ: - $location = $lang['Viewing_FAQ']; - $location_url = "faq.$phpEx"; - break; - default: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx"; - } - } - else - { - $location_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $row['session_page']); - $location = $forum_data[$row['session_page']]; - } - - $row_color = ( $$which_counter % 2 ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( $$which_counter % 2 ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars("$which_row", array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'USERNAME' => $username, - 'LASTUPDATE' => create_date($board_config['default_dateformat'], $row['session_time'], $board_config['board_timezone']), - 'FORUM_LOCATION' => $location, - - 'U_USER_PROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $user_id), - 'U_FORUM_LOCATION' => append_sid($location_url)) - ); - - $$which_counter++; - } -} - -if( $registered_users == 0 ) -{ - $l_r_user_s = $lang['Reg_users_zero_online']; -} -else if( $registered_users == 1 ) -{ - $l_r_user_s = $lang['Reg_user_online']; -} -else -{ - $l_r_user_s = $lang['Reg_users_online']; -} - -if( $hidden_users == 0 ) -{ - $l_h_user_s = $lang['Hidden_users_zero_online']; -} -else if( $hidden_users == 1 ) -{ - $l_h_user_s = $lang['Hidden_user_online']; -} -else -{ - $l_h_user_s = $lang['Hidden_users_online']; -} - -if( $guest_users == 0 ) -{ - $l_g_user_s = $lang['Guest_users_zero_online']; -} -else if( $guest_users == 1 ) -{ - $l_g_user_s = $lang['Guest_user_online']; -} -else -{ - $l_g_user_s = $lang['Guest_users_online']; -} - -$template->assign_vars(array( - 'TOTAL_REGISTERED_USERS_ONLINE' => sprintf($l_r_user_s, $registered_users) . sprintf($l_h_user_s, $hidden_users), - 'TOTAL_GUEST_USERS_ONLINE' => sprintf($l_g_user_s, $guest_users)) -); - -if ( $registered_users + $hidden_users == 0 ) -{ - $template->assign_vars(array( - 'L_NO_REGISTERED_USERS_BROWSING' => $lang['No_users_browsing']) - ); -} - -if ( $guest_users == 0 ) -{ - $template->assign_vars(array( - 'L_NO_GUESTS_BROWSING' => $lang['No_users_browsing']) - ); -} - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/viewtopic.php b/phpBB2/viewtopic.php deleted file mode 100644 index 0803a6f..0000000 --- a/phpBB2/viewtopic.php +++ /dev/null @@ -1,1214 +0,0 @@ -= u.user_lastvisit - ORDER BY p.post_time ASC - LIMIT 1"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain newer/older topic information', '', __LINE__, __FILE__, $sql); - } - - if ( !($row = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_MESSAGE, 'No_new_posts_last_visit'); - } - - $post_id = $row['post_id']; - - if (isset($HTTP_GET_VARS['sid'])) - { - redirect("viewtopic.$phpEx?sid=$session_id&" . POST_POST_URL . "=$post_id#$post_id"); - } - else - { - redirect("viewtopic.$phpEx?" . POST_POST_URL . "=$post_id#$post_id"); - } - } - } - - redirect(append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id", true)); - } - else if ( $HTTP_GET_VARS['view'] == 'next' || $HTTP_GET_VARS['view'] == 'previous' ) - { - $sql_condition = ( $HTTP_GET_VARS['view'] == 'next' ) ? '>' : '<'; - $sql_ordering = ( $HTTP_GET_VARS['view'] == 'next' ) ? 'ASC' : 'DESC'; - - $sql = "SELECT t.topic_id - FROM " . TOPICS_TABLE . " t, " . TOPICS_TABLE . " t2 - WHERE - t2.topic_id = $topic_id - AND t.forum_id = t2.forum_id - AND t.topic_moved_id = 0 - AND t.topic_last_post_id $sql_condition t2.topic_last_post_id - ORDER BY t.topic_last_post_id $sql_ordering - LIMIT 1"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain newer/older topic information", '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $topic_id = intval($row['topic_id']); - } - else - { - $message = ( $HTTP_GET_VARS['view'] == 'next' ) ? 'No_newer_topics' : 'No_older_topics'; - message_die(GENERAL_MESSAGE, $message); - } - } -} - -// -// This rather complex gaggle of code handles querying for topics but -// also allows for direct linking to a post (and the calculation of which -// page the post is on and the correct display of viewtopic) -// -$join_sql_table = (!$post_id) ? '' : ", " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2 "; -$join_sql = (!$post_id) ? "t.topic_id = $topic_id" : "p.post_id = $post_id AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= $post_id"; -$count_sql = (!$post_id) ? '' : ", COUNT(p2.post_id) AS prev_posts"; - -$order_sql = (!$post_id) ? '' : "GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments ORDER BY p.post_id ASC"; - -$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . " - FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . " - WHERE $join_sql - AND f.forum_id = t.forum_id - $order_sql"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, "Could not obtain topic information", '', __LINE__, __FILE__, $sql); -} - -if ( !($forum_topic_data = $db->sql_fetchrow($result)) ) -{ - message_die(GENERAL_MESSAGE, 'Topic_post_not_exist'); -} - -$forum_id = intval($forum_topic_data['forum_id']); - -// -// Start session management -// -$userdata = session_pagestart($user_ip, $forum_id); -init_userprefs($userdata); -// -// End session management -// - -// -// Start auth check -// -$is_auth = array(); -$is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_topic_data); - -if( !$is_auth['auth_view'] || !$is_auth['auth_read'] ) -{ - if ( !$userdata['session_logged_in'] ) - { - $redirect = ($post_id) ? POST_POST_URL . "=$post_id" : POST_TOPIC_URL . "=$topic_id"; - $redirect .= ($start) ? "&start=$start" : ''; - redirect(append_sid("login.$phpEx?redirect=viewtopic.$phpEx&$redirect", true)); - } - - $message = ( !$is_auth['auth_view'] ) ? $lang['Topic_post_not_exist'] : sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']); - - message_die(GENERAL_MESSAGE, $message); -} -// -// End auth check -// - -$forum_name = $forum_topic_data['forum_name']; -$topic_title = $forum_topic_data['topic_title']; -$topic_id = intval($forum_topic_data['topic_id']); -$topic_time = $forum_topic_data['topic_time']; - -if ($post_id) -{ - $start = floor(($forum_topic_data['prev_posts'] - 1) / intval($board_config['posts_per_page'])) * intval($board_config['posts_per_page']); -} - -// -// Is user watching this thread? -// -if( $userdata['session_logged_in'] ) -{ - $can_watch_topic = TRUE; - - $sql = "SELECT notify_status - FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain topic watch information", '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - if ( isset($HTTP_GET_VARS['unwatch']) ) - { - if ( $HTTP_GET_VARS['unwatch'] == 'topic' ) - { - $is_watching_topic = 0; - - $sql_priority = (SQL_LAYER == "mysql") ? "LOW_PRIORITY" : ''; - $sql = "DELETE $sql_priority FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not delete topic watch information", '', __LINE__, __FILE__, $sql); - } - } - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['No_longer_watching'] . '

    ' . sprintf($lang['Click_return_topic'], '', ''); - message_die(GENERAL_MESSAGE, $message); - } - else - { - $is_watching_topic = TRUE; - - if ( $row['notify_status'] ) - { - $sql_priority = (SQL_LAYER == "mysql") ? "LOW_PRIORITY" : ''; - $sql = "UPDATE $sql_priority " . TOPICS_WATCH_TABLE . " - SET notify_status = 0 - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not update topic watch information", '', __LINE__, __FILE__, $sql); - } - } - } - } - else - { - if ( isset($HTTP_GET_VARS['watch']) ) - { - if ( $HTTP_GET_VARS['watch'] == 'topic' ) - { - $is_watching_topic = TRUE; - - $sql_priority = (SQL_LAYER == "mysql") ? "LOW_PRIORITY" : ''; - $sql = "INSERT $sql_priority INTO " . TOPICS_WATCH_TABLE . " (user_id, topic_id, notify_status) - VALUES (" . $userdata['user_id'] . ", $topic_id, 0)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not insert topic watch information", '', __LINE__, __FILE__, $sql); - } - } - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['You_are_watching'] . '

    ' . sprintf($lang['Click_return_topic'], '', ''); - message_die(GENERAL_MESSAGE, $message); - } - else - { - $is_watching_topic = 0; - } - } -} -else -{ - if ( isset($HTTP_GET_VARS['unwatch']) ) - { - if ( $HTTP_GET_VARS['unwatch'] == 'topic' ) - { - redirect(append_sid("login.$phpEx?redirect=viewtopic.$phpEx&" . POST_TOPIC_URL . "=$topic_id&unwatch=topic", true)); - } - } - else - { - $can_watch_topic = 0; - $is_watching_topic = 0; - } -} - -// -// Generate a 'Show posts in previous x days' select box. If the postdays var is POSTed -// then get it's value, find the number of topics with dates newer than it (to properly -// handle pagination) and alter the main query -// -$previous_days = array(0, 1, 7, 14, 30, 90, 180, 364); -$previous_days_text = array($lang['All_Posts'], $lang['1_Day'], $lang['7_Days'], $lang['2_Weeks'], $lang['1_Month'], $lang['3_Months'], $lang['6_Months'], $lang['1_Year']); - -if( !empty($HTTP_POST_VARS['postdays']) || !empty($HTTP_GET_VARS['postdays']) ) -{ - $post_days = ( !empty($HTTP_POST_VARS['postdays']) ) ? intval($HTTP_POST_VARS['postdays']) : intval($HTTP_GET_VARS['postdays']); - $min_post_time = time() - (intval($post_days) * 86400); - - $sql = "SELECT COUNT(p.post_id) AS num_posts - FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p - WHERE t.topic_id = $topic_id - AND p.topic_id = t.topic_id - AND p.post_time >= $min_post_time"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain limited topics count information", '', __LINE__, __FILE__, $sql); - } - - $total_replies = ( $row = $db->sql_fetchrow($result) ) ? intval($row['num_posts']) : 0; - - $limit_posts_time = "AND p.post_time >= $min_post_time "; - - if ( !empty($HTTP_POST_VARS['postdays'])) - { - $start = 0; - } -} -else -{ - $total_replies = intval($forum_topic_data['topic_replies']) + 1; - - $limit_posts_time = ''; - $post_days = 0; -} - -$select_post_days = ''; - -// -// Decide how to order the post display -// -if ( !empty($HTTP_POST_VARS['postorder']) || !empty($HTTP_GET_VARS['postorder']) ) -{ - $post_order = (!empty($HTTP_POST_VARS['postorder'])) ? htmlspecialchars($HTTP_POST_VARS['postorder']) : htmlspecialchars($HTTP_GET_VARS['postorder']); - $post_time_order = ($post_order == "asc") ? "ASC" : "DESC"; -} -else -{ - $post_order = 'asc'; - $post_time_order = 'ASC'; -} - -$select_post_order = ''; - -// -// Go ahead and pull all data for this topic -// -$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid - FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt - WHERE p.topic_id = $topic_id - $limit_posts_time - AND pt.post_id = p.post_id - AND u.user_id = p.poster_id - ORDER BY p.post_time $post_time_order - LIMIT $start, ".$board_config['posts_per_page']; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, "Could not obtain post/user information.", '', __LINE__, __FILE__, $sql); -} - -$postrow = array(); -if ($row = $db->sql_fetchrow($result)) -{ - do - { - $postrow[] = $row; - } - while ($row = $db->sql_fetchrow($result)); - $db->sql_freeresult($result); - - $total_posts = count($postrow); -} -else -{ - include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); - sync('topic', $topic_id); - - message_die(GENERAL_MESSAGE, $lang['No_posts_topic']); -} - -$resync = FALSE; -if ($forum_topic_data['topic_replies'] + 1 < $start + count($postrow)) -{ - $resync = TRUE; -} -elseif ($start + $board_config['posts_per_page'] > $forum_topic_data['topic_replies']) -{ - $row_id = intval($forum_topic_data['topic_replies']) % intval($board_config['posts_per_page']); - if ($postrow[$row_id]['post_id'] != $forum_topic_data['topic_last_post_id'] || $start + count($postrow) < $forum_topic_data['topic_replies']) - { - $resync = TRUE; - } -} -elseif (count($postrow) < $board_config['posts_per_page']) -{ - $resync = TRUE; -} - -if ($resync) -{ - include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); - sync('topic', $topic_id); - - $result = $db->sql_query('SELECT COUNT(post_id) AS total FROM ' . POSTS_TABLE . ' WHERE topic_id = ' . $topic_id); - $row = $db->sql_fetchrow($result); - $total_replies = $row['total']; -} - -$sql = "SELECT * - FROM " . RANKS_TABLE . " - ORDER BY rank_special, rank_min"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, "Could not obtain ranks information.", '', __LINE__, __FILE__, $sql); -} - -$ranksrow = array(); -while ( $row = $db->sql_fetchrow($result) ) -{ - $ranksrow[] = $row; -} -$db->sql_freeresult($result); - -// -// Define censored word matches -// -$orig_word = array(); -$replacement_word = array(); -obtain_word_list($orig_word, $replacement_word); - -// -// Censor topic title -// -if ( count($orig_word) ) -{ - $topic_title = preg_replace($orig_word, $replacement_word, $topic_title); -} - -// -// Was a highlight request part of the URI? -// -$highlight_match = $highlight = ''; -if (isset($HTTP_GET_VARS['highlight'])) -{ - // Split words and phrases - $words = explode(' ', trim(htmlspecialchars($HTTP_GET_VARS['highlight']))); - - for($i = 0; $i < sizeof($words); $i++) - { - if (trim($words[$i]) != '') - { - $highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('*', '\w*', preg_quote($words[$i], '#')); - } - } - unset($words); - - $highlight = urlencode($HTTP_GET_VARS['highlight']); - $highlight_match = phpbb_rtrim($highlight_match, "\\"); -} - -// -// Post, reply and other URL generation for -// templating vars -// -$new_topic_url = append_sid("posting.$phpEx?mode=newtopic&" . POST_FORUM_URL . "=$forum_id"); -$reply_topic_url = append_sid("posting.$phpEx?mode=reply&" . POST_TOPIC_URL . "=$topic_id"); -$view_forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"); -$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous"); -$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next"); - -// -// Mozilla navigation bar -// -$nav_links['prev'] = array( - 'url' => $view_prev_topic_url, - 'title' => $lang['View_previous_topic'] -); -$nav_links['next'] = array( - 'url' => $view_next_topic_url, - 'title' => $lang['View_next_topic'] -); -$nav_links['up'] = array( - 'url' => $view_forum_url, - 'title' => $forum_name -); - -$reply_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $images['reply_locked'] : $images['reply_new']; -$reply_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['Reply_to_topic']; -$post_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new']; -$post_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['Post_new_topic']; - -// -// Set a cookie for this topic -// -if ( $userdata['session_logged_in'] ) -{ - $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array(); - $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array(); - - if ( !empty($tracking_topics[$topic_id]) && !empty($tracking_forums[$forum_id]) ) - { - $topic_last_read = ( $tracking_topics[$topic_id] > $tracking_forums[$forum_id] ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id]; - } - else if ( !empty($tracking_topics[$topic_id]) || !empty($tracking_forums[$forum_id]) ) - { - $topic_last_read = ( !empty($tracking_topics[$topic_id]) ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id]; - } - else - { - $topic_last_read = $userdata['user_lastvisit']; - } - - if ( count($tracking_topics) >= 150 && empty($tracking_topics[$topic_id]) ) - { - asort($tracking_topics); - unset($tracking_topics[key($tracking_topics)]); - } - - $tracking_topics[$topic_id] = time(); - - setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']); -} - -// -// Load templates -// -$template->set_filenames(array( - 'body' => 'viewtopic_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx, $forum_id); - -// -// Output page header -// -$page_title = $lang['View_topic'] .' - ' . $topic_title; -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -// -// User authorisation levels output -// -$s_auth_can = ( ( $is_auth['auth_post'] ) ? $lang['Rules_post_can'] : $lang['Rules_post_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_reply'] ) ? $lang['Rules_reply_can'] : $lang['Rules_reply_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_edit'] ) ? $lang['Rules_edit_can'] : $lang['Rules_edit_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_delete'] ) ? $lang['Rules_delete_can'] : $lang['Rules_delete_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot'] ) . '
    '; - -$topic_mod = ''; - -if ( $is_auth['auth_mod'] ) -{ - $s_auth_can .= sprintf($lang['Rules_moderate'], "', ''); - - $topic_mod .= "' . $lang['Delete_topic'] . ' '; - - $topic_mod .= "' . $lang['Move_topic'] . ' '; - - $topic_mod .= ( $forum_topic_data['topic_status'] == TOPIC_UNLOCKED ) ? "' . $lang['Lock_topic'] . ' ' : "' . $lang['Unlock_topic'] . ' '; - - $topic_mod .= "' . $lang['Split_topic'] . ' '; -} - -// -// Topic watch information -// -$s_watching_topic = ''; -if ( $can_watch_topic ) -{ - if ( $is_watching_topic ) - { - $s_watching_topic = "' . $lang['Stop_watching_topic'] . ''; - $s_watching_topic_img = ( isset($images['topic_un_watch']) ) ? "' . $lang['Stop_watching_topic'] . '' : ''; - } - else - { - $s_watching_topic = "' . $lang['Start_watching_topic'] . ''; - $s_watching_topic_img = ( isset($images['Topic_watch']) ) ? "' . $lang['Start_watching_topic'] . '' : ''; - } -} - -// -// If we've got a hightlight set pass it on to pagination, -// I get annoyed when I lose my highlight after the first page. -// -$pagination = ( $highlight != '' ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&highlight=$highlight", $total_replies, $board_config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start); - -// -// Send vars to template -// -$template->assign_vars(array( - 'FORUM_ID' => $forum_id, - 'FORUM_NAME' => $forum_name, - 'TOPIC_ID' => $topic_id, - 'TOPIC_TITLE' => $topic_title, - 'PAGINATION' => $pagination, - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / intval($board_config['posts_per_page']) ) + 1 ), ceil( $total_replies / intval($board_config['posts_per_page']) )), - - 'POST_IMG' => $post_img, - 'REPLY_IMG' => $reply_img, - - 'L_AUTHOR' => $lang['Author'], - 'L_MESSAGE' => $lang['Message'], - 'L_POSTED' => $lang['Posted'], - 'L_POST_SUBJECT' => $lang['Post_subject'], - 'L_VIEW_NEXT_TOPIC' => $lang['View_next_topic'], - 'L_VIEW_PREVIOUS_TOPIC' => $lang['View_previous_topic'], - 'L_POST_NEW_TOPIC' => $post_alt, - 'L_POST_REPLY_TOPIC' => $reply_alt, - 'L_BACK_TO_TOP' => $lang['Back_to_top'], - 'L_DISPLAY_POSTS' => $lang['Display_posts'], - 'L_LOCK_TOPIC' => $lang['Lock_topic'], - 'L_UNLOCK_TOPIC' => $lang['Unlock_topic'], - 'L_MOVE_TOPIC' => $lang['Move_topic'], - 'L_SPLIT_TOPIC' => $lang['Split_topic'], - 'L_DELETE_TOPIC' => $lang['Delete_topic'], - 'L_GOTO_PAGE' => $lang['Goto_page'], - - 'S_TOPIC_LINK' => POST_TOPIC_URL, - 'S_SELECT_POST_DAYS' => $select_post_days, - 'S_SELECT_POST_ORDER' => $select_post_order, - 'S_POST_DAYS_ACTION' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $topic_id . "&start=$start"), - 'S_AUTH_LIST' => $s_auth_can, - 'S_TOPIC_ADMIN' => $topic_mod, - 'S_WATCH_TOPIC' => $s_watching_topic, - 'S_WATCH_TOPIC_IMG' => $s_watching_topic_img, - - 'U_VIEW_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start&postdays=$post_days&postorder=$post_order&highlight=$highlight"), - 'U_VIEW_FORUM' => $view_forum_url, - 'U_VIEW_OLDER_TOPIC' => $view_prev_topic_url, - 'U_VIEW_NEWER_TOPIC' => $view_next_topic_url, - 'U_POST_NEW_TOPIC' => $new_topic_url, - 'U_POST_REPLY_TOPIC' => $reply_topic_url) -); - -// -// Does this topic contain a poll? -// -if ( !empty($forum_topic_data['topic_vote']) ) -{ - $s_hidden_fields = ''; - - $sql = "SELECT vd.vote_id, vd.vote_text, vd.vote_start, vd.vote_length, vr.vote_option_id, vr.vote_option_text, vr.vote_result - FROM " . VOTE_DESC_TABLE . " vd, " . VOTE_RESULTS_TABLE . " vr - WHERE vd.topic_id = $topic_id - AND vr.vote_id = vd.vote_id - ORDER BY vr.vote_option_id ASC"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain vote data for this topic", '', __LINE__, __FILE__, $sql); - } - - if ( $vote_info = $db->sql_fetchrowset($result) ) - { - $db->sql_freeresult($result); - $vote_options = count($vote_info); - - $vote_id = $vote_info[0]['vote_id']; - $vote_title = $vote_info[0]['vote_text']; - - $sql = "SELECT vote_id - FROM " . VOTE_USERS_TABLE . " - WHERE vote_id = $vote_id - AND vote_user_id = " . intval($userdata['user_id']); - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain user vote data for this topic", '', __LINE__, __FILE__, $sql); - } - - $user_voted = ( $row = $db->sql_fetchrow($result) ) ? TRUE : 0; - $db->sql_freeresult($result); - - if ( isset($HTTP_GET_VARS['vote']) || isset($HTTP_POST_VARS['vote']) ) - { - $view_result = ( ( ( isset($HTTP_GET_VARS['vote']) ) ? $HTTP_GET_VARS['vote'] : $HTTP_POST_VARS['vote'] ) == 'viewresult' ) ? TRUE : 0; - } - else - { - $view_result = 0; - } - - $poll_expired = ( $vote_info[0]['vote_length'] ) ? ( ( $vote_info[0]['vote_start'] + $vote_info[0]['vote_length'] < time() ) ? TRUE : 0 ) : 0; - - if ( $user_voted || $view_result || $poll_expired || !$is_auth['auth_vote'] || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) - { - $template->set_filenames(array( - 'pollbox' => 'viewtopic_poll_result.tpl') - ); - - $vote_results_sum = 0; - - for($i = 0; $i < $vote_options; $i++) - { - $vote_results_sum += $vote_info[$i]['vote_result']; - } - - $vote_graphic = 0; - $vote_graphic_max = count($images['voting_graphic']); - - for($i = 0; $i < $vote_options; $i++) - { - $vote_percent = ( $vote_results_sum > 0 ) ? $vote_info[$i]['vote_result'] / $vote_results_sum : 0; - $vote_graphic_length = round($vote_percent * $board_config['vote_graphic_length']); - - $vote_graphic_img = $images['voting_graphic'][$vote_graphic]; - $vote_graphic = ($vote_graphic < $vote_graphic_max - 1) ? $vote_graphic + 1 : 0; - - if ( count($orig_word) ) - { - $vote_info[$i]['vote_option_text'] = preg_replace($orig_word, $replacement_word, $vote_info[$i]['vote_option_text']); - } - - $template->assign_block_vars("poll_option", array( - 'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text'], - 'POLL_OPTION_RESULT' => $vote_info[$i]['vote_result'], - 'POLL_OPTION_PERCENT' => sprintf("%.1d%%", ($vote_percent * 100)), - - 'POLL_OPTION_IMG' => $vote_graphic_img, - 'POLL_OPTION_IMG_WIDTH' => $vote_graphic_length) - ); - } - - $template->assign_vars(array( - 'L_TOTAL_VOTES' => $lang['Total_votes'], - 'TOTAL_VOTES' => $vote_results_sum) - ); - - } - else - { - $template->set_filenames(array( - 'pollbox' => 'viewtopic_poll_ballot.tpl') - ); - - for($i = 0; $i < $vote_options; $i++) - { - if ( count($orig_word) ) - { - $vote_info[$i]['vote_option_text'] = preg_replace($orig_word, $replacement_word, $vote_info[$i]['vote_option_text']); - } - - $template->assign_block_vars("poll_option", array( - 'POLL_OPTION_ID' => $vote_info[$i]['vote_option_id'], - 'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text']) - ); - } - - $template->assign_vars(array( - 'L_SUBMIT_VOTE' => $lang['Submit_vote'], - 'L_VIEW_RESULTS' => $lang['View_results'], - - 'U_VIEW_RESULTS' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&vote=viewresult")) - ); - - $s_hidden_fields = ''; - } - - if ( count($orig_word) ) - { - $vote_title = preg_replace($orig_word, $replacement_word, $vote_title); - } - - $s_hidden_fields .= ''; - - $template->assign_vars(array( - 'POLL_QUESTION' => $vote_title, - - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_POLL_ACTION' => append_sid("posting.$phpEx?mode=vote&" . POST_TOPIC_URL . "=$topic_id")) - ); - - $template->assign_var_from_handle('POLL_DISPLAY', 'pollbox'); - } -} - -// -// Update the topic view counter -// -$sql = "UPDATE " . TOPICS_TABLE . " - SET topic_views = topic_views + 1 - WHERE topic_id = $topic_id"; -if ( !$db->sql_query($sql) ) -{ - message_die(GENERAL_ERROR, "Could not update topic views.", '', __LINE__, __FILE__, $sql); -} - -// -// Okay, let's do the loop, yeah come on baby let's do the loop -// and it goes like this ... -// -for($i = 0; $i < $total_posts; $i++) -{ - $poster_id = $postrow[$i]['user_id']; - $poster = ( $poster_id == ANONYMOUS ) ? $lang['Guest'] : $postrow[$i]['username']; - - $post_date = create_date($board_config['default_dateformat'], $postrow[$i]['post_time'], $board_config['board_timezone']); - - $poster_posts = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Posts'] . ': ' . $postrow[$i]['user_posts'] : ''; - - $poster_from = ( $postrow[$i]['user_from'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Location'] . ': ' . $postrow[$i]['user_from'] : ''; - - $poster_joined = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Joined'] . ': ' . create_date($lang['DATE_FORMAT'], $postrow[$i]['user_regdate'], $board_config['board_timezone']) : ''; - - $poster_avatar = ''; - if ( $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] ) - { - switch( $postrow[$i]['user_avatar_type'] ) - { - case USER_AVATAR_UPLOAD: - $poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '' : ''; - break; - case USER_AVATAR_REMOTE: - $poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '' : ''; - break; - case USER_AVATAR_GALLERY: - $poster_avatar = ( $board_config['allow_avatar_local'] ) ? '' : ''; - break; - } - } - - // - // Define the little post icon - // - if ( $userdata['session_logged_in'] && $postrow[$i]['post_time'] > $userdata['user_lastvisit'] && $postrow[$i]['post_time'] > $topic_last_read ) - { - $mini_post_img = $images['icon_minipost_new']; - $mini_post_alt = $lang['New_post']; - } - else - { - $mini_post_img = $images['icon_minipost']; - $mini_post_alt = $lang['Post']; - } - - $mini_post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$i]['post_id']) . '#' . $postrow[$i]['post_id']; - - // - // Generate ranks, set them to empty string initially. - // - $poster_rank = ''; - $rank_image = ''; - if ( $postrow[$i]['user_id'] == ANONYMOUS ) - { - } - else if ( $postrow[$i]['user_rank'] ) - { - for($j = 0; $j < count($ranksrow); $j++) - { - if ( $postrow[$i]['user_rank'] == $ranksrow[$j]['rank_id'] && $ranksrow[$j]['rank_special'] ) - { - $poster_rank = $ranksrow[$j]['rank_title']; - $rank_image = ( $ranksrow[$j]['rank_image'] ) ? '' . $poster_rank . '
    ' : ''; - } - } - } - else - { - for($j = 0; $j < count($ranksrow); $j++) - { - if ( $postrow[$i]['user_posts'] >= $ranksrow[$j]['rank_min'] && !$ranksrow[$j]['rank_special'] ) - { - $poster_rank = $ranksrow[$j]['rank_title']; - $rank_image = ( $ranksrow[$j]['rank_image'] ) ? '' . $poster_rank . '
    ' : ''; - } - } - } - - // - // Handle anon users posting with usernames - // - if ( $poster_id == ANONYMOUS && $postrow[$i]['post_username'] != '' ) - { - $poster = $postrow[$i]['post_username']; - $poster_rank = $lang['Guest']; - } - - $temp_url = ''; - - if ( $poster_id != ANONYMOUS ) - { - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id"); - $profile_img = '' . $lang['Read_profile'] . ''; - $profile = '' . $lang['Read_profile'] . ''; - - $temp_url = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$poster_id"); - $pm_img = '' . $lang['Send_private_message'] . ''; - $pm = '' . $lang['Send_private_message'] . ''; - - if ( !empty($postrow[$i]['user_viewemail']) || $is_auth['auth_mod'] ) - { - $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $poster_id) : 'mailto:' . $postrow[$i]['user_email']; - - $email_img = '' . $lang['Send_email'] . ''; - $email = '' . $lang['Send_email'] . ''; - } - else - { - $email_img = ''; - $email = ''; - } - - $www_img = ( $postrow[$i]['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - $www = ( $postrow[$i]['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - - if ( !empty($postrow[$i]['user_icq']) ) - { - $icq_status_img = ''; - $icq_img = '' . $lang['ICQ'] . ''; - $icq = '' . $lang['ICQ'] . ''; - } - else - { - $icq_status_img = ''; - $icq_img = ''; - $icq = ''; - } - - $aim_img = ( $postrow[$i]['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - $aim = ( $postrow[$i]['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id"); - $msn_img = ( $postrow[$i]['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - $msn = ( $postrow[$i]['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - - $yim_img = ( $postrow[$i]['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - $yim = ( $postrow[$i]['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - } - else - { - $profile_img = ''; - $profile = ''; - $pm_img = ''; - $pm = ''; - $email_img = ''; - $email = ''; - $www_img = ''; - $www = ''; - $icq_status_img = ''; - $icq_img = ''; - $icq = ''; - $aim_img = ''; - $aim = ''; - $msn_img = ''; - $msn = ''; - $yim_img = ''; - $yim = ''; - } - - $temp_url = append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); - $quote_img = '' . $lang['Reply_with_quote'] . ''; - $quote = '' . $lang['Reply_with_quote'] . ''; - - $temp_url = append_sid("search.$phpEx?search_author=" . urlencode($postrow[$i]['username']) . "&showresults=posts"); - $search_img = '' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . ''; - $search = '' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . ''; - - if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] ) || $is_auth['auth_mod'] ) - { - $temp_url = append_sid("posting.$phpEx?mode=editpost&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); - $edit_img = '' . $lang['Edit_delete_post'] . ''; - $edit = '' . $lang['Edit_delete_post'] . ''; - } - else - { - $edit_img = ''; - $edit = ''; - } - - if ( $is_auth['auth_mod'] ) - { - $temp_url = "modcp.$phpEx?mode=ip&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=" . $topic_id . "&sid=" . $userdata['session_id']; - $ip_img = '' . $lang['View_IP'] . ''; - $ip = '' . $lang['View_IP'] . ''; - - $temp_url = "posting.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id']; - $delpost_img = '' . $lang['Delete_post'] . ''; - $delpost = '' . $lang['Delete_post'] . ''; - } - else - { - $ip_img = ''; - $ip = ''; - - if ( $userdata['user_id'] == $poster_id && $is_auth['auth_delete'] && $forum_topic_data['topic_last_post_id'] == $postrow[$i]['post_id'] ) - { - $temp_url = "posting.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id']; - $delpost_img = '' . $lang['Delete_post'] . ''; - $delpost = '' . $lang['Delete_post'] . ''; - } - else - { - $delpost_img = ''; - $delpost = ''; - } - } - - $post_subject = ( $postrow[$i]['post_subject'] != '' ) ? $postrow[$i]['post_subject'] : ''; - - $message = $postrow[$i]['post_text']; - $bbcode_uid = $postrow[$i]['bbcode_uid']; - - $user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : ''; - $user_sig_bbcode_uid = $postrow[$i]['user_sig_bbcode_uid']; - - // - // Note! The order used for parsing the message _is_ important, moving things around could break any - // output - // - - // - // If the board has HTML off but the post has HTML - // on then we process it, else leave it alone - // - if ( !$board_config['allow_html'] || !$userdata['user_allowhtml']) - { - if ( $user_sig != '' ) - { - $user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $user_sig); - } - - if ( $postrow[$i]['enable_html'] ) - { - $message = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $message); - } - } - - // - // Parse message and/or sig for BBCode if reqd - // - if ($user_sig != '' && $user_sig_bbcode_uid != '') - { - $user_sig = ($board_config['allow_bbcode']) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace("/\:$user_sig_bbcode_uid/si", '', $user_sig); - } - - if ($bbcode_uid != '') - { - $message = ($board_config['allow_bbcode']) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace("/\:$bbcode_uid/si", '', $message); - } - - if ( $user_sig != '' ) - { - $user_sig = make_clickable($user_sig); - } - $message = make_clickable($message); - - // - // Parse smilies - // - if ( $board_config['allow_smilies'] ) - { - if ( $postrow[$i]['user_allowsmile'] && $user_sig != '' ) - { - $user_sig = smilies_pass($user_sig); - } - - if ( $postrow[$i]['enable_smilies'] ) - { - $message = smilies_pass($message); - } - } - - // - // Highlight active words (primarily for search) - // - if ($highlight_match) - { - // This has been back-ported from 3.0 CVS - $message = preg_replace('#(?!<.*)(?]*>)#i', '\1', $message); - } - - // - // Replace naughty words - // - if (count($orig_word)) - { - $post_subject = preg_replace($orig_word, $replacement_word, $post_subject); - - if ($user_sig != '') - { - $user_sig = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $user_sig . '<'), 1, -1)); - } - - $message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $message . '<'), 1, -1)); - } - - // - // Replace newlines (we use this rather than nl2br because - // till recently it wasn't XHTML compliant) - // - if ( $user_sig != '' ) - { - $user_sig = '
    _________________
    ' . str_replace("\n", "\n
    \n", $user_sig); - } - - $message = str_replace("\n", "\n
    \n", $message); - - // - // Editing information - // - if ( $postrow[$i]['post_edit_count'] ) - { - $l_edit_time_total = ( $postrow[$i]['post_edit_count'] == 1 ) ? $lang['Edited_time_total'] : $lang['Edited_times_total']; - - $l_edited_by = '

    ' . sprintf($l_edit_time_total, $poster, create_date($board_config['default_dateformat'], $postrow[$i]['post_edit_time'], $board_config['board_timezone']), $postrow[$i]['post_edit_count']); - } - else - { - $l_edited_by = ''; - } - - // - // Again this will be handled by the templating - // code at some point - // - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('postrow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'POSTER_NAME' => $poster, - 'POSTER_RANK' => $poster_rank, - 'RANK_IMAGE' => $rank_image, - 'POSTER_JOINED' => $poster_joined, - 'POSTER_POSTS' => $poster_posts, - 'POSTER_FROM' => $poster_from, - 'POSTER_AVATAR' => $poster_avatar, - 'POST_DATE' => $post_date, - 'POST_SUBJECT' => $post_subject, - 'MESSAGE' => $message, - 'SIGNATURE' => $user_sig, - 'EDITED_MESSAGE' => $l_edited_by, - - 'MINI_POST_IMG' => $mini_post_img, - 'PROFILE_IMG' => $profile_img, - 'PROFILE' => $profile, - 'SEARCH_IMG' => $search_img, - 'SEARCH' => $search, - 'PM_IMG' => $pm_img, - 'PM' => $pm, - 'EMAIL_IMG' => $email_img, - 'EMAIL' => $email, - 'WWW_IMG' => $www_img, - 'WWW' => $www, - 'ICQ_STATUS_IMG' => $icq_status_img, - 'ICQ_IMG' => $icq_img, - 'ICQ' => $icq, - 'AIM_IMG' => $aim_img, - 'AIM' => $aim, - 'MSN_IMG' => $msn_img, - 'MSN' => $msn, - 'YIM_IMG' => $yim_img, - 'YIM' => $yim, - 'EDIT_IMG' => $edit_img, - 'EDIT' => $edit, - 'QUOTE_IMG' => $quote_img, - 'QUOTE' => $quote, - 'IP_IMG' => $ip_img, - 'IP' => $ip, - 'DELETE_IMG' => $delpost_img, - 'DELETE' => $delpost, - - 'L_MINI_POST_ALT' => $mini_post_alt, - - 'U_MINI_POST' => $mini_post_url, - 'U_POST_ID' => $postrow[$i]['post_id']) - ); -} - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/viewtopic.php.backup b/phpBB2/viewtopic.php.backup deleted file mode 100644 index 0ce6b80..0000000 --- a/phpBB2/viewtopic.php.backup +++ /dev/null @@ -1,1216 +0,0 @@ -= u.user_lastvisit - ORDER BY p.post_time ASC - LIMIT 1"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain newer/older topic information', '', __LINE__, __FILE__, $sql); - } - - if ( !($row = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_MESSAGE, 'No_new_posts_last_visit'); - } - - $post_id = $row['post_id']; - - if (isset($HTTP_GET_VARS['sid'])) - { - redirect("viewtopic.$phpEx?sid=$session_id&" . POST_POST_URL . "=$post_id#$post_id"); - } - else - { - redirect("viewtopic.$phpEx?" . POST_POST_URL . "=$post_id#$post_id"); - } - } - } - - redirect(append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id", true)); - } - else if ( $HTTP_GET_VARS['view'] == 'next' || $HTTP_GET_VARS['view'] == 'previous' ) - { - $sql_condition = ( $HTTP_GET_VARS['view'] == 'next' ) ? '>' : '<'; - $sql_ordering = ( $HTTP_GET_VARS['view'] == 'next' ) ? 'ASC' : 'DESC'; - - $sql = "SELECT t.topic_id - FROM " . TOPICS_TABLE . " t, " . TOPICS_TABLE . " t2 - WHERE - t2.topic_id = $topic_id - AND t.forum_id = t2.forum_id - AND t.topic_last_post_id $sql_condition t2.topic_last_post_id - ORDER BY t.topic_last_post_id $sql_ordering - LIMIT 1"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain newer/older topic information", '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $topic_id = intval($row['topic_id']); - } - else - { - $message = ( $HTTP_GET_VARS['view'] == 'next' ) ? 'No_newer_topics' : 'No_older_topics'; - message_die(GENERAL_MESSAGE, $message); - } - } -} - -// -// This rather complex gaggle of code handles querying for topics but -// also allows for direct linking to a post (and the calculation of which -// page the post is on and the correct display of viewtopic) -// -$join_sql_table = ( empty($post_id) ) ? '' : ", " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2 "; -$join_sql = ( empty($post_id) ) ? "t.topic_id = $topic_id" : "p.post_id = $post_id AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= $post_id"; -$count_sql = ( empty($post_id) ) ? '' : ", COUNT(p2.post_id) AS prev_posts"; - -$order_sql = ( empty($post_id) ) ? '' : "GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments ORDER BY p.post_id ASC"; - -$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . " - FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . " - WHERE $join_sql - AND f.forum_id = t.forum_id - $order_sql"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, "Could not obtain topic information", '', __LINE__, __FILE__, $sql); -} - -if ( !($forum_topic_data = $db->sql_fetchrow($result)) ) -{ - message_die(GENERAL_MESSAGE, 'Topic_post_not_exist'); -} - -$forum_id = intval($forum_topic_data['forum_id']); - -// -// Start session management -// -$userdata = session_pagestart($user_ip, $forum_id); -init_userprefs($userdata); -// -// End session management -// - -// -// Start auth check -// -$is_auth = array(); -$is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_topic_data); - -if( !$is_auth['auth_view'] || !$is_auth['auth_read'] ) -{ - if ( !$userdata['session_logged_in'] ) - { - $redirect = ( isset($post_id) ) ? POST_POST_URL . "=$post_id" : POST_TOPIC_URL . "=$topic_id"; - $redirect .= ( isset($start) ) ? "&start=$start" : ''; - redirect(append_sid("login.$phpEx?redirect=viewtopic.$phpEx&$redirect", true)); - } - - $message = ( !$is_auth['auth_view'] ) ? $lang['Topic_post_not_exist'] : sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']); - - message_die(GENERAL_MESSAGE, $message); -} -// -// End auth check -// - -$forum_name = $forum_topic_data['forum_name']; -$topic_title = $forum_topic_data['topic_title']; -$topic_id = intval($forum_topic_data['topic_id']); -$topic_time = $forum_topic_data['topic_time']; - -if ( !empty($post_id) ) -{ - $start = floor(($forum_topic_data['prev_posts'] - 1) / intval($board_config['posts_per_page'])) * intval($board_config['posts_per_page']); -} - -// -// Is user watching this thread? -// -if( $userdata['session_logged_in'] ) -{ - $can_watch_topic = TRUE; - - $sql = "SELECT notify_status - FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain topic watch information", '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - if ( isset($HTTP_GET_VARS['unwatch']) ) - { - if ( $HTTP_GET_VARS['unwatch'] == 'topic' ) - { - $is_watching_topic = 0; - - $sql_priority = (SQL_LAYER == "mysql") ? "LOW_PRIORITY" : ''; - $sql = "DELETE $sql_priority FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not delete topic watch information", '', __LINE__, __FILE__, $sql); - } - } - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['No_longer_watching'] . '

    ' . sprintf($lang['Click_return_topic'], '', ''); - message_die(GENERAL_MESSAGE, $message); - } - else - { - $is_watching_topic = TRUE; - - if ( $row['notify_status'] ) - { - $sql_priority = (SQL_LAYER == "mysql") ? "LOW_PRIORITY" : ''; - $sql = "UPDATE $sql_priority " . TOPICS_WATCH_TABLE . " - SET notify_status = 0 - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not update topic watch information", '', __LINE__, __FILE__, $sql); - } - } - } - } - else - { - if ( isset($HTTP_GET_VARS['watch']) ) - { - if ( $HTTP_GET_VARS['watch'] == 'topic' ) - { - $is_watching_topic = TRUE; - - $sql_priority = (SQL_LAYER == "mysql") ? "LOW_PRIORITY" : ''; - $sql = "INSERT $sql_priority INTO " . TOPICS_WATCH_TABLE . " (user_id, topic_id, notify_status) - VALUES (" . $userdata['user_id'] . ", $topic_id, 0)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not insert topic watch information", '', __LINE__, __FILE__, $sql); - } - } - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['You_are_watching'] . '

    ' . sprintf($lang['Click_return_topic'], '', ''); - message_die(GENERAL_MESSAGE, $message); - } - else - { - $is_watching_topic = 0; - } - } -} -else -{ - if ( isset($HTTP_GET_VARS['unwatch']) ) - { - if ( $HTTP_GET_VARS['unwatch'] == 'topic' ) - { - redirect(append_sid("login.$phpEx?redirect=viewtopic.$phpEx&" . POST_TOPIC_URL . "=$topic_id&unwatch=topic", true)); - } - } - else - { - $can_watch_topic = 0; - $is_watching_topic = 0; - } -} - -// -// Generate a 'Show posts in previous x days' select box. If the postdays var is POSTed -// then get it's value, find the number of topics with dates newer than it (to properly -// handle pagination) and alter the main query -// -$previous_days = array(0, 1, 7, 14, 30, 90, 180, 364); -$previous_days_text = array($lang['All_Posts'], $lang['1_Day'], $lang['7_Days'], $lang['2_Weeks'], $lang['1_Month'], $lang['3_Months'], $lang['6_Months'], $lang['1_Year']); - -if( !empty($HTTP_POST_VARS['postdays']) || !empty($HTTP_GET_VARS['postdays']) ) -{ - $post_days = ( !empty($HTTP_POST_VARS['postdays']) ) ? intval($HTTP_POST_VARS['postdays']) : intval($HTTP_GET_VARS['postdays']); - $min_post_time = time() - (intval($post_days) * 86400); - - $sql = "SELECT COUNT(p.post_id) AS num_posts - FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p - WHERE t.topic_id = $topic_id - AND p.topic_id = t.topic_id - AND p.post_time >= $min_post_time"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain limited topics count information", '', __LINE__, __FILE__, $sql); - } - - $total_replies = ( $row = $db->sql_fetchrow($result) ) ? intval($row['num_posts']) : 0; - - $limit_posts_time = "AND p.post_time >= $min_post_time "; - - if ( !empty($HTTP_POST_VARS['postdays'])) - { - $start = 0; - } -} -else -{ - $total_replies = intval($forum_topic_data['topic_replies']) + 1; - - $limit_posts_time = ''; - $post_days = 0; -} - -$select_post_days = ''; - -// -// Decide how to order the post display -// -if ( !empty($HTTP_POST_VARS['postorder']) || !empty($HTTP_GET_VARS['postorder']) ) -{ - $post_order = (!empty($HTTP_POST_VARS['postorder'])) ? htmlspecialchars($HTTP_POST_VARS['postorder']) : htmlspecialchars($HTTP_GET_VARS['postorder']); - $post_time_order = ($post_order == "asc") ? "ASC" : "DESC"; -} -else -{ - $post_order = 'asc'; - $post_time_order = 'ASC'; -} - -$select_post_order = ''; - -// -// Go ahead and pull all data for this topic -// -$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid - FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt - WHERE p.topic_id = $topic_id - $limit_posts_time - AND pt.post_id = p.post_id - AND u.user_id = p.poster_id - ORDER BY p.post_time $post_time_order - LIMIT $start, ".$board_config['posts_per_page']; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, "Could not obtain post/user information.", '', __LINE__, __FILE__, $sql); -} - -$postrow = array(); -if ($row = $db->sql_fetchrow($result)) -{ - do - { - $postrow[] = $row; - } - while ($row = $db->sql_fetchrow($result)); - $db->sql_freeresult($result); - - $total_posts = count($postrow); -} -else -{ - include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); - sync('topic', $topic_id); - - message_die(GENERAL_MESSAGE, $lang['No_posts_topic']); -} - -$resync = FALSE; -if ($forum_topic_data['topic_replies'] + 1 < $start + count($postrow)) -{ - $resync = TRUE; -} -elseif ($start + $board_config['posts_per_page'] > $forum_topic_data['topic_replies']) -{ - $row_id = intval($forum_topic_data['topic_replies']) % intval($board_config['posts_per_page']); - if ($postrow[$row_id]['post_id'] != $forum_topic_data['topic_last_post_id'] || $start + count($postrow) < $forum_topic_data['topic_replies']) - { - $resync = TRUE; - } -} -elseif (count($postrow) < $board_config['posts_per_page']) -{ - $resync = TRUE; -} - -if ($resync) -{ - include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); - sync('topic', $topic_id); - - $result = $db->sql_query('SELECT COUNT(post_id) AS total FROM ' . POSTS_TABLE . ' WHERE topic_id = ' . $topic_id); - $row = $db->sql_fetchrow($result); - $total_replies = $row['total']; -} - -$sql = "SELECT * - FROM " . RANKS_TABLE . " - ORDER BY rank_special, rank_min"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, "Could not obtain ranks information.", '', __LINE__, __FILE__, $sql); -} - -$ranksrow = array(); -while ( $row = $db->sql_fetchrow($result) ) -{ - $ranksrow[] = $row; -} -$db->sql_freeresult($result); - -// -// Define censored word matches -// -$orig_word = array(); -$replacement_word = array(); -obtain_word_list($orig_word, $replacement_word); - -// -// Censor topic title -// -if ( count($orig_word) ) -{ - $topic_title = preg_replace($orig_word, $replacement_word, $topic_title); -} - -// -// Was a highlight request part of the URI? -// -$highlight_match = $highlight = ''; -if (isset($HTTP_GET_VARS['highlight'])) -{ - // Split words and phrases - $words = explode(' ', trim(htmlspecialchars($HTTP_GET_VARS['highlight']))); - - for($i = 0; $i < sizeof($words); $i++) - { - if (trim($words[$i]) != '') - { - $highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('*', '\w*', phpbb_preg_quote($words[$i], '#')); - } - } - unset($words); - - $highlight = urlencode($HTTP_GET_VARS['highlight']); - $highlight_match = phpbb_rtrim($highlight_match, "\\"); -} - -// -// Post, reply and other URL generation for -// templating vars -// -$new_topic_url = append_sid("posting.$phpEx?mode=newtopic&" . POST_FORUM_URL . "=$forum_id"); -$reply_topic_url = append_sid("posting.$phpEx?mode=reply&" . POST_TOPIC_URL . "=$topic_id"); -$view_forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"); -$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous"); -$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next"); - -// -// Mozilla navigation bar -// -$nav_links['prev'] = array( - 'url' => $view_prev_topic_url, - 'title' => $lang['View_previous_topic'] -); -$nav_links['next'] = array( - 'url' => $view_next_topic_url, - 'title' => $lang['View_next_topic'] -); -$nav_links['up'] = array( - 'url' => $view_forum_url, - 'title' => $forum_name -); - -$reply_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $images['reply_locked'] : $images['reply_new']; -$reply_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['Reply_to_topic']; -$post_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new']; -$post_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['Post_new_topic']; - -// -// Set a cookie for this topic -// -if ( $userdata['session_logged_in'] ) -{ - $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array(); - $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array(); - - if ( !empty($tracking_topics[$topic_id]) && !empty($tracking_forums[$forum_id]) ) - { - $topic_last_read = ( $tracking_topics[$topic_id] > $tracking_forums[$forum_id] ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id]; - } - else if ( !empty($tracking_topics[$topic_id]) || !empty($tracking_forums[$forum_id]) ) - { - $topic_last_read = ( !empty($tracking_topics[$topic_id]) ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id]; - } - else - { - $topic_last_read = $userdata['user_lastvisit']; - } - - if ( count($tracking_topics) >= 150 && empty($tracking_topics[$topic_id]) ) - { - asort($tracking_topics); - unset($tracking_topics[key($tracking_topics)]); - } - - $tracking_topics[$topic_id] = time(); - - setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']); -} - -// -// Load templates -// -$template->set_filenames(array( - 'body' => 'viewtopic_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx, $forum_id); - -// -// Output page header -// -$page_title = $lang['View_topic'] .' - ' . $topic_title; -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -// -// User authorisation levels output -// -$s_auth_can = ( ( $is_auth['auth_post'] ) ? $lang['Rules_post_can'] : $lang['Rules_post_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_reply'] ) ? $lang['Rules_reply_can'] : $lang['Rules_reply_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_edit'] ) ? $lang['Rules_edit_can'] : $lang['Rules_edit_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_delete'] ) ? $lang['Rules_delete_can'] : $lang['Rules_delete_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot'] ) . '
    '; - -$topic_mod = ''; - -if ( $is_auth['auth_mod'] ) -{ - $s_auth_can .= sprintf($lang['Rules_moderate'], "', ''); - - $topic_mod .= "' . $lang['Delete_topic'] . ' '; - - $topic_mod .= "' . $lang['Move_topic'] . ' '; - - $topic_mod .= ( $forum_topic_data['topic_status'] == TOPIC_UNLOCKED ) ? "' . $lang['Lock_topic'] . ' ' : "' . $lang['Unlock_topic'] . ' '; - - $topic_mod .= "' . $lang['Split_topic'] . ' '; -} - -// -// Topic watch information -// -$s_watching_topic = ''; -if ( $can_watch_topic ) -{ - if ( $is_watching_topic ) - { - $s_watching_topic = "' . $lang['Stop_watching_topic'] . ''; - $s_watching_topic_img = ( isset($images['topic_un_watch']) ) ? "' . $lang['Stop_watching_topic'] . '' : ''; - } - else - { - $s_watching_topic = "' . $lang['Start_watching_topic'] . ''; - $s_watching_topic_img = ( isset($images['Topic_watch']) ) ? "' . $lang['Start_watching_topic'] . '' : ''; - } -} - -// -// If we've got a hightlight set pass it on to pagination, -// I get annoyed when I lose my highlight after the first page. -// -$pagination = ( $highlight != '' ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&highlight=$highlight", $total_replies, $board_config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start); - -// -// Send vars to template -// -$template->assign_vars(array( - 'FORUM_ID' => $forum_id, - 'FORUM_NAME' => $forum_name, - 'TOPIC_ID' => $topic_id, - 'TOPIC_TITLE' => $topic_title, - 'PAGINATION' => $pagination, - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / intval($board_config['posts_per_page']) ) + 1 ), ceil( $total_replies / intval($board_config['posts_per_page']) )), - - 'POST_IMG' => $post_img, - 'REPLY_IMG' => $reply_img, - - 'L_AUTHOR' => $lang['Author'], - 'L_MESSAGE' => $lang['Message'], - 'L_POSTED' => $lang['Posted'], - 'L_POST_SUBJECT' => $lang['Post_subject'], - 'L_VIEW_NEXT_TOPIC' => $lang['View_next_topic'], - 'L_VIEW_PREVIOUS_TOPIC' => $lang['View_previous_topic'], - 'L_POST_NEW_TOPIC' => $post_alt, - 'L_POST_REPLY_TOPIC' => $reply_alt, - 'L_BACK_TO_TOP' => $lang['Back_to_top'], - 'L_DISPLAY_POSTS' => $lang['Display_posts'], - 'L_LOCK_TOPIC' => $lang['Lock_topic'], - 'L_UNLOCK_TOPIC' => $lang['Unlock_topic'], - 'L_MOVE_TOPIC' => $lang['Move_topic'], - 'L_SPLIT_TOPIC' => $lang['Split_topic'], - 'L_DELETE_TOPIC' => $lang['Delete_topic'], - 'L_GOTO_PAGE' => $lang['Goto_page'], - - 'S_TOPIC_LINK' => POST_TOPIC_URL, - 'S_SELECT_POST_DAYS' => $select_post_days, - 'S_SELECT_POST_ORDER' => $select_post_order, - 'S_POST_DAYS_ACTION' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $topic_id . "&start=$start"), - 'S_AUTH_LIST' => $s_auth_can, - 'S_TOPIC_ADMIN' => $topic_mod, - 'S_WATCH_TOPIC' => $s_watching_topic, - 'S_WATCH_TOPIC_IMG' => $s_watching_topic_img, - - 'U_VIEW_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start&postdays=$post_days&postorder=$post_order&highlight=$highlight"), - 'U_VIEW_FORUM' => $view_forum_url, - 'U_VIEW_OLDER_TOPIC' => $view_prev_topic_url, - 'U_VIEW_NEWER_TOPIC' => $view_next_topic_url, - 'U_POST_NEW_TOPIC' => $new_topic_url, - 'U_POST_REPLY_TOPIC' => $reply_topic_url) -); - -// -// Does this topic contain a poll? -// -if ( !empty($forum_topic_data['topic_vote']) ) -{ - $s_hidden_fields = ''; - - $sql = "SELECT vd.vote_id, vd.vote_text, vd.vote_start, vd.vote_length, vr.vote_option_id, vr.vote_option_text, vr.vote_result - FROM " . VOTE_DESC_TABLE . " vd, " . VOTE_RESULTS_TABLE . " vr - WHERE vd.topic_id = $topic_id - AND vr.vote_id = vd.vote_id - ORDER BY vr.vote_option_id ASC"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain vote data for this topic", '', __LINE__, __FILE__, $sql); - } - - if ( $vote_info = $db->sql_fetchrowset($result) ) - { - $db->sql_freeresult($result); - $vote_options = count($vote_info); - - $vote_id = $vote_info[0]['vote_id']; - $vote_title = $vote_info[0]['vote_text']; - - $sql = "SELECT vote_id - FROM " . VOTE_USERS_TABLE . " - WHERE vote_id = $vote_id - AND vote_user_id = " . intval($userdata['user_id']); - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain user vote data for this topic", '', __LINE__, __FILE__, $sql); - } - - $user_voted = ( $row = $db->sql_fetchrow($result) ) ? TRUE : 0; - $db->sql_freeresult($result); - - if ( isset($HTTP_GET_VARS['vote']) || isset($HTTP_POST_VARS['vote']) ) - { - $view_result = ( ( ( isset($HTTP_GET_VARS['vote']) ) ? $HTTP_GET_VARS['vote'] : $HTTP_POST_VARS['vote'] ) == 'viewresult' ) ? TRUE : 0; - } - else - { - $view_result = 0; - } - - $poll_expired = ( $vote_info[0]['vote_length'] ) ? ( ( $vote_info[0]['vote_start'] + $vote_info[0]['vote_length'] < time() ) ? TRUE : 0 ) : 0; - - if ( $user_voted || $view_result || $poll_expired || !$is_auth['auth_vote'] || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) - { - $template->set_filenames(array( - 'pollbox' => 'viewtopic_poll_result.tpl') - ); - - $vote_results_sum = 0; - - for($i = 0; $i < $vote_options; $i++) - { - $vote_results_sum += $vote_info[$i]['vote_result']; - } - - $vote_graphic = 0; - $vote_graphic_max = count($images['voting_graphic']); - - for($i = 0; $i < $vote_options; $i++) - { - $vote_percent = ( $vote_results_sum > 0 ) ? $vote_info[$i]['vote_result'] / $vote_results_sum : 0; - $vote_graphic_length = round($vote_percent * $board_config['vote_graphic_length']); - - $vote_graphic_img = $images['voting_graphic'][$vote_graphic]; - $vote_graphic = ($vote_graphic < $vote_graphic_max - 1) ? $vote_graphic + 1 : 0; - - if ( count($orig_word) ) - { - $vote_info[$i]['vote_option_text'] = preg_replace($orig_word, $replacement_word, $vote_info[$i]['vote_option_text']); - } - - $template->assign_block_vars("poll_option", array( - 'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text'], - 'POLL_OPTION_RESULT' => $vote_info[$i]['vote_result'], - 'POLL_OPTION_PERCENT' => sprintf("%.1d%%", ($vote_percent * 100)), - - 'POLL_OPTION_IMG' => $vote_graphic_img, - 'POLL_OPTION_IMG_WIDTH' => $vote_graphic_length) - ); - } - - $template->assign_vars(array( - 'L_TOTAL_VOTES' => $lang['Total_votes'], - 'TOTAL_VOTES' => $vote_results_sum) - ); - - } - else - { - $template->set_filenames(array( - 'pollbox' => 'viewtopic_poll_ballot.tpl') - ); - - for($i = 0; $i < $vote_options; $i++) - { - if ( count($orig_word) ) - { - $vote_info[$i]['vote_option_text'] = preg_replace($orig_word, $replacement_word, $vote_info[$i]['vote_option_text']); - } - - $template->assign_block_vars("poll_option", array( - 'POLL_OPTION_ID' => $vote_info[$i]['vote_option_id'], - 'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text']) - ); - } - - $template->assign_vars(array( - 'L_SUBMIT_VOTE' => $lang['Submit_vote'], - 'L_VIEW_RESULTS' => $lang['View_results'], - - 'U_VIEW_RESULTS' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&vote=viewresult")) - ); - - $s_hidden_fields = ''; - } - - if ( count($orig_word) ) - { - $vote_title = preg_replace($orig_word, $replacement_word, $vote_title); - } - - $s_hidden_fields .= ''; - - $template->assign_vars(array( - 'POLL_QUESTION' => $vote_title, - - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_POLL_ACTION' => append_sid("posting.$phpEx?mode=vote&" . POST_TOPIC_URL . "=$topic_id")) - ); - - $template->assign_var_from_handle('POLL_DISPLAY', 'pollbox'); - } -} - -// -// Update the topic view counter -// -$sql = "UPDATE " . TOPICS_TABLE . " - SET topic_views = topic_views + 1 - WHERE topic_id = $topic_id"; -if ( !$db->sql_query($sql) ) -{ - message_die(GENERAL_ERROR, "Could not update topic views.", '', __LINE__, __FILE__, $sql); -} - -// -// Okay, let's do the loop, yeah come on baby let's do the loop -// and it goes like this ... -// -for($i = 0; $i < $total_posts; $i++) -{ - $poster_id = $postrow[$i]['user_id']; - $poster = ( $poster_id == ANONYMOUS ) ? $lang['Guest'] : $postrow[$i]['username']; - - $post_date = create_date($board_config['default_dateformat'], $postrow[$i]['post_time'], $board_config['board_timezone']); - - $poster_posts = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Posts'] . ': ' . $postrow[$i]['user_posts'] : ''; - - $poster_from = ( $postrow[$i]['user_from'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Location'] . ': ' . $postrow[$i]['user_from'] : ''; - - $poster_joined = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Joined'] . ': ' . create_date($lang['DATE_FORMAT'], $postrow[$i]['user_regdate'], $board_config['board_timezone']) : ''; - - $poster_avatar = ''; - if ( $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] ) - { - switch( $postrow[$i]['user_avatar_type'] ) - { - case USER_AVATAR_UPLOAD: - $poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '' : ''; - break; - case USER_AVATAR_REMOTE: - $poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '' : ''; - break; - case USER_AVATAR_GALLERY: - $poster_avatar = ( $board_config['allow_avatar_local'] ) ? '' : ''; - break; - } - } - - // - // Define the little post icon - // - if ( $userdata['session_logged_in'] && $postrow[$i]['post_time'] > $userdata['user_lastvisit'] && $postrow[$i]['post_time'] > $topic_last_read ) - { - $mini_post_img = $images['icon_minipost_new']; - $mini_post_alt = $lang['New_post']; - } - else - { - $mini_post_img = $images['icon_minipost']; - $mini_post_alt = $lang['Post']; - } - - $mini_post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$i]['post_id']) . '#' . $postrow[$i]['post_id']; - - // - // Generate ranks, set them to empty string initially. - // - $poster_rank = ''; - $rank_image = ''; - if ( $postrow[$i]['user_id'] == ANONYMOUS ) - { - } - else if ( $postrow[$i]['user_rank'] ) - { - for($j = 0; $j < count($ranksrow); $j++) - { - if ( $postrow[$i]['user_rank'] == $ranksrow[$j]['rank_id'] && $ranksrow[$j]['rank_special'] ) - { - $poster_rank = $ranksrow[$j]['rank_title']; - $rank_image = ( $ranksrow[$j]['rank_image'] ) ? '' . $poster_rank . '
    ' : ''; - } - } - } - else - { - for($j = 0; $j < count($ranksrow); $j++) - { - if ( $postrow[$i]['user_posts'] >= $ranksrow[$j]['rank_min'] && !$ranksrow[$j]['rank_special'] ) - { - $poster_rank = $ranksrow[$j]['rank_title']; - $rank_image = ( $ranksrow[$j]['rank_image'] ) ? '' . $poster_rank . '
    ' : ''; - } - } - } - - // - // Handle anon users posting with usernames - // - if ( $poster_id == ANONYMOUS && $postrow[$i]['post_username'] != '' ) - { - $poster = $postrow[$i]['post_username']; - $poster_rank = $lang['Guest']; - } - - $temp_url = ''; - - if ( $poster_id != ANONYMOUS ) - { - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id"); - $profile_img = '' . $lang['Read_profile'] . ''; - $profile = '' . $lang['Read_profile'] . ''; - - $temp_url = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$poster_id"); - $pm_img = '' . $lang['Send_private_message'] . ''; - $pm = '' . $lang['Send_private_message'] . ''; - - if ( !empty($postrow[$i]['user_viewemail']) || $is_auth['auth_mod'] ) - { - $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $poster_id) : 'mailto:' . $postrow[$i]['user_email']; - - $email_img = '' . $lang['Send_email'] . ''; - $email = '' . $lang['Send_email'] . ''; - } - else - { - $email_img = ''; - $email = ''; - } - - $www_img = ( $postrow[$i]['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - $www = ( $postrow[$i]['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - - if ( !empty($postrow[$i]['user_icq']) ) - { - $icq_status_img = ''; - $icq_img = '' . $lang['ICQ'] . ''; - $icq = '' . $lang['ICQ'] . ''; - } - else - { - $icq_status_img = ''; - $icq_img = ''; - $icq = ''; - } - - $aim_img = ( $postrow[$i]['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - $aim = ( $postrow[$i]['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id"); - $msn_img = ( $postrow[$i]['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - $msn = ( $postrow[$i]['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - - $yim_img = ( $postrow[$i]['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - $yim = ( $postrow[$i]['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - } - else - { - $profile_img = ''; - $profile = ''; - $pm_img = ''; - $pm = ''; - $email_img = ''; - $email = ''; - $www_img = ''; - $www = ''; - $icq_status_img = ''; - $icq_img = ''; - $icq = ''; - $aim_img = ''; - $aim = ''; - $msn_img = ''; - $msn = ''; - $yim_img = ''; - $yim = ''; - } - - $temp_url = append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); - $quote_img = '' . $lang['Reply_with_quote'] . ''; - $quote = '' . $lang['Reply_with_quote'] . ''; - - $temp_url = append_sid("search.$phpEx?search_author=" . urlencode($postrow[$i]['username']) . "&showresults=posts"); - $search_img = '' . $lang['Search_user_posts'] . ''; - $search = '' . $lang['Search_user_posts'] . ''; - - if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] ) || $is_auth['auth_mod'] ) - { - $temp_url = append_sid("posting.$phpEx?mode=editpost&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); - $edit_img = '' . $lang['Edit_delete_post'] . ''; - $edit = '' . $lang['Edit_delete_post'] . ''; - } - else - { - $edit_img = ''; - $edit = ''; - } - - if ( $is_auth['auth_mod'] ) - { - $temp_url = "modcp.$phpEx?mode=ip&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=" . $topic_id . "&sid=" . $userdata['session_id']; - $ip_img = '' . $lang['View_IP'] . ''; - $ip = '' . $lang['View_IP'] . ''; - - $temp_url = "posting.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id']; - $delpost_img = '' . $lang['Delete_post'] . ''; - $delpost = '' . $lang['Delete_post'] . ''; - } - else - { - $ip_img = ''; - $ip = ''; - - if ( $userdata['user_id'] == $poster_id && $is_auth['auth_delete'] && $forum_topic_data['topic_last_post_id'] == $postrow[$i]['post_id'] ) - { - $temp_url = "posting.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id']; - $delpost_img = '' . $lang['Delete_post'] . ''; - $delpost = '' . $lang['Delete_post'] . ''; - } - else - { - $delpost_img = ''; - $delpost = ''; - } - } - - $post_subject = ( $postrow[$i]['post_subject'] != '' ) ? $postrow[$i]['post_subject'] : ''; - - $message = $postrow[$i]['post_text']; - $bbcode_uid = $postrow[$i]['bbcode_uid']; - - $user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : ''; - $user_sig_bbcode_uid = $postrow[$i]['user_sig_bbcode_uid']; - - // - // Note! The order used for parsing the message _is_ important, moving things around could break any - // output - // - - // - // If the board has HTML off but the post has HTML - // on then we process it, else leave it alone - // - if ( !$board_config['allow_html'] || !$userdata['user_allowhtml']) - { - if ( $user_sig != '' ) - { - $user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $user_sig); - } - - if ( $postrow[$i]['enable_html'] ) - { - $message = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $message); - } - } - - // - // Parse message and/or sig for BBCode if reqd - // - if ( $board_config['allow_bbcode'] ) - { - if ( $user_sig != '' && $user_sig_bbcode_uid != '' ) - { - $user_sig = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $user_sig); - } - - if ( $bbcode_uid != '' ) - { - $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message); - } - } - - if ( $user_sig != '' ) - { - $user_sig = make_clickable($user_sig); - } - $message = make_clickable($message); - - // - // Parse smilies - // - if ( $board_config['allow_smilies'] ) - { - if ( $postrow[$i]['user_allowsmile'] && $user_sig != '' ) - { - $user_sig = smilies_pass($user_sig); - } - - if ( $postrow[$i]['enable_smilies'] ) - { - $message = smilies_pass($message); - } - } - - // - // Highlight active words (primarily for search) - // - if ($highlight_match) - { - // This was shamelessly 'borrowed' from volker at multiartstudio dot de - // via php.net's annotated manual - $message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace('#\b(" . str_replace('\\', '\\\\', $highlight_match) . ")\b#i', '\\\\1', '\\0')", '>' . $message . '<'), 1, -1)); - } - - // - // Replace naughty words - // - if (count($orig_word)) - { - $post_subject = preg_replace($orig_word, $replacement_word, $post_subject); - - if ($user_sig != '') - { - $user_sig = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $user_sig . '<'), 1, -1)); - } - - $message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $message . '<'), 1, -1)); - } - - // - // Replace newlines (we use this rather than nl2br because - // till recently it wasn't XHTML compliant) - // - if ( $user_sig != '' ) - { - $user_sig = '
    _________________
    ' . str_replace("\n", "\n
    \n", $user_sig); - } - - $message = str_replace("\n", "\n
    \n", $message); - - // - // Editing information - // - if ( $postrow[$i]['post_edit_count'] ) - { - $l_edit_time_total = ( $postrow[$i]['post_edit_count'] == 1 ) ? $lang['Edited_time_total'] : $lang['Edited_times_total']; - - $l_edited_by = '

    ' . sprintf($l_edit_time_total, $poster, create_date($board_config['default_dateformat'], $postrow[$i]['post_edit_time'], $board_config['board_timezone']), $postrow[$i]['post_edit_count']); - } - else - { - $l_edited_by = ''; - } - - // - // Again this will be handled by the templating - // code at some point - // - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('postrow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'POSTER_NAME' => $poster, - 'POSTER_RANK' => $poster_rank, - 'RANK_IMAGE' => $rank_image, - 'POSTER_JOINED' => $poster_joined, - 'POSTER_POSTS' => $poster_posts, - 'POSTER_FROM' => $poster_from, - 'POSTER_AVATAR' => $poster_avatar, - 'POST_DATE' => $post_date, - 'POST_SUBJECT' => $post_subject, - 'MESSAGE' => $message, - 'SIGNATURE' => $user_sig, - 'EDITED_MESSAGE' => $l_edited_by, - - 'MINI_POST_IMG' => $mini_post_img, - 'PROFILE_IMG' => $profile_img, - 'PROFILE' => $profile, - 'SEARCH_IMG' => $search_img, - 'SEARCH' => $search, - 'PM_IMG' => $pm_img, - 'PM' => $pm, - 'EMAIL_IMG' => $email_img, - 'EMAIL' => $email, - 'WWW_IMG' => $www_img, - 'WWW' => $www, - 'ICQ_STATUS_IMG' => $icq_status_img, - 'ICQ_IMG' => $icq_img, - 'ICQ' => $icq, - 'AIM_IMG' => $aim_img, - 'AIM' => $aim, - 'MSN_IMG' => $msn_img, - 'MSN' => $msn, - 'YIM_IMG' => $yim_img, - 'YIM' => $yim, - 'EDIT_IMG' => $edit_img, - 'EDIT' => $edit, - 'QUOTE_IMG' => $quote_img, - 'QUOTE' => $quote, - 'IP_IMG' => $ip_img, - 'IP' => $ip, - 'DELETE_IMG' => $delpost_img, - 'DELETE' => $delpost, - - 'L_MINI_POST_ALT' => $mini_post_alt, - - 'U_MINI_POST' => $mini_post_url, - 'U_POST_ID' => $postrow[$i]['post_id']) - ); -} - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/viewtopic.php.orig b/phpBB2/viewtopic.php.orig deleted file mode 100644 index ffa71c0..0000000 --- a/phpBB2/viewtopic.php.orig +++ /dev/null @@ -1,1216 +0,0 @@ -= u.user_lastvisit - ORDER BY p.post_time ASC - LIMIT 1"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain newer/older topic information', '', __LINE__, __FILE__, $sql); - } - - if ( !($row = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_MESSAGE, 'No_new_posts_last_visit'); - } - - $post_id = $row['post_id']; - - if (isset($HTTP_GET_VARS['sid'])) - { - redirect("viewtopic.$phpEx?sid=$session_id&" . POST_POST_URL . "=$post_id#$post_id"); - } - else - { - redirect("viewtopic.$phpEx?" . POST_POST_URL . "=$post_id#$post_id"); - } - } - } - - redirect(append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id", true)); - } - else if ( $HTTP_GET_VARS['view'] == 'next' || $HTTP_GET_VARS['view'] == 'previous' ) - { - $sql_condition = ( $HTTP_GET_VARS['view'] == 'next' ) ? '>' : '<'; - $sql_ordering = ( $HTTP_GET_VARS['view'] == 'next' ) ? 'ASC' : 'DESC'; - - $sql = "SELECT t.topic_id - FROM " . TOPICS_TABLE . " t, " . TOPICS_TABLE . " t2 - WHERE - t2.topic_id = $topic_id - AND t.forum_id = t2.forum_id - AND t.topic_last_post_id $sql_condition t2.topic_last_post_id - ORDER BY t.topic_last_post_id $sql_ordering - LIMIT 1"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain newer/older topic information", '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $topic_id = intval($row['topic_id']); - } - else - { - $message = ( $HTTP_GET_VARS['view'] == 'next' ) ? 'No_newer_topics' : 'No_older_topics'; - message_die(GENERAL_MESSAGE, $message); - } - } -} - -// -// This rather complex gaggle of code handles querying for topics but -// also allows for direct linking to a post (and the calculation of which -// page the post is on and the correct display of viewtopic) -// -$join_sql_table = ( empty($post_id) ) ? '' : ", " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2 "; -$join_sql = ( empty($post_id) ) ? "t.topic_id = $topic_id" : "p.post_id = $post_id AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= $post_id"; -$count_sql = ( empty($post_id) ) ? '' : ", COUNT(p2.post_id) AS prev_posts"; - -$order_sql = ( empty($post_id) ) ? '' : "GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments ORDER BY p.post_id ASC"; - -$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . " - FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . " - WHERE $join_sql - AND f.forum_id = t.forum_id - $order_sql"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, "Could not obtain topic information", '', __LINE__, __FILE__, $sql); -} - -if ( !($forum_topic_data = $db->sql_fetchrow($result)) ) -{ - message_die(GENERAL_MESSAGE, 'Topic_post_not_exist'); -} - -$forum_id = intval($forum_topic_data['forum_id']); - -// -// Start session management -// -$userdata = session_pagestart($user_ip, $forum_id); -init_userprefs($userdata); -// -// End session management -// - -// -// Start auth check -// -$is_auth = array(); -$is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_topic_data); - -if( !$is_auth['auth_view'] || !$is_auth['auth_read'] ) -{ - if ( !$userdata['session_logged_in'] ) - { - $redirect = ( isset($post_id) ) ? POST_POST_URL . "=$post_id" : POST_TOPIC_URL . "=$topic_id"; - $redirect .= ( isset($start) ) ? "&start=$start" : ''; - redirect(append_sid("login.$phpEx?redirect=viewtopic.$phpEx&$redirect", true)); - } - - $message = ( !$is_auth['auth_view'] ) ? $lang['Topic_post_not_exist'] : sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']); - - message_die(GENERAL_MESSAGE, $message); -} -// -// End auth check -// - -$forum_name = $forum_topic_data['forum_name']; -$topic_title = $forum_topic_data['topic_title']; -$topic_id = intval($forum_topic_data['topic_id']); -$topic_time = $forum_topic_data['topic_time']; - -if ( !empty($post_id) ) -{ - $start = floor(($forum_topic_data['prev_posts'] - 1) / intval($board_config['posts_per_page'])) * intval($board_config['posts_per_page']); -} - -// -// Is user watching this thread? -// -if( $userdata['session_logged_in'] ) -{ - $can_watch_topic = TRUE; - - $sql = "SELECT notify_status - FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain topic watch information", '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - if ( isset($HTTP_GET_VARS['unwatch']) ) - { - if ( $HTTP_GET_VARS['unwatch'] == 'topic' ) - { - $is_watching_topic = 0; - - $sql_priority = (SQL_LAYER == "mysql") ? "LOW_PRIORITY" : ''; - $sql = "DELETE $sql_priority FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not delete topic watch information", '', __LINE__, __FILE__, $sql); - } - } - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['No_longer_watching'] . '

    ' . sprintf($lang['Click_return_topic'], '', ''); - message_die(GENERAL_MESSAGE, $message); - } - else - { - $is_watching_topic = TRUE; - - if ( $row['notify_status'] ) - { - $sql_priority = (SQL_LAYER == "mysql") ? "LOW_PRIORITY" : ''; - $sql = "UPDATE $sql_priority " . TOPICS_WATCH_TABLE . " - SET notify_status = 0 - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not update topic watch information", '', __LINE__, __FILE__, $sql); - } - } - } - } - else - { - if ( isset($HTTP_GET_VARS['watch']) ) - { - if ( $HTTP_GET_VARS['watch'] == 'topic' ) - { - $is_watching_topic = TRUE; - - $sql_priority = (SQL_LAYER == "mysql") ? "LOW_PRIORITY" : ''; - $sql = "INSERT $sql_priority INTO " . TOPICS_WATCH_TABLE . " (user_id, topic_id, notify_status) - VALUES (" . $userdata['user_id'] . ", $topic_id, 0)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not insert topic watch information", '', __LINE__, __FILE__, $sql); - } - } - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['You_are_watching'] . '

    ' . sprintf($lang['Click_return_topic'], '', ''); - message_die(GENERAL_MESSAGE, $message); - } - else - { - $is_watching_topic = 0; - } - } -} -else -{ - if ( isset($HTTP_GET_VARS['unwatch']) ) - { - if ( $HTTP_GET_VARS['unwatch'] == 'topic' ) - { - redirect(append_sid("login.$phpEx?redirect=viewtopic.$phpEx&" . POST_TOPIC_URL . "=$topic_id&unwatch=topic", true)); - } - } - else - { - $can_watch_topic = 0; - $is_watching_topic = 0; - } -} - -// -// Generate a 'Show posts in previous x days' select box. If the postdays var is POSTed -// then get it's value, find the number of topics with dates newer than it (to properly -// handle pagination) and alter the main query -// -$previous_days = array(0, 1, 7, 14, 30, 90, 180, 364); -$previous_days_text = array($lang['All_Posts'], $lang['1_Day'], $lang['7_Days'], $lang['2_Weeks'], $lang['1_Month'], $lang['3_Months'], $lang['6_Months'], $lang['1_Year']); - -if( !empty($HTTP_POST_VARS['postdays']) || !empty($HTTP_GET_VARS['postdays']) ) -{ - $post_days = ( !empty($HTTP_POST_VARS['postdays']) ) ? intval($HTTP_POST_VARS['postdays']) : intval($HTTP_GET_VARS['postdays']); - $min_post_time = time() - (intval($post_days) * 86400); - - $sql = "SELECT COUNT(p.post_id) AS num_posts - FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p - WHERE t.topic_id = $topic_id - AND p.topic_id = t.topic_id - AND p.post_time >= $min_post_time"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain limited topics count information", '', __LINE__, __FILE__, $sql); - } - - $total_replies = ( $row = $db->sql_fetchrow($result) ) ? intval($row['num_posts']) : 0; - - $limit_posts_time = "AND p.post_time >= $min_post_time "; - - if ( !empty($HTTP_POST_VARS['postdays'])) - { - $start = 0; - } -} -else -{ - $total_replies = intval($forum_topic_data['topic_replies']) + 1; - - $limit_posts_time = ''; - $post_days = 0; -} - -$select_post_days = ''; - -// -// Decide how to order the post display -// -if ( !empty($HTTP_POST_VARS['postorder']) || !empty($HTTP_GET_VARS['postorder']) ) -{ - $post_order = (!empty($HTTP_POST_VARS['postorder'])) ? htmlspecialchars($HTTP_POST_VARS['postorder']) : htmlspecialchars($HTTP_GET_VARS['postorder']); - $post_time_order = ($post_order == "asc") ? "ASC" : "DESC"; -} -else -{ - $post_order = 'asc'; - $post_time_order = 'ASC'; -} - -$select_post_order = ''; - -// -// Go ahead and pull all data for this topic -// -$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid - FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt - WHERE p.topic_id = $topic_id - $limit_posts_time - AND pt.post_id = p.post_id - AND u.user_id = p.poster_id - ORDER BY p.post_time $post_time_order - LIMIT $start, ".$board_config['posts_per_page']; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, "Could not obtain post/user information.", '', __LINE__, __FILE__, $sql); -} - -$postrow = array(); -if ($row = $db->sql_fetchrow($result)) -{ - do - { - $postrow[] = $row; - } - while ($row = $db->sql_fetchrow($result)); - $db->sql_freeresult($result); - - $total_posts = count($postrow); -} -else -{ - include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); - sync('topic', $topic_id); - - message_die(GENERAL_MESSAGE, $lang['No_posts_topic']); -} - -$resync = FALSE; -if ($forum_topic_data['topic_replies'] + 1 < $start + count($postrow)) -{ - $resync = TRUE; -} -elseif ($start + $board_config['posts_per_page'] > $forum_topic_data['topic_replies']) -{ - $row_id = intval($forum_topic_data['topic_replies']) % intval($board_config['posts_per_page']); - if ($postrow[$row_id]['post_id'] != $forum_topic_data['topic_last_post_id'] || $start + count($postrow) < $forum_topic_data['topic_replies']) - { - $resync = TRUE; - } -} -elseif (count($postrow) < $board_config['posts_per_page']) -{ - $resync = TRUE; -} - -if ($resync) -{ - include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); - sync('topic', $topic_id); - - $result = $db->sql_query('SELECT COUNT(post_id) AS total FROM ' . POSTS_TABLE . ' WHERE topic_id = ' . $topic_id); - $row = $db->sql_fetchrow($result); - $total_replies = $row['total']; -} - -$sql = "SELECT * - FROM " . RANKS_TABLE . " - ORDER BY rank_special, rank_min"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, "Could not obtain ranks information.", '', __LINE__, __FILE__, $sql); -} - -$ranksrow = array(); -while ( $row = $db->sql_fetchrow($result) ) -{ - $ranksrow[] = $row; -} -$db->sql_freeresult($result); - -// -// Define censored word matches -// -$orig_word = array(); -$replacement_word = array(); -obtain_word_list($orig_word, $replacement_word); - -// -// Censor topic title -// -if ( count($orig_word) ) -{ - $topic_title = preg_replace($orig_word, $replacement_word, $topic_title); -} - -// -// Was a highlight request part of the URI? -// -$highlight_match = $highlight = ''; -if (isset($HTTP_GET_VARS['highlight'])) -{ - // Split words and phrases - $words = explode(' ', trim(htmlspecialchars($HTTP_GET_VARS['highlight']))); - - for($i = 0; $i < sizeof($words); $i++) - { - if (trim($words[$i]) != '') - { - $highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('*', '\w*', phpbb_preg_quote($words[$i], '#')); - } - } - unset($words); - - $highlight = urlencode($HTTP_GET_VARS['highlight']); - $highlight_match = phpbb_rtrim($highlight_match, "\\"); -} - -// -// Post, reply and other URL generation for -// templating vars -// -$new_topic_url = append_sid("posting.$phpEx?mode=newtopic&" . POST_FORUM_URL . "=$forum_id"); -$reply_topic_url = append_sid("posting.$phpEx?mode=reply&" . POST_TOPIC_URL . "=$topic_id"); -$view_forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"); -$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous"); -$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next"); - -// -// Mozilla navigation bar -// -$nav_links['prev'] = array( - 'url' => $view_prev_topic_url, - 'title' => $lang['View_previous_topic'] -); -$nav_links['next'] = array( - 'url' => $view_next_topic_url, - 'title' => $lang['View_next_topic'] -); -$nav_links['up'] = array( - 'url' => $view_forum_url, - 'title' => $forum_name -); - -$reply_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $images['reply_locked'] : $images['reply_new']; -$reply_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['Reply_to_topic']; -$post_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new']; -$post_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['Post_new_topic']; - -// -// Set a cookie for this topic -// -if ( $userdata['session_logged_in'] ) -{ - $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array(); - $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array(); - - if ( !empty($tracking_topics[$topic_id]) && !empty($tracking_forums[$forum_id]) ) - { - $topic_last_read = ( $tracking_topics[$topic_id] > $tracking_forums[$forum_id] ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id]; - } - else if ( !empty($tracking_topics[$topic_id]) || !empty($tracking_forums[$forum_id]) ) - { - $topic_last_read = ( !empty($tracking_topics[$topic_id]) ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id]; - } - else - { - $topic_last_read = $userdata['user_lastvisit']; - } - - if ( count($tracking_topics) >= 150 && empty($tracking_topics[$topic_id]) ) - { - asort($tracking_topics); - unset($tracking_topics[key($tracking_topics)]); - } - - $tracking_topics[$topic_id] = time(); - - setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']); -} - -// -// Load templates -// -$template->set_filenames(array( - 'body' => 'viewtopic_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx, $forum_id); - -// -// Output page header -// -$page_title = $lang['View_topic'] .' - ' . $topic_title; -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -// -// User authorisation levels output -// -$s_auth_can = ( ( $is_auth['auth_post'] ) ? $lang['Rules_post_can'] : $lang['Rules_post_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_reply'] ) ? $lang['Rules_reply_can'] : $lang['Rules_reply_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_edit'] ) ? $lang['Rules_edit_can'] : $lang['Rules_edit_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_delete'] ) ? $lang['Rules_delete_can'] : $lang['Rules_delete_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot'] ) . '
    '; - -$topic_mod = ''; - -if ( $is_auth['auth_mod'] ) -{ - $s_auth_can .= sprintf($lang['Rules_moderate'], "', ''); - - $topic_mod .= "' . $lang['Delete_topic'] . ' '; - - $topic_mod .= "' . $lang['Move_topic'] . ' '; - - $topic_mod .= ( $forum_topic_data['topic_status'] == TOPIC_UNLOCKED ) ? "' . $lang['Lock_topic'] . ' ' : "' . $lang['Unlock_topic'] . ' '; - - $topic_mod .= "' . $lang['Split_topic'] . ' '; -} - -// -// Topic watch information -// -$s_watching_topic = ''; -if ( $can_watch_topic ) -{ - if ( $is_watching_topic ) - { - $s_watching_topic = "' . $lang['Stop_watching_topic'] . ''; - $s_watching_topic_img = ( isset($images['topic_un_watch']) ) ? "' . $lang['Stop_watching_topic'] . '' : ''; - } - else - { - $s_watching_topic = "' . $lang['Start_watching_topic'] . ''; - $s_watching_topic_img = ( isset($images['Topic_watch']) ) ? "' . $lang['Start_watching_topic'] . '' : ''; - } -} - -// -// If we've got a hightlight set pass it on to pagination, -// I get annoyed when I lose my highlight after the first page. -// -$pagination = ( $highlight != '' ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&highlight=$highlight", $total_replies, $board_config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start); - -// -// Send vars to template -// -$template->assign_vars(array( - 'FORUM_ID' => $forum_id, - 'FORUM_NAME' => $forum_name, - 'TOPIC_ID' => $topic_id, - 'TOPIC_TITLE' => $topic_title, - 'PAGINATION' => $pagination, - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / intval($board_config['posts_per_page']) ) + 1 ), ceil( $total_replies / intval($board_config['posts_per_page']) )), - - 'POST_IMG' => $post_img, - 'REPLY_IMG' => $reply_img, - - 'L_AUTHOR' => $lang['Author'], - 'L_MESSAGE' => $lang['Message'], - 'L_POSTED' => $lang['Posted'], - 'L_POST_SUBJECT' => $lang['Post_subject'], - 'L_VIEW_NEXT_TOPIC' => $lang['View_next_topic'], - 'L_VIEW_PREVIOUS_TOPIC' => $lang['View_previous_topic'], - 'L_POST_NEW_TOPIC' => $post_alt, - 'L_POST_REPLY_TOPIC' => $reply_alt, - 'L_BACK_TO_TOP' => $lang['Back_to_top'], - 'L_DISPLAY_POSTS' => $lang['Display_posts'], - 'L_LOCK_TOPIC' => $lang['Lock_topic'], - 'L_UNLOCK_TOPIC' => $lang['Unlock_topic'], - 'L_MOVE_TOPIC' => $lang['Move_topic'], - 'L_SPLIT_TOPIC' => $lang['Split_topic'], - 'L_DELETE_TOPIC' => $lang['Delete_topic'], - 'L_GOTO_PAGE' => $lang['Goto_page'], - - 'S_TOPIC_LINK' => POST_TOPIC_URL, - 'S_SELECT_POST_DAYS' => $select_post_days, - 'S_SELECT_POST_ORDER' => $select_post_order, - 'S_POST_DAYS_ACTION' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $topic_id . "&start=$start"), - 'S_AUTH_LIST' => $s_auth_can, - 'S_TOPIC_ADMIN' => $topic_mod, - 'S_WATCH_TOPIC' => $s_watching_topic, - 'S_WATCH_TOPIC_IMG' => $s_watching_topic_img, - - 'U_VIEW_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start&postdays=$post_days&postorder=$post_order&highlight=$highlight"), - 'U_VIEW_FORUM' => $view_forum_url, - 'U_VIEW_OLDER_TOPIC' => $view_prev_topic_url, - 'U_VIEW_NEWER_TOPIC' => $view_next_topic_url, - 'U_POST_NEW_TOPIC' => $new_topic_url, - 'U_POST_REPLY_TOPIC' => $reply_topic_url) -); - -// -// Does this topic contain a poll? -// -if ( !empty($forum_topic_data['topic_vote']) ) -{ - $s_hidden_fields = ''; - - $sql = "SELECT vd.vote_id, vd.vote_text, vd.vote_start, vd.vote_length, vr.vote_option_id, vr.vote_option_text, vr.vote_result - FROM " . VOTE_DESC_TABLE . " vd, " . VOTE_RESULTS_TABLE . " vr - WHERE vd.topic_id = $topic_id - AND vr.vote_id = vd.vote_id - ORDER BY vr.vote_option_id ASC"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain vote data for this topic", '', __LINE__, __FILE__, $sql); - } - - if ( $vote_info = $db->sql_fetchrowset($result) ) - { - $db->sql_freeresult($result); - $vote_options = count($vote_info); - - $vote_id = $vote_info[0]['vote_id']; - $vote_title = $vote_info[0]['vote_text']; - - $sql = "SELECT vote_id - FROM " . VOTE_USERS_TABLE . " - WHERE vote_id = $vote_id - AND vote_user_id = " . intval($userdata['user_id']); - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain user vote data for this topic", '', __LINE__, __FILE__, $sql); - } - - $user_voted = ( $row = $db->sql_fetchrow($result) ) ? TRUE : 0; - $db->sql_freeresult($result); - - if ( isset($HTTP_GET_VARS['vote']) || isset($HTTP_POST_VARS['vote']) ) - { - $view_result = ( ( ( isset($HTTP_GET_VARS['vote']) ) ? $HTTP_GET_VARS['vote'] : $HTTP_POST_VARS['vote'] ) == 'viewresult' ) ? TRUE : 0; - } - else - { - $view_result = 0; - } - - $poll_expired = ( $vote_info[0]['vote_length'] ) ? ( ( $vote_info[0]['vote_start'] + $vote_info[0]['vote_length'] < time() ) ? TRUE : 0 ) : 0; - - if ( $user_voted || $view_result || $poll_expired || !$is_auth['auth_vote'] || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) - { - $template->set_filenames(array( - 'pollbox' => 'viewtopic_poll_result.tpl') - ); - - $vote_results_sum = 0; - - for($i = 0; $i < $vote_options; $i++) - { - $vote_results_sum += $vote_info[$i]['vote_result']; - } - - $vote_graphic = 0; - $vote_graphic_max = count($images['voting_graphic']); - - for($i = 0; $i < $vote_options; $i++) - { - $vote_percent = ( $vote_results_sum > 0 ) ? $vote_info[$i]['vote_result'] / $vote_results_sum : 0; - $vote_graphic_length = round($vote_percent * $board_config['vote_graphic_length']); - - $vote_graphic_img = $images['voting_graphic'][$vote_graphic]; - $vote_graphic = ($vote_graphic < $vote_graphic_max - 1) ? $vote_graphic + 1 : 0; - - if ( count($orig_word) ) - { - $vote_info[$i]['vote_option_text'] = preg_replace($orig_word, $replacement_word, $vote_info[$i]['vote_option_text']); - } - - $template->assign_block_vars("poll_option", array( - 'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text'], - 'POLL_OPTION_RESULT' => $vote_info[$i]['vote_result'], - 'POLL_OPTION_PERCENT' => sprintf("%.1d%%", ($vote_percent * 100)), - - 'POLL_OPTION_IMG' => $vote_graphic_img, - 'POLL_OPTION_IMG_WIDTH' => $vote_graphic_length) - ); - } - - $template->assign_vars(array( - 'L_TOTAL_VOTES' => $lang['Total_votes'], - 'TOTAL_VOTES' => $vote_results_sum) - ); - - } - else - { - $template->set_filenames(array( - 'pollbox' => 'viewtopic_poll_ballot.tpl') - ); - - for($i = 0; $i < $vote_options; $i++) - { - if ( count($orig_word) ) - { - $vote_info[$i]['vote_option_text'] = preg_replace($orig_word, $replacement_word, $vote_info[$i]['vote_option_text']); - } - - $template->assign_block_vars("poll_option", array( - 'POLL_OPTION_ID' => $vote_info[$i]['vote_option_id'], - 'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text']) - ); - } - - $template->assign_vars(array( - 'L_SUBMIT_VOTE' => $lang['Submit_vote'], - 'L_VIEW_RESULTS' => $lang['View_results'], - - 'U_VIEW_RESULTS' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&vote=viewresult")) - ); - - $s_hidden_fields = ''; - } - - if ( count($orig_word) ) - { - $vote_title = preg_replace($orig_word, $replacement_word, $vote_title); - } - - $s_hidden_fields .= ''; - - $template->assign_vars(array( - 'POLL_QUESTION' => $vote_title, - - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_POLL_ACTION' => append_sid("posting.$phpEx?mode=vote&" . POST_TOPIC_URL . "=$topic_id")) - ); - - $template->assign_var_from_handle('POLL_DISPLAY', 'pollbox'); - } -} - -// -// Update the topic view counter -// -$sql = "UPDATE " . TOPICS_TABLE . " - SET topic_views = topic_views + 1 - WHERE topic_id = $topic_id"; -if ( !$db->sql_query($sql) ) -{ - message_die(GENERAL_ERROR, "Could not update topic views.", '', __LINE__, __FILE__, $sql); -} - -// -// Okay, let's do the loop, yeah come on baby let's do the loop -// and it goes like this ... -// -for($i = 0; $i < $total_posts; $i++) -{ - $poster_id = $postrow[$i]['user_id']; - $poster = ( $poster_id == ANONYMOUS ) ? $lang['Guest'] : $postrow[$i]['username']; - - $post_date = create_date($board_config['default_dateformat'], $postrow[$i]['post_time'], $board_config['board_timezone']); - - $poster_posts = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Posts'] . ': ' . $postrow[$i]['user_posts'] : ''; - - $poster_from = ( $postrow[$i]['user_from'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Location'] . ': ' . $postrow[$i]['user_from'] : ''; - - $poster_joined = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Joined'] . ': ' . create_date($lang['DATE_FORMAT'], $postrow[$i]['user_regdate'], $board_config['board_timezone']) : ''; - - $poster_avatar = ''; - if ( $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] ) - { - switch( $postrow[$i]['user_avatar_type'] ) - { - case USER_AVATAR_UPLOAD: - $poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '' : ''; - break; - case USER_AVATAR_REMOTE: - $poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '' : ''; - break; - case USER_AVATAR_GALLERY: - $poster_avatar = ( $board_config['allow_avatar_local'] ) ? '' : ''; - break; - } - } - - // - // Define the little post icon - // - if ( $userdata['session_logged_in'] && $postrow[$i]['post_time'] > $userdata['user_lastvisit'] && $postrow[$i]['post_time'] > $topic_last_read ) - { - $mini_post_img = $images['icon_minipost_new']; - $mini_post_alt = $lang['New_post']; - } - else - { - $mini_post_img = $images['icon_minipost']; - $mini_post_alt = $lang['Post']; - } - - $mini_post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$i]['post_id']) . '#' . $postrow[$i]['post_id']; - - // - // Generate ranks, set them to empty string initially. - // - $poster_rank = ''; - $rank_image = ''; - if ( $postrow[$i]['user_id'] == ANONYMOUS ) - { - } - else if ( $postrow[$i]['user_rank'] ) - { - for($j = 0; $j < count($ranksrow); $j++) - { - if ( $postrow[$i]['user_rank'] == $ranksrow[$j]['rank_id'] && $ranksrow[$j]['rank_special'] ) - { - $poster_rank = $ranksrow[$j]['rank_title']; - $rank_image = ( $ranksrow[$j]['rank_image'] ) ? '' . $poster_rank . '
    ' : ''; - } - } - } - else - { - for($j = 0; $j < count($ranksrow); $j++) - { - if ( $postrow[$i]['user_posts'] >= $ranksrow[$j]['rank_min'] && !$ranksrow[$j]['rank_special'] ) - { - $poster_rank = $ranksrow[$j]['rank_title']; - $rank_image = ( $ranksrow[$j]['rank_image'] ) ? '' . $poster_rank . '
    ' : ''; - } - } - } - - // - // Handle anon users posting with usernames - // - if ( $poster_id == ANONYMOUS && $postrow[$i]['post_username'] != '' ) - { - $poster = $postrow[$i]['post_username']; - $poster_rank = $lang['Guest']; - } - - $temp_url = ''; - - if ( $poster_id != ANONYMOUS ) - { - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id"); - $profile_img = '' . $lang['Read_profile'] . ''; - $profile = '' . $lang['Read_profile'] . ''; - - $temp_url = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$poster_id"); - $pm_img = '' . $lang['Send_private_message'] . ''; - $pm = '' . $lang['Send_private_message'] . ''; - - if ( !empty($postrow[$i]['user_viewemail']) || $is_auth['auth_mod'] ) - { - $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $poster_id) : 'mailto:' . $postrow[$i]['user_email']; - - $email_img = '' . $lang['Send_email'] . ''; - $email = '' . $lang['Send_email'] . ''; - } - else - { - $email_img = ''; - $email = ''; - } - - $www_img = ( $postrow[$i]['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - $www = ( $postrow[$i]['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - - if ( !empty($postrow[$i]['user_icq']) ) - { - $icq_status_img = ''; - $icq_img = '' . $lang['ICQ'] . ''; - $icq = '' . $lang['ICQ'] . ''; - } - else - { - $icq_status_img = ''; - $icq_img = ''; - $icq = ''; - } - - $aim_img = ( $postrow[$i]['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - $aim = ( $postrow[$i]['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id"); - $msn_img = ( $postrow[$i]['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - $msn = ( $postrow[$i]['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - - $yim_img = ( $postrow[$i]['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - $yim = ( $postrow[$i]['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - } - else - { - $profile_img = ''; - $profile = ''; - $pm_img = ''; - $pm = ''; - $email_img = ''; - $email = ''; - $www_img = ''; - $www = ''; - $icq_status_img = ''; - $icq_img = ''; - $icq = ''; - $aim_img = ''; - $aim = ''; - $msn_img = ''; - $msn = ''; - $yim_img = ''; - $yim = ''; - } - - $temp_url = append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); - $quote_img = '' . $lang['Reply_with_quote'] . ''; - $quote = '' . $lang['Reply_with_quote'] . ''; - - $temp_url = append_sid("search.$phpEx?search_author=" . urlencode($postrow[$i]['username']) . "&showresults=posts"); - $search_img = '' . $lang['Search_user_posts'] . ''; - $search = '' . $lang['Search_user_posts'] . ''; - - if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] ) || $is_auth['auth_mod'] ) - { - $temp_url = append_sid("posting.$phpEx?mode=editpost&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); - $edit_img = '' . $lang['Edit_delete_post'] . ''; - $edit = '' . $lang['Edit_delete_post'] . ''; - } - else - { - $edit_img = ''; - $edit = ''; - } - - if ( $is_auth['auth_mod'] ) - { - $temp_url = "modcp.$phpEx?mode=ip&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=" . $topic_id . "&sid=" . $userdata['session_id']; - $ip_img = '' . $lang['View_IP'] . ''; - $ip = '' . $lang['View_IP'] . ''; - - $temp_url = "posting.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id']; - $delpost_img = '' . $lang['Delete_post'] . ''; - $delpost = '' . $lang['Delete_post'] . ''; - } - else - { - $ip_img = ''; - $ip = ''; - - if ( $userdata['user_id'] == $poster_id && $is_auth['auth_delete'] && $forum_topic_data['topic_last_post_id'] == $postrow[$i]['post_id'] ) - { - $temp_url = "posting.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id']; - $delpost_img = '' . $lang['Delete_post'] . ''; - $delpost = '' . $lang['Delete_post'] . ''; - } - else - { - $delpost_img = ''; - $delpost = ''; - } - } - - $post_subject = ( $postrow[$i]['post_subject'] != '' ) ? $postrow[$i]['post_subject'] : ''; - - $message = $postrow[$i]['post_text']; - $bbcode_uid = $postrow[$i]['bbcode_uid']; - - $user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : ''; - $user_sig_bbcode_uid = $postrow[$i]['user_sig_bbcode_uid']; - - // - // Note! The order used for parsing the message _is_ important, moving things around could break any - // output - // - - // - // If the board has HTML off but the post has HTML - // on then we process it, else leave it alone - // - if ( !$board_config['allow_html'] || !$userdata['user_allowhtml']) - { - if ( $user_sig != '' ) - { - $user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $user_sig); - } - - if ( $postrow[$i]['enable_html'] ) - { - $message = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $message); - } - } - - // - // Parse message and/or sig for BBCode if reqd - // - if ( $board_config['allow_bbcode'] ) - { - if ( $user_sig != '' && $user_sig_bbcode_uid != '' ) - { - $user_sig = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $user_sig); - } - - if ( $bbcode_uid != '' ) - { - $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message); - } - } - - if ( $user_sig != '' ) - { - $user_sig = make_clickable($user_sig); - } - $message = make_clickable($message); - - // - // Parse smilies - // - if ( $board_config['allow_smilies'] ) - { - if ( $postrow[$i]['user_allowsmile'] && $user_sig != '' ) - { - $user_sig = smilies_pass($user_sig); - } - - if ( $postrow[$i]['enable_smilies'] ) - { - $message = smilies_pass($message); - } - } - - // - // Highlight active words (primarily for search) - // - if ($highlight_match) - { - // This was shamelessly 'borrowed' from volker at multiartstudio dot de - // via php.net's annotated manual - $message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace('#\b(" . str_replace('\\', '\\\\', addslashes($highlight_match)) . ")\b#i', '\\\\1', '\\0')", '>' . $message . '<'), 1, -1)); - } - - // - // Replace naughty words - // - if (count($orig_word)) - { - $post_subject = preg_replace($orig_word, $replacement_word, $post_subject); - - if ($user_sig != '') - { - $user_sig = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $user_sig . '<'), 1, -1)); - } - - $message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $message . '<'), 1, -1)); - } - - // - // Replace newlines (we use this rather than nl2br because - // till recently it wasn't XHTML compliant) - // - if ( $user_sig != '' ) - { - $user_sig = '
    _________________
    ' . str_replace("\n", "\n
    \n", $user_sig); - } - - $message = str_replace("\n", "\n
    \n", $message); - - // - // Editing information - // - if ( $postrow[$i]['post_edit_count'] ) - { - $l_edit_time_total = ( $postrow[$i]['post_edit_count'] == 1 ) ? $lang['Edited_time_total'] : $lang['Edited_times_total']; - - $l_edited_by = '

    ' . sprintf($l_edit_time_total, $poster, create_date($board_config['default_dateformat'], $postrow[$i]['post_edit_time'], $board_config['board_timezone']), $postrow[$i]['post_edit_count']); - } - else - { - $l_edited_by = ''; - } - - // - // Again this will be handled by the templating - // code at some point - // - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('postrow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'POSTER_NAME' => $poster, - 'POSTER_RANK' => $poster_rank, - 'RANK_IMAGE' => $rank_image, - 'POSTER_JOINED' => $poster_joined, - 'POSTER_POSTS' => $poster_posts, - 'POSTER_FROM' => $poster_from, - 'POSTER_AVATAR' => $poster_avatar, - 'POST_DATE' => $post_date, - 'POST_SUBJECT' => $post_subject, - 'MESSAGE' => $message, - 'SIGNATURE' => $user_sig, - 'EDITED_MESSAGE' => $l_edited_by, - - 'MINI_POST_IMG' => $mini_post_img, - 'PROFILE_IMG' => $profile_img, - 'PROFILE' => $profile, - 'SEARCH_IMG' => $search_img, - 'SEARCH' => $search, - 'PM_IMG' => $pm_img, - 'PM' => $pm, - 'EMAIL_IMG' => $email_img, - 'EMAIL' => $email, - 'WWW_IMG' => $www_img, - 'WWW' => $www, - 'ICQ_STATUS_IMG' => $icq_status_img, - 'ICQ_IMG' => $icq_img, - 'ICQ' => $icq, - 'AIM_IMG' => $aim_img, - 'AIM' => $aim, - 'MSN_IMG' => $msn_img, - 'MSN' => $msn, - 'YIM_IMG' => $yim_img, - 'YIM' => $yim, - 'EDIT_IMG' => $edit_img, - 'EDIT' => $edit, - 'QUOTE_IMG' => $quote_img, - 'QUOTE' => $quote, - 'IP_IMG' => $ip_img, - 'IP' => $ip, - 'DELETE_IMG' => $delpost_img, - 'DELETE' => $delpost, - - 'L_MINI_POST_ALT' => $mini_post_alt, - - 'U_MINI_POST' => $mini_post_url, - 'U_POST_ID' => $postrow[$i]['post_id']) - ); -} - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2/viewtopic.php.rej b/phpBB2/viewtopic.php.rej deleted file mode 100644 index c7fa825..0000000 --- a/phpBB2/viewtopic.php.rej +++ /dev/null @@ -1,17 +0,0 @@ -*************** -*** 1107,1113 **** - { - // This was shamelessly 'borrowed' from volker at multiartstudio dot de - // via php.net's annotated manual -! $message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace('#\b(" . str_replace('\\', '\\\\', $highlight_match) . ")\b#i', '\\\\1', '\\0')", '>' . $message . '<'), 1, -1)); - } - - // ---- 1105,1111 ---- - { - // This was shamelessly 'borrowed' from volker at multiartstudio dot de - // via php.net's annotated manual -! $message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace('#\b(" . str_replace('\\', '\\\\', addslashes($highlight_match)) . ")\b#i', '\\\\1', '\\0')", '>' . $message . '<'), 1, -1)); - } - - // diff --git a/phpBB2/xs_mod/formIE.css b/phpBB2/xs_mod/formIE.css deleted file mode 100644 index b76fd40..0000000 --- a/phpBB2/xs_mod/formIE.css +++ /dev/null @@ -1,19 +0,0 @@ -/* Fancy form styles for IE */ - -input, textarea, select { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -input { text-indent : 2px; } - -input.button { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -.postbody { line-height: 18px} diff --git a/phpBB2/xs_mod/images/button.gif b/phpBB2/xs_mod/images/button.gif deleted file mode 100644 index 17660cd..0000000 Binary files a/phpBB2/xs_mod/images/button.gif and /dev/null differ diff --git a/phpBB2/xs_mod/images/cellpic1.gif b/phpBB2/xs_mod/images/cellpic1.gif deleted file mode 100644 index db90769..0000000 Binary files a/phpBB2/xs_mod/images/cellpic1.gif and /dev/null differ diff --git a/phpBB2/xs_mod/images/cellpic2.jpg b/phpBB2/xs_mod/images/cellpic2.jpg deleted file mode 100644 index d6e4687..0000000 Binary files a/phpBB2/xs_mod/images/cellpic2.jpg and /dev/null differ diff --git a/phpBB2/xs_mod/images/cellpic3.gif b/phpBB2/xs_mod/images/cellpic3.gif deleted file mode 100644 index 49b5b26..0000000 Binary files a/phpBB2/xs_mod/images/cellpic3.gif and /dev/null differ diff --git a/phpBB2/xs_mod/images/cellpic4.gif b/phpBB2/xs_mod/images/cellpic4.gif deleted file mode 100644 index 9041126..0000000 Binary files a/phpBB2/xs_mod/images/cellpic4.gif and /dev/null differ diff --git a/phpBB2/xs_mod/images/dot.gif b/phpBB2/xs_mod/images/dot.gif deleted file mode 100644 index 10db0b3..0000000 Binary files a/phpBB2/xs_mod/images/dot.gif and /dev/null differ diff --git a/phpBB2/xs_mod/images/spacer.gif b/phpBB2/xs_mod/images/spacer.gif deleted file mode 100644 index cd29009..0000000 Binary files a/phpBB2/xs_mod/images/spacer.gif and /dev/null differ diff --git a/phpBB2/xs_mod/images/top_bg.gif b/phpBB2/xs_mod/images/top_bg.gif deleted file mode 100644 index 8e5d7ca..0000000 Binary files a/phpBB2/xs_mod/images/top_bg.gif and /dev/null differ diff --git a/phpBB2/xs_mod/images/top_bg2.gif b/phpBB2/xs_mod/images/top_bg2.gif deleted file mode 100644 index 8e48cb3..0000000 Binary files a/phpBB2/xs_mod/images/top_bg2.gif and /dev/null differ diff --git a/phpBB2/xs_mod/images/top_logo.jpg b/phpBB2/xs_mod/images/top_logo.jpg deleted file mode 100644 index e030ee3..0000000 Binary files a/phpBB2/xs_mod/images/top_logo.jpg and /dev/null differ diff --git a/phpBB2/xs_mod/style.css b/phpBB2/xs_mod/style.css deleted file mode 100644 index 1f4e53a..0000000 --- a/phpBB2/xs_mod/style.css +++ /dev/null @@ -1,253 +0,0 @@ -/*************************************************************************** - * style.css - * --------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 55 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:55 - * - ***************************************************************************/ - -body { - background-color: #E5E5E5; - margin: 0px; - scrollbar-face-color: #DEE3E7; - scrollbar-highlight-color: #FFFFFF; - scrollbar-shadow-color: #DEE3E7; - scrollbar-3dlight-color: #D1D7DC; - scrollbar-arrow-color: #006699; - scrollbar-track-color: #EFEFEF; - scrollbar-darkshadow-color: #98AAB1; -} - -/* General font families for common tags */ -font, th, td, p, div { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } -a:link,a:active,a:visited { color: #005784; } -a:hover { text-decoration: underline; color: #D46400; } -hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} - -ul { list-style-image: url('images/dot.gif'); margin-left: 20px; margin-bottom: 0px; margin-top: 0px; } -h1 { margin-top: 0px; } - -label:hover { color: #D46400; } - -/* This is the border line & background colour round the entire page */ -table.bodyline { background-color: #F4F4F4; border: 1px #98AAB1 solid; } - -/* This is the outline round the main forum tables */ -table.forumline { background-color: #FFF; border: 2px #98AAB1 solid; } -td.forumline { background-color: #F8F8F8; border: 2px #98AAB1 solid; } - -img.screenshot { border: 2px #006699 solid; padding: 1px; background-color: #F8F8F8; } -img.screenshot { border: 2px #015884 solid; padding: 1px; background-color: #F8F8F8; } - -/* Main table cell colours and backgrounds */ -td.row1 { background-color: #F0F0F0; } -td.row2 { background-color: #E4E9ED; } -td.row3 { background-color: #D8DFE3; } - - -table.navbar { border: solid 1px #98AAB1; background-color: #DFE3E6; background-image: url('images/cellpic4.gif'); background-repeat: repeat-x; height: 22px; } -table.navbar td { color: #FFA34F; font-size: 11px; font-weight: bold; padding-left: 5px; } -table.navbar td a, table.navbar td a:visited { color: #3385AD; text-decoration: underline; } -table.navbar td a:hover, table.navbar td a:active { color: #FFA34F; text-decoration: underline; } -table.navbar td.nav_invert { color: #3385AD; font-size: 11px; font-weight: bold; padding-left: 5px; } -table.navbar td.nav_invert a, table.navbar td.nav_invert a:visited { color: #FFA34F; text-decoration: none; } -table.navbar td.nav_invert a:hover, table.navbar td.nav_invert a:active { color: #3385AD; text-decoration: underline; } - -.bottomnav { color: #444; font-size: 11px; font-weight: bold; } -.bottomnav a, .bottomnav a:visited { color: #3385AD; text-decoration: none; } -.bottomnav a:hover, .bottomnav a:active { color: #FFA34F; text-decoration: underline; } - -/* highlight text */ -.ast { color: #DD6900; font-weight: bold; } - -/* Header cells - the blue and silver gradient backgrounds */ -th { - color: #C8DCE6; font-size: 11px; font-weight: bold; - background-color: #328BB8; - background-image: url('images/cellpic3.gif'); - background-repeat: repeat-x; - height: 28px; -} - -td.explain { - background-color: #E7ECF0; - background-image: url('images/cellpic1.gif'); - background-repeat: repeat-x; - font-size: 10px; - color: #015884; - border: 0px #FFF solid; -} - -td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { - background-image: url('images/cellpic1.gif'); background-color: #BFC8CE; background-repeat: repeat-x; border: 0px #FFFFFF solid; height: 28px; -} - -td.cat,td.catHead,td.catBottom { - height: 29px; - border-width: 0px 0px 0px 0px; -} - - -/* - Setting additional nice inner borders for the main table cells. - The names indicate which sides the border will be on. - Don't worry if you don't understand this, just ignore it :-) -*/ -th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { - font-weight: bold; border: 0px #FFFFFF solid; height: 28px; } - -th.thHead,td.catHead { font-size: 12px; } -/*th.thHead,td.catHead { border-width: 1px 1px 0px 1px; } -th.thSides,td.catSides,td.spaceRow,td.explain { border-width: 0px 1px 0px 1px; } -th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } -th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } -th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } -th.thTop { border-width: 1px 0px 0px 0px; } -th.thCornerL { border-width: 1px 0px 0px 1px; } -th.thCornerR { border-width: 1px 1px 0px 0px; }*/ - - -/* The largest text used in the index page title and toptic title etc. */ -.maintitle,h1,h2 { - font-weight: bold; font-size: 20px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; - text-decoration: none; line-height : 120%; color : #000000; -} - - -/* General text */ -.gen { font-size : 12px; } -.genmed { font-size : 11px; } -.gensmall { font-size : 10px; } -.gen,.genmed,.gensmall { color : #000000; } -a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } -a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } - - -/* The register, login, search etc links at the top of the page */ -.mainmenu { font-size : 11px; color : #000000 } -a.mainmenu { text-decoration: none; color : #006699; } -a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } - - -/* Forum category titles */ -.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} -a.cattitle { text-decoration: none; color : #006699; } -a.cattitle:hover{ text-decoration: underline; } - - -/* Forum title: Text and link to the forums used in: index.php */ -.forumlink { font-weight: bold; font-size: 12px; color : #006699; } -a.forumlink { text-decoration: none; color : #006699; } -a.forumlink:hover{ text-decoration: underline; color : #DD6900; } - - -/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ -.nav { font-weight: bold; font-size: 11px; color : #000000;} -a.nav { text-decoration: none; color : #006699; } -a.nav:hover { text-decoration: underline; } - - -/* titles for the topics: could specify viewed link colour too */ -.topictitle { font-weight: bold; font-size: 11px; color : #000000; } -a.topictitle:link { text-decoration: none; color : #006699; } -a.topictitle:visited { text-decoration: none; color : #5493B4; } -a.topictitle:hover { text-decoration: underline; color : #DD6900; } - - -/* Name of poster in viewmsg.php and viewtopic.php and other places */ -.name { font-size : 11px; color : #000000;} - -/* Location, number of posts, post date etc */ -.postdetails { font-size : 10px; color : #000000; } - - -/* The content of the posts (body of text) */ -.postbody { font-size : 12px;} -a.postlink:link { text-decoration: none; color : #006699 } -a.postlink:visited { text-decoration: none; color : #5493B4; } -a.postlink:hover { text-decoration: underline; color : #DD6900} - - -/* Quote & Code blocks */ -.code { - font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; - background-color: #FAFAFA; border: #D1D7DC; border-style: solid; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - -.quote { - font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; - background-color: #FAFAFA; border: #D1D7DC; border-style: solid; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - - -/* Copyright and bottom info */ -.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} -.copyright a { color: #006699; text-decoration: none;} -.copyright a:hover { color: #000000; text-decoration: underline;} - - -/* Form elements */ -input,textarea, select { - color : #000000; - font: normal 11px Verdana, Arial, Helvetica, sans-serif; - border-color : #000000; -} - -/* The text input fields background colour */ -input.post, textarea.post, select { - background-color: #FFFFFF; - border: solid 1px #000; - color: #000; -} - -input { text-indent : 2px; } - -/* The buttons used for bbCode styling in message post */ -input.button { - background-color : #EFEFEF; - color : #000000; - font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; -} - -/* The main submit button option */ -input.mainoption { - font-weight : bold; -} - -/* None-bold submit button */ -input.liteoption { - font-weight : normal; -} - -input.mainoption, input.liteoption { - height: 18px; - font-size: 11px; - color: #000; - padding: 0 5px; - margin: 0 5px; - border: solid 1px #000; - background: #F0F0F0 url('images/button.gif') repeat-x top left; -} - -input.mainoption:hover, input.liteoption:hover { - color: #FFA34F; - background: #F0F0F0 url('images/button.gif') repeat-x bottom left; -} - -/* This is the line in the posting page which shows the rollover - help line. This is actually a text box, but if set to be the same - colour as the background no one will know ;) -*/ -.helpline { background-color: #DEE3E7; border: solid 0px #FFF; } - -/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ -@import url("formIE.css"); - diff --git a/phpBB2/xs_mod/tpl/cache.tpl b/phpBB2/xs_mod/tpl/cache.tpl deleted file mode 100644 index 0d679fd..0000000 --- a/phpBB2/xs_mod/tpl/cache.tpl +++ /dev/null @@ -1,43 +0,0 @@ - -/*************************************************************************** - * cache.tpl - * --------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 55 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:55 - * - ***************************************************************************/ - - -

    {L_XS_MANAGE_CACHE}

    - -

    -{L_XS_MANAGE_CACHE_EXPLAIN2} -{RESULT} -

    - -
    - - - - -
    {L_INDEX} - - - - - - - - -
     {L_FAQ}{L_FAQ}   {L_SEARCH}{L_SEARCH}   {L_MEMBERLIST}{L_MEMBERLIST}   {L_USERGROUPS}{L_USERGROUPS}  - -  {L_REGISTER}{L_REGISTER}  - -
     {L_PROFILE}{L_PROFILE}   {PRIVATE_MESSAGE_INFO}{PRIVATE_MESSAGE_INFO}   {L_LOGIN_LOGOUT}{L_LOGIN_LOGOUT} 
    - -
    diff --git a/phpBB2/templates/subSilver/temp/profile_add_body.tpl b/phpBB2/templates/subSilver/temp/profile_add_body.tpl deleted file mode 100644 index 6ac7fa3..0000000 --- a/phpBB2/templates/subSilver/temp/profile_add_body.tpl +++ /dev/null @@ -1,278 +0,0 @@ - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: *{USERNAME}
    {L_USERNAME}: *
    {L_EMAIL_ADDRESS}: *
    {L_CURRENT_PASSWORD}: *
    - {L_CONFIRM_PASSWORD_EXPLAIN}
    - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
    {L_CONFIRM_CODE_IMPAIRED}

    {CONFIRM_IMG}

    {L_CONFIRM_CODE}: *
    {L_CONFIRM_CODE_EXPLAIN}
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER}: - -
    {L_AIM}: - -
    {L_MESSENGER}: - -
    {L_YAHOO}: - -
    {L_WEBSITE}: - -
    {L_LOCATION}: - -
    {L_OCCUPATION}: - -
    {L_INTERESTS}: - -
    {L_SIGNATURE}:
    {L_SIGNATURE_EXPLAIN}

    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL}: - - {L_YES}   - - {L_NO}
    {L_HIDE_USER}: - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY}:
    - {L_NOTIFY_ON_REPLY_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG}: - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG}:
    {L_POPUP_ON_PRIVMSG_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES}: - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}:{LANGUAGE_SELECT}
    {L_BOARD_STYLE}:{STYLE_SELECT}
    {L_TIMEZONE}:{TIMEZONE_SELECT}
    {L_DATE_FORMAT}:
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    {AVATAR}
     {L_DELETE_AVATAR}
    {L_UPLOAD_AVATAR_FILE}:
    {L_UPLOAD_AVATAR_URL}:
    {L_UPLOAD_AVATAR_URL_EXPLAIN}
    {L_LINK_REMOTE_AVATAR}:
    {L_LINK_REMOTE_AVATAR_EXPLAIN}
    {L_AVATAR_GALLERY}:
    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2/templates/subSilver/temp/viewtopic_body.tpl b/phpBB2/templates/subSilver/temp/viewtopic_body.tpl deleted file mode 100644 index 5342d30..0000000 --- a/phpBB2/templates/subSilver/temp/viewtopic_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {TOPIC_TITLE}
    - {PAGINATION}
    -  
    - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}
    - - - - - - {POLL_DISPLAY} - - - - - - - - - - - - - - - - - - - - -
    {L_VIEW_PREVIOUS_TOPIC} :: {L_VIEW_NEXT_TOPIC}  
    {L_AUTHOR}{L_MESSAGE}
    {postrow.POSTER_NAME}
    {postrow.POSTER_RANK}
    {postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}

    {postrow.POSTER_JOINED}
    {postrow.POSTER_POSTS}
    {postrow.POSTER_FROM}

    - - - - - - - - - - -
    {postrow.L_MINI_POST_ALT}{L_POSTED}: {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}

    {postrow.MESSAGE}{postrow.SIGNATURE}{postrow.EDITED_MESSAGE}
    {L_BACK_TO_TOP} - - - -
    {postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}
    - - - -
    {L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} 
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    - - - - - - -
    {S_WATCH_TOPIC}
    -  
    - {S_TOPIC_ADMIN}
    {JUMPBOX}{S_AUTH_LIST}
    diff --git a/phpBB2/templates/subSilver/theme_info.cfg b/phpBB2/templates/subSilver/theme_info.cfg deleted file mode 100644 index bd61eef..0000000 --- a/phpBB2/templates/subSilver/theme_info.cfg +++ /dev/null @@ -1,51 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2/templates/subSilver/viewforum_body.tpl b/phpBB2/templates/subSilver/viewforum_body.tpl deleted file mode 100644 index 3c2a067..0000000 --- a/phpBB2/templates/subSilver/viewforum_body.tpl +++ /dev/null @@ -1,98 +0,0 @@ - -
    - - - - - - - - - - -
    {FORUM_NAME}
    {L_MODERATOR}: {MODERATORS}

    {LOGGED_IN_USER_LIST}
    {PAGINATION}
    {L_POST_NEW_TOPIC}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_TOPICS}  {L_REPLIES}  {L_AUTHOR}  {L_VIEWS}  {L_LASTPOST} 
    {topicrow.L_TOPIC_FOLDER_ALT}{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}
    - {topicrow.GOTO_PAGE}
    {topicrow.REPLIES}{topicrow.TOPIC_AUTHOR}{topicrow.VIEWS}{topicrow.LAST_POST_TIME}
    {topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}
    {L_NO_TOPICS}
    {L_DISPLAY_TOPICS}: {S_SELECT_TOPIC_DAYS}  - -
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_INDEX} -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    -
    - - - - - -
    {JUMPBOX}
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_ANNOUNCEMENT}{L_ANNOUNCEMENT}
    {L_NEW_POSTS_HOT}{L_NEW_POSTS_HOT}  {L_NO_NEW_POSTS_HOT}{L_NO_NEW_POSTS_HOT}  {L_STICKY}{L_STICKY}
    {L_NEW_POSTS_LOCKED}{L_NEW_POSTS_LOCKED}  {L_NO_NEW_POSTS_LOCKED}{L_NO_NEW_POSTS_LOCKED}
    {S_AUTH_LIST}
    diff --git a/phpBB2/templates/subSilver/viewonline_body.tpl b/phpBB2/templates/subSilver/viewonline_body.tpl deleted file mode 100644 index e0813c0..0000000 --- a/phpBB2/templates/subSilver/viewonline_body.tpl +++ /dev/null @@ -1,53 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_LAST_UPDATE}  {L_FORUM_LOCATION} 
    {TOTAL_REGISTERED_USERS_ONLINE}
     {reg_user_row.USERNAME}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION} 
    .
    {TOTAL_GUEST_USERS_ONLINE}
     {guest_user_row.USERNAME}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION} 
    - - - - - - -
    {L_ONLINE_EXPLAIN}{S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    - diff --git a/phpBB2/templates/subSilver/viewtopic_body.tpl b/phpBB2/templates/subSilver/viewtopic_body.tpl deleted file mode 100644 index 9fea16e..0000000 --- a/phpBB2/templates/subSilver/viewtopic_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {TOPIC_TITLE}
    - {PAGINATION}
    -  
    - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}
    - - - - - - {POLL_DISPLAY} - - - - - - - - - - - - - - - - - - - - -
    {L_VIEW_PREVIOUS_TOPIC} :: {L_VIEW_NEXT_TOPIC}  
    {L_AUTHOR}{L_MESSAGE}
    {postrow.POSTER_NAME}
    {postrow.POSTER_RANK}
    {postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}

    {postrow.POSTER_JOINED}
    {postrow.POSTER_POSTS}
    {postrow.POSTER_FROM}

    - - - - - - - - - - -
    {postrow.L_MINI_POST_ALT}{L_POSTED}: {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}

    {postrow.MESSAGE}{postrow.SIGNATURE}{postrow.EDITED_MESSAGE}
    {L_BACK_TO_TOP} - - - -
    {postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}
    - - - -
    {L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} 
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    - - - - - - -
    {S_WATCH_TOPIC}
    -  
    - {S_TOPIC_ADMIN}
    {JUMPBOX}{S_AUTH_LIST}
    diff --git a/phpBB2/templates/subSilver/viewtopic_poll_ballot.tpl b/phpBB2/templates/subSilver/viewtopic_poll_ballot.tpl deleted file mode 100644 index 1e0cb21..0000000 --- a/phpBB2/templates/subSilver/viewtopic_poll_ballot.tpl +++ /dev/null @@ -1,26 +0,0 @@ -

    - - - - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - -
     {poll_option.POLL_OPTION_CAPTION}
    - -
    {L_VIEW_RESULTS}
    {S_HIDDEN_FIELDS}

    - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - - - - -
    {poll_option.POLL_OPTION_CAPTION} - - - - - - -
    {poll_option.POLL_OPTION_PERCENT}
    -
     {poll_option.POLL_OPTION_PERCENT} [ {poll_option.POLL_OPTION_RESULT} ]
    -
    {L_TOTAL_VOTES} : {TOTAL_VOTES}
    -
    -
    - - - - - - - - - - - - - - - - - -
    {L_XS_MANAGE_CACHE}
    {L_XS_TEMPLATE}{L_XS_STYLES}{L_XS_CLEAR_ALL_LC}{L_XS_COMPILE_ALL_LC}
    {styles.TPL}{styles.STYLES}{L_XS_CLEAR_CACHE_LC}{L_XS_COMPILE_CACHE_LC}
    -
    \ No newline at end of file diff --git a/phpBB2/xs_mod/tpl/clone.tpl b/phpBB2/xs_mod/tpl/clone.tpl deleted file mode 100644 index 530927c..0000000 --- a/phpBB2/xs_mod/tpl/clone.tpl +++ /dev/null @@ -1,39 +0,0 @@ - -/*************************************************************************** - * clone.tpl - * --------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 55 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:54 - * - ***************************************************************************/ - - -

    {L_XS_CLONE_STYLES}

    - -

    {L_XS_CLONE_STYLE_EXPLAIN}

    - - - - - - - - - - - - - - - - - - -
    {L_XS_CLONE_STYLES}
    {L_XS_TEMPLATE}{L_XS_STYLES} 
    {styles.TPL}{styles.STYLES}{L_XS_CLONE_STYLE_LC}
    -
    \ No newline at end of file diff --git a/phpBB2/xs_mod/tpl/clone2.tpl b/phpBB2/xs_mod/tpl/clone2.tpl deleted file mode 100644 index 579b5f5..0000000 --- a/phpBB2/xs_mod/tpl/clone2.tpl +++ /dev/null @@ -1,73 +0,0 @@ - -/*************************************************************************** - * clone2.tpl - * ---------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 72 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:54 - * - ***************************************************************************/ - - -

    {L_XS_CLONE_STYLE}

    - -

    {L_XS_CLONE_STYLE_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - - - - {S_HIDDEN_FIELDS} - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_CLONE_STYLE}
    {L_XS_CLONE_STYLE_EXPLAIN2}
    {styles.L_CLONE}
    {L_XS_CLONE_STYLE_EXPLAIN3}
    {S_HIDDEN_FIELDS}
    {L_CLONE_STYLE3}
    {L_XS_CLONE_STYLE_EXPLAIN4}
    {L_XS_CLONE_NEWDIR_NAME} onkeyup="document.clone.clone_style_name_0.value=document.clone.clone_style_name.value" />
    {L_XS_CLONE_SELECT}
    {L_XS_CLONE_SELECT_EXPLAIN}
    - - - -
    - -
    {L_XS_CLONE_NEWNAME} - - - -
    diff --git a/phpBB2/xs_mod/tpl/config.tpl b/phpBB2/xs_mod/tpl/config.tpl deleted file mode 100644 index 57a1c91..0000000 --- a/phpBB2/xs_mod/tpl/config.tpl +++ /dev/null @@ -1,217 +0,0 @@ - -/*************************************************************************** - * confir.tpl - * ---------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 55 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:55 - * - ***************************************************************************/ - - -

    {L_XS_CONFIG_MAINTITLE}

    - -

    {L_XS_CONFIG_SUBTITLE}

    - - - - - - - - - - - - -
    {L_XS_CONFIG_UPDATED}
    - - - - - - - - - -
     
    {L_XS_CONFIG_UPDATED_EXPLAIN}
     
    -
    - - - - - - - - - - -
    {L_XS_CONFIG_WARNING}
    - - - - - - - - - -
     
    {L_XS_CONFIG_WARNING_EXPLAIN}
     
    -
    - - - - - - - - - - -
    {L_Error}
    - - - - - - - - - -
     
    {L_XS_FTP_COMMENT3}
     
    -
    - - - - - - - - - - -
    {L_Error}
    - - - - - - - - - -
     
    {ftperror.ERROR}
     
    -
    - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_CONFIG_TITLE}
    {L_XS_CONFIG_NAVBAR}
    {L_XS_CONFIG_NAVBAR_EXPLAIN}
    - -
    - -
    {L_XS_CONFIG_DEF_TEMPLATE}
    {L_XS_CONFIG_DEF_TEMPLATE_EXPLAIN}
    {L_XS_CONFIG_CHECK_SWITCHES}
    {L_XS_CONFIG_CHECK_SWITCHES_EXPLAIN}
    -
    -
    -
    -
    - -
    {L_XS_CONFIG_SHOW_ERRORS}
    {L_XS_CONFIG_SHOW_ERROR_EXPLAIN}
      
    {L_XS_CONFIG_TPL_COMMENTS}
    {L_XS_CONFIG_TPL_COMMENTS_EXPLAIN}
      
    {L_XS_CONFIG_CACHE}
    {L_XS_CONFIG_USE_CACHE}
    {L_XS_CONFIG_USE_CACHE_EXPLAIN}
      
    {L_XS_CONFIG_AUTO_COMPILE}
    {L_XS_CONFIG_AUTO_COMPILE_EXPLAIN}
      
    {L_XS_CONFIG_AUTO_RECOMPILE}
    {L_XS_CONFIG_AUTO_RECOMPILE_EXPLAIN}
      
    {L_XS_CONFIG_PHP}
    {L_XS_CONFIG_PHP_EXPLAIN}
    {L_XS_FTP_CONFIG}
    {L_XS_FTP_EXPLAIN}
    {L_XS_FTP_HOST}{HOST_GUESS}:
    {L_XS_FTP_LOGIN}{LOGIN_GUESS}:
    {L_XS_FTP_PATH}{PATH_GUESS}:
    {S_HIDDEN_FIELDS}
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_DEBUG_HEADER}
    {L_XS_DEBUG_EXPLAIN}
    {XS_DEBUG_HDR1}
    {L_XS_DEBUG_TPL_NAME}{XS_DEBUG_FILENAME1}
    {L_XS_DEBUG_CACHE_FILENAME}{XS_DEBUG_FILENAME2}
    {L_XS_DEBUG_DATA}{XS_DEBUG_DATA}
    diff --git a/phpBB2/xs_mod/tpl/downloads.tpl b/phpBB2/xs_mod/tpl/downloads.tpl deleted file mode 100644 index d8611d3..0000000 --- a/phpBB2/xs_mod/tpl/downloads.tpl +++ /dev/null @@ -1,66 +0,0 @@ - -/*************************************************************************** - * downloads.tpl - * ------------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 72 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:54 - * - ***************************************************************************/ - - -

    {L_XS_DOWNLOAD_STYLES}

    - -

    {L_XS_DOWNLOAD_EXPLAIN2}

    - - - - - - - - - - - - - - - -{S_HIDDEN_FIELDS} - - - - - - - - - - - - - - - - - -{S_HIDDEN_FIELDS} - - - - - - - - - - -
    {L_XS_DOWNLOAD_LOCATIONS}
    {url.NUM1}. {url.TITLE} [{L_XS_CLICK_HERE_LC}]{url.URL} [{L_XS_EDIT_LC}]
    {L_XS_EDIT_LINK}
    {L_XS_LINK_TITLE}:
    {L_XS_LINK_URL}:
    {L_XS_DELETE}:
    {L_XS_ADD_LINK}
    {L_XS_LINK_TITLE}:
    {L_XS_LINK_URL}:
    -
    - diff --git a/phpBB2/xs_mod/tpl/edit.tpl b/phpBB2/xs_mod/tpl/edit.tpl deleted file mode 100644 index c1c8be7..0000000 --- a/phpBB2/xs_mod/tpl/edit.tpl +++ /dev/null @@ -1,82 +0,0 @@ - -/*************************************************************************** - * edit.tpl - * -------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 72 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:54 - * - ***************************************************************************/ - - -

    {L_XS_EDIT_TEMPLATES}

    - -

    {L_XS_EDIT_TEMPLATE_COMMENT1}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_FILEMAN_BROWSER}
    - {L_XS_FILEMAN_DIRECTORY} - - {tree.SEPARATOR} - {tree.ITEM} - -
    - {begin_dirs.L_COUNT}
    - - » {begin_dirs.dir.NAME}
    - -
    {L_XS_FILEMAN_FILTER}
    {S_HIDDEN_FIELDS} - - - - - - - - - - - - - -
    {L_XS_FILEMAN_FILTER_EXT}
    {L_XS_FILEMAN_FILTER_CONTENT}
    -
    {L_XS_FILEMAN_FILENAME}{L_XS_FILEMAN_FILESIZE}{L_XS_FILEMAN_FILETIME}{L_XS_FILEMAN_OPTIONS}
    {begin_files.file.NAME}{begin_files.file.SIZE}{begin_files.file.TIME} {L_XS_FILEMAN_TIME_TODAY}{L_XS_FILEMAN_EDIT_LC}
    - diff --git a/phpBB2/xs_mod/tpl/edit_data.tpl b/phpBB2/xs_mod/tpl/edit_data.tpl deleted file mode 100644 index 8ffb872..0000000 --- a/phpBB2/xs_mod/tpl/edit_data.tpl +++ /dev/null @@ -1,48 +0,0 @@ - -/*************************************************************************** - * edit_data.tpl - * ------------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 55 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:55 - * - ***************************************************************************/ - - -

    {L_XS_EDIT_STYLES_DATA}

    - -

    {L_XS_EDITDATA_EXPLAIN}

    - -
    {S_HIDDEN_FIELDS} - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_EDIT_STYLES_DATA}
    {L_XS_EDITDATA_VAR}{L_XS_EDITDATA_VALUE}{L_XS_EDITDATA_COMMENT}
    {row.TEXT}:
    {row.EXPLAIN}
     
    -
    -
    \ No newline at end of file diff --git a/phpBB2/xs_mod/tpl/edit_data_list.tpl b/phpBB2/xs_mod/tpl/edit_data_list.tpl deleted file mode 100644 index aaa51f0..0000000 --- a/phpBB2/xs_mod/tpl/edit_data_list.tpl +++ /dev/null @@ -1,38 +0,0 @@ - -/*************************************************************************** - * edit_data_list.tpl - * ------------------ - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 55 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:55 - * - ***************************************************************************/ - - -

    {L_XS_EDIT_STYLES_DATA}

    - -

    {L_XS_EDITDATA_EXPLAIN}

    - - - - - - - - - - - - - - - - - -
    {L_XS_EDIT_STYLES_DATA}
    {L_XS_TEMPLATE}{L_XS_STYLES} 
    {styles.TPL}{styles.STYLE}{L_XS_EDIT_LC}
    -
    \ No newline at end of file diff --git a/phpBB2/xs_mod/tpl/edit_file.tpl b/phpBB2/xs_mod/tpl/edit_file.tpl deleted file mode 100644 index c80a2fc..0000000 --- a/phpBB2/xs_mod/tpl/edit_file.tpl +++ /dev/null @@ -1,149 +0,0 @@ - -/*************************************************************************** - * edit_file.tpl - * ------------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 72 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:54 - * - ***************************************************************************/ - - - - -

    {L_XS_EDIT_TEMPLATES}

    - -

    {L_XS_EDIT_TEMPLATE_COMMENT2}

    - -
    {S_HIDDEN_FIELDS}{S_FILTER} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_FILEEDIT_EDIT_NAME} {FULLFILE}
    - {L_XS_FILEEDIT_LOCATION} - - {tree.SEPARATOR} - {tree.ITEM} - - / {FILE} -   - | -   - [{L_XS_FILEEDIT_RELOAD_LC}] - [{L_XS_FILEEDIT_DOWNLOAD_LC}] -
    {L_XS_FILEEDIT_FUNCTIONS}
    - {L_XS_FILEEDIT_REPLACE1}{L_XS_FILEEDIT_REPLACE2} [{L_XS_FILEEDIT_REPLACE_FIRST_LC}] [{L_XS_FILEEDIT_REPLACE_ALL_LC}] [{L_XS_FILEEDIT_REPLACE_UNDO_LC}]
    -
    {L_XS_FILEEDIT_BACKUPS}
    - [{L_XS_FILEEDIT_BACKUPS_SAVE_LC}]
    - - {backup.TIME} [{L_XS_FILEEDIT_BACKUPS_SHOW_LC}] [{L_XS_FILEEDIT_BACKUPS_RESTORE_LC}] [{L_XS_FILEEDIT_BACKUPS_DOWNLOAD_LC}] [{L_XS_FILEEDIT_BACKUPS_DELETE_LC}]
    - -
    {L_XS_FILEEDIT_UPLOAD}
    - {L_XS_FILEEDIT_UPLOAD_FILE} -
    -
    -
    diff --git a/phpBB2/xs_mod/tpl/export.tpl b/phpBB2/xs_mod/tpl/export.tpl deleted file mode 100644 index d52c2a9..0000000 --- a/phpBB2/xs_mod/tpl/export.tpl +++ /dev/null @@ -1,40 +0,0 @@ - -/*************************************************************************** - * export.tpl - * ---------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 55 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:54 - * - ***************************************************************************/ - - -

    {L_XS_EXPORT_STYLE}

    - -

    {L_XS_EXPORT_STYLE_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - -
    {L_XS_EXPORT_STYLE}
    {L_XS_TEMPLATE}{L_XS_STYLES} 
    {styles.TPL}{styles.STYLES}{L_XS_EXPORT_STYLE_LC}
    -
    \ No newline at end of file diff --git a/phpBB2/xs_mod/tpl/export2.tpl b/phpBB2/xs_mod/tpl/export2.tpl deleted file mode 100644 index 777af79..0000000 --- a/phpBB2/xs_mod/tpl/export2.tpl +++ /dev/null @@ -1,99 +0,0 @@ - -/*************************************************************************** - * export2.tpl - * ----------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 72 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:55 - * - ***************************************************************************/ - - -

    {L_XS_EXPORT_STYLE}

    - -

    {L_XS_EXPORT_STYLE_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_TITLE}
    {L_XS_EXPORT_TPL_NAME}:
    {L_XS_EXPORT_STYLE_NAMES}: - - - -
    - -
    {L_XS_EXPORT_STYLE_NAME}: - - - -
    {L_XS_EXPORT_STYLE_COMMENT}:
    {L_XS_EXPORT_WHERE}: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_EXPORT_WHERE_DOWNLOAD}

    {L_XS_EXPORT_WHERE_STORE}
      {L_XS_EXPORT_WHERE_STORE_DIR}:

    {L_XS_EXPORT_WHERE_FTP}
      {L_XS_FTP_HOST}:
      {L_XS_FTP_LOGIN}:
      {L_XS_FTP_PASS}:
      {L_XS_FTP_REMOTEDIR}:
    {L_XS_EXPORT_FILENAME}:
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/xs_mod/tpl/export_data.tpl b/phpBB2/xs_mod/tpl/export_data.tpl deleted file mode 100644 index 183f14f..0000000 --- a/phpBB2/xs_mod/tpl/export_data.tpl +++ /dev/null @@ -1,40 +0,0 @@ - -/*************************************************************************** - * export_data.tpl - * --------------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 55 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:55 - * - ***************************************************************************/ - - -

    {L_XS_EXPORT_STYLES_DATA}

    - -

    {L_XS_EXPORT_STYLES_DATA_EXPLAIN2}

    - - - - - - - - - - - - - - - - - - - -
    {L_XS_EXPORT_STYLES_DATA}
    {L_XS_TEMPLATE}{L_XS_STYLES} 
    {styles.TPL}{styles.STYLES}{L_XS_EXPORT_STYLE_DATA_LC}
    -
    \ No newline at end of file diff --git a/phpBB2/xs_mod/tpl/export_data2.tpl b/phpBB2/xs_mod/tpl/export_data2.tpl deleted file mode 100644 index d55626e..0000000 --- a/phpBB2/xs_mod/tpl/export_data2.tpl +++ /dev/null @@ -1,42 +0,0 @@ - -/*************************************************************************** - * export_data2.tpl - * ---------------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 55 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:54 - * - ***************************************************************************/ - - -

    {L_XS_EXPORT_STYLES_DATA}

    - -

    {L_XS_EXPORT_STYLES_DATA_EXPLAIN2}

    {L_XS_EXPORT_STYLES_DATA_EXPLAIN3}

    - - -
    {S_HIDDEN_FIELDS} - - - - - - - - - - - - - - - - - -
    {L_XS_EXPORT_STYLES_DATA}
    {L_XS_STYLES}{L_XS_SELECT}
    {styles.STYLE}
    -
    -
    \ No newline at end of file diff --git a/phpBB2/xs_mod/tpl/frame_top.tpl b/phpBB2/xs_mod/tpl/frame_top.tpl deleted file mode 100644 index 651edab..0000000 --- a/phpBB2/xs_mod/tpl/frame_top.tpl +++ /dev/null @@ -1,57 +0,0 @@ - -/*************************************************************************** - * frame_top.tpl - * ------------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 72 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:55 - * - ***************************************************************************/ - - - - - - - - - - - - - - -
    - - - -
    - -[{left_nav.TEXT}] - -
    - -
    - - \ No newline at end of file diff --git a/phpBB2/xs_mod/tpl/frameset.tpl b/phpBB2/xs_mod/tpl/frameset.tpl deleted file mode 100644 index c2dc50b..0000000 --- a/phpBB2/xs_mod/tpl/frameset.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -/*************************************************************************** - * frameset.tpl - * ------------ - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 57 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:55 - * - ***************************************************************************/ - - - - - - - -{L_XS_CLICK_HERE_LC} - \ No newline at end of file diff --git a/phpBB2/xs_mod/tpl/ftp.tpl b/phpBB2/xs_mod/tpl/ftp.tpl deleted file mode 100644 index 6d78b82..0000000 --- a/phpBB2/xs_mod/tpl/ftp.tpl +++ /dev/null @@ -1,89 +0,0 @@ - -/*************************************************************************** - * ftp.tpl - * ------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 72 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:54 - * - ***************************************************************************/ - - -

    {L_XS_FTP_TITLE}

    - - -

    {L_XS_FTP_COMMENT1}

    - - -

    {L_XS_FTP_COMMENT2}

    - - - - - - - - - - - -
    {L_ERROR}
    - - - - - - - - - -
     
    {error.MSG}
     
    - - -
    {S_HIDDEN_FIELDS}{S_EXTRA_FIELDS} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_FTP_CONFIG} -
    {L_XS_FTP_SELECT_METHOD}: - {L_XS_FTP_SELECT_LOCAL}
    - {L_XS_FTP_SELECT_FTP}
    -
    {L_XS_FTP_SETTINGS}
    {L_XS_FTP_SETTINGS}
    {L_XS_FTP_HOST}{HOST_GUESS}:
    {L_XS_FTP_LOGIN}{LOGIN_GUESS}:
    {L_XS_FTP_PATH}{PATH_GUESS}:
    {L_XS_FTP_PASS}:
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/xs_mod/tpl/import.tpl b/phpBB2/xs_mod/tpl/import.tpl deleted file mode 100644 index a887686..0000000 --- a/phpBB2/xs_mod/tpl/import.tpl +++ /dev/null @@ -1,90 +0,0 @@ - -/*************************************************************************** - * import.tpl - * ---------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 72 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:55 - * - ***************************************************************************/ - - -

    {L_XS_IMPORT_STYLES}

    - -

    {L_XS_IMPORT_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_FILE}{L_XS_TEMPLATE}{L_XS_STYLES}{L_XS_UPLOAD_TIME}{L_XS_COMMENT}{L_XS_OPTIONS}
    {styles.FILE2}{styles.TEMPLATE}-{list.STYLE}
    {styles.DATE}-{styles.COMMENT}{styles.error.ERROR} - - [{L_XS_IMPORT_LC}] - [{L_XS_LIST_FILES_LC}] - - [{L_XS_DELETE_FILE_LC}] -
    {L_XS_IMPORT_NO_CACHED}
    - -
    - - - -
    - - - - - - - - - - - - - - - -
    {L_XS_ADD_STYLES}
    {L_XS_ADD_STYLES_WEB}: -
    {S_HIDDEN_FIELDS} - - -
    -
    {L_XS_ADD_STYLES_COPY}: -
    {S_HIDDEN_FIELDS} - - -
    -
    {L_XS_ADD_STYLES_UPLOAD}: -
    {S_HIDDEN_FIELDS} - - -
    -
    - -
    \ No newline at end of file diff --git a/phpBB2/xs_mod/tpl/import2.tpl b/phpBB2/xs_mod/tpl/import2.tpl deleted file mode 100644 index ad302d4..0000000 --- a/phpBB2/xs_mod/tpl/import2.tpl +++ /dev/null @@ -1,47 +0,0 @@ - -/*************************************************************************** - * import2.tpl - * ----------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 72 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:54 - * - ***************************************************************************/ - - -
    {S_RETURN} - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_IMPORT_TPL}
    {L_XS_IMPORT_TPL_COMMENT}

    {L_XS_IMPORT_TPL_FILENAME} {STYLE_FILENAME}
    {L_XS_IMPORT_TPL_TPLNAME} {STYLE_TEMPLATE}
    {L_XS_IMPORT_TPL_COMMENT2} {STYLE_COMMENT}
    {L_XS_IMPORT_SELECT_STYLES} - - - - - - -
        ()
    {L_XS_IMPORT_INSTALL_STYLE}     ()
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2/xs_mod/tpl/index.tpl b/phpBB2/xs_mod/tpl/index.tpl deleted file mode 100644 index 3555811..0000000 --- a/phpBB2/xs_mod/tpl/index.tpl +++ /dev/null @@ -1,98 +0,0 @@ - -/*************************************************************************** - * index.tpl - * --------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 72 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:55 - * - ***************************************************************************/ - - -

    {L_XS_TITLE}

    - -

    {L_XS_MAIN_COMMENT1}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_MAIN_TITLE}
    {L_XS_CONFIGURATION}:
    {L_XS_CONFIGURATION_EXPLAIN}
    [{L_XS_SET_CONFIGURATION_LC}]
    {L_XS_INSTALL_UNINSTALL_STYLES}
    {L_XS_INSTALL_STYLES}:
    {L_XS_INSTALL_STYLES_EXPLAIN}
    [{L_XS_INSTALL_STYLES_LC}]
    {L_XS_UNINSTALL_STYLES}:
    {L_XS_UNINSTALL_STYLES_EXPLAIN}
    [{L_XS_UNINSTALL_STYLES_LC}]
    {L_XS_MANAGE_STYLES}
    {L_XS_DEFAULT_STYLE}:
    {L_XS_DEFAULT_STYLE_EXPLAIN}
    [{L_XS_SET_DEFAULT_STYLE_LC}]
    {L_XS_MANAGE_CACHE}:
    {L_XS_MANAGE_CACHE_EXPLAIN}
    [{L_XS_MANAGE_CACHE_LC}]
    {L_XS_IMPORT_EXPORT_STYLES}
    {L_XS_MAIN_COMMENT2}
    {L_XS_IMPORT_STYLES}:
    {L_XS_IMPORT_STYLES_EXPLAIN}
    [{L_XS_IMPORT_STYLES_LC}]
    {L_XS_EXPORT_STYLES}:
    {L_XS_EXPORT_STYLES_EXPLAIN}
    [{L_XS_EXPORT_STYLES_LC}]
    {L_XS_CLONE_STYLES}:
    {L_XS_CLONE_STYLES_EXPLAIN}
    [{L_XS_CLONE_STYLES_LC}]
    {L_XS_EDIT_TEMPLATES}
    {L_XS_EDIT_TEMPLATES}:
    {L_XS_EDIT_TEMPLATES_EXPLAIN}
    [{L_XS_EDIT_TEMPLATES_LC}]
    {L_XS_EDIT_STYLES_DATA}:
    {L_XS_EDIT_STYLES_DATA_EXPLAIN}
    [{L_XS_EDIT_STYLES_DATA_LC}]
    {L_XS_EXPORT_STYLES_DATA}:
    {L_XS_EXPORT_STYLES_DATA_EXPLAIN}
    [{L_XS_EXPORT_STYLES_DATA_LC}]
    {L_XS_OTHER_FUNCTIONS}
    {L_XS_CHECK_FOR_UPDATES}:
    {L_XS_CHECK_FOR_UPDATES_EXPLAIN}
    [{L_XS_CHECK_FOR_UPDATES_LC}]
    - -
    - diff --git a/phpBB2/xs_mod/tpl/install.tpl b/phpBB2/xs_mod/tpl/install.tpl deleted file mode 100644 index e535f32..0000000 --- a/phpBB2/xs_mod/tpl/install.tpl +++ /dev/null @@ -1,45 +0,0 @@ - -/*************************************************************************** - * install.tpl - * ----------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 72 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:55 - * - ***************************************************************************/ - - -

    {L_XS_INSTALL_STYLES}

    - -

    {L_XS_INSTALL_STYLES_EXPLAIN2}

    - -
    {S_HIDDEN_FIELDS} - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_INSTALL_STYLES}
    {L_XS_TEMPLATE}{L_XS_STYLE}{L_XS_INSTALL}{L_XS_SELECT}
    {styles.STYLE}{styles.THEME}{L_XS_INSTALL_LC}
    -
    -
    \ No newline at end of file diff --git a/phpBB2/xs_mod/tpl/message.tpl b/phpBB2/xs_mod/tpl/message.tpl deleted file mode 100644 index 65d7473..0000000 --- a/phpBB2/xs_mod/tpl/message.tpl +++ /dev/null @@ -1,43 +0,0 @@ - -/*************************************************************************** - * message.tpl - * ----------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 72 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:54 - * - ***************************************************************************/ - - - - - - - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - -
     
    {MESSAGE_TEXT}
     
    - diff --git a/phpBB2/xs_mod/tpl/style_config.tpl b/phpBB2/xs_mod/tpl/style_config.tpl deleted file mode 100644 index 0e18ef2..0000000 --- a/phpBB2/xs_mod/tpl/style_config.tpl +++ /dev/null @@ -1,57 +0,0 @@ - -/*************************************************************************** - * style_config.tpl - * ---------------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 61 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:54 - * - ***************************************************************************/ - - -

    {L_XS_STYLE_CONFIGURATION}: {TPL}

    - -
    - - - - - - - - - - - - - - - -
    {item.cat.TEXT}
    {item.TEXT}
    {item.EXPLAIN}
    - - -     - - - - - -
    - - - -
    - - - - -
    {S_HIDDEN_FIELDS}
    -
    -
    - -
    diff --git a/phpBB2/xs_mod/tpl/styles.tpl b/phpBB2/xs_mod/tpl/styles.tpl deleted file mode 100644 index dab7b66..0000000 --- a/phpBB2/xs_mod/tpl/styles.tpl +++ /dev/null @@ -1,108 +0,0 @@ - -/*************************************************************************** - * styles.tpl - * ---------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 55 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:54 - * - ***************************************************************************/ - - -

    {L_XS_DEF_TITLE}

    - -

    {L_XS_DEF_EXPLAIN}

    - - - - - - - - - -
    {L_XS_STYLES_USERS}
    - - - - - - - - - - -
    {user.NUM}: [{user.ID}] {user.NAME}
    -
    -
    - - - - - - - - - - - - - - - - - - - - -
    {L_XS_ID}{L_XS_STYLE}{L_XS_TEMPLATE}{L_XS_USERS}{L_XS_OPTIONS}
    {styles.ID}{styles.STYLE}{styles.TEMPLATE}{styles.TOTAL} - - - - [{L_XS_STYLES_NO_OVERRIDE}] - - - [{L_XS_STYLES_DO_OVERRIDE}] - - - - [{L_XS_STYLES_SET_DEFAULT}] - - [{L_XS_STYLES_MAKE_PUBLIC}] - - - [{L_XS_STYLES_MAKE_ADMIN}] - - -
    - [{L_XS_STYLES_SWITCH_ALL}] -
    - -
    {S_HIDDEN_FIELDS} - -
    - - -   - -
    - -
    diff --git a/phpBB2/xs_mod/tpl/uninstall.tpl b/phpBB2/xs_mod/tpl/uninstall.tpl deleted file mode 100644 index 8b5164e..0000000 --- a/phpBB2/xs_mod/tpl/uninstall.tpl +++ /dev/null @@ -1,77 +0,0 @@ - -/*************************************************************************** - * uninstall.tpl - * ------------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 72 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:55 - * - ***************************************************************************/ - - -

    {L_XS_UNINSTALL_STYLES}

    - -

    {L_XS_UNINSTALL_STYLES_EXPLAIN2}

    - - - - - - - - - - - - - -
    {L_Information}
    - - - - - - - - - -
     
    {L_XS_STYLE_REMOVED}
     
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_UNINSTALL_STYLES}
    {L_XS_TEMPLATE}{L_XS_STYLE}{L_XS_UNINSTALL}{L_XS_REMOVE_FILES}
    {styles.TPL}{styles.item.THEME}{L_XS_UNINSTALL_LC}{L_XS_UNINSTALL2_LC} 
    -
    \ No newline at end of file diff --git a/phpBB2/xs_mod/tpl/update.tpl b/phpBB2/xs_mod/tpl/update.tpl deleted file mode 100644 index 6e97903..0000000 --- a/phpBB2/xs_mod/tpl/update.tpl +++ /dev/null @@ -1,52 +0,0 @@ - -/*************************************************************************** - * update.tpl - * ---------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 55 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:54 - * - ***************************************************************************/ - - -

    {L_XS_UPDATES}

    - -

    {L_XS_UPDATES_COMMENT}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_UPDATES}
    {L_XS_UPDATE_INFO1}
    {L_XS_UPDATE_NAME}{L_XS_UPDATE_TYPE}{L_XS_UPDATE_CURRENT_VERSION}
    {row.NAME}{row.TYPE}{row.VERSION}
    {L_XS_UPDATE_TIMEOUT}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2/xs_mod/tpl/update2.tpl b/phpBB2/xs_mod/tpl/update2.tpl deleted file mode 100644 index 42e6cea..0000000 --- a/phpBB2/xs_mod/tpl/update2.tpl +++ /dev/null @@ -1,60 +0,0 @@ - -/*************************************************************************** - * update2.tpl - * ----------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 55 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:55 - * - ***************************************************************************/ - - -

    {L_XS_UPDATES}

    - -

    {L_XS_UPDATES_COMMENT2}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_UPDATE_NAME}{L_XS_UPDATE_TYPE}{L_XS_UPDATE_CURRENT_VERSION}{L_XS_UPDATE_LATEST_VERSION}{L_XS_UPDATE_DOWNLOADINFO}{L_XS_UPDATE_FILEINFO}
    {row.ITEM}{row.TYPE}{row.VERSION}{row.update.VERSION} - [{L_XS_DOWNLOAD_LC}] -   - [{L_XS_IMPORT_LC}] - [{L_XS_INFO_LC}] {row.noupdate.MESSAGE}[{L_XS_INFO_LC}] {row.error.ERROR} 
    {COUNT_TOTAL}, {COUNT_ERROR}, {COUNT_UPDATE}
    - -
    diff --git a/phpBB2/xs_mod/tpl/xs_footer.tpl b/phpBB2/xs_mod/tpl/xs_footer.tpl deleted file mode 100644 index 6c8cc65..0000000 --- a/phpBB2/xs_mod/tpl/xs_footer.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -/*************************************************************************** - * xs_footer.tpl - * ------------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 72 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:55 - * - ***************************************************************************/ - - - - - - -
    Powered by phpBB © phpBB Group and by eXtreme Styles mod © Vjacheslav Trushkin.
    - - - \ No newline at end of file diff --git a/phpBB2/xs_mod/tpl/xs_header.tpl b/phpBB2/xs_mod/tpl/xs_header.tpl deleted file mode 100644 index 1d2be23..0000000 --- a/phpBB2/xs_mod/tpl/xs_header.tpl +++ /dev/null @@ -1,45 +0,0 @@ - -/*************************************************************************** - * xs_header.tpl - * ------------- - * copyright : (C) 2003 - 2005 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.3.1 - * - * file revision : 72 - * project revision : 78 - * last modified : 05 Dec 2005 13:54:54 - * - ***************************************************************************/ - - - - - - - - - - - - ', - 'S_HIDDEN_FIELDS' => '', - )); - -if(!defined('NO_XS_HEADER')) -{ - $template->set_filenames(array( - 'xs_header' => XS_TPL_PATH . 'xs_header.tpl', - 'xs_footer' => XS_TPL_PATH . 'xs_footer.tpl', - )); - $template->preparse = 'xs_header'; - $template->postparse = 'xs_footer'; - $template->assign_block_vars('nav_left',array('ITEM' => '' . $lang['xs_menu'] . '')); -} - - -header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT'); -header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); - -// -// Check compatibility with mods -// -if(defined('CACHE_THEMES') && @function_exists('cache_themes')) -{ - define('XS_MODS_CATEGORY_HIERARCHY', true); -} -if(isset($theme['theme_public'])) -{ - define('XS_MODS_ADMIN_TEMPLATES', true); -} - - -// -// Get FTP configuration -// -function get_ftp_config($action, $post = array(), $allow_local = false, $show_error = '') -{ - global $template, $board_config, $db, $lang, $HTTP_POST_VARS, $HTTP_SERVER_VARS; - $board_config['xs_ftp_local'] = false; - // check if ftp can be used - if(!@function_exists('ftp_connect')) - { - if($allow_local && xs_dir_writable('../templates/')) - { - $board_config['xs_ftp_local'] = true; - return true; - } - xs_error($lang['xs_ftp_error_fatal']); - } - // check if we have configuration - if(!empty($HTTP_POST_VARS['get_ftp_config'])) - { - $vars = array('xs_ftp_host', 'xs_ftp_login', 'xs_ftp_path'); - for($i=0; $isql_query($sql); - } - } - $board_config['xs_ftp_pass'] = stripslashes($HTTP_POST_VARS['xs_ftp_pass']); - $board_config['xs_ftp_local'] = empty($HTTP_POST_VARS['xs_ftp_local']) ? false : true; - return true; - } - // check ftp configuration - $xs_ftp_host = $board_config['xs_ftp_host']; - if(empty($xs_ftp_host)) - { - $str = $HTTP_SERVER_VARS['HTTP_HOST']; - $template->assign_vars(array( - 'HOST_GUESS' => str_replace(array('{HOST}', '{CLICK}'), array($str, 'document.ftp.xs_ftp_host.value=\''.$str.'\''), $lang['xs_ftp_host_guess']) - )); - } - $dir = getcwd(); - $xs_ftp_login = $board_config['xs_ftp_login']; - if(empty($xs_ftp_login)) - { - if(substr($dir, 0, 6) === '/home/') - { - $str = substr($dir, 6); - $pos = strpos($str, '/'); - if($pos) - { - $str = substr($str, 0, $pos); - $template->assign_vars(array( - 'LOGIN_GUESS' => str_replace(array('{LOGIN}', '{CLICK}'), array($str, 'document.ftp.xs_ftp_login.value=\''.$str.'\''), $lang['xs_ftp_login_guess']) - )); - } - } - } - $xs_ftp_path = $board_config['xs_ftp_path']; - if(empty($xs_ftp_path)) - { - if(substr($dir, 0, 6) === '/home/'); - $str = substr($dir, 6); - $pos = strpos($str, '/'); - if($pos) - { - $str = substr($str, $pos + 1); - $pos = strrpos($str, 'admin'); - if($pos) - { - $str = substr($str, 0, $pos-1); - $template->assign_vars(array( - 'PATH_GUESS' => str_replace(array('{PATH}', '{CLICK}'), array($str, 'document.ftp.xs_ftp_path.value=\''.$str.'\''), $lang['xs_ftp_path_guess']) - )); - } - } - } - if($allow_local && xs_dir_writable('../templates/')) - { - $template->assign_block_vars('xs_ftp_local', array()); - } - else - { - $template->assign_block_vars('xs_ftp_nolocal', array()); - } - $str = ''; - foreach($post as $var => $value) - { - $str .= ''; - } - $template->assign_vars(array( - 'FORM_ACTION' => $action, - 'S_EXTRA_FIELDS' => $str, - 'XS_FTP_HOST' => $xs_ftp_host, - 'XS_FTP_LOGIN' => $xs_ftp_login, - 'XS_FTP_PATH' => $xs_ftp_path, - )); - if($show_error) - { - $template->assign_block_vars('error', array('MSG' => $show_error)); - } - $template->set_filenames(array('config' => XS_TPL_PATH . 'ftp.tpl')); - $template->pparse('config'); - return false; -} - -// connect ftp -function xs_ftp_connect($action, $post = array(), $allow_local = false) -{ - global $ftp, $board_config, $HTTP_POST_VARS, $phpEx, $lang, $template; - $HTTP_POST_VARS['get_ftp_config'] = ''; - if($allow_local && !empty($board_config['xs_ftp_local'])) - { - $ftp = XS_FTP_LOCAL; - return true; - } - $ftp = @ftp_connect($board_config['xs_ftp_host']); - if(!$ftp) - { - get_ftp_config($action, $post, $allow_local, str_replace('{HOST}', $board_config['xs_ftp_host'], $lang['xs_ftp_error_connect'])); - } - $res = @ftp_login($ftp, $board_config['xs_ftp_login'], $board_config['xs_ftp_pass']); - if(!$res) - { - get_ftp_config($action, $post, $allow_local, $lang['xs_ftp_error_login']); - } - $res = @ftp_chdir($ftp, $board_config['xs_ftp_path']); - if(!$res) - { - get_ftp_config($action, $post, $allow_local, str_replace('{DIR}', $board_config['xs_ftp_path'], $lang['xs_ftp_error_chdir'])); - } - // check current directory - $current_dir = @ftp_pwd($ftp); - $list = @ftp_nlist($ftp, $current_dir); - for($i=0; $i $tpl, - 'styles' => $items, - 'date' => @filemtime($filename), - 'comment' => $comment, - 'offset' => $header_size, - 'filename' => $filename, - 'filesize' => $filesize, - ); -} - - -// check if cache is writable -function xs_check_cache($filename) -{ - // check if filename is valid - global $str, $template, $lang; - if(substr($filename, 0, strlen($template->cachedir)) !== $template->cachedir) - { - $str .= $lang['xs_check_filename'] . "
    \n"; - return false; - } - else - { - // try to open file - $file = @fopen($filename, 'w'); - if(!$file) - { - $str .= sprintf($lang['xs_check_openfile1'], $filename) . "
    \n"; - // try to create directories - $dir = substr($filename, strlen($template->cachedir), strlen($filename)); - $dirs = explode('/', $dir); - $path = $template->cachedir; - @umask(0); - if(!@is_dir($path)) - { - $str .= sprintf($lang['xs_check_nodir'], $path) . "
    \n"; - if(!@mkdir($path)) - { - $str .= sprintf($lang['xs_check_nodir2'], $path) . "
    \n"; - return false; - } - else - { - $str .= sprintf($lang['xs_check_createddir'], $path) . "
    \n"; - @chmod($path, 0777); - } - } - else - { - $str .= sprintf($lang['xs_check_dir'] , $path) . "
    \n"; - } - if(count($dirs) > 0) - for($i=0; $i0) - { - $path .= '/'; - } - $path .= $dirs[$i]; - if(!@is_dir($path)) - { - $str .= sprintf($lang['xs_check_nodir'], $path) . "
    \n"; - if(!@mkdir($path)) - { - $str .= sprintf($lang['xs_check_nodir2'], $path) . "
    \n"; - return false; - } - else - { - $str .= sprintf($lang['xs_check_createddir'], $path) . "
    \n"; - @chmod($path, 0777); - } - } - else - { - $str .= sprintf($lang['xs_check_dir'] , $path) . "
    \n"; - } - } - // try to open file again after directories were created - $file = @fopen($filename, 'w'); - } - if(!$file) - { - $str .= sprintf($lang['xs_check_openfile2'], $filename) . "
    \n"; - return false; - } - $str .= sprintf($lang['xs_check_ok'], $filename) . "
    \n"; - fputs($file, ' '); - fclose($file); - @chmod($filename, 0777); - return true; - } -} - -// run ftp commands -function ftp_myexec($list) -{ - global $ftp, $ftp_error, $ftp_log, $ftp_host, $ftp_login, $ftp_pass, $lang; - $ftp_error = ''; - $ftp_log = array(); - if(empty($ftp)) - { - // checking ftp extensions - if(!@function_exists('ftp_connect')) - { - $ftp_log[] = $ftp_error = $lang['xs_ftp_log_disabled']; - return false; - } - // connect to server - $ftp_log[] = str_replace('{HOST}', "{$ftp_login}:*@{$ftp_host}", $lang['xs_ftp_log_connecting']); - $ftp = @ftp_connect($ftp_host); - if(!$ftp) - { - $ftp_log[] = $ftp_error = str_replace('{HOST}', $ftp_host, $lang['xs_ftp_log_noconnect']); - return false; - } - $ftp_log[] = $lang['xs_ftp_log_connected']; - // logging in - $logged_in = @ftp_login($ftp, $ftp_login, $ftp_pass); - if(!$logged_in) - { - $ftp_log[] = $ftp_error = str_replace('{USER}', $ftp_login, $lang['xs_ftp_log_nologin']); - @ftp_close($ftp); - return false; - } - $ftp_log[] = $lang['xs_ftp_log_loggedin']; - } - if(!ftp_myexec2($ftp, $list)) - { - @ftp_close($ftp); - return false; - } - @ftp_close($ftp); - $ftp_log[] = $lang['xs_ftp_log_end']; - return true; -} - -// remove all files via ftp -function ftp_remove_all($ftp) -{ - // get current directory - $root_dir = @ftp_pwd($ftp); - // get list of files - $files = @ftp_nlist($ftp, $root_dir); - // remove files/directories - for($i=0; $isql_query($sql)) - { - return false; - } - $row = $db->sql_fetchrow($result); - if(!empty($row['themes_id'])) - { - return false; - } - $vars = array(); - $values = array(); - foreach($data as $var => $value) - { - $vars[] = xs_sql($var); - $values[] = xs_sql(stripslashes($value)); - } - $sql = "INSERT INTO " . THEMES_TABLE . " (" . implode(', ', $vars) . ") VALUES ('" . implode("', '", $values) . "')"; - if(!$result = $db->sql_query($sql)) - { - return false; - } - return true; -} - -// generate theme_info.cfg for template -function xs_generate_themeinfo($theme_rowset, $export, $exportas, $total) -{ - global $HTTP_POST_VARS; - $vars = array('template_name', 'style_name', 'head_stylesheet', 'body_background', 'body_bgcolor', 'body_text', 'body_link', 'body_vlink', 'body_alink', 'body_hlink', 'tr_color1', 'tr_color2', 'tr_color3', 'tr_class1', 'tr_class2', 'tr_class3', 'th_color1', 'th_color2', 'th_color3', 'th_class1', 'th_class2', 'th_class3', 'td_color1', 'td_color2', 'td_color3', 'td_class1', 'td_class2', 'td_class3', 'fontface1', 'fontface2', 'fontface3', 'fontsize1', 'fontsize2', 'fontsize3', 'fontcolor1', 'fontcolor2', 'fontcolor3', 'span_class1', 'span_class2', 'span_class3', 'img_size_poll', 'img_size_privmsg'); - $theme_data = ''; // Done this to prevent highlighting editors getting confused! - return $theme_data; -} - -// Checks if directory is writable -function xs_dir_writable($dir) -{ - $filename = 'tmp_' . time(); - $f = @fopen($dir . $filename, 'wb'); - if($f) - { - fclose($f); - @unlink($dir . $filename); - return true; - } - return false; -} - -// Write to file. Create directory if necessary -function xs_write_file($filename, $data) -{ - $f = @fopen($filename, 'wb'); - if(!$f) - { - // try to create directories - $pos = strrpos($filename, '/'); - if(!$pos) - { - return false; - } - $dir = substr($filename, 0, $pos); - xs_create_dir($dir); - $f = @fopen($filename, 'wb'); - if(!$f) - { - return false; - } - } - fwrite($f, $data); - fclose($f); - @chmod($filename, 0777); - return true; -} - -// Create local directory -function xs_create_dir($dir) -{ - if(!$dir) - { - return false; - } - // remove trailing / - if(substr($dir, strlen($dir) - 1) === '/') - { - $dir = substr($dir, 0, strlen($dir) - 1); - if(!$dir) - { - return false; - } - } - if($dir === '.' || $dir === '..') - { - return false; - } - $res = @mkdir($dir, 0777); - if($res) - { - return true; - } - // try to create previous directory - $pos = strrpos($dir, '/'); - if(!$pos) - { - return false; - } - $dir1 = substr($dir, 0, $pos); - $dir2 = substr($dir, $pos+1); - if($dir2 === '.' || $dir2 === '..') - { - return false; - } - if(!xs_create_dir($dir1)) - { - return false; - } - $res = @mkdir($dir2, 0777); - return $res ? true : false; -} - -// replacement for in_array() (because of compatibility problems) -function xs_in_array($needle, $haystack) -{ - for($i=0; $iset_filenames(array('errormsg' => XS_TPL_PATH . 'message.tpl')); - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Error'], - 'MESSAGE_TEXT' => $error - )); - $template->pparse('errormsg'); - xs_exit(); -} - -// show message and exit -function xs_message($title, $message) -{ - global $template; - $template->set_filenames(array('msg' => XS_TPL_PATH . 'message.tpl')); - $template->assign_vars(array( - 'MESSAGE_TITLE' => $title, - 'MESSAGE_TEXT' => $message - )); - $template->pparse('msg'); - xs_exit(); -} - -// pack style to .style -function pack_style($name, $newname, $themes, $comment) -{ - /* - header format (v0.01): - - header - - header size (4 bytes) - - file size (4 bytes) - - number of entries (1 byte) - - entries sizes (number_of_entries bytes) - - entries - - footer - - gzcompressed tar of style (no crc check in tar) - - entries: - - template name - - comment - - style names - */ - global $phpbb_root_path, $template_dir; - $data = gzcompress(pack_dir($phpbb_root_path . $template_dir . $name, '', $name, $newname)); - $items_data = chr(strlen($newname)) . chr(strlen($comment)); - $items_str = $newname . $comment; - for($i=0; $i $base_dir, - 'mode' => '40777', - 'uid' => '0', - 'gid' => '0', - 'size' => decoct(0), - 'mtime' => decoct(@filemtime($dir)), - 'checksum' => '0', // ignore checksum - 'typeflag' => '5', - 'link' => '', - 'magic' => "ustar", - 'version' => '', - 'uname' => 'user', - 'gname' => 'group', - 'devmajor' => '', - 'devminor' => '', - 'prefix' => '', - 'extra' => '' - ); - $header_str = pack(TAR_HEADER_PACK, $header['filename'], $header['mode'], $header['uid'], $header['gid'], $header['size'], $header['mtime'], $header['checksum'], $header['typeflag'], $header['linkname'], $header['magic'], $header['version'], $header['uname'], $header['gname'], $header['devmajor'], $header['devminor'], $header['prefix'], $header['extra']); - $file_str = ''; - $extra_str = ''; - $str .= $header_str . $file_str . $extra_str; - // add all files - for($i=0; $i'; - if($header['filename'] === './overall_header.tpl') - { - echo 'overall_header.tpl:

    ', nl2br(htmlspecialchars($file_str)), '


    '; - }*/ - $size = strlen($file_str); - $header['size'] = decoct($size); - $header['typeflag'] = '0'; - $header['mode'] = '100666'; - $full_size = floor(($size + 511) / 512) * 512; - $extra_str = $full_size > $size ? str_repeat("\0", $full_size - $size) : ''; - $header_str = pack(TAR_HEADER_PACK, $header['filename'], $header['mode'], $header['uid'], $header['gid'], $header['size'], $header['mtime'], $header['checksum'], $header['typeflag'], $header['linkname'], $header['magic'], $header['version'], $header['uname'], $header['gname'], $header['devmajor'], $header['devminor'], $header['prefix'], $header['extra']); - $str .= $header_str . $file_str . $extra_str; - } - // add all directories - for($i=0; $isql_query($sql); -} - -// send file -function xs_download_file($filename, $content, $content_type = '') -{ - if(empty($content_type)) - { - $content_type = 'application/unknown'; - } - header('Content-Type: ' . $content_type); - header('Content-Length: ' . strlen($content)); - header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT'); - if($filename) - { - header('Content-Disposition: inline; filename="' . $filename . '"'); - } - header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); - header('Pragma: public'); - echo $content; -} - -// strip slashes for sql -function xs_sql($sql, $stip = false) -{ - if($strip) - { - $sql = stripslashes($sql); - } - return str_replace("'", "''", $sql); -} - -// clean template name -function xs_tpl_name($name) -{ - return str_replace(array('\\', '/', "'", '"'), array('','','',''), $name); -} - -// close database and maybe do some other stuff -function xs_exit() -{ - global $db; - if(isset($db)) - { - $db->sql_close(); - } - exit; -} - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_include_import.php b/phpBB2_old/admin/xs_include_import.php deleted file mode 100644 index fd57285..0000000 --- a/phpBB2_old/admin/xs_include_import.php +++ /dev/null @@ -1,121 +0,0 @@ - 'upload', - 'local' => $items[$i]['tmp'], - 'remote' => $items[$i]['file'] - ); - } - } - return $arr; -} - -function generate_actions_dirs($dir = '') -{ - global $dirs; - $arr = array(); - if($dir && substr($dir, strlen($dir) - 1) !== '/') - { - $dir .= '/'; - } - if($dir) - { - // remove trailing / - $pos = strrpos($dir, '/'); - $str = $pos === strlen($dir) - 1 ? substr($dir, 0, $pos) : $dir; - // get last directory name - $pos = strrpos($str, '/'); - $str = $pos ? substr($str, $pos + 1) : $str; - $arr[] = array( - 'command' => 'mkdir', - 'dir' => $str, - 'ignore' => true - ); - $arr[] = array( - 'command' => 'chdir', - 'dir' => $str - ); - } - $arr[] = array( - 'command' => 'exec', - 'list' => generate_actions_files($dir) - ); - // create subdirectories - $len = strlen($dir); - for($i=0; $i 'exec', - 'list' => generate_actions_dirs($dirs[$i]) - ); - } - } - } - return $arr; -} - -function generate_style_name($str) -{ - $str = 'style_' . $str . '_%02d' . STYLE_EXTENSION; - $num = 0; - $found = true; - while($found) - { - $filename = sprintf($str, $num); - $found = @file_exists(XS_TEMP_DIR.$filename); - $num ++; - } - return $filename; -} - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_include_import2.php b/phpBB2_old/admin/xs_include_import2.php deleted file mode 100644 index ed3fbb4..0000000 --- a/phpBB2_old/admin/xs_include_import2.php +++ /dev/null @@ -1,509 +0,0 @@ -
    ' . $lang['xs_import_back']); -} -if($header['filesize'] != filesize($file)) -{ - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_style_header_error_incomplete'] . '

    ' . $lang['xs_import_back']); -} -$f = @fopen($file, 'rb'); -if(!$f) -{ - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_error_cannot_open'] . '

    ' . $lang['xs_import_back']); -} -if($write_local) -{ - $write_local_dir .= $header['template'] . '/'; -} -fseek($f, $header['offset'], 0); -$str = fread($f, filesize($file) - $header['offset']); -fclose($f); -$str = @gzuncompress($str); -if($str === false || !strlen($str)) -{ - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_error_decompress_style'] . '

    ' . $lang['xs_import_back']); -} -// -// unpack tar file -// -$pos = 0; -$tmp_name = XS_TEMP_DIR . 'file_' . $filename . '_%02d.tmp'; -$tmp_count = 0; -$files = array(); // complete list of files -$list_data = array(); // result for list -$dirs = array(); // complete list of directories -$items = array(); // data -while($pos < strlen($str)) -{ - $data = unpack(TAR_HEADER_UNPACK, substr($str, $pos, 512)); - $pos += 512; - $data['filename'] = trim($data['prefix']) . trim($data['filename']); - if(substr($data['filename'], 0, 2) === './') - { - $data['filename'] = substr($data['filename'], 2); - } - if($write_local) - { - $save_filename = $write_local_dir . $data['filename']; - } - else - { - $pos1 = strrpos($data['filename'], '/'); - if($pos1) - { - $data['dir'] = substr($data['filename'], 0, $pos1); - $data['file'] = substr($data['filename'], $pos1 + 1); - } - else - { - $data['dir'] = ''; - $data['file'] = $data['filename']; - } - } - $data['size'] = octdec(trim($data['size'])); - $data['mtime'] = octdec(trim($data['mtime'])); - $data['typeflag'] = octdec(trim($data['typeflag'])); - if($data['typeflag'] === '5') - { - $data['size'] = 0; - if($write_local) - { - xs_create_dir($save_filename); - } - } - $data['offset'] = $pos; - $contents = $data['size'] > 0 ? substr($str, $pos, $data['size']) : ''; - $data['tmp'] = ''; - // adding to list - $is_file = true; - if(intval($data['typeflag']) == 5) - { - $is_file = false; - if($data['filename']) - { - $dirs[] = $data['filename']; - } - } - else - { - if($data['filename']) - { - if(!$list_only) - { - if($write_local) - { - $res = xs_write_file($save_filename, $contents); - if(!$res) - { - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error(str_replace('{FILE}', $save_filename, $lang['xs_error_cannot_create_file']) . '

    ' . $lang['xs_import_back']); - } - } - else - { - // write to temporary file - $tmp_count ++; - $data['tmp'] = sprintf($tmp_name, $tmp_count); - $f = @fopen($data['tmp'], 'wb'); - if(!$f) - { - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error(str_replace('{FILE}', $data['tmp'], $lang['xs_error_cannot_create_tmp']) . '

    ' . $lang['xs_import_back']); - } - fwrite($f, $contents); - fclose($f); - } - } - elseif(!empty($get_file) && $get_file === $data['filename']) - { - // show contents of file - $f = $data['filename']; - $ext = strtolower(substr($f, strlen($f) - 4)); - if(empty($HTTP_GET_VARS['get_content']) && xs_in_array($ext, $text_types)) - { - // show as text - $str = '
    ' . $lang['xs_import_list_contents'] . $f . ' [' . $lang['xs_import_download_lc'] . ']

    '; - $str .= ''; - $str .= '
    '; - xs_message($lang['Information'], $str); - } - else - { - $do_download = false; - $content_type = ''; - if(empty($HTTP_GET_VARS['get_content'])) - { - if($ext === '.gif') - { - $content_type = 'image/gif'; - } - elseif($ext === '.jpg' || $ext === '.jpe' || $ext === 'jpeg') - { - $content_type = 'image/jpeg'; - } - elseif($ext === '.png') - { - $content_type = 'image/png'; - } - else - { - $do_download = true; - } - } - else - { - $do_download = true; - } - xs_download_file($do_download ? basename($f) : '', $contents, $content_type); - xs_exit(); - } - } - else - { - $list_data[$data['filename']] = $data; - } - $files[] = $data['filename']; - } - } - if(empty($data['filename']) && $is_file) - { - $pos = strlen($str); - } - else - { - $pos += floor(($data['size'] + 511) / 512) * 512; - if($is_file) - { - $items[] = $data; - } - } -} -if($list_only) -{ - // show list of files. used for debug. - $str = '
    '; - // main data - $str .= $lang['xs_import_list_filename'] . $header['filename'] . '
    '; - $str .= $lang['xs_import_list_template'] . $header['template'] . '
    '; - $str .= $lang['xs_import_list_comment'] . $header['comment'] . '
    '; - $str .= $lang['xs_import_list_styles'] . implode(', ', $header['styles']) . '
    '; - ksort($list_data); - $str .= '
    ' . str_replace('{NUM}', count($list_data), $lang['xs_import_list_files']) . '
    '; - $str .= '
    - - - - - - -
    diff --git a/phpBB2_old/admin/admin_board.php b/phpBB2_old/admin/admin_board.php deleted file mode 100644 index 4d5fcc6..0000000 --- a/phpBB2_old/admin/admin_board.php +++ /dev/null @@ -1,329 +0,0 @@ -sql_query($sql)) -{ - message_die(CRITICAL_ERROR, "Could not query config information in admin_board", "", __LINE__, __FILE__, $sql); -} -else -{ - while( $row = $db->sql_fetchrow($result) ) - { - $config_name = $row['config_name']; - $config_value = $row['config_value']; - $default_config[$config_name] = isset($HTTP_POST_VARS['submit']) ? str_replace("'", "\'", $config_value) : $config_value; - - $new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name]; - - if ($config_name == 'cookie_name') - { - $cookie_name = str_replace('.', '_', $new['cookie_name']); - } - - if( isset($HTTP_POST_VARS['submit']) ) - { - $sql = "UPDATE " . CONFIG_TABLE . " SET - config_value = '" . str_replace("\'", "''", $new[$config_name]) . "' - WHERE config_name = '$config_name'"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Failed to update general configuration for $config_name", "", __LINE__, __FILE__, $sql); - } - } - } - - if( isset($HTTP_POST_VARS['submit']) ) - { - $message = $lang['Config_updated'] . "

    " . sprintf($lang['Click_return_config'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } -} - -$style_select = style_select($new['default_style'], 'default_style', "../templates"); -$lang_select = language_select($new['default_lang'], 'default_lang', "language"); -$timezone_select = tz_select($new['board_timezone'], 'board_timezone'); - -$disable_board_yes = ( $new['board_disable'] ) ? "checked=\"checked\"" : ""; -$disable_board_no = ( !$new['board_disable'] ) ? "checked=\"checked\"" : ""; - -$cookie_secure_yes = ( $new['cookie_secure'] ) ? "checked=\"checked\"" : ""; -$cookie_secure_no = ( !$new['cookie_secure'] ) ? "checked=\"checked\"" : ""; - -$html_tags = $new['allow_html_tags']; - -$override_user_style_yes = ( $new['override_user_style'] ) ? "checked=\"checked\"" : ""; -$override_user_style_no = ( !$new['override_user_style'] ) ? "checked=\"checked\"" : ""; - -$html_yes = ( $new['allow_html'] ) ? "checked=\"checked\"" : ""; -$html_no = ( !$new['allow_html'] ) ? "checked=\"checked\"" : ""; - -$bbcode_yes = ( $new['allow_bbcode'] ) ? "checked=\"checked\"" : ""; -$bbcode_no = ( !$new['allow_bbcode'] ) ? "checked=\"checked\"" : ""; - -$activation_none = ( $new['require_activation'] == USER_ACTIVATION_NONE ) ? "checked=\"checked\"" : ""; -$activation_user = ( $new['require_activation'] == USER_ACTIVATION_SELF ) ? "checked=\"checked\"" : ""; -$activation_admin = ( $new['require_activation'] == USER_ACTIVATION_ADMIN ) ? "checked=\"checked\"" : ""; - -$confirm_yes = ($new['enable_confirm']) ? 'checked="checked"' : ''; -$confirm_no = (!$new['enable_confirm']) ? 'checked="checked"' : ''; - -$board_email_form_yes = ( $new['board_email_form'] ) ? "checked=\"checked\"" : ""; -$board_email_form_no = ( !$new['board_email_form'] ) ? "checked=\"checked\"" : ""; - -$gzip_yes = ( $new['gzip_compress'] ) ? "checked=\"checked\"" : ""; -$gzip_no = ( !$new['gzip_compress'] ) ? "checked=\"checked\"" : ""; - -$privmsg_on = ( !$new['privmsg_disable'] ) ? "checked=\"checked\"" : ""; -$privmsg_off = ( $new['privmsg_disable'] ) ? "checked=\"checked\"" : ""; - -$prune_yes = ( $new['prune_enable'] ) ? "checked=\"checked\"" : ""; -$prune_no = ( !$new['prune_enable'] ) ? "checked=\"checked\"" : ""; - -$smile_yes = ( $new['allow_smilies'] ) ? "checked=\"checked\"" : ""; -$smile_no = ( !$new['allow_smilies'] ) ? "checked=\"checked\"" : ""; - -$sig_yes = ( $new['allow_sig'] ) ? "checked=\"checked\"" : ""; -$sig_no = ( !$new['allow_sig'] ) ? "checked=\"checked\"" : ""; - -$namechange_yes = ( $new['allow_namechange'] ) ? "checked=\"checked\"" : ""; -$namechange_no = ( !$new['allow_namechange'] ) ? "checked=\"checked\"" : ""; - -$avatars_local_yes = ( $new['allow_avatar_local'] ) ? "checked=\"checked\"" : ""; -$avatars_local_no = ( !$new['allow_avatar_local'] ) ? "checked=\"checked\"" : ""; -$avatars_remote_yes = ( $new['allow_avatar_remote'] ) ? "checked=\"checked\"" : ""; -$avatars_remote_no = ( !$new['allow_avatar_remote'] ) ? "checked=\"checked\"" : ""; -$avatars_upload_yes = ( $new['allow_avatar_upload'] ) ? "checked=\"checked\"" : ""; -$avatars_upload_no = ( !$new['allow_avatar_upload'] ) ? "checked=\"checked\"" : ""; - -$smtp_yes = ( $new['smtp_delivery'] ) ? "checked=\"checked\"" : ""; -$smtp_no = ( !$new['smtp_delivery'] ) ? "checked=\"checked\"" : ""; - -$template->set_filenames(array( - "body" => "admin/board_config_body.tpl") -); - -// -// Escape any quotes in the site description for proper display in the text -// box on the admin page -// -$new['site_desc'] = str_replace('"', '"', $new['site_desc']); -$new['sitename'] = str_replace('"', '"', strip_tags($new['sitename'])); -$template->assign_vars(array( - "S_CONFIG_ACTION" => append_sid("admin_board.$phpEx"), - - "L_YES" => $lang['Yes'], - "L_NO" => $lang['No'], - "L_CONFIGURATION_TITLE" => $lang['General_Config'], - "L_CONFIGURATION_EXPLAIN" => $lang['Config_explain'], - "L_GENERAL_SETTINGS" => $lang['General_settings'], - "L_SERVER_NAME" => $lang['Server_name'], - "L_SERVER_NAME_EXPLAIN" => $lang['Server_name_explain'], - "L_SERVER_PORT" => $lang['Server_port'], - "L_SERVER_PORT_EXPLAIN" => $lang['Server_port_explain'], - "L_SCRIPT_PATH" => $lang['Script_path'], - "L_SCRIPT_PATH_EXPLAIN" => $lang['Script_path_explain'], - "L_SITE_NAME" => $lang['Site_name'], - "L_SITE_DESCRIPTION" => $lang['Site_desc'], - "L_DISABLE_BOARD" => $lang['Board_disable'], - "L_DISABLE_BOARD_EXPLAIN" => $lang['Board_disable_explain'], - "L_ACCT_ACTIVATION" => $lang['Acct_activation'], - "L_NONE" => $lang['Acc_None'], - "L_USER" => $lang['Acc_User'], - "L_ADMIN" => $lang['Acc_Admin'], - "L_VISUAL_CONFIRM" => $lang['Visual_confirm'], - "L_VISUAL_CONFIRM_EXPLAIN" => $lang['Visual_confirm_explain'], - "L_COOKIE_SETTINGS" => $lang['Cookie_settings'], - "L_COOKIE_SETTINGS_EXPLAIN" => $lang['Cookie_settings_explain'], - "L_COOKIE_DOMAIN" => $lang['Cookie_domain'], - "L_COOKIE_NAME" => $lang['Cookie_name'], - "L_COOKIE_PATH" => $lang['Cookie_path'], - "L_COOKIE_SECURE" => $lang['Cookie_secure'], - "L_COOKIE_SECURE_EXPLAIN" => $lang['Cookie_secure_explain'], - "L_SESSION_LENGTH" => $lang['Session_length'], - "L_PRIVATE_MESSAGING" => $lang['Private_Messaging'], - "L_INBOX_LIMIT" => $lang['Inbox_limits'], - "L_SENTBOX_LIMIT" => $lang['Sentbox_limits'], - "L_SAVEBOX_LIMIT" => $lang['Savebox_limits'], - "L_DISABLE_PRIVATE_MESSAGING" => $lang['Disable_privmsg'], - "L_ENABLED" => $lang['Enabled'], - "L_DISABLED" => $lang['Disabled'], - "L_ABILITIES_SETTINGS" => $lang['Abilities_settings'], - "L_MAX_POLL_OPTIONS" => $lang['Max_poll_options'], - "L_FLOOD_INTERVAL" => $lang['Flood_Interval'], - "L_FLOOD_INTERVAL_EXPLAIN" => $lang['Flood_Interval_explain'], - "L_BOARD_EMAIL_FORM" => $lang['Board_email_form'], - "L_BOARD_EMAIL_FORM_EXPLAIN" => $lang['Board_email_form_explain'], - "L_TOPICS_PER_PAGE" => $lang['Topics_per_page'], - "L_POSTS_PER_PAGE" => $lang['Posts_per_page'], - "L_HOT_THRESHOLD" => $lang['Hot_threshold'], - "L_DEFAULT_STYLE" => $lang['Default_style'], - "L_OVERRIDE_STYLE" => $lang['Override_style'], - "L_OVERRIDE_STYLE_EXPLAIN" => $lang['Override_style_explain'], - "L_DEFAULT_LANGUAGE" => $lang['Default_language'], - "L_DATE_FORMAT" => $lang['Date_format'], - "L_SYSTEM_TIMEZONE" => $lang['System_timezone'], - "L_ENABLE_GZIP" => $lang['Enable_gzip'], - "L_ENABLE_PRUNE" => $lang['Enable_prune'], - "L_ALLOW_HTML" => $lang['Allow_HTML'], - "L_ALLOW_BBCODE" => $lang['Allow_BBCode'], - "L_ALLOWED_TAGS" => $lang['Allowed_tags'], - "L_ALLOWED_TAGS_EXPLAIN" => $lang['Allowed_tags_explain'], - "L_ALLOW_SMILIES" => $lang['Allow_smilies'], - "L_SMILIES_PATH" => $lang['Smilies_path'], - "L_SMILIES_PATH_EXPLAIN" => $lang['Smilies_path_explain'], - "L_ALLOW_SIG" => $lang['Allow_sig'], - "L_MAX_SIG_LENGTH" => $lang['Max_sig_length'], - "L_MAX_SIG_LENGTH_EXPLAIN" => $lang['Max_sig_length_explain'], - "L_ALLOW_NAME_CHANGE" => $lang['Allow_name_change'], - "L_AVATAR_SETTINGS" => $lang['Avatar_settings'], - "L_ALLOW_LOCAL" => $lang['Allow_local'], - "L_ALLOW_REMOTE" => $lang['Allow_remote'], - "L_ALLOW_REMOTE_EXPLAIN" => $lang['Allow_remote_explain'], - "L_ALLOW_UPLOAD" => $lang['Allow_upload'], - "L_MAX_FILESIZE" => $lang['Max_filesize'], - "L_MAX_FILESIZE_EXPLAIN" => $lang['Max_filesize_explain'], - "L_MAX_AVATAR_SIZE" => $lang['Max_avatar_size'], - "L_MAX_AVATAR_SIZE_EXPLAIN" => $lang['Max_avatar_size_explain'], - "L_AVATAR_STORAGE_PATH" => $lang['Avatar_storage_path'], - "L_AVATAR_STORAGE_PATH_EXPLAIN" => $lang['Avatar_storage_path_explain'], - "L_AVATAR_GALLERY_PATH" => $lang['Avatar_gallery_path'], - "L_AVATAR_GALLERY_PATH_EXPLAIN" => $lang['Avatar_gallery_path_explain'], - "L_COPPA_SETTINGS" => $lang['COPPA_settings'], - "L_COPPA_FAX" => $lang['COPPA_fax'], - "L_COPPA_MAIL" => $lang['COPPA_mail'], - "L_COPPA_MAIL_EXPLAIN" => $lang['COPPA_mail_explain'], - "L_EMAIL_SETTINGS" => $lang['Email_settings'], - "L_ADMIN_EMAIL" => $lang['Admin_email'], - "L_EMAIL_SIG" => $lang['Email_sig'], - "L_EMAIL_SIG_EXPLAIN" => $lang['Email_sig_explain'], - "L_USE_SMTP" => $lang['Use_SMTP'], - "L_USE_SMTP_EXPLAIN" => $lang['Use_SMTP_explain'], - "L_SMTP_SERVER" => $lang['SMTP_server'], - "L_SMTP_USERNAME" => $lang['SMTP_username'], - "L_SMTP_USERNAME_EXPLAIN" => $lang['SMTP_username_explain'], - "L_SMTP_PASSWORD" => $lang['SMTP_password'], - "L_SMTP_PASSWORD_EXPLAIN" => $lang['SMTP_password_explain'], - "L_SUBMIT" => $lang['Submit'], - "L_RESET" => $lang['Reset'], - - "SERVER_NAME" => $new['server_name'], - "SCRIPT_PATH" => $new['script_path'], - "SERVER_PORT" => $new['server_port'], - "SITENAME" => $new['sitename'], - "SITE_DESCRIPTION" => $new['site_desc'], - "S_DISABLE_BOARD_YES" => $disable_board_yes, - "S_DISABLE_BOARD_NO" => $disable_board_no, - "ACTIVATION_NONE" => USER_ACTIVATION_NONE, - "ACTIVATION_NONE_CHECKED" => $activation_none, - "ACTIVATION_USER" => USER_ACTIVATION_SELF, - "ACTIVATION_USER_CHECKED" => $activation_user, - "ACTIVATION_ADMIN" => USER_ACTIVATION_ADMIN, - "ACTIVATION_ADMIN_CHECKED" => $activation_admin, - "CONFIRM_ENABLE" => $confirm_yes, - "CONFIRM_DISABLE" => $confirm_no, - "ACTIVATION_NONE_CHECKED" => $activation_none, - "BOARD_EMAIL_FORM_ENABLE" => $board_email_form_yes, - "BOARD_EMAIL_FORM_DISABLE" => $board_email_form_no, - "MAX_POLL_OPTIONS" => $new['max_poll_options'], - "FLOOD_INTERVAL" => $new['flood_interval'], - "TOPICS_PER_PAGE" => $new['topics_per_page'], - "POSTS_PER_PAGE" => $new['posts_per_page'], - "HOT_TOPIC" => $new['hot_threshold'], - "STYLE_SELECT" => $style_select, - "OVERRIDE_STYLE_YES" => $override_user_style_yes, - "OVERRIDE_STYLE_NO" => $override_user_style_no, - "LANG_SELECT" => $lang_select, - "L_DATE_FORMAT_EXPLAIN" => $lang['Date_format_explain'], - "DEFAULT_DATEFORMAT" => $new['default_dateformat'], - "TIMEZONE_SELECT" => $timezone_select, - "S_PRIVMSG_ENABLED" => $privmsg_on, - "S_PRIVMSG_DISABLED" => $privmsg_off, - "INBOX_LIMIT" => $new['max_inbox_privmsgs'], - "SENTBOX_LIMIT" => $new['max_sentbox_privmsgs'], - "SAVEBOX_LIMIT" => $new['max_savebox_privmsgs'], - "COOKIE_DOMAIN" => $new['cookie_domain'], - "COOKIE_NAME" => $new['cookie_name'], - "COOKIE_PATH" => $new['cookie_path'], - "SESSION_LENGTH" => $new['session_length'], - "S_COOKIE_SECURE_ENABLED" => $cookie_secure_yes, - "S_COOKIE_SECURE_DISABLED" => $cookie_secure_no, - "GZIP_YES" => $gzip_yes, - "GZIP_NO" => $gzip_no, - "PRUNE_YES" => $prune_yes, - "PRUNE_NO" => $prune_no, - "HTML_TAGS" => $html_tags, - "HTML_YES" => $html_yes, - "HTML_NO" => $html_no, - "BBCODE_YES" => $bbcode_yes, - "BBCODE_NO" => $bbcode_no, - "SMILE_YES" => $smile_yes, - "SMILE_NO" => $smile_no, - "SIG_YES" => $sig_yes, - "SIG_NO" => $sig_no, - "SIG_SIZE" => $new['max_sig_chars'], - "NAMECHANGE_YES" => $namechange_yes, - "NAMECHANGE_NO" => $namechange_no, - "AVATARS_LOCAL_YES" => $avatars_local_yes, - "AVATARS_LOCAL_NO" => $avatars_local_no, - "AVATARS_REMOTE_YES" => $avatars_remote_yes, - "AVATARS_REMOTE_NO" => $avatars_remote_no, - "AVATARS_UPLOAD_YES" => $avatars_upload_yes, - "AVATARS_UPLOAD_NO" => $avatars_upload_no, - "AVATAR_FILESIZE" => $new['avatar_filesize'], - "AVATAR_MAX_HEIGHT" => $new['avatar_max_height'], - "AVATAR_MAX_WIDTH" => $new['avatar_max_width'], - "AVATAR_PATH" => $new['avatar_path'], - "AVATAR_GALLERY_PATH" => $new['avatar_gallery_path'], - "SMILIES_PATH" => $new['smilies_path'], - "INBOX_PRIVMSGS" => $new['max_inbox_privmsgs'], - "SENTBOX_PRIVMSGS" => $new['max_sentbox_privmsgs'], - "SAVEBOX_PRIVMSGS" => $new['max_savebox_privmsgs'], - "EMAIL_FROM" => $new['board_email'], - "EMAIL_SIG" => $new['board_email_sig'], - "SMTP_YES" => $smtp_yes, - "SMTP_NO" => $smtp_no, - "SMTP_HOST" => $new['smtp_host'], - "SMTP_USERNAME" => $new['smtp_username'], - "SMTP_PASSWORD" => $new['smtp_password'], - "COPPA_MAIL" => $new['coppa_mail'], - "COPPA_FAX" => $new['coppa_fax']) -); - -$template->pparse("body"); - -include('./page_footer_admin.'.$phpEx); - -?> diff --git a/phpBB2_old/admin/admin_db_utilities.php b/phpBB2_old/admin/admin_db_utilities.php deleted file mode 100644 index 508aa51..0000000 --- a/phpBB2_old/admin/admin_db_utilities.php +++ /dev/null @@ -1,1008 +0,0 @@ -= '4.0.0') ? @ini_get('file_uploads') : @get_cfg_var('file_uploads'); - - if( (empty($file_uploads) || $file_uploads != 0) && (strtolower($file_uploads) != 'off') && (@phpversion() != '4.0.4pl1') ) - { - $module['General']['Restore_DB'] = $filename . "?perform=restore"; - } - - return; -} - -// -// Load default header -// -$no_page_header = TRUE; -$phpbb_root_path = "./../"; -require($phpbb_root_path . 'extension.inc'); -require('./pagestart.' . $phpEx); -include($phpbb_root_path . 'includes/sql_parse.'.$phpEx); - -// -// Set VERBOSE to 1 for debugging info.. -// -define("VERBOSE", 0); - -// -// Increase maximum execution time, but don't complain about it if it isn't -// allowed. -// -@set_time_limit(1200); - -// ----------------------- -// The following functions are adapted from phpMyAdmin and upgrade_20.php -// -function gzip_PrintFourChars($Val) -{ - for ($i = 0; $i < 4; $i ++) - { - $return .= chr($Val % 256); - $Val = floor($Val / 256); - } - return $return; -} - - - -// -// This function is used for grabbing the sequences for postgres... -// -function pg_get_sequences($crlf, $backup_type) -{ - global $db; - - $get_seq_sql = "SELECT relname FROM pg_class WHERE NOT relname ~ 'pg_.*' - AND relkind = 'S' ORDER BY relname"; - - $seq = $db->sql_query($get_seq_sql); - - if( !$num_seq = $db->sql_numrows($seq) ) - { - - $return_val = "# No Sequences Found $crlf"; - - } - else - { - $return_val = "# Sequences $crlf"; - $i_seq = 0; - - while($i_seq < $num_seq) - { - $row = $db->sql_fetchrow($seq); - $sequence = $row['relname']; - - $get_props_sql = "SELECT * FROM $sequence"; - $seq_props = $db->sql_query($get_props_sql); - - if($db->sql_numrows($seq_props) > 0) - { - $row1 = $db->sql_fetchrow($seq_props); - - if($backup_type == 'structure') - { - $row['last_value'] = 1; - } - - $return_val .= "CREATE SEQUENCE $sequence start " . $row['last_value'] . ' increment ' . $row['increment_by'] . ' maxvalue ' . $row['max_value'] . ' minvalue ' . $row['min_value'] . ' cache ' . $row['cache_value'] . "; $crlf"; - - } // End if numrows > 0 - - if(($row['last_value'] > 1) && ($backup_type != 'structure')) - { - $return_val .= "SELECT NEXTVALE('$sequence'); $crlf"; - unset($row['last_value']); - } - - $i_seq++; - - } // End while.. - - } // End else... - - return $returnval; - -} // End function... - -// -// The following functions will return the "CREATE TABLE syntax for the -// varying DBMS's -// -// This function returns, will return the table def's for postgres... -// -function get_table_def_postgresql($table, $crlf) -{ - global $drop, $db; - - $schema_create = ""; - // - // Get a listing of the fields, with their associated types, etc. - // - - $field_query = "SELECT a.attnum, a.attname AS field, t.typname as type, a.attlen AS length, a.atttypmod as lengthvar, a.attnotnull as notnull - FROM pg_class c, pg_attribute a, pg_type t - WHERE c.relname = '$table' - AND a.attnum > 0 - AND a.attrelid = c.oid - AND a.atttypid = t.oid - ORDER BY a.attnum"; - $result = $db->sql_query($field_query); - - if(!$result) - { - message_die(GENERAL_ERROR, "Failed in get_table_def (show fields)", "", __LINE__, __FILE__, $field_query); - } // end if.. - - if ($drop == 1) - { - $schema_create .= "DROP TABLE $table;$crlf"; - } // end if - - // - // Ok now we actually start building the SQL statements to restore the tables - // - - $schema_create .= "CREATE TABLE $table($crlf"; - - while ($row = $db->sql_fetchrow($result)) - { - // - // Get the data from the table - // - $sql_get_default = "SELECT d.adsrc AS rowdefault - FROM pg_attrdef d, pg_class c - WHERE (c.relname = '$table') - AND (c.oid = d.adrelid) - AND d.adnum = " . $row['attnum']; - $def_res = $db->sql_query($sql_get_default); - - if (!$def_res) - { - unset($row['rowdefault']); - } - else - { - $row['rowdefault'] = @pg_result($def_res, 0, 'rowdefault'); - } - - if ($row['type'] == 'bpchar') - { - // Internally stored as bpchar, but isn't accepted in a CREATE TABLE statement. - $row['type'] = 'char'; - } - - $schema_create .= ' ' . $row['field'] . ' ' . $row['type']; - - if (eregi('char', $row['type'])) - { - if ($row['lengthvar'] > 0) - { - $schema_create .= '(' . ($row['lengthvar'] -4) . ')'; - } - } - - if (eregi('numeric', $row['type'])) - { - $schema_create .= '('; - $schema_create .= sprintf("%s,%s", (($row['lengthvar'] >> 16) & 0xffff), (($row['lengthvar'] - 4) & 0xffff)); - $schema_create .= ')'; - } - - if (!empty($row['rowdefault'])) - { - $schema_create .= ' DEFAULT ' . $row['rowdefault']; - } - - if ($row['notnull'] == 't') - { - $schema_create .= ' NOT NULL'; - } - - $schema_create .= ",$crlf"; - - } - // - // Get the listing of primary keys. - // - - $sql_pri_keys = "SELECT ic.relname AS index_name, bc.relname AS tab_name, ta.attname AS column_name, i.indisunique AS unique_key, i.indisprimary AS primary_key - FROM pg_class bc, pg_class ic, pg_index i, pg_attribute ta, pg_attribute ia - WHERE (bc.oid = i.indrelid) - AND (ic.oid = i.indexrelid) - AND (ia.attrelid = i.indexrelid) - AND (ta.attrelid = bc.oid) - AND (bc.relname = '$table') - AND (ta.attrelid = i.indrelid) - AND (ta.attnum = i.indkey[ia.attnum-1]) - ORDER BY index_name, tab_name, column_name "; - $result = $db->sql_query($sql_pri_keys); - - if(!$result) - { - message_die(GENERAL_ERROR, "Failed in get_table_def (show fields)", "", __LINE__, __FILE__, $sql_pri_keys); - } - - while ( $row = $db->sql_fetchrow($result)) - { - if ($row['primary_key'] == 't') - { - if (!empty($primary_key)) - { - $primary_key .= ', '; - } - - $primary_key .= $row['column_name']; - $primary_key_name = $row['index_name']; - - } - else - { - // - // We have to store this all this info because it is possible to have a multi-column key... - // we can loop through it again and build the statement - // - $index_rows[$row['index_name']]['table'] = $table; - $index_rows[$row['index_name']]['unique'] = ($row['unique_key'] == 't') ? ' UNIQUE ' : ''; - $index_rows[$row['index_name']]['column_names'] .= $row['column_name'] . ', '; - } - } - - if (!empty($index_rows)) - { - while(list($idx_name, $props) = each($index_rows)) - { - $props['column_names'] = ereg_replace(", $", "" , $props['column_names']); - $index_create .= 'CREATE ' . $props['unique'] . " INDEX $idx_name ON $table (" . $props['column_names'] . ");$crlf"; - } - } - - if (!empty($primary_key)) - { - $schema_create .= " CONSTRAINT $primary_key_name PRIMARY KEY ($primary_key),$crlf"; - } - - // - // Generate constraint clauses for CHECK constraints - // - $sql_checks = "SELECT rcname as index_name, rcsrc - FROM pg_relcheck, pg_class bc - WHERE rcrelid = bc.oid - AND bc.relname = '$table' - AND NOT EXISTS ( - SELECT * - FROM pg_relcheck as c, pg_inherits as i - WHERE i.inhrelid = pg_relcheck.rcrelid - AND c.rcname = pg_relcheck.rcname - AND c.rcsrc = pg_relcheck.rcsrc - AND c.rcrelid = i.inhparent - )"; - $result = $db->sql_query($sql_checks); - - if (!$result) - { - message_die(GENERAL_ERROR, "Failed in get_table_def (show fields)", "", __LINE__, __FILE__, $sql_checks); - } - - // - // Add the constraints to the sql file. - // - while ($row = $db->sql_fetchrow($result)) - { - $schema_create .= ' CONSTRAINT ' . $row['index_name'] . ' CHECK ' . $row['rcsrc'] . ",$crlf"; - } - - $schema_create = ereg_replace(',' . $crlf . '$', '', $schema_create); - $index_create = ereg_replace(',' . $crlf . '$', '', $index_create); - - $schema_create .= "$crlf);$crlf"; - - if (!empty($index_create)) - { - $schema_create .= $index_create; - } - - // - // Ok now we've built all the sql return it to the calling function. - // - return (stripslashes($schema_create)); - -} - -// -// This function returns the "CREATE TABLE" syntax for mysql dbms... -// -function get_table_def_mysql($table, $crlf) -{ - global $drop, $db; - - $schema_create = ""; - $field_query = "SHOW FIELDS FROM $table"; - $key_query = "SHOW KEYS FROM $table"; - - // - // If the user has selected to drop existing tables when doing a restore. - // Then we add the statement to drop the tables.... - // - if ($drop == 1) - { - $schema_create .= "DROP TABLE IF EXISTS $table;$crlf"; - } - - $schema_create .= "CREATE TABLE $table($crlf"; - - // - // Ok lets grab the fields... - // - $result = $db->sql_query($field_query); - if(!$result) - { - message_die(GENERAL_ERROR, "Failed in get_table_def (show fields)", "", __LINE__, __FILE__, $field_query); - } - - while ($row = $db->sql_fetchrow($result)) - { - $schema_create .= ' ' . $row['Field'] . ' ' . $row['Type']; - - if(!empty($row['Default'])) - { - $schema_create .= ' DEFAULT \'' . $row['Default'] . '\''; - } - - if($row['Null'] != "YES") - { - $schema_create .= ' NOT NULL'; - } - - if($row['Extra'] != "") - { - $schema_create .= ' ' . $row['Extra']; - } - - $schema_create .= ",$crlf"; - } - // - // Drop the last ',$crlf' off ;) - // - $schema_create = ereg_replace(',' . $crlf . '$', "", $schema_create); - - // - // Get any Indexed fields from the database... - // - $result = $db->sql_query($key_query); - if(!$result) - { - message_die(GENERAL_ERROR, "FAILED IN get_table_def (show keys)", "", __LINE__, __FILE__, $key_query); - } - - while($row = $db->sql_fetchrow($result)) - { - $kname = $row['Key_name']; - - if(($kname != 'PRIMARY') && ($row['Non_unique'] == 0)) - { - $kname = "UNIQUE|$kname"; - } - - if(!is_array($index[$kname])) - { - $index[$kname] = array(); - } - - $index[$kname][] = $row['Column_name']; - } - - while(list($x, $columns) = @each($index)) - { - $schema_create .= ", $crlf"; - - if($x == 'PRIMARY') - { - $schema_create .= ' PRIMARY KEY (' . implode($columns, ', ') . ')'; - } - elseif (substr($x,0,6) == 'UNIQUE') - { - $schema_create .= ' UNIQUE ' . substr($x,7) . ' (' . implode($columns, ', ') . ')'; - } - else - { - $schema_create .= " KEY $x (" . implode($columns, ', ') . ')'; - } - } - - $schema_create .= "$crlf);"; - - if(get_magic_quotes_runtime()) - { - return(stripslashes($schema_create)); - } - else - { - return($schema_create); - } - -} // End get_table_def_mysql - - -// -// This fuction will return a tables create definition to be used as an sql -// statement. -// -// -// The following functions Get the data from the tables and format it as a -// series of INSERT statements, for each different DBMS... -// After every row a custom callback function $handler gets called. -// $handler must accept one parameter ($sql_insert); -// -// -// Here is the function for postgres... -// -function get_table_content_postgresql($table, $handler) -{ - global $db; - - // - // Grab all of the data from current table. - // - - $result = $db->sql_query("SELECT * FROM $table"); - - if (!$result) - { - message_die(GENERAL_ERROR, "Failed in get_table_content (select *)", "", __LINE__, __FILE__, "SELECT * FROM $table"); - } - - $i_num_fields = $db->sql_numfields($result); - - for ($i = 0; $i < $i_num_fields; $i++) - { - $aryType[] = $db->sql_fieldtype($i, $result); - $aryName[] = $db->sql_fieldname($i, $result); - } - - $iRec = 0; - - while($row = $db->sql_fetchrow($result)) - { - unset($schema_vals); - unset($schema_fields); - unset($schema_insert); - // - // Build the SQL statement to recreate the data. - // - for($i = 0; $i < $i_num_fields; $i++) - { - $strVal = $row[$aryName[$i]]; - if (eregi("char|text|bool", $aryType[$i])) - { - $strQuote = "'"; - $strEmpty = ""; - $strVal = addslashes($strVal); - } - elseif (eregi("date|timestamp", $aryType[$i])) - { - if ($empty($strVal)) - { - $strQuote = ""; - } - else - { - $strQuote = "'"; - } - } - else - { - $strQuote = ""; - $strEmpty = "NULL"; - } - - if (empty($strVal) && $strVal != "0") - { - $strVal = $strEmpty; - } - - $schema_vals .= " $strQuote$strVal$strQuote,"; - $schema_fields .= " $aryName[$i],"; - - } - - $schema_vals = ereg_replace(",$", "", $schema_vals); - $schema_vals = ereg_replace("^ ", "", $schema_vals); - $schema_fields = ereg_replace(",$", "", $schema_fields); - $schema_fields = ereg_replace("^ ", "", $schema_fields); - - // - // Take the ordered fields and their associated data and build it - // into a valid sql statement to recreate that field in the data. - // - $schema_insert = "INSERT INTO $table ($schema_fields) VALUES($schema_vals);"; - - $handler(trim($schema_insert)); - } - - return(true); - -}// end function get_table_content_postgres... - -// -// This function is for getting the data from a mysql table. -// - -function get_table_content_mysql($table, $handler) -{ - global $db; - - // Grab the data from the table. - if (!($result = $db->sql_query("SELECT * FROM $table"))) - { - message_die(GENERAL_ERROR, "Failed in get_table_content (select *)", "", __LINE__, __FILE__, "SELECT * FROM $table"); - } - - // Loop through the resulting rows and build the sql statement. - if ($row = $db->sql_fetchrow($result)) - { - $handler("\n#\n# Table Data for $table\n#\n"); - $field_names = array(); - - // Grab the list of field names. - $num_fields = $db->sql_numfields($result); - $table_list = '('; - for ($j = 0; $j < $num_fields; $j++) - { - $field_names[$j] = $db->sql_fieldname($j, $result); - $table_list .= (($j > 0) ? ', ' : '') . $field_names[$j]; - - } - $table_list .= ')'; - - do - { - // Start building the SQL statement. - $schema_insert = "INSERT INTO $table $table_list VALUES("; - - // Loop through the rows and fill in data for each column - for ($j = 0; $j < $num_fields; $j++) - { - $schema_insert .= ($j > 0) ? ', ' : ''; - - if(!isset($row[$field_names[$j]])) - { - // - // If there is no data for the column set it to null. - // There was a problem here with an extra space causing the - // sql file not to reimport if the last column was null in - // any table. Should be fixed now :) JLH - // - $schema_insert .= 'NULL'; - } - elseif ($row[$field_names[$j]] != '') - { - $schema_insert .= '\'' . addslashes($row[$field_names[$j]]) . '\''; - } - else - { - $schema_insert .= '\'\''; - } - } - - $schema_insert .= ');'; - - // Go ahead and send the insert statement to the handler function. - $handler(trim($schema_insert)); - - } - while ($row = $db->sql_fetchrow($result)); - } - - return(true); -} - -function output_table_content($content) -{ - global $tempfile; - - //fwrite($tempfile, $content . "\n"); - //$backup_sql .= $content . "\n"; - echo $content ."\n"; - return; -} -// -// End Functions -// ------------- - - -// -// Begin program proper -// -if( isset($HTTP_GET_VARS['perform']) || isset($HTTP_POST_VARS['perform']) ) -{ - $perform = (isset($HTTP_POST_VARS['perform'])) ? $HTTP_POST_VARS['perform'] : $HTTP_GET_VARS['perform']; - - switch($perform) - { - case 'backup': - - $error = false; - switch(SQL_LAYER) - { - case 'oracle': - $error = true; - break; - case 'db2': - $error = true; - break; - case 'msaccess': - $error = true; - break; - case 'mssql': - case 'mssql-odbc': - $error = true; - break; - } - - if ($error) - { - include('./page_header_admin.'.$phpEx); - - $template->set_filenames(array( - "body" => "admin/admin_message_body.tpl") - ); - - $template->assign_vars(array( - "MESSAGE_TITLE" => $lang['Information'], - "MESSAGE_TEXT" => $lang['Backups_not_supported']) - ); - - $template->pparse("body"); - - include('./page_footer_admin.'.$phpEx); - } - - $tables = array('auth_access', 'banlist', 'categories', 'config', 'disallow', 'forums', 'forum_prune', 'groups', 'posts', 'posts_text', 'privmsgs', 'privmsgs_text', 'ranks', 'search_results', 'search_wordlist', 'search_wordmatch', 'sessions', 'smilies', 'themes', 'themes_name', 'topics', 'topics_watch', 'user_group', 'users', 'vote_desc', 'vote_results', 'vote_voters', 'words'); - - $additional_tables = (isset($HTTP_POST_VARS['additional_tables'])) ? $HTTP_POST_VARS['additional_tables'] : ( (isset($HTTP_GET_VARS['additional_tables'])) ? $HTTP_GET_VARS['additional_tables'] : "" ); - - $backup_type = (isset($HTTP_POST_VARS['backup_type'])) ? $HTTP_POST_VARS['backup_type'] : ( (isset($HTTP_GET_VARS['backup_type'])) ? $HTTP_GET_VARS['backup_type'] : "" ); - - $gzipcompress = (!empty($HTTP_POST_VARS['gzipcompress'])) ? $HTTP_POST_VARS['gzipcompress'] : ( (!empty($HTTP_GET_VARS['gzipcompress'])) ? $HTTP_GET_VARS['gzipcompress'] : 0 ); - - $drop = (!empty($HTTP_POST_VARS['drop'])) ? intval($HTTP_POST_VARS['drop']) : ( (!empty($HTTP_GET_VARS['drop'])) ? intval($HTTP_GET_VARS['drop']) : 0 ); - - if(!empty($additional_tables)) - { - if(ereg(",", $additional_tables)) - { - $additional_tables = split(",", $additional_tables); - - for($i = 0; $i < count($additional_tables); $i++) - { - $tables[] = trim($additional_tables[$i]); - } - - } - else - { - $tables[] = trim($additional_tables); - } - } - - if( !isset($HTTP_POST_VARS['backupstart']) && !isset($HTTP_GET_VARS['backupstart'])) - { - include('./page_header_admin.'.$phpEx); - - $template->set_filenames(array( - "body" => "admin/db_utils_backup_body.tpl") - ); - $s_hidden_fields = ""; - - $template->assign_vars(array( - "L_DATABASE_BACKUP" => $lang['Database_Utilities'] . " : " . $lang['Backup'], - "L_BACKUP_EXPLAIN" => $lang['Backup_explain'], - "L_FULL_BACKUP" => $lang['Full_backup'], - "L_STRUCTURE_BACKUP" => $lang['Structure_backup'], - "L_DATA_BACKUP" => $lang['Data_backup'], - "L_ADDITIONAL_TABLES" => $lang['Additional_tables'], - "L_START_BACKUP" => $lang['Start_backup'], - "L_BACKUP_OPTIONS" => $lang['Backup_options'], - "L_GZIP_COMPRESS" => $lang['Gzip_compress'], - "L_NO" => $lang['No'], - "L_YES" => $lang['Yes'], - - "S_HIDDEN_FIELDS" => $s_hidden_fields, - "S_DBUTILS_ACTION" => append_sid("admin_db_utilities.$phpEx")) - ); - $template->pparse("body"); - - break; - - } - else if( !isset($HTTP_POST_VARS['startdownload']) && !isset($HTTP_GET_VARS['startdownload']) ) - { - if(is_array($additional_tables)) - { - $additional_tables = implode(',', $additional_tables); - } - $template->set_filenames(array( - "body" => "admin/admin_message_body.tpl") - ); - - $template->assign_vars(array( - "META" => '', - - "MESSAGE_TITLE" => $lang['Database_Utilities'] . " : " . $lang['Backup'], - "MESSAGE_TEXT" => $lang['Backup_download']) - ); - - include('./page_header_admin.'.$phpEx); - - $template->pparse("body"); - - include('./page_footer_admin.'.$phpEx); - - } - header("Pragma: no-cache"); - $do_gzip_compress = FALSE; - if( $gzipcompress ) - { - $phpver = phpversion(); - - if($phpver >= "4.0") - { - if(extension_loaded("zlib")) - { - $do_gzip_compress = TRUE; - } - } - } - if($do_gzip_compress) - { - @ob_start(); - @ob_implicit_flush(0); - header("Content-Type: application/x-gzip; name=\"phpbb_db_backup.sql.gz\""); - header("Content-disposition: attachment; filename=phpbb_db_backup.sql.gz"); - } - else - { - header("Content-Type: text/x-delimtext; name=\"phpbb_db_backup.sql\""); - header("Content-disposition: attachment; filename=phpbb_db_backup.sql"); - } - - // - // Build the sql script file... - // - echo "#\n"; - echo "# phpBB Backup Script\n"; - echo "# Dump of tables for $dbname\n"; - echo "#\n# DATE : " . gmdate("d-m-Y H:i:s", time()) . " GMT\n"; - echo "#\n"; - - if(SQL_LAYER == 'postgresql') - { - echo "\n" . pg_get_sequences("\n", $backup_type); - } - for($i = 0; $i < count($tables); $i++) - { - $table_name = $tables[$i]; - - switch (SQL_LAYER) - { - case 'postgresql': - $table_def_function = "get_table_def_postgresql"; - $table_content_function = "get_table_content_postgresql"; - break; - - case 'mysql': - case 'mysql4': - $table_def_function = "get_table_def_mysql"; - $table_content_function = "get_table_content_mysql"; - break; - } - - if($backup_type != 'data') - { - echo "#\n# TABLE: " . $table_prefix . $table_name . "\n#\n"; - echo $table_def_function($table_prefix . $table_name, "\n") . "\n"; - } - - if($backup_type != 'structure') - { - $table_content_function($table_prefix . $table_name, "output_table_content"); - } - } - - if($do_gzip_compress) - { - $Size = ob_get_length(); - $Crc = crc32(ob_get_contents()); - $contents = gzcompress(ob_get_contents()); - ob_end_clean(); - echo "\x1f\x8b\x08\x00\x00\x00\x00\x00".substr($contents, 0, strlen($contents) - 4).gzip_PrintFourChars($Crc).gzip_PrintFourChars($Size); - } - exit; - - break; - - case 'restore': - if(!isset($HTTP_POST_VARS['restore_start'])) - { - // - // Define Template files... - // - include('./page_header_admin.'.$phpEx); - - $template->set_filenames(array( - "body" => "admin/db_utils_restore_body.tpl") - ); - - $s_hidden_fields = ""; - - $template->assign_vars(array( - "L_DATABASE_RESTORE" => $lang['Database_Utilities'] . " : " . $lang['Restore'], - "L_RESTORE_EXPLAIN" => $lang['Restore_explain'], - "L_SELECT_FILE" => $lang['Select_file'], - "L_START_RESTORE" => $lang['Start_Restore'], - - "S_DBUTILS_ACTION" => append_sid("admin_db_utilities.$phpEx"), - "S_HIDDEN_FIELDS" => $s_hidden_fields) - ); - $template->pparse("body"); - - break; - - } - else - { - // - // Handle the file upload .... - // If no file was uploaded report an error... - // - $backup_file_name = (!empty($HTTP_POST_FILES['backup_file']['name'])) ? $HTTP_POST_FILES['backup_file']['name'] : ""; - $backup_file_tmpname = ($HTTP_POST_FILES['backup_file']['tmp_name'] != "none") ? $HTTP_POST_FILES['backup_file']['tmp_name'] : ""; - $backup_file_type = (!empty($HTTP_POST_FILES['backup_file']['type'])) ? $HTTP_POST_FILES['backup_file']['type'] : ""; - - if($backup_file_tmpname == "" || $backup_file_name == "") - { - message_die(GENERAL_MESSAGE, $lang['Restore_Error_no_file']); - } - // - // If I file was actually uploaded, check to make sure that we - // are actually passed the name of an uploaded file, and not - // a hackers attempt at getting us to process a local system - // file. - // - if( file_exists(phpbb_realpath($backup_file_tmpname)) ) - { - if( preg_match("/^(text\/[a-zA-Z]+)|(application\/(x\-)?gzip(\-compressed)?)|(application\/octet-stream)$/is", $backup_file_type) ) - { - if( preg_match("/\.gz$/is",$backup_file_name) ) - { - $do_gzip_compress = FALSE; - $phpver = phpversion(); - if($phpver >= "4.0") - { - if(extension_loaded("zlib")) - { - $do_gzip_compress = TRUE; - } - } - - if($do_gzip_compress) - { - $gz_ptr = gzopen($backup_file_tmpname, 'rb'); - $sql_query = ""; - while( !gzeof($gz_ptr) ) - { - $sql_query .= gzgets($gz_ptr, 100000); - } - } - else - { - message_die(GENERAL_ERROR, $lang['Restore_Error_decompress']); - } - } - else - { - $sql_query = fread(fopen($backup_file_tmpname, 'r'), filesize($backup_file_tmpname)); - } - // - // Comment this line out to see if this fixes the stuff... - // - //$sql_query = stripslashes($sql_query); - } - else - { - message_die(GENERAL_ERROR, $lang['Restore_Error_filename'] ." $backup_file_type $backup_file_name"); - } - } - else - { - message_die(GENERAL_ERROR, $lang['Restore_Error_uploading']); - } - - if($sql_query != "") - { - // Strip out sql comments... - $sql_query = remove_remarks($sql_query); - $pieces = split_sql_file($sql_query, ";"); - - $sql_count = count($pieces); - for($i = 0; $i < $sql_count; $i++) - { - $sql = trim($pieces[$i]); - - if(!empty($sql) and $sql[0] != "#") - { - if(VERBOSE == 1) - { - echo "Executing: $sql\n
    "; - flush(); - } - - $result = $db->sql_query($sql); - - if(!$result && ( !(SQL_LAYER == 'postgresql' && eregi("drop table", $sql) ) ) ) - { - message_die(GENERAL_ERROR, "Error importing backup file", "", __LINE__, __FILE__, $sql); - } - } - } - } - - include('./page_header_admin.'.$phpEx); - - $template->set_filenames(array( - "body" => "admin/admin_message_body.tpl") - ); - - $message = $lang['Restore_success']; - - $template->assign_vars(array( - "MESSAGE_TITLE" => $lang['Database_Utilities'] . " : " . $lang['Restore'], - "MESSAGE_TEXT" => $message) - ); - - $template->pparse("body"); - break; - } - break; - } -} - -include('./page_footer_admin.'.$phpEx); - -?> diff --git a/phpBB2_old/admin/admin_disallow.php b/phpBB2_old/admin/admin_disallow.php deleted file mode 100644 index 48cba98..0000000 --- a/phpBB2_old/admin/admin_disallow.php +++ /dev/null @@ -1,146 +0,0 @@ -sql_query( $sql ); - if ( !$result ) - { - message_die(GENERAL_ERROR, "Could not add disallowed user.", "",__LINE__, __FILE__, $sql); - } - $message = $lang['Disallow_successful']; - } - - $message .= "

    " . sprintf($lang['Click_return_disallowadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); -} -else if( isset($HTTP_POST_VARS['delete_name']) ) -{ - $disallowed_id = ( isset($HTTP_POST_VARS['disallowed_id']) ) ? intval( $HTTP_POST_VARS['disallowed_id'] ) : intval( $HTTP_GET_VARS['disallowed_id'] ); - - $sql = "DELETE FROM " . DISALLOW_TABLE . " - WHERE disallow_id = $disallowed_id"; - $result = $db->sql_query($sql); - if( !$result ) - { - message_die(GENERAL_ERROR, "Couldn't removed disallowed user.", "",__LINE__, __FILE__, $sql); - } - - $message .= $lang['Disallowed_deleted'] . "

    " . sprintf($lang['Click_return_disallowadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - -} - -// -// Grab the current list of disallowed usernames... -// -$sql = "SELECT * - FROM " . DISALLOW_TABLE; -$result = $db->sql_query($sql); -if( !$result ) -{ - message_die(GENERAL_ERROR, "Couldn't get disallowed users.", "", __LINE__, __FILE__, $sql ); -} - -$disallowed = $db->sql_fetchrowset($result); - -// -// Ok now generate the info for the template, which will be put out no matter -// what mode we are in. -// -$disallow_select = ''; - -$template->set_filenames(array( - "body" => "admin/disallow_body.tpl") -); - -$template->assign_vars(array( - "S_DISALLOW_SELECT" => $disallow_select, - "S_FORM_ACTION" => append_sid("admin_disallow.$phpEx"), - - "L_INFO" => $output_info, - "L_DISALLOW_TITLE" => $lang['Disallow_control'], - "L_DISALLOW_EXPLAIN" => $lang['Disallow_explain'], - "L_DELETE" => $lang['Delete_disallow'], - "L_DELETE_DISALLOW" => $lang['Delete_disallow_title'], - "L_DELETE_EXPLAIN" => $lang['Delete_disallow_explain'], - "L_ADD" => $lang['Add_disallow'], - "L_ADD_DISALLOW" => $lang['Add_disallow_title'], - "L_ADD_EXPLAIN" => $lang['Add_disallow_explain'], - "L_USERNAME" => $lang['Username']) -); - -$template->pparse("body"); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/admin_forum_prune.php b/phpBB2_old/admin/admin_forum_prune.php deleted file mode 100644 index 50cc397..0000000 --- a/phpBB2_old/admin/admin_forum_prune.php +++ /dev/null @@ -1,199 +0,0 @@ -sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not obtain list of forums for pruning', '', __LINE__, __FILE__, $sql); -} - -$forum_rows = array(); -while( $row = $db->sql_fetchrow($result) ) -{ - $forum_rows[] = $row; -} - -// -// Check for submit to be equal to Prune. If so then proceed with the pruning. -// -if( isset($HTTP_POST_VARS['doprune']) ) -{ - $prunedays = ( isset($HTTP_POST_VARS['prunedays']) ) ? intval($HTTP_POST_VARS['prunedays']) : 0; - - // Convert days to seconds for timestamp functions... - $prunedate = time() - ( $prunedays * 86400 ); - - $template->set_filenames(array( - 'body' => 'admin/forum_prune_result_body.tpl') - ); - - for($i = 0; $i < count($forum_rows); $i++) - { - $p_result = prune($forum_rows[$i]['forum_id'], $prunedate); - sync('forum', $forum_rows[$i]['forum_id']); - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('prune_results', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'FORUM_NAME' => $forum_rows[$i]['forum_name'], - 'FORUM_TOPICS' => $p_result['topics'], - 'FORUM_POSTS' => $p_result['posts']) - ); - } - - $template->assign_vars(array( - 'L_FORUM_PRUNE' => $lang['Forum_Prune'], - 'L_FORUM' => $lang['Forum'], - 'L_TOPICS_PRUNED' => $lang['Topics_pruned'], - 'L_POSTS_PRUNED' => $lang['Posts_pruned'], - 'L_PRUNE_RESULT' => $lang['Prune_success']) - ); -} -else -{ - // - // If they haven't selected a forum for pruning yet then - // display a select box to use for pruning. - // - if( empty($HTTP_POST_VARS[POST_FORUM_URL]) ) - { - // - // Output a selection table if no forum id has been specified. - // - $template->set_filenames(array( - 'body' => 'admin/forum_prune_select_body.tpl') - ); - - $select_list = ''; - - // - // Assign the template variables. - // - $template->assign_vars(array( - 'L_FORUM_PRUNE' => $lang['Forum_Prune'], - 'L_SELECT_FORUM' => $lang['Select_a_Forum'], - 'L_LOOK_UP' => $lang['Look_up_Forum'], - - 'S_FORUMPRUNE_ACTION' => append_sid("admin_forum_prune.$phpEx"), - 'S_FORUMS_SELECT' => $select_list) - ); - } - else - { - $forum_id = intval($HTTP_POST_VARS[POST_FORUM_URL]); - - // - // Output the form to retrieve Prune information. - // - $template->set_filenames(array( - 'body' => 'admin/forum_prune_body.tpl') - ); - - $forum_name = ( $forum_id == -1 ) ? $lang['All_Forums'] : $forum_rows[0]['forum_name']; - - $prune_data = $lang['Prune_topics_not_posted'] . " "; - $prune_data .= ' ' . $lang['Days']; - - $hidden_input = ''; - - // - // Assign the template variables. - // - $template->assign_vars(array( - 'FORUM_NAME' => $forum_name, - - 'L_FORUM' => $lang['Forum'], - 'L_FORUM_PRUNE' => $lang['Forum_Prune'], - 'L_FORUM_PRUNE_EXPLAIN' => $lang['Forum_Prune_explain'], - 'L_DO_PRUNE' => $lang['Do_Prune'], - - 'S_FORUMPRUNE_ACTION' => append_sid("admin_forum_prune.$phpEx"), - 'S_PRUNE_DATA' => $prune_data, - 'S_HIDDEN_VARS' => $hidden_input) - ); - } -} -// -// Actually output the page here. -// -$template->pparse('body'); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/admin_forumauth.php b/phpBB2_old/admin/admin_forumauth.php deleted file mode 100644 index 12f540e..0000000 --- a/phpBB2_old/admin/admin_forumauth.php +++ /dev/null @@ -1,328 +0,0 @@ - array(AUTH_ALL, AUTH_ALL, AUTH_ALL, AUTH_ALL, AUTH_REG, AUTH_REG, AUTH_MOD, AUTH_MOD, AUTH_REG, AUTH_REG), - 1 => array(AUTH_ALL, AUTH_ALL, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_MOD, AUTH_MOD, AUTH_REG, AUTH_REG), - 2 => array(AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_REG, AUTH_MOD, AUTH_MOD, AUTH_REG, AUTH_REG), - 3 => array(AUTH_ALL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_MOD, AUTH_ACL, AUTH_ACL), - 4 => array(AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_ACL, AUTH_MOD, AUTH_ACL, AUTH_ACL), - 5 => array(AUTH_ALL, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD), - 6 => array(AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD, AUTH_MOD), -); - -$simple_auth_types = array($lang['Public'], $lang['Registered'], $lang['Registered'] . ' [' . $lang['Hidden'] . ']', $lang['Private'], $lang['Private'] . ' [' . $lang['Hidden'] . ']', $lang['Moderators'], $lang['Moderators'] . ' [' . $lang['Hidden'] . ']'); - -$forum_auth_fields = array('auth_view', 'auth_read', 'auth_post', 'auth_reply', 'auth_edit', 'auth_delete', 'auth_sticky', 'auth_announce', 'auth_vote', 'auth_pollcreate'); - -$field_names = array( - 'auth_view' => $lang['View'], - 'auth_read' => $lang['Read'], - 'auth_post' => $lang['Post'], - 'auth_reply' => $lang['Reply'], - 'auth_edit' => $lang['Edit'], - 'auth_delete' => $lang['Delete'], - 'auth_sticky' => $lang['Sticky'], - 'auth_announce' => $lang['Announce'], - 'auth_vote' => $lang['Vote'], - 'auth_pollcreate' => $lang['Pollcreate']); - -$forum_auth_levels = array('ALL', 'REG', 'PRIVATE', 'MOD', 'ADMIN'); -$forum_auth_const = array(AUTH_ALL, AUTH_REG, AUTH_ACL, AUTH_MOD, AUTH_ADMIN); - -if(isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_URL])) -{ - $forum_id = (isset($HTTP_POST_VARS[POST_FORUM_URL])) ? intval($HTTP_POST_VARS[POST_FORUM_URL]) : intval($HTTP_GET_VARS[POST_FORUM_URL]); - $forum_sql = "AND forum_id = $forum_id"; -} -else -{ - unset($forum_id); - $forum_sql = ''; -} - -if( isset($HTTP_GET_VARS['adv']) ) -{ - $adv = intval($HTTP_GET_VARS['adv']); -} -else -{ - unset($adv); -} - -// -// Start program proper -// -if( isset($HTTP_POST_VARS['submit']) ) -{ - $sql = ''; - - if(!empty($forum_id)) - { - if(isset($HTTP_POST_VARS['simpleauth'])) - { - $simple_ary = $simple_auth_ary[intval($HTTP_POST_VARS['simpleauth'])]; - - for($i = 0; $i < count($simple_ary); $i++) - { - $sql .= ( ( $sql != '' ) ? ', ' : '' ) . $forum_auth_fields[$i] . ' = ' . $simple_ary[$i]; - } - - if (is_array($simple_ary)) - { - $sql = "UPDATE " . FORUMS_TABLE . " SET $sql WHERE forum_id = $forum_id"; - } - } - else - { - for($i = 0; $i < count($forum_auth_fields); $i++) - { - $value = intval($HTTP_POST_VARS[$forum_auth_fields[$i]]); - - if ( $forum_auth_fields[$i] == 'auth_vote' ) - { - if ( $HTTP_POST_VARS['auth_vote'] == AUTH_ALL ) - { - $value = AUTH_REG; - } - } - - $sql .= ( ( $sql != '' ) ? ', ' : '' ) .$forum_auth_fields[$i] . ' = ' . $value; - } - - $sql = "UPDATE " . FORUMS_TABLE . " SET $sql WHERE forum_id = $forum_id"; - } - - if ( $sql != '' ) - { - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update auth table', '', __LINE__, __FILE__, $sql); - } - } - - $forum_sql = ''; - $adv = 0; - } - - $template->assign_vars(array( - 'META' => '') - ); - $message = $lang['Forum_auth_updated'] . '

    ' . sprintf($lang['Click_return_forumauth'], '', ""); - message_die(GENERAL_MESSAGE, $message); - -} // End of submit - -// -// Get required information, either all forums if -// no id was specified or just the requsted if it -// was -// -$sql = "SELECT f.* - FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c - WHERE c.cat_id = f.cat_id - $forum_sql - ORDER BY c.cat_order ASC, f.forum_order ASC"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, "Couldn't obtain forum list", "", __LINE__, __FILE__, $sql); -} - -$forum_rows = $db->sql_fetchrowset($result); -$db->sql_freeresult($result); - -if( empty($forum_id) ) -{ - // - // Output the selection table if no forum id was - // specified - // - $template->set_filenames(array( - 'body' => 'admin/auth_select_body.tpl') - ); - - $select_list = ''; - - $template->assign_vars(array( - 'L_AUTH_TITLE' => $lang['Auth_Control_Forum'], - 'L_AUTH_EXPLAIN' => $lang['Forum_auth_explain'], - 'L_AUTH_SELECT' => $lang['Select_a_Forum'], - 'L_LOOK_UP' => $lang['Look_up_Forum'], - - 'S_AUTH_ACTION' => append_sid("admin_forumauth.$phpEx"), - 'S_AUTH_SELECT' => $select_list) - ); - -} -else -{ - // - // Output the authorisation details if an id was - // specified - // - $template->set_filenames(array( - 'body' => 'admin/auth_forum_body.tpl') - ); - - $forum_name = $forum_rows[0]['forum_name']; - - @reset($simple_auth_ary); - while( list($key, $auth_levels) = each($simple_auth_ary)) - { - $matched = 1; - for($k = 0; $k < count($auth_levels); $k++) - { - $matched_type = $key; - - if ( $forum_rows[0][$forum_auth_fields[$k]] != $auth_levels[$k] ) - { - $matched = 0; - } - } - - if ( $matched ) - { - break; - } - } - - // - // If we didn't get a match above then we - // automatically switch into 'advanced' mode - // - if ( !isset($adv) && !$matched ) - { - $adv = 1; - } - - $s_column_span == 0; - - if ( empty($adv) ) - { - $simple_auth = ''; - - $template->assign_block_vars('forum_auth_titles', array( - 'CELL_TITLE' => $lang['Simple_mode']) - ); - $template->assign_block_vars('forum_auth_data', array( - 'S_AUTH_LEVELS_SELECT' => $simple_auth) - ); - - $s_column_span++; - } - else - { - // - // Output values of individual - // fields - // - for($j = 0; $j < count($forum_auth_fields); $j++) - { - $custom_auth[$j] = '  '; - - $cell_title = $field_names[$forum_auth_fields[$j]]; - - $template->assign_block_vars('forum_auth_titles', array( - 'CELL_TITLE' => $cell_title) - ); - $template->assign_block_vars('forum_auth_data', array( - 'S_AUTH_LEVELS_SELECT' => $custom_auth[$j]) - ); - - $s_column_span++; - } - } - - $adv_mode = ( empty($adv) ) ? '1' : '0'; - $switch_mode = append_sid("admin_forumauth.$phpEx?" . POST_FORUM_URL . "=" . $forum_id . "&adv=". $adv_mode); - $switch_mode_text = ( empty($adv) ) ? $lang['Advanced_mode'] : $lang['Simple_mode']; - $u_switch_mode = '' . $switch_mode_text . ''; - - $s_hidden_fields = ''; - - $template->assign_vars(array( - 'FORUM_NAME' => $forum_name, - - 'L_FORUM' => $lang['Forum'], - 'L_AUTH_TITLE' => $lang['Auth_Control_Forum'], - 'L_AUTH_EXPLAIN' => $lang['Forum_auth_explain'], - 'L_SUBMIT' => $lang['Submit'], - 'L_RESET' => $lang['Reset'], - - 'U_SWITCH_MODE' => $u_switch_mode, - - 'S_FORUMAUTH_ACTION' => append_sid("admin_forumauth.$phpEx"), - 'S_COLUMN_SPAN' => $s_column_span, - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); - -} - -include('./page_header_admin.'.$phpEx); - -$template->pparse('body'); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/admin_forums.php b/phpBB2_old/admin/admin_forums.php deleted file mode 100644 index 3340c72..0000000 --- a/phpBB2_old/admin/admin_forums.php +++ /dev/null @@ -1,1027 +0,0 @@ - AUTH_ALL, - "auth_read" => AUTH_ALL, - "auth_post" => AUTH_ALL, - "auth_reply" => AUTH_ALL, - "auth_edit" => AUTH_REG, - "auth_delete" => AUTH_REG, - "auth_sticky" => AUTH_MOD, - "auth_announce" => AUTH_MOD, - "auth_vote" => AUTH_REG, - "auth_pollcreate" => AUTH_REG -); - -// -// Mode setting -// -if( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) ) -{ - $mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; - $mode = htmlspecialchars($mode); -} -else -{ - $mode = ""; -} - -// ------------------ -// Begin function block -// -function get_info($mode, $id) -{ - global $db; - - switch($mode) - { - case 'category': - $table = CATEGORIES_TABLE; - $idfield = 'cat_id'; - $namefield = 'cat_title'; - break; - - case 'forum': - $table = FORUMS_TABLE; - $idfield = 'forum_id'; - $namefield = 'forum_name'; - break; - - default: - message_die(GENERAL_ERROR, "Wrong mode for generating select list", "", __LINE__, __FILE__); - break; - } - $sql = "SELECT count(*) as total - FROM $table"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get Forum/Category information", "", __LINE__, __FILE__, $sql); - } - $count = $db->sql_fetchrow($result); - $count = $count['total']; - - $sql = "SELECT * - FROM $table - WHERE $idfield = $id"; - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get Forum/Category information", "", __LINE__, __FILE__, $sql); - } - - if( $db->sql_numrows($result) != 1 ) - { - message_die(GENERAL_ERROR, "Forum/Category doesn't exist or multiple forums/categories with ID $id", "", __LINE__, __FILE__); - } - - $return = $db->sql_fetchrow($result); - $return['number'] = $count; - return $return; -} - -function get_list($mode, $id, $select) -{ - global $db; - - switch($mode) - { - case 'category': - $table = CATEGORIES_TABLE; - $idfield = 'cat_id'; - $namefield = 'cat_title'; - break; - - case 'forum': - $table = FORUMS_TABLE; - $idfield = 'forum_id'; - $namefield = 'forum_name'; - break; - - default: - message_die(GENERAL_ERROR, "Wrong mode for generating select list", "", __LINE__, __FILE__); - break; - } - - $sql = "SELECT * - FROM $table"; - if( $select == 0 ) - { - $sql .= " WHERE $idfield <> $id"; - } - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get list of Categories/Forums", "", __LINE__, __FILE__, $sql); - } - - $cat_list = ""; - - while( $row = $db->sql_fetchrow($result) ) - { - $s = ""; - if ($row[$idfield] == $id) - { - $s = " selected=\"selected\""; - } - $catlist .= "\n"; - } - - return($catlist); -} - -function renumber_order($mode, $cat = 0) -{ - global $db; - - switch($mode) - { - case 'category': - $table = CATEGORIES_TABLE; - $idfield = 'cat_id'; - $orderfield = 'cat_order'; - $cat = 0; - break; - - case 'forum': - $table = FORUMS_TABLE; - $idfield = 'forum_id'; - $orderfield = 'forum_order'; - $catfield = 'cat_id'; - break; - - default: - message_die(GENERAL_ERROR, "Wrong mode for generating select list", "", __LINE__, __FILE__); - break; - } - - $sql = "SELECT * FROM $table"; - if( $cat != 0) - { - $sql .= " WHERE $catfield = $cat"; - } - $sql .= " ORDER BY $orderfield ASC"; - - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get list of Categories", "", __LINE__, __FILE__, $sql); - } - - $i = 10; - $inc = 10; - - while( $row = $db->sql_fetchrow($result) ) - { - $sql = "UPDATE $table - SET $orderfield = $i - WHERE $idfield = " . $row[$idfield]; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't update order fields", "", __LINE__, __FILE__, $sql); - } - $i += 10; - } - -} -// -// End function block -// ------------------ - -// -// Begin program proper -// -if( isset($HTTP_POST_VARS['addforum']) || isset($HTTP_POST_VARS['addcategory']) ) -{ - $mode = ( isset($HTTP_POST_VARS['addforum']) ) ? "addforum" : "addcat"; - - if( $mode == "addforum" ) - { - list($cat_id) = each($HTTP_POST_VARS['addforum']); - // - // stripslashes needs to be run on this because slashes are added when the forum name is posted - // - $forumname = stripslashes($HTTP_POST_VARS['forumname'][$cat_id]); - } -} - -if( !empty($mode) ) -{ - switch($mode) - { - case 'addforum': - case 'editforum': - // - // Show form to create/modify a forum - // - if ($mode == 'editforum') - { - // $newmode determines if we are going to INSERT or UPDATE after posting? - - $l_title = $lang['Edit_forum']; - $newmode = 'modforum'; - $buttonvalue = $lang['Update']; - - $forum_id = intval($HTTP_GET_VARS[POST_FORUM_URL]); - - $row = get_info('forum', $forum_id); - - $cat_id = $row['cat_id']; - $forumname = $row['forum_name']; - $forumdesc = $row['forum_desc']; - $forumstatus = $row['forum_status']; - - // - // start forum prune stuff. - // - if( $row['prune_enable'] ) - { - $prune_enabled = "checked=\"checked\""; - $sql = "SELECT * - FROM " . PRUNE_TABLE . " - WHERE forum_id = $forum_id"; - if(!$pr_result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Auto-Prune: Couldn't read auto_prune table.", __LINE__, __FILE__); - } - - $pr_row = $db->sql_fetchrow($pr_result); - } - else - { - $prune_enabled = ''; - } - } - else - { - $l_title = $lang['Create_forum']; - $newmode = 'createforum'; - $buttonvalue = $lang['Create_forum']; - - $forumdesc = ''; - $forumstatus = FORUM_UNLOCKED; - $forum_id = ''; - $prune_enabled = ''; - } - - $catlist = get_list('category', $cat_id, TRUE); - - $forumstatus == ( FORUM_LOCKED ) ? $forumlocked = "selected=\"selected\"" : $forumunlocked = "selected=\"selected\""; - - // These two options ($lang['Status_unlocked'] and $lang['Status_locked']) seem to be missing from - // the language files. - $lang['Status_unlocked'] = isset($lang['Status_unlocked']) ? $lang['Status_unlocked'] : 'Unlocked'; - $lang['Status_locked'] = isset($lang['Status_locked']) ? $lang['Status_locked'] : 'Locked'; - - $statuslist = "\n"; - $statuslist .= "\n"; - - $template->set_filenames(array( - "body" => "admin/forum_edit_body.tpl") - ); - - $s_hidden_fields = ''; - - $template->assign_vars(array( - 'S_FORUM_ACTION' => append_sid("admin_forums.$phpEx"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_SUBMIT_VALUE' => $buttonvalue, - 'S_CAT_LIST' => $catlist, - 'S_STATUS_LIST' => $statuslist, - 'S_PRUNE_ENABLED' => $prune_enabled, - - 'L_FORUM_TITLE' => $l_title, - 'L_FORUM_EXPLAIN' => $lang['Forum_edit_delete_explain'], - 'L_FORUM_SETTINGS' => $lang['Forum_settings'], - 'L_FORUM_NAME' => $lang['Forum_name'], - 'L_CATEGORY' => $lang['Category'], - 'L_FORUM_DESCRIPTION' => $lang['Forum_desc'], - 'L_FORUM_STATUS' => $lang['Forum_status'], - 'L_AUTO_PRUNE' => $lang['Forum_pruning'], - 'L_ENABLED' => $lang['Enabled'], - 'L_PRUNE_DAYS' => $lang['prune_days'], - 'L_PRUNE_FREQ' => $lang['prune_freq'], - 'L_DAYS' => $lang['Days'], - - 'PRUNE_DAYS' => ( isset($pr_row['prune_days']) ) ? $pr_row['prune_days'] : 7, - 'PRUNE_FREQ' => ( isset($pr_row['prune_freq']) ) ? $pr_row['prune_freq'] : 1, - 'FORUM_NAME' => $forumname, - 'DESCRIPTION' => $forumdesc) - ); - $template->pparse("body"); - break; - - case 'createforum': - // - // Create a forum in the DB - // - if( trim($HTTP_POST_VARS['forumname']) == "" ) - { - message_die(GENERAL_ERROR, "Can't create a forum without a name"); - } - - $sql = "SELECT MAX(forum_order) AS max_order - FROM " . FORUMS_TABLE . " - WHERE cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]); - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get order number from forums table", "", __LINE__, __FILE__, $sql); - } - $row = $db->sql_fetchrow($result); - - $max_order = $row['max_order']; - $next_order = $max_order + 10; - - $sql = "SELECT MAX(forum_id) AS max_id - FROM " . FORUMS_TABLE; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get order number from forums table", "", __LINE__, __FILE__, $sql); - } - $row = $db->sql_fetchrow($result); - - $max_id = $row['max_id']; - $next_id = $max_id + 1; - - // - // Default permissions of public :: - // - $field_sql = ""; - $value_sql = ""; - while( list($field, $value) = each($forum_auth_ary) ) - { - $field_sql .= ", $field"; - $value_sql .= ", $value"; - - } - - // There is no problem having duplicate forum names so we won't check for it. - $sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable" . $field_sql . ") - VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't insert row in forums table", "", __LINE__, __FILE__, $sql); - } - - if( $HTTP_POST_VARS['prune_enable'] ) - { - - if( $HTTP_POST_VARS['prune_days'] == "" || $HTTP_POST_VARS['prune_freq'] == "") - { - message_die(GENERAL_MESSAGE, $lang['Set_prune_data']); - } - - $sql = "INSERT INTO " . PRUNE_TABLE . " (forum_id, prune_days, prune_freq) - VALUES('" . $next_id . "', " . intval($HTTP_POST_VARS['prune_days']) . ", " . intval($HTTP_POST_VARS['prune_freq']) . ")"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't insert row in prune table", "", __LINE__, __FILE__, $sql); - } - } - - $message = $lang['Forums_updated'] . "

    " . sprintf($lang['Click_return_forumadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - break; - - case 'modforum': - // Modify a forum in the DB - if( isset($HTTP_POST_VARS['prune_enable'])) - { - if( $HTTP_POST_VARS['prune_enable'] != 1 ) - { - $HTTP_POST_VARS['prune_enable'] = 0; - } - } - - $sql = "UPDATE " . FORUMS_TABLE . " - SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . " - WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]); - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't update forum information", "", __LINE__, __FILE__, $sql); - } - - if( $HTTP_POST_VARS['prune_enable'] == 1 ) - { - if( $HTTP_POST_VARS['prune_days'] == "" || $HTTP_POST_VARS['prune_freq'] == "" ) - { - message_die(GENERAL_MESSAGE, $lang['Set_prune_data']); - } - - $sql = "SELECT * - FROM " . PRUNE_TABLE . " - WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]); - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get forum Prune Information","",__LINE__, __FILE__, $sql); - } - - if( $db->sql_numrows($result) > 0 ) - { - $sql = "UPDATE " . PRUNE_TABLE . " - SET prune_days = " . intval($HTTP_POST_VARS['prune_days']) . ", prune_freq = " . intval($HTTP_POST_VARS['prune_freq']) . " - WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]); - } - else - { - $sql = "INSERT INTO " . PRUNE_TABLE . " (forum_id, prune_days, prune_freq) - VALUES(" . intval($HTTP_POST_VARS[POST_FORUM_URL]) . ", " . intval($HTTP_POST_VARS['prune_days']) . ", " . intval($HTTP_POST_VARS['prune_freq']) . ")"; - } - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't Update Forum Prune Information","",__LINE__, __FILE__, $sql); - } - } - - $message = $lang['Forums_updated'] . "

    " . sprintf($lang['Click_return_forumadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - break; - - case 'addcat': - // Create a category in the DB - if( trim($HTTP_POST_VARS['categoryname']) == '') - { - message_die(GENERAL_ERROR, "Can't create a category without a name"); - } - - $sql = "SELECT MAX(cat_order) AS max_order - FROM " . CATEGORIES_TABLE; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get order number from categories table", "", __LINE__, __FILE__, $sql); - } - $row = $db->sql_fetchrow($result); - - $max_order = $row['max_order']; - $next_order = $max_order + 10; - - // - // There is no problem having duplicate forum names so we won't check for it. - // - $sql = "INSERT INTO " . CATEGORIES_TABLE . " (cat_title, cat_order) - VALUES ('" . str_replace("\'", "''", $HTTP_POST_VARS['categoryname']) . "', $next_order)"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't insert row in categories table", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Forums_updated'] . "

    " . sprintf($lang['Click_return_forumadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - break; - - case 'editcat': - // - // Show form to edit a category - // - $newmode = 'modcat'; - $buttonvalue = $lang['Update']; - - $cat_id = intval($HTTP_GET_VARS[POST_CAT_URL]); - - $row = get_info('category', $cat_id); - $cat_title = $row['cat_title']; - - $template->set_filenames(array( - "body" => "admin/category_edit_body.tpl") - ); - - $s_hidden_fields = ''; - - $template->assign_vars(array( - 'CAT_TITLE' => $cat_title, - - 'L_EDIT_CATEGORY' => $lang['Edit_Category'], - 'L_EDIT_CATEGORY_EXPLAIN' => $lang['Edit_Category_explain'], - 'L_CATEGORY' => $lang['Category'], - - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_SUBMIT_VALUE' => $buttonvalue, - 'S_FORUM_ACTION' => append_sid("admin_forums.$phpEx")) - ); - - $template->pparse("body"); - break; - - case 'modcat': - // Modify a category in the DB - $sql = "UPDATE " . CATEGORIES_TABLE . " - SET cat_title = '" . str_replace("\'", "''", $HTTP_POST_VARS['cat_title']) . "' - WHERE cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]); - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't update forum information", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Forums_updated'] . "

    " . sprintf($lang['Click_return_forumadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - break; - - case 'deleteforum': - // Show form to delete a forum - $forum_id = intval($HTTP_GET_VARS[POST_FORUM_URL]); - - $select_to = ''; - - $buttonvalue = $lang['Move_and_Delete']; - - $newmode = 'movedelforum'; - - $foruminfo = get_info('forum', $forum_id); - $name = $foruminfo['forum_name']; - - $template->set_filenames(array( - "body" => "admin/forum_delete_body.tpl") - ); - - $s_hidden_fields = ''; - - $template->assign_vars(array( - 'NAME' => $name, - - 'L_FORUM_DELETE' => $lang['Forum_delete'], - 'L_FORUM_DELETE_EXPLAIN' => $lang['Forum_delete_explain'], - 'L_MOVE_CONTENTS' => $lang['Move_contents'], - 'L_FORUM_NAME' => $lang['Forum_name'], - - "S_HIDDEN_FIELDS" => $s_hidden_fields, - 'S_FORUM_ACTION' => append_sid("admin_forums.$phpEx"), - 'S_SELECT_TO' => $select_to, - 'S_SUBMIT_VALUE' => $buttonvalue) - ); - - $template->pparse("body"); - break; - - case 'movedelforum': - // - // Move or delete a forum in the DB - // - $from_id = intval($HTTP_POST_VARS['from_id']); - $to_id = intval($HTTP_POST_VARS['to_id']); - $delete_old = intval($HTTP_POST_VARS['delete_old']); - - // Either delete or move all posts in a forum - if($to_id == -1) - { - // Delete polls in this forum - $sql = "SELECT v.vote_id - FROM " . VOTE_DESC_TABLE . " v, " . TOPICS_TABLE . " t - WHERE t.forum_id = $from_id - AND v.topic_id = t.topic_id"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, "Couldn't obtain list of vote ids", "", __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - $vote_ids = ''; - do - { - $vote_ids = (($vote_ids != '') ? ', ' : '') . $row['vote_id']; - } - while ($row = $db->sql_fetchrow($result)); - - $sql = "DELETE FROM " . VOTE_DESC_TABLE . " - WHERE vote_id IN ($vote_ids)"; - $db->sql_query($sql); - - $sql = "DELETE FROM " . VOTE_RESULTS_TABLE . " - WHERE vote_id IN ($vote_ids)"; - $db->sql_query($sql); - - $sql = "DELETE FROM " . VOTE_USERS_TABLE . " - WHERE vote_id IN ($vote_ids)"; - $db->sql_query($sql); - } - $db->sql_freeresult($result); - - include($phpbb_root_path . "includes/prune.$phpEx"); - prune($from_id, 0, true); // Delete everything from forum - } - else - { - $sql = "SELECT * - FROM " . FORUMS_TABLE . " - WHERE forum_id IN ($from_id, $to_id)"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't verify existence of forums", "", __LINE__, __FILE__, $sql); - } - - if($db->sql_numrows($result) != 2) - { - message_die(GENERAL_ERROR, "Ambiguous forum ID's", "", __LINE__, __FILE__); - } - $sql = "UPDATE " . TOPICS_TABLE . " - SET forum_id = $to_id - WHERE forum_id = $from_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't move topics to other forum", "", __LINE__, __FILE__, $sql); - } - $sql = "UPDATE " . POSTS_TABLE . " - SET forum_id = $to_id - WHERE forum_id = $from_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't move posts to other forum", "", __LINE__, __FILE__, $sql); - } - sync('forum', $to_id); - } - - // Alter Mod level if appropriate - 2.0.4 - $sql = "SELECT ug.user_id - FROM " . AUTH_ACCESS_TABLE . " a, " . USER_GROUP_TABLE . " ug - WHERE a.forum_id <> $from_id - AND a.auth_mod = 1 - AND ug.group_id = a.group_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain moderator list", "", __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - $user_ids = ''; - do - { - $user_ids .= (($user_ids != '') ? ', ' : '' ) . $row['user_id']; - } - while ($row = $db->sql_fetchrow($result)); - - $sql = "SELECT ug.user_id - FROM " . AUTH_ACCESS_TABLE . " a, " . USER_GROUP_TABLE . " ug - WHERE a.forum_id = $from_id - AND a.auth_mod = 1 - AND ug.group_id = a.group_id - AND ug.user_id NOT IN ($user_ids)"; - if( !$result2 = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain moderator list", "", __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result2)) - { - $user_ids = ''; - do - { - $user_ids .= (($user_ids != '') ? ', ' : '' ) . $row['user_id']; - } - while ($row = $db->sql_fetchrow($result2)); - - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . USER . " - WHERE user_id IN ($user_ids) - AND user_level <> " . ADMIN; - $db->sql_query($sql); - } - $db->sql_freeresult($result); - - } - $db->sql_freeresult($result2); - - $sql = "DELETE FROM " . FORUMS_TABLE . " - WHERE forum_id = $from_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete forum", "", __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " - WHERE forum_id = $from_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete forum", "", __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . PRUNE_TABLE . " - WHERE forum_id = $from_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete forum prune information!", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Forums_updated'] . "

    " . sprintf($lang['Click_return_forumadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - break; - - case 'deletecat': - // - // Show form to delete a category - // - $cat_id = intval($HTTP_GET_VARS[POST_CAT_URL]); - - $buttonvalue = $lang['Move_and_Delete']; - $newmode = 'movedelcat'; - $catinfo = get_info('category', $cat_id); - $name = $catinfo['cat_title']; - - if ($catinfo['number'] == 1) - { - $sql = "SELECT count(*) as total - FROM ". FORUMS_TABLE; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get Forum count", "", __LINE__, __FILE__, $sql); - } - $count = $db->sql_fetchrow($result); - $count = $count['total']; - - if ($count > 0) - { - message_die(GENERAL_ERROR, $lang['Must_delete_forums']); - } - else - { - $select_to = $lang['Nowhere_to_move']; - } - } - else - { - $select_to = ''; - } - - $template->set_filenames(array( - "body" => "admin/forum_delete_body.tpl") - ); - - $s_hidden_fields = ''; - - $template->assign_vars(array( - 'NAME' => $name, - - 'L_FORUM_DELETE' => $lang['Forum_delete'], - 'L_FORUM_DELETE_EXPLAIN' => $lang['Forum_delete_explain'], - 'L_MOVE_CONTENTS' => $lang['Move_contents'], - 'L_FORUM_NAME' => $lang['Forum_name'], - - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_FORUM_ACTION' => append_sid("admin_forums.$phpEx"), - 'S_SELECT_TO' => $select_to, - 'S_SUBMIT_VALUE' => $buttonvalue) - ); - - $template->pparse("body"); - break; - - case 'movedelcat': - // - // Move or delete a category in the DB - // - $from_id = intval($HTTP_POST_VARS['from_id']); - $to_id = intval($HTTP_POST_VARS['to_id']); - - if (!empty($to_id)) - { - $sql = "SELECT * - FROM " . CATEGORIES_TABLE . " - WHERE cat_id IN ($from_id, $to_id)"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't verify existence of categories", "", __LINE__, __FILE__, $sql); - } - if($db->sql_numrows($result) != 2) - { - message_die(GENERAL_ERROR, "Ambiguous category ID's", "", __LINE__, __FILE__); - } - - $sql = "UPDATE " . FORUMS_TABLE . " - SET cat_id = $to_id - WHERE cat_id = $from_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't move forums to other category", "", __LINE__, __FILE__, $sql); - } - } - - $sql = "DELETE FROM " . CATEGORIES_TABLE ." - WHERE cat_id = $from_id"; - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete category", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Forums_updated'] . "

    " . sprintf($lang['Click_return_forumadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - break; - - case 'forum_order': - // - // Change order of forums in the DB - // - $move = intval($HTTP_GET_VARS['move']); - $forum_id = intval($HTTP_GET_VARS[POST_FORUM_URL]); - - $forum_info = get_info('forum', $forum_id); - - $cat_id = $forum_info['cat_id']; - - $sql = "UPDATE " . FORUMS_TABLE . " - SET forum_order = forum_order + $move - WHERE forum_id = $forum_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't change category order", "", __LINE__, __FILE__, $sql); - } - - renumber_order('forum', $forum_info['cat_id']); - $show_index = TRUE; - - break; - - case 'cat_order': - // - // Change order of categories in the DB - // - $move = intval($HTTP_GET_VARS['move']); - $cat_id = intval($HTTP_GET_VARS[POST_CAT_URL]); - - $sql = "UPDATE " . CATEGORIES_TABLE . " - SET cat_order = cat_order + $move - WHERE cat_id = $cat_id"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't change category order", "", __LINE__, __FILE__, $sql); - } - - renumber_order('category'); - $show_index = TRUE; - - break; - - case 'forum_sync': - sync('forum', intval($HTTP_GET_VARS[POST_FORUM_URL])); - $show_index = TRUE; - - break; - - default: - message_die(GENERAL_MESSAGE, $lang['No_mode']); - break; - } - - if ($show_index != TRUE) - { - include('./page_footer_admin.'.$phpEx); - exit; - } -} - -// -// Start page proper -// -$template->set_filenames(array( - "body" => "admin/forum_admin_body.tpl") -); - -$template->assign_vars(array( - 'S_FORUM_ACTION' => append_sid("admin_forums.$phpEx"), - 'L_FORUM_TITLE' => $lang['Forum_admin'], - 'L_FORUM_EXPLAIN' => $lang['Forum_admin_explain'], - 'L_CREATE_FORUM' => $lang['Create_forum'], - 'L_CREATE_CATEGORY' => $lang['Create_category'], - 'L_EDIT' => $lang['Edit'], - 'L_DELETE' => $lang['Delete'], - 'L_MOVE_UP' => $lang['Move_up'], - 'L_MOVE_DOWN' => $lang['Move_down'], - 'L_RESYNC' => $lang['Resync']) -); - -$sql = "SELECT cat_id, cat_title, cat_order - FROM " . CATEGORIES_TABLE . " - ORDER BY cat_order"; -if( !$q_categories = $db->sql_query($sql) ) -{ - message_die(GENERAL_ERROR, "Could not query categories list", "", __LINE__, __FILE__, $sql); -} - -if( $total_categories = $db->sql_numrows($q_categories) ) -{ - $category_rows = $db->sql_fetchrowset($q_categories); - - $sql = "SELECT * - FROM " . FORUMS_TABLE . " - ORDER BY cat_id, forum_order"; - if(!$q_forums = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not query forums information", "", __LINE__, __FILE__, $sql); - } - - if( $total_forums = $db->sql_numrows($q_forums) ) - { - $forum_rows = $db->sql_fetchrowset($q_forums); - } - - // - // Okay, let's build the index - // - $gen_cat = array(); - - for($i = 0; $i < $total_categories; $i++) - { - $cat_id = $category_rows[$i]['cat_id']; - - $template->assign_block_vars("catrow", array( - 'S_ADD_FORUM_SUBMIT' => "addforum[$cat_id]", - 'S_ADD_FORUM_NAME' => "forumname[$cat_id]", - - 'CAT_ID' => $cat_id, - 'CAT_DESC' => $category_rows[$i]['cat_title'], - - 'U_CAT_EDIT' => append_sid("admin_forums.$phpEx?mode=editcat&" . POST_CAT_URL . "=$cat_id"), - 'U_CAT_DELETE' => append_sid("admin_forums.$phpEx?mode=deletecat&" . POST_CAT_URL . "=$cat_id"), - 'U_CAT_MOVE_UP' => append_sid("admin_forums.$phpEx?mode=cat_order&move=-15&" . POST_CAT_URL . "=$cat_id"), - 'U_CAT_MOVE_DOWN' => append_sid("admin_forums.$phpEx?mode=cat_order&move=15&" . POST_CAT_URL . "=$cat_id"), - 'U_VIEWCAT' => append_sid($phpbb_root_path."index.$phpEx?" . POST_CAT_URL . "=$cat_id")) - ); - - for($j = 0; $j < $total_forums; $j++) - { - $forum_id = $forum_rows[$j]['forum_id']; - - if ($forum_rows[$j]['cat_id'] == $cat_id) - { - - $template->assign_block_vars("catrow.forumrow", array( - 'FORUM_NAME' => $forum_rows[$j]['forum_name'], - 'FORUM_DESC' => $forum_rows[$j]['forum_desc'], - 'ROW_COLOR' => $row_color, - 'NUM_TOPICS' => $forum_rows[$j]['forum_topics'], - 'NUM_POSTS' => $forum_rows[$j]['forum_posts'], - - 'U_VIEWFORUM' => append_sid($phpbb_root_path."viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"), - 'U_FORUM_EDIT' => append_sid("admin_forums.$phpEx?mode=editforum&" . POST_FORUM_URL . "=$forum_id"), - 'U_FORUM_DELETE' => append_sid("admin_forums.$phpEx?mode=deleteforum&" . POST_FORUM_URL . "=$forum_id"), - 'U_FORUM_MOVE_UP' => append_sid("admin_forums.$phpEx?mode=forum_order&move=-15&" . POST_FORUM_URL . "=$forum_id"), - 'U_FORUM_MOVE_DOWN' => append_sid("admin_forums.$phpEx?mode=forum_order&move=15&" . POST_FORUM_URL . "=$forum_id"), - 'U_FORUM_RESYNC' => append_sid("admin_forums.$phpEx?mode=forum_sync&" . POST_FORUM_URL . "=$forum_id")) - ); - - }// if ... forumid == catid - - } // for ... forums - - } // for ... categories - -}// if ... total_categories - -$template->pparse("body"); - -include('./page_footer_admin.'.$phpEx); - -?> diff --git a/phpBB2_old/admin/admin_groups.php b/phpBB2_old/admin/admin_groups.php deleted file mode 100644 index eace9d7..0000000 --- a/phpBB2_old/admin/admin_groups.php +++ /dev/null @@ -1,412 +0,0 @@ -set_filenames(array( - 'body' => 'admin/group_edit_body.tpl') - ); - - if ( isset($HTTP_POST_VARS['edit']) ) - { - // - // They're editing. Grab the vars. - // - $sql = "SELECT * - FROM " . GROUPS_TABLE . " - WHERE group_single_user <> " . TRUE . " - AND group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql); - } - - if ( !($group_info = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_MESSAGE, $lang['Group_not_exist']); - } - - $mode = 'editgroup'; - $template->assign_block_vars('group_edit', array()); - - } - else if ( isset($HTTP_POST_VARS['new']) ) - { - $group_info = array ( - 'group_name' => '', - 'group_description' => '', - 'group_moderator' => '', - 'group_type' => GROUP_OPEN); - $group_open = ' checked="checked"'; - - $mode = 'newgroup'; - - } - - // - // Ok, now we know everything about them, let's show the page. - // - $sql = "SELECT user_id, username - FROM " . USERS_TABLE . " - WHERE user_id <> " . ANONYMOUS . " - ORDER BY username"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user info for moderator list', '', __LINE__, __FILE__, $sql); - } - - while ( $row = $db->sql_fetchrow($result) ) - { - if ( $row['user_id'] == $group_info['group_moderator'] ) - { - $group_moderator = $row['username']; - } - } - - $group_open = ( $group_info['group_type'] == GROUP_OPEN ) ? ' checked="checked"' : ''; - $group_closed = ( $group_info['group_type'] == GROUP_CLOSED ) ? ' checked="checked"' : ''; - $group_hidden = ( $group_info['group_type'] == GROUP_HIDDEN ) ? ' checked="checked"' : ''; - - $s_hidden_fields = ''; - - $template->assign_vars(array( - 'GROUP_NAME' => $group_info['group_name'], - 'GROUP_DESCRIPTION' => $group_info['group_description'], - 'GROUP_MODERATOR' => $group_moderator, - - 'L_GROUP_TITLE' => $lang['Group_administration'], - 'L_GROUP_EDIT_DELETE' => ( isset($HTTP_POST_VARS['new']) ) ? $lang['New_group'] : $lang['Edit_group'], - 'L_GROUP_NAME' => $lang['group_name'], - 'L_GROUP_DESCRIPTION' => $lang['group_description'], - 'L_GROUP_MODERATOR' => $lang['group_moderator'], - 'L_FIND_USERNAME' => $lang['Find_username'], - 'L_GROUP_STATUS' => $lang['group_status'], - 'L_GROUP_OPEN' => $lang['group_open'], - 'L_GROUP_CLOSED' => $lang['group_closed'], - 'L_GROUP_HIDDEN' => $lang['group_hidden'], - 'L_GROUP_DELETE' => $lang['group_delete'], - 'L_GROUP_DELETE_CHECK' => $lang['group_delete_check'], - 'L_SUBMIT' => $lang['Submit'], - 'L_RESET' => $lang['Reset'], - 'L_DELETE_MODERATOR' => $lang['delete_group_moderator'], - 'L_DELETE_MODERATOR_EXPLAIN' => $lang['delete_moderator_explain'], - 'L_YES' => $lang['Yes'], - - 'U_SEARCH_USER' => append_sid("../search.$phpEx?mode=searchuser"), - - 'S_GROUP_OPEN_TYPE' => GROUP_OPEN, - 'S_GROUP_CLOSED_TYPE' => GROUP_CLOSED, - 'S_GROUP_HIDDEN_TYPE' => GROUP_HIDDEN, - 'S_GROUP_OPEN_CHECKED' => $group_open, - 'S_GROUP_CLOSED_CHECKED' => $group_closed, - 'S_GROUP_HIDDEN_CHECKED' => $group_hidden, - 'S_GROUP_ACTION' => append_sid("admin_groups.$phpEx"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); - - $template->pparse('body'); - -} -else if ( isset($HTTP_POST_VARS['group_update']) ) -{ - // - // Ok, they are submitting a group, let's save the data based on if it's new or editing - // - if ( isset($HTTP_POST_VARS['group_delete']) ) - { - // - // Reset User Moderator Level - // - - // Is Group moderating a forum ? - $sql = "SELECT auth_mod FROM " . AUTH_ACCESS_TABLE . " - WHERE group_id = " . $group_id; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select auth_access', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - if (intval($row['auth_mod']) == 1) - { - // Yes, get the assigned users and update their Permission if they are no longer moderator of one of the forums - $sql = "SELECT user_id FROM " . USER_GROUP_TABLE . " - WHERE group_id = " . $group_id; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select user_group', '', __LINE__, __FILE__, $sql); - } - - $rows = $db->sql_fetchrowset($result); - for ($i = 0; $i < count($rows); $i++) - { - $sql = "SELECT g.group_id FROM " . AUTH_ACCESS_TABLE . " a, " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug - WHERE (a.auth_mod = 1) AND (g.group_id = a.group_id) AND (a.group_id = ug.group_id) AND (g.group_id = ug.group_id) - AND (ug.user_id = " . intval($rows[$i]['user_id']) . ") AND (ug.group_id <> " . $group_id . ")"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain moderator permissions', '', __LINE__, __FILE__, $sql); - } - - if ($db->sql_numrows($result) == 0) - { - $sql = "UPDATE " . USERS_TABLE . " SET user_level = " . USER . " - WHERE user_level = " . MOD . " AND user_id = " . intval($rows[$i]['user_id']); - - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update moderator permissions', '', __LINE__, __FILE__, $sql); - } - } - } - } - - // - // Delete Group - // - $sql = "DELETE FROM " . GROUPS_TABLE . " - WHERE group_id = " . $group_id; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update group', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . USER_GROUP_TABLE . " - WHERE group_id = " . $group_id; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update user_group', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " - WHERE group_id = " . $group_id; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update auth_access', '', __LINE__, __FILE__, $sql); - } - - $message = $lang['Deleted_group'] . '

    ' . sprintf($lang['Click_return_groupsadmin'], '', '') . '

    ' . sprintf($lang['Click_return_admin_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - $group_type = isset($HTTP_POST_VARS['group_type']) ? intval($HTTP_POST_VARS['group_type']) : GROUP_OPEN; - $group_name = isset($HTTP_POST_VARS['group_name']) ? trim($HTTP_POST_VARS['group_name']) : ''; - $group_description = isset($HTTP_POST_VARS['group_description']) ? trim($HTTP_POST_VARS['group_description']) : ''; - $group_moderator = isset($HTTP_POST_VARS['username']) ? $HTTP_POST_VARS['username'] : ''; - $delete_old_moderator = isset($HTTP_POST_VARS['delete_old_moderator']) ? true : false; - - if ( $group_name == '' ) - { - message_die(GENERAL_MESSAGE, $lang['No_group_name']); - } - else if ( $group_moderator == '' ) - { - message_die(GENERAL_MESSAGE, $lang['No_group_moderator']); - } - - $this_userdata = get_userdata($group_moderator, true); - $group_moderator = $this_userdata['user_id']; - - if ( !$group_moderator ) - { - message_die(GENERAL_MESSAGE, $lang['No_group_moderator']); - } - - if( $mode == "editgroup" ) - { - $sql = "SELECT * - FROM " . GROUPS_TABLE . " - WHERE group_single_user <> " . TRUE . " - AND group_id = " . $group_id; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql); - } - - if( !($group_info = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_MESSAGE, $lang['Group_not_exist']); - } - - if ( $group_info['group_moderator'] != $group_moderator ) - { - if ( $delete_old_moderator ) - { - $sql = "DELETE FROM " . USER_GROUP_TABLE . " - WHERE user_id = " . $group_info['group_moderator'] . " - AND group_id = " . $group_id; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update group moderator', '', __LINE__, __FILE__, $sql); - } - } - - $sql = "SELECT user_id - FROM " . USER_GROUP_TABLE . " - WHERE user_id = $group_moderator - AND group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Failed to obtain current group moderator info', '', __LINE__, __FILE__, $sql); - } - - if ( !($row = $db->sql_fetchrow($result)) ) - { - $sql = "INSERT INTO " . USER_GROUP_TABLE . " (group_id, user_id, user_pending) - VALUES (" . $group_id . ", " . $group_moderator . ", 0)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update group moderator', '', __LINE__, __FILE__, $sql); - } - } - } - - $sql = "UPDATE " . GROUPS_TABLE . " - SET group_type = $group_type, group_name = '" . str_replace("\'", "''", $group_name) . "', group_description = '" . str_replace("\'", "''", $group_description) . "', group_moderator = $group_moderator - WHERE group_id = $group_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update group', '', __LINE__, __FILE__, $sql); - } - - $message = $lang['Updated_group'] . '

    ' . sprintf($lang['Click_return_groupsadmin'], '', '') . '

    ' . sprintf($lang['Click_return_admin_index'], '', '');; - - message_die(GENERAL_MESSAGE, $message); - } - else if( $mode == 'newgroup' ) - { - $sql = "INSERT INTO " . GROUPS_TABLE . " (group_type, group_name, group_description, group_moderator, group_single_user) - VALUES ($group_type, '" . str_replace("\'", "''", $group_name) . "', '" . str_replace("\'", "''", $group_description) . "', $group_moderator, '0')"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert new group', '', __LINE__, __FILE__, $sql); - } - $new_group_id = $db->sql_nextid(); - - $sql = "INSERT INTO " . USER_GROUP_TABLE . " (group_id, user_id, user_pending) - VALUES ($new_group_id, $group_moderator, 0)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert new user-group info', '', __LINE__, __FILE__, $sql); - } - - $message = $lang['Added_new_group'] . '

    ' . sprintf($lang['Click_return_groupsadmin'], '', '') . '

    ' . sprintf($lang['Click_return_admin_index'], '', '');; - - message_die(GENERAL_MESSAGE, $message); - - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_group_action']); - } - } -} -else -{ - $sql = "SELECT group_id, group_name - FROM " . GROUPS_TABLE . " - WHERE group_single_user <> " . TRUE . " - ORDER BY group_name"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain group list', '', __LINE__, __FILE__, $sql); - } - - $select_list = ''; - if ( $row = $db->sql_fetchrow($result) ) - { - $select_list .= ''; - } - - $template->set_filenames(array( - 'body' => 'admin/group_select_body.tpl') - ); - - $template->assign_vars(array( - 'L_GROUP_TITLE' => $lang['Group_administration'], - 'L_GROUP_EXPLAIN' => $lang['Group_admin_explain'], - 'L_GROUP_SELECT' => $lang['Select_group'], - 'L_LOOK_UP' => $lang['Look_up_group'], - 'L_CREATE_NEW_GROUP' => $lang['New_group'], - - 'S_GROUP_ACTION' => append_sid("admin_groups.$phpEx"), - 'S_GROUP_SELECT' => $select_list) - ); - - if ( $select_list != '' ) - { - $template->assign_block_vars('select_box', array()); - } - - $template->pparse('body'); -} - -include('./page_footer_admin.'.$phpEx); - -?> diff --git a/phpBB2_old/admin/admin_mass_email.php b/phpBB2_old/admin/admin_mass_email.php deleted file mode 100644 index fc70efe..0000000 --- a/phpBB2_old/admin/admin_mass_email.php +++ /dev/null @@ -1,213 +0,0 @@ -' . $lang['Empty_subject'] : $lang['Empty_subject']; - } - - if ( empty($message) ) - { - $error = true; - $error_msg .= ( !empty($error_msg) ) ? '
    ' . $lang['Empty_message'] : $lang['Empty_message']; - } - - $group_id = intval($HTTP_POST_VARS[POST_GROUPS_URL]); - - $sql = ( $group_id != -1 ) ? "SELECT u.user_email FROM " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " ug WHERE ug.group_id = $group_id AND ug.user_pending <> " . TRUE . " AND u.user_id = ug.user_id" : "SELECT user_email FROM " . USERS_TABLE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select group members', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $bcc_list = array(); - do - { - $bcc_list[] = $row['user_email']; - } - while ( $row = $db->sql_fetchrow($result) ); - - $db->sql_freeresult($result); - } - else - { - $message = ( $group_id != -1 ) ? $lang['Group_not_exist'] : $lang['No_such_user']; - - $error = true; - $error_msg .= ( !empty($error_msg) ) ? '
    ' . $message : $message; - } - - if ( !$error ) - { - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - - // - // Let's do some checking to make sure that mass mail functions - // are working in win32 versions of php. - // - if ( preg_match('/[c-z]:\\\.*/i', getenv('PATH')) && !$board_config['smtp_delivery']) - { - $ini_val = ( @phpversion() >= '4.0.0' ) ? 'ini_get' : 'get_cfg_var'; - - // We are running on windows, force delivery to use our smtp functions - // since php's are broken by default - $board_config['smtp_delivery'] = 1; - $board_config['smtp_host'] = @$ini_val('SMTP'); - } - - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - for ($i = 0; $i < count($bcc_list); $i++) - { - $emailer->bcc($bcc_list[$i]); - } - - $email_headers = 'X-AntiAbuse: Board servername - ' . $board_config['server_name'] . "\n"; - $email_headers .= 'X-AntiAbuse: User_id - ' . $userdata['user_id'] . "\n"; - $email_headers .= 'X-AntiAbuse: Username - ' . $userdata['username'] . "\n"; - $email_headers .= 'X-AntiAbuse: User IP - ' . decode_ip($user_ip) . "\n"; - - $emailer->use_template('admin_send_email'); - $emailer->email_address($board_config['board_email']); - $emailer->set_subject($subject); - $emailer->extra_headers($email_headers); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'BOARD_EMAIL' => $board_config['board_email'], - 'MESSAGE' => $message) - ); - $emailer->send(); - $emailer->reset(); - - message_die(GENERAL_MESSAGE, $lang['Email_sent'] . '

    ' . sprintf($lang['Click_return_admin_index'], '', '')); - } -} - -if ( $error ) -{ - $template->set_filenames(array( - 'reg_header' => 'error_body.tpl') - ); - $template->assign_vars(array( - 'ERROR_MESSAGE' => $error_msg) - ); - $template->assign_var_from_handle('ERROR_BOX', 'reg_header'); -} - -// -// Initial selection -// - -$sql = "SELECT group_id, group_name - FROM ".GROUPS_TABLE . " - WHERE group_single_user <> 1"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not obtain list of groups', '', __LINE__, __FILE__, $sql); -} - -$select_list = ''; - -// -// Generate page -// -include('./page_header_admin.'.$phpEx); - -$template->set_filenames(array( - 'body' => 'admin/user_email_body.tpl') -); - -$template->assign_vars(array( - 'MESSAGE' => $message, - 'SUBJECT' => $subject, - - 'L_EMAIL_TITLE' => $lang['Email'], - 'L_EMAIL_EXPLAIN' => $lang['Mass_email_explain'], - 'L_COMPOSE' => $lang['Compose'], - 'L_RECIPIENTS' => $lang['Recipients'], - 'L_EMAIL_SUBJECT' => $lang['Subject'], - 'L_EMAIL_MSG' => $lang['Message'], - 'L_EMAIL' => $lang['Email'], - 'L_NOTICE' => $notice, - - 'S_USER_ACTION' => append_sid('admin_mass_email.'.$phpEx), - 'S_GROUP_SELECT' => $select_list) -); - -$template->pparse('body'); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/admin_ranks.php b/phpBB2_old/admin/admin_ranks.php deleted file mode 100644 index bd6eb05..0000000 --- a/phpBB2_old/admin/admin_ranks.php +++ /dev/null @@ -1,376 +0,0 @@ -sql_query($sql)) - { - message_die(GENERAL_ERROR, "Couldn't obtain rank data", "", __LINE__, __FILE__, $sql); - } - - $rank_info = $db->sql_fetchrow($result); - $s_hidden_fields .= ''; - - } - else - { - $rank_info['rank_special'] = 0; - } - - $s_hidden_fields .= ''; - - $rank_is_special = ( $rank_info['rank_special'] ) ? "checked=\"checked\"" : ""; - $rank_is_not_special = ( !$rank_info['rank_special'] ) ? "checked=\"checked\"" : ""; - - $template->set_filenames(array( - "body" => "admin/ranks_edit_body.tpl") - ); - - $template->assign_vars(array( - "RANK" => $rank_info['rank_title'], - "SPECIAL_RANK" => $rank_is_special, - "NOT_SPECIAL_RANK" => $rank_is_not_special, - "MINIMUM" => ( $rank_is_special ) ? "" : $rank_info['rank_min'], - "IMAGE" => ( $rank_info['rank_image'] != "" ) ? $rank_info['rank_image'] : "", - "IMAGE_DISPLAY" => ( $rank_info['rank_image'] != "" ) ? '' : "", - - "L_RANKS_TITLE" => $lang['Ranks_title'], - "L_RANKS_TEXT" => $lang['Ranks_explain'], - "L_RANK_TITLE" => $lang['Rank_title'], - "L_RANK_SPECIAL" => $lang['Rank_special'], - "L_RANK_MINIMUM" => $lang['Rank_minimum'], - "L_RANK_IMAGE" => $lang['Rank_image'], - "L_RANK_IMAGE_EXPLAIN" => $lang['Rank_image_explain'], - "L_SUBMIT" => $lang['Submit'], - "L_RESET" => $lang['Reset'], - "L_YES" => $lang['Yes'], - "L_NO" => $lang['No'], - - "S_RANK_ACTION" => append_sid("admin_ranks.$phpEx"), - "S_HIDDEN_FIELDS" => $s_hidden_fields) - ); - - } - else if( $mode == "save" ) - { - // - // Ok, they sent us our info, let's update it. - // - - $rank_id = ( isset($HTTP_POST_VARS['id']) ) ? intval($HTTP_POST_VARS['id']) : 0; - $rank_title = ( isset($HTTP_POST_VARS['title']) ) ? trim($HTTP_POST_VARS['title']) : ""; - $special_rank = ( $HTTP_POST_VARS['special_rank'] == 1 ) ? TRUE : 0; - $min_posts = ( isset($HTTP_POST_VARS['min_posts']) ) ? intval($HTTP_POST_VARS['min_posts']) : -1; - $rank_image = ( (isset($HTTP_POST_VARS['rank_image'])) ) ? trim($HTTP_POST_VARS['rank_image']) : ""; - - if( $rank_title == "" ) - { - message_die(GENERAL_MESSAGE, $lang['Must_select_rank']); - } - - if( $special_rank == 1 ) - { - $max_posts = -1; - $min_posts = -1; - } - - // - // The rank image has to be a jpg, gif or png - // - if($rank_image != "") - { - if ( !preg_match("/(\.gif|\.png|\.jpg)$/is", $rank_image)) - { - $rank_image = ""; - } - } - - if ($rank_id) - { - if (!$special_rank) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_rank = 0 - WHERE user_rank = $rank_id"; - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, $lang['No_update_ranks'], "", __LINE__, __FILE__, $sql); - } - } - $sql = "UPDATE " . RANKS_TABLE . " - SET rank_title = '" . str_replace("\'", "''", $rank_title) . "', rank_special = $special_rank, rank_min = $min_posts, rank_image = '" . str_replace("\'", "''", $rank_image) . "' - WHERE rank_id = $rank_id"; - - $message = $lang['Rank_updated']; - } - else - { - $sql = "INSERT INTO " . RANKS_TABLE . " (rank_title, rank_special, rank_min, rank_image) - VALUES ('" . str_replace("\'", "''", $rank_title) . "', $special_rank, $min_posts, '" . str_replace("\'", "''", $rank_image) . "')"; - - $message = $lang['Rank_added']; - } - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't update/insert into ranks table", "", __LINE__, __FILE__, $sql); - } - - $message .= "

    " . sprintf($lang['Click_return_rankadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - } - else if( $mode == "delete" ) - { - // - // Ok, they want to delete their rank - // - - if( isset($HTTP_POST_VARS['id']) || isset($HTTP_GET_VARS['id']) ) - { - $rank_id = ( isset($HTTP_POST_VARS['id']) ) ? intval($HTTP_POST_VARS['id']) : intval($HTTP_GET_VARS['id']); - } - else - { - $rank_id = 0; - } - - if( $rank_id ) - { - $sql = "DELETE FROM " . RANKS_TABLE . " - WHERE rank_id = $rank_id"; - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete rank data", "", __LINE__, __FILE__, $sql); - } - - $sql = "UPDATE " . USERS_TABLE . " - SET user_rank = 0 - WHERE user_rank = $rank_id"; - - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, $lang['No_update_ranks'], "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Rank_removed'] . "

    " . sprintf($lang['Click_return_rankadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - } - else - { - message_die(GENERAL_MESSAGE, $lang['Must_select_rank']); - } - } - else - { - // - // They didn't feel like giving us any information. Oh, too bad, we'll just display the - // list then... - // - $template->set_filenames(array( - "body" => "admin/ranks_list_body.tpl") - ); - - $sql = "SELECT * FROM " . RANKS_TABLE . " - ORDER BY rank_min, rank_title"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain ranks data", "", __LINE__, __FILE__, $sql); - } - - $rank_rows = $db->sql_fetchrowset($result); - $rank_count = count($rank_rows); - - $template->assign_vars(array( - "L_RANKS_TITLE" => $lang['Ranks_title'], - "L_RANKS_TEXT" => $lang['Ranks_explain'], - "L_RANK" => $lang['Rank_title'], - "L_RANK_MINIMUM" => $lang['Rank_minimum'], - "L_SPECIAL_RANK" => $lang['Special_rank'], - "L_EDIT" => $lang['Edit'], - "L_DELETE" => $lang['Delete'], - "L_ADD_RANK" => $lang['Add_new_rank'], - "L_ACTION" => $lang['Action'], - - "S_RANKS_ACTION" => append_sid("admin_ranks.$phpEx")) - ); - - for( $i = 0; $i < $rank_count; $i++) - { - $rank = $rank_rows[$i]['rank_title']; - $special_rank = $rank_rows[$i]['rank_special']; - $rank_id = $rank_rows[$i]['rank_id']; - $rank_min = $rank_rows[$i]['rank_min']; - - if($special_rank) - { - $rank_min = $rank_max = "-"; - } - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars("ranks", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - "RANK" => $rank, - "RANK_MIN" => $rank_min, - - "SPECIAL_RANK" => ( $special_rank == 1 ) ? $lang['Yes'] : $lang['No'], - - "U_RANK_EDIT" => append_sid("admin_ranks.$phpEx?mode=edit&id=$rank_id"), - "U_RANK_DELETE" => append_sid("admin_ranks.$phpEx?mode=delete&id=$rank_id")) - ); - } - } -} -else -{ - // - // Show the default page - // - $template->set_filenames(array( - "body" => "admin/ranks_list_body.tpl") - ); - - $sql = "SELECT * FROM " . RANKS_TABLE . " - ORDER BY rank_min ASC, rank_special ASC"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain ranks data", "", __LINE__, __FILE__, $sql); - } - $rank_count = $db->sql_numrows($result); - - $rank_rows = $db->sql_fetchrowset($result); - - $template->assign_vars(array( - "L_RANKS_TITLE" => $lang['Ranks_title'], - "L_RANKS_TEXT" => $lang['Ranks_explain'], - "L_RANK" => $lang['Rank_title'], - "L_RANK_MINIMUM" => $lang['Rank_minimum'], - "L_SPECIAL_RANK" => $lang['Rank_special'], - "L_EDIT" => $lang['Edit'], - "L_DELETE" => $lang['Delete'], - "L_ADD_RANK" => $lang['Add_new_rank'], - "L_ACTION" => $lang['Action'], - - "S_RANKS_ACTION" => append_sid("admin_ranks.$phpEx")) - ); - - for($i = 0; $i < $rank_count; $i++) - { - $rank = $rank_rows[$i]['rank_title']; - $special_rank = $rank_rows[$i]['rank_special']; - $rank_id = $rank_rows[$i]['rank_id']; - $rank_min = $rank_rows[$i]['rank_min']; - - if( $special_rank == 1 ) - { - $rank_min = $rank_max = "-"; - } - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $rank_is_special = ( $special_rank ) ? $lang['Yes'] : $lang['No']; - - $template->assign_block_vars("ranks", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - "RANK" => $rank, - "SPECIAL_RANK" => $rank_is_special, - "RANK_MIN" => $rank_min, - - "U_RANK_EDIT" => append_sid("admin_ranks.$phpEx?mode=edit&id=$rank_id"), - "U_RANK_DELETE" => append_sid("admin_ranks.$phpEx?mode=delete&id=$rank_id")) - ); - } -} - -$template->pparse("body"); - -include('./page_footer_admin.'.$phpEx); - -?> diff --git a/phpBB2_old/admin/admin_smilies.php b/phpBB2_old/admin/admin_smilies.php deleted file mode 100644 index 18a6515..0000000 --- a/phpBB2_old/admin/admin_smilies.php +++ /dev/null @@ -1,556 +0,0 @@ -sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete current smilies", "", __LINE__, __FILE__, $sql); - } - } - else - { - $sql = "SELECT code - FROM ". SMILIES_TABLE; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't get current smilies", "", __LINE__, __FILE__, $sql); - } - - $cur_smilies = $db->sql_fetchrowset($result); - - for( $i = 0; $i < count($cur_smilies); $i++ ) - { - $k = $cur_smilies[$i]['code']; - $smiles[$k] = 1; - } - } - - $fcontents = @file($phpbb_root_path . $board_config['smilies_path'] . '/'. $smile_pak); - - if( empty($fcontents) ) - { - message_die(GENERAL_ERROR, "Couldn't read smiley pak file", "", __LINE__, __FILE__, $sql); - } - - for( $i = 0; $i < count($fcontents); $i++ ) - { - $smile_data = explode($delimeter, trim(addslashes($fcontents[$i]))); - - for( $j = 2; $j < count($smile_data); $j++) - { - // - // Replace > and < with the proper html_entities for matching. - // - $smile_data[$j] = str_replace("<", "<", $smile_data[$j]); - $smile_data[$j] = str_replace(">", ">", $smile_data[$j]); - $k = $smile_data[$j]; - - if( $smiles[$k] == 1 ) - { - if( !empty($replace_existing) ) - { - $sql = "UPDATE " . SMILIES_TABLE . " - SET smile_url = '" . str_replace("\'", "''", $smile_data[0]) . "', emoticon = '" . str_replace("\'", "''", $smile_data[1]) . "' - WHERE code = '" . str_replace("\'", "''", $smile_data[$j]) . "'"; - } - else - { - $sql = ''; - } - } - else - { - $sql = "INSERT INTO " . SMILIES_TABLE . " (code, smile_url, emoticon) - VALUES('" . str_replace("\'", "''", $smile_data[$j]) . "', '" . str_replace("\'", "''", $smile_data[0]) . "', '" . str_replace("\'", "''", $smile_data[1]) . "')"; - } - - if( $sql != '' ) - { - $result = $db->sql_query($sql); - if( !$result ) - { - message_die(GENERAL_ERROR, "Couldn't update smilies!", "", __LINE__, __FILE__, $sql); - } - } - } - } - - $message = $lang['smiley_import_success'] . "

    " . sprintf($lang['Click_return_smileadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - } - else - { - // - // Display the script to get the smile_pak cfg file... - // - $smile_paks_select = ""; - - $hidden_vars = ""; - - $template->set_filenames(array( - "body" => "admin/smile_import_body.tpl") - ); - - $template->assign_vars(array( - "L_SMILEY_TITLE" => $lang['smiley_title'], - "L_SMILEY_EXPLAIN" => $lang['smiley_import_inst'], - "L_SMILEY_IMPORT" => $lang['smiley_import'], - "L_SELECT_LBL" => $lang['choose_smile_pak'], - "L_IMPORT" => $lang['import'], - "L_CONFLICTS" => $lang['smile_conflicts'], - "L_DEL_EXISTING" => $lang['del_existing_smileys'], - "L_REPLACE_EXISTING" => $lang['replace_existing'], - "L_KEEP_EXISTING" => $lang['keep_existing'], - - "S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx"), - "S_SMILE_SELECT" => $smile_paks_select, - "S_HIDDEN_FIELDS" => $hidden_vars) - ); - - $template->pparse("body"); - } -} -else if( isset($HTTP_POST_VARS['export_pack']) || isset($HTTP_GET_VARS['export_pack']) ) -{ - // - // Export our smiley config as a smiley pak... - // - if ( $HTTP_GET_VARS['export_pack'] == "send" ) - { - $sql = "SELECT * - FROM " . SMILIES_TABLE; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Could not get smiley list", "", __LINE__, __FILE__, $sql); - } - - $resultset = $db->sql_fetchrowset($result); - - $smile_pak = ""; - for($i = 0; $i < count($resultset); $i++ ) - { - $smile_pak .= $resultset[$i]['smile_url'] . $delimeter; - $smile_pak .= $resultset[$i]['emoticon'] . $delimeter; - $smile_pak .= $resultset[$i]['code'] . "\n"; - } - - header("Content-Type: text/x-delimtext; name=\"smiles.pak\""); - header("Content-disposition: attachment; filename=smiles.pak"); - - echo $smile_pak; - - exit; - } - - $message = sprintf($lang['export_smiles'], "", "") . "

    " . sprintf($lang['Click_return_smileadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - -} -else if( isset($HTTP_POST_VARS['add']) || isset($HTTP_GET_VARS['add']) ) -{ - // - // Admin has selected to add a smiley. - // - - $template->set_filenames(array( - "body" => "admin/smile_edit_body.tpl") - ); - - $filename_list = ""; - for( $i = 0; $i < count($smiley_images); $i++ ) - { - $filename_list .= ''; - } - - $s_hidden_fields = ''; - - $template->assign_vars(array( - "L_SMILEY_TITLE" => $lang['smiley_title'], - "L_SMILEY_CONFIG" => $lang['smiley_config'], - "L_SMILEY_EXPLAIN" => $lang['smile_desc'], - "L_SMILEY_CODE" => $lang['smiley_code'], - "L_SMILEY_URL" => $lang['smiley_url'], - "L_SMILEY_EMOTION" => $lang['smiley_emot'], - "L_SUBMIT" => $lang['Submit'], - "L_RESET" => $lang['Reset'], - - "SMILEY_IMG" => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smiley_images[0], - - "S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx"), - "S_HIDDEN_FIELDS" => $s_hidden_fields, - "S_FILENAME_OPTIONS" => $filename_list, - "S_SMILEY_BASEDIR" => $phpbb_root_path . $board_config['smilies_path']) - ); - - $template->pparse("body"); -} -else if ( $mode != "" ) -{ - switch( $mode ) - { - case 'delete': - // - // Admin has selected to delete a smiley. - // - - $smiley_id = ( !empty($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id']; - $smiley_id = intval($smiley_id); - - $sql = "DELETE FROM " . SMILIES_TABLE . " - WHERE smilies_id = " . $smiley_id; - $result = $db->sql_query($sql); - if( !$result ) - { - message_die(GENERAL_ERROR, "Couldn't delete smiley", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['smiley_del_success'] . "

    " . sprintf($lang['Click_return_smileadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - break; - - case 'edit': - // - // Admin has selected to edit a smiley. - // - - $smiley_id = ( !empty($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id']; - $smiley_id = intval($smiley_id); - - $sql = "SELECT * - FROM " . SMILIES_TABLE . " - WHERE smilies_id = " . $smiley_id; - $result = $db->sql_query($sql); - if( !$result ) - { - message_die(GENERAL_ERROR, 'Could not obtain emoticon information', "", __LINE__, __FILE__, $sql); - } - $smile_data = $db->sql_fetchrow($result); - - $filename_list = ""; - for( $i = 0; $i < count($smiley_images); $i++ ) - { - if( $smiley_images[$i] == $smile_data['smile_url'] ) - { - $smiley_selected = "selected=\"selected\""; - $smiley_edit_img = $smiley_images[$i]; - } - else - { - $smiley_selected = ""; - } - - $filename_list .= ''; - } - - $template->set_filenames(array( - "body" => "admin/smile_edit_body.tpl") - ); - - $s_hidden_fields = ''; - - $template->assign_vars(array( - "SMILEY_CODE" => $smile_data['code'], - "SMILEY_EMOTICON" => $smile_data['emoticon'], - - "L_SMILEY_TITLE" => $lang['smiley_title'], - "L_SMILEY_CONFIG" => $lang['smiley_config'], - "L_SMILEY_EXPLAIN" => $lang['smile_desc'], - "L_SMILEY_CODE" => $lang['smiley_code'], - "L_SMILEY_URL" => $lang['smiley_url'], - "L_SMILEY_EMOTION" => $lang['smiley_emot'], - "L_SUBMIT" => $lang['Submit'], - "L_RESET" => $lang['Reset'], - - "SMILEY_IMG" => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smiley_edit_img, - - "S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx"), - "S_HIDDEN_FIELDS" => $s_hidden_fields, - "S_FILENAME_OPTIONS" => $filename_list, - "S_SMILEY_BASEDIR" => $phpbb_root_path . $board_config['smilies_path']) - ); - - $template->pparse("body"); - break; - - case "save": - // - // Admin has submitted changes while editing a smiley. - // - - // - // Get the submitted data, being careful to ensure that we only - // accept the data we are looking for. - // - $smile_code = ( isset($HTTP_POST_VARS['smile_code']) ) ? trim($HTTP_POST_VARS['smile_code']) : trim($HTTP_GET_VARS['smile_code']); - $smile_url = ( isset($HTTP_POST_VARS['smile_url']) ) ? trim($HTTP_POST_VARS['smile_url']) : trim($HTTP_GET_VARS['smile_url']); - $smile_emotion = ( isset($HTTP_POST_VARS['smile_emotion']) ) ? trim($HTTP_POST_VARS['smile_emotion']) : trim($HTTP_GET_VARS['smile_emotion']); - $smile_id = ( isset($HTTP_POST_VARS['smile_id']) ) ? intval($HTTP_POST_VARS['smile_id']) : intval($HTTP_GET_VARS['smile_id']); - - // If no code was entered complain ... - if ($smile_code == '' || $smile_url == '') - { - message_die(MESSAGE, $lang['Fields_empty']); - } - - // - // Convert < and > to proper htmlentities for parsing. - // - $smile_code = str_replace('<', '<', $smile_code); - $smile_code = str_replace('>', '>', $smile_code); - - // - // Proceed with updating the smiley table. - // - $sql = "UPDATE " . SMILIES_TABLE . " - SET code = '" . str_replace("\'", "''", $smile_code) . "', smile_url = '" . str_replace("\'", "''", $smile_url) . "', emoticon = '" . str_replace("\'", "''", $smile_emotion) . "' - WHERE smilies_id = $smile_id"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't update smilies info", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['smiley_edit_success'] . "

    " . sprintf($lang['Click_return_smileadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - break; - - case "savenew": - // - // Admin has submitted changes while adding a new smiley. - // - - // - // Get the submitted data being careful to ensure the the data - // we recieve and process is only the data we are looking for. - // - $smile_code = ( isset($HTTP_POST_VARS['smile_code']) ) ? $HTTP_POST_VARS['smile_code'] : $HTTP_GET_VARS['smile_code']; - $smile_url = ( isset($HTTP_POST_VARS['smile_url']) ) ? $HTTP_POST_VARS['smile_url'] : $HTTP_GET_VARS['smile_url']; - $smile_emotion = ( isset($HTTP_POST_VARS['smile_emotion']) ) ? $HTTP_POST_VARS['smile_emotion'] : $HTTP_GET_VARS['smile_emotion']; - - // If no code was entered complain ... - if ($smile_code == '' || $smile_url == '') - { - message_die(MESSAGE, $lang['Fields_empty']); - } - - // - // Convert < and > to proper htmlentities for parsing. - // - $smile_code = str_replace('<', '<', $smile_code); - $smile_code = str_replace('>', '>', $smile_code); - - // - // Save the data to the smiley table. - // - $sql = "INSERT INTO " . SMILIES_TABLE . " (code, smile_url, emoticon) - VALUES ('" . str_replace("\'", "''", $smile_code) . "', '" . str_replace("\'", "''", $smile_url) . "', '" . str_replace("\'", "''", $smile_emotion) . "')"; - $result = $db->sql_query($sql); - if( !$result ) - { - message_die(GENERAL_ERROR, "Couldn't insert new smiley", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['smiley_add_success'] . "

    " . sprintf($lang['Click_return_smileadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - break; - } -} -else -{ - - // - // This is the main display of the page before the admin has selected - // any options. - // - $sql = "SELECT * - FROM " . SMILIES_TABLE; - $result = $db->sql_query($sql); - if( !$result ) - { - message_die(GENERAL_ERROR, "Couldn't obtain smileys from database", "", __LINE__, __FILE__, $sql); - } - - $smilies = $db->sql_fetchrowset($result); - - $template->set_filenames(array( - "body" => "admin/smile_list_body.tpl") - ); - - $template->assign_vars(array( - "L_ACTION" => $lang['Action'], - "L_SMILEY_TITLE" => $lang['smiley_title'], - "L_SMILEY_TEXT" => $lang['smile_desc'], - "L_DELETE" => $lang['Delete'], - "L_EDIT" => $lang['Edit'], - "L_SMILEY_ADD" => $lang['smile_add'], - "L_CODE" => $lang['Code'], - "L_EMOT" => $lang['Emotion'], - "L_SMILE" => $lang['Smile'], - "L_IMPORT_PACK" => $lang['import_smile_pack'], - "L_EXPORT_PACK" => $lang['export_smile_pack'], - - "S_HIDDEN_FIELDS" => $s_hidden_fields, - "S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx")) - ); - - // - // Loop throuh the rows of smilies setting block vars for the template. - // - for($i = 0; $i < count($smilies); $i++) - { - // - // Replace htmlentites for < and > with actual character. - // - $smilies[$i]['code'] = str_replace('<', '<', $smilies[$i]['code']); - $smilies[$i]['code'] = str_replace('>', '>', $smilies[$i]['code']); - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars("smiles", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - - "SMILEY_IMG" => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smilies[$i]['smile_url'], - "CODE" => $smilies[$i]['code'], - "EMOT" => $smilies[$i]['emoticon'], - - "U_SMILEY_EDIT" => append_sid("admin_smilies.$phpEx?mode=edit&id=" . $smilies[$i]['smilies_id']), - "U_SMILEY_DELETE" => append_sid("admin_smilies.$phpEx?mode=delete&id=" . $smilies[$i]['smilies_id'])) - ); - } - - // - // Spit out the page. - // - $template->pparse("body"); -} - -// -// Page Footer -// -include('./page_footer_admin.'.$phpEx); - -?> diff --git a/phpBB2_old/admin/admin_styles.php b/phpBB2_old/admin/admin_styles.php deleted file mode 100644 index 2390216..0000000 --- a/phpBB2_old/admin/admin_styles.php +++ /dev/null @@ -1,940 +0,0 @@ -sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Could not insert theme data!", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Theme_installed'] . "

    " . sprintf($lang['Click_return_styleadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - - $installable_themes = array(); - - if( $dir = @opendir($phpbb_root_path. "templates/") ) - { - while( $sub_dir = @readdir($dir) ) - { - if( !is_file(phpbb_realpath($phpbb_root_path . 'templates/' .$sub_dir)) && !is_link(phpbb_realpath($phpbb_root_path . 'templates/' .$sub_dir)) && $sub_dir != "." && $sub_dir != ".." && $sub_dir != "CVS" ) - { - if( @file_exists(@phpbb_realpath($phpbb_root_path. "templates/" . $sub_dir . "/theme_info.cfg")) ) - { - include($phpbb_root_path. "templates/" . $sub_dir . "/theme_info.cfg"); - - for($i = 0; $i < count($$sub_dir); $i++) - { - $working_data = $$sub_dir; - - $style_name = $working_data[$i]['style_name']; - - $sql = "SELECT themes_id - FROM " . THEMES_TABLE . " - WHERE style_name = '" . str_replace("\'", "''", $style_name) . "'"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not query themes table!", "", __LINE__, __FILE__, $sql); - } - - if(!$db->sql_numrows($result)) - { - $installable_themes[] = $working_data[$i]; - } - } - } - } - } - - $template->set_filenames(array( - "body" => "admin/styles_addnew_body.tpl") - ); - - $template->assign_vars(array( - "L_STYLES_TITLE" => $lang['Styles_admin'], - "L_STYLES_ADD_TEXT" => $lang['Styles_addnew_explain'], - "L_STYLE" => $lang['Style'], - "L_TEMPLATE" => $lang['Template'], - "L_INSTALL" => $lang['Install'], - "L_ACTION" => $lang['Action']) - ); - - for($i = 0; $i < count($installable_themes); $i++) - { - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars("styles", array( - "ROW_CLASS" => $row_class, - "ROW_COLOR" => "#" . $row_color, - "STYLE_NAME" => $installable_themes[$i]['style_name'], - "TEMPLATE_NAME" => $installable_themes[$i]['template_name'], - - "U_STYLES_INSTALL" => append_sid("admin_styles.$phpEx?mode=addnew&style=" . urlencode($installable_themes[$i]['style_name']) . "&install_to=" . urlencode($installable_themes[$i]['template_name']))) - ); - - } - $template->pparse("body"); - - } - closedir($dir); - } - break; - - case "create": - case "edit": - $submit = ( isset($HTTP_POST_VARS['submit']) ) ? TRUE : 0; - - if( $submit ) - { - // - // DAMN! Thats alot of data to validate... - // - $updated['style_name'] = $HTTP_POST_VARS['style_name']; - $updated['template_name'] = $HTTP_POST_VARS['template_name']; - $updated['head_stylesheet'] = $HTTP_POST_VARS['head_stylesheet']; - $updated['body_background'] = $HTTP_POST_VARS['body_background']; - $updated['body_bgcolor'] = $HTTP_POST_VARS['body_bgcolor']; - $updated['body_text'] = $HTTP_POST_VARS['body_text']; - $updated['body_link'] = $HTTP_POST_VARS['body_link']; - $updated['body_vlink'] = $HTTP_POST_VARS['body_vlink']; - $updated['body_alink'] = $HTTP_POST_VARS['body_alink']; - $updated['body_hlink'] = $HTTP_POST_VARS['body_hlink']; - $updated['tr_color1'] = $HTTP_POST_VARS['tr_color1']; - $updated_name['tr_color1_name'] = $HTTP_POST_VARS['tr_color1_name']; - $updated['tr_color2'] = $HTTP_POST_VARS['tr_color2']; - $updated_name['tr_color2_name'] = $HTTP_POST_VARS['tr_color2_name']; - $updated['tr_color3'] = $HTTP_POST_VARS['tr_color3']; - $updated_name['tr_color3_name'] = $HTTP_POST_VARS['tr_color3_name']; - $updated['tr_class1'] = $HTTP_POST_VARS['tr_class1']; - $updated_name['tr_class1_name'] = $HTTP_POST_VARS['tr_class1_name']; - $updated['tr_class2'] = $HTTP_POST_VARS['tr_class2']; - $updated_name['tr_class2_name'] = $HTTP_POST_VARS['tr_class2_name']; - $updated['tr_class3'] = $HTTP_POST_VARS['tr_class3']; - $updated_name['tr_class3_name'] = $HTTP_POST_VARS['tr_class3_name']; - $updated['th_color1'] = $HTTP_POST_VARS['th_color1']; - $updated_name['th_color1_name'] = $HTTP_POST_VARS['th_color1_name']; - $updated['th_color2'] = $HTTP_POST_VARS['th_color2']; - $updated_name['th_color2_name'] = $HTTP_POST_VARS['th_color2_name']; - $updated['th_color3'] = $HTTP_POST_VARS['th_color3']; - $updated_name['th_color3_name'] = $HTTP_POST_VARS['th_color3_name']; - $updated['th_class1'] = $HTTP_POST_VARS['th_class1']; - $updated_name['th_class1_name'] = $HTTP_POST_VARS['th_class1_name']; - $updated['th_class2'] = $HTTP_POST_VARS['th_class2']; - $updated_name['th_class2_name'] = $HTTP_POST_VARS['th_class2_name']; - $updated['th_class3'] = $HTTP_POST_VARS['th_class3']; - $updated_name['th_class3_name'] = $HTTP_POST_VARS['th_class3_name']; - $updated['td_color1'] = $HTTP_POST_VARS['td_color1']; - $updated_name['td_color1_name'] = $HTTP_POST_VARS['td_color1_name']; - $updated['td_color2'] = $HTTP_POST_VARS['td_color2']; - $updated_name['td_color2_name'] = $HTTP_POST_VARS['td_color2_name']; - $updated['td_color3'] = $HTTP_POST_VARS['td_color3']; - $updated_name['td_color3_name'] = $HTTP_POST_VARS['td_color3_name']; - $updated['td_class1'] = $HTTP_POST_VARS['td_class1']; - $updated_name['td_class1_name'] = $HTTP_POST_VARS['td_class1_name']; - $updated['td_class2'] = $HTTP_POST_VARS['td_class2']; - $updated_name['td_class2_name'] = $HTTP_POST_VARS['td_class2_name']; - $updated['td_class3'] = $HTTP_POST_VARS['td_class3']; - $updated_name['td_class3_name'] = $HTTP_POST_VARS['td_class3_name']; - $updated['fontface1'] = $HTTP_POST_VARS['fontface1']; - $updated_name['fontface1_name'] = $HTTP_POST_VARS['fontface1_name']; - $updated['fontface2'] = $HTTP_POST_VARS['fontface2']; - $updated_name['fontface2_name'] = $HTTP_POST_VARS['fontface2_name']; - $updated['fontface3'] = $HTTP_POST_VARS['fontface3']; - $updated_name['fontface3_name'] = $HTTP_POST_VARS['fontface3_name']; - $updated['fontsize1'] = intval($HTTP_POST_VARS['fontsize1']); - $updated_name['fontsize1_name'] = $HTTP_POST_VARS['fontsize1_name']; - $updated['fontsize2'] = intval($HTTP_POST_VARS['fontsize2']); - $updated_name['fontsize2_name'] = $HTTP_POST_VARS['fontsize2_name']; - $updated['fontsize3'] = intval($HTTP_POST_VARS['fontsize3']); - $updated_name['fontsize3_name'] = $HTTP_POST_VARS['fontsize3_name']; - $updated['fontcolor1'] = $HTTP_POST_VARS['fontcolor1']; - $updated_name['fontcolor1_name'] = $HTTP_POST_VARS['fontcolor1_name']; - $updated['fontcolor2'] = $HTTP_POST_VARS['fontcolor2']; - $updated_name['fontcolor2_name'] = $HTTP_POST_VARS['fontcolor2_name']; - $updated['fontcolor3'] = $HTTP_POST_VARS['fontcolor3']; - $updated_name['fontcolor3_name'] = $HTTP_POST_VARS['fontcolor3_name']; - $updated['span_class1'] = $HTTP_POST_VARS['span_class1']; - $updated_name['span_class1_name'] = $HTTP_POST_VARS['span_class1_name']; - $updated['span_class2'] = $HTTP_POST_VARS['span_class2']; - $updated_name['span_class2_name'] = $HTTP_POST_VARS['span_class2_name']; - $updated['span_class3'] = $HTTP_POST_VARS['span_class3']; - $updated_name['span_class3_name'] = $HTTP_POST_VARS['span_class3_name']; - $style_id = intval($HTTP_POST_VARS['style_id']); - // - // Wheeeew! Thank heavens for copy and paste and search and replace :D - // - - if($mode == "edit") - { - $sql = "UPDATE " . THEMES_TABLE . " SET "; - $count = 0; - - while(list($key, $val) = each($updated)) - { - if($count != 0) - { - $sql .= ", "; - } - - // - // I don't like this but it'll keep MSSQL from throwing - // an error and save me alot of typing - // - $sql .= ( stristr($key, "fontsize") ) ? "$key = $val" : "$key = '" . str_replace("\'", "''", $val) . "'"; - - $count++; - } - - $sql .= " WHERE themes_id = $style_id"; - - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not update themes table!", "", __LINE__, __FILE__, $sql); - } - - // - // Check if there's a names table entry for this style - // - $sql = "SELECT themes_id - FROM " . THEMES_NAME_TABLE . " - WHERE themes_id = $style_id"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not get data from themes_name table", "", __LINE__, __FILE__, $sql); - } - - if($db->sql_numrows($result) > 0) - { - $sql = "UPDATE " . THEMES_NAME_TABLE . " - SET "; - $count = 0; - while(list($key, $val) = each($updated_name)) - { - if($count != 0) - { - $sql .= ", "; - } - - $sql .= "$key = '$val'"; - - $count++; - } - - $sql .= " WHERE themes_id = $style_id"; - } - else - { - // - // Nope, no names entry so we create a new one. - // - $sql = "INSERT INTO " . THEMES_NAME_TABLE . " (themes_id, "; - while(list($key, $val) = each($updated_name)) - { - $fields[] = $key; - $vals[] = str_replace("\'", "''", $val); - } - - for($i = 0; $i < count($fields); $i++) - { - if($i > 0) - { - $sql .= ", "; - } - $sql .= $fields[$i]; - } - - $sql .= ") VALUES ($style_id, "; - for($i = 0; $i < count($vals); $i++) - { - if($i > 0) - { - $sql .= ", "; - } - $sql .= "'" . $vals[$i] . "'"; - } - - $sql .= ")"; - } - - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not update themes name table!", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Theme_updated'] . "

    " . sprintf($lang['Click_return_styleadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - // - // First, check if we already have a style by this name - // - $sql = "SELECT themes_id - FROM " . THEMES_TABLE . " - WHERE style_name = '" . str_replace("\'", "''", $updated['style_name']) . "'"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not query themes table", "", __LINE__, __FILE__, $sql); - } - - if($db->sql_numrows($result)) - { - message_die(GENERAL_ERROR, $lang['Style_exists'], $lang['Error']); - } - - while(list($key, $val) = each($updated)) - { - $field_names[] = $key; - - if(stristr($key, "fontsize")) - { - $values[] = "$val"; - } - else - { - $values[] = "'" . str_replace("\'", "''", $val) . "'"; - } - } - - $sql = "INSERT - INTO " . THEMES_TABLE . " ("; - for($i = 0; $i < count($field_names); $i++) - { - if($i != 0) - { - $sql .= ", "; - } - $sql .= $field_names[$i]; - } - - $sql .= ") VALUES ("; - for($i = 0; $i < count($values); $i++) - { - if($i != 0) - { - $sql .= ", "; - } - $sql .= $values[$i]; - } - $sql .= ")"; - - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not update themes table!", "", __LINE__, __FILE__, $sql); - } - - $style_id = $db->sql_nextid(); - - // - // Insert names data - // - $sql = "INSERT INTO " . THEMES_NAME_TABLE . " (themes_id, "; - while(list($key, $val) = each($updated_name)) - { - $fields[] = $key; - $vals[] = $val; - } - - for($i = 0; $i < count($fields); $i++) - { - if($i > 0) - { - $sql .= ", "; - } - $sql .= $fields[$i]; - } - - $sql .= ") VALUES ($style_id, "; - for($i = 0; $i < count($vals); $i++) - { - if($i > 0) - { - $sql .= ", "; - } - $sql .= "'" . $vals[$i] . "'"; - } - - $sql .= ")"; - - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not insert themes name table!", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Theme_created'] . "

    " . sprintf($lang['Click_return_styleadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - } - else - { - if($mode == "edit") - { - $themes_title = $lang['Edit_theme']; - $themes_explain = $lang['Edit_theme_explain']; - - $style_id = intval($HTTP_GET_VARS['style_id']); - - $selected_names = array(); - $selected_values = array(); - // - // Fetch the Theme Info from the db - // - $sql = "SELECT * - FROM " . THEMES_TABLE . " - WHERE themes_id = $style_id"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not get data from themes table", "", __LINE__, __FILE__, $sql); - } - - if ( $selected_values = $db->sql_fetchrow($result) ) - { - while(list($key, $val) = @each($selected_values)) - { - $selected[$key] = $val; - } - } - - // - // Fetch the Themes Name data - // - $sql = "SELECT * - FROM " . THEMES_NAME_TABLE . " - WHERE themes_id = $style_id"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not get data from themes name table", "", __LINE__, __FILE__, $sql); - } - - if ( $selected_names = $db->sql_fetchrow($result) ) - { - while(list($key, $val) = @each($selected_names)) - { - $selected[$key] = $val; - } - } - - $s_hidden_fields = ''; - } - else - { - $themes_title = $lang['Create_theme']; - $themes_explain = $lang['Create_theme_explain']; - } - - $template->set_filenames(array( - "body" => "admin/styles_edit_body.tpl") - ); - - if( $dir = @opendir($phpbb_root_path . 'templates/') ) - { - $s_template_select = ''; - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_template_dir']); - } - - $s_hidden_fields .= ''; - - $template->assign_vars(array( - "L_THEMES_TITLE" => $themes_title, - "L_THEMES_EXPLAIN" => $themes_explain, - "L_THEME_NAME" => $lang['Theme_name'], - "L_TEMPLATE" => $lang['Template'], - "L_THEME_SETTINGS" => $lang['Theme_settings'], - "L_THEME_ELEMENT" => $lang['Theme_element'], - "L_SIMPLE_NAME" => $lang['Simple_name'], - "L_VALUE" => $lang['Value'], - "L_STYLESHEET" => $lang['Stylesheet'], - "L_BACKGROUND_IMAGE" => $lang['Background_image'], - "L_BACKGROUND_COLOR" => $lang['Background_color'], - "L_BODY_TEXT_COLOR" => $lang['Text_color'], - "L_BODY_LINK_COLOR" => $lang['Link_color'], - "L_BODY_VLINK_COLOR" => $lang['VLink_color'], - "L_BODY_ALINK_COLOR" => $lang['ALink_color'], - "L_BODY_HLINK_COLOR" => $lang['HLink_color'], - "L_TR_COLOR1" => $lang['Tr_color1'], - "L_TR_COLOR2" => $lang['Tr_color2'], - "L_TR_COLOR3" => $lang['Tr_color3'], - "L_TR_CLASS1" => $lang['Tr_class1'], - "L_TR_CLASS2" => $lang['Tr_class2'], - "L_TR_CLASS3" => $lang['Tr_class3'], - "L_TH_COLOR1" => $lang['Th_color1'], - "L_TH_COLOR2" => $lang['Th_color2'], - "L_TH_COLOR3" => $lang['Th_color3'], - "L_TH_CLASS1" => $lang['Th_class1'], - "L_TH_CLASS2" => $lang['Th_class2'], - "L_TH_CLASS3" => $lang['Th_class3'], - "L_TD_COLOR1" => $lang['Td_color1'], - "L_TD_COLOR2" => $lang['Td_color2'], - "L_TD_COLOR3" => $lang['Td_color3'], - "L_TD_CLASS1" => $lang['Td_class1'], - "L_TD_CLASS2" => $lang['Td_class2'], - "L_TD_CLASS3" => $lang['Td_class3'], - "L_FONTFACE_1" => $lang['fontface1'], - "L_FONTFACE_2" => $lang['fontface2'], - "L_FONTFACE_3" => $lang['fontface3'], - "L_FONTSIZE_1" => $lang['fontsize1'], - "L_FONTSIZE_2" => $lang['fontsize2'], - "L_FONTSIZE_3" => $lang['fontsize3'], - "L_FONTCOLOR_1" => $lang['fontcolor1'], - "L_FONTCOLOR_2" => $lang['fontcolor2'], - "L_FONTCOLOR_3" => $lang['fontcolor3'], - "L_SPAN_CLASS_1" => $lang['span_class1'], - "L_SPAN_CLASS_2" => $lang['span_class2'], - "L_SPAN_CLASS_3" => $lang['span_class3'], - "L_SAVE_SETTINGS" => $lang['Save_Settings'], - "THEME_NAME" => $selected['style_name'], - "HEAD_STYLESHEET" => $selected['head_stylesheet'], - "BODY_BACKGROUND" => $selected['body_background'], - "BODY_BGCOLOR" => $selected['body_bgcolor'], - "BODY_TEXT_COLOR" => $selected['body_text'], - "BODY_LINK_COLOR" => $selected['body_link'], - "BODY_VLINK_COLOR" => $selected['body_vlink'], - "BODY_ALINK_COLOR" => $selected['body_alink'], - "BODY_HLINK_COLOR" => $selected['body_hlink'], - "TR_COLOR1" => $selected['tr_color1'], - "TR_COLOR2" => $selected['tr_color2'], - "TR_COLOR3" => $selected['tr_color3'], - "TR_CLASS1" => $selected['tr_class1'], - "TR_CLASS2" => $selected['tr_class2'], - "TR_CLASS3" => $selected['tr_class3'], - "TH_COLOR1" => $selected['th_color1'], - "TH_COLOR2" => $selected['th_color2'], - "TH_COLOR3" => $selected['th_color3'], - "TH_CLASS1" => $selected['th_class1'], - "TH_CLASS2" => $selected['th_class2'], - "TH_CLASS3" => $selected['th_class3'], - "TD_COLOR1" => $selected['td_color1'], - "TD_COLOR2" => $selected['td_color2'], - "TD_COLOR3" => $selected['td_color3'], - "TD_CLASS1" => $selected['td_class1'], - "TD_CLASS2" => $selected['td_class2'], - "TD_CLASS3" => $selected['td_class3'], - "FONTFACE1" => $selected['fontface1'], - "FONTFACE2" => $selected['fontface2'], - "FONTFACE3" => $selected['fontface3'], - "FONTSIZE1" => $selected['fontsize1'], - "FONTSIZE2" => $selected['fontsize2'], - "FONTSIZE3" => $selected['fontsize3'], - "FONTCOLOR1" => $selected['fontcolor1'], - "FONTCOLOR2" => $selected['fontcolor2'], - "FONTCOLOR3" => $selected['fontcolor3'], - "SPAN_CLASS1" => $selected['span_class1'], - "SPAN_CLASS2" => $selected['span_class2'], - "SPAN_CLASS3" => $selected['span_class3'], - - "TR_COLOR1_NAME" => $selected['tr_color1_name'], - "TR_COLOR2_NAME" => $selected['tr_color2_name'], - "TR_COLOR3_NAME" => $selected['tr_color3_name'], - "TR_CLASS1_NAME" => $selected['tr_class1_name'], - "TR_CLASS2_NAME" => $selected['tr_class2_name'], - "TR_CLASS3_NAME" => $selected['tr_class3_name'], - "TH_COLOR1_NAME" => $selected['th_color1_name'], - "TH_COLOR2_NAME" => $selected['th_color2_name'], - "TH_COLOR3_NAME" => $selected['th_color3_name'], - "TH_CLASS1_NAME" => $selected['th_class1_name'], - "TH_CLASS2_NAME" => $selected['th_class2_name'], - "TH_CLASS3_NAME" => $selected['th_class3_name'], - "TD_COLOR1_NAME" => $selected['td_color1_name'], - "TD_COLOR2_NAME" => $selected['td_color2_name'], - "TD_COLOR3_NAME" => $selected['td_color3_name'], - "TD_CLASS1_NAME" => $selected['td_class1_name'], - "TD_CLASS2_NAME" => $selected['td_class2_name'], - "TD_CLASS3_NAME" => $selected['td_class3_name'], - "FONTFACE1_NAME" => $selected['fontface1_name'], - "FONTFACE2_NAME" => $selected['fontface2_name'], - "FONTFACE3_NAME" => $selected['fontface3_name'], - "FONTSIZE1_NAME" => $selected['fontsize1_name'], - "FONTSIZE2_NAME" => $selected['fontsize2_name'], - "FONTSIZE3_NAME" => $selected['fontsize3_name'], - "FONTCOLOR1_NAME" => $selected['fontcolor1_name'], - "FONTCOLOR2_NAME" => $selected['fontcolor2_name'], - "FONTCOLOR3_NAME" => $selected['fontcolor3_name'], - "SPAN_CLASS1_NAME" => $selected['span_class1_name'], - "SPAN_CLASS2_NAME" => $selected['span_class2_name'], - "SPAN_CLASS3_NAME" => $selected['span_class3_name'], - - "S_THEME_ACTION" => append_sid("admin_styles.$phpEx"), - "S_TEMPLATE_SELECT" => $s_template_select, - "S_HIDDEN_FIELDS" => $s_hidden_fields) - ); - - $template->pparse("body"); - } - break; - - case "export"; - if($HTTP_POST_VARS['export_template']) - { - $template_name = $HTTP_POST_VARS['export_template']; - - $sql = "SELECT * - FROM " . THEMES_TABLE . " - WHERE template_name = '" . str_replace("\'", "''", $template_name) . "'"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not get theme data for selected template", "", __LINE__, __FILE__, $sql); - } - - $theme_rowset = $db->sql_fetchrowset($result); - - if( count($theme_rowset) == 0 ) - { - message_die(GENERAL_MESSAGE, $lang['No_themes']); - } - - $theme_data = ''; // Done this to prevent highlighting editors getting confused! - - @umask(0111); - - $fp = @fopen($phpbb_root_path . 'templates/' . $template_name . '/theme_info.cfg', 'w'); - - if( !$fp ) - { - // - // Unable to open the file writeable do something here as an attempt - // to get around that... - // - $s_hidden_fields = ''; - $s_hidden_fields .= ''; - - $download_form = '
    ' . $s_hidden_fields; - - $template->set_filenames(array( - "body" => "message_body.tpl") - ); - - $template->assign_vars(array( - "MESSAGE_TITLE" => $lang['Export_themes'], - "MESSAGE_TEXT" => $lang['Download_theme_cfg'] . "

    " . $download_form) - ); - - $template->pparse('body'); - exit(); - } - - $result = @fputs($fp, $theme_data, strlen($theme_data)); - fclose($fp); - - $message = $lang['Theme_info_saved'] . "

    " . sprintf($lang['Click_return_styleadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - - } - else if($HTTP_POST_VARS['send_file']) - { - - header("Content-Type: text/x-delimtext; name=\"theme_info.cfg\""); - header("Content-disposition: attachment; filename=theme_info.cfg"); - - echo stripslashes($HTTP_POST_VARS['theme_info']); - } - else - { - $template->set_filenames(array( - "body" => "admin/styles_exporter.tpl") - ); - - if( $dir = @opendir($phpbb_root_path . 'templates/') ) - { - $s_template_select = ''; - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_template_dir']); - } - - $template->assign_vars(array( - "L_STYLE_EXPORTER" => $lang['Export_themes'], - "L_EXPORTER_EXPLAIN" => $lang['Export_explain'], - "L_TEMPLATE_SELECT" => $lang['Select_template'], - "L_SUBMIT" => $lang['Submit'], - - "S_EXPORTER_ACTION" => append_sid("admin_styles.$phpEx?mode=export"), - "S_TEMPLATE_SELECT" => $s_template_select) - ); - - $template->pparse("body"); - - } - break; - - case "delete": - $style_id = ( isset($HTTP_GET_VARS['style_id']) ) ? intval($HTTP_GET_VARS['style_id']) : intval($HTTP_POST_VARS['style_id']); - - if( !$confirm ) - { - if($style_id == $board_config['default_style']) - { - message_die(GENERAL_MESSAGE, $lang['Cannot_remove_style']); - } - - $hidden_fields = ''; - - // - // Set template files - // - $template->set_filenames(array( - "confirm" => "confirm_body.tpl") - ); - - $template->assign_vars(array( - "MESSAGE_TITLE" => $lang['Confirm'], - "MESSAGE_TEXT" => $lang['Confirm_delete_style'], - - "L_YES" => $lang['Yes'], - "L_NO" => $lang['No'], - - "S_CONFIRM_ACTION" => append_sid("admin_styles.$phpEx"), - "S_HIDDEN_FIELDS" => $hidden_fields) - ); - - $template->pparse("confirm"); - - } - else - { - // - // The user has confirmed the delete. Remove the style, the style element - // names and update any users who might be using this style - // - $sql = "DELETE FROM " . THEMES_TABLE . " - WHERE themes_id = $style_id"; - if(!$result = $db->sql_query($sql, BEGIN_TRANSACTION)) - { - message_die(GENERAL_ERROR, "Could not remove style data!", "", __LINE__, __FILE__, $sql); - } - - // - // There may not be any theme name data so don't throw an error - // if the SQL dosan't work - // - $sql = "DELETE FROM " . THEMES_NAME_TABLE . " - WHERE themes_id = $style_id"; - $db->sql_query($sql); - - $sql = "UPDATE " . USERS_TABLE . " - SET user_style = " . $board_config['default_style'] . " - WHERE user_style = $style_id"; - if(!$result = $db->sql_query($sql, END_TRANSACTION)) - { - message_die(GENERAL_ERROR, "Could not update user style information", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Style_removed'] . "

    " . sprintf($lang['Click_return_styleadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - break; - - default: - - $sql = "SELECT themes_id, template_name, style_name - FROM " . THEMES_TABLE . " - ORDER BY template_name"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not get style information!", "", __LINE__, __FILE__, $sql); - } - - $style_rowset = $db->sql_fetchrowset($result); - - $template->set_filenames(array( - "body" => "admin/styles_list_body.tpl") - ); - - $template->assign_vars(array( - "L_STYLES_TITLE" => $lang['Styles_admin'], - "L_STYLES_TEXT" => $lang['Styles_explain'], - "L_STYLE" => $lang['Style'], - "L_TEMPLATE" => $lang['Template'], - "L_EDIT" => $lang['Edit'], - "L_DELETE" => $lang['Delete']) - ); - - for($i = 0; $i < count($style_rowset); $i++) - { - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars("styles", array( - "ROW_CLASS" => $row_class, - "ROW_COLOR" => $row_color, - "STYLE_NAME" => $style_rowset[$i]['style_name'], - "TEMPLATE_NAME" => $style_rowset[$i]['template_name'], - - "U_STYLES_EDIT" => append_sid("admin_styles.$phpEx?mode=edit&style_id=" . $style_rowset[$i]['themes_id']), - "U_STYLES_DELETE" => append_sid("admin_styles.$phpEx?mode=delete&style_id=" . $style_rowset[$i]['themes_id'])) - ); - } - - $template->pparse("body"); - break; -} - -if (empty($HTTP_POST_VARS['send_file'])) -{ - include('./page_footer_admin.'.$phpEx); -} - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/admin_ug_auth.php b/phpBB2_old/admin/admin_ug_auth.php deleted file mode 100644 index bbcbd99..0000000 --- a/phpBB2_old/admin/admin_ug_auth.php +++ /dev/null @@ -1,948 +0,0 @@ - 'mode', 'user_id' => POST_USERS_URL, 'group_id' => POST_GROUPS_URL, 'adv' => 'adv'); - -while( list($var, $param) = @each($params) ) -{ - if ( !empty($HTTP_POST_VARS[$param]) || !empty($HTTP_GET_VARS[$param]) ) - { - $$var = ( !empty($HTTP_POST_VARS[$param]) ) ? $HTTP_POST_VARS[$param] : $HTTP_GET_VARS[$param]; - } - else - { - $$var = ""; - } -} - -$user_id = intval($user_id); -$group_id = intval($group_id); -$adv = intval($adv); -$mode = htmlspecialchars($mode); - -// -// Start program - define vars -// -$forum_auth_fields = array('auth_view', 'auth_read', 'auth_post', 'auth_reply', 'auth_edit', 'auth_delete', 'auth_sticky', 'auth_announce', 'auth_vote', 'auth_pollcreate'); - -$auth_field_match = array( - 'auth_view' => AUTH_VIEW, - 'auth_read' => AUTH_READ, - 'auth_post' => AUTH_POST, - 'auth_reply' => AUTH_REPLY, - 'auth_edit' => AUTH_EDIT, - 'auth_delete' => AUTH_DELETE, - 'auth_sticky' => AUTH_STICKY, - 'auth_announce' => AUTH_ANNOUNCE, - 'auth_vote' => AUTH_VOTE, - 'auth_pollcreate' => AUTH_POLLCREATE); - -$field_names = array( - 'auth_view' => $lang['View'], - 'auth_read' => $lang['Read'], - 'auth_post' => $lang['Post'], - 'auth_reply' => $lang['Reply'], - 'auth_edit' => $lang['Edit'], - 'auth_delete' => $lang['Delete'], - 'auth_sticky' => $lang['Sticky'], - 'auth_announce' => $lang['Announce'], - 'auth_vote' => $lang['Vote'], - 'auth_pollcreate' => $lang['Pollcreate']); - -// --------------- -// Start Functions -// -function check_auth($type, $key, $u_access, $is_admin) -{ - $auth_user = 0; - - if( count($u_access) ) - { - for($j = 0; $j < count($u_access); $j++) - { - $result = 0; - switch($type) - { - case AUTH_ACL: - $result = $u_access[$j][$key]; - - case AUTH_MOD: - $result = $result || $u_access[$j]['auth_mod']; - - case AUTH_ADMIN: - $result = $result || $is_admin; - break; - } - - $auth_user = $auth_user || $result; - } - } - else - { - $auth_user = $is_admin; - } - - return $auth_user; -} -// -// End Functions -// ------------- - -if ( isset($HTTP_POST_VARS['submit']) && ( ( $mode == 'user' && $user_id ) || ( $mode == 'group' && $group_id ) ) ) -{ - $user_level = ''; - if ( $mode == 'user' ) - { - // - // Get group_id for this user_id - // - $sql = "SELECT g.group_id, u.user_level - FROM " . USER_GROUP_TABLE . " ug, " . USERS_TABLE . " u, " . GROUPS_TABLE . " g - WHERE u.user_id = $user_id - AND ug.user_id = u.user_id - AND g.group_id = ug.group_id - AND g.group_single_user = " . TRUE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select info from user/user_group table', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - - $group_id = $row['group_id']; - $user_level = $row['user_level']; - - $db->sql_freeresult($result); - } - - // - // Carry out requests - // - if ( $mode == 'user' && $HTTP_POST_VARS['userlevel'] == 'admin' && $user_level != ADMIN ) - { - // - // Make user an admin (if already user) - // - if ( $userdata['user_id'] != $user_id ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . ADMIN . " - WHERE user_id = $user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " - WHERE group_id = $group_id - AND auth_mod = 0"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't delete auth access info", "", __LINE__, __FILE__, $sql); - } - - // - // Delete any entries in auth_access, they are not required if user is becoming an - // admin - // - $sql = "UPDATE " . AUTH_ACCESS_TABLE . " - SET auth_view = 0, auth_read = 0, auth_post = 0, auth_reply = 0, auth_edit = 0, auth_delete = 0, auth_sticky = 0, auth_announce = 0 - WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't update auth access", "", __LINE__, __FILE__, $sql); - } - } - - $message = $lang['Auth_updated'] . '

    ' . sprintf($lang['Click_return_userauth'], '', '') . '

    ' . sprintf($lang['Click_return_admin_index'], '', ''); - message_die(GENERAL_MESSAGE, $message); - } - else - { - if ( $mode == 'user' && $HTTP_POST_VARS['userlevel'] == 'user' && $user_level == ADMIN ) - { - // - // Make admin a user (if already admin) ... ignore if you're trying - // to change yourself from an admin to user! - // - if ( $userdata['user_id'] != $user_id ) - { - $sql = "UPDATE " . AUTH_ACCESS_TABLE . " - SET auth_view = 0, auth_read = 0, auth_post = 0, auth_reply = 0, auth_edit = 0, auth_delete = 0, auth_sticky = 0, auth_announce = 0 - WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update auth access', '', __LINE__, __FILE__, $sql); - } - - // - // Update users level, reset to USER - // - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . USER . " - WHERE user_id = $user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql); - } - } - - $message = $lang['Auth_updated'] . '

    ' . sprintf($lang['Click_return_userauth'], '', '') . '

    ' . sprintf($lang['Click_return_admin_index'], '', ''); - } - else - { - - $change_mod_list = ( isset($HTTP_POST_VARS['moderator']) ) ? $HTTP_POST_VARS['moderator'] : false; - - if ( empty($adv) ) - { - $change_acl_list = ( isset($HTTP_POST_VARS['private']) ) ? $HTTP_POST_VARS['private'] : false; - } - else - { - $change_acl_list = array(); - for($j = 0; $j < count($forum_auth_fields); $j++) - { - $auth_field = $forum_auth_fields[$j]; - - while( list($forum_id, $value) = @each($HTTP_POST_VARS['private_' . $auth_field]) ) - { - $change_acl_list[$forum_id][$auth_field] = $value; - } - } - } - - $sql = "SELECT * - FROM " . FORUMS_TABLE . " f - ORDER BY forum_order"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain forum information", "", __LINE__, __FILE__, $sql); - } - - $forum_access = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $forum_access[] = $row; - } - $db->sql_freeresult($result); - - $sql = ( $mode == 'user' ) ? "SELECT aa.* FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE. " g WHERE ug.user_id = $user_id AND g.group_id = ug.group_id AND aa.group_id = ug.group_id AND g.group_single_user = " . TRUE : "SELECT * FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain user/group permissions", "", __LINE__, __FILE__, $sql); - } - - $auth_access = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $auth_access[$row['forum_id']] = $row; - } - $db->sql_freeresult($result); - - $forum_auth_action = array(); - $update_acl_status = array(); - $update_mod_status = array(); - - for($i = 0; $i < count($forum_access); $i++) - { - $forum_id = $forum_access[$i]['forum_id']; - - if ( - ( isset($auth_access[$forum_id]['auth_mod']) && $change_mod_list[$forum_id]['auth_mod'] != $auth_access[$forum_id]['auth_mod'] ) || - ( !isset($auth_access[$forum_id]['auth_mod']) && !empty($change_mod_list[$forum_id]['auth_mod']) ) - ) - { - $update_mod_status[$forum_id] = $change_mod_list[$forum_id]['auth_mod']; - - if ( !$update_mod_status[$forum_id] ) - { - $forum_auth_action[$forum_id] = 'delete'; - } - else if ( !isset($auth_access[$forum_id]['auth_mod']) ) - { - $forum_auth_action[$forum_id] = 'insert'; - } - else - { - $forum_auth_action[$forum_id] = 'update'; - } - } - - for($j = 0; $j < count($forum_auth_fields); $j++) - { - $auth_field = $forum_auth_fields[$j]; - - if( $forum_access[$i][$auth_field] == AUTH_ACL && isset($change_acl_list[$forum_id][$auth_field]) ) - { - if ( ( empty($auth_access[$forum_id]['auth_mod']) && - ( isset($auth_access[$forum_id][$auth_field]) && $change_acl_list[$forum_id][$auth_field] != $auth_access[$forum_id][$auth_field] ) || - ( !isset($auth_access[$forum_id][$auth_field]) && !empty($change_acl_list[$forum_id][$auth_field]) ) ) || - !empty($update_mod_status[$forum_id]) - ) - { - $update_acl_status[$forum_id][$auth_field] = ( !empty($update_mod_status[$forum_id]) ) ? 0 : $change_acl_list[$forum_id][$auth_field]; - - if ( isset($auth_access[$forum_id][$auth_field]) && empty($update_acl_status[$forum_id][$auth_field]) && $forum_auth_action[$forum_id] != 'insert' && $forum_auth_action[$forum_id] != 'update' ) - { - $forum_auth_action[$forum_id] = 'delete'; - } - else if ( !isset($auth_access[$forum_id][$auth_field]) && !( $forum_auth_action[$forum_id] == 'delete' && empty($update_acl_status[$forum_id][$auth_field]) ) ) - { - $forum_auth_action[$forum_id] = 'insert'; - } - else if ( isset($auth_access[$forum_id][$auth_field]) && !empty($update_acl_status[$forum_id][$auth_field]) ) - { - $forum_auth_action[$forum_id] = 'update'; - } - } - else if ( ( empty($auth_access[$forum_id]['auth_mod']) && - ( isset($auth_access[$forum_id][$auth_field]) && $change_acl_list[$forum_id][$auth_field] == $auth_access[$forum_id][$auth_field] ) ) && $forum_auth_action[$forum_id] == 'delete' ) - { - $forum_auth_action[$forum_id] = 'update'; - } - } - } - } - - // - // Checks complete, make updates to DB - // - $delete_sql = ''; - while( list($forum_id, $action) = @each($forum_auth_action) ) - { - if ( $action == 'delete' ) - { - $delete_sql .= ( ( $delete_sql != '' ) ? ', ' : '' ) . $forum_id; - } - else - { - if ( $action == 'insert' ) - { - $sql_field = ''; - $sql_value = ''; - while ( list($auth_type, $value) = @each($update_acl_status[$forum_id]) ) - { - $sql_field .= ( ( $sql_field != '' ) ? ', ' : '' ) . $auth_type; - $sql_value .= ( ( $sql_value != '' ) ? ', ' : '' ) . $value; - } - $sql_field .= ( ( $sql_field != '' ) ? ', ' : '' ) . 'auth_mod'; - $sql_value .= ( ( $sql_value != '' ) ? ', ' : '' ) . ( ( !isset($update_mod_status[$forum_id]) ) ? 0 : $update_mod_status[$forum_id]); - - $sql = "INSERT INTO " . AUTH_ACCESS_TABLE . " (forum_id, group_id, $sql_field) - VALUES ($forum_id, $group_id, $sql_value)"; - } - else - { - $sql_values = ''; - while ( list($auth_type, $value) = @each($update_acl_status[$forum_id]) ) - { - $sql_values .= ( ( $sql_values != '' ) ? ', ' : '' ) . $auth_type . ' = ' . $value; - } - $sql_values .= ( ( $sql_values != '' ) ? ', ' : '' ) . 'auth_mod = ' . ( ( !isset($update_mod_status[$forum_id]) ) ? 0 : $update_mod_status[$forum_id]); - - $sql = "UPDATE " . AUTH_ACCESS_TABLE . " - SET $sql_values - WHERE group_id = $group_id - AND forum_id = $forum_id"; - } - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't update private forum permissions", "", __LINE__, __FILE__, $sql); - } - } - } - - if ( $delete_sql != '' ) - { - $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " - WHERE group_id = $group_id - AND forum_id IN ($delete_sql)"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't delete permission entries", "", __LINE__, __FILE__, $sql); - } - } - - $l_auth_return = ( $mode == 'user' ) ? $lang['Click_return_userauth'] : $lang['Click_return_groupauth']; - $message = $lang['Auth_updated'] . '

    ' . sprintf($l_auth_return, '', '') . '

    ' . sprintf($lang['Click_return_admin_index'], '', ''); - } - - // - // Update user level to mod for appropriate users - // - $sql = "SELECT u.user_id - FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . USERS_TABLE . " u - WHERE ug.group_id = aa.group_id - AND u.user_id = ug.user_id - AND u.user_level NOT IN (" . MOD . ", " . ADMIN . ") - GROUP BY u.user_id - HAVING SUM(aa.auth_mod) > 0"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain user/group permissions", "", __LINE__, __FILE__, $sql); - } - - $set_mod = ''; - while( $row = $db->sql_fetchrow($result) ) - { - $set_mod .= ( ( $set_mod != '' ) ? ', ' : '' ) . $row['user_id']; - } - $db->sql_freeresult($result); - - // - // Update user level to user for appropriate users - // - switch ( SQL_LAYER ) - { - case 'postgresql': - $sql = "SELECT u.user_id - FROM " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " ug, " . AUTH_ACCESS_TABLE . " aa - WHERE ug.user_id = u.user_id - AND aa.group_id = ug.group_id - AND u.user_level NOT IN (" . USER . ", " . ADMIN . ") - GROUP BY u.user_id - HAVING SUM(aa.auth_mod) = 0 - UNION ( - SELECT u.user_id - FROM " . USERS_TABLE . " u - WHERE NOT EXISTS ( - SELECT aa.auth_mod - FROM " . USER_GROUP_TABLE . " ug, " . AUTH_ACCESS_TABLE . " aa - WHERE ug.user_id = u.user_id - AND aa.group_id = ug.group_id - ) - AND u.user_level NOT IN (" . USER . ", " . ADMIN . ") - GROUP BY u.user_id - )"; - break; - case 'oracle': - $sql = "SELECT u.user_id - FROM " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " ug, " . AUTH_ACCESS_TABLE . " aa - WHERE ug.user_id = u.user_id(+) - AND aa.group_id = ug.group_id(+) - AND u.user_level NOT IN (" . USER . ", " . ADMIN . ") - GROUP BY u.user_id - HAVING SUM(aa.auth_mod) = 0"; - break; - default: - $sql = "SELECT u.user_id - FROM ( ( " . USERS_TABLE . " u - LEFT JOIN " . USER_GROUP_TABLE . " ug ON ug.user_id = u.user_id ) - LEFT JOIN " . AUTH_ACCESS_TABLE . " aa ON aa.group_id = ug.group_id ) - WHERE u.user_level NOT IN (" . USER . ", " . ADMIN . ") - GROUP BY u.user_id - HAVING SUM(aa.auth_mod) = 0"; - break; - } - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain user/group permissions", "", __LINE__, __FILE__, $sql); - } - - $unset_mod = ""; - while( $row = $db->sql_fetchrow($result) ) - { - $unset_mod .= ( ( $unset_mod != '' ) ? ', ' : '' ) . $row['user_id']; - } - $db->sql_freeresult($result); - - if ( $set_mod != '' ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . MOD . " - WHERE user_id IN ($set_mod)"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't update user level", "", __LINE__, __FILE__, $sql); - } - } - - if ( $unset_mod != '' ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . USER . " - WHERE user_id IN ($unset_mod)"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't update user level", "", __LINE__, __FILE__, $sql); - } - } - - message_die(GENERAL_MESSAGE, $message); - } -} -else if ( ( $mode == 'user' && ( isset($HTTP_POST_VARS['username']) || $user_id ) ) || ( $mode == 'group' && $group_id ) ) -{ - if ( isset($HTTP_POST_VARS['username']) ) - { - $this_userdata = get_userdata($HTTP_POST_VARS['username'], true); - if ( !is_array($this_userdata) ) - { - message_die(GENERAL_MESSAGE, $lang['No_such_user']); - } - $user_id = $this_userdata['user_id']; - } - - // - // Front end - // - $sql = "SELECT * - FROM " . FORUMS_TABLE . " f - ORDER BY forum_order"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain forum information", "", __LINE__, __FILE__, $sql); - } - - $forum_access = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $forum_access[] = $row; - } - $db->sql_freeresult($result); - - if( empty($adv) ) - { - for($i = 0; $i < count($forum_access); $i++) - { - $forum_id = $forum_access[$i]['forum_id']; - - $forum_auth_level[$forum_id] = AUTH_ALL; - - for($j = 0; $j < count($forum_auth_fields); $j++) - { - $forum_access[$i][$forum_auth_fields[$j]] . ' :: '; - if ( $forum_access[$i][$forum_auth_fields[$j]] == AUTH_ACL ) - { - $forum_auth_level[$forum_id] = AUTH_ACL; - $forum_auth_level_fields[$forum_id][] = $forum_auth_fields[$j]; - } - } - } - } - - $sql = "SELECT u.user_id, u.username, u.user_level, g.group_id, g.group_name, g.group_single_user FROM " . USERS_TABLE . " u, " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug WHERE "; - $sql .= ( $mode == 'user' ) ? "u.user_id = $user_id AND ug.user_id = u.user_id AND g.group_id = ug.group_id" : "g.group_id = $group_id AND ug.group_id = g.group_id AND u.user_id = ug.user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain user/group information", "", __LINE__, __FILE__, $sql); - } - $ug_info = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $ug_info[] = $row; - } - $db->sql_freeresult($result); - - $sql = ( $mode == 'user' ) ? "SELECT aa.*, g.group_single_user FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE. " g WHERE ug.user_id = $user_id AND g.group_id = ug.group_id AND aa.group_id = ug.group_id AND g.group_single_user = 1" : "SELECT * FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain user/group permissions", "", __LINE__, __FILE__, $sql); - } - - $auth_access = array(); - $auth_access_count = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $auth_access[$row['forum_id']][] = $row; - $auth_access_count[$row['forum_id']]++; - } - $db->sql_freeresult($result); - - $is_admin = ( $mode == 'user' ) ? ( ( $ug_info[0]['user_level'] == ADMIN && $ug_info[0]['user_id'] != ANONYMOUS ) ? 1 : 0 ) : 0; - - for($i = 0; $i < count($forum_access); $i++) - { - $forum_id = $forum_access[$i]['forum_id']; - - unset($prev_acl_setting); - for($j = 0; $j < count($forum_auth_fields); $j++) - { - $key = $forum_auth_fields[$j]; - $value = $forum_access[$i][$key]; - - switch( $value ) - { - case AUTH_ALL: - case AUTH_REG: - $auth_ug[$forum_id][$key] = 1; - break; - - case AUTH_ACL: - $auth_ug[$forum_id][$key] = ( !empty($auth_access_count[$forum_id]) ) ? check_auth(AUTH_ACL, $key, $auth_access[$forum_id], $is_admin) : 0; - $auth_field_acl[$forum_id][$key] = $auth_ug[$forum_id][$key]; - - if ( isset($prev_acl_setting) ) - { - if ( $prev_acl_setting != $auth_ug[$forum_id][$key] && empty($adv) ) - { - $adv = 1; - } - } - - $prev_acl_setting = $auth_ug[$forum_id][$key]; - - break; - - case AUTH_MOD: - $auth_ug[$forum_id][$key] = ( !empty($auth_access_count[$forum_id]) ) ? check_auth(AUTH_MOD, $key, $auth_access[$forum_id], $is_admin) : 0; - break; - - case AUTH_ADMIN: - $auth_ug[$forum_id][$key] = $is_admin; - break; - - default: - $auth_ug[$forum_id][$key] = 0; - break; - } - } - - // - // Is user a moderator? - // - $auth_ug[$forum_id]['auth_mod'] = ( !empty($auth_access_count[$forum_id]) ) ? check_auth(AUTH_MOD, 'auth_mod', $auth_access[$forum_id], 0) : 0; - } - - $i = 0; - @reset($auth_ug); - while( list($forum_id, $user_ary) = @each($auth_ug) ) - { - if ( empty($adv) ) - { - if ( $forum_auth_level[$forum_id] == AUTH_ACL ) - { - $allowed = 1; - - for($j = 0; $j < count($forum_auth_level_fields[$forum_id]); $j++) - { - if ( !$auth_ug[$forum_id][$forum_auth_level_fields[$forum_id][$j]] ) - { - $allowed = 0; - } - } - - $optionlist_acl = ''; - } - else - { - $optionlist_acl = ' '; - } - } - else - { - for($j = 0; $j < count($forum_access); $j++) - { - if ( $forum_access[$j]['forum_id'] == $forum_id ) - { - for($k = 0; $k < count($forum_auth_fields); $k++) - { - $field_name = $forum_auth_fields[$k]; - - if( $forum_access[$j][$field_name] == AUTH_ACL ) - { - $optionlist_acl_adv[$forum_id][$k] = ''; - - } - } - } - } - } - - $optionlist_mod = ''; - - $row_class = ( !( $i % 2 ) ) ? 'row2' : 'row1'; - $row_color = ( !( $i % 2 ) ) ? $theme['td_color1'] : $theme['td_color2']; - - $template->assign_block_vars('forums', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'FORUM_NAME' => $forum_access[$i]['forum_name'], - - 'U_FORUM_AUTH' => append_sid("admin_forumauth.$phpEx?f=" . $forum_access[$i]['forum_id']), - - 'S_MOD_SELECT' => $optionlist_mod) - ); - - if( !$adv ) - { - $template->assign_block_vars('forums.aclvalues', array( - 'S_ACL_SELECT' => $optionlist_acl) - ); - } - else - { - for($j = 0; $j < count($forum_auth_fields); $j++) - { - $template->assign_block_vars('forums.aclvalues', array( - 'S_ACL_SELECT' => $optionlist_acl_adv[$forum_id][$j]) - ); - } - } - - $i++; - } - @reset($auth_user); - - if ( $mode == 'user' ) - { - $t_username = $ug_info[0]['username']; - $s_user_type = ( $is_admin ) ? '' : ''; - } - else - { - $t_groupname = $ug_info[0]['group_name']; - } - - $name = array(); - $id = array(); - for($i = 0; $i < count($ug_info); $i++) - { - if( ( $mode == 'user' && !$ug_info[$i]['group_single_user'] ) || $mode == 'group' ) - { - $name[] = ( $mode == 'user' ) ? $ug_info[$i]['group_name'] : $ug_info[$i]['username']; - $id[] = ( $mode == 'user' ) ? intval($ug_info[$i]['group_id']) : intval($ug_info[$i]['user_id']); - } - } - - if( count($name) ) - { - $t_usergroup_list = ''; - for($i = 0; $i < count($ug_info); $i++) - { - $ug = ( $mode == 'user' ) ? 'group&' . POST_GROUPS_URL : 'user&' . POST_USERS_URL; - - $t_usergroup_list .= ( ( $t_usergroup_list != '' ) ? ', ' : '' ) . '' . $name[$i] . ''; - } - } - else - { - $t_usergroup_list = $lang['None']; - } - - $s_column_span = 2; // Two columns always present - if( !$adv ) - { - $template->assign_block_vars('acltype', array( - 'L_UG_ACL_TYPE' => $lang['Simple_Permission']) - ); - $s_column_span++; - } - else - { - for($i = 0; $i < count($forum_auth_fields); $i++) - { - $cell_title = $field_names[$forum_auth_fields[$i]]; - - $template->assign_block_vars('acltype', array( - 'L_UG_ACL_TYPE' => $cell_title) - ); - $s_column_span++; - } - } - - // - // Dump in the page header ... - // - include('./page_header_admin.'.$phpEx); - - $template->set_filenames(array( - "body" => 'admin/auth_ug_body.tpl') - ); - - $adv_switch = ( empty($adv) ) ? 1 : 0; - $u_ug_switch = ( $mode == 'user' ) ? POST_USERS_URL . "=" . $user_id : POST_GROUPS_URL . "=" . $group_id; - $switch_mode = append_sid("admin_ug_auth.$phpEx?mode=$mode&" . $u_ug_switch . "&adv=$adv_switch"); - $switch_mode_text = ( empty($adv) ) ? $lang['Advanced_mode'] : $lang['Simple_mode']; - $u_switch_mode = '' . $switch_mode_text . ''; - - $s_hidden_fields = ''; - $s_hidden_fields .= ( $mode == 'user' ) ? '' : ''; - - if ( $mode == 'user' ) - { - $template->assign_block_vars('switch_user_auth', array()); - - $template->assign_vars(array( - 'USERNAME' => $t_username, - 'USER_LEVEL' => $lang['User_Level'] . " : " . $s_user_type, - 'USER_GROUP_MEMBERSHIPS' => $lang['Group_memberships'] . ' : ' . $t_usergroup_list) - ); - } - else - { - $template->assign_block_vars("switch_group_auth", array()); - - $template->assign_vars(array( - 'USERNAME' => $t_groupname, - 'GROUP_MEMBERSHIP' => $lang['Usergroup_members'] . ' : ' . $t_usergroup_list) - ); - } - - $template->assign_vars(array( - 'L_USER_OR_GROUPNAME' => ( $mode == 'user' ) ? $lang['Username'] : $lang['Group_name'], - - 'L_AUTH_TITLE' => ( $mode == 'user' ) ? $lang['Auth_Control_User'] : $lang['Auth_Control_Group'], - 'L_AUTH_EXPLAIN' => ( $mode == 'user' ) ? $lang['User_auth_explain'] : $lang['Group_auth_explain'], - 'L_MODERATOR_STATUS' => $lang['Moderator_status'], - 'L_PERMISSIONS' => $lang['Permissions'], - 'L_SUBMIT' => $lang['Submit'], - 'L_RESET' => $lang['Reset'], - 'L_FORUM' => $lang['Forum'], - - 'U_USER_OR_GROUP' => append_sid("admin_ug_auth.$phpEx"), - 'U_SWITCH_MODE' => $u_switch_mode, - - 'S_COLUMN_SPAN' => $s_column_span, - 'S_AUTH_ACTION' => append_sid("admin_ug_auth.$phpEx"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); -} -else -{ - // - // Select a user/group - // - include('./page_header_admin.'.$phpEx); - - $template->set_filenames(array( - 'body' => ( $mode == 'user' ) ? 'admin/user_select_body.tpl' : 'admin/auth_select_body.tpl') - ); - - if ( $mode == 'user' ) - { - $template->assign_vars(array( - 'L_FIND_USERNAME' => $lang['Find_username'], - - 'U_SEARCH_USER' => append_sid("../search.$phpEx?mode=searchuser")) - ); - } - else - { - $sql = "SELECT group_id, group_name - FROM " . GROUPS_TABLE . " - WHERE group_single_user <> " . TRUE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't get group list", "", __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $select_list = ''; - } - - $template->assign_vars(array( - 'S_AUTH_SELECT' => $select_list) - ); - } - - $s_hidden_fields = ''; - - $l_type = ( $mode == 'user' ) ? 'USER' : 'AUTH'; - - $template->assign_vars(array( - 'L_' . $l_type . '_TITLE' => ( $mode == 'user' ) ? $lang['Auth_Control_User'] : $lang['Auth_Control_Group'], - 'L_' . $l_type . '_EXPLAIN' => ( $mode == 'user' ) ? $lang['User_auth_explain'] : $lang['Group_auth_explain'], - 'L_' . $l_type . '_SELECT' => ( $mode == 'user' ) ? $lang['Select_a_User'] : $lang['Select_a_Group'], - 'L_LOOK_UP' => ( $mode == 'user' ) ? $lang['Look_up_User'] : $lang['Look_up_Group'], - - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_' . $l_type . '_ACTION' => append_sid("admin_ug_auth.$phpEx")) - ); - -} - -$template->pparse('body'); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/admin_user_ban.php b/phpBB2_old/admin/admin_user_ban.php deleted file mode 100644 index 84b74fc..0000000 --- a/phpBB2_old/admin/admin_user_ban.php +++ /dev/null @@ -1,452 +0,0 @@ -sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain banlist information", "", __LINE__, __FILE__, $sql); - } - - $current_banlist = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - - $kill_session_sql = ''; - for($i = 0; $i < count($user_list); $i++) - { - $in_banlist = false; - for($j = 0; $j < count($current_banlist); $j++) - { - if ( $user_list[$i] == $current_banlist[$j]['ban_userid'] ) - { - $in_banlist = true; - } - } - - if ( !$in_banlist ) - { - $kill_session_sql .= ( ( $kill_session_sql != '' ) ? ' OR ' : '' ) . "session_user_id = " . $user_list[$i]; - - $sql = "INSERT INTO " . BANLIST_TABLE . " (ban_userid) - VALUES (" . $user_list[$i] . ")"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't insert ban_userid info into database", "", __LINE__, __FILE__, $sql); - } - } - } - - for($i = 0; $i < count($ip_list); $i++) - { - $in_banlist = false; - for($j = 0; $j < count($current_banlist); $j++) - { - if ( $ip_list[$i] == $current_banlist[$j]['ban_ip'] ) - { - $in_banlist = true; - } - } - - if ( !$in_banlist ) - { - if ( preg_match('/(ff\.)|(\.ff)/is', chunk_split($ip_list[$i], 2, '.')) ) - { - $kill_ip_sql = "session_ip LIKE '" . str_replace('.', '', preg_replace('/(ff\.)|(\.ff)/is', '%', chunk_split($ip_list[$i], 2, "."))) . "'"; - } - else - { - $kill_ip_sql = "session_ip = '" . $ip_list[$i] . "'"; - } - - $kill_session_sql .= ( ( $kill_session_sql != '' ) ? ' OR ' : '' ) . $kill_ip_sql; - - $sql = "INSERT INTO " . BANLIST_TABLE . " (ban_ip) - VALUES ('" . $ip_list[$i] . "')"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't insert ban_ip info into database", "", __LINE__, __FILE__, $sql); - } - } - } - - // - // Now we'll delete all entries from the session table with any of the banned - // user or IP info just entered into the ban table ... this will force a session - // initialisation resulting in an instant ban - // - if ( $kill_session_sql != '' ) - { - $sql = "DELETE FROM " . SESSIONS_TABLE . " - WHERE $kill_session_sql"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete banned sessions from database", "", __LINE__, __FILE__, $sql); - } - } - - for($i = 0; $i < count($email_list); $i++) - { - $in_banlist = false; - for($j = 0; $j < count($current_banlist); $j++) - { - if ( $email_list[$i] == $current_banlist[$j]['ban_email'] ) - { - $in_banlist = true; - } - } - - if ( !$in_banlist ) - { - $sql = "INSERT INTO " . BANLIST_TABLE . " (ban_email) - VALUES ('" . str_replace("\'", "''", $email_list[$i]) . "')"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't insert ban_email info into database", "", __LINE__, __FILE__, $sql); - } - } - } - - $where_sql = ''; - - if ( isset($HTTP_POST_VARS['unban_user']) ) - { - $user_list = $HTTP_POST_VARS['unban_user']; - - for($i = 0; $i < count($user_list); $i++) - { - if ( $user_list[$i] != -1 ) - { - $where_sql .= ( ( $where_sql != '' ) ? ', ' : '' ) . intval($user_list[$i]); - } - } - } - - if ( isset($HTTP_POST_VARS['unban_ip']) ) - { - $ip_list = $HTTP_POST_VARS['unban_ip']; - - for($i = 0; $i < count($ip_list); $i++) - { - if ( $ip_list[$i] != -1 ) - { - $where_sql .= ( ( $where_sql != '' ) ? ', ' : '' ) . str_replace("\'", "''", $ip_list[$i]); - } - } - } - - if ( isset($HTTP_POST_VARS['unban_email']) ) - { - $email_list = $HTTP_POST_VARS['unban_email']; - - for($i = 0; $i < count($email_list); $i++) - { - if ( $email_list[$i] != -1 ) - { - $where_sql .= ( ( $where_sql != '' ) ? ', ' : '' ) . str_replace("\'", "''", $email_list[$i]); - } - } - } - - if ( $where_sql != '' ) - { - $sql = "DELETE FROM " . BANLIST_TABLE . " - WHERE ban_id IN ($where_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't delete ban info from database", "", __LINE__, __FILE__, $sql); - } - } - - $message = $lang['Ban_update_sucessful'] . '

    ' . sprintf($lang['Click_return_banadmin'], '', '') . '

    ' . sprintf($lang['Click_return_admin_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - -} -else -{ - $template->set_filenames(array( - 'body' => 'admin/user_ban_body.tpl') - ); - - $template->assign_vars(array( - 'L_BAN_TITLE' => $lang['Ban_control'], - 'L_BAN_EXPLAIN' => $lang['Ban_explain'], - 'L_BAN_EXPLAIN_WARN' => $lang['Ban_explain_warn'], - 'L_IP_OR_HOSTNAME' => $lang['IP_hostname'], - 'L_EMAIL_ADDRESS' => $lang['Email_address'], - 'L_SUBMIT' => $lang['Submit'], - 'L_RESET' => $lang['Reset'], - - 'S_BANLIST_ACTION' => append_sid("admin_user_ban.$phpEx")) - ); - - $template->assign_vars(array( - 'L_BAN_USER' => $lang['Ban_username'], - 'L_BAN_USER_EXPLAIN' => $lang['Ban_username_explain'], - 'L_BAN_IP' => $lang['Ban_IP'], - 'L_BAN_IP_EXPLAIN' => $lang['Ban_IP_explain'], - 'L_BAN_EMAIL' => $lang['Ban_email'], - 'L_BAN_EMAIL_EXPLAIN' => $lang['Ban_email_explain']) - ); - - $userban_count = 0; - $ipban_count = 0; - $emailban_count = 0; - - $sql = "SELECT b.ban_id, u.user_id, u.username - FROM " . BANLIST_TABLE . " b, " . USERS_TABLE . " u - WHERE u.user_id = b.ban_userid - AND b.ban_userid <> 0 - AND u.user_id <> " . ANONYMOUS . " - ORDER BY u.user_id ASC"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select current user_id ban list', '', __LINE__, __FILE__, $sql); - } - - $user_list = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - - $select_userlist = ''; - for($i = 0; $i < count($user_list); $i++) - { - $select_userlist .= ''; - $userban_count++; - } - - if( $select_userlist == '' ) - { - $select_userlist = ''; - } - - $select_userlist = ''; - - $sql = "SELECT ban_id, ban_ip, ban_email - FROM " . BANLIST_TABLE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select current ip ban list', '', __LINE__, __FILE__, $sql); - } - - $banlist = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - - $select_iplist = ''; - $select_emaillist = ''; - - for($i = 0; $i < count($banlist); $i++) - { - $ban_id = $banlist[$i]['ban_id']; - - if ( !empty($banlist[$i]['ban_ip']) ) - { - $ban_ip = str_replace('255', '*', decode_ip($banlist[$i]['ban_ip'])); - $select_iplist .= ''; - $ipban_count++; - } - else if ( !empty($banlist[$i]['ban_email']) ) - { - $ban_email = $banlist[$i]['ban_email']; - $select_emaillist .= ''; - $emailban_count++; - } - } - - if ( $select_iplist == '' ) - { - $select_iplist = ''; - } - - if ( $select_emaillist == '' ) - { - $select_emaillist = ''; - } - - $select_iplist = ''; - $select_emaillist = ''; - - $template->assign_vars(array( - 'L_UNBAN_USER' => $lang['Unban_username'], - 'L_UNBAN_USER_EXPLAIN' => $lang['Unban_username_explain'], - 'L_UNBAN_IP' => $lang['Unban_IP'], - 'L_UNBAN_IP_EXPLAIN' => $lang['Unban_IP_explain'], - 'L_UNBAN_EMAIL' => $lang['Unban_email'], - 'L_UNBAN_EMAIL_EXPLAIN' => $lang['Unban_email_explain'], - 'L_USERNAME' => $lang['Username'], - 'L_LOOK_UP' => $lang['Look_up_User'], - 'L_FIND_USERNAME' => $lang['Find_username'], - - 'U_SEARCH_USER' => append_sid("./../search.$phpEx?mode=searchuser"), - 'S_UNBAN_USERLIST_SELECT' => $select_userlist, - 'S_UNBAN_IPLIST_SELECT' => $select_iplist, - 'S_UNBAN_EMAILLIST_SELECT' => $select_emaillist, - 'S_BAN_ACTION' => append_sid("admin_user_ban.$phpEx")) - ); -} - -$template->pparse('body'); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/admin_users.php b/phpBB2_old/admin/admin_users.php deleted file mode 100644 index 9f30c2d..0000000 --- a/phpBB2_old/admin/admin_users.php +++ /dev/null @@ -1,1153 +0,0 @@ -#'); -$html_entities_replace = array('<', '>'); - -// -// Set mode -// -if( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) -{ - $mode = ( isset( $HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; - $mode = htmlspecialchars($mode); -} -else -{ - $mode = ''; -} - -// -// Begin program -// -if ( $mode == 'edit' || $mode == 'save' && ( isset($HTTP_POST_VARS['username']) || isset($HTTP_GET_VARS[POST_USERS_URL]) || isset( $HTTP_POST_VARS[POST_USERS_URL]) ) ) -{ - // - // Ok, the profile has been modified and submitted, let's update - // - if ( ( $mode == 'save' && isset( $HTTP_POST_VARS['submit'] ) ) || isset( $HTTP_POST_VARS['avatargallery'] ) || isset( $HTTP_POST_VARS['submitavatar'] ) || isset( $HTTP_POST_VARS['cancelavatar'] ) ) - { - $user_id = intval($HTTP_POST_VARS['id']); - - if (!($this_userdata = get_userdata($user_id))) - { - message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] ); - } - - if( $HTTP_POST_VARS['deleteuser'] ) - { - $sql = "SELECT g.group_id - FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g - WHERE ug.user_id = $user_id - AND g.group_id = ug.group_id - AND g.group_single_user = 1"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain group information for this user', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - - $sql = "UPDATE " . POSTS_TABLE . " - SET poster_id = " . DELETED . ", post_username = '$username' - WHERE poster_id = $user_id"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update posts for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "UPDATE " . TOPICS_TABLE . " - SET topic_poster = " . DELETED . " - WHERE topic_poster = $user_id"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update topics for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "UPDATE " . VOTE_USERS_TABLE . " - SET vote_user_id = " . DELETED . " - WHERE vote_user_id = $user_id"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update votes for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "SELECT group_id - FROM " . GROUPS_TABLE . " - WHERE group_moderator = $user_id"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql); - } - - while ( $row_group = $db->sql_fetchrow($result) ) - { - $group_moderator[] = $row_group['group_id']; - } - - if ( count($group_moderator) ) - { - $update_moderator_id = implode(', ', $group_moderator); - - $sql = "UPDATE " . GROUPS_TABLE . " - SET group_moderator = " . $userdata['user_id'] . " - WHERE group_moderator IN ($update_moderator_id)"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql); - } - } - - $sql = "DELETE FROM " . USERS_TABLE . " - WHERE user_id = $user_id"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete user', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . USER_GROUP_TABLE . " - WHERE user_id = $user_id"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete user from user_group table', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . GROUPS_TABLE . " - WHERE group_id = " . $row['group_id']; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " - WHERE group_id = " . $row['group_id']; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " - WHERE user_id = $user_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete user from topic watch table', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . BANLIST_TABLE . " - WHERE ban_userid = $user_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete user from banlist table', '', __LINE__, __FILE__, $sql); - } - - $sql = "SELECT privmsgs_id - FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_from_userid = $user_id - OR privmsgs_to_userid = $user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select all users private messages', '', __LINE__, __FILE__, $sql); - } - - // This little bit of code directly from the private messaging section. - while ( $row_privmsgs = $db->sql_fetchrow($result) ) - { - $mark_list[] = $row_privmsgs['privmsgs_id']; - } - - if ( count($mark_list) ) - { - $delete_sql_id = implode(', ', $mark_list); - - $delete_text_sql = "DELETE FROM " . PRIVMSGS_TEXT_TABLE . " - WHERE privmsgs_text_id IN ($delete_sql_id)"; - $delete_sql = "DELETE FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_id IN ($delete_sql_id)"; - - if ( !$db->sql_query($delete_sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete private message info', '', __LINE__, __FILE__, $delete_sql); - } - - if ( !$db->sql_query($delete_text_sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete private message text', '', __LINE__, __FILE__, $delete_text_sql); - } - } - - $message = $lang['User_deleted'] . '

    ' . sprintf($lang['Click_return_useradmin'], '', '') . '

    ' . sprintf($lang['Click_return_admin_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - - $username = ( !empty($HTTP_POST_VARS['username']) ) ? trim(strip_tags(htmlspecialchars($HTTP_POST_VARS['username']))) : ''; - $email = ( !empty($HTTP_POST_VARS['email']) ) ? trim(strip_tags(htmlspecialchars( $HTTP_POST_VARS['email'] ) )) : ''; - - $password = ( !empty($HTTP_POST_VARS['password']) ) ? trim(strip_tags(htmlspecialchars( $HTTP_POST_VARS['password'] ) )) : ''; - $password_confirm = ( !empty($HTTP_POST_VARS['password_confirm']) ) ? trim(strip_tags(htmlspecialchars( $HTTP_POST_VARS['password_confirm'] ) )) : ''; - - $icq = ( !empty($HTTP_POST_VARS['icq']) ) ? trim(strip_tags( $HTTP_POST_VARS['icq'] ) ) : ''; - $aim = ( !empty($HTTP_POST_VARS['aim']) ) ? trim(strip_tags( $HTTP_POST_VARS['aim'] ) ) : ''; - $msn = ( !empty($HTTP_POST_VARS['msn']) ) ? trim(strip_tags( $HTTP_POST_VARS['msn'] ) ) : ''; - $yim = ( !empty($HTTP_POST_VARS['yim']) ) ? trim(strip_tags( $HTTP_POST_VARS['yim'] ) ) : ''; - - $website = ( !empty($HTTP_POST_VARS['website']) ) ? trim(strip_tags( $HTTP_POST_VARS['website'] ) ) : ''; - $location = ( !empty($HTTP_POST_VARS['location']) ) ? trim(strip_tags( $HTTP_POST_VARS['location'] ) ) : ''; - $occupation = ( !empty($HTTP_POST_VARS['occupation']) ) ? trim(strip_tags( $HTTP_POST_VARS['occupation'] ) ) : ''; - $interests = ( !empty($HTTP_POST_VARS['interests']) ) ? trim(strip_tags( $HTTP_POST_VARS['interests'] ) ) : ''; - $signature = ( !empty($HTTP_POST_VARS['signature']) ) ? trim(str_replace('
    ', "\n", $HTTP_POST_VARS['signature'] ) ) : ''; - - validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature); - - $viewemail = ( isset( $HTTP_POST_VARS['viewemail']) ) ? ( ( $HTTP_POST_VARS['viewemail'] ) ? TRUE : 0 ) : 0; - $allowviewonline = ( isset( $HTTP_POST_VARS['hideonline']) ) ? ( ( $HTTP_POST_VARS['hideonline'] ) ? 0 : TRUE ) : TRUE; - $notifyreply = ( isset( $HTTP_POST_VARS['notifyreply']) ) ? ( ( $HTTP_POST_VARS['notifyreply'] ) ? TRUE : 0 ) : 0; - $notifypm = ( isset( $HTTP_POST_VARS['notifypm']) ) ? ( ( $HTTP_POST_VARS['notifypm'] ) ? TRUE : 0 ) : TRUE; - $popuppm = ( isset( $HTTP_POST_VARS['popup_pm']) ) ? ( ( $HTTP_POST_VARS['popup_pm'] ) ? TRUE : 0 ) : TRUE; - $attachsig = ( isset( $HTTP_POST_VARS['attachsig']) ) ? ( ( $HTTP_POST_VARS['attachsig'] ) ? TRUE : 0 ) : 0; - - $allowhtml = ( isset( $HTTP_POST_VARS['allowhtml']) ) ? intval( $HTTP_POST_VARS['allowhtml'] ) : $board_config['allow_html']; - $allowbbcode = ( isset( $HTTP_POST_VARS['allowbbcode']) ) ? intval( $HTTP_POST_VARS['allowbbcode'] ) : $board_config['allow_bbcode']; - $allowsmilies = ( isset( $HTTP_POST_VARS['allowsmilies']) ) ? intval( $HTTP_POST_VARS['allowsmilies'] ) : $board_config['allow_smilies']; - - $user_style = ( $HTTP_POST_VARS['style'] ) ? intval( $HTTP_POST_VARS['style'] ) : $board_config['default_style']; - $user_lang = ( $HTTP_POST_VARS['language'] ) ? $HTTP_POST_VARS['language'] : $board_config['default_lang']; - $user_timezone = ( isset( $HTTP_POST_VARS['timezone']) ) ? doubleval( $HTTP_POST_VARS['timezone'] ) : $board_config['board_timezone']; - $user_template = ( $HTTP_POST_VARS['template'] ) ? $HTTP_POST_VARS['template'] : $board_config['board_template']; - $user_dateformat = ( $HTTP_POST_VARS['dateformat'] ) ? trim( $HTTP_POST_VARS['dateformat'] ) : $board_config['default_dateformat']; - - $user_avatar_local = ( isset( $HTTP_POST_VARS['avatarselect'] ) && !empty($HTTP_POST_VARS['submitavatar'] ) && $board_config['allow_avatar_local'] ) ? $HTTP_POST_VARS['avatarselect'] : ( ( isset( $HTTP_POST_VARS['avatarlocal'] ) ) ? $HTTP_POST_VARS['avatarlocal'] : '' ); - - $user_avatar_remoteurl = ( !empty($HTTP_POST_VARS['avatarremoteurl']) ) ? trim( $HTTP_POST_VARS['avatarremoteurl'] ) : ''; - $user_avatar_url = ( !empty($HTTP_POST_VARS['avatarurl']) ) ? trim( $HTTP_POST_VARS['avatarurl'] ) : ''; - $user_avatar_loc = ( $HTTP_POST_FILES['avatar']['tmp_name'] != "none") ? $HTTP_POST_FILES['avatar']['tmp_name'] : ''; - $user_avatar_name = ( !empty($HTTP_POST_FILES['avatar']['name']) ) ? $HTTP_POST_FILES['avatar']['name'] : ''; - $user_avatar_size = ( !empty($HTTP_POST_FILES['avatar']['size']) ) ? $HTTP_POST_FILES['avatar']['size'] : 0; - $user_avatar_filetype = ( !empty($HTTP_POST_FILES['avatar']['type']) ) ? $HTTP_POST_FILES['avatar']['type'] : ''; - - $user_avatar = ( empty($user_avatar_loc) ) ? $this_userdata['user_avatar'] : ''; - $user_avatar_type = ( empty($user_avatar_loc) ) ? $this_userdata['user_avatar_type'] : ''; - - $user_status = ( !empty($HTTP_POST_VARS['user_status']) ) ? intval( $HTTP_POST_VARS['user_status'] ) : 0; - $user_allowpm = ( !empty($HTTP_POST_VARS['user_allowpm']) ) ? intval( $HTTP_POST_VARS['user_allowpm'] ) : 0; - $user_rank = ( !empty($HTTP_POST_VARS['user_rank']) ) ? intval( $HTTP_POST_VARS['user_rank'] ) : 0; - $user_allowavatar = ( !empty($HTTP_POST_VARS['user_allowavatar']) ) ? intval( $HTTP_POST_VARS['user_allowavatar'] ) : 0; - - if( isset( $HTTP_POST_VARS['avatargallery'] ) || isset( $HTTP_POST_VARS['submitavatar'] ) || isset( $HTTP_POST_VARS['cancelavatar'] ) ) - { - $username = stripslashes($username); - $email = stripslashes($email); - $password = ''; - $password_confirm = ''; - - $icq = stripslashes($icq); - $aim = htmlspecialchars(stripslashes($aim)); - $msn = htmlspecialchars(stripslashes($msn)); - $yim = htmlspecialchars(stripslashes($yim)); - - $website = htmlspecialchars(stripslashes($website)); - $location = htmlspecialchars(stripslashes($location)); - $occupation = htmlspecialchars(stripslashes($occupation)); - $interests = htmlspecialchars(stripslashes($interests)); - $signature = htmlspecialchars(stripslashes($signature)); - - $user_lang = stripslashes($user_lang); - $user_dateformat = htmlspecialchars(stripslashes($user_dateformat)); - - if ( !isset($HTTP_POST_VARS['cancelavatar'])) - { - $user_avatar = $user_avatar_local; - $user_avatar_type = USER_AVATAR_GALLERY; - } - } - } - - if( isset( $HTTP_POST_VARS['submit'] ) ) - { - include($phpbb_root_path . 'includes/usercp_avatar.'.$phpEx); - - $error = FALSE; - - if (stripslashes($username) != $this_userdata['username']) - { - unset($rename_user); - - if ( stripslashes(strtolower($username)) != strtolower($this_userdata['username']) ) - { - $result = validate_username($username); - if ( $result['error'] ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $result['error_msg']; - } - else if ( strtolower(str_replace("\\'", "''", $username)) == strtolower($userdata['username']) ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Username_taken']; - } - } - - if (!$error) - { - $username_sql = "username = '" . str_replace("\\'", "''", $username) . "', "; - $rename_user = $username; // Used for renaming usergroup - } - } - - $passwd_sql = ''; - if( !empty($password) && !empty($password_confirm) ) - { - // - // Awww, the user wants to change their password, isn't that cute.. - // - if($password != $password_confirm) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Password_mismatch']; - } - else - { - $password = md5($password); - $passwd_sql = "user_password = '$password', "; - } - } - else if( $password && !$password_confirm ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Password_mismatch']; - } - else if( !$password && $password_confirm ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Password_mismatch']; - } - - if ($signature != '') - { - $sig_length_check = preg_replace('/(\[.*?)(=.*?)\]/is', '\\1]', stripslashes($signature)); - if ( $allowhtml ) - { - $sig_length_check = preg_replace('/(\<.*?)(=.*?)( .*?=.*?)?([ \/]?\>)/is', '\\1\\3\\4', $sig_length_check); - } - - // Only create a new bbcode_uid when there was no uid yet. - if ( $signature_bbcode_uid == '' ) - { - $signature_bbcode_uid = ( $allowbbcode ) ? make_bbcode_uid() : ''; - } - $signature = prepare_message($signature, $allowhtml, $allowbbcode, $allowsmilies, $signature_bbcode_uid); - - if ( strlen($sig_length_check) > $board_config['max_sig_chars'] ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Signature_too_long']; - } - } - - // - // Avatar stuff - // - $avatar_sql = ""; - if( isset($HTTP_POST_VARS['avatardel']) ) - { - if( $this_userdata['user_avatar_type'] == USER_AVATAR_UPLOAD && $this_userdata['user_avatar'] != "" ) - { - if( @file_exists(@phpbb_realpath("./" . $board_config['avatar_path'] . "/" . $this_userdata['user_avatar'])) ) - { - @unlink("./" . $board_config['avatar_path'] . "/" . $this_userdata['user_avatar']); - } - } - $avatar_sql = ", user_avatar = '', user_avatar_type = " . USER_AVATAR_NONE; - } - else if( ( $user_avatar_loc != "" || !empty($user_avatar_url) ) && !$error ) - { - // - // Only allow one type of upload, either a - // filename or a URL - // - if( !empty($user_avatar_loc) && !empty($user_avatar_url) ) - { - $error = TRUE; - if( isset($error_msg) ) - { - $error_msg .= "
    "; - } - $error_msg .= $lang['Only_one_avatar']; - } - - if( $user_avatar_loc != "" ) - { - if( file_exists(@phpbb_realpath($user_avatar_loc)) && ereg(".jpg$|.gif$|.png$", $user_avatar_name) ) - { - if( $user_avatar_size <= $board_config['avatar_filesize'] && $user_avatar_size > 0) - { - $error_type = false; - - // - // Opera appends the image name after the type, not big, not clever! - // - preg_match("'image\/[x\-]*([a-z]+)'", $user_avatar_filetype, $user_avatar_filetype); - $user_avatar_filetype = $user_avatar_filetype[1]; - - switch( $user_avatar_filetype ) - { - case "jpeg": - case "pjpeg": - case "jpg": - $imgtype = '.jpg'; - break; - case "gif": - $imgtype = '.gif'; - break; - case "png": - $imgtype = '.png'; - break; - default: - $error = true; - $error_msg = (!empty($error_msg)) ? $error_msg . "
    " . $lang['Avatar_filetype'] : $lang['Avatar_filetype']; - break; - } - - if( !$error ) - { - list($width, $height) = @getimagesize($user_avatar_loc); - - if( $width <= $board_config['avatar_max_width'] && $height <= $board_config['avatar_max_height'] ) - { - $user_id = $this_userdata['user_id']; - - $avatar_filename = $user_id . $imgtype; - - if( $this_userdata['user_avatar_type'] == USER_AVATAR_UPLOAD && $this_userdata['user_avatar'] != "" ) - { - if( @file_exists(@phpbb_realpath("./../" . $board_config['avatar_path'] . "/" . $this_userdata['user_avatar'])) ) - { - @unlink("./../" . $board_config['avatar_path'] . "/". $this_userdata['user_avatar']); - } - } - @copy($user_avatar_loc, "./../" . $board_config['avatar_path'] . "/$avatar_filename"); - - $avatar_sql = ", user_avatar = '$avatar_filename', user_avatar_type = " . USER_AVATAR_UPLOAD; - } - else - { - $l_avatar_size = sprintf($lang['Avatar_imagesize'], $board_config['avatar_max_width'], $board_config['avatar_max_height']); - - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
    " . $l_avatar_size : $l_avatar_size; - } - } - } - else - { - $l_avatar_size = sprintf($lang['Avatar_filesize'], round($board_config['avatar_filesize'] / 1024)); - - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
    " . $l_avatar_size : $l_avatar_size; - } - } - else - { - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
    " . $lang['Avatar_filetype'] : $lang['Avatar_filetype']; - } - } - else if( !empty($user_avatar_url) ) - { - // - // First check what port we should connect - // to, look for a :[xxxx]/ or, if that doesn't - // exist assume port 80 (http) - // - preg_match("/^(http:\/\/)?([\w\-\.]+)\:?([0-9]*)\/(.*)$/", $user_avatar_url, $url_ary); - - if( !empty($url_ary[4]) ) - { - $port = (!empty($url_ary[3])) ? $url_ary[3] : 80; - - $fsock = @fsockopen($url_ary[2], $port, $errno, $errstr); - if( $fsock ) - { - $base_get = "/" . $url_ary[4]; - - // - // Uses HTTP 1.1, could use HTTP 1.0 ... - // - @fputs($fsock, "GET $base_get HTTP/1.1\r\n"); - @fputs($fsock, "HOST: " . $url_ary[2] . "\r\n"); - @fputs($fsock, "Connection: close\r\n\r\n"); - - unset($avatar_data); - while( !@feof($fsock) ) - { - $avatar_data .= @fread($fsock, $board_config['avatar_filesize']); - } - @fclose($fsock); - - if( preg_match("/Content-Length\: ([0-9]+)[^\/ ][\s]+/i", $avatar_data, $file_data1) && preg_match("/Content-Type\: image\/[x\-]*([a-z]+)[\s]+/i", $avatar_data, $file_data2) ) - { - $file_size = $file_data1[1]; - $file_type = $file_data2[1]; - - switch( $file_type ) - { - case "jpeg": - case "pjpeg": - case "jpg": - $imgtype = '.jpg'; - break; - case "gif": - $imgtype = '.gif'; - break; - case "png": - $imgtype = '.png'; - break; - default: - $error = true; - $error_msg = (!empty($error_msg)) ? $error_msg . "
    " . $lang['Avatar_filetype'] : $lang['Avatar_filetype']; - break; - } - - if( !$error && $file_size > 0 && $file_size < $board_config['avatar_filesize'] ) - { - $avatar_data = substr($avatar_data, strlen($avatar_data) - $file_size, $file_size); - - $tmp_filename = tempnam ("/tmp", $this_userdata['user_id'] . "-"); - $fptr = @fopen($tmp_filename, "wb"); - $bytes_written = @fwrite($fptr, $avatar_data, $file_size); - @fclose($fptr); - - if( $bytes_written == $file_size ) - { - list($width, $height) = @getimagesize($tmp_filename); - - if( $width <= $board_config['avatar_max_width'] && $height <= $board_config['avatar_max_height'] ) - { - $user_id = $this_userdata['user_id']; - - $avatar_filename = $user_id . $imgtype; - - if( $this_userdata['user_avatar_type'] == USER_AVATAR_UPLOAD && $this_userdata['user_avatar'] != "") - { - if( file_exists(@phpbb_realpath("./../" . $board_config['avatar_path'] . "/" . $this_userdata['user_avatar'])) ) - { - @unlink("./../" . $board_config['avatar_path'] . "/" . $this_userdata['user_avatar']); - } - } - @copy($tmp_filename, "./../" . $board_config['avatar_path'] . "/$avatar_filename"); - @unlink($tmp_filename); - - $avatar_sql = ", user_avatar = '$avatar_filename', user_avatar_type = " . USER_AVATAR_UPLOAD; - } - else - { - $l_avatar_size = sprintf($lang['Avatar_imagesize'], $board_config['avatar_max_width'], $board_config['avatar_max_height']); - - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
    " . $l_avatar_size : $l_avatar_size; - } - } - else - { - // - // Error writing file - // - @unlink($tmp_filename); - message_die(GENERAL_ERROR, "Could not write avatar file to local storage. Please contact the board administrator with this message", "", __LINE__, __FILE__); - } - } - } - else - { - // - // No data - // - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
    " . $lang['File_no_data'] : $lang['File_no_data']; - } - } - else - { - // - // No connection - // - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
    " . $lang['No_connection_URL'] : $lang['No_connection_URL']; - } - } - else - { - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
    " . $lang['Incomplete_URL'] : $lang['Incomplete_URL']; - } - } - else if( !empty($user_avatar_name) ) - { - $l_avatar_size = sprintf($lang['Avatar_filesize'], round($board_config['avatar_filesize'] / 1024)); - - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
    " . $l_avatar_size : $l_avatar_size; - } - } - else if( $user_avatar_remoteurl != "" && $avatar_sql == "" && !$error ) - { - if( !preg_match("#^http:\/\/#i", $user_avatar_remoteurl) ) - { - $user_avatar_remoteurl = "http://" . $user_avatar_remoteurl; - } - - if( preg_match("#^(http:\/\/[a-z0-9\-]+?\.([a-z0-9\-]+\.)*[a-z]+\/.*?\.(gif|jpg|png)$)#is", $user_avatar_remoteurl) ) - { - $avatar_sql = ", user_avatar = '" . str_replace("\'", "''", $user_avatar_remoteurl) . "', user_avatar_type = " . USER_AVATAR_REMOTE; - } - else - { - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . "
    " . $lang['Wrong_remote_avatar_format'] : $lang['Wrong_remote_avatar_format']; - } - } - else if( $user_avatar_local != "" && $avatar_sql == "" && !$error ) - { - $avatar_sql = ", user_avatar = '" . str_replace("\'", "''", $user_avatar_local) . "', user_avatar_type = " . USER_AVATAR_GALLERY; - } - - // - // Update entry in DB - // - if( !$error ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank" . $avatar_sql . " - WHERE user_id = $user_id"; - - if( $result = $db->sql_query($sql) ) - { - if( isset($rename_user) ) - { - $sql = "UPDATE " . GROUPS_TABLE . " - SET group_name = '".str_replace("\'", "''", $rename_user)."' - WHERE group_name = '".str_replace("'", "''", $this_userdata['username'] )."'"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not rename users group', '', __LINE__, __FILE__, $sql); - } - } - - // Delete user session, to prevent the user navigating the forum (if logged in) when disabled - if (!$user_status) - { - $sql = "DELETE FROM " . SESSIONS_TABLE . " - WHERE session_user_id = " . $user_id; - - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Error removing user session', '', __LINE__, __FILE__, $sql); - } - } - - $message .= $lang['Admin_user_updated']; - } - else - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Admin_user_fail']; - } - - $message .= '

    ' . sprintf($lang['Click_return_useradmin'], '', '') . '

    ' . sprintf($lang['Click_return_admin_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - $template->set_filenames(array( - 'reg_header' => 'error_body.tpl') - ); - - $template->assign_vars(array( - 'ERROR_MESSAGE' => $error_msg) - ); - - $template->assign_var_from_handle('ERROR_BOX', 'reg_header'); - - $username = htmlspecialchars(stripslashes($username)); - $email = stripslashes($email); - $password = ''; - $password_confirm = ''; - - $icq = stripslashes($icq); - $aim = htmlspecialchars(str_replace('+', ' ', stripslashes($aim))); - $msn = htmlspecialchars(stripslashes($msn)); - $yim = htmlspecialchars(stripslashes($yim)); - - $website = htmlspecialchars(stripslashes($website)); - $location = htmlspecialchars(stripslashes($location)); - $occupation = htmlspecialchars(stripslashes($occupation)); - $interests = htmlspecialchars(stripslashes($interests)); - $signature = htmlspecialchars(stripslashes($signature)); - - $user_lang = stripslashes($user_lang); - $user_dateformat = htmlspecialchars(stripslashes($user_dateformat)); - } - } - else if( !isset( $HTTP_POST_VARS['submit'] ) && $mode != 'save' && !isset( $HTTP_POST_VARS['avatargallery'] ) && !isset( $HTTP_POST_VARS['submitavatar'] ) && !isset( $HTTP_POST_VARS['cancelavatar'] ) ) - { - if( isset( $HTTP_GET_VARS[POST_USERS_URL]) || isset( $HTTP_POST_VARS[POST_USERS_URL]) ) - { - $user_id = ( isset( $HTTP_POST_VARS[POST_USERS_URL]) ) ? intval( $HTTP_POST_VARS[POST_USERS_URL]) : intval( $HTTP_GET_VARS[POST_USERS_URL]); - $this_userdata = get_userdata($user_id); - if( !$this_userdata ) - { - message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] ); - } - } - else - { - $this_userdata = get_userdata($HTTP_POST_VARS['username'], true); - if( !$this_userdata ) - { - message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] ); - } - } - - // - // Now parse and display it as a template - // - $user_id = $this_userdata['user_id']; - $username = $this_userdata['username']; - $email = $this_userdata['user_email']; - $password = ''; - $password_confirm = ''; - - $icq = $this_userdata['user_icq']; - $aim = htmlspecialchars(str_replace('+', ' ', $this_userdata['user_aim'] )); - $msn = htmlspecialchars($this_userdata['user_msnm']); - $yim = htmlspecialchars($this_userdata['user_yim']); - - $website = htmlspecialchars($this_userdata['user_website']); - $location = htmlspecialchars($this_userdata['user_from']); - $occupation = htmlspecialchars($this_userdata['user_occ']); - $interests = htmlspecialchars($this_userdata['user_interests']); - - $signature = ($this_userdata['user_sig_bbcode_uid'] != '') ? preg_replace('#:' . $this_userdata['user_sig_bbcode_uid'] . '#si', '', $this_userdata['user_sig']) : $this_userdata['user_sig']; - $signature = preg_replace($html_entities_match, $html_entities_replace, $signature); - - $viewemail = $this_userdata['user_viewemail']; - $notifypm = $this_userdata['user_notify_pm']; - $popuppm = $this_userdata['user_popup_pm']; - $notifyreply = $this_userdata['user_notify']; - $attachsig = $this_userdata['user_attachsig']; - $allowhtml = $this_userdata['user_allowhtml']; - $allowbbcode = $this_userdata['user_allowbbcode']; - $allowsmilies = $this_userdata['user_allowsmile']; - $allowviewonline = $this_userdata['user_allow_viewonline']; - - $user_avatar = $this_userdata['user_avatar']; - $user_avatar_type = $this_userdata['user_avatar_type']; - $user_style = $this_userdata['user_style']; - $user_lang = $this_userdata['user_lang']; - $user_timezone = $this_userdata['user_timezone']; - $user_dateformat = htmlspecialchars($this_userdata['user_dateformat']); - - $user_status = $this_userdata['user_active']; - $user_allowavatar = $this_userdata['user_allowavatar']; - $user_allowpm = $this_userdata['user_allow_pm']; - - $COPPA = false; - - $html_status = ($this_userdata['user_allowhtml'] ) ? $lang['HTML_is_ON'] : $lang['HTML_is_OFF']; - $bbcode_status = ($this_userdata['user_allowbbcode'] ) ? $lang['BBCode_is_ON'] : $lang['BBCode_is_OFF']; - $smilies_status = ($this_userdata['user_allowsmile'] ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF']; - } - - if( isset($HTTP_POST_VARS['avatargallery']) && !$error ) - { - if( !$error ) - { - $user_id = intval($HTTP_POST_VARS['id']); - - $template->set_filenames(array( - "body" => "admin/user_avatar_gallery.tpl") - ); - - $dir = @opendir("../" . $board_config['avatar_gallery_path']); - - $avatar_images = array(); - while( $file = @readdir($dir) ) - { - if( $file != "." && $file != ".." && !is_file(phpbb_realpath("./../" . $board_config['avatar_gallery_path'] . "/" . $file)) && !is_link(phpbb_realpath("./../" . $board_config['avatar_gallery_path'] . "/" . $file)) ) - { - $sub_dir = @opendir("../" . $board_config['avatar_gallery_path'] . "/" . $file); - - $avatar_row_count = 0; - $avatar_col_count = 0; - - while( $sub_file = @readdir($sub_dir) ) - { - if( preg_match("/(\.gif$|\.png$|\.jpg)$/is", $sub_file) ) - { - $avatar_images[$file][$avatar_row_count][$avatar_col_count] = $file . "/" . $sub_file; - - $avatar_col_count++; - if( $avatar_col_count == 5 ) - { - $avatar_row_count++; - $avatar_col_count = 0; - } - } - } - } - } - - @closedir($dir); - - if( isset($HTTP_POST_VARS['avatarcategory']) ) - { - $category = htmlspecialchars($HTTP_POST_VARS['avatarcategory']); - } - else - { - list($category, ) = each($avatar_images); - } - @reset($avatar_images); - - $s_categories = ""; - while( list($key) = each($avatar_images) ) - { - $selected = ( $key == $category ) ? "selected=\"selected\"" : ""; - if( count($avatar_images[$key]) ) - { - $s_categories .= ''; - } - } - - $s_colspan = 0; - for($i = 0; $i < count($avatar_images[$category]); $i++) - { - $template->assign_block_vars("avatar_row", array()); - - $s_colspan = max($s_colspan, count($avatar_images[$category][$i])); - - for($j = 0; $j < count($avatar_images[$category][$i]); $j++) - { - $template->assign_block_vars("avatar_row.avatar_column", array( - "AVATAR_IMAGE" => "../" . $board_config['avatar_gallery_path'] . "/" . $avatar_images[$category][$i][$j]) - ); - - $template->assign_block_vars("avatar_row.avatar_option_column", array( - "S_OPTIONS_AVATAR" => $avatar_images[$category][$i][$j]) - ); - } - } - - $coppa = ( ( !$HTTP_POST_VARS['coppa'] && !$HTTP_GET_VARS['coppa'] ) || $mode == "register") ? 0 : TRUE; - - $s_hidden_fields = ''; - $s_hidden_fields .= ''; - - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - $s_hidden_fields .= ''; - - $template->assign_vars(array( - "L_USER_TITLE" => $lang['User_admin'], - "L_USER_EXPLAIN" => $lang['User_admin_explain'], - "L_AVATAR_GALLERY" => $lang['Avatar_gallery'], - "L_SELECT_AVATAR" => $lang['Select_avatar'], - "L_RETURN_PROFILE" => $lang['Return_profile'], - "L_CATEGORY" => $lang['Select_category'], - "L_GO" => $lang['Go'], - - "S_OPTIONS_CATEGORIES" => $s_categories, - "S_COLSPAN" => $s_colspan, - "S_PROFILE_ACTION" => append_sid("admin_users.$phpEx?mode=$mode"), - "S_HIDDEN_FIELDS" => $s_hidden_fields) - ); - } - } - else - { - $s_hidden_fields = ''; - $s_hidden_fields .= ''; - - if( !empty($user_avatar_local) ) - { - $s_hidden_fields .= ''; - } - - if( $user_avatar_type ) - { - switch( $user_avatar_type ) - { - case USER_AVATAR_UPLOAD: - $avatar = ''; - break; - case USER_AVATAR_REMOTE: - $avatar = ''; - break; - case USER_AVATAR_GALLERY: - $avatar = ''; - break; - } - } - else - { - $avatar = ""; - } - - $sql = "SELECT * FROM " . RANKS_TABLE . " - WHERE rank_special = 1 - ORDER BY rank_title"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain ranks data', '', __LINE__, __FILE__, $sql); - } - - $rank_select_box = ''; - while( $row = $db->sql_fetchrow($result) ) - { - $rank = $row['rank_title']; - $rank_id = $row['rank_id']; - - $selected = ( $this_userdata['user_rank'] == $rank_id ) ? ' selected="selected"' : ''; - $rank_select_box .= ''; - } - - $template->set_filenames(array( - "body" => "admin/user_edit_body.tpl") - ); - - // - // Let's do an overall check for settings/versions which would prevent - // us from doing file uploads.... - // - $ini_val = ( phpversion() >= '4.0.0' ) ? 'ini_get' : 'get_cfg_var'; - $form_enctype = ( !@$ini_val('file_uploads') || phpversion() == '4.0.4pl1' || !$board_config['allow_avatar_upload'] || ( phpversion() < '4.0.3' && @$ini_val('open_basedir') != '' ) ) ? '' : 'enctype="multipart/form-data"'; - - $template->assign_vars(array( - 'USERNAME' => $username, - 'EMAIL' => $email, - 'YIM' => $yim, - 'ICQ' => $icq, - 'MSN' => $msn, - 'AIM' => $aim, - 'OCCUPATION' => $occupation, - 'INTERESTS' => $interests, - 'LOCATION' => $location, - 'WEBSITE' => $website, - 'SIGNATURE' => str_replace('
    ', "\n", $signature), - 'VIEW_EMAIL_YES' => ($viewemail) ? 'checked="checked"' : '', - 'VIEW_EMAIL_NO' => (!$viewemail) ? 'checked="checked"' : '', - 'HIDE_USER_YES' => (!$allowviewonline) ? 'checked="checked"' : '', - 'HIDE_USER_NO' => ($allowviewonline) ? 'checked="checked"' : '', - 'NOTIFY_PM_YES' => ($notifypm) ? 'checked="checked"' : '', - 'NOTIFY_PM_NO' => (!$notifypm) ? 'checked="checked"' : '', - 'POPUP_PM_YES' => ($popuppm) ? 'checked="checked"' : '', - 'POPUP_PM_NO' => (!$popuppm) ? 'checked="checked"' : '', - 'ALWAYS_ADD_SIGNATURE_YES' => ($attachsig) ? 'checked="checked"' : '', - 'ALWAYS_ADD_SIGNATURE_NO' => (!$attachsig) ? 'checked="checked"' : '', - 'NOTIFY_REPLY_YES' => ( $notifyreply ) ? 'checked="checked"' : '', - 'NOTIFY_REPLY_NO' => ( !$notifyreply ) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_BBCODE_YES' => ($allowbbcode) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_BBCODE_NO' => (!$allowbbcode) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_HTML_YES' => ($allowhtml) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_HTML_NO' => (!$allowhtml) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_SMILIES_YES' => ($allowsmilies) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_SMILIES_NO' => (!$allowsmilies) ? 'checked="checked"' : '', - 'AVATAR' => $avatar, - 'LANGUAGE_SELECT' => language_select($user_lang), - 'TIMEZONE_SELECT' => tz_select($user_timezone), - 'STYLE_SELECT' => style_select($user_style, 'style'), - 'DATE_FORMAT' => $user_dateformat, - 'ALLOW_PM_YES' => ($user_allowpm) ? 'checked="checked"' : '', - 'ALLOW_PM_NO' => (!$user_allowpm) ? 'checked="checked"' : '', - 'ALLOW_AVATAR_YES' => ($user_allowavatar) ? 'checked="checked"' : '', - 'ALLOW_AVATAR_NO' => (!$user_allowavatar) ? 'checked="checked"' : '', - 'USER_ACTIVE_YES' => ($user_status) ? 'checked="checked"' : '', - 'USER_ACTIVE_NO' => (!$user_status) ? 'checked="checked"' : '', - 'RANK_SELECT_BOX' => $rank_select_box, - - 'L_USERNAME' => $lang['Username'], - 'L_USER_TITLE' => $lang['User_admin'], - 'L_USER_EXPLAIN' => $lang['User_admin_explain'], - 'L_NEW_PASSWORD' => $lang['New_password'], - 'L_PASSWORD_IF_CHANGED' => $lang['password_if_changed'], - 'L_CONFIRM_PASSWORD' => $lang['Confirm_password'], - 'L_PASSWORD_CONFIRM_IF_CHANGED' => $lang['password_confirm_if_changed'], - 'L_SUBMIT' => $lang['Submit'], - 'L_RESET' => $lang['Reset'], - 'L_ICQ_NUMBER' => $lang['ICQ'], - 'L_MESSENGER' => $lang['MSNM'], - 'L_YAHOO' => $lang['YIM'], - 'L_WEBSITE' => $lang['Website'], - 'L_AIM' => $lang['AIM'], - 'L_LOCATION' => $lang['Location'], - 'L_OCCUPATION' => $lang['Occupation'], - 'L_BOARD_LANGUAGE' => $lang['Board_lang'], - 'L_BOARD_STYLE' => $lang['Board_style'], - 'L_TIMEZONE' => $lang['Timezone'], - 'L_DATE_FORMAT' => $lang['Date_format'], - 'L_DATE_FORMAT_EXPLAIN' => $lang['Date_format_explain'], - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - 'L_INTERESTS' => $lang['Interests'], - 'L_ALWAYS_ALLOW_SMILIES' => $lang['Always_smile'], - 'L_ALWAYS_ALLOW_BBCODE' => $lang['Always_bbcode'], - 'L_ALWAYS_ALLOW_HTML' => $lang['Always_html'], - 'L_HIDE_USER' => $lang['Hide_user'], - 'L_ALWAYS_ADD_SIGNATURE' => $lang['Always_add_sig'], - - 'L_SPECIAL' => $lang['User_special'], - 'L_SPECIAL_EXPLAIN' => $lang['User_special_explain'], - 'L_USER_ACTIVE' => $lang['User_status'], - 'L_ALLOW_PM' => $lang['User_allowpm'], - 'L_ALLOW_AVATAR' => $lang['User_allowavatar'], - - 'L_AVATAR_PANEL' => $lang['Avatar_panel'], - 'L_AVATAR_EXPLAIN' => $lang['Admin_avatar_explain'], - 'L_DELETE_AVATAR' => $lang['Delete_Image'], - 'L_CURRENT_IMAGE' => $lang['Current_Image'], - 'L_UPLOAD_AVATAR_FILE' => $lang['Upload_Avatar_file'], - 'L_UPLOAD_AVATAR_URL' => $lang['Upload_Avatar_URL'], - 'L_AVATAR_GALLERY' => $lang['Select_from_gallery'], - 'L_SHOW_GALLERY' => $lang['View_avatar_gallery'], - 'L_LINK_REMOTE_AVATAR' => $lang['Link_remote_Avatar'], - - 'L_SIGNATURE' => $lang['Signature'], - 'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars'] ), - 'L_NOTIFY_ON_PRIVMSG' => $lang['Notify_on_privmsg'], - 'L_NOTIFY_ON_REPLY' => $lang['Always_notify'], - 'L_POPUP_ON_PRIVMSG' => $lang['Popup_on_privmsg'], - 'L_PREFERENCES' => $lang['Preferences'], - 'L_PUBLIC_VIEW_EMAIL' => $lang['Public_view_email'], - 'L_ITEMS_REQUIRED' => $lang['Items_required'], - 'L_REGISTRATION_INFO' => $lang['Registration_info'], - 'L_PROFILE_INFO' => $lang['Profile_info'], - 'L_PROFILE_INFO_NOTICE' => $lang['Profile_info_warn'], - 'L_EMAIL_ADDRESS' => $lang['Email_address'], - 'S_FORM_ENCTYPE' => $form_enctype, - - 'HTML_STATUS' => $html_status, - 'BBCODE_STATUS' => sprintf($bbcode_status, '', ''), - 'SMILIES_STATUS' => $smilies_status, - - 'L_DELETE_USER' => $lang['User_delete'], - 'L_DELETE_USER_EXPLAIN' => $lang['User_delete_explain'], - 'L_SELECT_RANK' => $lang['Rank_title'], - - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_PROFILE_ACTION' => append_sid("admin_users.$phpEx")) - ); - - if( file_exists(@phpbb_realpath('./../' . $board_config['avatar_path'])) && ($board_config['allow_avatar_upload'] == TRUE) ) - { - if ( $form_enctype != '' ) - { - $template->assign_block_vars('avatar_local_upload', array() ); - } - $template->assign_block_vars('avatar_remote_upload', array() ); - } - - if( file_exists(@phpbb_realpath('./../' . $board_config['avatar_gallery_path'])) && ($board_config['allow_avatar_local'] == TRUE) ) - { - $template->assign_block_vars('avatar_local_gallery', array() ); - } - - if( $board_config['allow_avatar_remote'] == TRUE ) - { - $template->assign_block_vars('avatar_remote_link', array() ); - } - } - - $template->pparse('body'); -} -else -{ - // - // Default user selection box - // - $template->set_filenames(array( - 'body' => 'admin/user_select_body.tpl') - ); - - $template->assign_vars(array( - 'L_USER_TITLE' => $lang['User_admin'], - 'L_USER_EXPLAIN' => $lang['User_admin_explain'], - 'L_USER_SELECT' => $lang['Select_a_User'], - 'L_LOOK_UP' => $lang['Look_up_user'], - 'L_FIND_USERNAME' => $lang['Find_username'], - - 'U_SEARCH_USER' => append_sid("./../search.$phpEx?mode=searchuser"), - - 'S_USER_ACTION' => append_sid("admin_users.$phpEx"), - 'S_USER_SELECT' => $select_list) - ); - $template->pparse('body'); - -} - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/admin_words.php b/phpBB2_old/admin/admin_words.php deleted file mode 100644 index 52c1dcd..0000000 --- a/phpBB2_old/admin/admin_words.php +++ /dev/null @@ -1,237 +0,0 @@ -set_filenames(array( - "body" => "admin/words_edit_body.tpl") - ); - - $s_hidden_fields = ''; - - if( $mode == "edit" ) - { - if( $word_id ) - { - $sql = "SELECT * - FROM " . WORDS_TABLE . " - WHERE word_id = $word_id"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not query words table", "Error", __LINE__, __FILE__, $sql); - } - - $word_info = $db->sql_fetchrow($result); - $s_hidden_fields .= ''; - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_word_selected']); - } - } - - $template->assign_vars(array( - "WORD" => $word_info['word'], - "REPLACEMENT" => $word_info['replacement'], - - "L_WORDS_TITLE" => $lang['Words_title'], - "L_WORDS_TEXT" => $lang['Words_explain'], - "L_WORD_CENSOR" => $lang['Edit_word_censor'], - "L_WORD" => $lang['Word'], - "L_REPLACEMENT" => $lang['Replacement'], - "L_SUBMIT" => $lang['Submit'], - - "S_WORDS_ACTION" => append_sid("admin_words.$phpEx"), - "S_HIDDEN_FIELDS" => $s_hidden_fields) - ); - - $template->pparse("body"); - - include('./page_footer_admin.'.$phpEx); - } - else if( $mode == "save" ) - { - $word_id = ( isset($HTTP_POST_VARS['id']) ) ? intval($HTTP_POST_VARS['id']) : 0; - $word = ( isset($HTTP_POST_VARS['word']) ) ? trim($HTTP_POST_VARS['word']) : ""; - $replacement = ( isset($HTTP_POST_VARS['replacement']) ) ? trim($HTTP_POST_VARS['replacement']) : ""; - - if($word == "" || $replacement == "") - { - message_die(GENERAL_MESSAGE, $lang['Must_enter_word']); - } - - if( $word_id ) - { - $sql = "UPDATE " . WORDS_TABLE . " - SET word = '" . str_replace("\'", "''", $word) . "', replacement = '" . str_replace("\'", "''", $replacement) . "' - WHERE word_id = $word_id"; - $message = $lang['Word_updated']; - } - else - { - $sql = "INSERT INTO " . WORDS_TABLE . " (word, replacement) - VALUES ('" . str_replace("\'", "''", $word) . "', '" . str_replace("\'", "''", $replacement) . "')"; - $message = $lang['Word_added']; - } - - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not insert data into words table", $lang['Error'], __LINE__, __FILE__, $sql); - } - - $message .= "

    " . sprintf($lang['Click_return_wordadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - else if( $mode == "delete" ) - { - if( isset($HTTP_POST_VARS['id']) || isset($HTTP_GET_VARS['id']) ) - { - $word_id = ( isset($HTTP_POST_VARS['id']) ) ? $HTTP_POST_VARS['id'] : $HTTP_GET_VARS['id']; - $word_id = intval($word_id); - } - else - { - $word_id = 0; - } - - if( $word_id ) - { - $sql = "DELETE FROM " . WORDS_TABLE . " - WHERE word_id = $word_id"; - - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not remove data from words table", $lang['Error'], __LINE__, __FILE__, $sql); - } - - $message = $lang['Word_removed'] . "

    " . sprintf($lang['Click_return_wordadmin'], "", "") . "

    " . sprintf($lang['Click_return_admin_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_word_selected']); - } - } -} -else -{ - $template->set_filenames(array( - "body" => "admin/words_list_body.tpl") - ); - - $sql = "SELECT * - FROM " . WORDS_TABLE . " - ORDER BY word"; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Could not query words table", $lang['Error'], __LINE__, __FILE__, $sql); - } - - $word_rows = $db->sql_fetchrowset($result); - $word_count = count($word_rows); - - $template->assign_vars(array( - "L_WORDS_TITLE" => $lang['Words_title'], - "L_WORDS_TEXT" => $lang['Words_explain'], - "L_WORD" => $lang['Word'], - "L_REPLACEMENT" => $lang['Replacement'], - "L_EDIT" => $lang['Edit'], - "L_DELETE" => $lang['Delete'], - "L_ADD_WORD" => $lang['Add_new_word'], - "L_ACTION" => $lang['Action'], - - "S_WORDS_ACTION" => append_sid("admin_words.$phpEx"), - "S_HIDDEN_FIELDS" => '') - ); - - for($i = 0; $i < $word_count; $i++) - { - $word = $word_rows[$i]['word']; - $replacement = $word_rows[$i]['replacement']; - $word_id = $word_rows[$i]['word_id']; - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars("words", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - "WORD" => $word, - "REPLACEMENT" => $replacement, - - "U_WORD_EDIT" => append_sid("admin_words.$phpEx?mode=edit&id=$word_id"), - "U_WORD_DELETE" => append_sid("admin_words.$phpEx?mode=delete&id=$word_id")) - ); - } -} - -$template->pparse("body"); - -include('./page_footer_admin.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/admin_xs.php b/phpBB2_old/admin/admin_xs.php deleted file mode 100644 index cfee279..0000000 --- a/phpBB2_old/admin/admin_xs.php +++ /dev/null @@ -1,36 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2_old/admin/index.php b/phpBB2_old/admin/index.php deleted file mode 100644 index b6e78d3..0000000 --- a/phpBB2_old/admin/index.php +++ /dev/null @@ -1,592 +0,0 @@ -set_filenames(array( - "body" => "admin/index_navigate.tpl") - ); - - $template->assign_vars(array( - "U_FORUM_INDEX" => append_sid("../index.$phpEx"), - "U_ADMIN_INDEX" => append_sid("index.$phpEx?pane=right"), - - "L_FORUM_INDEX" => $lang['Main_index'], - "L_ADMIN_INDEX" => $lang['Admin_Index'], - "L_PREVIEW_FORUM" => $lang['Preview_forum']) - ); - - ksort($module); - - while( list($cat, $action_array) = each($module) ) - { - $cat = ( !empty($lang[$cat]) ) ? $lang[$cat] : preg_replace("/_/", " ", $cat); - - $template->assign_block_vars("catrow", array( - "ADMIN_CATEGORY" => $cat) - ); - - ksort($action_array); - - $row_count = 0; - while( list($action, $file) = each($action_array) ) - { - $row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action); - - $template->assign_block_vars("catrow.modulerow", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - - "ADMIN_MODULE" => $action, - "U_ADMIN_MODULE" => append_sid($file)) - ); - $row_count++; - } - } - - $template->pparse("body"); - - include('./page_footer_admin.'.$phpEx); -} -elseif( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'right' ) -{ - - include('./page_header_admin.'.$phpEx); - - $template->set_filenames(array( - "body" => "admin/index_body.tpl") - ); - - $template->assign_vars(array( - "L_WELCOME" => $lang['Welcome_phpBB'], - "L_ADMIN_INTRO" => $lang['Admin_intro'], - "L_FORUM_STATS" => $lang['Forum_stats'], - "L_WHO_IS_ONLINE" => $lang['Who_is_Online'], - "L_USERNAME" => $lang['Username'], - "L_LOCATION" => $lang['Location'], - "L_LAST_UPDATE" => $lang['Last_updated'], - "L_IP_ADDRESS" => $lang['IP_Address'], - "L_STATISTIC" => $lang['Statistic'], - "L_VALUE" => $lang['Value'], - "L_NUMBER_POSTS" => $lang['Number_posts'], - "L_POSTS_PER_DAY" => $lang['Posts_per_day'], - "L_NUMBER_TOPICS" => $lang['Number_topics'], - "L_TOPICS_PER_DAY" => $lang['Topics_per_day'], - "L_NUMBER_USERS" => $lang['Number_users'], - "L_USERS_PER_DAY" => $lang['Users_per_day'], - "L_BOARD_STARTED" => $lang['Board_started'], - "L_AVATAR_DIR_SIZE" => $lang['Avatar_dir_size'], - "L_DB_SIZE" => $lang['Database_size'], - "L_FORUM_LOCATION" => $lang['Forum_Location'], - "L_STARTED" => $lang['Login'], - "L_GZIP_COMPRESSION" => $lang['Gzip_compression']) - ); - - // - // Get forum statistics - // - $total_posts = get_db_stat('postcount'); - $total_users = get_db_stat('usercount'); - $total_topics = get_db_stat('topiccount'); - - $start_date = create_date($board_config['default_dateformat'], $board_config['board_startdate'], $board_config['board_timezone']); - - $boarddays = ( time() - $board_config['board_startdate'] ) / 86400; - - $posts_per_day = sprintf("%.2f", $total_posts / $boarddays); - $topics_per_day = sprintf("%.2f", $total_topics / $boarddays); - $users_per_day = sprintf("%.2f", $total_users / $boarddays); - - $avatar_dir_size = 0; - - if ($avatar_dir = @opendir($phpbb_root_path . $board_config['avatar_path'])) - { - while( $file = @readdir($avatar_dir) ) - { - if( $file != "." && $file != ".." ) - { - $avatar_dir_size += @filesize($phpbb_root_path . $board_config['avatar_path'] . "/" . $file); - } - } - @closedir($avatar_dir); - - // - // This bit of code translates the avatar directory size into human readable format - // Borrowed the code from the PHP.net annoted manual, origanally written by: - // Jesse (jesse@jess.on.ca) - // - if($avatar_dir_size >= 1048576) - { - $avatar_dir_size = round($avatar_dir_size / 1048576 * 100) / 100 . " MB"; - } - else if($avatar_dir_size >= 1024) - { - $avatar_dir_size = round($avatar_dir_size / 1024 * 100) / 100 . " KB"; - } - else - { - $avatar_dir_size = $avatar_dir_size . " Bytes"; - } - - } - else - { - // Couldn't open Avatar dir. - $avatar_dir_size = $lang['Not_available']; - } - - if($posts_per_day > $total_posts) - { - $posts_per_day = $total_posts; - } - - if($topics_per_day > $total_topics) - { - $topics_per_day = $total_topics; - } - - if($users_per_day > $total_users) - { - $users_per_day = $total_users; - } - - // - // DB size ... MySQL only - // - // This code is heavily influenced by a similar routine - // in phpMyAdmin 2.2.0 - // - if( preg_match("/^mysql/", SQL_LAYER) ) - { - $sql = "SELECT VERSION() AS mysql_version"; - if($result = $db->sql_query($sql)) - { - $row = $db->sql_fetchrow($result); - $version = $row['mysql_version']; - - if( preg_match("/^(3\.23|4\.)/", $version) ) - { - $db_name = ( preg_match("/^(3\.23\.[6-9])|(3\.23\.[1-9][1-9])|(4\.)/", $version) ) ? "`$dbname`" : $dbname; - - $sql = "SHOW TABLE STATUS - FROM " . $db_name; - if($result = $db->sql_query($sql)) - { - $tabledata_ary = $db->sql_fetchrowset($result); - - $dbsize = 0; - for($i = 0; $i < count($tabledata_ary); $i++) - { - if( $tabledata_ary[$i]['Type'] != "MRG_MyISAM" ) - { - if( $table_prefix != "" ) - { - if( strstr($tabledata_ary[$i]['Name'], $table_prefix) ) - { - $dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length']; - } - } - else - { - $dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length']; - } - } - } - } // Else we couldn't get the table status. - } - else - { - $dbsize = $lang['Not_available']; - } - } - else - { - $dbsize = $lang['Not_available']; - } - } - else if( preg_match("/^mssql/", SQL_LAYER) ) - { - $sql = "SELECT ((SUM(size) * 8.0) * 1024.0) as dbsize - FROM sysfiles"; - if( $result = $db->sql_query($sql) ) - { - $dbsize = ( $row = $db->sql_fetchrow($result) ) ? intval($row['dbsize']) : $lang['Not_available']; - } - else - { - $dbsize = $lang['Not_available']; - } - } - else - { - $dbsize = $lang['Not_available']; - } - - if ( is_integer($dbsize) ) - { - if( $dbsize >= 1048576 ) - { - $dbsize = sprintf("%.2f MB", ( $dbsize / 1048576 )); - } - else if( $dbsize >= 1024 ) - { - $dbsize = sprintf("%.2f KB", ( $dbsize / 1024 )); - } - else - { - $dbsize = sprintf("%.2f Bytes", $dbsize); - } - } - - $template->assign_vars(array( - "NUMBER_OF_POSTS" => $total_posts, - "NUMBER_OF_TOPICS" => $total_topics, - "NUMBER_OF_USERS" => $total_users, - "START_DATE" => $start_date, - "POSTS_PER_DAY" => $posts_per_day, - "TOPICS_PER_DAY" => $topics_per_day, - "USERS_PER_DAY" => $users_per_day, - "AVATAR_DIR_SIZE" => $avatar_dir_size, - "DB_SIZE" => $dbsize, - "GZIP_COMPRESSION" => ( $board_config['gzip_compress'] ) ? $lang['ON'] : $lang['OFF']) - ); - // - // End forum statistics - // - - // - // Get users online information. - // - $sql = "SELECT u.user_id, u.username, u.user_session_time, u.user_session_page, s.session_logged_in, s.session_ip, s.session_start - FROM " . USERS_TABLE . " u, " . SESSIONS_TABLE . " s - WHERE s.session_logged_in = " . TRUE . " - AND u.user_id = s.session_user_id - AND u.user_id <> " . ANONYMOUS . " - AND s.session_time >= " . ( time() - 300 ) . " - ORDER BY u.user_session_time DESC"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Couldn't obtain regd user/online information.", "", __LINE__, __FILE__, $sql); - } - $onlinerow_reg = $db->sql_fetchrowset($result); - - $sql = "SELECT session_page, session_logged_in, session_time, session_ip, session_start - FROM " . SESSIONS_TABLE . " - WHERE session_logged_in = 0 - AND session_time >= " . ( time() - 300 ) . " - ORDER BY session_time DESC"; - if(!$result = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Couldn't obtain guest user/online information.", "", __LINE__, __FILE__, $sql); - } - $onlinerow_guest = $db->sql_fetchrowset($result); - - $sql = "SELECT forum_name, forum_id - FROM " . FORUMS_TABLE; - if($forums_result = $db->sql_query($sql)) - { - while($forumsrow = $db->sql_fetchrow($forums_result)) - { - $forum_data[$forumsrow['forum_id']] = $forumsrow['forum_name']; - } - } - else - { - message_die(GENERAL_ERROR, "Couldn't obtain user/online forums information.", "", __LINE__, __FILE__, $sql); - } - - $reg_userid_ary = array(); - - if( count($onlinerow_reg) ) - { - $registered_users = 0; - - for($i = 0; $i < count($onlinerow_reg); $i++) - { - if( !inarray($onlinerow_reg[$i]['user_id'], $reg_userid_ary) ) - { - $reg_userid_ary[] = $onlinerow_reg[$i]['user_id']; - - $username = $onlinerow_reg[$i]['username']; - - if( $onlinerow_reg[$i]['user_allow_viewonline'] || $userdata['user_level'] == ADMIN ) - { - $registered_users++; - $hidden = FALSE; - } - else - { - $hidden_users++; - $hidden = TRUE; - } - - if( $onlinerow_reg[$i]['user_session_page'] < 1 ) - { - switch($onlinerow_reg[$i]['user_session_page']) - { - case PAGE_INDEX: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_POSTING: - $location = $lang['Posting_message']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_LOGIN: - $location = $lang['Logging_on']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_SEARCH: - $location = $lang['Searching_forums']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_PROFILE: - $location = $lang['Viewing_profile']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_VIEWONLINE: - $location = $lang['Viewing_online']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_VIEWMEMBERS: - $location = $lang['Viewing_member_list']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_PRIVMSGS: - $location = $lang['Viewing_priv_msgs']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_FAQ: - $location = $lang['Viewing_FAQ']; - $location_url = "index.$phpEx?pane=right"; - break; - default: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx?pane=right"; - } - } - else - { - $location_url = append_sid("admin_forums.$phpEx?mode=editforum&" . POST_FORUM_URL . "=" . $onlinerow_reg[$i]['user_session_page']); - $location = $forum_data[$onlinerow_reg[$i]['user_session_page']]; - } - - $row_color = ( $registered_users % 2 ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( $registered_users % 2 ) ? $theme['td_class1'] : $theme['td_class2']; - - $reg_ip = decode_ip($onlinerow_reg[$i]['session_ip']); - - $template->assign_block_vars("reg_user_row", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - "USERNAME" => $username, - "STARTED" => create_date($board_config['default_dateformat'], $onlinerow_reg[$i]['session_start'], $board_config['board_timezone']), - "LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_reg[$i]['user_session_time'], $board_config['board_timezone']), - "FORUM_LOCATION" => $location, - "IP_ADDRESS" => $reg_ip, - - "U_WHOIS_IP" => "http://network-tools.com/default.asp?host=$reg_ip", - "U_USER_PROFILE" => append_sid("admin_users.$phpEx?mode=edit&" . POST_USERS_URL . "=" . $onlinerow_reg[$i]['user_id']), - "U_FORUM_LOCATION" => append_sid($location_url)) - ); - } - } - - } - else - { - $template->assign_vars(array( - "L_NO_REGISTERED_USERS_BROWSING" => $lang['No_users_browsing']) - ); - } - - // - // Guest users - // - if( count($onlinerow_guest) ) - { - $guest_users = 0; - - for($i = 0; $i < count($onlinerow_guest); $i++) - { - $guest_userip_ary[] = $onlinerow_guest[$i]['session_ip']; - $guest_users++; - - if( $onlinerow_guest[$i]['session_page'] < 1 ) - { - switch( $onlinerow_guest[$i]['session_page'] ) - { - case PAGE_INDEX: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_POSTING: - $location = $lang['Posting_message']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_LOGIN: - $location = $lang['Logging_on']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_SEARCH: - $location = $lang['Searching_forums']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_PROFILE: - $location = $lang['Viewing_profile']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_VIEWONLINE: - $location = $lang['Viewing_online']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_VIEWMEMBERS: - $location = $lang['Viewing_member_list']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_PRIVMSGS: - $location = $lang['Viewing_priv_msgs']; - $location_url = "index.$phpEx?pane=right"; - break; - case PAGE_FAQ: - $location = $lang['Viewing_FAQ']; - $location_url = "index.$phpEx?pane=right"; - break; - default: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx?pane=right"; - } - } - else - { - $location_url = append_sid("admin_forums.$phpEx?mode=editforum&" . POST_FORUM_URL . "=" . $onlinerow_guest[$i]['session_page']); - $location = $forum_data[$onlinerow_guest[$i]['session_page']]; - } - - $row_color = ( $guest_users % 2 ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( $guest_users % 2 ) ? $theme['td_class1'] : $theme['td_class2']; - - $guest_ip = decode_ip($onlinerow_guest[$i]['session_ip']); - - $template->assign_block_vars("guest_user_row", array( - "ROW_COLOR" => "#" . $row_color, - "ROW_CLASS" => $row_class, - "USERNAME" => $lang['Guest'], - "STARTED" => create_date($board_config['default_dateformat'], $onlinerow_guest[$i]['session_start'], $board_config['board_timezone']), - "LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_guest[$i]['session_time'], $board_config['board_timezone']), - "FORUM_LOCATION" => $location, - "IP_ADDRESS" => $guest_ip, - - "U_WHOIS_IP" => "http://network-tools.com/default.asp?host=$guest_ip", - "U_FORUM_LOCATION" => append_sid($location_url)) - ); - } - - } - else - { - $template->assign_vars(array( - "L_NO_GUESTS_BROWSING" => $lang['No_users_browsing']) - ); - } - - $template->pparse("body"); - - include('./page_footer_admin.'.$phpEx); - -} -else -{ - // - // Generate frameset - // - $template->set_filenames(array( - "body" => "admin/index_frameset.tpl") - ); - - $template->assign_vars(array( - "S_FRAME_NAV" => append_sid("index.$phpEx?pane=left"), - "S_FRAME_MAIN" => append_sid("index.$phpEx?pane=right")) - ); - - header ("Expires: " . gmdate("D, d M Y H:i:s", time()) . " GMT"); - header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); - - $template->pparse("body"); - - $db->sql_close(); - exit; - -} - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/page_footer_admin.php b/phpBB2_old/admin/page_footer_admin.php deleted file mode 100644 index 82df14c..0000000 --- a/phpBB2_old/admin/page_footer_admin.php +++ /dev/null @@ -1,73 +0,0 @@ -set_filenames(array( - 'page_footer' => 'admin/page_footer.tpl') -); - -$template->assign_vars(array( - 'PHPBB_VERSION' => '2' . $board_config['version'], - 'TRANSLATION_INFO' => $lang['TRANSLATION_INFO']) -); - -$template->pparse('page_footer'); - -// -// Close our DB connection. -// -$db->sql_close(); - -// -// Compress buffered output if required -// and send to browser -// -if( $do_gzip_compress ) -{ - // - // Borrowed from php.net! - // - $gzip_contents = ob_get_contents(); - ob_end_clean(); - - $gzip_size = strlen($gzip_contents); - $gzip_crc = crc32($gzip_contents); - - $gzip_contents = gzcompress($gzip_contents, 9); - $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4); - - echo "\x1f\x8b\x08\x00\x00\x00\x00\x00"; - echo $gzip_contents; - echo pack('V', $gzip_crc); - echo pack('V', $gzip_size); -} - -exit; - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/page_header_admin.php b/phpBB2_old/admin/page_header_admin.php deleted file mode 100644 index 6fb1b4a..0000000 --- a/phpBB2_old/admin/page_header_admin.php +++ /dev/null @@ -1,138 +0,0 @@ -= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) ) - { - if ( extension_loaded('zlib') ) - { - ob_start('ob_gzhandler'); - } - } - else if ( $phpver > '4.0' ) - { - if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') ) - { - if ( extension_loaded('zlib') ) - { - $do_gzip_compress = TRUE; - ob_start(); - ob_implicit_flush(0); - - header('Content-Encoding: gzip'); - } - } - } -} - -$template->set_filenames(array( - 'header' => 'admin/page_header.tpl') -); - -// Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility -$l_timezone = explode('.', $board_config['board_timezone']); -$l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])]; - -// -// The following assigns all _common_ variables that may be used at any point -// in a template. Note that all URL's should be wrapped in append_sid, as -// should all S_x_ACTIONS for forms. -// -$template->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'PAGE_TITLE' => $page_title, - - 'L_ADMIN' => $lang['Admin'], - 'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']), - 'L_FAQ' => $lang['FAQ'], - - 'U_INDEX' => append_sid('../index.'.$phpEx), - - 'S_TIMEZONE' => sprintf($lang['All_times'], $l_timezone), - 'S_LOGIN_ACTION' => append_sid('../login.'.$phpEx), - 'S_JUMPBOX_ACTION' => append_sid('../viewforum.'.$phpEx), - 'S_CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])), - 'S_CONTENT_DIRECTION' => $lang['DIRECTION'], - 'S_CONTENT_ENCODING' => $lang['ENCODING'], - 'S_CONTENT_DIR_LEFT' => $lang['LEFT'], - 'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'], - - 'T_HEAD_STYLESHEET' => $theme['head_stylesheet'], - 'T_BODY_BACKGROUND' => $theme['body_background'], - 'T_BODY_BGCOLOR' => '#'.$theme['body_bgcolor'], - 'T_BODY_TEXT' => '#'.$theme['body_text'], - 'T_BODY_LINK' => '#'.$theme['body_link'], - 'T_BODY_VLINK' => '#'.$theme['body_vlink'], - 'T_BODY_ALINK' => '#'.$theme['body_alink'], - 'T_BODY_HLINK' => '#'.$theme['body_hlink'], - 'T_TR_COLOR1' => '#'.$theme['tr_color1'], - 'T_TR_COLOR2' => '#'.$theme['tr_color2'], - 'T_TR_COLOR3' => '#'.$theme['tr_color3'], - 'T_TR_CLASS1' => $theme['tr_class1'], - 'T_TR_CLASS2' => $theme['tr_class2'], - 'T_TR_CLASS3' => $theme['tr_class3'], - 'T_TH_COLOR1' => '#'.$theme['th_color1'], - 'T_TH_COLOR2' => '#'.$theme['th_color2'], - 'T_TH_COLOR3' => '#'.$theme['th_color3'], - 'T_TH_CLASS1' => $theme['th_class1'], - 'T_TH_CLASS2' => $theme['th_class2'], - 'T_TH_CLASS3' => $theme['th_class3'], - 'T_TD_COLOR1' => '#'.$theme['td_color1'], - 'T_TD_COLOR2' => '#'.$theme['td_color2'], - 'T_TD_COLOR3' => '#'.$theme['td_color3'], - 'T_TD_CLASS1' => $theme['td_class1'], - 'T_TD_CLASS2' => $theme['td_class2'], - 'T_TD_CLASS3' => $theme['td_class3'], - 'T_FONTFACE1' => $theme['fontface1'], - 'T_FONTFACE2' => $theme['fontface2'], - 'T_FONTFACE3' => $theme['fontface3'], - 'T_FONTSIZE1' => $theme['fontsize1'], - 'T_FONTSIZE2' => $theme['fontsize2'], - 'T_FONTSIZE3' => $theme['fontsize3'], - 'T_FONTCOLOR1' => '#'.$theme['fontcolor1'], - 'T_FONTCOLOR2' => '#'.$theme['fontcolor2'], - 'T_FONTCOLOR3' => '#'.$theme['fontcolor3'], - 'T_SPAN_CLASS1' => $theme['span_class1'], - 'T_SPAN_CLASS2' => $theme['span_class2'], - 'T_SPAN_CLASS3' => $theme['span_class3']) -); - - -$template->pparse('header'); - -?> diff --git a/phpBB2_old/admin/pagestart.php b/phpBB2_old/admin/pagestart.php deleted file mode 100644 index 87f1e5e..0000000 --- a/phpBB2_old/admin/pagestart.php +++ /dev/null @@ -1,69 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2_old/admin/xs_cache.php b/phpBB2_old/admin/xs_cache.php deleted file mode 100644 index 540284d..0000000 --- a/phpBB2_old/admin/xs_cache.php +++ /dev/null @@ -1,264 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_manage_cache'] . '')); - -$data = ''; - -$skip_files = array( - '.', - '..', - '.htaccess', - 'index.htm', - 'index.html', - 'index.php', - 'attach_config.php', - ); - -// -// clear cache -// -if(isset($HTTP_GET_VARS['clear']) && !defined('DEMO_MODE')) -{ - @set_time_limit(XS_MAX_TIMEOUT); - $clear = $HTTP_GET_VARS['clear']; - if(!$clear) - { - // clear all cache - $match = ''; - } - else - { - $match = XS_TPL_PREFIX . $clear . XS_SEPARATOR; - } - $match_len = strlen($match); - $style_len = strlen(STYLE_EXTENSION); - $backup_len = strlen(XS_BACKUP_EXT); - $dir = $template->cachedir; - $res = @opendir($dir); - if(!$res) - { - $data = $lang['xs_cache_nowrite']; - } - else - { - $num = 0; - $num_error = 0; - while(($file = readdir($res)) !== false) - { - $len = strlen($file); - // delete only files that match pattern, that aren't in exclusion list and that aren't downloaded styles. - if(substr($file, 0, $match_len) === $match && !xs_in_array($file, $skip_files)) - if(substr($file, $len - $style_len) !== STYLE_EXTENSION && substr($file, $len - $backup_len) !== XS_BACKUP_EXT) - { - $res2 = @unlink($dir . $file); - if($res2) - { - $data .= str_replace('{FILE}', $file, $lang['xs_cache_log_deleted']) . "
    \n"; - $num ++; - } - elseif(@is_file($dir . $file)) - { - $data .= str_replace('{FILE}', $file, $lang['xs_cache_log_nodelete']) . "
    \n"; - $num_error ++; - } - } - } - closedir($res); - if(!$num && !$num_error) - { - if($clear) - { - $data .= str_replace('{TPL}', $clear, $lang['xs_cache_log_nothing']) . "
    \n"; - } - else - { - $data .= $lang['xs_cache_log_nothing2'] . "
    \n"; - } - } - else - { - $data .= str_replace('{NUM}', $num, $lang['xs_cache_log_count']) . "
    \n"; - if($num_error) - { - $data .= str_replace('{NUM}', $num_error, $lang['xs_cache_log_count2']) . "
    \n"; - } - } - } -} - - -// -// compile cache -// -if(isset($HTTP_GET_VARS['compile']) && !defined('DEMO_MODE')) -{ - $tpl = $HTTP_GET_VARS['compile']; - @set_time_limit(XS_MAX_TIMEOUT); - $num_errors = 0; - $num_compiled = 0; - if($tpl) - { - $dir = $template->tpldir . $tpl . '/'; - compile_cache($dir, '', $tpl); - } - else - { - $res = opendir('../templates'); - while(($file = readdir($res)) !== false) - { - if($file !== '.' && $file !== '..' && is_dir('../templates/'.$file) && @file_exists('../templates/'.$file.'/overall_header.tpl')) - { - compile_cache('../templates/'.$file.'/', '', $file); - } - } - closedir($res); - } - $data .= str_replace('{NUM}', $num_compiled, $lang['xs_cache_log_compiled']) . "
    \n"; - $data .= str_replace('{NUM}', $num_errors, $lang['xs_cache_log_errors']) . "
    \n"; -} - -function compile_cache($dir, $subdir, $tpl) -{ - global $data, $template, $num_errors, $num_compiled, $lang; - $str = $dir . $subdir; - $res = @opendir($dir . $subdir); - if(!$res) - { - $data .= str_replace('{DIR}', $dir.$subdir, $lang['xs_cache_log_noaccess']) . "
    \n"; - $num_errors ++; - return; - } - while(($file = readdir($res)) !== false) - { - if(@is_dir($str . $file) && $file !== '.' && $file !== '..' && $file !== 'CVS') - { - compile_cache($dir, $subdir . $file . '/', $tpl); - } - elseif(substr($file, strlen($file) - 4) === '.tpl') - { - $res2 = $template->precompile($tpl, $subdir . $file); - if($res2) - { - $data .= str_replace('{FILE}', $dir.$subdir.$file, $lang['xs_cache_log_compiled2']) . "
    \n"; - $num_compiled ++; - } - else - { - $data .= str_replace('{FILE}', $dir.$subdir.$file, $lang['xs_cache_log_nocompile']) . "
    \n"; - $num_errors ++; - } - } - } - closedir($res); -} - -// -// get list of installed styles -// -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY template_name'; -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -$template->set_filenames(array('body' => XS_TPL_PATH . 'cache.tpl')); - -$prev_id = -1; -$prev_tpl = ''; -$style_names = array(); -$j = 0; -for($i=0; $i 0) - { - $str = implode('
    ', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_CLEAR' => "xs_cache.{$phpEx}?clear={$str2}&sid={$userdata['session_id']}", - 'U_COMPILE' => "xs_cache.{$phpEx}?compile={$str2}&sid={$userdata['session_id']}", - ) - ); - } - $prev_id = $item['themes_id']; - $prev_tpl = $item['template_name']; - $style_names = array(htmlspecialchars($item['style_name'])); - } -} -if($prev_id > 0) -{ - $str = implode('
    ', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_CLEAR' => "xs_cache.{$phpEx}?clear={$str2}&sid={$userdata['session_id']}", - 'U_COMPILE' => "xs_cache.{$phpEx}?compile={$str2}&sid={$userdata['session_id']}", - ) - ); -} - -$template->assign_vars(array( - 'U_CLEAR_ALL' => "xs_cache.{$phpEx}?clear=&sid={$userdata['session_id']}", - 'U_COMPILE_ALL' => "xs_cache.{$phpEx}?compile=&sid={$userdata['session_id']}", - 'RESULT' => '

    ' . $data - ) -); - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_chmod.php b/phpBB2_old/admin/xs_chmod.php deleted file mode 100644 index 694069b..0000000 --- a/phpBB2_old/admin/xs_chmod.php +++ /dev/null @@ -1,92 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_configuration'] . '')); -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_chmod'] . '')); - -$lang['xs_chmod_return'] = str_replace('{URL}', append_sid('xs_config.'.$phpEx), $lang['xs_chmod_return']); -$lang['xs_chmod_message1'] .= $lang['xs_chmod_return']; -$lang['xs_chmod_error1'] .= $lang['xs_chmod_return']; - -if(defined('DEMO_MODE')) -{ - xs_error($lang['xs_permission_denied']); -} - -if(!get_ftp_config(append_sid('xs_chmod.'.$phpEx), array(), false)) -{ - exit; -} -xs_ftp_connect(append_sid('xs_chmod.'.$phpEx), array(), true); - -if($ftp === XS_FTP_LOCAL) -{ - @mkdir('../cache', 0777); - @chmod('../cache', 0777); - if(xs_dir_writable('../cache')) - { - xs_message($lang['Information'], $lang['xs_chmod_message1']); - } - xs_error($lang['xs_chmod_error1']); -} - -$str = ftp_pwd($ftp); - -if(strlen($str) && substr($str, strlen($str) - 1) !== '/') -{ - $str .= '/'; -} -$res = @ftp_site($ftp, "CHMOD 0777 {$str}cache"); -if(!$res) -{ - @ftp_mkdir($ftp, 'cache'); - $res = @ftp_site($ftp, "CHMOD 0777 {$str}cache"); -} -@ftp_quit($ftp); -if($res) -{ - xs_message($lang['Information'], $lang['xs_chmod_message1']); -} -else -{ - xs_error($lang['xs_chmod_error1']); -} - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_clone.php b/phpBB2_old/admin/xs_clone.php deleted file mode 100644 index d3f0573..0000000 --- a/phpBB2_old/admin/xs_clone.php +++ /dev/null @@ -1,353 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_clone_styles'] . '')); - -$lang['xs_clone_back'] = str_replace('{URL}', append_sid('xs_clone.'.$phpEx), $lang['xs_clone_back']); - -// -// Check required functions -// -if(!@function_exists('gzcompress')) -{ - xs_error($lang['xs_import_nogzip']); -} - -// -// clone style -// -if(!empty($HTTP_POST_VARS['clone_style']) && !defined('DEMO_MODE')) -{ - $style = intval($HTTP_POST_VARS['clone_style']); - $new_name = stripslashes($HTTP_POST_VARS['clone_name']); - // get theme data - $sql = "SELECT * FROM " . THEMES_TABLE . " WHERE themes_id='{$style}'"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_style_info'] . '

    ' . $lang['xs_clone_back'], __LINE__, __FILE__); - } - $theme = $db->sql_fetchrow($result); - if(empty($theme['themes_id'])) - { - xs_error($lang['xs_no_themes'] . '

    ' . $lang['xs_clone_back']); - } - if($theme['style_name'] === stripslashes($new_name)) - { - xs_error($lang['xs_clone_taken'] . '

    ' . $lang['xs_clone_back']); - } - // check for clone - $sql = "SELECT themes_id FROM " . THEMES_TABLE . " WHERE style_name = '" . xs_sql($new_name) . "'"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_theme_data'] . '

    ' . $lang['xs_clone_back'], __LINE__, __FILE__); - } - $row = $db->sql_fetchrow($result); - if(!empty($row['themes_id'])) - { - xs_error($lang['xs_clone_taken'] . '

    ' . $lang['xs_clone_back']); - } - // clone it - $vars = array('style_name'); - $values = array(xs_sql($new_name)); - foreach($theme as $var => $value) - { - if(!is_integer($var) && $var !== 'style_name' && $var !== 'themes_id') - { - $vars[] = $var; - $values[] = xs_sql($value); - } - } - $sql = "INSERT INTO " . THEMES_TABLE . " (" . implode(', ', $vars) . ") VALUES ('" . implode("','", $values) . "')"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_error_new_row'] . '

    ' . $lang['xs_clone_back'], __LINE__, __FILE__); - } - xs_message($lang['Information'], $lang['xs_theme_cloned'] . '

    ' . $lang['xs_clone_back']); -} - -// -// clone template -// -if(!empty($HTTP_POST_VARS['clone_tpl']) && !defined('DEMO_MODE')) -{ - $old_name = xs_tpl_name($HTTP_POST_VARS['clone_tpl']); - $new_name = xs_tpl_name($HTTP_POST_VARS['clone_style_name']); - if(empty($new_name) || $new_name === $old_name) - { - xs_error($lang['xs_invalid_style_name'] . '

    ' . $lang['xs_clone_back']); - } - // check if template exists - if(@file_exists('../templates/'.$new_name)) - { - xs_error($lang['xs_clone_style_exists'] . '

    ' . $lang['xs_clone_back']); - } - // check variables - $total = intval($HTTP_POST_VARS['total']); - $vars = array('clone_tpl', 'clone_style_name', 'total'); - $count = 0; - $list = array(); - for($i=0; $i<$total; $i++) - { - $vars[] = 'clone_style_id_'.$i; - $vars[] = 'clone_style_'.$i; - $vars[] = 'clone_style_name_'.$i; - if(!empty($HTTP_POST_VARS['clone_style_'.$i]) && !empty($HTTP_POST_VARS['clone_style_name_'.$i])) - { - // prepare for export - $list[] = intval($HTTP_POST_VARS['clone_style_id_'.$i]); - $HTTP_POST_VARS['export_style_'.$i] = $HTTP_POST_VARS['clone_style_'.$i]; - $HTTP_POST_VARS['export_style_id_'.$i] = $HTTP_POST_VARS['clone_style_id_'.$i]; - $HTTP_POST_VARS['export_style_name_'.$i] = $HTTP_POST_VARS['clone_style_name_'.$i]; - // prepare for import - $HTTP_POST_VARS['import_install_'.$count] = '1'; - $count ++; - } - } - if(!$count) - { - xs_error($lang['xs_clone_no_select'] . '

    ' . $lang['xs_clone_back']); - } - $request = array(); - for($i=0; $isql_query($sql)) - { - xs_error($lang['xs_no_theme_data'] . $lang['xs_clone_back']); - } - $theme_rowset = $db->sql_fetchrowset($result); - if(count($theme_rowset) == 0) - { - xs_error($lang['xs_no_themes'] . '

    ' . $lang['xs_clone_back']); - } - $theme_data = xs_generate_themeinfo($theme_rowset, $export, $exportas, $total); - // prepare to pack - $pack_error = ''; - $pack_list = array(); - $pack_replace = array('./theme_info.cfg' => $theme_data); - // pack style - for($i = 0; $i < count($theme_rowset); $i++) - { - $id = $theme_rowset[$i]['themes_id']; - $theme_name = $theme_rowset[$i]['style_name']; - for($j=0; $j<$total; $j++) - { - if(!empty($HTTP_POST_VARS['export_style_name_'.$j]) && $HTTP_POST_VARS['export_style_id_'.$j] == $id) - { - $theme_name = stripslashes($HTTP_POST_VARS['export_style_name_'.$j]); - } - } - $theme_rowset[$i]['style_name'] = $theme_name; - } - $data = pack_style($export, $exportas, $theme_rowset, ''); - // check errors - if($pack_error) - { - xs_error(str_replace('{TPL}', $export, $lang['xs_export_error']) . $pack_error . '

    ' . $lang['xs_clone_back']); - } - if(!$data) - { - xs_error(str_replace('{TPL}', $export, $lang['xs_export_error2']) . '

    ' . $lang['xs_clone_back']); - } - // save as file - $filename = 'clone_' . time() . '.tmp'; - $tmp_filename = XS_TEMP_DIR . $filename; - $f = @fopen($tmp_filename, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $tpl_filename, $lang['xs_error_cannot_create_tmp']) . '

    ' . $lang['xs_clone_back']); - } - fwrite($f, $data); - fclose($f); - // prepare import variables - $total = $count; - $HTTP_POST_VARS['total'] = $count; - $list_only = false; - $get_file = ''; - define('XS_CLONING', true); - $lang['xs_import_back'] = $lang['xs_clone_back']; - include('xs_include_import.' . $phpEx); - include('xs_include_import2.' . $phpEx); -} - - -// -// clone style menu -// -if(!empty($HTTP_GET_VARS['clone'])) -{ - $style = stripslashes($HTTP_GET_VARS['clone']); - $sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " WHERE template_name = '" . xs_sql($style) . "' ORDER BY style_name ASC"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_theme_data'] . '

    ' . $lang['xs_clone_back'], __LINE__, __FILE__); - } - $theme_rowset = $db->sql_fetchrowset($result); - if(count($theme_rowset) == 0) - { - xs_error($lang['xs_no_themes'] . '

    ' . $lang['xs_clone_back']); - } - $template->set_filenames(array('body' => XS_TPL_PATH . 'clone2.tpl')); - // clone template - $template->assign_vars(array( - 'FORM_ACTION' => append_sid('xs_clone.'.$phpEx), - 'CLONE_TEMPLATE' => htmlspecialchars($style), - 'STYLE_ID' => $theme_rowset[0]['themes_id'], - 'STYLE_NAME' => htmlspecialchars($theme_rowset[0]['style_name']), - 'TOTAL' => count($theme_rowset), - 'L_CLONE_STYLE3' => str_replace('{STYLE}', htmlspecialchars($style), $lang['xs_clone_style3']) - )); - // clone styles - for($i=0; $iassign_block_vars('styles', array( - 'ID' => $theme_rowset[$i]['themes_id'], - 'TPL' => htmlspecialchars($theme_rowset[$i]['template_name']), - 'STYLE' => htmlspecialchars($theme_rowset[$i]['style_name']), - 'L_CLONE' => str_replace('{STYLE}', htmlspecialchars($theme_rowset[$i]['style_name']), $lang['xs_clone_style2']) - )); - } - if(count($theme_rowset) == 1) - { - $template->assign_block_vars('switch_select_nostyle', array()); - if($theme_rowset[0]['style_name'] === $style) - { - $template->assign_block_vars('switch_onchange', array()); - } - } - else - { - $template->assign_block_vars('switch_select_style', array()); - for($i=0; $iassign_block_vars('switch_select_style.style', array( - 'NUM' => $i, - 'ID' => $theme_rowset[$i]['themes_id'], - 'NAME' => htmlspecialchars($theme_rowset[$i]['style_name']) - )); - } - } - $template->pparse('body'); - xs_exit(); -} - - - -// -// get list of installed styles -// -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY template_name'; -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -$prev_id = -1; -$prev_tpl = ''; -$style_names = array(); -$j = 0; -for($i=0; $i 0) - { - $str = implode('
    ', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_CLONE' => "xs_clone.{$phpEx}?clone={$str2}&sid={$userdata['session_id']}", - ) - ); - } - $prev_id = $item['themes_id']; - $prev_tpl = $item['template_name']; - $style_names = array(htmlspecialchars($item['style_name'])); - } -} - -if($prev_id > 0) -{ - $str = implode('
    ', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_CLONE' => "xs_clone.{$phpEx}?clone={$str2}&sid={$userdata['session_id']}", - ) - ); -} - -$template->set_filenames(array('body' => XS_TPL_PATH . 'clone.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_config.php b/phpBB2_old/admin/xs_config.php deleted file mode 100644 index fd1ffe1..0000000 --- a/phpBB2_old/admin/xs_config.php +++ /dev/null @@ -1,209 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_configuration'] . '')); - -$lang['xs_config_updated_explain'] = str_replace('{URL}', append_sid('xs_config.'.$phpEx), $lang['xs_config_updated_explain']); -$lang['xs_config_title'] = str_replace('{VERSION}', $template->xs_versiontxt, $lang['xs_config_title']); -$lang['xs_config_warning_explain'] = str_replace('{URL}', append_sid('xs_chmod.'.$phpEx), $lang['xs_config_warning_explain']); -$lang['xs_config_back'] = str_replace('{URL}', append_sid('xs_config.'.$phpEx), $lang['xs_config_back']); - -// -// Updating configuration -// -if(isset($HTTP_POST_VARS['submit']) && !defined('DEMO_MODE')) -{ - $vars = array('xs_use_cache', 'xs_auto_compile', 'xs_auto_recompile', 'xs_php', 'xs_def_template', 'xs_check_switches', 'xs_warn_includes', 'xs_add_comments', 'xs_ftp_host', 'xs_ftp_login', 'xs_ftp_path', 'xs_shownav'); - // checking navigation config - $shownav = 0; - for($i=0; $iassign_block_vars('left_refresh', array( - 'ACTION' => append_sid('index.' . $phpEx . '?pane=left') - )); - } - $HTTP_POST_VARS['xs_shownav'] = $shownav; - // checking submitted data - $update_time = false; - foreach($vars as $var) - { - $new[$var] = stripslashes(trim($HTTP_POST_VARS[$var])); - if(($var == 'xs_auto_recompile') && !$new['xs_auto_compile']) - { - $new[$var] = 0; - } - if($board_config[$var] !== $new[$var]) - { - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value = '" . xs_sql($new[$var]) . "' WHERE config_name = '{$var}'"; - if( !$db->sql_query($sql) ) - { - xs_error(str_replace('{VAR}', $var, $lang['xs_config_sql_error']) . '

    ' . $lang['xs_config_back'], __LINE__, __FILE__); - } - $board_config[$var] = $new[$var]; - if($var === 'xs_check_switches') - { - $update_time = true; - } - } - } - if($update_time) - { - $board_config['xs_template_time'] = time() + 10; // set time 10 seconds in future in case if some tpl file would be compiled right now with current settings - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value = '" . $board_config['xs_template_time'] . "' WHERE config_name = 'xs_template_time'"; - if( !$db->sql_query($sql) ) - { - xs_error(str_replace('{VAR}', 'xs_template_time', $lang['xs_config_sql_error']) . '

    ' . $lang['xs_config_back'], __LINE__, __FILE__); - } - } - $template->assign_block_vars('switch_updated', array()); - $template->load_config($template->root, false); -} - -// check ftp configuration -$xs_ftp_host = $board_config['xs_ftp_host']; -if(empty($xs_ftp_host) && !empty($HTTP_SERVER_VARS['HTTP_HOST'])) -{ - $str = $HTTP_SERVER_VARS['HTTP_HOST']; - $template->assign_vars(array( - 'HOST_GUESS' => str_replace(array('{HOST}', '{CLICK}'), array($str, 'document.config.xs_ftp_host.value=\''.$str.'\''), $lang['xs_ftp_host_guess']) - )); -} -$dir = getcwd(); -$xs_ftp_login = $board_config['xs_ftp_login']; -if(empty($xs_ftp_login)) -{ - if(substr($dir, 0, 6) === '/home/') - { - $str = substr($dir, 6); - $pos = strpos($str, '/'); - if($pos) - { - $str = substr($str, 0, $pos); - $template->assign_vars(array( - 'LOGIN_GUESS' => str_replace(array('{LOGIN}', '{CLICK}'), array($str, 'document.config.xs_ftp_login.value=\''.$str.'\''), $lang['xs_ftp_login_guess']) - )); - } - } -} -$xs_ftp_path = $board_config['xs_ftp_path']; -if(empty($xs_ftp_path)) -{ - if(substr($dir, 0, 6) === '/home/'); - $str = substr($dir, 6); - $pos = strpos($str, '/'); - if($pos) - { - $str = substr($str, $pos + 1); - $pos = strrpos($str, 'admin'); - if($pos) - { - $str = substr($str, 0, $pos-1); - $template->assign_vars(array( - 'PATH_GUESS' => str_replace(array('{PATH}', '{CLICK}'), array($str, 'document.config.xs_ftp_path.value=\''.$str.'\''), $lang['xs_ftp_path_guess']) - )); - } - } -} - -$template->assign_vars(array( - 'XS_USE_CACHE_0' => $board_config['xs_use_cache'] ? '' : ' checked="checked"', - 'XS_USE_CACHE_1' => $board_config['xs_use_cache'] ? ' checked="checked"' : '', - 'XS_AUTO_COMPILE_0' => $board_config['xs_auto_compile'] ? '' : ' checked="checked"', - 'XS_AUTO_COMPILE_1' => $board_config['xs_auto_compile'] ? ' checked="checked"' : '', - 'XS_AUTO_RECOMPILE_0' => $board_config['xs_auto_recompile'] ? '' : ' checked="checked"', - 'XS_AUTO_RECOMPILE_1' => $board_config['xs_auto_recompile'] ? ' checked="checked"' : '', - 'XS_PHP' => htmlspecialchars($board_config['xs_php']), - 'XS_DEF_TEMPLATE' => htmlspecialchars($board_config['xs_def_template']), - 'XS_CHECK_SWITCHES_0' => !$board_config['xs_check_switches'] ? ' checked="checked"' : '', // no check - 'XS_CHECK_SWITCHES_1' => $board_config['xs_check_switches'] == 1 ? ' checked="checked"' : '', // smart check - 'XS_CHECK_SWITCHES_2' => $board_config['xs_check_switches'] == 2 ? ' checked="checked"' : '', // simple check - 'XS_WARN_INCLUDES_0' => $board_config['xs_warn_includes'] ? '' : ' checked="checked"', - 'XS_WARN_INCLUDES_1' => $board_config['xs_warn_includes'] ? ' checked="checked"' : '', - 'XS_ADD_COMMENTS_0' => $board_config['xs_add_comments'] ? '' : ' checked="checked"', - 'XS_ADD_COMMENTS_1' => $board_config['xs_add_comments'] ? ' checked="checked"' : '', - 'XS_FTP_HOST' => defined('DEMO_MODE') ? '' : $xs_ftp_host, - 'XS_FTP_LOGIN' => defined('DEMO_MODE') ? '' : $xs_ftp_login, - 'XS_FTP_PATH' => defined('DEMO_MODE') ? '' : $xs_ftp_path, - 'FORM_ACTION' => append_sid('xs_config.' . $phpEx), - )); - -for($i=0; $iassign_block_vars('shownav', array( - 'NUM' => $i, - 'LABEL' => $lang['xs_config_shownav'][$i], - 'CHECKED' => (($board_config['xs_shownav'] & $num) > 0) ? 'checked="checked"' : '' - )); - } -} - -// test cache -$tpl_filename = $template->make_filename('_xs_test.tpl'); -$cache_filename = $template->make_filename_cache($tpl_filename); -$str = ''; -if(!xs_check_cache($cache_filename)) -{ - $template->assign_block_vars('switch_xs_warning', array()); -} -@unlink($cache_filename); -$debug_data = $str; -$template->assign_vars(array( - 'XS_DEBUG_HDR1' => sprintf($lang['xs_check_hdr'], '_xs_test.tpl'), - 'XS_DEBUG_FILENAME1' => $tpl_filename, - 'XS_DEBUG_FILENAME2' => $cache_filename, - 'XS_DEBUG_DATA' => $debug_data, - )); - -$template->set_filenames(array('body' => XS_TPL_PATH . 'config.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_download.php b/phpBB2_old/admin/xs_download.php deleted file mode 100644 index cdcb4d5..0000000 --- a/phpBB2_old/admin/xs_download.php +++ /dev/null @@ -1,154 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_import_styles'] . '')); -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_download_styles'] . '')); - -// submit url -if(isset($HTTP_GET_VARS['url']) && !defined('DEMO_MODE')) -{ - $id = intval($HTTP_GET_VARS['url']); - $var = 'xs_downloads_' . $id; - $import_data = array( - 'host' => $HTTP_SERVER_VARS['HTTP_HOST'], - 'port' => $HTTP_SERVER_VARS['SERVER_PORT'], - 'url' => str_replace('xs_download.', 'xs_frameset.', $HTTP_SERVER_VARS['PHP_SELF']), - 'session' => $userdata['session_id'], - 'xs' => $template->xs_versiontxt, - 'style' => STYLE_HEADER_VERSION, - ); - $str = ''; - $message = $lang['xs_import_download_warning'] . '

    ' . $str . '

    ' . str_replace('{URL}', append_sid('xs_download.'.$phpEx), $lang['xs_download_back']); - xs_message($lang['Information'], $message); -} - - -if(isset($HTTP_GET_VARS['edit'])) -{ - $id = intval($HTTP_GET_VARS['edit']); - $template->assign_block_vars('edit', array( - 'ID' => $id, - 'TITLE' => $board_config['xs_downloads_title_'.$id], - 'URL' => $board_config['xs_downloads_'.$id] - )); -} - -if(isset($HTTP_POST_VARS['edit']) && !defined('DEMO_MODE')) -{ - $id = intval($HTTP_POST_VARS['edit']); - $update = array(); - if(!empty($HTTP_POST_VARS['edit_delete'])) - { - // delete link - $total = $board_config['xs_downloads_count']; - $update['xs_downloads_count'] = $total - 1; - for($i=$id; $i<($total-1); $i++) - { - $update['xs_downloads_'.$i] = $update['xs_downloads_'.($i+1)]; - $update['xs_downloads_title_'.$i] = $update['xs_downloads_title_'.($i+1)]; - } - $update['xs_downloads_'.($total-1)] = ''; - $update['xs_downloads_title_'.($total-1)] = ''; - } - else - { - $update['xs_downloads_'.$id] = stripslashes($HTTP_POST_VARS['edit_url']); - $update['xs_downloads_title_'.$id] = stripslashes($HTTP_POST_VARS['edit_title']); - } - foreach($update as $var => $value) - { - if(isset($board_config[$var])) - { - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value='" . xs_sql($value) . "' WHERE config_name='" . $var . "'"; - } - else - { - $sql = "INSERT INTO " . CONFIG_TABLE . " (config_name, config_value) VALUES ('" . $var . "', '" . xs_sql($value) . "')"; - } - $db->sql_query($sql); - $board_config[$var] = $value; - } -} - -if(!empty($HTTP_POST_VARS['add_url']) && !defined('DEMO_MODE')) -{ - $id = $board_config['xs_downloads_count']; - $update = array(); - $update['xs_downloads_'.$id] = stripslashes($HTTP_POST_VARS['add_url']); - $update['xs_downloads_title_'.$id] = stripslashes($HTTP_POST_VARS['add_title']); - $update['xs_downloads_count'] = $board_config['xs_downloads_count'] + 1; - foreach($update as $var => $value) - { - if(isset($board_config[$var])) - { - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value='" . xs_sql($value) . "' WHERE config_name='" . $var . "'"; - } - else - { - $sql = "INSERT INTO " . CONFIG_TABLE . " (config_name, config_value) VALUES ('" . $var . "', '" . xs_sql($value) . "')"; - } - $db->sql_query($sql); - $board_config[$var] = $value; - } -} - -for($i=0; $i<$board_config['xs_downloads_count']; $i++) -{ - $row_class = $xs_row_class[$i % 2]; - $template->assign_block_vars('url', array( - 'ROW_CLASS' => $row_class, - 'NUM' => $i, - 'NUM1' => $i + 1, - 'URL' => htmlspecialchars($board_config['xs_downloads_'.$i]), - 'TITLE' => htmlspecialchars($board_config['xs_downloads_title_'.$i]), - 'U_DOWNLOAD' => append_sid('xs_download.'.$phpEx.'?url='.$i), - 'U_EDIT' => append_sid('xs_download.'.$phpEx.'?edit='.$i), - )); -} - -$template->assign_vars(array( - 'U_POST' => append_sid('xs_download.'.$phpEx) - )); - -$template->set_filenames(array('body' => XS_TPL_PATH . 'downloads.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_edit.php b/phpBB2_old/admin/xs_edit.php deleted file mode 100644 index 17aba7d..0000000 --- a/phpBB2_old/admin/xs_edit.php +++ /dev/null @@ -1,507 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - - -// check filter -$filter = isset($HTTP_GET_VARS['filter']) ? stripslashes($HTTP_GET_VARS['filter']) : (isset($HTTP_POST_VARS['filter']) ? stripslashes($HTTP_POST_VARS['filter']) : ''); -if(isset($HTTP_POST_VARS['filter_update'])) -{ - $filter_data = array( - 'ext' => trim(stripslashes($HTTP_POST_VARS['filter_ext'])), - 'data' => trim(stripslashes($HTTP_POST_VARS['filter_data'])) - ); - $filter = serialize($filter_data); -} -else -{ - $filter_data = @unserialize($filter); - if(empty($filter_data['ext'])) - { - $filter_data['ext'] = ''; - } - if(empty($filter_data['data'])) - { - $filter_data['data'] = ''; - } -} -$filter_str = '?filter=' . urlencode($filter); - - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_edit_templates'] . '')); - -$editable = array('.htm', '.html', '.tpl', '.css', '.txt', '.cfg', '.xml', '.php', '.htaccess'); - -// get current directory -$current_dir = isset($HTTP_GET_VARS['dir']) ? $HTTP_GET_VARS['dir'] : (isset($HTTP_POST_VARS['dir']) ? $HTTP_POST_VARS['dir'] : 'templates'); -$current_dir = str_replace(array("\\", ".."), array("/", ""), $current_dir); -if(defined('DEMO_MODE') && substr($current_dir, 0, 9) !== 'templates') -{ // limit access to "templates" in demo mode - $current_dir = 'templates'; -} -$dirs = explode('/', $current_dir); -for($i=0; $iassign_vars(array( - 'FILTER_EXT' => htmlspecialchars($filter_data['ext']), - 'FILTER_DATA' => htmlspecialchars($filter_data['data']), - 'FILTER_URL' => append_sid('xs_edit.'.$phpEx), - 'FILTER_DIR' => htmlspecialchars($current_dir), - 'S_FILTER' => '' - )); - - -/* -* show edit form -*/ -if(isset($HTTP_GET_VARS['edit']) && !empty($HTTP_GET_VARS['restore'])) -{ - $file = stripslashes($HTTP_GET_VARS['edit']); - $fullfile = $current_dir_root . $file; - $localfile = '../' . $fullfile; - $hash = md5($localfile); - $backup_name = XS_TEMP_DIR . XS_BACKUP_PREFIX . $hash . '.' . intval($HTTP_GET_VARS['restore']) . XS_BACKUP_EXT; - if(@file_exists($backup_name)) - { - // restore file - $HTTP_POST_VARS['edit'] = $HTTP_GET_VARS['edit']; - $HTTP_POST_VARS['content'] = addslashes(implode('', @file($backup_name))); - unset($HTTP_GET_VARS['edit']); - $return_file = str_replace('{URL}', append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file)), $lang['xs_edittpl_back_edit']); - $return_url = $return_file . '

    ' . $return_dir; - } -} - - -/* -* save modified file -*/ -if(isset($HTTP_POST_VARS['edit']) && !defined('DEMO_MODE')) -{ - $file = stripslashes($HTTP_POST_VARS['edit']); - $content = stripslashes($HTTP_POST_VARS['content']); - $fullfile = $current_dir_root . $file; - $localfile = '../' . $fullfile; - if(!empty($HTTP_POST_VARS['trim'])) - { - $content = trim($content); - } - if(!empty($HTTP_POST_FILES['upload']['tmp_name']) && @file_exists($HTTP_POST_FILES['upload']['tmp_name'])) - { - $content = @implode('', @file($HTTP_POST_FILES['upload']['tmp_name'])); - } - $params = array( - 'edit' => $file, - 'dir' => $current_dir, - 'content' => $content, - 'filter' => $filter, - ); - $return_file = str_replace('{URL}', append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file)), $lang['xs_edittpl_back_edit']); - $return_url = $return_file . '

    ' . $return_dir; - // get ftp configuration - $write_local = false; - if(!get_ftp_config(append_sid('xs_edit.'.$phpEx), $params, true)) - { - xs_exit(); - } - xs_ftp_connect(append_sid('xs_edit.'.$phpEx), $params, true); - if($ftp === XS_FTP_LOCAL) - { - $write_local = true; - $local_filename = $localfile; - } - else - { - $local_filename = XS_TEMP_DIR . 'edit_' . time() . '.tmp'; - } - $f = @fopen($local_filename, 'wb'); - if(!$f) - { - xs_error($lang['xs_error_cannot_open'] . '

    ' . $return_url); - } - fwrite($f, $content); - fclose($f); - if($write_local) - { - xs_message($lang['Information'], $lang['xs_edit_file_saved'] . '

    ' . $return_url); - } - // generate ftp actions - $actions = array(); - // chdir to template directory - for($i=0; $i 'chdir', - 'dir' => $dirs[$i] - ); - } - $actions[] = array( - 'command' => 'upload', - 'local' => $local_filename, - 'remote' => $fullfile - ); - $ftp_log = array(); - $ftp_error = ''; - $res = ftp_myexec($actions); - echo ""; - @unlink($local_filename); - if($res) - { - xs_message($lang['Information'], $lang['xs_edit_file_saved'] . '

    ' . $return_url); - } - xs_error($ftp_error . '

    ' . $return_url); -} - - -/* -* show edit form -*/ -if(isset($HTTP_GET_VARS['edit'])) -{ - $file = stripslashes($HTTP_GET_VARS['edit']); - $fullfile = $current_dir_root . $file; - $localfile = '../' . $fullfile; - $hash = md5($localfile); - if(!@file_exists($localfile)) - { - xs_error($lang['xs_edit_not_found'] . '

    ' . $return_url); - } - if(isset($HTTP_GET_VARS['download']) && !defined('DEMO_MODE')) - { - $content = implode('', @file($localfile)); - xs_download_file($file, $content); - xs_exit(); - } - if(isset($HTTP_GET_VARS['downloadbackup']) && !defined('DEMO_MODE')) - { - $backup_name = XS_TEMP_DIR . XS_BACKUP_PREFIX . $hash . '.' . intval($HTTP_GET_VARS['downloadbackup']) . XS_BACKUP_EXT; - xs_download_file($file, implode('', @file($backup_name))); - xs_exit(); - } - $return_file = str_replace('{URL}', append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file)), $lang['xs_edittpl_back_edit']); - $return_url = $return_file . '

    ' . $return_dir; - $template->assign_vars(array( - 'U_ACTION' => append_sid('xs_edit.'.$phpEx), - 'U_BROWSE' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir)), - 'U_EDIT' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file)), - 'U_BACKUP' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dobackup=1&dir='.urlencode($current_dir).'&edit='.urlencode($file)), - 'U_DOWNLOAD' => append_sid('xs_edit.'.$phpEx.$filter_str.'&download=1&dir='.urlencode($current_dir).'&edit='.urlencode($file)), - 'CURRENT_DIR' => htmlspecialchars($current_dir_full), - 'DIR' => htmlspecialchars($current_dir), - 'FILE' => htmlspecialchars($file), - 'FULLFILE' => htmlspecialchars($fullfile), - 'CONTENT' => defined('DEMO_MODE') ? 'you cannot edit file in demo mode' : htmlspecialchars(implode('', @file($localfile))), - ) - ); - if($current_dir_full) - { - $template->assign_block_vars('nav_left',array('ITEM' => '» ' . htmlspecialchars($current_dir_full) . '')); - } - - // show tree - $arr = array(); - $template->assign_block_vars('tree', array( - 'ITEM' => 'phpBB', - 'URL' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='), - 'SEPARATOR' => '', - )); - $back_dir = ''; - for($i=0; $i ($i + 1)) - { - $back_dir = $str; - } - $template->assign_block_vars('tree', array( - 'ITEM' => htmlspecialchars($dirs[$i]), - 'URL' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($str)), - 'SEPARATOR' => '/', - )); - } - - // view backup - if(!empty($HTTP_GET_VARS['viewbackup']) && !defined('DEMO_MODE')) - { - $backup_name = XS_TEMP_DIR . XS_BACKUP_PREFIX . $hash . '.' . intval($HTTP_GET_VARS['viewbackup']) . XS_BACKUP_EXT; - $template->assign_vars(array( - 'CONTENT' => implode('', @file($backup_name)) - ) - ); - } - - // save backup - if(isset($HTTP_GET_VARS['dobackup']) && !defined('DEMO_MODE')) - { - $backup_name = XS_TEMP_DIR . XS_BACKUP_PREFIX . $hash . '.' . time() . XS_BACKUP_EXT; - $str = @implode('', @file($localfile)); - $f = @fopen($backup_name, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $backup_name, $lang['xs_error_cannot_create_tmp']) . '

    ' . $return_url); - } - fwrite($f, $str); - fclose($f); - @chmod($backup_name, 0777); - } - - // delete backup - if(isset($HTTP_GET_VARS['delbackup']) && !defined('DEMO_MODE')) - { - $backup_name = XS_TEMP_DIR . XS_BACKUP_PREFIX . $hash . '.' . intval($HTTP_GET_VARS['delbackup']) . XS_BACKUP_EXT; - @unlink($backup_name); - } - - // show backups - $backups = array(); - $res = opendir(XS_TEMP_DIR); - $match = XS_BACKUP_PREFIX . $hash . '.'; - $match_len = strlen($match); - while(($f = readdir($res)) !== false) - { - if(substr($f, 0, $match_len) === $match) - { - $str = substr($f, $match_len, strlen($f) - $match_len - strlen(XS_BACKUP_EXT)); - if(intval($str)) - { - $backups[] = intval($str); - } - } - } - closedir($res); - sort($backups); - for($i=0; $iassign_block_vars('backup', array( - 'TIME' => create_date($board_config['default_dateformat'], $backups[$i], $board_config['board_timezone']), - 'U_RESTORE' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file).'&restore='.$backups[$i]), - 'U_DELETE' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file).'&delbackup='.$backups[$i]), - 'U_DOWNLOAD' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file).'&downloadbackup='.$backups[$i]), - 'U_VIEW' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file).'&viewbackup='.$backups[$i]), - ) - ); - } - - // show template - $template->set_filenames(array('body' => XS_TPL_PATH . 'edit_file.tpl')); - $template->pparse('body'); - xs_exit(); -} - - -/* -* show file browser -*/ - -// show tree -$arr = array(); -$template->assign_block_vars('tree', array( - 'ITEM' => 'phpBB', - 'URL' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='), - 'SEPARATOR' => '', - )); -$back_dir = ''; -for($i=0; $i ($i + 1)) - { - $back_dir = $str; - } - $template->assign_block_vars('tree', array( - 'ITEM' => htmlspecialchars($dirs[$i]), - 'URL' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($str)), - 'SEPARATOR' => '/', - )); -} - -// get list of files/directories -$list_files = array(); // non-editable files -$list_files_editable = array(); // editable files -$list_dirs = array(); // directories -$res = @opendir('../' . $current_dir_full); -if(!$res) -{ - xs_error(str_replace('{DIR}', $current_dir_full, $lang['xs_export_no_open_dir']) . '

    ' . $return_url_root); -} -while(($file = readdir($res)) !== false) -{ - if($file !== '.' && $file !== '..') - { - $filename = '../' . ($current_dir_full ? $current_dir_full . '/' : '') . $file; - if(is_dir($filename)) - { - $list_dirs[] = $file; - } - else - { - $pos = strrpos($file, '.'); - if($pos !== false) - { - $ext = strtolower(substr($file, $pos)); - $ext1 = substr($ext, 1); - if((!$filter_data['ext'] && xs_in_array($ext, $editable)) || $ext1 === $filter_data['ext']) - { - // check filter - if($filter_data['data']) - { - $content = @implode('', @file($filename)); - if(strpos($content, $filter_data['data']) !== false) - { - $list_files_editable[] = $file; - } - } - else - { - $list_files_editable[] = $file; - } - } - else - { - $list_files[] = $file; - } - } - } - } -} -closedir($res); - -$list_dirs_count = count($list_dirs); -$list_files_count = count($list_files) + count($list_files_editable); - -if($current_dir || count($list_dirs)) -{ - $template->assign_block_vars('begin_dirs', array( - 'COUNT' => count($list_dirs), - 'L_COUNT' => str_replace('{COUNT}', count($list_dirs), $lang['xs_fileman_dircount']) - )); -} -else -{ - $template->assign_block_vars('begin_nodirs', array()); -} -if($current_dir) -{ - $template->assign_block_vars('begin_dirs.dir', array( - 'NAME' => '..', - 'FULLNAME' => htmlspecialchars($back_dir ? $back_dir . '/' : ''), - 'URL' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($back_dir)), - ) - ); -} - -// show subdirectories -sort($list_dirs); -for($i=0; $iassign_block_vars('begin_dirs.dir', array( - 'NAME' => htmlspecialchars($dir), - 'FULLNAME' => htmlspecialchars($current_dir_root . $dir), - 'URL' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($str)), - ) - ); -} - -// show editable files -if(count($list_files_editable)) -{ - $template->assign_block_vars('begin_files', array('COUNT' => count($list_files_editable))); -} -else -{ - $template->assign_block_vars('begin_nofiles', array('COUNT' => count($list_files_editable))); -} -sort($list_files_editable); -// get today start -$today = floor((time() + 3600 * $board_config['board_timezone']) / 86400) * 86400 - (3600 * $board_config['board_timezone']); -for($i=0; $iassign_block_vars('begin_files.file', array( - 'ROW_CLASS' => $row_class, - 'NAME' => htmlspecialchars($file), - 'FULLNAME' => htmlspecialchars($fullfile), - 'SIZE' => @filesize($localfile), - 'TIME' => $filetime, - 'URL' => append_sid('xs_edit.'.$phpEx.$filter_str.'&dir='.urlencode($current_dir).'&edit='.urlencode($file)) - ) - ); - if($t < $today) - { - $template->assign_block_vars('begin_files.file.old', array()); - } - else - { - $template->assign_block_vars('begin_files.file.today', array()); - } -} - -$template->set_filenames(array('body' => XS_TPL_PATH . 'edit.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_edit_data.php b/phpBB2_old/admin/xs_edit_data.php deleted file mode 100644 index df1eb1e..0000000 --- a/phpBB2_old/admin/xs_edit_data.php +++ /dev/null @@ -1,357 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_edit_styles_data'] . '')); - -$lang['xs_edittpl_back_list'] = str_replace('{URL}', append_sid('xs_edit_data.'.$phpEx), $lang['xs_edittpl_back_list']); - -function xs_empty_name() -{ - global $db; - $sql = "SELECT * FROM " . THEMES_NAME_TABLE . " LIMIT 0, 1"; - if(!$result = $db->sql_query($sql)) - { - $data = array(); - } - $data = $db->sql_fetchrow($result); - if($data === false || !@count($data)) - { - $data = array( - 'themes_id' => 0, - 'tr_color1_name' => '', - 'tr_color2_name' => '', - 'tr_color3_name' => '', - 'tr_class1_name' => '', - 'tr_class2_name' => '', - 'tr_class3_name' => '', - 'th_color1_name' => '', - 'th_color2_name' => '', - 'th_color3_name' => '', - 'th_class1_name' => '', - 'th_class2_name' => '', - 'th_class3_name' => '', - 'td_color1_name' => '', - 'td_color2_name' => '', - 'td_color3_name' => '', - 'td_class1_name' => '', - 'td_class2_name' => '', - 'td_class3_name' => '', - 'fontface1_name' => '', - 'fontface2_name' => '', - 'fontface3_name' => '', - 'fontsize1_name' => '', - 'fontsize2_name' => '', - 'fontsize3_name' => '', - 'fontcolor1_name' => '', - 'fontcolor2_name' => '', - 'fontcolor3_name' => '', - 'span_class1_name' => '', - 'span_class2_name' => '', - 'span_class3_name' => '' - ); - - } - $arr = array(); - foreach($data as $var => $value) - { - if($var !== 'themes_id') - { - $arr[$var] = ''; - } - } - return $arr; -} - -function xs_get_vars($theme) -{ - $arr1 = array(); - $arr2 = array(); - $vars_100 = array('head_stylesheet', 'body_background'); - $vars_50 = array('fontface'); - $vars_30 = array('style_name'); - $vars_25 = array('tr_class', 'th_class', 'td_class', 'span_class'); - $vars_6 = array('body_bgcolor', 'body_text', 'body_link', 'body_vlink', 'body_alink', 'body_hlink', 'tr_color', 'th_color', 'td_color', 'fontcolor'); - $vars_5 = array('img_size_poll', 'img_size_privmsg'); - $vars_4 = array('fontsize', 'theme_public'); - foreach($theme as $var => $value) - { - if(!is_integer($var) && $var !== 'themes_id' && $var !== 'template_name') - { - // editable variable - $len = 0; - $sub = substr($var, 0, strlen($var) - 1); - if(xs_in_array($var, $vars_100) || xs_in_array($sub, $vars_100)) - { - $len = 100; - } - elseif(xs_in_array($var, $vars_50) || xs_in_array($sub, $vars_50)) - { - $len = 50; - } - elseif(xs_in_array($var, $vars_30) || xs_in_array($sub, $vars_30)) - { - $len = 30; - } - elseif(xs_in_array($var, $vars_25) || xs_in_array($sub, $vars_25)) - { - $len = 25; - } - elseif(xs_in_array($var, $vars_6) || xs_in_array($sub, $vars_6)) - { - $len = 6; - } - elseif(xs_in_array($var, $vars_5) || xs_in_array($sub, $vars_5)) - { - $len = 5; - } - elseif(xs_in_array($var, $vrs_4) || xs_in_array($sub, $vars_4)) - { - $len = 4; - } - elseif(strpos($var, 'class')) - { - $len = 25; - } - elseif(strpos($var, 'color')) - { - $len = 6; - } - if($len) - { - $item = array( - 'var' => $var, - 'len' => $len, - 'color' => $len == 6 ? true : false, - 'font' => $len == 25 ? true : false, - ); - if($var === 'style_name' || $var === 'head_stylesheet' || $var === 'body_background') - { - $arr1[$var] = $item; - } - else - { - $arr2[$var] = $item; - } - } - } - } - krsort($arr1); - ksort($arr2); - return array_merge($arr1, $arr2); -} - -// -// submit -// -if(!empty($HTTP_POST_VARS['edit']) && !defined('DEMO_MODE')) -{ - $id = intval($HTTP_POST_VARS['edit']); - $lang['xs_edittpl_back_edit'] = str_replace('{URL}', append_sid('xs_edit_data.'.$phpEx.'?edit='.$id), $lang['xs_edittpl_back_edit']); - $data_item = array(); - $data_item_update = array(); - $data_name = array(); - $data_name_insert_vars = array('themes_id'); - $data_name_insert_values = array($id); - $data_name_update = array(); - foreach($HTTP_POST_VARS as $var => $value) - { - if(substr($var, 0, 5) === 'edit_') - { - $var = substr($var, 5); - $value = stripslashes($value); - $data_item[$var] = $value; - $data_item_update[] = $var . "='" . xs_sql($value) . "'"; - } - elseif(substr($var, 0, 5) === 'name_') - { - $var = substr($var, 5).'_name'; - $value = stripslashes($value); - $data_name[$var] = $value; - $data_name_update[] = $var . "='" . xs_sql($value) . "'"; - $data_name_insert_vars[] = $var; - $data_name_insert_values[] = xs_sql($value); - } - } - // update item - $sql = "UPDATE " . THEMES_TABLE . " SET " . implode(',', $data_item_update) . " WHERE themes_id='{$id}'"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_edittpl_error_updating'] . '

    ' . $lang['xs_edittpl_back_edit'] . '

    ' . $lang['xs_edittpl_back_list'], __LINE__, __FILE__); - } - // check if there is name - $sql = "SELECT themes_id FROM " . THEMES_NAME_TABLE . " WHERE themes_id='{$id}'"; - if(!$result = $db->sql_query($sql)) - { - $sql = "INSERT INTO " . THEMES_NAME_TABLE . " (" . implode(',', $data_name_insert_vars) . ") VALUES ('" . implode("', '", $data_name_insert_values) . "')"; - } - $item = $db->sql_fetchrow($result); - if(!is_array($item)) - { - $sql = "INSERT INTO " . THEMES_NAME_TABLE . " (" . implode(',', $data_name_insert_vars) . ") VALUES ('" . implode("', '", $data_name_insert_values) . "')"; - } - else - { - $sql = "UPDATE " . THEMES_NAME_TABLE . " SET " . implode(',', $data_name_update) . " WHERE themes_id='{$id}'"; - } - $db->sql_query($sql); - xs_message($lang['Information'], $lang['xs_edittpl_style_updated'] . '

    ' . $lang['xs_edittpl_back_edit'] . '

    ' . $lang['xs_edittpl_back_list']); -} - -// -// edit style -// -if(!empty($HTTP_GET_VARS['edit'])) -{ - $id = intval($HTTP_GET_VARS['edit']); - $sql = "SELECT * FROM " . THEMES_TABLE . " WHERE themes_id='{$id}'"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); - } - $item = $db->sql_fetchrow($result); - if(empty($item['themes_id'])) - { - xs_error($lang['xs_invalid_style_id'] . '

    ' . $lang['xs_edittpl_back_list']); - } - $sql = "SELECT * FROM " . THEMES_NAME_TABLE . " WHERE themes_id='{$id}'"; - if(!$result = $db->sql_query($sql)) - { - $item_name = array(); - } - $item_name = $db->sql_fetchrow($result); - if($item_name === false || !@count($item_name)) - { - $item_name = xs_empty_name(); - } - $vars = xs_get_vars($item); - // show variables - $template->assign_vars(array( - 'U_ACTION' => append_sid('xs_edit_data.'.$phpEx), - 'TPL' => htmlspecialchars($item['template-name']), - 'STYLE' => htmlspecialchars($item['style_name']), - 'ID' => $id - ) - ); - // all variables - $i = 0; - foreach($vars as $var => $value) - { - $row_class = $xs_row_class[$i % 2]; - $i++; - if(isset($lang['xs_data_'.$var])) - { - $text = $lang['xs_data_'.$var]; - } - else - { - $str = substr($var, 0, strlen($var) - 1); - if(isset($lang['xs_data_'.$str])) - { - $str1 = substr($var, strlen($var) - 1); - $text = sprintf($lang['xs_data_'.$str], $str1); - } - else - { - $text = sprintf($lang['xs_data_unknown'], $var); - } - } - $template->assign_block_vars('row', array( - 'ROW_CLASS' => $row_class, - 'VAR' => $var, - 'VALUE' => isset($item[$var]) ? htmlspecialchars($item[$var]) : '', - 'LEN' => $value['len'], - 'SIZE' => $value['len'] < 10 ? 10 : 30, - 'TEXT' => htmlspecialchars($text), - ) - ); - if($value['color']) - { - $template->assign_block_vars('row.color', array()); - } - if($value['font']) - { - $template->assign_block_vars('row.font', array()); - } - if(isset($item_name[$var.'_name'])) - { - $template->assign_block_vars('row.name', array( - 'DATA' => $item_name[$var.'_name'] - ) - ); - } - else - { - $template->assign_block_vars('row.noname', array()); - } - } - $template->set_filenames(array('body' => XS_TPL_PATH . 'edit_data.tpl')); - $template->pparse('body'); - xs_exit(); -} - - -// -// show list of installed styles -// -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY style_name'; -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -$template->set_filenames(array('body' => XS_TPL_PATH . 'edit_data_list.tpl')); -for($i=0; $iassign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => htmlspecialchars($item['template_name']), - 'STYLE' => htmlspecialchars($item['style_name']), - 'U_EDIT' => append_sid('xs_edit_data.'.$phpEx.'?edit='.$item['themes_id']) - ) - ); -} - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_export.php b/phpBB2_old/admin/xs_export.php deleted file mode 100644 index 75fc989..0000000 --- a/phpBB2_old/admin/xs_export.php +++ /dev/null @@ -1,320 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_export_styles'] . '')); - -$lang['xs_export_back'] = str_replace('{URL}', append_sid('xs_export.'.$phpEx), $lang['xs_export_back']); - -// -// Check required functions -// -if(!@function_exists('gzcompress')) -{ - xs_error($lang['xs_import_nogzip']); -} - - -// -// Export page -// -$export = isset($HTTP_GET_VARS['export']) ? $HTTP_GET_VARS['export'] : ''; -$export = xs_tpl_name($export); -if(!empty($export) && @file_exists($phpbb_root_path . $template_dir . $export . '/theme_info.cfg')) -{ - // Get list of styles - $sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " WHERE template_name = '$export' ORDER BY style_name ASC"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_theme_data'] . '

    ' . $lang['xs_export_back']); - } - $theme_rowset = $db->sql_fetchrowset($result); - if(count($theme_rowset) == 0) - { - xs_error($lang['xs_no_themes'] . '

    ' . $lang['xs_export_back']); - } - $template->set_filenames(array('body' => XS_TPL_PATH . 'export2.tpl')); - $xs_send_method = isset($board_config['xs_export_data']) ? $board_config['xs_export_data'] : ''; - $xs_send = @unserialize($xs_send_method); - $xs_send_method = $xs_send['method'] == 'ftp' ? 'ftp' : ($xs_send['method'] == 'file' ? 'file' : 'save'); - $template->assign_vars(array( - 'FORM_ACTION' => append_sid('xs_export.'.$phpEx), - 'EXPORT_TEMPLATE' => htmlspecialchars($export), - 'STYLE_ID' => $theme_rowset[0]['themes_id'], - 'STYLE_NAME' => htmlspecialchars($theme_rowset[0]['style_name']), - 'TOTAL' => count($theme_rowset), - 'SEND_METHOD_'.strtoupper($xs_send_method) => ' checked="checked"', - 'SEND_DATA_DIR' => isset($xs_send['dir']) ? htmlspecialchars($xs_send['dir']) : '', - 'SEND_DATA_HOST' => isset($xs_send['host']) ? htmlspecialchars($xs_send['host']) : '', - 'SEND_DATA_LOGIN' => isset($xs_send['login']) ? htmlspecialchars($xs_send['login']) : '', - 'SEND_DATA_FTPDIR' => isset($xs_send['ftpdir']) ? htmlspecialchars($xs_send['ftpdir']) : '', - 'L_TITLE' => str_replace('{TPL}', $export, $lang['xs_export_style_title']), - )); - if(count($theme_rowset) == 1) - { - $template->assign_block_vars('switch_select_nostyle', array()); - } - else - { - $template->assign_block_vars('switch_select_style', array()); - for($i=0; $iassign_block_vars('switch_select_style.style', array( - 'NUM' => $i, - 'ID' => $theme_rowset[$i]['themes_id'], - 'NAME' => htmlspecialchars($theme_rowset[$i]['style_name']) - )); - } - } - $template->pparse('body'); - xs_exit(); -} - -// -// Export style -// -$export = isset($HTTP_POST_VARS['export']) ? $HTTP_POST_VARS['export'] : ''; -$export = xs_tpl_name($export); -if(!empty($export) && @file_exists($phpbb_root_path . $template_dir . $export . '/theme_info.cfg') && !defined('DEMO_MODE')) -{ - $total = intval($HTTP_POST_VARS['total']); - $comment = substr(stripslashes($HTTP_POST_VARS['export_comment']), 0, 255); - $list = array(); - for($i=0; $i<$total; $i++) - { - if(!empty($HTTP_POST_VARS['export_style_'.$i])) - { - $list[] = intval($HTTP_POST_VARS['export_style_id_'.$i]); - } - } - if(!count($list)) - { - xs_error($lang['xs_export_noselect_themes'] . '

    ' . $lang['xs_export_back']); - } - // Export as... - $exportas = empty($HTTP_POST_VARS['export_template']) ? $export : $HTTP_POST_VARS['export_template']; - $exportas = xs_tpl_name($exportas); - // Generate theme_info.cfg - $sql = "SELECT * FROM " . THEMES_TABLE . " WHERE template_name = '$export' AND themes_id IN (" . implode(', ', $list) . ")"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_theme_data'] . $lang['xs_export_back']); - } - $theme_rowset = $db->sql_fetchrowset($result); - if(count($theme_rowset) == 0) - { - xs_error($lang['xs_no_themes'] . '

    ' . $lang['xs_export_back']); - } - $theme_data = xs_generate_themeinfo($theme_rowset, $export, $exportas, $total); - - // prepare to pack - $pack_error = ''; - $pack_list = array(); - $pack_replace = array('./theme_info.cfg' => $theme_data); - - // pack style - for($i=0; $i
    ' . $lang['xs_export_back']); - } - if(!$data) - { - xs_error(str_replace('{TPL}', $export, $lang['xs_export_error2']) . '

    ' . $lang['xs_export_back']); - } - - // - // Got file. Sending it. - // - $send_method = isset($HTTP_POST_VARS['export_to']) ? $HTTP_POST_VARS['export_to'] : ''; - $export_filename = empty($HTTP_POST_VARS['export_filename']) ? $exportas . STYLE_EXTENSION : $HTTP_POST_VARS['export_filename']; - if($send_method === 'file') - { - // store on local server - $send_dir = isset($HTTP_POST_VARS['export_to_dir']) ? $HTTP_POST_VARS['export_to_dir'] : ''; - $send_dir = str_replace('\\', '/', stripslashes($send_dir)); - if(empty($send_dir)) - { - $send_dir = XS_TEMP_DIR; - } - if(substr($send_dir, strlen($send_dir) - 1) !== '/') - { - $send_dir .= '/'; - } - $filename = $send_dir . $export_filename; - $f = @fopen($filename, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $filename, $lang['xs_error_cannot_create_file']) . '

    ' . $lang['xs_export_back']); - } - @fwrite($f, $data); - @fclose($f); - set_export_method('file', array('dir' => $send_dir)); - xs_message($lang['Information'], str_replace('{FILE}', $filename, $lang['xs_export_saved']) . '

    ' . $lang['xs_export_back']); - } - elseif($send_method === 'ftp') - { - // upload via ftp - $ftp_host = $HTTP_POST_VARS['export_to_ftp_host']; - $ftp_login = $HTTP_POST_VARS['export_to_ftp_login']; - $ftp_pass = $HTTP_POST_VARS['export_to_ftp_pass']; - $ftp_dir = str_replace('\\', '/', $HTTP_POST_VARS['export_to_ftp_dir']); - if($ftp_dir && substr($ftp_dir, strlen($ftp_dir) - 1) !== '/') - { - $ftp_dir .= '/'; - } - // save as temporary file - $filename = XS_TEMP_DIR.'tmp_' . time() . '.tmp'; - $f = @fopen($filename, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $filename, $lang['xs_error_cannot_create_tmp']) . '

    ' . $lang['xs_export_back']); - } - @fwrite($f, $data); - @fclose($f); - // connect to ftp - $ftp = @ftp_connect($ftp_host); - if(!$ftp) - { - @unlink($filename); - xs_error($lang['xs_ftp_error_noconnect'] . '

    ' . $lang['xs_export_back']); - } - $res = @ftp_login($ftp, $ftp_login, $ftp_pass); - if(!$res) - { - @unlink($filename); - xs_error($lang['xs_ftp_error_login2'] . '

    ' . $lang['xs_export_back']); - } - if($ftp_dir) - { - @ftp_chdir($ftp, $ftp_dir); - } - $res = @ftp_put($ftp, $ftp_dir . $export_filename, $filename, FTP_BINARY); - @unlink($filename); - if(!$res) - { - xs_error($lang['xs_export_error_uploading'] . '

    ' . $lang['xs_export_back']); - } - set_export_method('ftp', array('host' => $ftp_host, 'login' => $ftp_login, 'ftpdir' => $ftp_dir)); - xs_message($lang['Information'], $lang['xs_export_uploaded'] . '

    ' . $lang['xs_export_back']); - } - // send file - xs_download_file($export_filename, $data, 'application/phpbbstyle'); - xs_exit(); -} - -$template->set_filenames(array('body' => XS_TPL_PATH . 'export.tpl')); - -// -// get list of installed styles -// -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY template_name'; -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -$prev_id = -1; -$prev_tpl = ''; -$style_names = array(); -$j = 0; -for($i=0; $i 0) - { - $str = implode('
    ', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_EXPORT' => "xs_export.{$phpEx}?export={$str2}&sid={$userdata['session_id']}", - ) - ); - } - $prev_id = $item['themes_id']; - $prev_tpl = $item['template_name']; - $style_names = array(htmlspecialchars($item['style_name'])); - } -} - -if($prev_id > 0) -{ - $str = implode('
    ', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_EXPORT' => "xs_export.{$phpEx}?export={$str2}&sid={$userdata['session_id']}", - ) - ); -} - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_export_data.php b/phpBB2_old/admin/xs_export_data.php deleted file mode 100644 index f888cf1..0000000 --- a/phpBB2_old/admin/xs_export_data.php +++ /dev/null @@ -1,259 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_edit_styles_data'] . '')); - -$lang['xs_export_data_back'] = str_replace('{URL}', append_sid('xs_export_data.'.$phpEx), $lang['xs_export_data_back']); - -// -// export style -// -if(isset($HTTP_GET_VARS['export'])) -{ - $export = str_replace(array('\\', '/'), array('',''), stripslashes($HTTP_GET_VARS['export'])); - // get list of themes for style - $sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " WHERE template_name = '$export' ORDER BY style_name ASC"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_theme_data'] . '

    ' . $lang['xs_export_data_back']); - } - $theme_rowset = $db->sql_fetchrowset($result); - if(count($theme_rowset) == 0) - { - xs_error($lang['xs_no_themes'] . '

    ' . $lang['xs_export_data_back']); - } - if(count($theme_rowset) == 1) - { - $HTTP_POST_VARS['export'] = $HTTP_GET_VARS['export']; - $HTTP_POST_VARS['export_total'] = '1'; - $HTTP_POST_VARS['export_id_0'] = $theme_rowset[0]['themes_id']; - $HTTP_POST_VARS['export_check_0'] = 'checked'; - } - else - { - $template->set_filenames(array('body' => XS_TPL_PATH . 'export_data2.tpl')); - $template->assign_vars(array( - 'TOTAL' => count($theme_rowset), - 'EXPORT' => htmlspecialchars($export), - 'U_ACTION' => append_sid("xs_export_data.{$phpEx}") - ) - ); - for($i=0; $iassign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'NUM' => $i, - 'ID' => $theme_rowset[$i]['themes_id'], - 'STYLE' => htmlspecialchars($theme_rowset[$i]['style_name']) - ) - ); - } - $template->pparse('body'); - xs_exit(); - } -} - -if(!empty($HTTP_POST_VARS['export']) && !defined('DEMO_MODE')) -{ - $export = xs_tpl_name($HTTP_POST_VARS['export']); - // get ftp configuration - $params = array('export' => $export); - $total = intval($HTTP_POST_VARS['export_total']); - $count = 0; - for($i=0; $i<$total; $i++) - { - if(!empty($HTTP_POST_VARS['export_check_'.$i])) - { - $params['export_id_'.$count] = intval($HTTP_POST_VARS['export_id_'.$i]); - $params['export_check_'.$count] = 'checked'; - $count ++; - } - } - $params['export_total'] = $count; - if(!$count) - { - xs_error($lang['xs_export_noselect_themes'] . '

    ' . $lang['xs_export_data_back']); - } - $write_local = false; - if(!get_ftp_config(append_sid('xs_export_data.'.$phpEx), $params, true)) - { - xs_exit(); - } - xs_ftp_connect(append_sid('xs_export_data.'.$phpEx), $params, true); - if($ftp === XS_FTP_LOCAL) - { - $write_local = true; - $local_filename = '../templates/'. $export . '/theme_info.cfg'; - } - else - { - $local_filename = XS_TEMP_DIR . 'export_' . time() . '.tmp'; - } - // get all themes for style - $export_list = array(); - for($i=0; $i<$total; $i++) - { - if(!empty($HTTP_POST_VARS['export_check_'.$i])) - { - $export_list[] = intval($HTTP_POST_VARS['export_id_'.$i]); - } - } - $sql = "SELECT * FROM " . THEMES_TABLE . " WHERE themes_id IN (" . implode(', ', $export_list) . ") ORDER BY style_name ASC"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_style_info'] . '

    ' . $lang['xs_export_data_back'], __LINE__, __FILE__); - } - $style_rowset = $db->sql_fetchrowset($result); - if(!count($style_rowset)) - { - xs_error($lang['xs_no_style_info'] . '

    ' . $lang['xs_export_data_back'], __LINE__, __FILE__); - } - $data = xs_generate_themeinfo($style_rowset, $export, $export, 0); - $f = @fopen($local_filename, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $local_filename, $lang['xs_error_cannot_create_file']) . '

    ' . $lang['xs_export_data_back']); - } - fwrite($f, $data); - fclose($f); - if($write_local) - { - xs_message($lang['Information'], $lang['xs_export_data_saved'] . '

    ' . $lang['xs_export_data_back']); - } - // generate ftp actions - $actions = array(); - // chdir to template directory - $actions[] = array( - 'command' => 'chdir', - 'dir' => 'templates' - ); - $actions[] = array( - 'command' => 'chdir', - 'dir' => $export - ); - $actions[] = array( - 'command' => 'upload', - 'local' => $local_filename, - 'remote' => 'templates/' . $export . '/theme_info.cfg' - ); - $ftp_log = array(); - $ftp_error = ''; - $res = ftp_myexec($actions); -/* echo ""; */ - @unlink($local_filename); - if($res) - { - xs_message($lang['Information'], $lang['xs_export_data_saved'] . '

    ' . $lang['xs_export_data_back']); - } - xs_error($ftp_error . '

    ' . $lang['xs_export_data_back']); -} - - - - -$template->set_filenames(array('body' => XS_TPL_PATH . 'export_data.tpl')); -// -// get list of installed styles -// -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY template_name'; -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -$prev_id = -1; -$prev_tpl = ''; -$style_names = array(); -$j = 0; -for($i=0; $i 0) - { - $str = implode('
    ', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_EXPORT' => "xs_export_data.{$phpEx}?export={$str2}&sid={$userdata['session_id']}", - ) - ); - } - $prev_id = $item['themes_id']; - $prev_tpl = $item['template_name']; - $style_names = array(htmlspecialchars($item['style_name'])); - } -} - -if($prev_id > 0) -{ - $str = implode('
    ', $style_names); - $str2 = urlencode($prev_tpl); - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => $prev_tpl, - 'STYLES' => $str, - 'U_EXPORT' => "xs_export_data.{$phpEx}?export={$str2}&sid={$userdata['session_id']}", - ) - ); -} - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_frame_top.php b/phpBB2_old/admin/xs_frame_top.php deleted file mode 100644 index a2d8c29..0000000 --- a/phpBB2_old/admin/xs_frame_top.php +++ /dev/null @@ -1,63 +0,0 @@ -set_filenames(array('body' => XS_TPL_PATH . 'frame_top.tpl')); - -$template->assign_block_vars('left_nav', array( - 'URL' => append_sid('xs_index.'.$phpEx), - 'TEXT' => $lang['xs_menu_lc'] - )); -/* $template->assign_block_vars('left_nav', array( - 'URL' => append_sid('xs_download.'.$phpEx), - 'TEXT' => $lang['xs_download_styles_lc'] - )); */ -$template->assign_block_vars('left_nav', array( - 'URL' => append_sid('xs_import.'.$phpEx), - 'TEXT' => $lang['xs_import_styles_lc'] - )); -$template->assign_block_vars('left_nav', array( - 'URL' => append_sid('xs_install.'.$phpEx), - 'TEXT' => $lang['xs_install_styles_lc'] - )); -$template->assign_block_vars('left_nav', array( - 'URL' => 'http://www.phpbbstyles.com', - 'TEXT' => $lang['xs_support_forum_lc'] - )); - - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_frameset.php b/phpBB2_old/admin/xs_frameset.php deleted file mode 100644 index 2f20ba3..0000000 --- a/phpBB2_old/admin/xs_frameset.php +++ /dev/null @@ -1,100 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -define('NO_XS_HEADER', true); -include_once('xs_include.' . $phpEx); - -$action = isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''; -$get_data = array(); -foreach($HTTP_GET_VARS as $var => $value) -{ - if($var !== 'action' && $var !== 'sid') - { - $get_data[] = $var . '=' . urlencode(stripslashes($value)); - } -} - -// check for style download command -if(isset($HTTP_POST_VARS['action']) && $HTTP_POST_VARS['action'] === 'web') -{ - $action = 'import'; - $get_data[] = 'get_remote=' . urlencode(stripslashes($HTTP_POST_VARS['source'])); - if(isset($HTTP_POST_VARS['return'])) - { - $get_data[] = 'return=' . urlencode(stripslashes($HTTP_POST_VARS['return'])); - } -} - -$get_data = count($get_data) ? $phpEx . '?' . implode('&', $get_data) : $phpEx; - -$content_url = array( - 'config' => append_sid('xs_config.'.$get_data), - 'install' => append_sid('xs_install.'.$get_data), - 'uninstall' => append_sid('xs_uninstall.'.$get_data), - 'default' => append_sid('xs_styles.'.$get_data), - 'cache' => append_sid('xs_cache.'.$get_data), - 'import' => append_sid('xs_import.'.$get_data), - 'export' => append_sid('xs_export.'.$get_data), - 'clone' => append_sid('xs_clone.'.$get_data), - 'download' => append_sid('xs_download.'.$get_data), - 'edittpl' => append_sid('xs_edit.'.$get_data), - 'editdb' => append_sid('xs_edit_data.'.$get_data), - 'exportdb' => append_sid('xs_export_data.'.$get_data), - 'updates' => append_sid('xs_update.'.$get_data), - 'portal' => append_sid('xs_portal.'.$get_data), - ); - -if(isset($content_url[$action])) -{ - $content = $content_url[$action]; -} -else -{ - $content = append_sid('xs_index.'.$get_data); -} - -$template->set_filenames(array('body' => XS_TPL_PATH . 'frameset.tpl')); -$template->assign_vars(array( - 'FRAME_TOP' => append_sid('xs_frame_top.'.$phpEx), - 'FRAME_MAIN' => $content, - )); - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_import.php b/phpBB2_old/admin/xs_import.php deleted file mode 100644 index b2e6216..0000000 --- a/phpBB2_old/admin/xs_import.php +++ /dev/null @@ -1,391 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_import_styles'] . '')); - -$lang['xs_import_back'] = str_replace('{URL}', append_sid('xs_import.'.$phpEx), $lang['xs_import_back']); - -$return_url = isset($HTTP_POST_VARS['return']) ? stripslashes($HTTP_POST_VARS['return']) : (isset($HTTP_GET_VARS['return']) ? stripslashes($HTTP_GET_VARS['return']) : ''); -$return = $return_url ? '&return=' . urlencode($return_url) : ''; -if($return) -{ - $lang['xs_import_back'] = str_replace('{URL}', $return_url, $lang['xs_import_back_download']); - $HTTP_POST_VARS['return'] = $HTTP_GET_VARS['return'] = addslashes($return_url); -} - -// -// Check required functions -// -if(!@function_exists('gzcompress')) -{ - xs_error($lang['xs_import_nogzip']); -} - -$tpl_filename = $template->make_filename('_xs_test.tpl'); -$cache_filename = $template->make_filename_cache($tpl_filename); -$str = ''; -if(!xs_check_cache($cache_filename)) -{ - xs_error(str_replace(array('{URL1}', '{URL2}'), array(append_sid('xs_chmod.'.$phpEx), append_sid('xs_import.'.$phpEx)), $lang['xs_import_nowrite_cache'])); -} - -// -// include all functions -// -include_once('xs_include_import.'.$phpEx); - -// remove timeout -@set_time_limit(XS_MAX_TIMEOUT); - -// -// check if need to download style -// -if(!empty($HTTP_GET_VARS['get_remote'])) -{ - $HTTP_POST_VARS['action'] = 'web'; - $HTTP_POST_VARS['source'] = $HTTP_GET_VARS['get_remote']; -} - -// -// delete style -// -if(isset($HTTP_GET_VARS['del']) && !defined('DEMO_MODE')) -{ - $str = xs_tpl_name($HTTP_GET_VARS['del']); - @unlink(XS_TEMP_DIR.$str); -} - -// -// import style -// -if(isset($HTTP_GET_VARS['import']) || isset($HTTP_POST_VARS['import'])) -{ - $list_only = isset($HTTP_GET_VARS['list']) ? true : false; - $get_file = isset($HTTP_GET_VARS['get_file']) ? stripslashes($HTTP_GET_VARS['get_file']) : ''; - $filename = isset($HTTP_POST_VARS['import']) ? $HTTP_POST_VARS['import'] : $HTTP_GET_VARS['import']; - $filename = xs_tpl_name($filename); - $write_local = false; - if(!$list_only) - { - if(defined('DEMO_MODE')) - { - xs_error($lang['xs_permission_denied'] . '

    ' . $lang['xs_import_back']); - } - $params = array('import' => $filename); - $total = intval($HTTP_POST_VARS['total']); - $params['total'] = $total; - for($i=0; $i<$total; $i++) - { - $install = empty($HTTP_POST_VARS['import_install_'.$i]) ? 0 : 1; - $default = $install ? (empty($HTTP_POST_VARS['import_default_'.$i]) ? 0 : 1) : 0; - $params['import_install_'.$i] = $install; - $params['import_default_'.$i] = $default; - } - if($return_url) - { - $params['return'] = $return_url; - } - if(!get_ftp_config(append_sid('xs_import.'.$phpEx), $params, true)) - { - xs_exit(); - } - xs_ftp_connect(append_sid('xs_import.'.$phpEx), $params, true); - if($ftp === XS_FTP_LOCAL) - { - $write_local = true; - $write_local_dir = '../templates/'; - } - } - include('xs_include_import2.' . $phpEx); -} - -// -// Download from web -// -if(isset($HTTP_GET_VARS['get_web'])) -{ - $HTTP_POST_VARS['action'] = 'web'; - $HTTP_POST_VARS['source'] = $HTTP_GET_VARS['get_web']; -} -if(isset($HTTP_POST_VARS['action']) && $HTTP_POST_VARS['action'] === 'web' && !defined('DEMO_MODE')) -{ - $src = stripslashes($HTTP_POST_VARS['source']); - $dst = generate_style_name('web'); - $str = @implode('', @file($src)); - if(empty($str)) - { - xs_error(str_replace('{URL}', $src, $lang['xs_import_nodownload']) . '

    ' . $lang['xs_import_back']); - } - $header = xs_get_style_header('', substr($str, 0, 10240)); - if($header === false) - { - xs_error($lang['xs_style_header_error_reason'] . $xs_header_error . '

    ' . $lang['xs_import_back']); - } - if($header['filesize'] != strlen($str)) - { - xs_error($lang['xs_style_header_error_incomplete2'] . '

    ' . $lang['xs_import_back']); - } - $f = @fopen(XS_TEMP_DIR . $dst, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $dst, $lang['xs_error_cannot_create_tmp']) . '

    ' . $lang['xs_import_back']); - } - fwrite($f, $str); - fclose($f); - xs_message($lang['Information'], str_replace('{URL}', append_sid('xs_import.'.$phpEx.'?importstyle=' . urlencode($dst) . $return), $lang['xs_import_uploaded2']) . '

    ' . $lang['xs_import_back']); -} - -// -// Copy from file -// -if(isset($HTTP_POST_VARS['action']) && $HTTP_POST_VARS['action'] === 'copy' && !defined('DEMO_MODE')) -{ - $src = stripslashes($HTTP_POST_VARS['source']); - $dst = generate_style_name('copy'); - $str = @implode('', @file($src)); - if(empty($str)) - { - xs_error(str_replace('{URL}', $src, $lang['xs_import_nodownload2']) . '

    ' . $lang['xs_import_back']); - } - if(substr($str, 0, strlen(STYLE_HEADER_START)) !== STYLE_HEADER_START) - { - xs_error($lang['xs_style_header_error_invalid2'] . '

    ' . $lang['xs_import_back']); - } - $header = xs_get_style_header('', substr($str, 0, 10240)); - if($header === false) - { - xs_error($lang['xs_style_header_error_reason'] . $xs_header_error . '

    ' . $lang['xs_import_back']); - } - if($header['filesize'] != strlen($str)) - { - xs_error($lang['xs_style_header_error_incomplete2'] . '

    ' . $lang['xs_import_back']); - } - $f = @fopen(XS_TEMP_DIR . $dst, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $dst, $lang['xs_error_cannot_create_tmp']) . $lang['xs_import_back']); - } - fwrite($f, $str); - fclose($f); - xs_message($lang['Information'], str_replace('{URL}', append_sid('xs_import.'.$phpEx.'?importstyle=' . urlencode($dst)), $lang['xs_import_uploaded3']) . '

    ' . $lang['xs_import_back']); -} - - -// -// Upload -// -if(isset($HTTP_POST_VARS['action']) && $HTTP_POST_VARS['action'] === 'upload' && !defined('DEMO_MODE')) -{ - if(empty($HTTP_POST_FILES['source']['tmp_name']) || !@file_exists($HTTP_POST_FILES['source']['tmp_name'])) - { - xs_error($lang['xs_import_nodownload3'] . '

    ' . $lang['xs_import_back']); - } - $src = $HTTP_POST_FILES['source']['tmp_name']; - $dst = generate_style_name('upload'); - $str = @implode('', @file($src)); - if(empty($str)) - { - xs_error(str_replace('{URL}', $src, $lang['xs_import_nodownload2']) . '

    ' . $lang['xs_import_back']); - } - if(substr($str, 0, strlen(STYLE_HEADER_START)) !== STYLE_HEADER_START) - { - xs_error($lang['xs_style_header_error_invalid2'] . '

    ' . $lang['xs_import_back']); - } - $header = xs_get_style_header('', substr($str, 0, 10240)); - if($header === false) - { - xs_error($lang['xs_style_header_error_reason'] . $xs_header_error . '

    ' . $lang['xs_import_back']); - } - if($header['filesize'] != strlen($str)) - { - xs_error($lang['xs_style_header_error_incomplete2'] . '

    ' . $lang['xs_import_back']); - } - $f = @fopen(XS_TEMP_DIR . $dst, 'wb'); - if(!$f) - { - xs_error(str_replace('{FILE}', $dst, $lang['xs_error_cannot_create_tmp']) . '

    ' . $lang['xs_import_back']); - } - fwrite($f, $str); - fclose($f); - xs_error(str_replace('{URL}', append_sid('xs_import.'.$phpEx.'?importstyle=' . urlencode($dst)), $lang['xs_import_uploaded4']) . '

    ' . $lang['xs_import_back']); -} - - -// -// Show import page -// -if(!empty($HTTP_GET_VARS['importstyle'])) -{ - $file = xs_tpl_name($HTTP_GET_VARS['importstyle']); - $header = xs_get_style_header(XS_TEMP_DIR.$file); - if($header === false) - { - xs_error($lang['xs_style_header_error_reason'] . $xs_header_error . '

    ' . $lang['xs_import_back']); - } - if(@filesize(XS_TEMP_DIR.$file) != $header['filesize']) - { - xs_error($lang['xs_style_header_error_incomplete2'] . '

    ' . $lang['xs_import_back']); - } - $template->set_filenames(array('import' => XS_TPL_PATH . 'import2.tpl')); - $template->assign_vars(array( - 'FORM_ACTION' => append_sid('xs_import.'.$phpEx), - 'S_RETURN' => $return_url ? '' : '', - 'IMPORT_FILENAME' => htmlspecialchars($file), - 'STYLE_TEMPLATE' => htmlspecialchars($header['template']), - 'STYLE_FILENAME' => htmlspecialchars($file), - 'STYLE_COMMENT' => htmlspecialchars($header['comment']), - 'DATE' => create_date($board_config['default_dateformat'], $header['date'], $board_config['board_timezone']), - 'STYLE_SIZE' => $header['filesize'], - 'STYLE_NAME' => htmlspecialchars($header['styles'][0]), - 'TOTAL' => count($header['styles']), - 'L_XS_IMPORT_TPL' => str_replace('{TPL}', htmlspecialchars($header['template']), $lang['xs_import_tpl']) - )); - if(count($header['styles']) > 1) - { - $template->assign_block_vars('switch_select_style', array()); - for($i=0; $iassign_block_vars('switch_select_style.style', array( - 'NUM' => $i, - 'NAME' => htmlspecialchars($header['styles'][$i]), - )); - } - } - else - { - $template->assign_block_vars('switch_select_nostyle', array()); - } - $template->pparse('import'); - xs_exit(); -} - - -$template->set_filenames(array('body' => XS_TPL_PATH . 'import.tpl')); -// -// Get list of available styles -// -$dir = @opendir(XS_TEMP_DIR); -$files = array(); -if($dir) -{ - while(($file = readdir($dir)) !== false) - { - if(substr($file, strlen($file) - strlen(STYLE_EXTENSION)) === STYLE_EXTENSION) - { - $items = xs_get_style_header(XS_TEMP_DIR.$file); - if(is_array($items)) - { - $items['file'] = $file; - $items['file2'] = substr($file, 0, strlen($file) - strlen(STYLE_EXTENSION)); - if(@filesize(XS_TEMP_DIR.$file) != $items['filesize']) - { - $items['error'] = $lang['xs_import_incomplete_file']; - } - $files[] = $items; - } - else - { - $items = array( - 'filename' => XS_TEMP_DIR.$file, - 'filesize' => @filesize(XS_TEMP_DIR.$file), - 'date' => filemtime(XS_TEMP_DIR.$file), - 'file' => $file, - 'file2' => substr($file, 0, strlen($file) - strlen(STYLE_EXTENSION)), - 'error' => $lang['xs_import_invalid_file'], - 'template' => '-', - 'styles' => array('-'), - 'comment' => '', - 'offset' => 0 - ); - $files[] = $items; - } - } - } - closedir($dir); -} - -if(count($files)) -{ - - for($i=0; $iassign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'FILE' => htmlspecialchars($item['file']), - 'FILE2' => htmlspecialchars($item['file2']), - 'FILENAME' => htmlspecialchars($item['filename']), - 'TEMPLATE' => htmlspecialchars($item['template']), - 'DATE' => create_date($board_config['default_dateformat'], $item['date'], $board_config['board_timezone']), - 'COMMENT' => htmlspecialchars($item['comment']), - 'U_DELETE' => append_sid('xs_import.' . $phpEx . '?del=' . urlencode($item['file'])), - 'U_IMPORT' => append_sid('xs_import.' . $phpEx . '?importstyle=' . urlencode($item['file'])), - 'U_DOWNLOAD' => append_sid('xs_download.' . $phpEx), - 'U_LIST' => append_sid('xs_import.' . $phpEx . '?list=1&import=' . urlencode($item['file'])), - )); - if(empty($item['error'])) - { - for($j=0; $jassign_block_vars('styles.list', array( - 'STYLE' => $item['styles'][$j] - )); - } - $template->assign_block_vars('styles.valid', array()); - } - else - { - $template->assign_block_vars('styles.error', array('ERROR' => htmlspecialchars($item['error']))); - } - } -} -else -{ - $template->assign_block_vars('nostyles', array()); -} -$template->assign_vars(array( - 'U_SCRIPT' => append_sid('xs_import.'.$phpEx), - )); - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_include.php b/phpBB2_old/admin/xs_include.php deleted file mode 100644 index e5a34d9..0000000 --- a/phpBB2_old/admin/xs_include.php +++ /dev/null @@ -1,1210 +0,0 @@ - 0) - { - $module[$module_name][$lang['xs_config_shownav'][$i]] = 'xs_frameset.'.$phpEx.'?action=' . $xs_shownav_action[$i]; - } - } -} - - -if(!empty($setmodules)) -{ - if(@function_exists('jr_admin_get_module_list')) - { - $tmp_mod = $module; - global $module; - $module = $tmp_mod; - xs_admin_override(true); - } - return; -} - -// -// Global defines for eXtreme Styles mod administration panel -// -define('STYLE_HEADER_START', 'xs_style_01'); -define('STYLE_HEADER_END', ''); -define('STYLE_HEADER_VERSION', '1'); -define('STYLE_EXTENSION', '.style'); -define('TAR_HEADER_PACK', 'a100A8A8A8A12A12A8A1A100A6A2A32A32A8A8a155a12'); -define('TAR_HEADER_UNPACK', 'a100filename/a8mode/a8uid/a8gid/a12size/a12mtime/a8checksum/a1typeflag/a100link/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor/a155prefix/a12extra'); -define('XS_MAX_ITEMS_PER_STYLE', 32); -define('XS_TEMP_DIR', '../cache/'); -define('XS_FTP_LOCAL', 'no_ftp'); -define('XS_UPDATE_STYLE', 1); -define('XS_UPDATE_MOD', 2); -define('XS_UPDATE_PHPBB', 3); -define('XS_TPL_PATH', '../../xs_mod/tpl/'); -define('XS_BACKUP_PREFIX', 'backup.'); -define('XS_BACKUP_EXT', '.backup'); -define('XS_MAX_TIMEOUT', 600); // maximum timeout for downloads/import/installation - -$xs_row_class = array('row1', 'row2'); - -$template_dir = 'templates/'; - -$template->assign_vars(array( - 'XS_PATH' => '../xs_mod/', - 'XS_UL' => '', - 'XS_UL2' => '
    ', - 'XS_LI' => '
    ', - 'XS_LI2' => '
    '; - foreach($list_data as $var => $value) - { - $str .= ''; - } - $str .= '
    ' . htmlspecialchars($value['filename']) . ''; - if($value['size'] > 0) - { - $ext = strtolower(substr($var, strlen($var) - 4)); - if(xs_in_array($ext, $text_types) || xs_in_array($ext, $img_types)) - { - $str .= '[' . $lang['xs_import_view_lc'] . '] '; - } - $str .= '[' . $lang['xs_import_download_lc'] . '] '; - } - $str .= str_replace('{NUM}', $value['size'], $lang['xs_import_file_size']) . '
    '; - $str .= '
    '; - xs_message($lang['Information'], $str); -} -$str = ''; -if(!$write_local) -{ - // - // Generate actions list - // - $actions = array(); - // chdir to template directory - $actions[] = array( - 'command' => 'chdir', - 'dir' => 'templates' - ); - // create directory with template name - $actions[] = array( - 'command' => 'mkdir', - 'dir' => $header['template'], - 'ignore' => true - ); - // change directory - $actions[] = array( - 'command' => 'chdir', - 'dir' => $header['template'] - ); - // create all directories and upload all files - $actions[] = array( - 'command' => 'exec', - 'list' => generate_actions_dirs() - ); - $ftp_log = array(); - $ftp_error = ''; - $res = ftp_myexec($actions); -/* echo ""; */ - // remove temporary files - for($i=0; $i
    ' . $lang['xs_import_back']); - } -} - -// -// Check if we need to install style -// -$total = intval($HTTP_POST_VARS['total']); -$install = array(); -$default_name = ''; -for($i=0; $i<$total; $i++) -{ - $tmp = empty($HTTP_POST_VARS['import_install_'.$i]) ? 0 : 1; - if($tmp) - { - $set_default = empty($HTTP_POST_VARS['import_default_'.$i]) ? 0 : 1; - $tmp_name = $header['styles'][$i]; - if($tmp_name) - { - $install[] = $tmp_name; - if($set_default) - { - $default_name = $tmp_name; - } - } - } -} -if(!count($install)) -{ - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_message($lang['Information'], $lang['xs_import_uploaded'] . '

    ' . $lang['xs_import_back']); -} -// -// Get list of installed styles -// -$tpl = $header['template']; -$sql = "SELECT themes_id, style_name FROM " . THEMES_TABLE . " WHERE template_name='" . xs_sql($tpl) . "'"; -if(!$result = $db->sql_query($sql)) -{ - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_import_notinstall'] . '

    ' . $lang['xs_import_back']); -} -$style_rowset = $db->sql_fetchrowset($result); -// run theme_info.cfg -$data = xs_get_themeinfo($tpl); -if(!@count($data)) -{ - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_import_notinstall2'] . '

    ' . $lang['xs_import_back']); -} -// install styles -$default_id = 0; -for($i=0; $i
    ' . $lang['xs_import_back']); - } - if($installed) - { - // update - $sql = ''; - foreach($style_data as $var => $value) - { - if($sql) - { - $sql .= ', '; - } - $sql .= xs_sql($var) . " = '" . xs_sql($value) . "'"; - } - $sql = "UPDATE " . THEMES_TABLE . " SET " . $sql . " WHERE themes_id = '{$installed}'"; - } - else - { - // install - $sql = "SELECT MAX(themes_id) AS total FROM " . THEMES_TABLE; - if ( !($result = $db->sql_query($sql)) ) - { - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_import_notinstall4'] . '

    ' . $lang['xs_import_back']); - } - if ( !($row = $db->sql_fetchrow($result)) ) - { - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_import_notinstall4'] . '

    ' . $lang['xs_import_back']); - } - $installed = $row['total'] + 1; - $style_data['themes_id'] = $installed; - $sql1 = $sql2 = ''; - foreach($style_data as $var => $value) - { - if($sql1) - { - $sql1 .= ', '; - $sql2 .= ', '; - } - $sql1 .= xs_sql($var); - $sql2 .= "'" . str_replace("\'", "''", $value) . "'"; - } - $sql = "INSERT INTO " . THEMES_TABLE . " (" . $sql1 . ") VALUES (" . $sql2 . ")"; - } - if ( !($result = $db->sql_query($sql)) ) - { - if(defined('XS_CLONING')) - { - @unlink($tmp_filename); - } - xs_error($lang['xs_import_notinstall5'] . '

    ' . $lang['xs_import_back']); - } - if($default_name === $style_name) - { - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value='{$installed}' WHERE config_name='default_style'"; - $board_config['default_style'] = $installed; - $db->sql_query($sql); - } -} -if(defined('XS_CLONING')) -{ - @unlink($tmp_filename); -} -if(count($install) && defined('XS_MODS_CATEGORY_HIERARCHY')) -{ - cache_themes(); -} -xs_message($lang['Information'], $lang['xs_import_installed'] . '

    ' . $lang['xs_import_back']); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_index.php b/phpBB2_old/admin/xs_index.php deleted file mode 100644 index f8d9fc0..0000000 --- a/phpBB2_old/admin/xs_index.php +++ /dev/null @@ -1,67 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -if(isset($HTTP_GET_VARS['showwarning'])) -{ - $msg = str_replace('{URL}', append_sid('xs_index.'.$phpEx), $lang['xs_main_comment3']); - xs_message($lang['Information'], $msg); -} - -$template->assign_vars(array( - 'U_CONFIG' => append_sid('xs_config.'.$phpEx), - 'U_DEFAULT_STYLE' => append_sid('xs_styles.'.$phpEx), - 'U_MANAGE_CACHE' => append_sid('xs_cache.'.$phpEx), - 'U_IMPORT_STYLES' => append_sid('xs_import.'.$phpEx), - 'U_EXPORT_STYLES' => append_sid('xs_export.'.$phpEx), - 'U_CLONE_STYLE' => append_sid('xs_clone.'.$phpEx), - 'U_DOWNLOAD_STYLES' => append_sid('xs_download.'.$phpEx), - 'U_INSTALL_STYLES' => append_sid('xs_install.'.$phpEx), - 'U_UNINSTALL_STYLES' => append_sid('xs_uninstall.'.$phpEx), - 'U_EDIT_STYLES' => append_sid('xs_edit.'.$phpEx), - 'U_EDIT_STYLES_DATA' => append_sid('xs_edit_data.'.$phpEx), - 'U_EXPORT_DATA' => append_sid('xs_export_data.'.$phpEx), - 'U_UPDATES' => append_sid('xs_update.'.$phpEx), - )); - -$template->set_filenames(array('body' => XS_TPL_PATH . 'index.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_install.php b/phpBB2_old/admin/xs_install.php deleted file mode 100644 index b0fee40..0000000 --- a/phpBB2_old/admin/xs_install.php +++ /dev/null @@ -1,167 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_install_styles'] . '')); - -$lang['xs_install_back'] = str_replace('{URL}', append_sid('xs_install.'.$phpEx), $lang['xs_install_back']); -$lang['xs_goto_default'] = str_replace('{URL}', append_sid('xs_styles.'.$phpEx), $lang['xs_goto_default']); - -// remove timeout. useful for forum with 100+ styles -@set_time_limit(XS_MAX_TIMEOUT); - -// install style -if(!empty($HTTP_GET_VARS['style']) && !defined('DEMO_MODE')) -{ - $style = stripslashes($HTTP_GET_VARS['style']); - $num = intval($HTTP_GET_VARS['num']); - $res = xs_install_style($style, $num); - if($res) - { - if(defined('XS_MODS_CATEGORY_HIERARCHY')) - { - cache_themes(); - } - xs_message($lang['Information'], $lang['xs_install_installed'] . '

    ' . $lang['xs_install_back'] . '

    ' . $lang['xs_goto_default']); - } - xs_error($lang['xs_install_error'] . '

    ' . $lang['xs_install_back']); -} - -// install styles -if(!empty($HTTP_POST_VARS['total']) && !defined('DEMO_MODE')) -{ - $tpl = array(); - $num = array(); - $total = intval($HTTP_POST_VARS['total']); - for($i=0; $i<$total; $i++) - { - if(!empty($HTTP_POST_VARS['install_'.$i])) - { - $tpl[] = stripslashes($HTTP_POST_VARS['install_'.$i.'_style']); - $num[] = intval($HTTP_POST_VARS['install_'.$i.'_num']); - } - } - if(count($tpl)) - { - for($i=0; $i
    ' . $lang['xs_install_back'] . '

    ' . $lang['xs_goto_default']); - } -} - - -// get all installed styles -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY template_name'; -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -// find all styles to install -$res = @opendir('../templates/'); -$styles = array(); -while(($file = readdir($res)) !== false) -{ - if($file !== '.' && $file !== '..' && @file_exists('../templates/'.$file.'/theme_info.cfg') && @file_exists('../templates/'.$file.'/'.$file.'.cfg')) - { - $arr = xs_get_themeinfo($file); - for($i=0; $i
    ' . $lang['xs_goto_default']); -} - -ksort($styles); - -$j = 0; -foreach($styles as $var => $value) -{ - $row_class = $xs_row_class[$j % 2]; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'STYLE' => htmlspecialchars($value['template_name']), - 'THEME' => htmlspecialchars($value['style_name']), - 'U_INSTALL' => append_sid('xs_install.'.$phpEx.'?style='.urlencode($value['template_name']).'&num='.$value['num']), - 'CB_NAME' => 'install_'.$j, - 'NUM' => $value['num'], - ) - ); - $j++; -} - -$template->assign_vars(array( - 'U_INSTALL' => append_sid('xs_install.'.$phpEx), - 'TOTAL' => count($styles) - )); - -$template->set_filenames(array('body' => XS_TPL_PATH . 'install.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_main.cfg b/phpBB2_old/admin/xs_main.cfg deleted file mode 100644 index 7b0bfb1..0000000 --- a/phpBB2_old/admin/xs_main.cfg +++ /dev/null @@ -1,36 +0,0 @@ -xs_versiontxt; -$update['eXtreme Styles']['update_item'] = 'xs'; - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_styles.php b/phpBB2_old/admin/xs_styles.php deleted file mode 100644 index daa01c0..0000000 --- a/phpBB2_old/admin/xs_styles.php +++ /dev/null @@ -1,264 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_default_style'] . '')); - -// -// set new default style -// -if(!empty($HTTP_GET_VARS['setdefault']) && !defined('DEMO_MODE')) -{ - $board_config['default_style'] = intval($HTTP_GET_VARS['setdefault']); - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value='" . $board_config['default_style'] . "' WHERE config_name='default_style'"; - if(defined('XS_MODS_ADMIN_TEMPLATES')) - { - $sql = str_replace(' WHERE config_name', ', theme_public=\'1\' WHERE config_name', $sql); - } - $db->sql_query($sql); -} - -// -// change "override" variable -// -if(isset($HTTP_GET_VARS['setoverride']) && !defined('DEMO_MODE')) -{ - $board_config['override_user_style'] = intval($HTTP_GET_VARS['setoverride']); - $sql = "UPDATE " . CONFIG_TABLE . " SET config_value='" . $board_config['override_user_style'] . "' WHERE config_name='override_user_style'"; - $db->sql_query($sql); -} - -// -// move all users to some style -// -if(!empty($HTTP_GET_VARS['moveusers']) && !defined('DEMO_MODE')) -{ - $id = intval($HTTP_GET_VARS['moveusers']); - $sql = "UPDATE " . USERS_TABLE . " SET user_style='" . $id . "' WHERE user_id > 0"; - $db->sql_query($sql); -} - -// -// move all users from some style -// -if(!empty($HTTP_GET_VARS['moveaway']) && !defined('DEMO_MODE')) -{ - $id = intval($HTTP_GET_VARS['moveaway']); - $id2 = intval($HTTP_GET_VARS['movestyle']); - if($id2) - { - $sql = "UPDATE " . USERS_TABLE . " SET user_style='" . $id2 . "' WHERE user_style = " . $id; - } - else - { - $sql = "UPDATE " . USERS_TABLE . " SET user_style = NULL WHERE user_style = " . $id; - } - $db->sql_query($sql); -} - -// -// set admin-only style (Admin Templates mod) -// -if(!empty($HTTP_GET_VARS['setadmin']) && !defined('DEMO_MODE')) -{ - $id = intval($HTTP_GET_VARS['setadmin']); - $setadmin = empty($HTTP_GET_VARS['admin']) ? 0 : 1; - $sql = "UPDATE " . THEMES_TABLE . " SET theme_public='{$setadmin}' WHERE themes_id='{$id}'"; - $db->sql_query($sql); -} - -// -// get list of installed styles -// -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY template_name'; -if(defined('XS_MODS_ADMIN_TEMPLATES')) -{ - $sql = str_replace(', style_name', ', style_name, theme_public', $sql); -} -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -$style_override = $board_config['override_user_style']; -$style_default = $board_config['default_style']; -$num_users = 0; -$style_ids = array(); - -for($i=0; $iassign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'STYLE' => $style_rowset[$i]['style_name'], - 'TEMPLATE' => $style_rowset[$i]['template_name'], - 'ID' => $id, - 'TOTAL' => $total, - 'U_TOTAL' => append_sid('xs_styles.' . $phpEx . '?list=' . $id), - 'U_DEFAULT' => append_sid('xs_styles.' . $phpEx . '?setdefault=' . $id), - 'U_OVERRIDE' => append_sid('xs_styles.' . $phpEx . '?setoverride=' . ($style_override ? '0' : '1')), - 'U_SWITCHALL' => append_sid('xs_styles.' . $phpEx . '?moveusers=' . $id), - ) - ); - if($total > 0) - { - $template->assign_block_vars('styles.users', array()); - } - if($id == $style_default) - { - $template->assign_block_vars('styles.default', array()); - if($style_override) - { - $template->assign_block_vars('styles.default.override', array()); - } - else - { - $template->assign_block_vars('styles.default.nooverride', array()); - } - } - else - { - $template->assign_block_vars('styles.nodefault', array()); - if(defined('XS_MODS_ADMIN_TEMPLATES')) - { - if($style_rowset[$i]['theme_public']) - { - $template->assign_block_vars('styles.nodefault.admin_only', array( - 'U_CHANGE' => append_sid('xs_styles.'.$phpEx.'?setadmin='.$id.'&admin=0') - )); - } - else - { - $template->assign_block_vars('styles.nodefault.public', array( - 'U_CHANGE' => append_sid('xs_styles.'.$phpEx.'?setadmin='.$id.'&admin=1') - )); - } - } - } - if($total) - { - $template->assign_block_vars('styles.total', array()); - } - else - { - $template->assign_block_vars('styles.none', array()); - } -} - -// get number of users using default style -$sql = 'SELECT count(user_id) as total FROM ' . USERS_TABLE . ' WHERE user_style = NULL'; -$result = $db->sql_query($sql); -if($result) -{ - $total = $db->sql_fetchrow($result); - $num_default = $total['total']; - $num_users += $num_default; -} - -// get number of users -$sql = 'SELECT count(user_id) as total FROM ' . USERS_TABLE; -$result = $db->sql_query($sql); -if(!$result) -{ - $total_users = 0; -} -else -{ - $total = $db->sql_fetchrow($result); - $total_users = $total['total']; -} - -$template->assign_vars(array( - 'U_SCRIPT' => 'xs_styles.' . $phpEx, - 'NUM_DEFAULT' => $num_default - ) -); - -if($total_users > $num_users) -{ - // fix problem - $sql = 'UPDATE ' . USERS_TABLE . ' SET user_style = NULL WHERE user_style NOT IN (' . implode(', ', $style_ids) . ')'; - $db->sql_query($sql); -} - -// -// get list of users -// -if(isset($HTTP_GET_VARS['list'])) -{ - $id = intval($HTTP_GET_VARS['list']); - $template->assign_block_vars('list_users', array()); - $sql = "SELECT user_id, username FROM " . USERS_TABLE . " WHERE user_style='{$id}' ORDER BY username ASC"; - if(!$result = $db->sql_query($sql)) - { - xs_error('Could not get users list!', __LINE__, __FILE__); - } - $rowset = $db->sql_fetchrowset($result); - for($i=0; $iassign_block_vars('list_users.user', array( - 'NUM' => $i + 1, - 'ID' => $rowset[$i]['user_id'], - 'NAME' => htmlspecialchars($rowset[$i]['username']), - ) - ); - } -} - -$template->set_filenames(array('body' => XS_TPL_PATH . 'styles.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_uninstall.php b/phpBB2_old/admin/xs_uninstall.php deleted file mode 100644 index 8e37a16..0000000 --- a/phpBB2_old/admin/xs_uninstall.php +++ /dev/null @@ -1,231 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_uninstall_styles'] . '')); - -$lang['xs_uninstall_back'] = str_replace('{URL}', append_sid('xs_uninstall.'.$phpEx), $lang['xs_uninstall_back']); -$lang['xs_goto_default'] = str_replace('{URL}', append_sid('xs_styles.'.$phpEx), $lang['xs_goto_default']); - -// -// uninstall style -// -if(isset($HTTP_GET_VARS['remove']) && !defined('DEMO_MODE')) -{ - $remove_id = intval($HTTP_GET_VARS['remove']); - if($board_config['default_style'] == $remove_id) - { - xs_error(str_replace('{URL}', append_sid('xs_styles.'.$phpEx), $lang['xs_uninstall_default']) . '

    ' . $lang['xs_uninstall_back']); - } - $sql = "SELECT themes_id, template_name, style_name FROM " . THEMES_TABLE . " WHERE themes_id='{$remove_id}'"; - if(!$result = $db->sql_query($sql)) - { - xs_error($lang['xs_no_style_info'] . '

    ' . $lang['xs_uninstall_back'], __LINE__, __FILE__); - } - $row = $db->sql_fetchrow($result); - if(empty($row['themes_id'])) - { - xs_error($lang['xs_no_style_info'] . '

    ' . $lang['xs_uninstall_back'], __LINE__, __FILE__); - } - $sql = "UPDATE " . USERS_TABLE . " SET user_style=NULL WHERE user_style='{$remove_id}'"; - $db->sql_query($sql); - $sql = "DELETE FROM " . THEMES_TABLE . " WHERE themes_id='{$remove_id}'"; - $db->sql_query($sql); - $template->assign_block_vars('removed', array()); - // remove files - if(!empty($HTTP_GET_VARS['dir'])) - { - $HTTP_POST_VARS['remove'] = addslashes($row['template_name']); - } -} - -function remove_all($dir) -{ - $res = opendir($dir); - if(!$res) - { - return false; - } - while(($file = readdir($res)) !== false) - { - if($file !== '.' && $file !== '..') - { - $str = $dir . '/' . $file; - if(is_dir($str)) - { - remove_all($str); - @rmdir($str); - } - else - { - @unlink($str); - } - } - } - closedir($res); -} - -// -// remove files -// -if(isset($HTTP_POST_VARS['remove']) && !defined('DEMO_MODE')) -{ - $remove = stripslashes($HTTP_POST_VARS['remove']); - $params = array('remove' => $remove); - if(!get_ftp_config(append_sid('xs_uninstall.'.$phpEx), $params, true)) - { - xs_exit(); - } - xs_ftp_connect(append_sid('xs_uninstall.'.$phpEx), $params, true); - $write_local = false; - if($ftp === XS_FTP_LOCAL) - { - $write_local = true; - $write_local_dir = '../templates/'; - } - if(!$write_local) - { - // - // Generate actions list - // - $actions = array(); - // chdir to templates directory - $actions[] = array( - 'command' => 'chdir', - 'dir' => 'templates' - ); - // chdir to template - $actions[] = array( - 'command' => 'chdir', - 'dir' => $remove - ); - // remove all files - $actions[] = array( - 'command' => 'removeall', - 'ignore' => true - ); - $actions[] = array( - 'command' => 'cdup' - ); - $actions[] = array( - 'command' => 'rmdir', - 'dir' => $remove - ); - $ftp_log = array(); - $ftp_error = ''; - $res = ftp_myexec($actions); -/* echo ""; */ - } - else - { - remove_all('../templates/'.$remove); - @rmdir('../templates/'.$remove); - } - $template->assign_block_vars('removed', array()); -} - - - -// -// get list of installed styles -// -$sql = 'SELECT themes_id, template_name, style_name FROM ' . THEMES_TABLE . ' ORDER BY template_name, style_name'; -if(!$result = $db->sql_query($sql)) -{ - xs_error($lang['xs_no_style_info'], __LINE__, __FILE__); -} -$style_rowset = $db->sql_fetchrowset($result); - -$tpl = array(); -for($i=0; $i $styles) -{ - $row_class = $xs_row_class[$j % 2]; - $j++; - $template->assign_block_vars('styles', array( - 'ROW_CLASS' => $row_class, - 'TPL' => htmlspecialchars($tpl), - 'ROWS' => count($styles), - ) - ); - if(count($styles) > 1) - { - for($i=0; $iassign_block_vars('styles.item', array( - 'ID' => $styles[$i]['themes_id'], - 'THEME' => htmlspecialchars($styles[$i]['style_name']), - 'U_DELETE' => append_sid('xs_uninstall.'.$phpEx.'?remove='.$styles[$i]['themes_id']), - ) - ); - $template->assign_block_vars('styles.item.nodelete', array()); - } - } - else - { - $i = 0; - $template->assign_block_vars('styles.item', array( - 'ID' => $styles[$i]['themes_id'], - 'THEME' => htmlspecialchars($styles[$i]['style_name']), - 'U_DELETE' => append_sid('xs_uninstall.'.$phpEx.'?remove='.$styles[$i]['themes_id']), - ) - ); - $template->assign_block_vars('styles.item.delete', array( - 'U_DELETE' => append_sid('xs_uninstall.'.$phpEx.'?dir=1&remove='.$styles[$i]['themes_id']), - ) - ); - } -} - -$template->set_filenames(array('body' => XS_TPL_PATH . 'uninstall.tpl')); -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/admin/xs_update.php b/phpBB2_old/admin/xs_update.php deleted file mode 100644 index 4ea350d..0000000 --- a/phpBB2_old/admin/xs_update.php +++ /dev/null @@ -1,320 +0,0 @@ -xs_version) || $template->xs_version !== 5) -{ - message_die(GENERAL_ERROR, 'eXtreme Styles mod is not installed. You forgot to upload includes/template.php'); -} - -define('IN_XS', true); -include_once('xs_include.' . $phpEx); - -$template->assign_block_vars('nav_left',array('ITEM' => '» ' . $lang['xs_check_for_updates'] . '')); - -$updates = array(); - -function include_update($filename) -{ - $update = array(); - @include($filename); - global $updates; - $updates = array_merge($updates, $update); -} - -if($dir = @opendir($phpbb_root_path. 'templates/')) -{ - while($sub_dir = @readdir($dir)) - if(($sub_dir !== '.') && ($sub_dir !== '..') && ($sub_dir !== 'CVS')) - { - $file = $phpbb_root_path . 'templates/' . $sub_dir . '/xs.cfg'; - if(@file_exists($file)) - { - include_update($file); - } - } - closedir($dir); -} - -// check for xs files in acp. mask: xs_*.cfg -if($dir = @opendir('.')) -{ - while($file = @readdir($dir)) - if(strlen($file) > 6 && substr($file, 0, 3) === 'xs_' && substr($file, strlen($file) - 4) === '.cfg') - { - include_update($file); - } - closedir($dir); -} - - -// nothing to update -if(!count($updates)) -{ - xs_error($lang['xs_update_nothing']); -} - -// show list of available updates -if(!isset($HTTP_GET_VARS['doupdate'])) -{ - $template->set_filenames(array('body' => XS_TPL_PATH . 'update.tpl')); - $template->assign_vars(array( - 'UPDATE_URL' => append_sid('xs_update.'.$phpEx.'?doupdate=1'), - 'L_XS_UPDATE_TOTAL1' => str_replace('{NUM}', count($updates), $lang['xs_update_total1']), - ) - ); - $counter = 0; - @reset($updates); - foreach($updates as $var => $item) - { - $counter ++; - $type = isset($lang['xs_update_types'][$item['update_type']]) ? $item['update_type'] : 0; - $row_class = $xs_row_class[$counter % 2]; - $template->assign_block_vars('row', - array( - 'ROW_CLASS' => $row_class, - 'NUM' => $counter, - 'VAR' => 'item_'.$counter.'_', - 'ITEM' => htmlspecialchars($var), - 'NAME' => htmlspecialchars($item['update_name']), - 'TYPE' => $lang['xs_update_types'][$type], - 'URL' => htmlspecialchars($item['update_url']), - 'VERSION' => htmlspecialchars($item['update_version']) - ) - ); - $template->assign_block_vars('row.'.(empty($item['update_url']) ? 'nourl' : 'url'), array()); - } - $template->pparse('body'); - xs_exit(); -} - -// check updates. - -// getting list of items to update -@reset($updates); -$urls = array(); -$items = array(); -$i=0; -foreach($updates as $var1 => $item) -{ - $i++; - $var = 'item_'.$i.'_'; - if(!empty($HTTP_POST_VARS[$var.'item']) && !empty($HTTP_POST_VARS[$var.'checked']) && $HTTP_POST_VARS[$var.'checked']) - { - $item = $HTTP_POST_VARS[$var.'item']; - if(!empty($updates[$item]['update_url'])) - { - $items[] = $var1; - $found = false; - $url = $updates[$item]['update_url']; - for($j=0; $j'; - $end_text = ''; - $begin_pos = -1; - $end_pos = -1; - // getting begin and end tags for it - for($k=0; ($k= 0) - { - // getting all data for this item in array - for($k=$begin_pos+1; $k<$end_pos; $k++) - { - $arr2 = explode(' ', $arr[$k], 2); - if(count($arr2) == 2) - { - $data[trim($arr2[0])] = trim($arr2[1]); - } - } - } - else - { - $data['error'] = $lang['xs_update_error_noitem']; - } - $updates[$items[$j]]['data'] = $data; - } - } - } -} - -$template->set_filenames(array('body' => XS_TPL_PATH . 'update2.tpl')); - -@reset($updates); -$count_total = 0; -$count_error = 0; -$count_update = 0; -foreach($updates as $var => $item) -{ - if(isset($item['data']) && is_array($item['data'])) - { - $count_total++; - $type = isset($lang['xs_update_types'][$item['update_type']]) ? $item['update_type'] : 0; - $ver1 = htmlspecialchars($item['update_version']); - $row_class = $xs_row_class[$count_total % 2]; - $template->assign_block_vars('row', - array( - 'ROW_CLASS' => $row_class, - 'ITEM' => htmlspecialchars($item['update_name']), - 'TYPE' => $lang['xs_update_types'][$type], - 'VERSION' => $ver1, - ) - ); - if(!empty($item['data']['version'])) - { - $ver2 = htmlspecialchars($item['data']['version']); - $info = isset($item['data']['info']) ? $item['data']['info'] : ''; - if($ver2 !== $ver1 && (!empty($item['data']['update']) || !empty($item['data']['autoupdate']))) - { - $count_update++; - $u_import = (isset($item['data']['style']) && substr($item['data']['style'], 0, 7) === 'http://') ? append_sid('xs_import.'.$phpEx.'?get_web=' . urlencode($item['data']['style'])) : ''; - $template->assign_block_vars('row.update', - array( - 'NUM' => $count_total, - 'VERSION' => $ver2, - 'UPDATE' => isset($item['data']['update']) ? htmlspecialchars($item['data']['update']) : '', - 'U_IMPORT' => $u_import, - 'INFO' => htmlspecialchars($info), - ) - ); - $template->assign_block_vars('row.update.' . (empty($item['data']['update']) ? 'noupdate' : 'updated'), array()); - $template->assign_block_vars('row.update.' . (empty($item['data']['info']) ? 'noinfo' : 'info'), array()); - $template->assign_block_vars('row.update.' . (empty($u_import) ? 'noimport' : 'import'), array()); - } - else - { - $template->assign_block_vars('row.noupdate', - array( - 'VERSION' => $ver2, - 'MESSAGE' => $lang['xs_update_noupdate'], - 'INFO' => empty($info) ? '' : htmlspecialchars($info), - ) - ); - $template->assign_block_vars('row.noupdate.' . (empty($item['data']['info']) ? 'noinfo' : 'info'), array()); - } - } - else - { - if(empty($item['data']['error'])) - { - $item['data']['error'] = $lang['xs_update_error_noitem']; - } - $template->assign_block_vars('row.error', array('ERROR' => htmlspecialchars($item['data']['error']))); - $count_error++; - } - } -} - -$template->assign_vars( - array( - 'COUNT_TOTAL' => str_replace('{NUM}', $count_total, $lang['xs_update_total1']), - 'COUNT_ERROR' => str_replace('{NUM}', $count_error, $lang['xs_update_total2']), - 'COUNT_UPDATE' => str_replace('{NUM}', $count_update, $lang['xs_update_total3']) - ) -); - -$template->pparse('body'); -xs_exit(); - -?> \ No newline at end of file diff --git a/phpBB2_old/cache/.htaccess b/phpBB2_old/cache/.htaccess deleted file mode 100644 index c391816..0000000 --- a/phpBB2_old/cache/.htaccess +++ /dev/null @@ -1,4 +0,0 @@ - -Order Allow,Deny -Deny from All - \ No newline at end of file diff --git a/phpBB2_old/cache/index.htm b/phpBB2_old/cache/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2_old/cache/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2_old/common.php b/phpBB2_old/common.php deleted file mode 100644 index da786f2..0000000 --- a/phpBB2_old/common.php +++ /dev/null @@ -1,235 +0,0 @@ - NULL, 'HTTP_POST_VARS' => NULL, 'HTTP_COOKIE_VARS' => NULL, 'HTTP_SERVER_VARS' => NULL, 'HTTP_ENV_VARS' => NULL, 'HTTP_POST_FILES' => NULL); - - // Loop through each input array - @reset($test); - while (list($input,) = @each($test)) - { - while (list($var,) = @each($$input)) - { - // Validate the variable to be unset - if (!isset($test[$var]) && $var != 'test' && $var != 'input') - { - unset($$var); - } - } - } -} -else if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on') -{ - // PHP4+ path - - // Not only will array_merge give a warning if a parameter - // is not an array, it will actually fail. So we check if - // HTTP_SESSION_VARS has been initialised. - if (!isset($HTTP_SESSION_VARS)) - { - $HTTP_SESSION_VARS = array(); - } - - // Merge all into one extremely huge array; unset - // this later - $input = array_merge($HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $HTTP_SESSION_VARS, $HTTP_ENV_VARS, $HTTP_POST_FILES); - - unset($input['input']); - - while (list($var,) = @each($input)) - { - unset($$var); - } - - unset($input); -} - -// -// addslashes to vars if magic_quotes_gpc is off -// this is a security precaution to prevent someone -// trying to break out of a SQL statement. -// -if( !get_magic_quotes_gpc() ) -{ - if( is_array($HTTP_GET_VARS) ) - { - while( list($k, $v) = each($HTTP_GET_VARS) ) - { - if( is_array($HTTP_GET_VARS[$k]) ) - { - while( list($k2, $v2) = each($HTTP_GET_VARS[$k]) ) - { - $HTTP_GET_VARS[$k][$k2] = addslashes($v2); - } - @reset($HTTP_GET_VARS[$k]); - } - else - { - $HTTP_GET_VARS[$k] = addslashes($v); - } - } - @reset($HTTP_GET_VARS); - } - - if( is_array($HTTP_POST_VARS) ) - { - while( list($k, $v) = each($HTTP_POST_VARS) ) - { - if( is_array($HTTP_POST_VARS[$k]) ) - { - while( list($k2, $v2) = each($HTTP_POST_VARS[$k]) ) - { - $HTTP_POST_VARS[$k][$k2] = addslashes($v2); - } - @reset($HTTP_POST_VARS[$k]); - } - else - { - $HTTP_POST_VARS[$k] = addslashes($v); - } - } - @reset($HTTP_POST_VARS); - } - - if( is_array($HTTP_COOKIE_VARS) ) - { - while( list($k, $v) = each($HTTP_COOKIE_VARS) ) - { - if( is_array($HTTP_COOKIE_VARS[$k]) ) - { - while( list($k2, $v2) = each($HTTP_COOKIE_VARS[$k]) ) - { - $HTTP_COOKIE_VARS[$k][$k2] = addslashes($v2); - } - @reset($HTTP_COOKIE_VARS[$k]); - } - else - { - $HTTP_COOKIE_VARS[$k] = addslashes($v); - } - } - @reset($HTTP_COOKIE_VARS); - } -} - -// -// Define some basic configuration arrays this also prevents -// malicious rewriting of language and otherarray values via -// URI params -// -$board_config = array(); -$userdata = array(); -$theme = array(); -$images = array(); -$lang = array(); -$nav_links = array(); -$gen_simple_header = FALSE; - -include($phpbb_root_path . 'config.'.$phpEx); - -if( !defined("PHPBB_INSTALLED") ) -{ - header("Location: install/install.$phpEx"); - exit; -} - -include($phpbb_root_path . 'includes/constants.'.$phpEx); -include($phpbb_root_path . 'includes/template.'.$phpEx); -include($phpbb_root_path . 'includes/sessions.'.$phpEx); -include($phpbb_root_path . 'includes/auth.'.$phpEx); -include($phpbb_root_path . 'includes/functions.'.$phpEx); -include($phpbb_root_path . 'includes/db.'.$phpEx); - -// -// Obtain and encode users IP -// -// I'm removing HTTP_X_FORWARDED_FOR ... this may well cause other problems such as -// private range IP's appearing instead of the guilty routable IP, tough, don't -// even bother complaining ... go scream and shout at the idiots out there who feel -// "clever" is doing harm rather than good ... karma is a great thing ... :) -// -$client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : $REMOTE_ADDR ); -$user_ip = encode_ip($client_ip); - -// -// Setup forum wide options, if this fails -// then we output a CRITICAL_ERROR since -// basic forum information is not available -// -$sql = "SELECT * - FROM " . CONFIG_TABLE; -if( !($result = $db->sql_query($sql)) ) -{ - message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql); -} - -while ( $row = $db->sql_fetchrow($result) ) -{ - $board_config[$row['config_name']] = $row['config_value']; -} - -if (file_exists('install') || file_exists('contrib')) -{ - message_die(GENERAL_MESSAGE, 'Please ensure both the install/ and contrib/ directories are deleted'); -} - -// -// Show 'Board is disabled' message if needed. -// -if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") ) -{ - message_die(GENERAL_MESSAGE, 'Board_disable', 'Information'); -} - -?> \ No newline at end of file diff --git a/phpBB2_old/config.php b/phpBB2_old/config.php deleted file mode 100644 index 02f3c25..0000000 --- a/phpBB2_old/config.php +++ /dev/null @@ -1,18 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2_old/db/db2.php b/phpBB2_old/db/db2.php deleted file mode 100644 index 1ab5284..0000000 --- a/phpBB2_old/db/db2.php +++ /dev/null @@ -1,421 +0,0 @@ -persistency = $persistency; - $this->user = $sqluser; - $this->password = $sqlpassword; - $this->dbname = $database; - - $this->server = $sqlserver; - - if($this->persistency) - { - $this->db_connect_id = odbc_pconnect($this->server, "", ""); - } - else - { - $this->db_connect_id = odbc_connect($this->server, "", ""); - } - - if($this->db_connect_id) - { - @odbc_autocommit($this->db_connect_id, off); - - return $this->db_connect_id; - } - else - { - return false; - } - } - // - // Other base methods - // - function sql_close() - { - if($this->db_connect_id) - { - if($this->query_result) - { - @odbc_free_result($this->query_result); - } - $result = @odbc_close($this->db_connect_id); - return $result; - } - else - { - return false; - } - } - - - // - // Query method - // - function sql_query($query = "", $transaction = FALSE) - { - // - // Remove any pre-existing queries - // - unset($this->query_result); - unset($this->row); - if($query != "") - { - $this->num_queries++; - - if(!eregi("^INSERT ",$query)) - { - if(eregi("LIMIT", $query)) - { - preg_match("/^(.*)LIMIT ([0-9]+)[, ]*([0-9]+)*/s", $query, $limits); - - $query = $limits[1]; - if($limits[3]) - { - $row_offset = $limits[2]; - $num_rows = $limits[3]; - } - else - { - $row_offset = 0; - $num_rows = $limits[2]; - } - - $query .= " FETCH FIRST ".($row_offset+$num_rows)." ROWS ONLY OPTIMIZE FOR ".($row_offset+$num_rows)." ROWS"; - - $this->query_result = odbc_exec($this->db_connect_id, $query); - - $query_limit_offset = $row_offset; - $this->result_numrows[$this->query_result] = $num_rows; - } - else - { - $this->query_result = odbc_exec($this->db_connect_id, $query); - - $row_offset = 0; - $this->result_numrows[$this->query_result] = 5E6; - } - - $result_id = $this->query_result; - if($this->query_result && eregi("^SELECT", $query)) - { - - for($i = 1; $i < odbc_num_fields($result_id)+1; $i++) - { - $this->result_field_names[$result_id][] = odbc_field_name($result_id, $i); - } - - $i = $row_offset + 1; - $k = 0; - while(odbc_fetch_row($result_id, $i) && $k < $this->result_numrows[$result_id]) - { - - for($j = 1; $j < count($this->result_field_names[$result_id])+1; $j++) - { - $this->result_rowset[$result_id][$k][$this->result_field_names[$result_id][$j-1]] = odbc_result($result_id, $j); - } - $i++; - $k++; - } - - $this->result_numrows[$result_id] = $k; - $this->row_index[$result_id] = 0; - } - else - { - $this->result_numrows[$result_id] = @odbc_num_rows($result_id); - $this->row_index[$result_id] = 0; - } - } - else - { - if(eregi("^(INSERT|UPDATE) ", $query)) - { - $query = preg_replace("/\\\'/s", "''", $query); - } - - $this->query_result = odbc_exec($this->db_connect_id, $query); - - if($this->query_result) - { - $sql_id = "VALUES(IDENTITY_VAL_LOCAL())"; - - $id_result = odbc_exec($this->db_connect_id, $sql_id); - if($id_result) - { - $row_result = odbc_fetch_row($id_result); - if($row_result) - { - $this->next_id[$this->query_result] = odbc_result($id_result, 1); - } - } - } - - odbc_commit($this->db_connect_id); - - $this->query_limit_offset[$this->query_result] = 0; - $this->result_numrows[$this->query_result] = 0; - } - - return $this->query_result; - } - else - { - return false; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - return $this->result_numrows[$query_id]; - } - else - { - return false; - } - } - function sql_affectedrows($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - return $this->result_numrows[$query_id]; - } - else - { - return false; - } - } - function sql_numfields($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = count($this->result_field_names[$query_id]); - return $result; - } - else - { - return false; - } - } - function sql_fieldname($offset, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = $this->result_field_names[$query_id][$offset]; - return $result; - } - else - { - return false; - } - } - function sql_fieldtype($offset, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @odbc_field_type($query_id, $offset); - return $result; - } - else - { - return false; - } - } - function sql_fetchrow($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - if($this->row_index[$query_id] < $this->result_numrows[$query_id]) - { - $result = $this->result_rowset[$query_id][$this->row_index[$query_id]]; - $this->row_index[$query_id]++; - return $result; - } - else - { - return false; - } - } - else - { - return false; - } - } - function sql_fetchrowset($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $this->row_index[$query_id] = $this->result_numrows[$query_id]; - return $this->result_rowset[$query_id]; - } - else - { - return false; - } - } - function sql_fetchfield($field, $row = -1, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - if($row < $this->result_numrows[$query_id]) - { - if($row == -1) - { - $getrow = $this->row_index[$query_id]-1; - } - else - { - $getrow = $row; - } - - return $this->result_rowset[$query_id][$getrow][$this->result_field_names[$query_id][$field]]; - - } - else - { - return false; - } - } - else - { - return false; - } - } - function sql_rowseek($offset, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $this->row_index[$query_id] = 0; - return true; - } - else - { - return false; - } - } - function sql_nextid($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - return $this->next_id[$query_id]; - } - else - { - return false; - } - } - function sql_freeresult($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @odbc_free_result($query_id); - return $result; - } - else - { - return false; - } - } - function sql_error($query_id = 0) - { -// $result['code'] = @odbc_error($this->db_connect_id); -// $result['message'] = @odbc_errormsg($this->db_connect_id); - - return ""; - } - -} // class sql_db - -} // if ... define - -?> \ No newline at end of file diff --git a/phpBB2_old/db/index.htm b/phpBB2_old/db/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2_old/db/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2_old/db/msaccess.php b/phpBB2_old/db/msaccess.php deleted file mode 100644 index 733fa3c..0000000 --- a/phpBB2_old/db/msaccess.php +++ /dev/null @@ -1,389 +0,0 @@ -persistency = $persistency; - $this->server = $sqlserver; - $this->user = $sqluser; - $this->password = $sqlpassword; - $this->dbname = $database; - - $this->db_connect_id = ($this->persistency) ? odbc_pconnect($this->server, $this->user, $this->password) : odbc_connect($this->server, $this->user, $this->password); - - return ( $this->db_connect_id ) ? $this->db_connect_id : false; - } - // - // Other base methods - // - function sql_close() - { - if($this->db_connect_id) - { - if( $this->in_transaction ) - { - @odbc_commit($this->db_connect_id); - } - - if( count($this->result_rowset) ) - { - unset($this->result_rowset); - unset($this->field_names); - unset($this->field_types); - unset($this->num_rows); - unset($this->current_row); - } - - return @odbc_close($this->db_connect_id); - } - else - { - return false; - } - } - - // - // Query method - // - function sql_query($query = "", $transaction = FALSE) - { - if( $query != "" ) - { - $this->num_queries++; - - if( $transaction == BEGIN_TRANSACTION && !$this->in_transaction ) - { - if( !odbc_autocommit($this->db_connect_id, false) ) - { - return false; - } - $this->in_transaction = TRUE; - } - - $query = str_replace("LOWER(", "LCASE(", $query); - - if( preg_match("/^SELECT(.*?)(LIMIT ([0-9]+)[, ]*([0-9]+)*)?$/s", $query, $limits) ) - { - $query = $limits[1]; - - if( !empty($limits[2]) ) - { - $row_offset = ( $limits[4] ) ? $limits[3] : ""; - $num_rows = ( $limits[4] ) ? $limits[4] : $limits[3]; - - $query = "TOP " . ( $row_offset + $num_rows ) . $query; - } - - $this->result = odbc_exec($this->db_connect_id, "SELECT $query"); - - if( $this->result ) - { - if( empty($this->field_names[$this->result]) ) - { - for($i = 1; $i < odbc_num_fields($this->result) + 1; $i++) - { - $this->field_names[$this->result][] = odbc_field_name($this->result, $i); - $this->field_types[$this->result][] = odbc_field_type($this->result, $i); - } - } - - $this->current_row[$this->result] = 0; - $this->result_rowset[$this->result] = array(); - - $row_outer = ( isset($row_offset) ) ? $row_offset + 1 : 1; - $row_outer_max = ( isset($num_rows) ) ? $row_offset + $num_rows + 1 : 1E9; - $row_inner = 0; - - while( odbc_fetch_row($this->result, $row_outer) && $row_outer < $row_outer_max ) - { - for($j = 0; $j < count($this->field_names[$this->result]); $j++) - { - $this->result_rowset[$this->result][$row_inner][$this->field_names[$this->result][$j]] = stripslashes(odbc_result($this->result, $j + 1)); - } - - $row_outer++; - $row_inner++; - } - - $this->num_rows[$this->result] = count($this->result_rowset[$this->result]); - - odbc_free_result($this->result); - } - - } - else if( eregi("^INSERT ", $query) ) - { - $this->result = odbc_exec($this->db_connect_id, $query); - - if( $this->result ) - { - $result_id = odbc_exec($this->db_connect_id, "SELECT @@IDENTITY"); - if( $result_id ) - { - if( odbc_fetch_row($result_id) ) - { - $this->next_id[$this->db_connect_id] = odbc_result($result_id, 1); - $this->affected_rows[$this->db_connect_id] = odbc_num_rows($this->result); - } - } - } - } - else - { - $this->result = odbc_exec($this->db_connect_id, $query); - - if( $this->result ) - { - $this->affected_rows[$this->db_connect_id] = odbc_num_rows($this->result); - } - } - - if( !$this->result ) - { - if( $this->in_transaction ) - { - odbc_rollback($this->db_connect_id); - odbc_autocommit($this->db_connect_id, true); - $this->in_transaction = FALSE; - } - - return false; - } - - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if ( !@odbc_commit($this->db_connect_id) ) - { - odbc_rollback($this->db_connect_id); - odbc_autocommit($this->db_connect_id, true); - return false; - } - odbc_autocommit($this->db_connect_id, true); - } - - return $this->result; - } - else - { - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if ( !@odbc_commit($this->db_connect_id) ) - { - odbc_rollback($this->db_connect_id); - odbc_autocommit($this->db_connect_id, true); - return false; - } - odbc_autocommit($this->db_connect_id, true); - } - - return true; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? $this->num_rows[$query_id] : false; - } - - function sql_numfields($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? count($this->field_names[$query_id]) : false; - } - - function sql_fieldname($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? $this->field_names[$query_id][$offset] : false; - } - - function sql_fieldtype($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? $this->field_types[$query_id][$offset] : false; - } - - function sql_fetchrow($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - return ( $this->num_rows[$query_id] && $this->current_row[$query_id] < $this->num_rows[$query_id] ) ? $this->result_rowset[$query_id][$this->current_row[$query_id]++] : false; - } - else - { - return false; - } - } - - function sql_fetchrowset($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - return ( $this->num_rows[$query_id] ) ? $this->result_rowset[$query_id] : false; - } - else - { - return false; - } - } - - function sql_fetchfield($field, $row = -1, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - if( $row < $this->num_rows[$query_id] ) - { - $getrow = ($row == -1) ? $this->current_row[$query_id] - 1 : $row; - - return $this->result_rowset[$query_id][$getrow][$this->field_names[$query_id][$field]]; - } - else - { - return false; - } - } - else - { - return false; - } - } - - function sql_rowseek($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - $this->current_row[$query_id] = $offset - 1; - return true; - } - else - { - return false; - } - } - - function sql_nextid() - { - return ( $this->next_id[$this->db_connect_id] ) ? $this->next_id[$this->db_connect_id] : false; - } - - function sql_affectedrows() - { - return ( $this->affected_rows[$this->db_connect_id] ) ? $this->affected_rows[$this->db_connect_id] : false; - } - - function sql_freeresult($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - unset($this->num_rows[$query_id]); - unset($this->current_row[$query_id]); - unset($this->result_rowset[$query_id]); - unset($this->field_names[$query_id]); - unset($this->field_types[$query_id]); - - return true; - } - - function sql_error() - { - $error['code'] = "";//odbc_error($this->db_connect_id); - $error['message'] = "Error";//odbc_errormsg($this->db_connect_id); - - return $error; - } - -} // class sql_db - -} // if ... define - -?> \ No newline at end of file diff --git a/phpBB2_old/db/mssql-odbc.php b/phpBB2_old/db/mssql-odbc.php deleted file mode 100644 index 93abe0a..0000000 --- a/phpBB2_old/db/mssql-odbc.php +++ /dev/null @@ -1,387 +0,0 @@ -persistency = $persistency; - $this->server = $sqlserver; - $this->user = $sqluser; - $this->password = $sqlpassword; - $this->dbname = $database; - - $this->db_connect_id = ($this->persistency) ? odbc_pconnect($this->server, $this->user, $this->password) : odbc_connect($this->server, $this->user, $this->password); - - return ( $this->db_connect_id ) ? $this->db_connect_id : false; - } - // - // Other base methods - // - function sql_close() - { - if($this->db_connect_id) - { - if( $this->in_transaction ) - { - @odbc_commit($this->db_connect_id); - } - - if( count($this->result_rowset) ) - { - unset($this->result_rowset); - unset($this->field_names); - unset($this->field_types); - unset($this->num_rows); - unset($this->current_row); - } - - return @odbc_close($this->db_connect_id); - } - else - { - return false; - } - } - - // - // Query method - // - function sql_query($query = "", $transaction = FALSE) - { - if( $query != "" ) - { - $this->num_queries++; - - if( $transaction == BEGIN_TRANSACTION && !$this->in_transaction ) - { - if( !odbc_autocommit($this->db_connect_id, false) ) - { - return false; - } - $this->in_transaction = TRUE; - } - - if( preg_match("/^SELECT(.*?)(LIMIT ([0-9]+)[, ]*([0-9]+)*)?$/s", $query, $limits) ) - { - $query = $limits[1]; - - if( !empty($limits[2]) ) - { - $row_offset = ( $limits[4] ) ? $limits[3] : ""; - $num_rows = ( $limits[4] ) ? $limits[4] : $limits[3]; - - $query = "TOP " . ( $row_offset + $num_rows ) . $query; - } - - $this->result = odbc_exec($this->db_connect_id, "SELECT $query"); - - if( $this->result ) - { - if( empty($this->field_names[$this->result]) ) - { - for($i = 1; $i < odbc_num_fields($this->result) + 1; $i++) - { - $this->field_names[$this->result][] = odbc_field_name($this->result, $i); - $this->field_types[$this->result][] = odbc_field_type($this->result, $i); - } - } - - $this->current_row[$this->result] = 0; - $this->result_rowset[$this->result] = array(); - - $row_outer = ( isset($row_offset) ) ? $row_offset + 1 : 1; - $row_outer_max = ( isset($num_rows) ) ? $row_offset + $num_rows + 1 : 1E9; - $row_inner = 0; - - while( odbc_fetch_row($this->result, $row_outer) && $row_outer < $row_outer_max ) - { - for($j = 0; $j < count($this->field_names[$this->result]); $j++) - { - $this->result_rowset[$this->result][$row_inner][$this->field_names[$this->result][$j]] = stripslashes(odbc_result($this->result, $j + 1)); - } - - $row_outer++; - $row_inner++; - } - - $this->num_rows[$this->result] = count($this->result_rowset[$this->result]); - } - - } - else if( eregi("^INSERT ", $query) ) - { - $this->result = odbc_exec($this->db_connect_id, $query); - - if( $this->result ) - { - $result_id = odbc_exec($this->db_connect_id, "SELECT @@IDENTITY"); - if( $result_id ) - { - if( odbc_fetch_row($result_id) ) - { - $this->next_id[$this->db_connect_id] = odbc_result($result_id, 1); - $this->affected_rows[$this->db_connect_id] = odbc_num_rows($this->result); - } - } - } - } - else - { - $this->result = odbc_exec($this->db_connect_id, $query); - - if( $this->result ) - { - $this->affected_rows[$this->db_connect_id] = odbc_num_rows($this->result); - } - } - - if( !$this->result ) - { - if( $this->in_transaction ) - { - odbc_rollback($this->db_connect_id); - odbc_autocommit($this->db_connect_id, true); - $this->in_transaction = FALSE; - } - - return false; - } - - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if ( !odbc_commit($this->db_connect_id) ) - { - odbc_rollback($this->db_connect_id); - odbc_autocommit($this->db_connect_id, true); - return false; - } - odbc_autocommit($this->db_connect_id, true); - } - - odbc_free_result($this->result); - - return $this->result; - } - else - { - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if ( !@odbc_commit($this->db_connect_id) ) - { - odbc_rollback($this->db_connect_id); - odbc_autocommit($this->db_connect_id, true); - return false; - } - odbc_autocommit($this->db_connect_id, true); - } - - return true; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? $this->num_rows[$query_id] : false; - } - - function sql_numfields($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? count($this->field_names[$query_id]) : false; - } - - function sql_fieldname($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? $this->field_names[$query_id][$offset] : false; - } - - function sql_fieldtype($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? $this->field_types[$query_id][$offset] : false; - } - - function sql_fetchrow($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - return ( $this->num_rows[$query_id] && $this->current_row[$query_id] < $this->num_rows[$query_id] ) ? $this->result_rowset[$query_id][$this->current_row[$query_id]++] : false; - } - else - { - return false; - } - } - - function sql_fetchrowset($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - return ( $this->num_rows[$query_id] ) ? $this->result_rowset[$query_id] : false; - } - else - { - return false; - } - } - - function sql_fetchfield($field, $row = -1, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - if( $row < $this->num_rows[$query_id] ) - { - $getrow = ( $row == -1 ) ? $this->current_row[$query_id] - 1 : $row; - - return $this->result_rowset[$query_id][$getrow][$this->field_names[$query_id][$field]]; - - } - else - { - return false; - } - } - else - { - return false; - } - } - - function sql_rowseek($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - $this->current_row[$query_id] = $offset - 1; - return true; - } - else - { - return false; - } - } - - function sql_nextid() - { - return ( $this->next_id[$this->db_connect_id] ) ? $this->next_id[$this->db_connect_id] : false; - } - - function sql_affectedrows() - { - return ( $this->affected_rows[$this->db_connect_id] ) ? $this->affected_rows[$this->db_connect_id] : false; - } - - function sql_freeresult($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - unset($this->num_rows[$query_id]); - unset($this->current_row[$query_id]); - unset($this->result_rowset[$query_id]); - unset($this->field_names[$query_id]); - unset($this->field_types[$query_id]); - - return true; - } - - function sql_error() - { - $error['code'] = odbc_error($this->db_connect_id); - $error['message'] = odbc_errormsg($this->db_connect_id); - - return $error; - } - -} // class sql_db - -} // if ... define - -?> \ No newline at end of file diff --git a/phpBB2_old/db/mssql.php b/phpBB2_old/db/mssql.php deleted file mode 100644 index b77e287..0000000 --- a/phpBB2_old/db/mssql.php +++ /dev/null @@ -1,418 +0,0 @@ -persistency = $persistency; - $this->user = $sqluser; - $this->password = $sqlpassword; - $this->server = $sqlserver; - $this->dbname = $database; - - $this->db_connect_id = ( $this->persistency ) ? @mssql_pconnect($this->server, $this->user, $this->password) : @mssql_connect($this->server, $this->user, $this->password); - - if( $this->db_connect_id && $this->dbname != "" ) - { - if( !mssql_select_db($this->dbname, $this->db_connect_id) ) - { - mssql_close($this->db_connect_id); - return false; - } - } - - return $this->db_connect_id; - } - - // - // Other base methods - // - function sql_close() - { - if($this->db_connect_id) - { - // - // Commit any remaining transactions - // - if( $this->in_transaction ) - { - @mssql_query("COMMIT", $this->db_connect_id); - } - - return @mssql_close($this->db_connect_id); - } - else - { - return false; - } - } - - - // - // Query method - // - function sql_query($query = '', $transaction = FALSE) - { - // - // Remove any pre-existing queries - // - unset($this->result); - unset($this->row); - - if ( $query != '' ) - { - $this->num_queries++; - - if ( $transaction == BEGIN_TRANSACTION && !$this->in_transaction ) - { - if ( !@mssql_query('BEGIN TRANSACTION', $this->db_connect_id) ) - { - return false; - } - $this->in_transaction = TRUE; - } - - // - // Does query contain any LIMIT code? If so pull out relevant start and num_results - // This isn't terribly easy with MSSQL, whatever you do will potentially impact - // performance compared to an 'in-built' limit - // - // Another issue is the 'lack' of a returned true value when a query is valid but has - // no result set (as with all the other DB interfaces). It seems though that it's - // 'fair' to say that if a query returns a false result (ie. no resource id) then the - // SQL was valid but had no result set. If the query returns nothing but the rowcount - // returns something then there's a problem. This may well be a false assumption though - // ... needs checking under Windows itself. - // - if( preg_match('#^SELECT(.*?)(LIMIT ([0-9]+)[, ]*([0-9]+)*)?$#s', $query, $limits) ) - { - $query = $limits[1]; - - if( !empty($limits[2]) ) - { - $row_offset = ( $limits[4] ) ? $limits[3] : ""; - $num_rows = ( $limits[4] ) ? $limits[4] : $limits[3]; - - $query = 'TOP ' . ( $row_offset + $num_rows ) . $query; - } - - $this->result = @mssql_query("SELECT $query", $this->db_connect_id); - - if( $this->result ) - { - $this->limit_offset[$this->result] = ( !empty($row_offset) ) ? $row_offset : 0; - - if( $row_offset > 0 ) - { - @mssql_data_seek($this->result, $row_offset); - } - } - } - else if( preg_match('#^INSERT #i', $query) ) - { - if( @mssql_query($query, $this->db_connect_id) ) - { - $this->result = time() + microtime(); - - $result_id = @mssql_query('SELECT @@IDENTITY AS id, @@ROWCOUNT as affected', $this->db_connect_id); - if( $result_id ) - { - if( $row = @mssql_fetch_array($result_id) ) - { - $this->next_id[$this->db_connect_id] = $row['id']; - $this->affected_rows[$this->db_connect_id] = $row['affected']; - } - } - } - } - else - { - if( @mssql_query($query, $this->db_connect_id) ) - { - $this->result = time() + microtime(); - - $result_id = @mssql_query('SELECT @@ROWCOUNT as affected', $this->db_connect_id); - if( $result_id ) - { - if( $row = @mssql_fetch_array($result_id) ) - { - $this->affected_rows[$this->db_connect_id] = $row['affected']; - } - } - } - } - - if( !$this->result ) - { - if( $this->in_transaction ) - { - @mssql_query('ROLLBACK', $this->db_connect_id); - $this->in_transaction = FALSE; - } - - return false; - } - - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if( !@mssql_query('COMMIT', $this->db_connect_id) ) - { - @mssql_query("ROLLBACK", $this->db_connect_id); - return false; - } - } - - return $this->result; - } - else - { - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if( !@mssql_query('COMMIT', $this->db_connect_id) ) - { - @mssql_query('ROLLBACK', $this->db_connect_id); - return false; - } - } - - return true; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - return ( !empty($this->limit_offset[$query_id]) ) ? @mssql_num_rows($query_id) - $this->limit_offset[$query_id] : @mssql_num_rows($query_id); - } - else - { - return false; - } - } - - function sql_numfields($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? @mssql_num_fields($query_id) : false; - } - - function sql_fieldname($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? @mssql_field_name($query_id, $offset) : false; - } - - function sql_fieldtype($offset, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->result; - } - - return ( $query_id ) ? @mssql_field_type($query_id, $offset) : false; - } - - function sql_fetchrow($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - empty($row); - - $row = @mssql_fetch_array($query_id); - - while( list($key, $value) = @each($row) ) - { - $row[$key] = stripslashes($value); - } - @reset($row); - - return $row; - } - else - { - return false; - } - } - - function sql_fetchrowset($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - $i = 0; - empty($rowset); - - while( $row = @mssql_fetch_array($query_id)) - { - while( list($key, $value) = @each($row) ) - { - $rowset[$i][$key] = stripslashes($value); - } - $i++; - } - @reset($rowset); - - return $rowset; - } - else - { - return false; - } - } - - function sql_fetchfield($field, $row = -1, $query_id) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - if( $row != -1 ) - { - if( $this->limit_offset[$query_id] > 0 ) - { - $result = ( !empty($this->limit_offset[$query_id]) ) ? @mssql_result($this->result, ($this->limit_offset[$query_id] + $row), $field) : false; - } - else - { - $result = @mssql_result($this->result, $row, $field); - } - } - else - { - if( empty($this->row[$query_id]) ) - { - $this->row[$query_id] = @mssql_fetch_array($query_id); - $result = stripslashes($this->row[$query_id][$field]); - } - } - - return $result; - } - else - { - return false; - } - } - - function sql_rowseek($rownum, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - if( $query_id ) - { - return ( !empty($this->limit_offset[$query_id]) ) ? @mssql_data_seek($query_id, ($this->limit_offset[$query_id] + $rownum)) : @mssql_data_seek($query_id, $rownum); - } - else - { - return false; - } - } - - function sql_nextid() - { - return ( $this->next_id[$this->db_connect_id] ) ? $this->next_id[$this->db_connect_id] : false; - } - - function sql_affectedrows() - { - return ( $this->affected_rows[$this->db_connect_id] ) ? $this->affected_rows[$this->db_connect_id] : false; - } - - function sql_freeresult($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->result; - } - - return ( $query_id ) ? @mssql_free_result($query_id) : false; - } - - function sql_error($query_id = 0) - { - $result['message'] = @mssql_get_last_message(); - return $result; - } - -} // class sql_db - -} // if ... define - -?> \ No newline at end of file diff --git a/phpBB2_old/db/mysql.php b/phpBB2_old/db/mysql.php deleted file mode 100644 index 5acd081..0000000 --- a/phpBB2_old/db/mysql.php +++ /dev/null @@ -1,335 +0,0 @@ -persistency = $persistency; - $this->user = $sqluser; - $this->password = $sqlpassword; - $this->server = $sqlserver; - $this->dbname = $database; - - if($this->persistency) - { - $this->db_connect_id = @mysql_pconnect($this->server, $this->user, $this->password); - } - else - { - $this->db_connect_id = @mysql_connect($this->server, $this->user, $this->password); - } - if($this->db_connect_id) - { - if($database != "") - { - $this->dbname = $database; - $dbselect = @mysql_select_db($this->dbname); - if(!$dbselect) - { - @mysql_close($this->db_connect_id); - $this->db_connect_id = $dbselect; - } - } - return $this->db_connect_id; - } - else - { - return false; - } - } - - // - // Other base methods - // - function sql_close() - { - if($this->db_connect_id) - { - if($this->query_result) - { - @mysql_free_result($this->query_result); - } - $result = @mysql_close($this->db_connect_id); - return $result; - } - else - { - return false; - } - } - - // - // Base query method - // - function sql_query($query = "", $transaction = FALSE) - { - // Remove any pre-existing queries - unset($this->query_result); - if($query != "") - { - $this->num_queries++; - - $this->query_result = @mysql_query($query, $this->db_connect_id); - } - if($this->query_result) - { - unset($this->row[$this->query_result]); - unset($this->rowset[$this->query_result]); - return $this->query_result; - } - else - { - return ( $transaction == END_TRANSACTION ) ? true : false; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @mysql_num_rows($query_id); - return $result; - } - else - { - return false; - } - } - function sql_affectedrows() - { - if($this->db_connect_id) - { - $result = @mysql_affected_rows($this->db_connect_id); - return $result; - } - else - { - return false; - } - } - function sql_numfields($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @mysql_num_fields($query_id); - return $result; - } - else - { - return false; - } - } - function sql_fieldname($offset, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @mysql_field_name($query_id, $offset); - return $result; - } - else - { - return false; - } - } - function sql_fieldtype($offset, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @mysql_field_type($query_id, $offset); - return $result; - } - else - { - return false; - } - } - function sql_fetchrow($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $this->row[$query_id] = @mysql_fetch_array($query_id); - return $this->row[$query_id]; - } - else - { - return false; - } - } - function sql_fetchrowset($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - unset($this->rowset[$query_id]); - unset($this->row[$query_id]); - while($this->rowset[$query_id] = @mysql_fetch_array($query_id)) - { - $result[] = $this->rowset[$query_id]; - } - return $result; - } - else - { - return false; - } - } - function sql_fetchfield($field, $rownum = -1, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - if($rownum > -1) - { - $result = @mysql_result($query_id, $rownum, $field); - } - else - { - if(empty($this->row[$query_id]) && empty($this->rowset[$query_id])) - { - if($this->sql_fetchrow()) - { - $result = $this->row[$query_id][$field]; - } - } - else - { - if($this->rowset[$query_id]) - { - $result = $this->rowset[$query_id][$field]; - } - else if($this->row[$query_id]) - { - $result = $this->row[$query_id][$field]; - } - } - } - return $result; - } - else - { - return false; - } - } - function sql_rowseek($rownum, $query_id = 0){ - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @mysql_data_seek($query_id, $rownum); - return $result; - } - else - { - return false; - } - } - function sql_nextid(){ - if($this->db_connect_id) - { - $result = @mysql_insert_id($this->db_connect_id); - return $result; - } - else - { - return false; - } - } - function sql_freeresult($query_id = 0){ - if(!$query_id) - { - $query_id = $this->query_result; - } - - if ( $query_id ) - { - unset($this->row[$query_id]); - unset($this->rowset[$query_id]); - - @mysql_free_result($query_id); - - return true; - } - else - { - return false; - } - } - function sql_error($query_id = 0) - { - $result["message"] = @mysql_error($this->db_connect_id); - $result["code"] = @mysql_errno($this->db_connect_id); - - return $result; - } - -} // class sql_db - -} // if ... define - -?> \ No newline at end of file diff --git a/phpBB2_old/db/mysql4.php b/phpBB2_old/db/mysql4.php deleted file mode 100644 index 691fd9e..0000000 --- a/phpBB2_old/db/mysql4.php +++ /dev/null @@ -1,340 +0,0 @@ -persistency = $persistency; - $this->user = $sqluser; - $this->password = $sqlpassword; - $this->server = $sqlserver; - $this->dbname = $database; - - $this->db_connect_id = ($this->persistency) ? mysql_pconnect($this->server, $this->user, $this->password) : mysql_connect($this->server, $this->user, $this->password); - - if( $this->db_connect_id ) - { - if( $database != "" ) - { - $this->dbname = $database; - $dbselect = mysql_select_db($this->dbname); - - if( !$dbselect ) - { - mysql_close($this->db_connect_id); - $this->db_connect_id = $dbselect; - } - } - - return $this->db_connect_id; - } - else - { - return false; - } - } - - // - // Other base methods - // - function sql_close() - { - if( $this->db_connect_id ) - { - // - // Commit any remaining transactions - // - if( $this->in_transaction ) - { - mysql_query("COMMIT", $this->db_connect_id); - } - - return mysql_close($this->db_connect_id); - } - else - { - return false; - } - } - - // - // Base query method - // - function sql_query($query = "", $transaction = FALSE) - { - // - // Remove any pre-existing queries - // - unset($this->query_result); - - if( $query != "" ) - { - $this->num_queries++; - if( $transaction == BEGIN_TRANSACTION && !$this->in_transaction ) - { - $result = mysql_query("BEGIN", $this->db_connect_id); - if(!$result) - { - return false; - } - $this->in_transaction = TRUE; - } - - $this->query_result = mysql_query($query, $this->db_connect_id); - } - else - { - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $result = mysql_query("COMMIT", $this->db_connect_id); - } - } - - if( $this->query_result ) - { - unset($this->row[$this->query_result]); - unset($this->rowset[$this->query_result]); - - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if ( !mysql_query("COMMIT", $this->db_connect_id) ) - { - mysql_query("ROLLBACK", $this->db_connect_id); - return false; - } - } - - return $this->query_result; - } - else - { - if( $this->in_transaction ) - { - mysql_query("ROLLBACK", $this->db_connect_id); - $this->in_transaction = FALSE; - } - return false; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? mysql_num_rows($query_id) : false; - } - - function sql_affectedrows() - { - return ( $this->db_connect_id ) ? mysql_affected_rows($this->db_connect_id) : false; - } - - function sql_numfields($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? mysql_num_fields($query_id) : false; - } - - function sql_fieldname($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? mysql_field_name($query_id, $offset) : false; - } - - function sql_fieldtype($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? mysql_field_type($query_id, $offset) : false; - } - - function sql_fetchrow($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - if( $query_id ) - { - $this->row[$query_id] = mysql_fetch_array($query_id, MYSQL_ASSOC); - return $this->row[$query_id]; - } - else - { - return false; - } - } - - function sql_fetchrowset($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - if( $query_id ) - { - unset($this->rowset[$query_id]); - unset($this->row[$query_id]); - - while($this->rowset[$query_id] = mysql_fetch_array($query_id, MYSQL_ASSOC)) - { - $result[] = $this->rowset[$query_id]; - } - - return $result; - } - else - { - return false; - } - } - - function sql_fetchfield($field, $rownum = -1, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - if( $query_id ) - { - if( $rownum > -1 ) - { - $result = mysql_result($query_id, $rownum, $field); - } - else - { - if( empty($this->row[$query_id]) && empty($this->rowset[$query_id]) ) - { - if( $this->sql_fetchrow() ) - { - $result = $this->row[$query_id][$field]; - } - } - else - { - if( $this->rowset[$query_id] ) - { - $result = $this->rowset[$query_id][$field]; - } - else if( $this->row[$query_id] ) - { - $result = $this->row[$query_id][$field]; - } - } - } - - return $result; - } - else - { - return false; - } - } - - function sql_rowseek($rownum, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? mysql_data_seek($query_id, $rownum) : false; - } - - function sql_nextid() - { - return ( $this->db_connect_id ) ? mysql_insert_id($this->db_connect_id) : false; - } - - function sql_freeresult($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - if ( $query_id ) - { - unset($this->row[$query_id]); - unset($this->rowset[$query_id]); - - mysql_free_result($query_id); - - return true; - } - else - { - return false; - } - } - - function sql_error() - { - $result['message'] = mysql_error($this->db_connect_id); - $result['code'] = mysql_errno($this->db_connect_id); - - return $result; - } - -} // class sql_db - -} // if ... define - -?> diff --git a/phpBB2_old/db/oracle.php b/phpBB2_old/db/oracle.php deleted file mode 100644 index fd52b17..0000000 --- a/phpBB2_old/db/oracle.php +++ /dev/null @@ -1,472 +0,0 @@ -persistency = $persistency; - $this->user = $sqluser; - $this->password = $sqlpassword; - $this->server = $sqlserver; - $this->dbname = $database; - - if($this->persistency) - { - $this->db_connect_id = @OCIPLogon($this->user, $this->password, $this->server); - } - else - { - $this->db_connect_id = @OCINLogon($this->user, $this->password, $this->server); - } - if($this->db_connect_id) - { - return $this->db_connect_id; - } - else - { - return false; - } - } - - // - // Other base methods - // - function sql_close() - { - if($this->db_connect_id) - { - // Commit outstanding transactions - if($this->in_transaction) - { - OCICommit($this->db_connect_id); - } - - if($this->query_result) - { - @OCIFreeStatement($this->query_result); - } - $result = @OCILogoff($this->db_connect_id); - return $result; - } - else - { - return false; - } - } - - // - // Base query method - // - function sql_query($query = "", $transaction = FALSE) - { - // Remove any pre-existing queries - unset($this->query_result); - - // Put us in transaction mode because with Oracle as soon as you make a query you're in a transaction - $this->in_transaction = TRUE; - - if($query != "") - { - $this->last_query = $query; - $this->num_queries++; - - if(eregi("LIMIT", $query)) - { - preg_match("/^(.*)LIMIT ([0-9]+)[, ]*([0-9]+)*/s", $query, $limits); - - $query = $limits[1]; - if($limits[3]) - { - $row_offset = $limits[2]; - $num_rows = $limits[3]; - } - else - { - $row_offset = 0; - $num_rows = $limits[2]; - } - } - - if(eregi("^(INSERT|UPDATE) ", $query)) - { - $query = preg_replace("/\\\'/s", "''", $query); - } - - $this->query_result = @OCIParse($this->db_connect_id, $query); - $success = @OCIExecute($this->query_result, OCI_DEFAULT); - } - if($success) - { - if($transaction == END_TRANSACTION) - { - OCICommit($this->db_connect_id); - $this->in_transaction = FALSE; - } - - unset($this->row[$this->query_result]); - unset($this->rowset[$this->query_result]); - $this->last_query_text[$this->query_result] = $query; - - return $this->query_result; - } - else - { - if($this->in_transaction) - { - OCIRollback($this->db_connect_id); - } - return false; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @OCIFetchStatement($query_id, $this->rowset); - // OCIFetchStatment kills our query result so we have to execute the statment again - // if we ever want to use the query_id again. - @OCIExecute($query_id, OCI_DEFAULT); - return $result; - } - else - { - return false; - } - } - function sql_affectedrows($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @OCIRowCount($query_id); - return $result; - } - else - { - return false; - } - } - function sql_numfields($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @OCINumCols($query_id); - return $result; - } - else - { - return false; - } - } - function sql_fieldname($offset, $query_id = 0) - { - // OCIColumnName uses a 1 based array so we have to up the offset by 1 in here to maintain - // full abstraction compatibitly - $offset += 1; - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = strtolower(@OCIColumnName($query_id, $offset)); - return $result; - } - else - { - return false; - } - } - function sql_fieldtype($offset, $query_id = 0) - { - // This situation is the same as fieldname - $offset += 1; - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @OCIColumnType($query_id, $offset); - return $result; - } - else - { - return false; - } - } - function sql_fetchrow($query_id = 0, $debug = FALSE) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result_row = ""; - $result = @OCIFetchInto($query_id, $result_row, OCI_ASSOC+OCI_RETURN_NULLS); - if($debug) - { - echo "Query was: ".$this->last_query . "
    "; - echo "Result: $result
    "; - echo "Query ID: $query_id
    "; - echo "
    ";
    -				var_dump($result_row);
    -				echo "
    "; - } - if($result_row == "") - { - return false; - } - - for($i = 0; $i < count($result_row); $i++) - { - list($key, $val) = each($result_row); - $return_arr[strtolower($key)] = $val; - } - $this->row[$query_id] = $return_arr; - - return $this->row[$query_id]; - } - else - { - return false; - } - } - // This function probably isn't as efficant is it could be but any other way I do it - // I end up losing 1 row... - function sql_fetchrowset($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $rows = @OCIFetchStatement($query_id, $results); - @OCIExecute($query_id, OCI_DEFAULT); - for($i = 0; $i < $rows; $i++) - { - @OCIFetchInto($query_id, $tmp_result, OCI_ASSOC+OCI_RETURN_NULLS); - - for($j = 0; $j < count($tmp_result); $j++) - { - list($key, $val) = each($tmp_result); - $return_arr[strtolower($key)] = $val; - } - $result[] = $return_arr; - } - return $result; - } - else - { - return false; - } - } - function sql_fetchfield($field, $rownum = -1, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - if($rownum > -1) - { - // Reset the internal rownum pointer. - @OCIExecute($query_id, OCI_DEFAULT); - for($i = 0; $i < $rownum; $i++) - { - // Move the interal pointer to the row we want - @OCIFetch($query_id); - } - // Get the field data. - $result = @OCIResult($query_id, strtoupper($field)); - } - else - { - // The internal pointer should be where we want it - // so we just grab the field out of the current row. - $result = @OCIResult($query_id, strtoupper($field)); - } - return $result; - } - else - { - return false; - } - } - function sql_rowseek($rownum, $query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - @OCIExecute($query_id, OCI_DEFAULT); - for($i = 0; $i < $rownum; $i++) - { - @OCIFetch($query_id); - } - $result = @OCIFetch($query_id); - return $result; - } - else - { - return false; - } - } - function sql_nextid($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id && $this->last_query_text[$query_id] != "") - { - if( eregi("^(INSERT{1}|^INSERT INTO{1})[[:space:]][\"]?([a-zA-Z0-9\_\-]+)[\"]?", $this->last_query_text[$query_id], $tablename)) - { - $query = "SELECT ".$tablename[2]."_id_seq.currval FROM DUAL"; - $stmt = @OCIParse($this->db_connect_id, $query); - @OCIExecute($stmt,OCI_DEFAULT ); - $temp_result = @OCIFetchInto($stmt, $temp_result, OCI_ASSOC+OCI_RETURN_NULLS); - if($temp_result) - { - return $temp_result['CURRVAL']; - } - else - { - return false; - } - } - else - { - return false; - } - } - else - { - return false; - } - } - - function sql_nextid($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id && $this->last_query_text[$query_id] != "") - { - if( eregi("^(INSERT{1}|^INSERT INTO{1})[[:space:]][\"]?([a-zA-Z0-9\_\-]+)[\"]?", $this->last_query_text[$query_id], $tablename)) - { - $query = "SELECT ".$tablename[2]."_id_seq.CURRVAL FROM DUAL"; - $temp_q_id = @OCIParse($this->db_connect_id, $query); - @OCIExecute($temp_q_id, OCI_DEFAULT); - @OCIFetchInto($temp_q_id, $temp_result, OCI_ASSOC+OCI_RETURN_NULLS); - - if($temp_result) - { - return $temp_result['CURRVAL']; - } - else - { - return false; - } - } - else - { - return false; - } - } - else - { - return false; - } - } - - - - function sql_freeresult($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - if($query_id) - { - $result = @OCIFreeStatement($query_id); - return $result; - } - else - { - return false; - } - } - function sql_error($query_id = 0) - { - if(!$query_id) - { - $query_id = $this->query_result; - } - $result = @OCIError($query_id); - return $result; - } - -} // class sql_db - -} // if ... define - -?> \ No newline at end of file diff --git a/phpBB2_old/db/postgres7.php b/phpBB2_old/db/postgres7.php deleted file mode 100644 index ba1b6af..0000000 --- a/phpBB2_old/db/postgres7.php +++ /dev/null @@ -1,397 +0,0 @@ -connect_string = ""; - - if( $sqluser ) - { - $this->connect_string .= "user=$sqluser "; - } - - if( $sqlpassword ) - { - $this->connect_string .= "password=$sqlpassword "; - } - - if( $sqlserver ) - { - if( ereg(":", $sqlserver) ) - { - list($sqlserver, $sqlport) = split(":", $sqlserver); - $this->connect_string .= "host=$sqlserver port=$sqlport "; - } - else - { - if( $sqlserver != "localhost" ) - { - $this->connect_string .= "host=$sqlserver "; - } - } - } - - if( $database ) - { - $this->dbname = $database; - $this->connect_string .= "dbname=$database"; - } - - $this->persistency = $persistency; - - $this->db_connect_id = ( $this->persistency ) ? pg_pconnect($this->connect_string) : pg_connect($this->connect_string); - - return ( $this->db_connect_id ) ? $this->db_connect_id : false; - } - - // - // Other base methods - // - function sql_close() - { - if( $this->db_connect_id ) - { - // - // Commit any remaining transactions - // - if( $this->in_transaction ) - { - @pg_exec($this->db_connect_id, "COMMIT"); - } - - if( $this->query_result ) - { - @pg_freeresult($this->query_result); - } - - return @pg_close($this->db_connect_id); - } - else - { - return false; - } - } - - // - // Query method - // - function sql_query($query = "", $transaction = false) - { - // - // Remove any pre-existing queries - // - unset($this->query_result); - if( $query != "" ) - { - $this->num_queries++; - - $query = preg_replace("/LIMIT ([0-9]+),([ 0-9]+)/", "LIMIT \\2 OFFSET \\1", $query); - - if( $transaction == BEGIN_TRANSACTION && !$this->in_transaction ) - { - $this->in_transaction = TRUE; - - if( !@pg_exec($this->db_connect_id, "BEGIN") ) - { - return false; - } - } - - $this->query_result = @pg_exec($this->db_connect_id, $query); - if( $this->query_result ) - { - if( $transaction == END_TRANSACTION ) - { - $this->in_transaction = FALSE; - - if( !@pg_exec($this->db_connect_id, "COMMIT") ) - { - @pg_exec($this->db_connect_id, "ROLLBACK"); - return false; - } - } - - $this->last_query_text[$this->query_result] = $query; - $this->rownum[$this->query_result] = 0; - - unset($this->row[$this->query_result]); - unset($this->rowset[$this->query_result]); - - return $this->query_result; - } - else - { - if( $this->in_transaction ) - { - @pg_exec($this->db_connect_id, "ROLLBACK"); - } - $this->in_transaction = FALSE; - - return false; - } - } - else - { - if( $transaction == END_TRANSACTION && $this->in_transaction ) - { - $this->in_transaction = FALSE; - - if( !@pg_exec($this->db_connect_id, "COMMIT") ) - { - @pg_exec($this->db_connect_id, "ROLLBACK"); - return false; - } - } - - return true; - } - } - - // - // Other query methods - // - function sql_numrows($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? @pg_numrows($query_id) : false; - } - - function sql_numfields($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? @pg_numfields($query_id) : false; - } - - function sql_fieldname($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? @pg_fieldname($query_id, $offset) : false; - } - - function sql_fieldtype($offset, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? @pg_fieldtype($query_id, $offset) : false; - } - - function sql_fetchrow($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - if($query_id) - { - $this->row = @pg_fetch_array($query_id, $this->rownum[$query_id]); - - if( $this->row ) - { - $this->rownum[$query_id]++; - return $this->row; - } - } - - return false; - } - - function sql_fetchrowset($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - if( $query_id ) - { - unset($this->rowset[$query_id]); - unset($this->row[$query_id]); - $this->rownum[$query_id] = 0; - - while( $this->rowset = @pg_fetch_array($query_id, $this->rownum[$query_id], PGSQL_ASSOC) ) - { - $result[] = $this->rowset; - $this->rownum[$query_id]++; - } - - return $result; - } - - return false; - } - - function sql_fetchfield($field, $row_offset=-1, $query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - if( $query_id ) - { - if( $row_offset != -1 ) - { - $this->row = @pg_fetch_array($query_id, $row_offset, PGSQL_ASSOC); - } - else - { - if( $this->rownum[$query_id] ) - { - $this->row = @pg_fetch_array($query_id, $this->rownum[$query_id]-1, PGSQL_ASSOC); - } - else - { - $this->row = @pg_fetch_array($query_id, $this->rownum[$query_id], PGSQL_ASSOC); - - if( $this->row ) - { - $this->rownum[$query_id]++; - } - } - } - - return $this->row[$field]; - } - - return false; - } - - function sql_rowseek($offset, $query_id = 0) - { - - if(!$query_id) - { - $query_id = $this->query_result; - } - - if( $query_id ) - { - if( $offset > -1 ) - { - $this->rownum[$query_id] = $offset; - return true; - } - else - { - return false; - } - } - - return false; - } - - function sql_nextid() - { - $query_id = $this->query_result; - - if($query_id && $this->last_query_text[$query_id] != "") - { - if( preg_match("/^INSERT[\t\n ]+INTO[\t\n ]+([a-z0-9\_\-]+)/is", $this->last_query_text[$query_id], $tablename) ) - { - $query = "SELECT currval('" . $tablename[1] . "_id_seq') AS last_value"; - $temp_q_id = @pg_exec($this->db_connect_id, $query); - if( !$temp_q_id ) - { - return false; - } - - $temp_result = @pg_fetch_array($temp_q_id, 0, PGSQL_ASSOC); - - return ( $temp_result ) ? $temp_result['last_value'] : false; - } - } - - return false; - } - - function sql_affectedrows($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? @pg_cmdtuples($query_id) : false; - } - - function sql_freeresult($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - return ( $query_id ) ? @pg_freeresult($query_id) : false; - } - - function sql_error($query_id = 0) - { - if( !$query_id ) - { - $query_id = $this->query_result; - } - - $result['message'] = @pg_errormessage($this->db_connect_id); - $result['code'] = -1; - - return $result; - } - -} // class ... db_sql - -} // if ... defined - -?> \ No newline at end of file diff --git a/phpBB2_old/docs/AUTHORS b/phpBB2_old/docs/AUTHORS deleted file mode 100644 index a2d973c..0000000 --- a/phpBB2_old/docs/AUTHORS +++ /dev/null @@ -1 +0,0 @@ -Please see: http://www.phpbb.com/about.php for a list of all the people involved in phpBB. diff --git a/phpBB2_old/docs/CHANGELOG.html b/phpBB2_old/docs/CHANGELOG.html deleted file mode 100644 index 5f256f0..0000000 --- a/phpBB2_old/docs/CHANGELOG.html +++ /dev/null @@ -1,602 +0,0 @@ - - - - - -phpBB 2.0.11 :: Changelog - - - - - - - - - -
    - - - -
    - - - - - - -
    phpBB 2 : Creating CommunitiesphpBB 2.0.11 CHANGELOG
    - - -
      -
    1. Changelog
    2. -
        -
      1. Changes since 2.0.10
      2. -
      3. Changes since 2.0.9
      4. -
      5. Changes since 2.0.8
      6. -
      7. Changes since 2.0.7
      8. -
      9. Changes since 2.0.6
      10. -
      11. Changes since 2.0.5
      12. -
      13. Changes since 2.0.4
      14. -
      15. Changes since 2.0.3
      16. -
      17. Changes since 2.0.2
      18. -
      19. Changes since 2.0.1
      20. -
      21. Changes since 2.0.0
      22. -
      23. Changes since RC-4
      24. -
      25. Changes since RC-3
      26. -
      27. Changes since RC-2
      28. -
      29. Changes since RC-1
      30. -
      31. Changes since RC-1 (pre)
      32. -
      -
    3. Disclaimer
    4. -
    - -

    1. Changelog

    - -

    This is a non-exhaustive (but still near complete) changelog for phpBB 2.0.x including beta and release candidate versions. Our thanks to all those people who've contributed bug reports and code fixes.

    - -

    l.i. Changes since 2.0.10

    - -
      -
    • Fixed vulnerability in highlighting code (very high severity, please update your installation as soon as possible)
    • -
    • Fixed unsetting global vars - Matt Kavanagh
    • -
    • Fixed XSS vulnerability in username handling - AnthraX101
    • -
    • Fixed not confirmed sql injection in username handling - warmth
    • -
    • Added check for empty topic id in topic_review function
    • -
    • Added visual confirmation mod to code base
    • -
    - -

    l.ii. Changes since 2.0.9

    - -
      -
    • Fixed deleting of styles in admin_styles.php
    • -
    • Fixed wrong unsetting of variables introduced in phpBB 2.0.9, making the board non-functional for users with specific php.ini settings
    • -
    • Added code to let phpBB work with PHP5 for those having register_long_arrays set to off (default settings) - running phpBB 2.0.x with PHP5 is not supported at http://www.phpbb.com.
    • -
    • Fixed bug in admin_board.php for board settings having single quotes in it
    • -
    • Fixed "search by author" in search.php. Now it is possible to search for users with special chars in their name too
    • -
    • Fixed forum jumpbox propagating session id in moderator control pages
    • -
    • Added check for newlines at redirecting pages, to prevent http response splitting attacks - Ory Segal and Amit Klein
    • -
    • Fixed visual confirmation code. The image was not created due to a wrong regular expression.
    • -
    - -

    l.iii. Changes since 2.0.8

    - -
      -
    • Fixed one vulnerability in admin_board.php - Xore
    • -
    • Added checking for proper session id characters to sessions and viewtopic to prevent injections - Bartlomiej Korupczynski
    • -
    • Fixed injection vulnerabilities possible with linked avatars
    • -
    • Implemented unsetting globalised variables
    • -
    • Limited confirm switch to POST variable in posting
    • -
    • Changed IP code in common.php to prevent IP spoofing, which might introduce some problems with private IP Ranges showing up. - Wang Products
    • -
    • Updated visual confirmation mod [pre-edited files]
    • -
    • Moved obtaining word censors in modcp out of topic generation loop [increased performance/lower query count] - spotted by R45
    • -
    • Added the ability to link to https/ftps sites using the img bbcode tag
    • -
    • Fixed user online information in admin/index.php
    • -
    • Fixed getting group moderator in groupcp.php if running oracle backend - spotted by pakman
    • -
    • Fixed use of non-existing result variable in modcp (poster_id instead of user_id)
    • -
    • Fixed several vulnerabilities (XSS, SQL Injection and path disclosure) only possible with register_globals enabled - Matthew C. Kavanagh, Janek Vind
    • -
    • Fixed problem with SID not delivered to next page in groupcp.php
    • -
    - -

    l.iv. Changes since 2.0.7

    - -
      -
    • Fixed several vulnerabilities in admin pages
    • -
    • Fixed sid checking code in admin/pagestart.php
    • -
    • Fixed injection vulnerabilities possible with the img bbcode tag
    • -
    • Limited allowed images in img bbcode tag to jpg, jpeg, gif and png
    • -
    • Fixed redirect problems - 2.0.7a
    • -
    • Fixed sql injection vulnerability in search - 2.0.7a
    • -
    • Fixed sql injection vulnerability in privmsg - 2.0.8a
    • -
    - -

    1.v. Changes since 2.0.6

    - -
      -
    • Fixed several vulnerabilities in modcp - Robert Lavierck
    • -
    • Changed whois lookup address within admin index
    • -
    • Fixed potential vulnerability in viewtopic postorder - 2.0.6d
    • -
    • Updates to cope with Zend Optimizer 2.5 problems - 2.0.6d - jetset
    • -
    • Force specialcharing of redirect variable in login - Pit
    • -
    • Fixed potential vulnerability in viewtopic postdays - GulfTech Security Research
    • -
    • Fixed potential vulnerability in viewforum topicdays - GulfTech Security Research
    • -
    • Fixed potential vulnerability in modcp
    • -
    • Fixed potential vulnerability in avatar gallery
    • -
    - -

    1.vi. Changes since 2.0.5

    - -
      -
    • Fixed various email issues
    • -
    • Fixed registration email bug with Administrator Confirmation used
    • -
    • Fixed mass emailer
    • -
    • Fixed long post time issue
    • -
    • Fixed bug with usernames containing single quotes
    • -
    • Fixed word list bug - Word boundaries were not considered
    • -
    • Fixed vulnerability in style admin
    • -
    • Fixed sql injection vulnerability in viewtopic
    • -
    • Fixed vulnerability allowing server side variable access in search - tendor
    • -
    • Fixed potential vulnerability in 2.0.5 login username entry - throw away/eomer
    • -
    • Fixed sql injection with reset date format field in profile - tendor
    • -
    - -

    1.vii. Changes since 2.0.4

    - -
      -
    • Removed user facing session_id checks
    • -
    • Fixed user self-activation after deactivation
    • -
    • Fixed incorrect functioning of phpbb_realpath
    • -
    • Fixed wrong path to database schema files within the upgrade script
    • -
    • Fixed double quote problem with username validation
    • -
    • Allow & within email addresses
    • -
    • Fixed email validation for banned email addresses
    • -
    • Removed underline from email domain validation
    • -
    • Fixed redirection for sentbox folder, installation and email
    • -
    • Fixed poll deletion
    • -
    • Fixed Mozilla navigation bar
    • -
    • Fixed URL bbcode parsing
    • -
    • Fixed database timeouts while searching the forums
    • -
    • Fixed wrong email return path in admin mass mailing - netclectic
    • -
    • Fixed MS-SQL failures within the update script
    • -
    • Fixed memberlist sort order
    • -
    • Fixed not showing leading spaces within Code BBCode
    • -
    • Fixed problem with adding double quotes to subject titles
    • -
    • Remove username input field from profile when user cannot change name
    • -
    • Fixed pagination error with highlighting
    • -
    • Fixed errors if no smilies are installed
    • -
    • Fixed CSS issues with IE 5.2 on MacOS X
    • -
    • Fixed missing sid propagation problem within the Moderator Control Panel
    • -
    • Fixed language variables within Authentication error output
    • -
    • Removed doubled CSS class definitions within input fields
    • -
    • Fixed username change within the Administration Panel
    • -
    • Added missing <tr> tags to index_body.tpl
    • -
    • Added missing username language variable to admin index page
    • -
    • Fixed moderator status update if a usergroup got deleted
    • -
    • Fixed poll handling upon post edit
    • -
    • Fixed remove common words from search table if post get pruned - Nuttzy99
    • -
    • Fixed behaviour on splitting topics if no checkbox is selected
    • -
    • Anonymous is no longer displayed within Username dropdown boxes
    • -
    • Fixed viewprofile redirection if an invalid mode was specified
    • -
    • Fixed fraction settings within determining common words - Novan
    • -
    • Prevent admin change usernames to his own within the ACP
    • -
    • Activation email is sent to all admins
    • -
    • Fixed conversion of & to &amp; in appropriate cases
    • -
    • Fixed display of "greater than topics per page" announcements preventing display of normal posts
    • -
    • Added variable checks to database backup and restore screen
    • -
    • Prevented pm popup window from resetting after visiting avatar gallery
    • -
    • Fixed special character handling with word censor
    • -
    • Added SID to jumpbox
    • -
    • Fixed problems with usernames using html special chars
    • -
    • Added GMT + 13 to English lang_main, all translators are encouraged to do likewise
    • -
    • Deleted doubled 'U_MEMBERLIST' assignment from page_header.php
    • -
    • Fixed wrong display of Signature Checkbox while editing Private Message
    • -
    • Fixed disappearing post text if emoticon was inserted directly after pressing a BBCode button
    • -
    • Display correct alt-tag for smilies within postings
    • -
    • Prevented the ability to apply BBCode to website contents
    • -
    • Fixed maxlength issue with password field in login_body.tpl
    • -
    • Fixed possible username duplication issue with validation and username length
    • -
    • Fixed split words function to handle additional foreign characters
    • -
    • Changed empty email To Field to use a non-disclosure delimiter
    • -
    • Fixed wrong language var in install.php - FTP Config screen
    • -
    • Fixed alt tag for locked topic images in viewforum_body.tpl
    • -
    • Fixed typo in groupcp.php - $lang['Unsub_success'] instead of $lang['Usub_success']
    • -
    • Fixed timezone display
    • -
    • Fixed wrong display of author quote tag within profile - Cl1mh4224rd
    • -
    • Added deletion of sessions of users whose account is deactivated
    • -
    • Added mail header X-MimeOLE to the emailer class
    • -
    • Prevent registration if user is logged in or user trying to register again
    • -
    • Prevent usage of char(255) in usernames
    • -
    • Added check for additional FORWARDED_FOR IP's - cosmos
    • -
    • Fixed handling of non-selection of option when voting
    • -
    • Fixed potential xss issue with memberslist mode
    • -
    • Default English support for visual confirmation - translators are encouraged to support this
    • -
    - -

    1.viii. Changes since 2.0.3

    - -
      -
    • Fixed cross-browser scripting issue with highlight param
    • -
    • Back-ported highlighting code from phpBB 2.2
    • -
    • Add session id validation to posting, profile, email, voting - Edwin van Vliet
    • -
    • Added {S_HIDDEN_FIELDS} template var to profile_send_email.tpl
    • -
    • Added "intval" fix for flood check, may resolve some issues
    • -
    • Added missing index to post_id for search_wordmatch
    • -
    • Fixed spelling error in search add words preventing use of stopword list
    • -
    • Fixed issue with search common words not being run
    • -
    • Introduce viewtopic resync patch by Ashe
    • -
    • Replace a for n in templating code
    • -
    • Fixed ordering in memberslist
    • -
    • Fixed group_id sequence issues with pgsql and msaccess
    • -
    • Fixed assumption of word censors in user notification
    • -
    • Fixed incorrect display of quotes in user management fields
    • -
    • Fixed entry of special chars in all profile fields - note this may cause temporary issues
    • -
    • Fixed incorrect display of quotes when using avatar gallery
    • -
    • Fixed missing username in email sent to users when admin activated
    • -
    • Added check for non-empty smiley code and url in smiley admin
    • -
    • Prevent display of -- sig seperator in emails when no board sig exists
    • -
    • Fixed URL propagated sid issues with jumpbox
    • -
    • Fixed wrong mode name check (polldelete) in functions_post
    • -
    • Added missing root path to l10n image path check
    • -
    • Remove validation of fields when deleting a user
    • -
    • Fixed sort mode select box in memberslist to default to current mode
    • -
    • Deny inline topic review listing to users without auth_read permissions
    • -
    • Prevent display of topic notification checkbox if user cannot read forum
    • -
    • Remove incorrect pre-pending of IP to uploaded avatars
    • -
    • Fixed deletion of uploaded avatars when changing to remote/gallery
    • -
    • Added check for non-blank line during install schema/basic sql ops
    • -
    • Added sort ordering to Top Ten poster listing by request
    • -
    • Fixed incorrect error report when altering case of username
    • -
    • Added jumpbox output to modcp {JUMPBOX} will now work
    • -
    • Fixed non-updating of users with MOD levels when deleting a forum
    • -
    • Remove email to group moderator when approving new members
    • -
    • Fixed non-handling of HTML in poll options
    • -
    • Fixed non-deletion of polls when deleting forum and its posts
    • -
    • Fixed moved shadow topic from being bumped upon reply
    • -
    • Changed field size of timezone to decimal(5,2) where applicable
    • -
    • Fixed missing sid append to URL when redirecting to newest reply
    • -
    • Fixed missing slashes in private IP preg check
    • -
    • Fixed session not setting userdata['user_id'] to ANON as appropriate
    • -
    • Added check for non-empty name in disallow admin
    • -
    • Fixed validation of SSL website addresses in profile
    • -
    • Fixed inability of admins to upload avatars via user admin panel
    • -
    • Fixed non-deletion of private message text upon full box overwrite
    • -
    • Fixed incorrect error message in smiley admin
    • -
    • Fixed incorrect alt-text for "Stop Watching Topic" image
    • -
    • Temporary fix for missing lang strings in forum admin - translators should update their packages if not done already
    • -
    • Use selected localisation during later stages of installation
    • -
    • Fixed non-check of permissions when deleting a topic via Moderator Control Panel
    • -
    • Fixed non-update of banlist upon user deletion
    • -
    • Check approved users boxes by default in usergroup approve form
    • -
    • Fixed non-appending of sid to backup meta refresh
    • -
    • Fixed non-notification of no support for certain databases in backup/restore
    • -
    • Added $images var to message die global declaration
    • -
    • Fixed wrong string, Private_message in Private Messaging
    • -
    • Add mail send result to error output
    • -
    • Fixed non-appending of sid to Mozilla nav bar menu items
    • -
    • Fixed incorrect profile linking from MSNM url in private messaging
    • -
    • Grammatical errors in English lang_main fixed - Cluster
    • -
    • Allow deletion of avatar and simultaneous upload/linking/gallery selection
    • -
    • Fixed non-updating of user rank when changing from special to normal rank in rank admin
    • -
    • Changed user topic notification default in schemas to 0 (off)
    • -
    • Fixed non-XHTML compliant img tags in privmsg.php
    • -
    • Fixed non-deletion of announcements and polls when removing forum contents in forum admin
    • -
    • Fixed non-pruning of watched topics table when pruning related topics
    • -
    • Enable GET redirect on logout
    • -
    • Added check for IE6.x to viewtopic ICQ indicator javascript
    • -
    • Fixed empty username quoting with MS-SQL
    • -
    • Fixed BBCode url, magic url and img tags to allow most chars beyond domain names
    • -
    • Prevent parsing of -ve size values in BBCode size tag
    • -
    • Back ported HTML handler from 2.2, this may impact some boards which allow complex HTML - existing parser remains but commented out
    • -
    • Fixed parsing of word censors to not censor words within < and > tag delimiters
    • -
    • Fixed database utilities failing to backup data with MySQL
    • -
    • Fixed signature parsing in User Admin
    • -
    • Fixed missing class="post" tags in subSilver Admin templates
    • -
    • Fixes for paths under Apache2
    • -
    • Added wrap text with tag support for posting in Mozilla 1.1+
    • -
    • Fixed use of missing CSS classes in modcp_split, group_info_body, error_body and agreement
    • -
    • Fixed ability of users to edit polls even after they have received votes
    • -
    • Fixed header Location to be absolute URL as per HTTP 1.1 spec - noted by PhilippK
    • -
    • Added additional session_id checks to MCP, topic subscription, PM and similar items
    • -
    • Fixed colour select box in posting_body to reset to Default colour after selection
    • -
    • Altered PM icon to show new image until messages have been read
    • -
    • Fixed incomplete deletion of PMs when removing the associated user
    • -
    • Fixed unread and new PM user counters to decrement appropriately in all situations
    • -
    • Fixed possible cross-site scripting issue with username search
    • -
    • Fixed some problems with gzip in combination with newer PHP versions and Mozilla
    • -
    • Fixed wrong maxlength in modcp_split.tpl subject field
    • -
    • Fixed inability to edit username of guest poster - vHiker
    • -
    • Fixed ability for guests to post with certain registered usernames
    • -
    • Fixed various HTML issues to improve XHTML compliance - Daz
    • -
    • Fixed missing template var {L_PM} for memberslist - Daz
    • -
    • Fixed wrong key name for $images['Topic_un_watch'] - Daz
    • -
    • Fixed missing template var {S_WATCH_TOPIC_IMG} for viewtopic - Daz
    • -
    • Fixed missing default constraints for post table under MSSQL
    • -
    • Fixed incorrect field size for forum pruning - preventing days > 256
    • -
    • Fixed continuing redirect issues for broken web servers, e.g. IIS+CGI PHP
    • -
    • Fixed inability to use ftp as a protocol for the [img] tag
    • -
    • Fixed incorrect handling of [img] tags containing %20 encoded spaces
    • -
    • Added check for . within cookie_name, change to _ if present
    • -
    • Added SHOW_ONLINE constant to limit "users online" code operation to index and viewforum
    • -
    • Added "temporary" workaround for Apache2 + PHP module ignoring "private" cache header
    • -
    • Added workaround for modcp IP lookup and links to Anonymous user profile
    • -
    • Fixed broken bbcode parsing of quotes containing bbcode in the "username"
    • -
    • Fixed excess slashes in [quote=""] first pass encoding
    • -
    • Fixed rendering issue with quote button under Mozilla - Daz
    • -
    • Grammatical errors in remaining core lang files fixed - Cluster
    • -
    • Fixed bbcode quote breaking when username contained ] before [
    • -
    • Fixed duplicate group_id error during upgrade of users from phpBB 1.x
    • -
    • Fixed stripslashes() problem with the conversion of the config table from phpBB 1.x
    • -
    • Rejiggled validation code, may eliminate "Username disallowed" issues
    • -
    • Fixed differing initial "public" setting of forum permissions between different files
    • -
    • Added check for invalid (non-compliant) email addresses to upgrade script
    • -
    • Further redirect workarounds for broken servers, please direct further issues to the vendors
    • -
    • Added GMT + 13 to English lang_main, all translators are encouraged to do likewise
    • -
    • Added switch to default_lang email template if user lang template no longer exists
    • -
    • Fixed javascript error when selecting smiley containing a single quote
    • -
    • Update users watched topic if a post they made is split into a new topic
    • -
    • Fixed situations where email templates contain incorrect or missing subject lines
    • -
    • Fixed error when searching for posts and no forums exist
    • -
    • Fixed potential SQL vulnerability with marking of private messages - Ulf Harnhammar
    • -
    - -

    1.ix. Changes since 2.0.2

    - -
      -
    • Fixed potential cross-site scripting vulnerability with avatars - Showscout
    • -
    • Fixed potential SQL rewrite issue in page header - missing contrib
    • -
    • Fixed potential CSS/HTML rewrite on viewing in login - Marc Rees
    • -
    • Fixed (hopefully) issue with MS Access and multiple pages
    • -
    - -

    1.x. Changes since 2.0.1

    - -
      -
    • Fixed missing "username" lang variable in user admin template
    • -
    • Session work around for users behind rotating IPs - vHiker
    • -
    • Fixed potential session user_id re-write - Ashe
    • -
    • Fixed potential cross-browser scripting issue with BBCode URLs
    • -
    • Fixed potential gallery avatar exploit - Ashe
    • -
    • Fix sorting of smileys on each function call - Ashe/psoTFX
    • -
    • Clear topic_mod text output in viewtopic - Lars
    • -
    • Fix regex for avatar remote urls
    • -
    • Fix non-updating of user post counts when deleting whole topics
    • -
    • Increase time limit when sending topic reply notifications
    • -
    • Set default forum when splitting topics
    • -
    • Fix non-deletion of uploaded avatars when switching to gallery
    • -
    • Removed various closing newlines from included files
    • -
    • Add MAX_ROWS to HEAP table alter in install/upgrade - Ashe
    • -
    • Update username maxlength for subSilver templates
    • -
    • Allow ( and ) in BBCode [url] tags
    • -
    • Fix non-quoting of # in username validation regexs
    • -
    • Fix overlooked global var in private messaging
    • -
    • Possible fix for \r\n email templates issues
    • -
    • Fix missing str_replace for category title forum admin SQL
    • -
    • Fix trailing , when sending emails via smtp
    • -
    • Fix avatar issues in user admin
    • -
    • Fix improper checking of email address ban in sessions
    • -
    • Fix use of hard coded language strings in forum admin
    • -
    • Fix missing closing ) in smilies admin
    • -
    • Fix missing Username label in user admin
    • -
    • Fix upgrade.php bug where conversion would not complete (and updated other scripts to match the changes)
    • -
    • Fix problem with redirect and login.php
    • -
    • Fix typo that could cause problems with sorting in the memberlist
    • -
    • Fix emailer to allow sending emails with language-specific character sets
    • -
    - -

    1.xi. Changes since 2.0.0

    - -
      -
    • Fixed delete image bug for normal users
    • -
    • Fixed group control panel image links
    • -
    • Fixed missing L_POST variable in group control panel
    • -
    • Fixed missing user id when redirecting to email form after login
    • -
    • Fixed (a)ppend_sid function name error in group control panel
    • -
    • Fixed reset of post type when previewing a post
    • -
    • Fixed mass emailer include path error
    • -
    • Fixed potential SQL exploit
    • -
    • Fixed several minor subSilver issues
    • -
    • Fixed [quote] breaking HTML problem
    • -
    • Fixed problem with unclosed nested quotes
    • -
    • Fixed bad handling of automagic links at end of quotes
    • -
    • Fixed potential BBCode and avatar remote exploit
    • -
    • Altered email validation check to allow + in username as per RFC
    • -
    • Fixed incorrect behaviour with wildcards in disallowed usernames
    • -
    • Added missing append_sid for search view results as posts
    • -
    • Fixed incorrect clearing of current sessions for logged in users
    • -
    • Fixed user_timezone (cannot update user profile) problem
    • -
    • Added correct setting of moderator status for users during upgrade
    • -
    • Fixed handling of uploaded avatars if gallery avatar currently used
    • -
    • Fixed use of existing username for uploaded avatars
    • -
    • Fixed updating of topic reply stats when post is deleted
    • -
    • Fixed irrelevant error message when activating already active account
    • -
    • Fixed gzip compression problems with Netscape and some PHP versions
    • -
    • Fixed MS Access layer errors when using latest PHP versions
    • -
    • Fixed styles admin editing problems with MSSQL Server
    • -
    • Fixed logout issue when cancelling certain actions
    • -
    • Fixed missing text in certain admin links
    • -
    • Fixed opening of frame within frame when logging into admin
    • -
    • Fixed incorrect ordering of search results by time
    • -
    • Fixed fulltext searching failure with MS Access
    • -
    • Hopefully fixed fulltext search with non-latin single byte charsets
    • -
    • Enabled work-around support for some multi-byte charsets - OOHOO
    • -
    • Re-enabled search indexing of all-numeric character sequences
    • -
    • Updated email banning to properly implement wildcards
    • -
    • Fixed missing extension in links from groupcp
    • -
    • Fixed lack of re-validation when changing email address
    • -
    • Added additional IP check when using HTTP_X_FORWARDED_FOR
    • -
    • Fixed non-display of delete icon when on second or greater topic page
    • -
    • Fixed problems with users/groups assigned multiple permissions
    • -
    • Fixed problem with - and + in search words - Matthijs
    • -
    • Fixed improper handling for deletion of words from search table
    • -
    • Fixed support for , in automagic URLs as per RFC
    • -
    • Fixed circular reference SQL errors when deleting posts under MS Access
    • -
    • Fixed nested [code] problems
    • -
    • Added charset encoding headers for emails - romutis
    • -
    • Fixed "Copy to self" emails to use correct language
    • -
    • Fixed pagination error when limiting previous days for viewforum
    • -
    • Decreased minimum search word size to 3 chars
    • -
    • Fixed deletion of one or more options from all polls when editing just one
    • -
    • Fixed checking of group memberships when promoting/demoting group moderators
    • -
    • Added database closure to admin frameset page
    • -
    - -

    1.xii. Changes since RC-4

    - -
      -
    • Fixed improper report of general error when posting messages containing errors
    • -
    • Fixed post text being doubled up if it contained one or more < without closing >
    • -
    • Fixed pruning errors due to search function name change
    • -
    • Hopefully fixed various issues which led to incorrect reply and excess page counts
    • -
    • Fixed groupcp not displaying all email buttons to group moderator or admin
    • -
    • Fixed failure to display error notice when uploading oversized avatars
    • -
    • Hopefully corrected problem with viewonline displaying too few/many users online
    • -
    • Partially addressed issue with activation URLs >76 chars
    • -
    • Fixed additional search facilities failing to work or working incorrectly
    • -
    • Fixed search syntax highlighting
    • -
    • Addressed various webservers handling of page redirects
    • -
    • Fixed word censor not replacing first or last words
    • -
    • Fixed avatar height and width check for locally uploaded images
    • -
    • Hopefully fixed cache control header
    • -
    • Added check for PM box size limit of 0 to prevent div0 error
    • -
    • Fixed failure to fully delete PMs in outbox
    • -
    • Fixed display problem with polls
    • -
    • Fixed problem with guest username not being displayed for topic results in search
    • -
    • Fixed problem with quotes in various profile fields
    • -
    • Fixed schema problem with user_timezone
    • -
    • Fixed page display issue with MS Access
    • -
    • Fixed user level issue when altering user from user to admin and vice versa
    • -
    • Fixed incorrect parseing of some email templates
    • -
    • Reduced size of MS Access primer
    • -
    • Fixed various remaining usergroup display issues
    • -
    - -

    1.xiii. Changes since RC-3

    - -
      -
    • Addressed serious security issue with included files
    • -
    • Fixed non-use of database table prefix name during upgrade
    • -
    • Split functions and profile into separate modules
    • -
    • Fixed (hopefully) remaining issues with colourisation of moderator usernames
    • -
    • Updated install to include entry of additional, required, information
    • -
    • Fixed (hopefully) AOL incompatibilities
    • -
    • Fixed non-display of moderators in index/viewforum
    • -
    • Fixed group control panel 'no groups exist' problems
    • -
    • Fix HTTP_X_FORWARDED_FOR spoofing possibility
    • -
    • Fix ignoring of private range IP's in HTTP_X_FORWARDED_FOR
    • -
    • Enable multiple wildcard email banning, eg. *name*@somewhere.tld
    • -
    • Fix problems with posts being truncated if containing < and > characters
    • -
    • Prevent URL, BBCode and most smiley parseing in [code][/code]
    • -
    • Fix problems with use of certain reserved chars in word censor list
    • -
    • Fix default search useage to be as described (was doing AND by default)
    • -
    • Fix various avatar issues with profile, gallery and viewtopic
    • -
    • Enable safe mode support for uploading avatars
    • -
    • Fix broken modcp IP view issue
    • -
    • Fix potential session_id re-write vulnerability
    • -
    • Finish localisation of days and months (AM/PM are not and will not be localised in 2.0)
    • -
    • Remove link to external subSilver stylesheet from default subSilver templates
    • -
    • Handle TRANSACTIONS correctly in MySQL 3.x (by returning correct responses)
    • -
    • Fix checkbox resetting problem while previewing posts
    • -
    • Fix a login redirect issue
    • -
    • Remove some additional unused fields during upgrade
    • -
    • Fix (hopefully) remaining ICQ overlay issue with view profile in subSilver
    • -
    - -

    1.xiv. Changes since RC-2

    - -
      -
    • Fixed infamous install parse error
    • -
    • Major update of posting and related search functions (fixing various issues and increasing speed)
    • -
    • Fixed display of author and last poster names when both are different guest users
    • -
    • Fixed upgrade stall issues (hopefully!) and improved output
    • -
    • Fixed highlighting code for viewtopic and search
    • -
    • Reduced size of several files and functions
    • -
    • Moved localised images to sub-directories
    • -
    • Improved user feedback of disallowed usernames
    • -
    • Fixed various MSSQL bugs
    • -
    • Fixed installation of MSSQL/MSSQL-ODBC
    • -
    • Fixed security issue with upgrade.php
    • -
    • Finished implemention of various additional features
    • -
    • Fixed various user, group and forum permissions problems
    • -
    • Fixed issues with BBCode [ and ] (hopefully!)
    • -
    • Fixed autologin problems with MS IIS
    • -
    • Hopefully fixed problems with URIs in emails on some server configs
    • -
    • Fixed 'blank' profile and DB utilities problems on submit
    • -
    • Fixed incorrect language being used in email subjects
    • -
    • Fixed issues with incorrect private message new/unread counts
    • -
    • Fixed various PostgreSQL related errors
    • -
    • Automatically forward users to login screen in more situations
    • -
    • AEnabled (coloured) online indication of moderators and admins
    • -
    • Enabled maximum online user count
    • -
    • Altered online user count to ignore duplicate IPs (will now underestimate rather than overestimate)
    • -
    • Enabled viewing of users browsing each forum
    • -
    • Fixed (hopefully) display of overlayed ICQ icon in Netscape using subSilver
    • -
    • Fixed display of guest usernames for last post and author
    • -
    • Hidden usergroups are now completely hidden from view
    • -
    - -

    1.xv. Changes since RC-1

    - -
      -
    • Fixed numerous PostgreSQL related issues
    • -
    • Significant updates and additions to the upgrade script
    • -
    • Various (missed) hard coded language strings fixed
    • -
    • Fixed viewforum error when no forum id specified
    • -
    • Fixed old constant name useage in search system
    • -
    • Fixed display of moved posts when viewing unanswered posts
    • -
    • Fixed failure of search for user and keyword when displaying as posts
    • -
    • Fixed PM popup notification
    • -
    • Fixed view more emoticon session page problem
    • -
    • Fixed view profile email links
    • -
    • Fixed display of websites in profile
    • -
    • Fixed backup database failure
    • -
    • Fixed MS Access schema error when posting topics
    • -
    • Fixed problem with hypenated/dotted DB names in MySQL 3.23.6+
    • -
    • Various other fixes and updates
    • -
    - -

    1.xvi. Changes since RC-1 (pre)

    - -
      -
    • Upgrade script completed for initial fully functional release
    • -
    • Sessions code updated
    • -
    • Mark read code updated and hopefully fixed
    • -
    • Significant changes to properly deal with \' for non-MySQL boards
    • -
    • mssql, msaccess and mssql-odbc DB classes re-written
    • -
    • Avatar issues addressed and fixed
    • -
    • Search (INSERT) bug using MySQL fixed
    • -
    • Search highlighting issues addressed
    • -
    • Search own/other users posts fixed
    • -
    • BBCode fixes for magic URIs and other issues
    • -
    • Template updates for subSilver
    • -
    • User and group permissions problems fixed
    • -
    • Forum management problems (deletion of forum causing category not to display) fixed
    • -
    • Pagination problem with groupcp fixed
    • -
    • Backslash issues with posting and profile fixed
    • -
    • Backslash issues with emails fixed
    • -
    • preg_quote problems fixed
    • -
    • User management updated with full avatar control and missing fields
    • -
    • Private messaging box limits fixed
    • -
    • Private messaging ?folder= strangeness fixed
    • -
    • Forum pruning code updated to cope with search system
    • -
    • Emoticon system in posting updated
    • -
    • BBCode FAQ link added to posting form
    • -
    • Language file updates to address concerns of translators
    • -
    • Various other bug fixes and updates
    • -
    - -

    Note that a full list of fixed bugs can be found at the bug tracker (see section on bug reporting here)

    - -

    2. Copyright and disclaimer

    - -

    This application is opensource software released under the GPL. Please see source code and the Docs directory for more details. This package and its contents are Copyright © 2002 phpBB Group, All Rights Reserved.

    - - -
    - - - diff --git a/phpBB2_old/docs/COPYING b/phpBB2_old/docs/COPYING deleted file mode 100644 index ce992b2..0000000 --- a/phpBB2_old/docs/COPYING +++ /dev/null @@ -1,281 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 675 Mass Ave, Cambridge, MA 02139, USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - diff --git a/phpBB2_old/docs/FAQ.html b/phpBB2_old/docs/FAQ.html deleted file mode 100644 index 80076ee..0000000 --- a/phpBB2_old/docs/FAQ.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - -phpBB 2.0.x :: FAQ - - - - - - - - - -
    - - - -
    - - - - - - -
    phpBB 2 : Creating CommunitiesphpBB 2.0.x FAQ
    - - -

    This is a very basic Frequently Asked Questions (FAQ) page which attempts to answer some of the more commonly asked questions. It is by no means exhaustive and should be used in combination with the 'built-in' User FAQ within phpBB2, the community forums (particularly the Tutorials forum) and our IRC channel (see README for details).

    - -
      - -
    1. I cannot install this it is too difficult! Will you do it?
    2. - -

      Simple answer, no we will not. We are not being difficult when we say this we are actually trying to help you. phpBB has a reputation for being easy to install, that reputation is we believe well deserved. It is a simple process of unarchiving a single file, uploading the resulting directory/files to their intended location and entering some data in a web based form. The sequence of events, what to type where, etc. is covered in detail in the accompanying INSTALL.html documentation. If you cannot install phpBB 2.0.x the chances are you will be unable to administer or update it.

      - -

      There are people, companies (unrelated to your hosting provider), etc. that will install your forum, either for free or for a payment. We do not recommend you make use of these offers. Unless the service is provided by your hosting company you will have to divulge passwords and other sensitive details. If you did not know how to use an ATM would you give a passer-by your bank card and PIN and ask them to show you what to do? No, probably not! The same applies to your hosting account details!

      - -

      We think a better solution is for you to carefully read the enclosed documentation, read our tutorials forum at www.phpbb.com and if necessary ask for help on any thing you get stuck on. However, the decision is yours but please note we may not offer support if we believe you have had the board installed by a third party. In such cases you should direct your questions to that company or person/s.

      - -
    3. How do I install this board on Lycos/coolfreepages/other free host?
    4. - -

      The old addage "You get what you pay for" is particularly true for hosting services! However if you must use a free service (and recognise its limitations) you will find details on common pitfalls in our tutorials forum at http://www.phpbb.com/phpBB/.

      - -
    5. I am having problems with the admin at a certain board, help!
    6. -
    7. A board has ripped off my graphics/software/etc., stop them!
    8. -
    9. A board is dealing in warez/porn/etc., you need to prevent them doing this!
    10. - -

      We provide the software, we have absolutely nothing to do with any board that runs it (beyond phpbb.com of course!). The GPL grants the user an unlimited right of use subject to their adherence of that licence. Therefore we cannot prevent, dictate, control or otherwise limit the use of phpBB 2 software. So please do not contact us for such matters.

      - -

      If you have a problem with a given board please take it up with them, not us. We are not and cannot be held legally responsible for any third party use of this software (much like Microsoft et al cannot be held responsible for the use of Windows in illegal activities, etc.). Additionally we do not track the use of phpBB software in any way. So please do not ask us for details on a "given" board we will not be able to help you. If any law firms or lawyers out there send us writs, Cease and Desist orders, etc. for third party website use of this software we reserve the right to charge for time wasted dealing with such issues ...

      - -
    11. According to viewonline a user is doing/reading something they should not be able to!
    12. - -

      No, they probably are not. phpBB uses sessions to keep track of users as they move between pages. The session information tells us who this user is. Therefore in order to determine what a user can do on a page we first need the session details. Once this data is available we can check whether the user is permitted to do whatever it is they are trying to do. This can result in it appearing as if a user is reading a topic in a forum they should not be able to access. Or perhaps viewing private messages when they are only guests, etc. In practice the user is not doing these things, they are viewing a "You are not permitted to do this" type message. The session data has simply been updated before we were able to determine what the user could or could not do.

      - -

      Of course this only applies where permissions have been set correctly!

      - -
    13. I keep getting Mail sending errors when I (or my users) post/send PM's/etc.!
    14. - -

      This error will occur if phpBB cannot send mail. phpBB can send email two ways; using the PHP mail() function or directly via SMTP. Some hosting providers limit the mail() function to prevent its use in spamming, others may rename it or limit its functionality. In either case you may need to make use of SMTP. This requires that you have access to such a facility, e.g. your hosting provider may provide one (perhaps requiring specific written authorisation), etc. Note that if your provider requires authorisation we only support the simple AUTH method using plaintext username/password. We do not support secure sockets layer (SSL), POP3 send or any other method. Please see http://www.phpbb.com/phpBB/ for additional help on this matter.

      - -

      If you do require SMTP services please do not ask (on our forums or elsewhere) for someone to provide you with one. Open relays are now things of the past thanks to the unthinking spammers out there. Therefore you are unlikely to find someone willing to offer you (free) services.

      - -
    15. My users are complaining that emails are not in their selected language!
    16. - -

      You must have deleted a language pack or the language pack is incomplete. phpBB will try to send emails in the users selected language. If it cannot find a suitable email template it will switch to the boards default language.

      - -
    17. The first four letters of my text disappeared when I hit submit!
    18. - -

      Some forms in phpBB make use of arrays to "post" or submit data, e.g. polls, forum management, etc. A bug exists in PHP 4.2.3 (and perhaps older versions) which can cause such data to lose the first four characters of text. This bug is related to the presence of the mbstring module and certain compile time parameters (the problem exists for both compiled in and modular version of mbstring). Please see: http://bugs.php.net/bug.php?id=19460 for more details. Note the bug is fixed in PHP CVS and thus future versions should be immune. Remember, this is not a bug in phpBB 2.

      - -
    19. My AOL based users keep getting logged out!
    20. - -

      phpBB2 uses sessions to keep track of users as they browse the board. These sessions use a combination of a unique session id and the users IP to identify each user. We make use of the IP as an extra safe-guard to help prevent sessions being hijacked (by discovering the unique session id).

      - -

      Unfortunately this only works when the users IP is constant as they browse the board. For most users this will be the case. However certain providers route their users via a cluster of proxys. In some cases, particularly AOL this results in different IPs being forwarded as the user moves between pages. We take account of this by not checking the entire IP but only the first "three quads". Again in most cases this will be fine. However again AOL uses IPs which can vary so much that checking only the first two quads results in a fairly static IP being available for session validation.

      - -

      If you are experiencing problems related to this you can make a small change to the code. Please note that reducing the IP validation length does potentially increase the risk of sessions being hijacked (this is something for you to consider, phpBB Group takes no responsibility should anything happen!). The change requires you to open the file sessions.php in the includes/ directory of the distribution. Find line 250, it contains the following

      $ip_check_s = substr($userdata['session_ip'], 0, 6);
      change this to:
      $ip_check_s = substr($userdata['session_ip'], 0, 4);
      You need to make exactly the same change to the number 6 in the next line. Save the file (and upload it if required). This should reduce or eliminate the problem noted.

      - -
    21. I selected X for my timezone but the time is not correct!
    22. - -

      I suspect the time is correct but that you may have switched (locally) to daylight savings time. At present we do not support daylight savings only standard local times. Therefore during summer months (depending on whether your nation/state switches to daylight savings) the board times may appear to be one hour behind the real local time. The solution is to either put up with it (just let your users know) or to move the timezone of everyone who is affected (remember that not all your users may be from nations who have switched to daylight savings) on one hour, eg. GMT becomes GMT+1. This requires running some SQL and you should search our forums for information.

      - -

      If this is not the case then I suspect your servers time is at fault. phpBB 2 stores all times in the form of a unix timestamp. This is a 32bit integer value containing the number of seconds since the unix epoch event, 1st January 1970 00:00:00 GMT. This value is global in nature and will be the same wherever you are in the world. So, if your time is incorrect and you have selected the appropriate timezone chances are your server time is off.

      - -
    23. I am seeing &#nnnn; sequences output instead of what I typed!
    24. - -

      To enable compliance with HTML and XHTML specifications as well as enabling browsers to automatically support a users selected language we enable a charset tag to be output to the browser. This identifies the primary character set the user has selected, eg. iso-8859-1 for Western European languages (English, German, French, etc.), windows-1251 for Cyrillic alphabets (Russian, Bulgarian, etc.) and so on. The downside to doing this is that most modern browsers (such as Internet Explorer) convert any character not present in that character set into what are termed Numerical Character References or NCR's. These take the form of &#nnnn; where nnnn is the hexadecimal number of that characters UNICODE reference.

      - -

      Unfortunately PHP (which effectively supports only iso-8859-1 at this time) does not appear to attempt to process this data back into normal characters. Therefore phpBB treats them as text the user has entered and wishes to see. phpBB enables this by turning the & into &amp;. This results in the characters appearing as they do. Although we could ignore &#nnnn; (there are pro's and of course con's to doing so) at present we don't.

      - -

      If you are finding this to be problem the solution is to remove the

      charset={S_CONTENT_ENCODING}
      text from all the _header.tpl template files in all templates. The downside to this is a users browser will not automatically switch its charset to that selected by the user (however this is unlikely to be a big problem since users typically run their browser by default in the language they wish to use). Alternatively you can modify the $lang['ENCODING'] entry in the appropriate language file. Until PHP (and all browsers!) trully support UNICODE these problems will persist across all boards.

      - -
    25. I cannot search for certain words! - -

      phpBB 2 uses a Fulltext search system, this has both advantages and disadvantages. The advantage is that on large or busy forums it has far less impact on server load than standard search methods as used by many alternative forums (including phpBB 1.x). The disadvantage is that to reduce the size of the database (every post is examined and unique words stored in a table) we have to limit the size and type of words we store. By default words must contain at least three characters but no more than 25, they must be either alpha or combinations of alpha and numerals (numbers alone are not stored). In addition all non-alphanumeric characters are removed, eg. _, +, -, etc. This is standard practice for fulltext search solutions.

      - -

      A further downside is that non-latin alphabets, eg. Cyrillic, Greek, etc. require proper locale support to be compiled in and available on the server your board is running on. If this is not the case it is quite likely that words will not be properly indexed for storage. In many cases this can be recified by altering the setlocale(LC_ALL, '[LOCALE_HERE]'); statement in the appropriate language file. If you are experiencing problems you should change whatever is currently in place of [LOCALE_HERE] with the locale as available on your server. If you do not know this please ask your hosting provider. Some examples may be ru_RU.WIN_CP_1251 for the codepage used for the Russian translation, ko.KOI8 for Korean, etc.

      - -

      Please note that support for multibyte character sets remains very limited in PHP4 and therefore Japanese, Chinese, etc. may have difficulty getting the fulltext search working correctly at all.

      - -
    26. My screen is filled with errors when I try to view the forum! - -

      Are they errors? Are you sure they are not warnings? They probably are ... What you're seeing is PHP warn you about unset variables. Great care has been taken with phpBB 2.0 to ensure it is secure. Unset variables while being a potential security risk really shouldn't be in 2.0. Unfortunately some hosting providers have decided that any unset variables equal security problems and force PHP to output these warnings even though phpBB 2.0 is set to ignore them.

      - -

      We have worked some way toward checking and/or setting all variables before use but this will take time to complete (if it can be). Therefore I am afraid for the time being you will have to manually modify the code or ask your hosting provider to be more realistic with their setup.

    27. - -
    28. How do I use the avatar settings? - -

      There are three types of avatar; upload, remote and local.

      -

        -
      • Upload types require you to create a directory (the default is images/avatars) and to set this to public read/write (ie. chmod a+rw), users can then upload avatars (subject to width, height and size limits definable by you).
      • -
      • Remote avatars allow the user to supply a URI pointing to an image available on the internet, PLEASE NOTE that size limits do not apply to remote avatars!
      • -
      • Local avatars allow you to upload your own avatars to a set directory, users can then pick from this avatar gallery. The default location for this is images/avatars/gallery. PLEASE NOTE that avatars are categorised according to sub-folders in this location! ie. you MUST place your avatars in subdirectories, eg. images/avatars/gallery/cartoons, images/avatars/gallery/real-life, etc.
      • -

    29. - -
    30. No matter what I set the uploadable avatars to I cannot upload one from my computer! - -

      There are two possibilities here, the first is you have not created the directory you specified as the storage location for avatars, ie. as specified in the Admin->General Configuration->Avatars section. If the directory does not exist uploadeable avatars are automatically disabled. You should create the required directory (ensuring it has global write access or other appropriate permissions to allow the webserver to write files to it).

      - -

      The second possibility is that your provider has disabled file_upload support, possibly because of a recently found serious security issue with PHP before version 4.1.2. You should contact your provider and ask them if this is the case. It may be unrelated to the security issue and your provider has simply decided to disable such things in general. In either case I'm afraid there is not a lot you can do, there are still three other avatar settings left to choose from including uploading via a URL which will work fine

    31. - -
    32. I just cannot get gallery avatars to appear! - -

      Chances are you have not followed our instructions above. phpBB 2 categorises gallery avatars and it does this by reading through folders contained in the location you specified as being the gallery path. For example, if you set the gallery path to "images/avatars/gallery" phpBB 2 will expect to find a series of folders within that path, eg. "images/avatars/gallery/moviestars", "images/avatars/gallery/cartoons", "images/avatars/gallery/misc", etc. Placing images directly in "images/avatars/gallery/" will result in nothing being listed in your gallery.

    33. - -
    34. How do I set forum permissions? - -

      You set forum permissions from the administration control panel -> Forums -> Permissions. This system has two modes of operation; Simple and Advanced. Simple uses a set of pre-defined authorisation levels, these set each type of authorisation setting to a specific level. Advanced settings allow you to specify individual levels for each operation in each forum. Experiment!

    35. - -
    36. How do I set user and group permissions? - -

      These are set from Admin -> Users (Groups) -> Permissions. The system may appear strange but it's very powerful. When you look up a user or group it will give you basic information (at the top of the page) followed by the available forum listing and current settings for this user. You can assign moderator status to users and groups and if you have PRIVATE forums (or forums with any of their individual operations set to PRIVATE) you can also assign access.

    37. - -
    38. How do I set a user (group) as moderator? - -

      See above

    39. - -
    40. Why are there no entries in the user (group) permission "Allow Access" column? - -

      You can only allow (or deny) users access to PRIVATE forums, or forums which have one or more operations set to PRIVATE

    41. - -
    42. How come I cannot set "Vote" to ALL?
    43. - -

      phpBB does not by default allow guest voting. This was done to prevent guest users (who cannot be reliably tracked) from voting time and time again in the same poll. There is a Mod available if you really need this feature, please see our Mod forums at http://www.phpbb.com/phpBB/.

      - -
    44. I (or my users) cannot stay logged in to the forum! - -

      If you (or your users) are, after attempting a login, being returned to the index (or other page) without appearing to be logged in the most likely problem is incorrect cookie settings. phpBB 2 uses cookies to store a session id and a small amount of user data. For this data to be stored correctly the cookie domain, path and secure settings must be correct. You can check this in Admin->General Configuration->Cookie settings. Typically the cookie domain can be left blank and the cookie path set to / (a single forward slash). Do not set the cookie as being secure unless your board is running over a secure sockets layer connection, ie. https://

      - -

      If you still have problems try setting the cookie domain to your full domain name, eg. www.mysystem.tld, www.something.mydomain.tld. You must ensure the domain name contains at least two dots or browsers will be unlikely to recognise the cookie, eg. .mydomain.com, mydomain.com. Do not add http:// or anything else to the domain name!

    45. - -
    46. My users are complaining about being logged out too quickly! - -

      You can increase the default length of sessions (ie. how long before a users session is considered 'dead') in Admin->General->Configuration->Cookie Settings->Session Length. Set it to whatever value your users feel comfortable with, remember that security issues may affect your decision (ie. having too long a session may allow non-users to abuse your board should a user forget to logout or otherwise leave a current session on a public workstation).

    47. - -
    48. I am having problems with HTML! - -

      If you want to allow your users to make use of HTML in posts you need to do two things. Firstly enable HTML in Admin -> General -> Configuration. Secondly to need to make sure that the tags your users will post are in the Allowed HTML Tags field (again Admin -> General -> Configuration). If users post using tags not on this list they won't be displayed as HTML! eg. to enable someone to post Flash you could add the embed tag to this field. Be careful which tags you allow, it is very easy to break the boards own output if the wrong tags are used in posts.

    49. - -
    50. Can I suggest a feature for phpBB 2.2? - -

      Yes you most certainly can, phpBB 2.0.0 is now feature frozen and only bug fix releases will be made from this line. However, work has already started on the next release of phpBB, phpBB 2.2. We already have a number of features in mind and these are listed on our task manager:

      - -

      http://sourceforge.net/pm/task.php?group_project_id=13524&group_id=7885&func=browse.

      - -

      Some of these features will also be discussed on forums at http://www.phpbb.com/phpBB/.

      - -

      To suggest a feature first consult the task list mentioned above, if your idea is already listed then the chances are good that it will appear in 2.2. If your suggestion is not listed please submit it to our feature request tracker:

      - -

      http://sourceforge.net/tracker/index.php?group_id=7885&atid=357885.

      - -

      Before submitting please read through the already present suggestions, if one matches or is similar to yours please add to it rather than creating a new entry.

      - -

      We make no promises to the inclusion of features but we will endeavour to introduce the most requested or most interesting ones.

    51. - -
    52. Why is phpBB 1.x faster than phpBB 2.0? - -

      The original phpBB 1.0 saw a very large decrease in page generation times from version 1.0/1.2 to 1.4. This was achieved by rewriting many of the SQL queries and splitting the database. These changes came about from work on phpBB 2.0. With phpBB 2.0 we have introduced numerous additional functions and features, not least of which is full templating (the separation of page design from code). This results in a slowdown from phpBB 1.4, we suspect though that the new features will outweigh the small difference in page generation times.

    53. - - -
    54. My question isn't answered here! - -Feel free to search our community forum for the information you require. PLEASE DO NOT post your question without having first used search, chances are someone has already asked and answered your question. You can find our board here:

      - -

      http://www.phpbb.com/phpBB/

    55. - -
    - -

    Copyright and disclaimer

    - -

    This application is opensource software released under the GPL. Please see source code and the Docs directory for more details. This package and its contents are Copyright © 2002 phpBB Group, All Rights Reserved.

    - - -
    - - - \ No newline at end of file diff --git a/phpBB2_old/docs/INSTALL.html b/phpBB2_old/docs/INSTALL.html deleted file mode 100644 index ec16eaa..0000000 --- a/phpBB2_old/docs/INSTALL.html +++ /dev/null @@ -1,257 +0,0 @@ - - - - - -phpBB 2.0.11 :: Install - - - - - - - - - -
    - - - -
    - - - - - - -
    phpBB 2 : Creating CommunitiesphpBB 2.0.11 INSTALL
    - - -

    Please read this document completely before proceeding with installation.

    - -

    Please note these instructions are not fully comprehensive, a more thorough userguide will be available on the phpBB website in the near future. However, this document will walk you through the basics on installing the forum software.

    - -

    A basic overview of running phpBB 2.0.11 can be found in the accompanying README documentation. Please ensure you read that document in addition to this! For more detailed information on using phpBB 2 you should read Userguide now available online.

    - -
      -
    1. Quick Install
    2. -
    3. Requirements
    4. -
    5. New Installations
    6. -
        -
      1. Changing the file extension
      2. -
      3. Replacing an old phpBB 1.x install
      4. -
      5. Installing on MySQL 3 and 4, PostgreSQL 7.x, MS SQL 7/2000 (inc. via ODBC)
      6. -
      7. Installing on MS Access 2000/XP
      8. -
      9. Entering required data
      10. -
      11. Completing installation
      12. -
      -
    7. Upgrade from phpBB 1.4.x
    8. -
    9. Upgrade from phpBB 2.0 beta-1
    10. -
    11. Upgrade from previous Release Candidate versions of phpBB 2
    12. -
        -
      1. Changes in language pack format and templates
      2. -
      -
    13. Upgrade from stable releases of phpBB 2.0.x
    14. -
        -
      1. Full package
      2. -
      3. Changed files only
      4. -
      5. Patch file
      6. -
      7. All package types
      8. -
      -
    15. Important (security related) post-Install tasks for all installation methods
    16. -
        -
      1. Uploadable avatars
      2. -
      3. Safe Mode
      4. -
      5. Optional extras
      6. -
      -
    17. Disclaimer
    18. -
    - -

    1. Quick Install

    - -

    If you have basic knowledge of using FTP and are sure your hosting service or server will run phpBB 2 you can use these steps to quickly get started. For a more detailed explanation you should skip this and go to section 2 below.

    - -
      -
    1. Decompress the phpBB 2 archive to a local directory on your system.
    2. -
    3. Upload all the files contained in this archive (retaining the directory structure) to a web accessible directory on your server or hosting account. -
    4. Change the permissions on config.php to be writeable by all (666 or -rw-rw-rw- within your FTP Client)
    5. -
    6. Using your web browser visit the location you placed phpBB 2 with the addition of install/install.php, e.g. http://www.mydomain.com/phpBB2/install/install.php, http://www.mydomain.com/forum/install/install.php etc. -
    7. Fill out all the requested information and hit Submit
    8. -
    9. Change the permissions on config.php to be writeable only by yourself (644 or -rw-r--r-- within your FTP Client)
    10. -
    11. Click the Complete Installation button or revisit the location you entered above.
    12. -
    13. phpBB 2 should now be available, please MAKE SURE you read at least Section 8 below for important, security related post-installation instructions.
    14. -
    - -

    If you experienced problems or do not know how to proceed with any of the steps above please read the rest of this document.

    - -

    2. Requirements

    - -

    Installation of phpBB 2.0.11 requires the following:

    -
      -
    • A webserver or web hosting account running on any major Operating System
    • -
    • A SQL database system, one of: -
        -
      • MySQL (3.22 or higher)
      • -
      • PostgreSQL 7.0.3 or higher (preferably 7.1.x or 7.2.x)
      • -
      • MS SQL Server (7 or 2000) directly or via ODBC
      • -
      • MS Access (2000 or XP) via ODBC
      • -
      -
    • -
    • PHP (3.0.9 and above or preferably a recent 4.x) with support for the database you intend to use above
    • -
    - -

    If your server or hosting account does not meet the requirements above I am afraid phpBB 2.0 is not for you.

    - -

    3. New Installations

    - -

    Installation of phpBB 2 will vary according to your server and database. If you have shell access to your account (via telnet or ssh for example) you may want to upload the entire phpBB 2 archive (in binary mode!) to a directory on your host and unarchive it there.

    - -

    If you do not have shell access or do not wish to use it you will need to decompress the phpBB 2 archive to a local directory on your system using your favourite compression program, e.g. winzip, rar, zip, etc. From there you must FTP ALL the files it contains (being sure to retain the directory structure and filenames) to your host. Please ensure that the cases of filenames are retained, do NOT force filenames to all lower or upper case doing so will cause errors later.

    - -

    All .php, .inc, .sql, .cfg and .htm files should be uploaded in ASCII mode, while all graphics should be uploaded in BINARY mode. If you are unfamiliar with what this means please refer to your FTP client documentation. In most cases this is all handled transparantly by your ftp client but if you encounter problems later you should be sure the files where uploaded correctly as described here.

    - -

    phpBB2 comes supplied with English as its standard language. However a number of seperate packs for different languages are available. If you are not a native English speaker you may wish to install one or more of these packages before continuing. The installation process below will allow you to select a default language from those available (you can of course change this default at a later stage). For more details of language packs, where to obtain them and how to install them please see the README.

    - -

    Once all the files have been uploaded to your site you should point your browser at this location with the addition of install/install.php (please note that if you changed the extension from php, see Section 3.i below, you should alter install.php appropriately). For example if your domain name is www.mydomain.tld and you placed phpBB 2 in a directory /phpBB2 off your web root you would enter http://www.mydomain.tld/phpBB2/install/install.php into your browser. When you have done this you should see the phpBB 2 Installation screen appear.

    - -

    3.i. Changing the file extension

    - -

    If the file extension used to execute PHP scripts on your server is NOT .php but for example .php3 or .phtml you should first rename ALL files ending in .php and change the value of $phpEx in extension.inc. In the vast majority of cases this step will be unncessary.

    - -

    3.ii. Replacing an old phpBB 1.x install

    - -

    NOTE, you should NOT place phpBB 2 files into the same directory as any previous installation of phpBB 1.x! Create a new directory (or move your old phpBB 1.x out of the way), failure to do this will result in runtime errors.

    - -

    3.iii. Installing on MySQL 3 and 4, PostgreSQL 7.x, MS SQL 7/2000 (inc. via ODBC)

    - -

    Before proceeding with installation you should ensure you have a database available. Most good hosting accounts now come with at least one database as part of the basic package although it may need to be setup before first use. Ask your provider for details if you are unsure whether you do or not. If you are running your own server and are unsure how to create a database you should refer to your SQL servers documentation or website, e.g. http://www.mysql.com/doc/, http://www.postgresql.org/users-lounge/, etc.

    - -

    If your database server is MySQL PLEASE ensure you select the appropriate version from the dropdown box. Do NOT select MySQL 4.x if you have MySQL 3.x (the most common type) installed, if in doubt select MySQL 3.x.

    - -

    3.iv. Installing on MS Access 2000/XP

    - -

    Before you install phpBB 2 you need to create a Data Source Name or DSN. The exact way to do this will depend on your hosting provider, if you are unsure you should check with them before proceeding. In general though you should create a System DSN which points to the location where you have stored an unarchived copy of the ms_access_primer.mdb file (this is contained in the ms_access_primer.zip which can be found in install/schemas/). The name you give this DSN will be used during installation. Do not proceed until this step is complete!

    - -

    Please note that MS Access support is not designed for busy boards. If you anticipate more than one or two users being online at any given time you should upgrade to a more robust server solution.

    - -

    3.v. Entering required data

    - -

    Once you have reached the installation page you need to fill out several fields. Be sure to select the right database type! If you do not have or do not know the database name, database server, etc. please check with your hosting provider. For non-ODBC databases the database server is typically localhost but this is NOT universal! If you are using an ODBC based database (such as MS Access or MSSQL via ODBC) you should enter the DSN here (see 2.iv.).

    - -

    The database prefix allows you to enter a few characters, short name, etc. which all tables used by this installation will be prefixed with. The default (phpbb_) will usually be fine. However if you have more than one copy of phpBB 2 using the same database be sure to alter it or you will receive errors during installation.

    - -

    The remaining information is personal to you and your site. You will need to enter a username and password for the initial administration account (more administrators can be created later). The server name, server port and script path are essential because all emails containing URLs will use these values. The installer will guess initial values, however they may not be correct so be sure to check them!

    - -

    Remember that a domain (or server) name does NOT include http://! Enter just the domain name, eg. www.mydomain.tld and NOT http://www.mydomain.tld/. The server port can, in the great majority of cases be left as 80, this is the standard http port. However if your web server listens to a different port because for example port 80 is blocked then alter this appropriately. The script path is the relative path from your webroot where phpBB 2 is installed, e.g. if you install phpBB 2 into phpBB 2/ in your webroot then enter phpBB 2 (or /phpBB 2/) as the script path.

    - -

    3.vi. Completing installation

    - -

    Once you have checked all the data press submit. The installation script will create and populate all the necessary tables. It will then attempt to write to the config.php file which will contain the basic configuration data used to run phpBB 2. If the installer cannot write config.php directly you will be given the option of either downloading the file or even FTPing it to the correct location. If you choose to download you should then re-upload the file to your server, overwriting the existing config.php in the process. If you attempt to FTP via the install script you should supply the requested information. Should FTP fail you will be able to download the file and then re-upload as described earlier.

    - -

    During the installation procedure phpBB 2 will check to ensure the relevant PHP database module is available and will not proceed if it cannot be found. Should this happen be sure to check you have selected the correct database and/or ask your hosting provider for advice.

    - -

    Do not proceed untill the installation is completed and (if necessary) you have uploaded the config.php file.

    - -

    4. Upgrade from phpBB 1.4.x

    - -

    Before upgrading we heavily recommend you do a full backup of your database! If you are unsure how to achieve this please ask your hosting provider for advice. One you have backed up your database you should follow the basic instructions given for New Installations above. However instead of selecting Install as the Installation Method you should select Upgrade.

    - -

    As with install the upgrade is automated. The config.php will be written automatically (if possible, else you will be able to download a copy as with New Installation above). Once the config.php is in place everything should proceed without error. Please note that this upgrading process may take quite some time and depending on your hosting provider this may result in it failing (due to web server or other timeout issues). If this is the case you should ask your provider if they are willing to allow the upgrade script to temporarily exceed their limits (be nice and they will probably be quite helpful).

    - -

    Once completed your board should be immediately available. If you encountered errors you should restore your original database and report the problems to our bug tracker or seek help via our forums (see README for details).

    - -

    5. Upgrade from phpBB 2.0 beta-1

    - -

    Sorry but no direct upgrade is available from beta-1 (we did warn you!). If you are reasonably confident with the use of SQL, etc. you may be able to make the required changes to the database manually. You will need to examine the CVS check-ins to determine what needs changing where.

    - -

    6. Upgrade from previous Release Candidate versions of phpBB 2

    - -

    Upgrading from these versions is generally quite easy. First you should make a copy of your existing config.php, keep it in a safe place! Next delete all the existing phpBB 2 files, do not leave any in place otherwise you may encounter errors later. You can leave alternative templates in-place but you should note they may not function correctly with the final release. It is therefore recommended you switch back to subSilver if you are currently using a different style. With this complete you can upload the new phpBB 2.0.0 files (see New Installations for details if necessary). Once complete copy back your saved config.php, replacing the new one.

    - -

    You should now run install/update_to_210.php which, depending on your previous version, will make a number of database changes. You may receive FAILURES during this procedure, they should not be a cause for concern unless you see an actual ERROR, in which case the script will stop (in this case you should seek help via our forums or bug tracker).

    - -

    RC-2 and below MSSQL users, please note that during the update procedure your existing forums table will be dropped and re-created. All data in standard fields will be retained. However if you have modified the forums table and added additional fields or altered existing ones these changes WILL be lost. If this is a significant issue for you we advise you comment out the "DROP FORUM TABLE" section in update_to_210.php and instead, manually alter the forum_id column to remove the IDENTITY setting (if it exists).

    - -

    Once the update_to_210.php has completed you MUST proceed to the Administration General Configuration panel and check all the values in General Configuration. This is essential if you were running any version before RC-3 since extra information needs to be entered to enable correct URLs to be output in emails.

    - -

    6.i. Changes in language pack format and templates

    - -

    Please note that changes have been made to the format of language, image localisations and templates from previous RC's to FINAL. If you were running a release candidate prior to RC-3 you will need to download new language and image localisation packs. You can safely delete any existing *_lang.gif files in the subSilver/images directory since these are no longer utilised. If you are using or have installed any 3rd party template set you must either remove it or update it. Changes have been made to a number of template variables which will result in these not working unless they have been updated to meet phpBB 2.0.x standards.

    - -

    7. Upgrade from previous stable (released) versions of phpBB 2

    - -

    If you are currently using a stable release of phpBB 2 updating to this version is straightforward. You would have downloaded one of three packages and your choice determines what you need to do. Please Note: That before upgrading we heavily recommend you do a full backup of your database and existing phpBB2 source files! If you are unsure how to achieve this please ask your hosting provider for advice.

    - -

    MySQL Users Please Note: Changes introduced in 2.0.4 may increase the size of your database, more specifically the search_wordmatch table. There are other changes in that release which are designed to reduce the database size. However these additional changes may not apply to all types of forum (particularly non-English boards). While any increases will be relatively small compared to the overall database size it may be an issue for some users. In particular users on hosting plans which limit database size and where the database is near that limit.

    - -

    7.i. Full package

    - -

    If you have downloaded the full package you should follow the same general upgrade path as for "Upgrade from previous Release Candidate versions of phpBB 2". The exception to this being the need to switch or update styles. In addition there is generally little need to visit the admin panel (though it is adviseable).

    - -

    7.ii. Changed files only

    - -

    This package contains a number of archives, each contains the files changed from a given release to 2.0.11. You should select the appropriate archive for your current version, e.g. if you currently have 2.0.10 you should select the phpBB-2.0.10_to_2.0.11.zip/tar.gz file.

    - -

    The directory structure has been preserved enabling you (if you wish) to simply upload the contents of the archive to the appropriate location on your server, i.e. simply overwrite the existing files with the new versions. Do not forget that if you have installed any Mods these files will overwrite the originals possibly destroying them in the process. You will need to re-add Mods to any affected file before uploading.

    - -

    As for the other upgrade procedures you should run install/update_to_210.php after you have finished updating the files. This will update your database schema and data (if appropriate) and increment the version number.

    - -

    7.iii. Patch file

    - -

    The patch file is probably the best solution for those with many Mods or other changes who do not want to re-add them back to all the changed files. To use this you will need command line access to a standard UNIX type patch application.

    - -

    A number of patch files are provided to allow you to upgrade from previous stable releases. Select the correct patch, e.g. if your current version is 2.0.10 you need the phpBB-2.0.10_to_2.0.11.patch. Place the correct patch in the parent directory containing the phpBB 2 core files (i.e. index.php, viewforum.php, etc.). With this done you should run the following command: patch -cl -d [PHPBB DIRECTORY] -p1 < [PATCH NAME] (where PHPBB DIRECTORY is the directory name your phpBB Installation resides in, for example phpBB2, and where PATCH NAME is the relevant filename of the selected patch file). This should complete quickly, hopefully without any HUNK FAILED comments.

    - -

    If you do get failures you should look at using the Changed files only package to replace the files which failed to patch, please note that you will need to manually re-add any Mods to these particular files. Alternatively if you know how you can examine the .rej files to determine what failed where and make manual adjustments to the relevant source.

    - -

    You should of course delete the patch file (or files) after use. As for the other upgrade procedures you should run install/update_to_210.php after you have finished updating the files. This will update your database schema and data (if appropriate) and increment the version number.

    - -

    7.iv. All package types

    - -

    If you have non-English language packs installed you may want to see if a new version has been made available. A number of missing strings have been added which, though not essential, may be beneficial to users. Please note that at this time not all language packs have been updated so you should be prepared to periodically check for updates.

    - -

    8. Important (security related) post-Install tasks for all installation methods

    - -

    Once you have succssfully installed phpBB 2.0.11 you MUST ensure you remove the entire install/ and contrib/ directories. Leaving these in place is a very serious potential security issue which may lead to deletion or alteration of files, etc. Please note that until these directories are remove phpBB2 will not operate and a warning message will be displayed. Beyond these essential deletions you may also wish to delete the docs/ directories if you wish.

    - -

    With these directories deleted you should proceed to the administration panel. Depending on how the installation completed you may have been directed there automatically. If not, login as the administrator you specified during install/upgrade and click the "Administration Panel" link at the bottom of any page. Ensure that details specified in General -> Configuration are correct!

    - -

    8.i. Uploadable avatars

    - -

    phpBB 2 supports several methods for allowing users to select their own avatar (an avatar is a small image generally unique to a user and displayed just below their username in posts).

    - -

    Two of these options allow users to upload an avatar from their machine or a remote location (via a URL). If you wish to enable this function you should first ensure the correct paths for uploadeable avatars is set in Admin -> General -> Configuration -> Avatars. By default this is images/avatars but you can set it to whatever you like, just ensure the configuration setting is updated. You must also ensure this directory can be written to by the webserver. Usually this means you have to alter its permissions to allow anyone to read and write to. Exactly how you should do this depends on your ftp client or server operating system.

    - -

    On UNIX systems for example you set the directory to a+rwx (or ugo+rwx or even 777). This can be done from a command line on your server using chmod or via your FTP client (using the Change Permissions, chmod or other Permissions dialoge box, see your FTP clients documentation for help). Most FTP clients list permissions in the form of User (Read, Write, Execute), Group (Read, Write, Execute) and Other (Read, Write, Execute). You need to tick all of these boxes to set correct permissions.

    - -

    On Windows system you need to ensure the directory is not write-protected and that it has global write permissions (see your servers documentation or contact your hosting provider if you are unsure on how to achieve this).

    - -

    Please be aware that setting a directories permissions to global write access is a potential security issue. While it is unlikely that anything nasty will occur (such as all the avatars being deleted) there are always people out there out to cause trouble. Therefore you should monitor this directory and if possible make regular backups.

    - -

    8.ii. Safe Mode

    - -

    phpBB 2.0.11 includes support for using uploadable avatars on systems running PHP in safe mode. If this applies to your hosting service you will need to create a sub-directory called tmp in the directory you specified for storage of uploaded avatars (by default this is images/avatars as explained above). Give it the same access rights as for uploadable avatars above.

    - -

    This safe mode support includes compatibility with various directory restrictions your host may impose (assuming they are not too restrictive and that the PHP installed is version 4.0.3 or later). There is generally no need for any manual setup for safe mode support it is typically handled transparantly.

    - -

    8.iii. Optional extras

    - -

    Included with this package are two extra (optional) files, you will find them in the contrib/ directory. These extras, template_file_cache.php and template_db_cache.php address concerns over server load and page generation times on slower or heavily loaded systems. These updated template modules compile each template and uses this rather than compiling each file everytime it is viewed. Tests seem to indicate a noticeable decrease in page generation times and more importantly a significant decrease in overall server load in virtual hosting environments.

    - -

    You should see the README contained within the contrib directory for more details.

    - -

    9. Copyright and disclaimer

    - -

    This application is opensource software released under the GPL. Please see source code and the Docs directory for more details. This package and its contents are Copyright © 2002 phpBB Group, All Rights Reserved.

    - - -
    - - - diff --git a/phpBB2_old/docs/README.html b/phpBB2_old/docs/README.html deleted file mode 100644 index 7e25480..0000000 --- a/phpBB2_old/docs/README.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - -phpBB 2.0.11 :: Readme - - - - - - - - - -
    - - - -
    - - - - - - -
    phpBB 2 : Creating CommunitiesphpBB 2.0.11 README
    - - -

    Thank you for downloading phpBB 2, the long awaited re-write of the popular phpBB 1.x online community forum. This README will guide through the basics of installation and operation of phpBB 2. Please ensure you read this and the accompanying documentation fully before proceeding with the installation.

    - -
      -
    1. Installing phpBB 2
    2. -
    3. Running phpBB 2
    4. -
        -
      1. Internationalisation (i18n)
      2. -
      3. Styles
      4. -
      5. Mods
      6. -
      -
    5. Getting help with phpBB 2
    6. -
        -
      1. Userguide
      2. -
      3. Community Forums
      4. -
      5. Internet Relay Chat
      6. -
      -
    7. Status of this version
    8. -
    9. Reporting Bugs
    10. -
        -
      1. Security related bugs
      2. -
      -
    11. Overview of current bug list
    12. -
    13. PHP compatibility issues
    14. -
        -
      1. Notice on PHP security issues
      2. -
      -
    15. Disclaimer
    16. -
    - -

    1. Installing phpBB 2

    - -

    Installation and upgrade instructions can be found in the INSTALL document contained in this distribution. If you are intending to upgrade from a previous phpBB 1.4.x installation we highly recommend you backup any existing data before proceeding!

    - -

    Please note that users of Release Candidate (RC) versions of phpBB 2 should run the update_to_205.php script BEFORE attempting to access your board. Failing to do so may result in errors and unexpected behaviour! While these won't do any damage they will prevent you using your board.

    - -

    If you are using RC-1 (pre) you may find some other DB changes have occured and should examine the schemas to see if your installation requires any modifications (note that most of these have already been discussed on the phpBB 2 forums and are handled by the update script). If you are uncomfortable doing any of this we recommend you re-install (you may backup your existing data if you wish, re-install phpBB 2 and then insert your backup).

    - -

    Users of phpBB 2.0 Beta-1 cannot directly upgrade to phpBB 2.0 RC-2, 3 or 4, sorry.

    - -

    2. Running phpBB 2

    - -

    Once installed phpBB 2.0 is easily managed by both admin and moderator control panels. If you need help or advice with phpBB 2 please see Section 3 below.

    - -

    2.i. Internationalisation, i18n

    - -

    A number of language packs and subSilver localisations are now available. You can find them on our official download page:

    - -

    http://www.phpbb.com/downloads.php

    - -

    This is the Official location for all support language sets. If you download a package from a 3rd party site you do so with the understanding that we cannot offer support. So please, do not ask for help in these cases!

    - -

    Installation of these packages is straightforward, simply download the required language pack and unarchive it into the languages/ folder. Please ensure you retain the directory structure when doing this! To install the subSilver image packs you should unarchive the file/s into the templates/subSilver/images directory, again you must retain the directory structure. Once installed the languages will become immediately available.

    - -

    If your language is not available please visit our forums where you will find a topic listing translations currently available or in preparation. This topic also gives you information should you wish to volunteer to translate a language not currently listed

    - -

    Please note that users who have upgraded to 2.0.11 from versions prior to RC-3 should will need to download new versions of the language/subSilver image packs. Any package downloaded prior to the availability of RC-3 will not function correctly with this version of phpBB 2.

    - -

    If you have upgraded from 2.0.0 and make use of non-English language packs you will benefit from downloading updated versions which will become available shortly. These introduce a number of strings which went missing from the first version plus a few updates and additions.

    - -

    2.ii. Styles

    - -

    Although phpBB Group are rather proud of the subSilver style (which has influenced many of our competitors boards updated designs!) we realise that it may not be to everyones tastes. Therefore phpBB 2 allows styles to be switched with relative ease. Firstly you need to locate and download a style you like. We maintain such a site at

    - -

    http://www.phpbb.com/styles/

    - -

    Please note that 3rd party styles downloaded for versions of phpBB 2 prior to its final (2.0.x) release will not function correctly. You should either remove these styles or (if available) update them to meet changes in 2.0.x.

    - -

    Once you have downloaded a style the usual next step is to unarchive (or upload the unarchived contents of) the package into your templates/ directory. You then need to visit Administration -> Styles -> Add, you should see the new style available, click add and it will become available for all your users.

    - -

    2.iii. Mods

    - -

    Although not officially supported by phpBB Group, phpBB 2 has a thriving mod (formerly known as hacks) scene. These third party modifications to the standard phpBB 2 extend its capabilities still further and can be found at:

    - -

    http://www.phpbb.com/mods

    - -

    Please remember that any bugs or other issues that occur after you have added any modification should NOT be reported to the bug tracker (see below). First remove the modification and see if the problem is resolved.

    - -

    Also remember that any modifications which modify the database in any way may render upgrading your forum to future versions more difficult unless we state otherwise. With all this said many users have and continue to utilise many of the mods already available with great success

    - -

    3. Getting help with phpBB 2

    - -

    phpBB 2 can seem a little daunting to new users in places, particularly with regard the permission system. The first thing you should do is check the FAQ which covers a few basic getting started questions. If you need additional help there are several places you should look.

    - -

    3.i. phpBB 2 Userguide

    - -

    A comprehensive userguide is now available online and can be accessed from the following location:

    - -

    http://www.phpbb.com/guide/phpBB_Users_Guide.html

    - -

    This covers everything from installation through setting permissions and managing users.

    - -

    3.ii. Community Forums

    - -

    phpBB Group maintains a thriving community where a number of people have generously decided to donate their time to help support users. This site can be found at:

    - -

    http://www.phpbb.com/

    - -

    If you do seek help via our forums please be sure to do a Search before posting. This may well save both you and us time and allow the developer, moderator and support groups to spend more time responding to people with unknown issues and problems. Please also remember that phpBB is an entirely volunteer effort, no one receives any compensation for the time they give, this includes moderators as well as developers. So please be respectful and mindful when awaiting responses.

    - -

    3.iii Internet Relay Chat

    - -

    Another place you may find help is our IRC channel. This operates on the Openprojects IRC network, irc.openprojects.net and the channel is #phpbb and can be accessed by any good IRC client such as mIRC, XChat, etc. Again, please do not abuse this service and be respectful of other users.

    - -

    4. Status of this version

    - -

    This is the second stable release of phpBB 2. The 2.0.x line is essentially feature frozen, point releases will see only bugs and such like fixed. Our next major release will be phpBB 2.2 and work is progressing on this (the unstable development version is 2.1). Please do not post questions asking when 2.2 will be available, no release date has been set. Feel free to suggest new features for phpBB 2.2, we already have a number of improvements in mind and these can be viewed using our task tracker:

    - -

    http://sourceforge.net/pm/task.php?group_project_id=13524&group_id=7885

    - -

    We do not guarantee that all these will appear in 2.2 but we will do our best! If your idea does not appear on this list please visit our feature request list:

    - -

    http://sourceforge.net/tracker/?atid=357885&group_id=7885

    - -

    Before submitting your idea please ensure you have read through the entries in that list. If your idea is similar to an existing one please feel free to add a comment to it. Please do not submit duplicate suggestions!

    - -

    For some suggestions we may ask for your feedback via our forums. For those interested in the development of phpBB 2.2 you should keep an eye on the community forums (particularly the Feature Discussion forum) where you may be able to influence the direction we take with certain new features. Finally you may like to visit our development forum to see how things are progressing:

    - -

    http://area51.phpbb.com/phpBB 2/

    - -

    Please note that this forum should NOT be used to obtain support for or ask questions about phpBB 2.0.x, the main community forums are the place for this. Any such posts will be locked and go unanswered.

    - -

    5. Reporting Bugs

    - -

    The phpBB Group uses a bug tracking system to store, list and manage all reported bugs, it can be found at the location listed below. Please DO NOT post bug reports to our forums, they will be locked. In addition please DO NOT use the bug tracker for support requests. Posting such a request will only see you directed to the support forums (while taking time away from working on real bugs).

    - -

    http://www.phpbb.com/bugs/

    - -

    While we very much appreciate receiving bug reports (the more reports the more stable phpBB 2 will be) we ask you carry out a few steps before adding new entries:

    -
      -
    • Firstly determine if your bug is reproduceable, how to determine this depends on the bug in question. Only if the bug is reproduceable is it likely to be a problem with phpBB 2.0 (or in some way connected). If something cannot be reproduced it may turn out to have been your hosting provider working on something, a user doing something silly, etc. Bug reports for non-reproduceable events can slow down our attempts to fix real, reproduceable issues

    • -
    • Next please read or search through the existing bug reports (remember to check open AND closed reports!) to see if your bug (or one very similar to it) is already listed. If it is please add to that existing bug rather than creating a new duplicate entry (all this does is slow us down).

    • -
    • Check the forums (use search!) to see if people have discussed anything that sounds similar to what you are seeing. However, as noted above please DO NOT post your particular bug to the forum unless it's non-reproduceable or you are sure it's related to something you have done rather phpBB 2.0

    • -
    • If no existing bug exists then please feel free to add it
    • -
    - -

    If you do post a new bug (i.e. one that isn't already listed in the bug tracker) firstly make sure you have logged in (your username and password are the same as for the community forums) then please include the following details:

    -
      -
    • Your server type/version, eg. Apache 1.2.22, IIS 4, Sambar, etc.
    • -
    • PHP version and mode of operation, eg. PHP 4.1.1 as a module, PHP 4.0.1 running as CGI, etc.
    • -
    • DB type/version, eg. MySQL 3.23.32, PostgreSQL 7.1.2, MSSQL Server 2000 SP1, etc.
    • -
    - -

    Please also be as detailed as you can in your report, if possible list the steps required to duplicate the problem. If you have a fix which you are VERY SURE works (and is consistent with our coding guidelines) and does not introduce further problems or incompatibilities please let us know. However only include it in the bug report if you really must, if we need it we'll ask you for it.

    - -

    Once a bug has been submitted you will be emailed any follow up comments added to it. Please if you are requested to supply additional information, do so! It is extremely frustrating for us to receive bug reports, ask for additional information but get nothing. In these cases we have a policy of closing the bug, which may leave a very real problem in place. Obviously we would rather not have this situation arise.

    - -

    5.i. Security related bugs

    - -

    If you find a potential security related vulnerability in phpBB 2 please DO NOT post it to the bug tracker, public forums, mailing lists, etc.! Doing so may allow unscrupulous users to take advantage of it before we have time to put a fix in place. All security related bugs should be sent directly to one or more of the developers.

    - -

    This can be done in one of three ways; email security@phpbb.com this is forwarded to all developers, PM one of the developers (see Developer usergroup list for usernames of all developers) or email them directly (either use their listed email address if available or username@phpbb.com where username is their board username). If emailing or PM'ing developers individually please send the message to several and not just one. If you obtain no response in a reasonable timeframe (a day or two) try the other listed developers.

    - -

    6. Overview of current bug list

    - -

    This list is not complete (see above link for full list) but does represent those bugs which may effect users on a wider scale. Other bugs listed in the tracker have typically been shown to be limited to certain setups or methods of installation/upgrade.

    - -
      -
    • First four characters of some posted content disappears - this is an issue with PHP not phpBB
    • -
    • Cannot post very large messages when using PostgreSQL 7.0.x (limitation of Postgresql 7.0.x)
    • -
    • By default cannot post very large messages with MSSQL (this can be configured within MSSQL)
    • -
    • Use of non-latin charsets with MSSQL may result in post data being cropped unexpectedly
    • -
    • Upgrade may fail to complete on large boards under some hosts
    • -
    • PHP 3 compatibility issues remain and we recommend you upgrade to PHP4 as soon as possible ( phpBB 2.0.x will be the last version to support PHP 3 ) -
    - -

    7. PHP compatibility issues

    - -

    Please remember that running any application on a developmental version of PHP can lead to strange/unexpected results which may appear to be bugs in the application (which may not be true). Therefore we recommend you upgrade to the newest stable version of PHP before running phpBB 2. If you are running a developmental version of PHP please check any bugs you find on a system running a stable release before submitting.

    - -

    This board has been developed and tested under Linux and Windows (amongst others) running IIS and Apache using MySQL 3.23 and 4.0.0, MSSQL Server 2000, MS Access 2000 and XP and PostgreSQL 7.x. Versions of PHP used range from 4.0.6 to 4.3.8 without problem. There may be unconfirmed issues with PHP 4.0.1 including patch level releases. If you experience problems with phpBB and have this PHP version installed it is recommended you upgrade it before posting bug reports.

    - -

    With the recent release of the official version of PHP 5, people and hosts may be switching to the latest PHP version. At this moment, the phpBB Team does not officially support running phpBB on PHP 5, as phpBB2.0.x was not written with PHP 5 in mind. However, many users have reported using it sucessfully on PHP 5 having made a configuration change in PHP to enable support for the deprecated HTTP_*_VARS arrays which is turned off by default in new PHP 5 installations. The relevant configuration option is register_long_arrays and it is decribed in the PHP Manual. phpBB 2.0.x makes use of these arrays in order to maintain backwards compatibility with PHP 3.x and early versions of PHP 4.x which is part of the original specification.
    -For this reason we do not support PHP 5 as platform for phpBB. It has been reported working, so you can try it. It's a risk you will be taking though.

    - -

    7.i. Notice on PHP security issues

    - -

    At the end of February 2002 a major security issue was found with PHP 3 and 4 which has resulted in many hosting providers disabling file uploads (although patches fixing the security issues are available and new versions of PHP 4 have been released).

    - -

    Because of this, and to cope with situations where hosts didn't allow such uploads anyway we have implemented various checks in phpBB 2. These checks prevent you from enabling or making use of functions which will not operate correctly on PHP as installed on your server. At this time this includes locally uploaded avatars and DB restore.

    - -

    Third party mods may also be effected but these are outside our control, you should contact the mod writer for more information.

    - -

    8. Copyright and disclaimer

    - -

    This application is opensource software released under the GPL. Please see source code and the Docs directory for more details. This package and its contents are Copyright © 2002 phpBB Group, All Rights Reserved.

    - - -
    - - - \ No newline at end of file diff --git a/phpBB2_old/docs/coding-guidelines.txt b/phpBB2_old/docs/coding-guidelines.txt deleted file mode 100644 index 700c9d0..0000000 --- a/phpBB2_old/docs/coding-guidelines.txt +++ /dev/null @@ -1,26 +0,0 @@ -CODING GUIDELINES : Initials by psoTFX (July 2001) ------------------ - -* The coding style is defined in the codingstandards.html file, all attempts should be made to follow it as closely as possible - -* All SQL should be cross-DB compatible, if DB specific SQL is used alternatives must be provided which work on all supported DB's (MySQL, MSSQL (7.0 and 2000), PostgreSQL (7.0+), Oracle8, ODBC (generalised if possible, otherwise MS Access, DB2)) - -* All SQL commands should utilise the DataBase Abstraction Layer (DBAL) - -* All URL's (and form actions) _must_ be wrapped in append_sid, this ensures the session_id is propagated when cookies aren't available - -* The minimum amount of data should be passed via GET or POST, checking should occur within individual scripts (to prevent spoofing of information) - -* The auth function should be used for all authorisation checking - -* Sessions should be initiated on each page, as near the top as possible using the session_pagestart function (userdata should be obtained by calling the init_userprefs immediately after session initialisation) - -* Login checks should be forwarded to the login page (supplying a page to forward onto once check is complete if required) - -* All template variables should be named appropriately (using underscores for spaces), language entries should be prefixed with L_, system data with S_, urls with U_, all other variables should be presented 'as is'. - -* Functions used by more than page should be placed in functions.php, functions specific to one page should be placed on that page (at the top to maintain compatibility with PHP3) surrounded by comments indicating the start and end of the function block - -* All messages/errors should be output by the message_die function using the appropriate message type (see function for details) - -* No attempt should be made to remove any copyright information (either contained within the source or displayed interactively when the source is run/compiled), neither should the copyright information be altered in any way (it may be added to) diff --git a/phpBB2_old/docs/codingstandards.htm b/phpBB2_old/docs/codingstandards.htm deleted file mode 100644 index 2952c0c..0000000 --- a/phpBB2_old/docs/codingstandards.htm +++ /dev/null @@ -1,327 +0,0 @@ - - -phpBB Coding Standard Guidelines - - - -

    phpBB Coding Standard Guidelines

    Comments or suggestions? email nate@phpbb.com

    Editor -Settings
    Naming -Conventions
    Code Layout
    General -Guidelines


    top -

    Editor Settings

    -

    Tabs vs Spaces: In order to make this as simple as possible, we will -be using tabs, not spaces. Feel free to set how many spaces your editor uses -when it displays tabs, but make sure that when you save the file, -it's saving tabs and not spaces. This way, we can each have the code be -displayed the way we like it, without breaking the layout of the actual files. -

    -

    Linefeeds: Ensure that your editor is saving files in the UNIX format. -This means lines are terminated with a newline, not with a CR/LF combo as they -are on Win32, or whatever the Mac uses. Any decent Win32 editor should be able -to do this, but it might not always be the default. Know your editor. If you -want advice on Windows text editors, just ask one of the developers. Some of -them do their editing on Win32.



    top -

    Naming Conventions

    -

    We will not be using any form of hungarian notation in our naming -conventions. Many of us believe that hungarian naming is one of the primary code -obfuscation techniques currently in use.

    -

    Variable Names: Variable names should be in all lowercase, with words -separated by an underscore.

        Example: $current_user is right, but $currentuser and $currentUser are not.

    Names should be descriptive, -but concise. We don't want huge sentences as our variable names, but typing an -extra couple of characters is always better than wondering what exactly a -certain variable is for.

    -

    Loop Indices: The only situation where a one-character variable -name is allowed is when it's the index for some looping construct. In this case, -the index of the outer loop should always be $i. If there's a loop inside that -loop, its index should be $j, followed by $k, and so on. If the loop is being -indexed by some already-existing variable with a meaningful name, this guideline -does not apply.

        Example:

    
    -		for ($i = 0; $i < $outer_size; $i++) 
    -		{
    -		   for ($j = 0; $j < $inner_size; $j++) 
    -		   {
    -		      foo($i, $j);
    -		   }
    -		} 
    -

    -

    Function Names: Functions should also be named descriptively. We're -not programming in C here, we don't want to write functions called things like -"stristr()". Again, all lower-case names with words separated by a single -underscore character. Function names should preferably have a verb in them -somewhere. Good function names are print_login_status(), get_user_data(), etc..

    -

    Function Arguments: Arguments are subject to the same guidelines as -variable names. We don't want a bunch of functions like: do_stuff($a, $b, $c). In most cases, we'd like to be able -to tell how to use a function by just looking at its declaration.

    -

    Summary: The basic philosophy here is to not hurt code clarity for the -sake of laziness. This has to be balanced by a little bit of common sense, -though; print_login_status_for_a_given_user() -goes too far, for example -- that function would be better named print_user_login_status() , or just print_login_status().



    top -

    Code Layout

    -

    Standard header for new files: Here a template of the header that must -be included at the start of all phpBB files:

    
    -		/***************************************************************************
    -		                                filename.php
    -		                             -------------------
    -		    begin                : Sat June 17 2000
    -		    copyright            : (C) 2000 The phpBB Group
    -		    email                : support@phpBB.com
    -		
    -		    $Id: codingstandards.htm,v 1.3 2001/06/09 21:00:12 natec Exp $
    -		
    -		 ***************************************************************************/
    -		
    -		/***************************************************************************
    -		 *                                         				                                
    -		 *   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 2 of the License, or	    	
    -		 *   (at your option) any later version.
    -		 *
    -		 ***************************************************************************/
    -	
    -

    -

    Always include the braces: This is another case of being too lazy to -type 2 extra characters causing problems with code clarity. Even if the body of -some construct is only one line long, do not drop the braces. Just don't. -

       Examples:

    
    -		/* These are all wrong. */
    -		if (condition)	do_stuff();
    -		if (condition)
    -			do_stuff();
    -		while (condition) 
    -			do_stuff();
    -		for ($i = 0; $i < size; $i++)
    -			do_stuff($i);
    -		
    -		/* These are right. */
    -		if (condition) 
    -		{
    -			do_stuff();
    -		}
    -		while (condition) 
    -		{
    -			do_stuff();
    -		}
    -		for ($i = 0; $i < size; $i++) 
    -		{
    -			do_stuff();
    -		}
    -	
    -

    -

    Where to put the braces: This one is a bit of a holy war, but we're -going to use a style that can be summed up in one sentence: Braces always go on -their own line. The closing brace should also always be at the same column as -the corresponding opening brace.

       Examples:

    
    -		if (condition) 
    -		{
    -			while (condition2)
    -			{
    -				...
    -			}
    -		}
    -		else 
    -		{
    -			...
    -		}
    -
    -		for ($i = 0; $i < $size; $i++) 
    -		{
    -			...
    -		}
    -		
    -		while (condition) 
    -		{
    -			...
    -		}
    -		
    -		function do_stuff() 
    -		{
    -			...
    -		}
    -	
    -

    -

    Use spaces between tokens: This is another simple, easy step that -helps keep code readable without much effort. Whenever you write an assignment, -expression, etc.. Always leave one space between the tokens. Basically, -write code as if it was English. Put spaces between variable names and -operators. Don't put spaces just after an opening bracket or before a closing -bracket. Don't put spaces just before a comma or a semicolon. This is best shown -with a few examples.

       Examples:

    
    -		/* Each pair shows the wrong way followed by the right way. */
    -		
    -		$i=0;
    -		$i = 0;
    -		
    -		if($i<7) ...
    -		if ($i < 7) ...
    -		
    -		if ( ($i < 7)&&($j > 8) ) ...
    -		if (($i < 7) && ($j > 8)) ...
    -		
    -		do_stuff( $i, "foo", $b );
    -		do_stuff($i, "foo", $b);
    -		
    -		for($i=0; $i<$size; $i++) ...
    -		for($i = 0; $i < $size; $i++) ... 
    -		
    -		$i=($j < $size)?0:1;
    -		$i = ($j < $size) ? 0 : 1;
    -	
    -

    -

    Operator precedence: Do you know the exact precedence of all the -operators in PHP? Neither do I. Don't guess. Always make it obvious by using -brackets to force the precedence of an equation so you know what it does. -

       Examples:

    
    -		/* what's the result? who knows. */
    -		$bool = ($i < 7 && $j > 8 || $k == 4);
    -		
    -		/* now you can be certain what I'm doing here. */
    -		$bool = (($i < 7) && (($j < 8) || ($k == 4)))
    -		
    -

    -

    SQL code layout: Since we'll all be using different editor settings, -don't try to do anything complex like aligning columns in SQL code. Do, however, -break statements onto their own lines. Here's a sample of how SQL code should -look. Note where the lines break, the capitalization, and the use of brackets. -

       Examples:

    
    -		SELECT field1 AS something, field2, field3
    -		FROM table a, table b
    -		WHERE (this = that) AND (this2 = that2)
    -		
    -

    -

    SQL insert statements: SQL INSERT statements can be written in two -different ways. Either you specify explicitly the columns being inserted, or -you rely on knowing the order of the columns in the database and do not -specify them. We want to use the former approach, where it is explicitly -stated whcih columns are being inserted. This means our application-level code -will not depend on the order of the fields in the database, and will not be broken -if we add additional fields (unless they're specified as NOT NULL, of course). -

       Examples:

    
    -		# This is not what we want.
    -		INSERT INTO mytable
    -		VALUES ('something', 1, 'else')
    -		
    -		# This is correct.
    -		INSERT INTO mytable (column1, column2, column3)
    -		VALUES ('something', 1, 'else')
    -		
    -



    top -

    General Guidelines

    -

    Quoting strings: There are two different ways to quote strings in PHP -- either with single quotes or with double quotes. The main difference is that -the parser does variable interpolation in double-quoted strings, but not in -single quoted strings. Because of this, you should always use single -quotes unless you specifically need variable interpolation to be done on -that string. This way, we can save the parser the trouble of parsing a bunch of -strings where no interpolation needs to be done. Also, if you are using a string -variable as part of a function call, you do not need to enclose that variable in -quotes. Again, this will just make unnecessary work for the parser. Note, -however, that nearly all of the escape sequences that exist for double-quoted -strings will not work with single-quoted strings. Be careful, and feel free to -break this guideline if it's making your code harder to read. -

       Examples:

    
    -		/* wrong */
    -		$str = "This is a really long string with no variables for the parser to find.";
    -		do_stuff("$str");
    -		
    -		/* right */
    -		$str = 'This is a really long string with no variables for the parser to find.';
    -		do_stuff($str);
    -		
    -

    -

    Associative array keys: In PHP, it's legal to use a literal string as -a key to an associative array without quoting that string. We don't want to do -this -- the string should always be quoted to avoid confusion. Note that this is -only when we're using a literal, not when we're using a variable. -

       Examples:

    
    -		/* wrong */
    -		$foo = $assoc_array[blah];
    -		
    -		/* right */
    -		$foo = $assoc_array['blah'];
    -		
    -

    -

    Comments: Each function should be preceded by a comment that tells a -programmer everything they need to know to use that function. The meaning of -every parameter, the expected input, and the output are required as a minimal -comment. The function's behaviour in error conditions (and what those error -conditions are) should also be present. Nobody should have to look at the actual -source of a function in order to be able to call it with confidence in their own -code.

    In addition, commenting any tricky, obscure, or otherwise -not-immediately-obvious code is clearly something we should be doing. Especially -important to document are any assumptions your code makes, or preconditions for -its proper operation. Any one of the developers should be able to look at any -part of the application and figure out what's going on in a reasonable amount of -time.

    -

    Magic numbers: Don't use them. Use named constants for any literal -value other than obvious special cases. Basically, it's OK to check if an array -has 0 elements by using the literal 0. It's not OK to assign some special -meaning to a number and then use it everywhere as a literal. This hurts -readability AND maintainability. Included in this guideline is that we should be -using the constants TRUE and FALSE in place of the literals 1 and 0 -- even -though they have the same values, it's more obvious what the actual logic is -when you use the named constants.

    -

    Shortcut operators: The only shortcut operators that cause readability -problems are the shortcut increment ($i++) and decrement ($j--) operators. These -operators should not be used as part of an expression. They can, however, be -used on their own line. Using them in expressions is just not worth the -headaches when debugging.

       Examples:

    
    -		/* wrong */
    -		$array[++$i] = $j;
    -		$array[$i++] = $k;
    -		
    -		
    -		/* right */
    -		$i++;
    -		$array[$i] = $j;
    -		
    -		$array[$i] = $k;
    -		$i++;
    -		
    -

    -

    Inline conditionals: Inline conditionals should only be used to do -very simple things. Preferably, they will only be used to do assignments, and -not for function calls or anything complex at all. They can be harmful to -readability if used incorrectly, so don't fall in love with saving typing by -using them.

       Examples:

    
    -		/* Bad place to use them */
    -		(($i < $size) && ($j > $size)) ? do_stuff($foo) : do_stuff($bar);
    -		
    -		
    -		/* OK place to use them */
    -		$min = ($i < $j) ? $i : $j;
    -		
    -

    -

    Don't use uninitialized variables. for phpBB 2, we intend to use a -higher level of run-time error reporting. This will mean that the use of an -uninitialized variable will be reported as an error. This will come up most -often when checking which HTML form variables were passed. These errors can be -avoided by using the built-in isset() function to check whether a variable has -been set.

       Examples:

    
    -		/* Old way */
    -		if ($forum) ...
    -		
    -		
    -		/* New way */
    -		if (isset($forum)) ...
    -		
    -



    Return -to top
    diff --git a/phpBB2_old/extension.inc b/phpBB2_old/extension.inc deleted file mode 100644 index 46a742f..0000000 --- a/phpBB2_old/extension.inc +++ /dev/null @@ -1,26 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2_old/faq.php b/phpBB2_old/faq.php deleted file mode 100644 index bc760a7..0000000 --- a/phpBB2_old/faq.php +++ /dev/null @@ -1,150 +0,0 @@ -set_filenames(array( - 'body' => 'faq_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$template->assign_vars(array( - 'L_FAQ_TITLE' => $l_title, - 'L_BACK_TO_TOP' => $lang['Back_to_top']) -); - -for($i = 0; $i < count($faq_block); $i++) -{ - if( count($faq_block[$i]) ) - { - $template->assign_block_vars('faq_block', array( - 'BLOCK_TITLE' => $faq_block_titles[$i]) - ); - $template->assign_block_vars('faq_block_link', array( - 'BLOCK_TITLE' => $faq_block_titles[$i]) - ); - - for($j = 0; $j < count($faq_block[$i]); $j++) - { - $row_color = ( !($j % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($j % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('faq_block.faq_row', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'FAQ_QUESTION' => $faq_block[$i][$j]['question'], - 'FAQ_ANSWER' => $faq_block[$i][$j]['answer'], - - 'U_FAQ_ID' => $faq_block[$i][$j]['id']) - ); - - $template->assign_block_vars('faq_block_link.faq_row_link', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'FAQ_LINK' => $faq_block[$i][$j]['question'], - - 'U_FAQ_LINK' => '#' . $faq_block[$i][$j]['id']) - ); - } - } -} - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/groupcp.php b/phpBB2_old/groupcp.php deleted file mode 100644 index 086fdda..0000000 --- a/phpBB2_old/groupcp.php +++ /dev/null @@ -1,1279 +0,0 @@ -' : ''; - break; - case USER_AVATAR_REMOTE: - $poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '' : ''; - break; - case USER_AVATAR_GALLERY: - $poster_avatar = ( $board_config['allow_avatar_local'] ) ? '' : ''; - break; - } - } - - if ( !empty($row['user_viewemail']) || $group_mod ) - { - $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $row['user_id']) : 'mailto:' . $row['user_email']; - - $email_img = '' . $lang['Send_email'] . ''; - $email = '' . $lang['Send_email'] . ''; - } - else - { - $email_img = ' '; - $email = ' '; - } - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']); - $profile_img = '' . $lang['Read_profile'] . ''; - $profile = '' . $lang['Read_profile'] . ''; - - $temp_url = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=" . $row['user_id']); - $pm_img = '' . $lang['Send_private_message'] . ''; - $pm = '' . $lang['Send_private_message'] . ''; - - $www_img = ( $row['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - $www = ( $row['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - - if ( !empty($row['user_icq']) ) - { - $icq_status_img = ''; - $icq_img = '' . $lang['ICQ'] . ''; - $icq = '' . $lang['ICQ'] . ''; - } - else - { - $icq_status_img = ''; - $icq_img = ''; - $icq = ''; - } - - $aim_img = ( $row['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - $aim = ( $row['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']); - $msn_img = ( $row['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - $msn = ( $row['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - - $yim_img = ( $row['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - $yim = ( $row['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - - $temp_url = append_sid("search.$phpEx?search_author=" . urlencode($username) . "&showresults=posts"); - $search_img = '' . $lang['Search_user_posts'] . ''; - $search = '' . $lang['Search_user_posts'] . ''; - - return; -} -// -// -------------------------- - -// -// Start session management -// -$userdata = session_pagestart($user_ip, PAGE_GROUPCP); -init_userprefs($userdata); -// -// End session management -// - -$script_name = preg_replace('/^\/?(.*?)\/?$/', "\\1", trim($board_config['script_path'])); -$script_name = ( $script_name != '' ) ? $script_name . '/groupcp.'.$phpEx : 'groupcp.'.$phpEx; -$server_name = trim($board_config['server_name']); -$server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://'; -$server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/'; - -$server_url = $server_protocol . $server_name . $server_port . $script_name; - -if ( isset($HTTP_GET_VARS[POST_GROUPS_URL]) || isset($HTTP_POST_VARS[POST_GROUPS_URL]) ) -{ - $group_id = ( isset($HTTP_POST_VARS[POST_GROUPS_URL]) ) ? intval($HTTP_POST_VARS[POST_GROUPS_URL]) : intval($HTTP_GET_VARS[POST_GROUPS_URL]); -} -else -{ - $group_id = ''; -} - -if ( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) ) -{ - $mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; - $mode = htmlspecialchars($mode); -} -else -{ - $mode = ''; -} - -$confirm = ( isset($HTTP_POST_VARS['confirm']) ) ? TRUE : 0; -$cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? TRUE : 0; - -$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0; - -// -// Default var values -// -$is_moderator = FALSE; - -if ( isset($HTTP_POST_VARS['groupstatus']) && $group_id ) -{ - if ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); - } - - $sql = "SELECT group_moderator - FROM " . GROUPS_TABLE . " - WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user and group information', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - - if ( $row['group_moderator'] != $userdata['user_id'] && $userdata['user_level'] != ADMIN ) - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Not_group_moderator'] . '

    ' . sprintf($lang['Click_return_group'], '', '') . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - - $sql = "UPDATE " . GROUPS_TABLE . " - SET group_type = " . intval($HTTP_POST_VARS['group_type']) . " - WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user and group information', '', __LINE__, __FILE__, $sql); - } - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Group_type_updated'] . '

    ' . sprintf($lang['Click_return_group'], '', '') . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - -} -else if ( isset($HTTP_POST_VARS['joingroup']) && $group_id ) -{ - // - // First, joining a group - // If the user isn't logged in redirect them to login - // - if ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); - } - - $sql = "SELECT ug.user_id, g.group_type - FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g - WHERE g.group_id = $group_id - AND g.group_type <> " . GROUP_HIDDEN . " - AND ug.group_id = g.group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user and group information', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - if ( $row['group_type'] == GROUP_OPEN ) - { - do - { - if ( $userdata['user_id'] == $row['user_id'] ) - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Already_member_group'] . '

    ' . sprintf($lang['Click_return_group'], '', '') . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - } while ( $row = $db->sql_fetchrow($result) ); - } - else - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['This_closed_group'] . '

    ' . sprintf($lang['Click_return_group'], '', '') . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_groups_exist']); - } - - $sql = "INSERT INTO " . USER_GROUP_TABLE . " (group_id, user_id, user_pending) - VALUES ($group_id, " . $userdata['user_id'] . ", 1)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Error inserting user group subscription", "", __LINE__, __FILE__, $sql); - } - - $sql = "SELECT u.user_email, u.username, u.user_lang, g.group_name - FROM ".USERS_TABLE . " u, " . GROUPS_TABLE . " g - WHERE u.user_id = g.group_moderator - AND g.group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Error getting group moderator data", "", __LINE__, __FILE__, $sql); - } - - $moderator = $db->sql_fetchrow($result); - - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->use_template('group_request', $moderator['user_lang']); - $emailer->email_address($moderator['user_email']); - $emailer->set_subject($lang['Group_request']); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'GROUP_MODERATOR' => $moderator['username'], - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
    ', "\n", "-- \n" . $board_config['board_email_sig']) : '', - - 'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . "=$group_id&validate=true") - ); - $emailer->send(); - $emailer->reset(); - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Group_joined'] . '

    ' . sprintf($lang['Click_return_group'], '', '') . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); -} -else if ( isset($HTTP_POST_VARS['unsub']) || isset($HTTP_POST_VARS['unsubpending']) && $group_id ) -{ - // - // Second, unsubscribing from a group - // Check for confirmation of unsub. - // - if ( $cancel ) - { - redirect(append_sid("groupcp.$phpEx", true)); - } - elseif ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); - } - - if ( $confirm ) - { - $sql = "DELETE FROM " . USER_GROUP_TABLE . " - WHERE user_id = " . $userdata['user_id'] . " - AND group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not delete group memebership data', '', __LINE__, __FILE__, $sql); - } - - if ( $userdata['user_level'] != ADMIN && $userdata['user_level'] == MOD ) - { - $sql = "SELECT COUNT(auth_mod) AS is_auth_mod - FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug - WHERE ug.user_id = " . $userdata['user_id'] . " - AND aa.group_id = ug.group_id - AND aa.auth_mod = 1"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain moderator status', '', __LINE__, __FILE__, $sql); - } - - if ( !($row = $db->sql_fetchrow($result)) ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . USER . " - WHERE user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql); - } - } - } - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Unsub_success'] . '

    ' . sprintf($lang['Click_return_group'], '', '') . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - $unsub_msg = ( isset($HTTP_POST_VARS['unsub']) ) ? $lang['Confirm_unsub'] : $lang['Confirm_unsub_pending']; - - $s_hidden_fields = ''; - - $page_title = $lang['Group_Control_Panel']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'confirm' => 'confirm_body.tpl') - ); - - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Confirm'], - 'MESSAGE_TEXT' => $unsub_msg, - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - 'S_CONFIRM_ACTION' => append_sid("groupcp.$phpEx"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); - - $template->pparse('confirm'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } - -} -else if ( $group_id ) -{ - // - // Did the group moderator get here through an email? - // If so, check to see if they are logged in. - // - if ( isset($HTTP_GET_VARS['validate']) ) - { - if ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); - } - } - - // - // For security, get the ID of the group moderator. - // - switch(SQL_LAYER) - { - case 'postgresql': - $sql = "SELECT g.group_moderator, g.group_type, aa.auth_mod - FROM " . GROUPS_TABLE . " g, " . AUTH_ACCESS_TABLE . " aa - WHERE g.group_id = $group_id - AND aa.group_id = g.group_id - UNION ( - SELECT g.group_moderator, g.group_type, NULL - FROM " . GROUPS_TABLE . " g - WHERE g.group_id = $group_id - AND NOT EXISTS ( - SELECT aa.group_id - FROM " . AUTH_ACCESS_TABLE . " aa - WHERE aa.group_id = g.group_id - ) - )"; - break; - - case 'oracle': - $sql = "SELECT g.group_moderator, g.group_type, aa.auth_mod - FROM " . GROUPS_TABLE . " g, " . AUTH_ACCESS_TABLE . " aa - WHERE g.group_id = $group_id - AND aa.group_id (+) = g.group_id"; - break; - - default: - $sql = "SELECT g.group_moderator, g.group_type, aa.auth_mod - FROM ( " . GROUPS_TABLE . " g - LEFT JOIN " . AUTH_ACCESS_TABLE . " aa ON aa.group_id = g.group_id ) - WHERE g.group_id = $group_id"; - break; - } - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get moderator information', '', __LINE__, __FILE__, $sql); - } - - if ( $group_info = $db->sql_fetchrow($result) ) - { - $group_moderator = $group_info['group_moderator']; - - if ( $group_moderator == $userdata['user_id'] || $userdata['user_level'] == ADMIN ) - { - $is_moderator = TRUE; - } - - // - // Handle Additions, removals, approvals and denials - // - if ( !empty($HTTP_POST_VARS['add']) || !empty($HTTP_POST_VARS['remove']) || isset($HTTP_POST_VARS['approve']) || isset($HTTP_POST_VARS['deny']) ) - { - if ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=groupcp.$phpEx&" . POST_GROUPS_URL . "=$group_id", true)); - } - - if ( !$is_moderator ) - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Not_group_moderator'] . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - - if ( isset($HTTP_POST_VARS['add']) ) - { - $username = ( isset($HTTP_POST_VARS['username']) ) ? phpbb_clean_username($HTTP_POST_VARS['username']) : ''; - - $sql = "SELECT user_id, user_email, user_lang, user_level - FROM " . USERS_TABLE . " - WHERE username = '" . str_replace("\'", "''", $username) . "'"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not get user information", $lang['Error'], __LINE__, __FILE__, $sql); - } - - if ( !($row = $db->sql_fetchrow($result)) ) - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Could_not_add_user'] . "

    " . sprintf($lang['Click_return_group'], "", "") . "

    " . sprintf($lang['Click_return_index'], "", ""); - - message_die(GENERAL_MESSAGE, $message); - } - - if ( $row['user_id'] == ANONYMOUS ) - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Could_not_anon_user'] . '

    ' . sprintf($lang['Click_return_group'], '', '') . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - - $sql = "SELECT ug.user_id, u.user_level - FROM " . USER_GROUP_TABLE . " ug, " . USERS_TABLE . " u - WHERE u.user_id = " . $row['user_id'] . " - AND ug.user_id = u.user_id - AND ug.group_id = $group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get user information', '', __LINE__, __FILE__, $sql); - } - - if ( !($db->sql_fetchrow($result)) ) - { - $sql = "INSERT INTO " . USER_GROUP_TABLE . " (user_id, group_id, user_pending) - VALUES (" . $row['user_id'] . ", $group_id, 0)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not add user to group', '', __LINE__, __FILE__, $sql); - } - - if ( $row['user_level'] != ADMIN && $row['user_level'] != MOD && $group_info['auth_mod'] ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . MOD . " - WHERE user_id = " . $row['user_id']; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql); - } - } - - // - // Get the group name - // Email the user and tell them they're in the group - // - $group_sql = "SELECT group_name - FROM " . GROUPS_TABLE . " - WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($group_sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get group information', '', __LINE__, __FILE__, $group_sql); - } - - $group_name_row = $db->sql_fetchrow($result); - - $group_name = $group_name_row['group_name']; - - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->use_template('group_added', $row['user_lang']); - $emailer->email_address($row['user_email']); - $emailer->set_subject($lang['Group_added']); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'GROUP_NAME' => $group_name, - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
    ', "\n", "-- \n" . $board_config['board_email_sig']) : '', - - 'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . "=$group_id") - ); - $emailer->send(); - $emailer->reset(); - } - else - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['User_is_member_group'] . '

    ' . sprintf($lang['Click_return_group'], '', '') . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - } - else - { - if ( ( ( isset($HTTP_POST_VARS['approve']) || isset($HTTP_POST_VARS['deny']) ) && isset($HTTP_POST_VARS['pending_members']) ) || ( isset($HTTP_POST_VARS['remove']) && isset($HTTP_POST_VARS['members']) ) ) - { - - $members = ( isset($HTTP_POST_VARS['approve']) || isset($HTTP_POST_VARS['deny']) ) ? $HTTP_POST_VARS['pending_members'] : $HTTP_POST_VARS['members']; - - $sql_in = ''; - for($i = 0; $i < count($members); $i++) - { - $sql_in .= ( ( $sql_in != '' ) ? ', ' : '' ) . intval($members[$i]); - } - - if ( isset($HTTP_POST_VARS['approve']) ) - { - if ( $group_info['auth_mod'] ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . MOD . " - WHERE user_id IN ($sql_in) - AND user_level NOT IN (" . MOD . ", " . ADMIN . ")"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql); - } - } - - $sql = "UPDATE " . USER_GROUP_TABLE . " - SET user_pending = 0 - WHERE user_id IN ($sql_in) - AND group_id = $group_id"; - $sql_select = "SELECT user_email - FROM ". USERS_TABLE . " - WHERE user_id IN ($sql_in)"; - } - else if ( isset($HTTP_POST_VARS['deny']) || isset($HTTP_POST_VARS['remove']) ) - { - if ( $group_info['auth_mod'] ) - { - $sql = "SELECT ug.user_id, ug.group_id - FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug - WHERE ug.user_id IN ($sql_in) - AND aa.group_id = ug.group_id - AND aa.auth_mod = 1 - GROUP BY ug.user_id, ug.group_id - ORDER BY ug.user_id, ug.group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain moderator status', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $group_check = array(); - $remove_mod_sql = ''; - - do - { - $group_check[$row['user_id']][] = $row['group_id']; - } - while ( $row = $db->sql_fetchrow($result) ); - - while( list($user_id, $group_list) = @each($group_check) ) - { - if ( count($group_list) == 1 ) - { - $remove_mod_sql .= ( ( $remove_mod_sql != '' ) ? ', ' : '' ) . $user_id; - } - } - - if ( $remove_mod_sql != '' ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_level = " . USER . " - WHERE user_id IN ($remove_mod_sql) - AND user_level NOT IN (" . ADMIN . ")"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update user level', '', __LINE__, __FILE__, $sql); - } - } - } - } - - $sql = "DELETE FROM " . USER_GROUP_TABLE . " - WHERE user_id IN ($sql_in) - AND group_id = $group_id"; - } - - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update user group table', '', __LINE__, __FILE__, $sql); - } - - // - // Email users when they are approved - // - if ( isset($HTTP_POST_VARS['approve']) ) - { - if ( !($result = $db->sql_query($sql_select)) ) - { - message_die(GENERAL_ERROR, 'Could not get user email information', '', __LINE__, __FILE__, $sql); - } - - $bcc_list = array(); - while ($row = $db->sql_fetchrow($result)) - { - $bcc_list[] = $row['user_email']; - } - - // - // Get the group name - // - $group_sql = "SELECT group_name - FROM " . GROUPS_TABLE . " - WHERE group_id = $group_id"; - if ( !($result = $db->sql_query($group_sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get group information', '', __LINE__, __FILE__, $group_sql); - } - - $group_name_row = $db->sql_fetchrow($result); - $group_name = $group_name_row['group_name']; - - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - for ($i = 0; $i < count($bcc_list); $i++) - { - $emailer->bcc($bcc_list[$i]); - } - - $emailer->use_template('group_approved'); - $emailer->set_subject($lang['Group_approved']); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'GROUP_NAME' => $group_name, - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
    ', "\n", "-- \n" . $board_config['board_email_sig']) : '', - - 'U_GROUPCP' => $server_url . '?' . POST_GROUPS_URL . "=$group_id") - ); - $emailer->send(); - $emailer->reset(); - } - } - } - } - // - // END approve or deny - // - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_groups_exist']); - } - - // - // Get group details - // - $sql = "SELECT * - FROM " . GROUPS_TABLE . " - WHERE group_id = $group_id - AND group_single_user = 0"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql); - } - - if ( !($group_info = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_MESSAGE, $lang['Group_not_exist']); - } - - // - // Get moderator details for this group - // - $sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm - FROM " . USERS_TABLE . " - WHERE user_id = " . $group_info['group_moderator']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting user list for group', '', __LINE__, __FILE__, $sql); - } - - $group_moderator = $db->sql_fetchrow($result); - - // - // Get user information for this group - // - $sql = "SELECT u.username, u.user_id, u.user_viewemail, u.user_posts, u.user_regdate, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_msnm, ug.user_pending - FROM " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " ug - WHERE ug.group_id = $group_id - AND u.user_id = ug.user_id - AND ug.user_pending = 0 - AND ug.user_id <> " . $group_moderator['user_id'] . " - ORDER BY u.username"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting user list for group', '', __LINE__, __FILE__, $sql); - } - - $group_members = $db->sql_fetchrowset($result); - $members_count = count($group_members); - $db->sql_freeresult($result); - - $sql = "SELECT u.username, u.user_id, u.user_viewemail, u.user_posts, u.user_regdate, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_msnm - FROM " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug, " . USERS_TABLE . " u - WHERE ug.group_id = $group_id - AND g.group_id = ug.group_id - AND ug.user_pending = 1 - AND u.user_id = ug.user_id - ORDER BY u.username"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting user pending information', '', __LINE__, __FILE__, $sql); - } - - $modgroup_pending_list = $db->sql_fetchrowset($result); - $modgroup_pending_count = count($modgroup_pending_list); - $db->sql_freeresult($result); - - $is_group_member = 0; - if ( $members_count ) - { - for($i = 0; $i < $members_count; $i++) - { - if ( $group_members[$i]['user_id'] == $userdata['user_id'] && $userdata['session_logged_in'] ) - { - $is_group_member = TRUE; - } - } - } - - $is_group_pending_member = 0; - if ( $modgroup_pending_count ) - { - for($i = 0; $i < $modgroup_pending_count; $i++) - { - if ( $modgroup_pending_list[$i]['user_id'] == $userdata['user_id'] && $userdata['session_logged_in'] ) - { - $is_group_pending_member = TRUE; - } - } - } - - if ( $userdata['user_level'] == ADMIN ) - { - $is_moderator = TRUE; - } - - if ( $userdata['user_id'] == $group_info['group_moderator'] ) - { - $is_moderator = TRUE; - - $group_details = $lang['Are_group_moderator']; - - $s_hidden_fields = ''; - } - else if ( $is_group_member || $is_group_pending_member ) - { - $template->assign_block_vars('switch_unsubscribe_group_input', array()); - - $group_details = ( $is_group_pending_member ) ? $lang['Pending_this_group'] : $lang['Member_this_group']; - - $s_hidden_fields = ''; - } - else if ( $userdata['user_id'] == ANONYMOUS ) - { - $group_details = $lang['Login_to_join']; - $s_hidden_fields = ''; - } - else - { - if ( $group_info['group_type'] == GROUP_OPEN ) - { - $template->assign_block_vars('switch_subscribe_group_input', array()); - - $group_details = $lang['This_open_group']; - $s_hidden_fields = ''; - } - else if ( $group_info['group_type'] == GROUP_CLOSED ) - { - $group_details = $lang['This_closed_group']; - $s_hidden_fields = ''; - } - else if ( $group_info['group_type'] == GROUP_HIDDEN ) - { - $group_details = $lang['This_hidden_group']; - $s_hidden_fields = ''; - } - } - - $page_title = $lang['Group_Control_Panel']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - // - // Load templates - // - $template->set_filenames(array( - 'info' => 'groupcp_info_body.tpl', - 'pendinginfo' => 'groupcp_pending_info.tpl') - ); - make_jumpbox('viewforum.'.$phpEx); - - // - // Add the moderator - // - $username = $group_moderator['username']; - $user_id = $group_moderator['user_id']; - - generate_user_info($group_moderator, $board_config['default_dateformat'], $is_moderator, $from, $posts, $joined, $poster_avatar, $profile_img, $profile, $search_img, $search, $pm_img, $pm, $email_img, $email, $www_img, $www, $icq_status_img, $icq_img, $icq, $aim_img, $aim, $msn_img, $msn, $yim_img, $yim); - - $s_hidden_fields .= ''; - - $template->assign_vars(array( - 'L_GROUP_INFORMATION' => $lang['Group_Information'], - 'L_GROUP_NAME' => $lang['Group_name'], - 'L_GROUP_DESC' => $lang['Group_description'], - 'L_GROUP_TYPE' => $lang['Group_type'], - 'L_GROUP_MEMBERSHIP' => $lang['Group_membership'], - 'L_SUBSCRIBE' => $lang['Subscribe'], - 'L_UNSUBSCRIBE' => $lang['Unsubscribe'], - 'L_JOIN_GROUP' => $lang['Join_group'], - 'L_UNSUBSCRIBE_GROUP' => $lang['Unsubscribe'], - 'L_GROUP_OPEN' => $lang['Group_open'], - 'L_GROUP_CLOSED' => $lang['Group_closed'], - 'L_GROUP_HIDDEN' => $lang['Group_hidden'], - 'L_UPDATE' => $lang['Update'], - 'L_GROUP_MODERATOR' => $lang['Group_Moderator'], - 'L_GROUP_MEMBERS' => $lang['Group_Members'], - 'L_PENDING_MEMBERS' => $lang['Pending_members'], - 'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'], - 'L_PM' => $lang['Private_Message'], - 'L_EMAIL' => $lang['Email'], - 'L_POSTS' => $lang['Posts'], - 'L_WEBSITE' => $lang['Website'], - 'L_FROM' => $lang['Location'], - 'L_ORDER' => $lang['Order'], - 'L_SORT' => $lang['Sort'], - 'L_SUBMIT' => $lang['Sort'], - 'L_AIM' => $lang['AIM'], - 'L_YIM' => $lang['YIM'], - 'L_MSNM' => $lang['MSNM'], - 'L_ICQ' => $lang['ICQ'], - 'L_SELECT' => $lang['Select'], - 'L_REMOVE_SELECTED' => $lang['Remove_selected'], - 'L_ADD_MEMBER' => $lang['Add_member'], - 'L_FIND_USERNAME' => $lang['Find_username'], - - 'GROUP_NAME' => $group_info['group_name'], - 'GROUP_DESC' => $group_info['group_description'], - 'GROUP_DETAILS' => $group_details, - 'MOD_ROW_COLOR' => '#' . $theme['td_color1'], - 'MOD_ROW_CLASS' => $theme['td_class1'], - 'MOD_USERNAME' => $username, - 'MOD_FROM' => $from, - 'MOD_JOINED' => $joined, - 'MOD_POSTS' => $posts, - 'MOD_AVATAR_IMG' => $poster_avatar, - 'MOD_PROFILE_IMG' => $profile_img, - 'MOD_PROFILE' => $profile, - 'MOD_SEARCH_IMG' => $search_img, - 'MOD_SEARCH' => $search, - 'MOD_PM_IMG' => $pm_img, - 'MOD_PM' => $pm, - 'MOD_EMAIL_IMG' => $email_img, - 'MOD_EMAIL' => $email, - 'MOD_WWW_IMG' => $www_img, - 'MOD_WWW' => $www, - 'MOD_ICQ_STATUS_IMG' => $icq_status_img, - 'MOD_ICQ_IMG' => $icq_img, - 'MOD_ICQ' => $icq, - 'MOD_AIM_IMG' => $aim_img, - 'MOD_AIM' => $aim, - 'MOD_MSN_IMG' => $msn_img, - 'MOD_MSN' => $msn, - 'MOD_YIM_IMG' => $yim_img, - 'MOD_YIM' => $yim, - - 'U_MOD_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"), - 'U_SEARCH_USER' => append_sid("search.$phpEx?mode=searchuser"), - - 'S_GROUP_OPEN_TYPE' => GROUP_OPEN, - 'S_GROUP_CLOSED_TYPE' => GROUP_CLOSED, - 'S_GROUP_HIDDEN_TYPE' => GROUP_HIDDEN, - 'S_GROUP_OPEN_CHECKED' => ( $group_info['group_type'] == GROUP_OPEN ) ? ' checked="checked"' : '', - 'S_GROUP_CLOSED_CHECKED' => ( $group_info['group_type'] == GROUP_CLOSED ) ? ' checked="checked"' : '', - 'S_GROUP_HIDDEN_CHECKED' => ( $group_info['group_type'] == GROUP_HIDDEN ) ? ' checked="checked"' : '', - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_MODE_SELECT' => $select_sort_mode, - 'S_ORDER_SELECT' => $select_sort_order, - 'S_GROUPCP_ACTION' => append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id")) - ); - - // - // Dump out the remaining users - // - for($i = $start; $i < min($board_config['topics_per_page'] + $start, $members_count); $i++) - { - $username = $group_members[$i]['username']; - $user_id = $group_members[$i]['user_id']; - - generate_user_info($group_members[$i], $board_config['default_dateformat'], $is_moderator, $from, $posts, $joined, $poster_avatar, $profile_img, $profile, $search_img, $search, $pm_img, $pm, $email_img, $email, $www_img, $www, $icq_status_img, $icq_img, $icq, $aim_img, $aim, $msn_img, $msn, $yim_img, $yim); - - if ( $group_info['group_type'] != GROUP_HIDDEN || $is_group_member || $is_moderator ) - { - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('member_row', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'USERNAME' => $username, - 'FROM' => $from, - 'JOINED' => $joined, - 'POSTS' => $posts, - 'USER_ID' => $user_id, - 'AVATAR_IMG' => $poster_avatar, - 'PROFILE_IMG' => $profile_img, - 'PROFILE' => $profile, - 'SEARCH_IMG' => $search_img, - 'SEARCH' => $search, - 'PM_IMG' => $pm_img, - 'PM' => $pm, - 'EMAIL_IMG' => $email_img, - 'EMAIL' => $email, - 'WWW_IMG' => $www_img, - 'WWW' => $www, - 'ICQ_STATUS_IMG' => $icq_status_img, - 'ICQ_IMG' => $icq_img, - 'ICQ' => $icq, - 'AIM_IMG' => $aim_img, - 'AIM' => $aim, - 'MSN_IMG' => $msn_img, - 'MSN' => $msn, - 'YIM_IMG' => $yim_img, - 'YIM' => $yim, - - 'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id")) - ); - - if ( $is_moderator ) - { - $template->assign_block_vars('member_row.switch_mod_option', array()); - } - } - } - - if ( !$members_count ) - { - // - // No group members - // - $template->assign_block_vars('switch_no_members', array()); - $template->assign_vars(array( - 'L_NO_MEMBERS' => $lang['No_group_members']) - ); - } - - $current_page = ( !$members_count ) ? 1 : ceil( $members_count / $board_config['topics_per_page'] ); - - $template->assign_vars(array( - 'PAGINATION' => generate_pagination("groupcp.$phpEx?" . POST_GROUPS_URL . "=$group_id", $members_count, $board_config['topics_per_page'], $start), - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), $current_page ), - - 'L_GOTO_PAGE' => $lang['Goto_page']) - ); - - if ( $group_info['group_type'] == GROUP_HIDDEN && !$is_group_member && !$is_moderator ) - { - // - // No group members - // - $template->assign_block_vars('switch_hidden_group', array()); - $template->assign_vars(array( - 'L_HIDDEN_MEMBERS' => $lang['Group_hidden_members']) - ); - } - - // - // We've displayed the members who belong to the group, now we - // do that pending memebers... - // - if ( $is_moderator ) - { - // - // Users pending in ONLY THIS GROUP (which is moderated by this user) - // - if ( $modgroup_pending_count ) - { - for($i = 0; $i < $modgroup_pending_count; $i++) - { - $username = $modgroup_pending_list[$i]['username']; - $user_id = $modgroup_pending_list[$i]['user_id']; - - generate_user_info($modgroup_pending_list[$i], $board_config['default_dateformat'], $is_moderator, $from, $posts, $joined, $poster_avatar, $profile_img, $profile, $search_img, $search, $pm_img, $pm, $email_img, $email, $www_img, $www, $icq_status_img, $icq_img, $icq, $aim_img, $aim, $msn_img, $msn, $yim_img, $yim); - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $user_select = ''; - - $template->assign_block_vars('pending_members_row', array( - 'ROW_CLASS' => $row_class, - 'ROW_COLOR' => '#' . $row_color, - 'USERNAME' => $username, - 'FROM' => $from, - 'JOINED' => $joined, - 'POSTS' => $posts, - 'USER_ID' => $user_id, - 'AVATAR_IMG' => $poster_avatar, - 'PROFILE_IMG' => $profile_img, - 'PROFILE' => $profile, - 'SEARCH_IMG' => $search_img, - 'SEARCH' => $search, - 'PM_IMG' => $pm_img, - 'PM' => $pm, - 'EMAIL_IMG' => $email_img, - 'EMAIL' => $email, - 'WWW_IMG' => $www_img, - 'WWW' => $www, - 'ICQ_STATUS_IMG' => $icq_status_img, - 'ICQ_IMG' => $icq_img, - 'ICQ' => $icq, - 'AIM_IMG' => $aim_img, - 'AIM' => $aim, - 'MSN_IMG' => $msn_img, - 'MSN' => $msn, - 'YIM_IMG' => $yim_img, - 'YIM' => $yim, - - 'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id")) - ); - } - - $template->assign_block_vars('switch_pending_members', array() ); - - $template->assign_vars(array( - 'L_SELECT' => $lang['Select'], - 'L_APPROVE_SELECTED' => $lang['Approve_selected'], - 'L_DENY_SELECTED' => $lang['Deny_selected']) - ); - - $template->assign_var_from_handle('PENDING_USER_BOX', 'pendinginfo'); - - } - } - - if ( $is_moderator ) - { - $template->assign_block_vars('switch_mod_option', array()); - $template->assign_block_vars('switch_add_member', array()); - } - - $template->pparse('info'); -} -else -{ - // - // Show the main groupcp.php screen where the user can select a group. - // - // Select all group that the user is a member of or where the user has - // a pending membership. - // - $in_group = array(); - - if ( $userdata['session_logged_in'] ) - { - $sql = "SELECT g.group_id, g.group_name, g.group_type, ug.user_pending - FROM " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug - WHERE ug.user_id = " . $userdata['user_id'] . " - AND ug.group_id = g.group_id - AND g.group_single_user <> " . TRUE . " - ORDER BY g.group_name, ug.user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $in_group = array(); - $s_member_groups_opt = ''; - $s_pending_groups_opt = ''; - - do - { - $in_group[] = $row['group_id']; - if ( $row['user_pending'] ) - { - $s_pending_groups_opt .= ''; - } - else - { - $s_member_groups_opt .= ''; - } - } - while( $row = $db->sql_fetchrow($result) ); - - $s_pending_groups = '"; - $s_member_groups = '"; - } - } - - // - // Select all other groups i.e. groups that this user is not a member of - // - $ignore_group_sql = ( count($in_group) ) ? "AND group_id NOT IN (" . implode(', ', $in_group) . ")" : ''; - $sql = "SELECT group_id, group_name, group_type - FROM " . GROUPS_TABLE . " g - WHERE group_single_user <> " . TRUE . " - $ignore_group_sql - ORDER BY g.group_name"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql); - } - - $s_group_list_opt = ''; - while( $row = $db->sql_fetchrow($result) ) - { - if ( $row['group_type'] != GROUP_HIDDEN || $userdata['user_level'] == ADMIN ) - { - $s_group_list_opt .=''; - } - } - $s_group_list = ''; - - if ( $s_group_list_opt != '' || $s_pending_groups_opt != '' || $s_member_groups_opt != '' ) - { - // - // Load and process templates - // - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'user' => 'groupcp_user_body.tpl') - ); - make_jumpbox('viewforum.'.$phpEx); - - if ( $s_pending_groups_opt != '' || $s_member_groups_opt != '' ) - { - $template->assign_block_vars('switch_groups_joined', array() ); - } - - if ( $s_member_groups_opt != '' ) - { - $template->assign_block_vars('switch_groups_joined.switch_groups_member', array() ); - } - - if ( $s_pending_groups_opt != '' ) - { - $template->assign_block_vars('switch_groups_joined.switch_groups_pending', array() ); - } - - if ( $s_group_list_opt != '' ) - { - $template->assign_block_vars('switch_groups_remaining', array() ); - } - - $s_hidden_fields = ''; - - $template->assign_vars(array( - 'L_GROUP_MEMBERSHIP_DETAILS' => $lang['Group_member_details'], - 'L_JOIN_A_GROUP' => $lang['Group_member_join'], - 'L_YOU_BELONG_GROUPS' => $lang['Current_memberships'], - 'L_SELECT_A_GROUP' => $lang['Non_member_groups'], - 'L_PENDING_GROUPS' => $lang['Memberships_pending'], - 'L_SUBSCRIBE' => $lang['Subscribe'], - 'L_UNSUBSCRIBE' => $lang['Unsubscribe'], - 'L_VIEW_INFORMATION' => $lang['View_Information'], - - 'S_USERGROUP_ACTION' => append_sid("groupcp.$phpEx"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - - 'GROUP_LIST_SELECT' => $s_group_list, - 'GROUP_PENDING_SELECT' => $s_pending_groups, - 'GROUP_MEMBER_SELECT' => $s_member_groups) - ); - - $template->pparse('user'); - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_groups_exist']); - } - -} - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/hs_err_pid14072.log b/phpBB2_old/hs_err_pid14072.log deleted file mode 100644 index 69d5b00..0000000 --- a/phpBB2_old/hs_err_pid14072.log +++ /dev/null @@ -1,203 +0,0 @@ - -Unexpected Signal : 11 occurred at PC=0x2A95DF3ADA -Function=(null) -Library=/usr/lib/j2se/1.4/jre/lib/amd64/server/libjvm.so - -NOTE: We are unable to locate the function name symbol for the error - just occurred. Please refer to release documentation for possible - reason and solutions. - - -Current Java thread: - at sun.plugin.navig.motif.AThread.handleRequest(Native Method) - at sun.plugin.navig.motif.AThread.JNIHandleLoop(AThread.java:35) - at sun.plugin.navig.motif.AThread.run(AThread.java:27) - -Dynamic libraries: -40000000-40003000 r-xp 00000000 03:03 311764 /usr/lib/j2se/1.4/jre/bin/java_vm -40102000-40103000 rwxp 00002000 03:03 311764 /usr/lib/j2se/1.4/jre/bin/java_vm -2a95556000-2a9556a000 r-xp 00000000 03:01 233033 /lib/ld-2.3.2.so -2a9556a000-2a9556b000 rwxp 2a9556a000 00:00 0 -2a95578000-2a95579000 rwxp 2a95578000 00:00 0 -2a9566a000-2a9566c000 rwxp 00014000 03:01 233033 /lib/ld-2.3.2.so -2a9566c000-2a9567a000 r-xp 00000000 03:01 233052 /lib/libpthread-0.60.so -2a9567a000-2a9576c000 ---p 0000e000 03:01 233052 /lib/libpthread-0.60.so -2a9576c000-2a9577c000 rwxp 00000000 03:01 233052 /lib/libpthread-0.60.so -2a9577c000-2a95780000 rwxp 2a9577c000 00:00 0 -2a95780000-2a95783000 r-xp 00000000 03:01 233041 /lib/libdl-2.3.2.so -2a95783000-2a95880000 ---p 00003000 03:01 233041 /lib/libdl-2.3.2.so -2a95880000-2a95883000 rwxp 00000000 03:01 233041 /lib/libdl-2.3.2.so -2a95883000-2a959a5000 r-xp 00000000 03:01 233039 /lib/libc-2.3.2.so -2a959a5000-2a95a83000 ---p 00122000 03:01 233039 /lib/libc-2.3.2.so -2a95a83000-2a95abe000 rwxp 00100000 03:01 233039 /lib/libc-2.3.2.so -2a95abe000-2a95ac3000 rwxp 2a95abe000 00:00 0 -2a95ac3000-2a96006000 r-xp 00000000 03:03 312232 /usr/lib/j2se/1.4/jre/lib/amd64/server/libjvm.so -2a96006000-2a960c3000 ---p 00543000 03:03 312232 /usr/lib/j2se/1.4/jre/lib/amd64/server/libjvm.so -2a960c3000-2a96232000 rwxp 00500000 03:03 312232 /usr/lib/j2se/1.4/jre/lib/amd64/server/libjvm.so -2a96232000-2a96263000 rwxp 2a96232000 00:00 0 -2a96270000-2a96282000 r-xp 00000000 03:01 233044 /lib/libnsl-2.3.2.so -2a96282000-2a96370000 ---p 00012000 03:01 233044 /lib/libnsl-2.3.2.so -2a96370000-2a96384000 rwxp 00000000 03:01 233044 /lib/libnsl-2.3.2.so -2a96384000-2a96386000 rwxp 2a96384000 00:00 0 -2a96386000-2a96409000 r-xp 00000000 03:01 233042 /lib/libm-2.3.2.so -2a96409000-2a96486000 ---p 00083000 03:01 233042 /lib/libm-2.3.2.so -2a96486000-2a9650c000 rwxp 00000000 03:01 233042 /lib/libm-2.3.2.so -2a9650c000-2a96514000 r-xp 00000000 03:03 312221 /usr/lib/j2se/1.4/jre/lib/amd64/native_threads/libhpi.so -2a96514000-2a9660c000 ---p 00008000 03:03 312221 /usr/lib/j2se/1.4/jre/lib/amd64/native_threads/libhpi.so -2a9660c000-2a96616000 rwxp 00000000 03:03 312221 /usr/lib/j2se/1.4/jre/lib/amd64/native_threads/libhpi.so -2a96616000-2a96617000 rwxp 2a96616000 00:00 0 -2a96617000-2a9661b000 rwxs 00000000 03:07 159434 /tmp/hsperfdata_frederik/14072 -2a96624000-2a9662b000 r-xp 00000000 03:01 233045 /lib/libnss_compat-2.3.2.so -2a9662b000-2a96724000 ---p 00007000 03:01 233045 /lib/libnss_compat-2.3.2.so -2a96724000-2a9672c000 rwxp 00000000 03:01 233045 /lib/libnss_compat-2.3.2.so -2a9672c000-2a96735000 r-xp 00000000 03:01 233049 /lib/libnss_nis-2.3.2.so -2a96735000-2a9682c000 ---p 00009000 03:01 233049 /lib/libnss_nis-2.3.2.so -2a9682c000-2a96836000 rwxp 00000000 03:01 233049 /lib/libnss_nis-2.3.2.so -2a96836000-2a9683f000 r-xp 00000000 03:01 233047 /lib/libnss_files-2.3.2.so -2a9683f000-2a96936000 ---p 00009000 03:01 233047 /lib/libnss_files-2.3.2.so -2a96936000-2a96940000 rwxp 00000000 03:01 233047 /lib/libnss_files-2.3.2.so -2a96940000-2a96952000 r-xp 00000000 03:03 312214 /usr/lib/j2se/1.4/jre/lib/amd64/libverify.so -2a96952000-2a96a40000 ---p 00012000 03:03 312214 /usr/lib/j2se/1.4/jre/lib/amd64/libverify.so -2a96a40000-2a96a54000 rwxp 00000000 03:03 312214 /usr/lib/j2se/1.4/jre/lib/amd64/libverify.so -2a96a54000-2a96a74000 r-xp 00000000 03:03 312226 /usr/lib/j2se/1.4/jre/lib/amd64/libjava.so -2a96a74000-2a96b54000 ---p 00020000 03:03 312226 /usr/lib/j2se/1.4/jre/lib/amd64/libjava.so -2a96b54000-2a96b79000 rwxp 00000000 03:03 312226 /usr/lib/j2se/1.4/jre/lib/amd64/libjava.so -2a96b79000-2a96b8a000 r-xp 00000000 03:03 312219 /usr/lib/j2se/1.4/jre/lib/amd64/libzip.so -2a96b8a000-2a96c79000 ---p 00011000 03:03 312219 /usr/lib/j2se/1.4/jre/lib/amd64/libzip.so -2a96c79000-2a96c8d000 rwxp 00000000 03:03 312219 /usr/lib/j2se/1.4/jre/lib/amd64/libzip.so -2a96c8d000-2a98638000 r-xs 00000000 03:03 312315 /usr/lib/j2se/1.4/jre/lib/rt.jar -2a98638000-2a98682000 rwxp 2a98638000 00:00 0 -2a98682000-2a98698000 r-xs 00000000 03:03 312274 /usr/lib/j2se/1.4/jre/lib/sunrsasign.jar -2a98698000-2a98775000 r-xs 00000000 03:03 312258 /usr/lib/j2se/1.4/jre/lib/jsse.jar -2a98775000-2a98786000 r-xs 00000000 03:03 312313 /usr/lib/j2se/1.4/jre/lib/jce.jar -2a98786000-2a98cdf000 r-xs 00000000 03:03 312259 /usr/lib/j2se/1.4/jre/lib/charsets.jar -2a98cdf000-2a98f2b000 r-xs 00000000 03:03 312260 /usr/lib/j2se/1.4/jre/lib/plugin.jar -2a98f2b000-2a9902b000 rwxp 2a98f2b000 00:00 0 -2a9902b000-2ad8f2b000 rwxp 2a9902b000 00:00 0 -2ad8f2b000-2ad8f2f000 rwxp 2ad8f2b000 00:00 0 -2ad8f2f000-2ad9f2b000 rwxp 2ad8f2f000 00:00 0 -2ad9f2b000-2ad9f7a000 rwxp 2ad9f2b000 00:00 0 -2ad9f80000-2ada180000 rwxp 2ad9f80000 00:00 0 -2ada180000-2adb4d0000 rwxp 2ada180000 00:00 0 -2adb4d0000-2adb747000 rwxp 2adb4d0000 00:00 0 -2adb747000-2addf80000 rwxp 2adb747000 00:00 0 -2addf80000-2adef80000 rwxp 2addf80000 00:00 0 -2adef80000-2ae1f80000 rwxp 2adef80000 00:00 0 -2ae1f80000-2ae1f81000 rwxp 2ae1f80000 00:00 0 -2ae1f81000-2ae1f8a000 rwxp 2ae1f81000 00:00 0 -2ae1f8a000-2ae1f8c000 rwxp 2ae1f8a000 00:00 0 -2ae1f8c000-2ae1fa0000 rwxp 2ae1f8c000 00:00 0 -2ae1fa0000-2ae1fa8000 rwxp 2ae1fa0000 00:00 0 -2ae1fa8000-2ae1fc0000 rwxp 2ae1fa8000 00:00 0 -2ae1fc0000-2ae1fc3000 rwxp 2ae1fc0000 00:00 0 -2ae1fc3000-2ae1fd7000 rwxp 2ae1fc3000 00:00 0 -2ae1fd7000-2ae1fe0000 rwxp 2ae1fd7000 00:00 0 -2ae1fe0000-2ae1ff8000 rwxp 2ae1fe0000 00:00 0 -2ae1ff8000-2ae217f000 r-xp 00000000 03:03 213070 /usr/lib/locale/locale-archive -2ae217f000-2ae227f000 rwxp 2ae217f000 00:00 0 -2ae227f000-2ae229b000 r-xs 00000000 03:03 312204 /usr/lib/j2se/1.4/jre/lib/ext/sunjce_provider.jar -2ae229b000-2ae229e000 r-xs 00000000 03:03 312203 /usr/lib/j2se/1.4/jre/lib/ext/dnsns.jar -2ae2300000-2ae233a000 rwxp 2ae2300000 00:00 0 -2ae233a000-2ae2400000 ---p 2ae233a000 00:00 0 -2ae2400000-2ae24bc000 r-xs 00000000 03:03 312206 /usr/lib/j2se/1.4/jre/lib/ext/localedata.jar -2ae24bc000-2ae24ca000 r-xs 00000000 03:03 312205 /usr/lib/j2se/1.4/jre/lib/ext/ldapsec.jar -2ae24ca000-2ae25ad000 r-xp 00000000 03:03 312240 /usr/lib/j2se/1.4/jre/lib/amd64/libawt.so -2ae25ad000-2ae25ca000 ---p 000e3000 03:03 312240 /usr/lib/j2se/1.4/jre/lib/amd64/libawt.so -2ae25ca000-2ae26cf000 rwxp 00000000 03:03 312240 /usr/lib/j2se/1.4/jre/lib/amd64/libawt.so -2ae26cf000-2ae26f4000 rwxp 2ae26cf000 00:00 0 -2ae26f4000-2ae274c000 r-xp 00000000 03:03 312224 /usr/lib/j2se/1.4/jre/lib/amd64/libmlib_image.so -2ae274c000-2ae27f4000 ---p 00058000 03:03 312224 /usr/lib/j2se/1.4/jre/lib/amd64/libmlib_image.so -2ae27f4000-2ae284f000 rwxp 00000000 03:03 312224 /usr/lib/j2se/1.4/jre/lib/amd64/libmlib_image.so -2ae284f000-2ae2a94000 r-xp 00000000 03:03 312209 /usr/lib/j2se/1.4/jre/lib/amd64/libXm.so.3 -2ae2a94000-2ae2b4f000 ---p 00245000 03:03 312209 /usr/lib/j2se/1.4/jre/lib/amd64/libXm.so.3 -2ae2b4f000-2ae2bfd000 rwxp 00200000 03:03 312209 /usr/lib/j2se/1.4/jre/lib/amd64/libXm.so.3 -2ae2bfd000-2ae2c00000 rwxp 2ae2bfd000 00:00 0 -2ae2c0b000-2ae2c13000 r-xp 00000000 03:03 819689 /usr/X11R6/lib/libXp.so.6.2 -2ae2c13000-2ae2d0b000 ---p 00008000 03:03 819689 /usr/X11R6/lib/libXp.so.6.2 -2ae2d0b000-2ae2d13000 rwxp 00000000 03:03 819689 /usr/X11R6/lib/libXp.so.6.2 -2ae2d13000-2ae2d66000 r-xp 00000000 03:03 819683 /usr/X11R6/lib/libXt.so.6.0 -2ae2d66000-2ae2e13000 ---p 00053000 03:03 819683 /usr/X11R6/lib/libXt.so.6.0 -2ae2e13000-2ae2e73000 rwxp 00000000 03:03 819683 /usr/X11R6/lib/libXt.so.6.0 -2ae2e73000-2ae2e74000 rwxp 2ae2e73000 00:00 0 -2ae2e74000-2ae2e7d000 r-xp 00000000 03:03 819222 /usr/X11R6/lib/libSM.so.6.0 -2ae2e7d000-2ae2f74000 ---p 00009000 03:03 819222 /usr/X11R6/lib/libSM.so.6.0 -2ae2f74000-2ae2f7e000 rwxp 00000000 03:03 819222 /usr/X11R6/lib/libSM.so.6.0 -2ae2f7e000-2ae2f92000 r-xp 00000000 03:03 819220 /usr/X11R6/lib/libICE.so.6.3 -2ae2f92000-2ae307e000 ---p 00014000 03:03 819220 /usr/X11R6/lib/libICE.so.6.3 -2ae307e000-2ae3094000 rwxp 00000000 03:03 819220 /usr/X11R6/lib/libICE.so.6.3 -2ae3094000-2ae3097000 rwxp 2ae3094000 00:00 0 -2ae3097000-2ae30a5000 r-xp 00000000 03:03 819207 /usr/X11R6/lib/libXext.so.6.4 -2ae30a5000-2ae3197000 ---p 0000e000 03:03 819207 /usr/X11R6/lib/libXext.so.6.4 -2ae3197000-2ae31a8000 rwxp 00000000 03:03 819207 /usr/X11R6/lib/libXext.so.6.4 -2ae31a8000-2ae31ad000 r-xp 00000000 03:03 819697 /usr/X11R6/lib/libXtst.so.6.1 -2ae31ad000-2ae32a8000 ---p 00005000 03:03 819697 /usr/X11R6/lib/libXtst.so.6.1 -2ae32a8000-2ae32ae000 rwxp 00000000 03:03 819697 /usr/X11R6/lib/libXtst.so.6.1 -2ae32ae000-2ae3376000 r-xp 00000000 03:03 819676 /usr/X11R6/lib/libX11.so.6.2 -2ae3376000-2ae33ae000 ---p 000c8000 03:03 819676 /usr/X11R6/lib/libX11.so.6.2 -2ae33ae000-2ae3488000 rwxp 00000000 03:03 819676 /usr/X11R6/lib/libX11.so.6.2 -2ae3488000-2ae3489000 rwxp 2ae3488000 00:00 0 -2ae3489000-2ae349a000 r-xp 00000000 03:03 312239 /usr/lib/j2se/1.4/jre/lib/amd64/libjavaplugin_jni.so -2ae349a000-2ae3589000 ---p 00011000 03:03 312239 /usr/lib/j2se/1.4/jre/lib/amd64/libjavaplugin_jni.so -2ae3589000-2ae359c000 rwxp 00000000 03:03 312239 /usr/lib/j2se/1.4/jre/lib/amd64/libjavaplugin_jni.so -2ae359c000-2ae35c4000 rwxp 2ae359c000 00:00 0 -2ae35c4000-2ae3661000 r-xp 00000000 03:03 312217 /usr/lib/j2se/1.4/jre/lib/amd64/libfontmanager.so -2ae3661000-2ae36c4000 ---p 0009d000 03:03 312217 /usr/lib/j2se/1.4/jre/lib/amd64/libfontmanager.so -2ae36c4000-2ae377f000 rwxp 00000000 03:03 312217 /usr/lib/j2se/1.4/jre/lib/amd64/libfontmanager.so -2ae377f000-2ae3890000 rwxp 2ae377f000 00:00 0 -2ae38bd000-2ae3abd000 rwxp 2ae38bd000 00:00 0 -2ae3abd000-2ae3abf000 r-xp 00000000 03:03 819671 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2 -2ae3abf000-2ae3bbd000 ---p 00002000 03:03 819671 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2 -2ae3bbd000-2ae3bc0000 rwxp 00000000 03:03 819671 /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2 -2ae3bc0000-2ae3bc9000 r-xp 00000000 03:03 213999 /usr/lib/libXcursor.so.1.0.2 -2ae3bc9000-2ae3cc0000 ---p 00009000 03:03 213999 /usr/lib/libXcursor.so.1.0.2 -2ae3cc0000-2ae3cca000 rwxp 00000000 03:03 213999 /usr/lib/libXcursor.so.1.0.2 -2ae3cca000-2ae3cd2000 r-xp 00000000 03:03 213995 /usr/lib/libXrender.so.1.2.2 -2ae3cd2000-2ae3dca000 ---p 00008000 03:03 213995 /usr/lib/libXrender.so.1.2.2 -2ae3dca000-2ae3dd3000 rwxp 00000000 03:03 213995 /usr/lib/libXrender.so.1.2.2 -2ae3dd3000-2ae3def000 r-xp 00000000 03:03 819670 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2 -2ae3def000-2ae3ed3000 ---p 0001c000 03:03 819670 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2 -2ae3ed3000-2ae3ef5000 rwxp 00000000 03:03 819670 /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2 -2ae3ef6000-2ae3ef8000 r-xp 00000000 03:03 213228 /usr/lib/gconv/ISO8859-15.so -2ae3ef8000-2ae3ff6000 ---p 00002000 03:03 213228 /usr/lib/gconv/ISO8859-15.so -2ae3ff6000-2ae3ff8000 rwxp 00000000 03:03 213228 /usr/lib/gconv/ISO8859-15.so -2ae3ff8000-2ae43f8000 rwxp 2ae3ff8000 00:00 0 -2ae43f8000-2ae4406000 r-xp 00000000 03:03 312210 /usr/lib/j2se/1.4/jre/lib/amd64/libnet.so -2ae4406000-2ae44f8000 ---p 0000e000 03:03 312210 /usr/lib/j2se/1.4/jre/lib/amd64/libnet.so -2ae44f8000-2ae4508000 rwxp 00000000 03:03 312210 /usr/lib/j2se/1.4/jre/lib/amd64/libnet.so -2ae4508000-2ae450c000 r-xp 00000000 03:01 233046 /lib/libnss_dns-2.3.2.so -2ae450c000-2ae4608000 ---p 00004000 03:01 233046 /lib/libnss_dns-2.3.2.so -2ae4608000-2ae460c000 rwxp 00000000 03:01 233046 /lib/libnss_dns-2.3.2.so -2ae460c000-2ae461b000 r-xp 00000000 03:01 233053 /lib/libresolv-2.3.2.so -2ae461b000-2ae470c000 ---p 0000f000 03:01 233053 /lib/libresolv-2.3.2.so -2ae470c000-2ae471e000 rwxp 00000000 03:01 233053 /lib/libresolv-2.3.2.so -2ae471e000-2ae4720000 rwxp 2ae471e000 00:00 0 -2ae4720000-2ae4739000 r-xp 00000000 03:03 312234 /usr/lib/j2se/1.4/jre/lib/amd64/libdcpr.so -2ae4739000-2ae4820000 ---p 00019000 03:03 312234 /usr/lib/j2se/1.4/jre/lib/amd64/libdcpr.so -2ae4820000-2ae484f000 rwxp 00000000 03:03 312234 /usr/lib/j2se/1.4/jre/lib/amd64/libdcpr.so -2ae484f000-2ae4881000 r-xs 00000000 03:08 1091591 /home/frederik/.java/deployment/cache/javapi/v1.0/jar/Security_J2.jar-7c400c49-6bd33237.zip -7fbfe00000-7fbfe02000 rwxp 7fbfe00000 00:00 0 -7fbfe02000-7fbfe05000 ---p 7fbfe02000 00:00 0 -7fbffdb000-7fc0000000 rwxp 7fbffdb000 00:00 0 -ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 - -Heap at VM Abort: -Heap - def new generation total 1856K, used 1334K [0x0000002ad9f80000, 0x0000002ada180000, 0x0000002adb4d0000) - eden space 1664K, 68% used [0x0000002ad9f80000, 0x0000002ada09d960, 0x0000002ada120000) - from space 192K, 100% used [0x0000002ada150000, 0x0000002ada180000, 0x0000002ada180000) - to space 192K, 0% used [0x0000002ada120000, 0x0000002ada120000, 0x0000002ada150000) - tenured generation total 2524K, used 1726K [0x0000002adb4d0000, 0x0000002adb747000, 0x0000002addf80000) - the space 2524K, 68% used [0x0000002adb4d0000, 0x0000002adb67f9c8, 0x0000002adb67fa00, 0x0000002adb747000) - compacting perm gen total 16384K, used 10200K [0x0000002addf80000, 0x0000002adef80000, 0x0000002ae1f80000) - the space 16384K, 62% used [0x0000002addf80000, 0x0000002ade9761d8, 0x0000002ade976200, 0x0000002adef80000) - -Local Time = Wed Mar 9 23:57:11 2005 -Elapsed Time = 5 -# -# HotSpot Virtual Machine Error : 11 -# Error ID : 4F530E43505002EF -# Please report this error at -# http://www.blackdown.org/cgi-bin/jdk -# -# Java VM: Java HotSpot(TM) 64-Bit Server VM (Blackdown-1.4.2-01 mixed mode) -# diff --git a/phpBB2_old/images/avatars/gallery/index.htm b/phpBB2_old/images/avatars/gallery/index.htm deleted file mode 100755 index ee1f723..0000000 --- a/phpBB2_old/images/avatars/gallery/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2_old/images/avatars/index.htm b/phpBB2_old/images/avatars/index.htm deleted file mode 100755 index ee1f723..0000000 --- a/phpBB2_old/images/avatars/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2_old/images/index.htm b/phpBB2_old/images/index.htm deleted file mode 100755 index ee1f723..0000000 --- a/phpBB2_old/images/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2_old/images/smiles/crazy/crazy_2gunsfiring_v1.gif b/phpBB2_old/images/smiles/crazy/crazy_2gunsfiring_v1.gif deleted file mode 100644 index cb5ddef..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_2gunsfiring_v1.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_321.gif b/phpBB2_old/images/smiles/crazy/crazy_321.gif deleted file mode 100644 index b577c06..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_321.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_Eyecrazy.gif b/phpBB2_old/images/smiles/crazy/crazy_Eyecrazy.gif deleted file mode 100644 index 487eb01..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_Eyecrazy.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_Llol.gif b/phpBB2_old/images/smiles/crazy/crazy_Llol.gif deleted file mode 100644 index faf609c..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_Llol.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_alien.gif b/phpBB2_old/images/smiles/crazy/crazy_alien.gif deleted file mode 100644 index 7b71766..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_alien.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_all_coholic.gif b/phpBB2_old/images/smiles/crazy/crazy_all_coholic.gif deleted file mode 100644 index f625b24..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_all_coholic.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_angel.gif b/phpBB2_old/images/smiles/crazy/crazy_angel.gif deleted file mode 100644 index 3345a6f..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_angel.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_argue.gif b/phpBB2_old/images/smiles/crazy/crazy_argue.gif deleted file mode 100644 index 83f3b0a..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_argue.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_asthanos.gif b/phpBB2_old/images/smiles/crazy/crazy_asthanos.gif deleted file mode 100644 index ea9b61b..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_asthanos.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_bat_angel.gif b/phpBB2_old/images/smiles/crazy/crazy_bat_angel.gif deleted file mode 100644 index f9855cd..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_bat_angel.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_bdaysmile.gif b/phpBB2_old/images/smiles/crazy/crazy_bdaysmile.gif deleted file mode 100644 index c0b3e95..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_bdaysmile.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_beammeup.gif b/phpBB2_old/images/smiles/crazy/crazy_beammeup.gif deleted file mode 100644 index 027e42c..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_beammeup.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_bigcrowd.gif b/phpBB2_old/images/smiles/crazy/crazy_bigcrowd.gif deleted file mode 100644 index e9a4bfe..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_bigcrowd.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_birthday.gif b/phpBB2_old/images/smiles/crazy/crazy_birthday.gif deleted file mode 100644 index 1edaa2c..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_birthday.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_blackey.gif b/phpBB2_old/images/smiles/crazy/crazy_blackey.gif deleted file mode 100644 index a69b44a..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_blackey.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_blowingup.gif b/phpBB2_old/images/smiles/crazy/crazy_blowingup.gif deleted file mode 100644 index 105efbe..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_blowingup.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_bluegrab.gif b/phpBB2_old/images/smiles/crazy/crazy_bluegrab.gif deleted file mode 100644 index 5ebc515..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_bluegrab.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_borgsmile.gif b/phpBB2_old/images/smiles/crazy/crazy_borgsmile.gif deleted file mode 100644 index 76dd0d7..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_borgsmile.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_butterfly.gif b/phpBB2_old/images/smiles/crazy/crazy_butterfly.gif deleted file mode 100644 index 1b4b437..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_butterfly.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_color_.gif b/phpBB2_old/images/smiles/crazy/crazy_color_.gif deleted file mode 100644 index 69ca6bf..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_color_.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_cussing.gif b/phpBB2_old/images/smiles/crazy/crazy_cussing.gif deleted file mode 100644 index 19eb9d8..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_cussing.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_eggface.gif b/phpBB2_old/images/smiles/crazy/crazy_eggface.gif deleted file mode 100644 index 46dda3d..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_eggface.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_evil.gif b/phpBB2_old/images/smiles/crazy/crazy_evil.gif deleted file mode 100644 index 9440af3..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_evil.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_gmorning.gif b/phpBB2_old/images/smiles/crazy/crazy_gmorning.gif deleted file mode 100644 index 86ec594..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_gmorning.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_icecream.gif b/phpBB2_old/images/smiles/crazy/crazy_icecream.gif deleted file mode 100644 index 70843cd..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_icecream.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_infinity.gif b/phpBB2_old/images/smiles/crazy/crazy_infinity.gif deleted file mode 100644 index aaaf1c8..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_infinity.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_kodomagnam.gif b/phpBB2_old/images/smiles/crazy/crazy_kodomagnam.gif deleted file mode 100644 index dbd1e84..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_kodomagnam.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_let_it_all_out.gif b/phpBB2_old/images/smiles/crazy/crazy_let_it_all_out.gif deleted file mode 100644 index 4d76a52..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_let_it_all_out.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_littleangel.gif b/phpBB2_old/images/smiles/crazy/crazy_littleangel.gif deleted file mode 100644 index d82d8e5..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_littleangel.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_llying.gif b/phpBB2_old/images/smiles/crazy/crazy_llying.gif deleted file mode 100644 index 09159c0..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_llying.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_microwave.gif b/phpBB2_old/images/smiles/crazy/crazy_microwave.gif deleted file mode 100644 index 06c1e58..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_microwave.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_monalisa.gif b/phpBB2_old/images/smiles/crazy/crazy_monalisa.gif deleted file mode 100644 index 2980156..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_monalisa.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_multi.gif b/phpBB2_old/images/smiles/crazy/crazy_multi.gif deleted file mode 100644 index 5c6023e..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_multi.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_newbie.gif b/phpBB2_old/images/smiles/crazy/crazy_newbie.gif deleted file mode 100644 index 8322095..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_newbie.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_olympic1.gif b/phpBB2_old/images/smiles/crazy/crazy_olympic1.gif deleted file mode 100644 index a94b97a..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_olympic1.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_popcornsmiley.gif b/phpBB2_old/images/smiles/crazy/crazy_popcornsmiley.gif deleted file mode 100644 index 1414b24..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_popcornsmiley.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_puppy_dog_eyes.gif b/phpBB2_old/images/smiles/crazy/crazy_puppy_dog_eyes.gif deleted file mode 100644 index ae49736..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_puppy_dog_eyes.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_rainbow.gif b/phpBB2_old/images/smiles/crazy/crazy_rainbow.gif deleted file mode 100644 index 390aa2e..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_rainbow.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_rainfro.gif b/phpBB2_old/images/smiles/crazy/crazy_rainfro.gif deleted file mode 100644 index 12be964..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_rainfro.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_rofl.gif b/phpBB2_old/images/smiles/crazy/crazy_rofl.gif deleted file mode 100644 index a2c52ed..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_rofl.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_rotcol.gif b/phpBB2_old/images/smiles/crazy/crazy_rotcol.gif deleted file mode 100644 index df5659f..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_rotcol.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_scatter.gif b/phpBB2_old/images/smiles/crazy/crazy_scatter.gif deleted file mode 100644 index d8d5409..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_scatter.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_scrambles.gif b/phpBB2_old/images/smiles/crazy/crazy_scrambles.gif deleted file mode 100644 index 44a3ad7..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_scrambles.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_shocked.gif b/phpBB2_old/images/smiles/crazy/crazy_shocked.gif deleted file mode 100644 index 2c370cb..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_shocked.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_silly.gif b/phpBB2_old/images/smiles/crazy/crazy_silly.gif deleted file mode 100644 index 4d4b79d..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_silly.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_sleeping.gif b/phpBB2_old/images/smiles/crazy/crazy_sleeping.gif deleted file mode 100644 index c3386ef..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_sleeping.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_smile-l.gif b/phpBB2_old/images/smiles/crazy/crazy_smile-l.gif deleted file mode 100644 index 80e6af6..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_smile-l.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_smileyb.gif b/phpBB2_old/images/smiles/crazy/crazy_smileyb.gif deleted file mode 100644 index b1bbad2..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_smileyb.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_smilie_colors1.gif b/phpBB2_old/images/smiles/crazy/crazy_smilie_colors1.gif deleted file mode 100644 index 8e8a4a6..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_smilie_colors1.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_snipersmilie.gif b/phpBB2_old/images/smiles/crazy/crazy_snipersmilie.gif deleted file mode 100644 index 6be1fb6..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_snipersmilie.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_spiral.gif b/phpBB2_old/images/smiles/crazy/crazy_spiral.gif deleted file mode 100644 index 6acaa77..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_spiral.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_squarecycle.gif b/phpBB2_old/images/smiles/crazy/crazy_squarecycle.gif deleted file mode 100644 index 8d4e816..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_squarecycle.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_squarewink.gif b/phpBB2_old/images/smiles/crazy/crazy_squarewink.gif deleted file mode 100644 index e2610b0..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_squarewink.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_terminator.gif b/phpBB2_old/images/smiles/crazy/crazy_terminator.gif deleted file mode 100644 index 64423f5..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_terminator.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_tomato.gif b/phpBB2_old/images/smiles/crazy/crazy_tomato.gif deleted file mode 100644 index 903ec37..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_tomato.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_ukliam2.gif b/phpBB2_old/images/smiles/crazy/crazy_ukliam2.gif deleted file mode 100644 index 3baaa26..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_ukliam2.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_usa.gif b/phpBB2_old/images/smiles/crazy/crazy_usa.gif deleted file mode 100644 index bc866be..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_usa.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_vampv.gif b/phpBB2_old/images/smiles/crazy/crazy_vampv.gif deleted file mode 100644 index 72088ab..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_vampv.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/crazy/crazy_xmas.gif b/phpBB2_old/images/smiles/crazy/crazy_xmas.gif deleted file mode 100644 index 2691af4..0000000 Binary files a/phpBB2_old/images/smiles/crazy/crazy_xmas.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_arrow.gif b/phpBB2_old/images/smiles/icon_arrow.gif deleted file mode 100755 index 2880055..0000000 Binary files a/phpBB2_old/images/smiles/icon_arrow.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_biggrin.gif b/phpBB2_old/images/smiles/icon_biggrin.gif deleted file mode 100755 index d352772..0000000 Binary files a/phpBB2_old/images/smiles/icon_biggrin.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_confused.gif b/phpBB2_old/images/smiles/icon_confused.gif deleted file mode 100755 index 0c49e06..0000000 Binary files a/phpBB2_old/images/smiles/icon_confused.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_cool.gif b/phpBB2_old/images/smiles/icon_cool.gif deleted file mode 100755 index cead030..0000000 Binary files a/phpBB2_old/images/smiles/icon_cool.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_cry.gif b/phpBB2_old/images/smiles/icon_cry.gif deleted file mode 100755 index 7d54b1f..0000000 Binary files a/phpBB2_old/images/smiles/icon_cry.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_eek.gif b/phpBB2_old/images/smiles/icon_eek.gif deleted file mode 100755 index 5d39781..0000000 Binary files a/phpBB2_old/images/smiles/icon_eek.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_evil.gif b/phpBB2_old/images/smiles/icon_evil.gif deleted file mode 100755 index ab1aa8e..0000000 Binary files a/phpBB2_old/images/smiles/icon_evil.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_exclaim.gif b/phpBB2_old/images/smiles/icon_exclaim.gif deleted file mode 100755 index 6e50e2e..0000000 Binary files a/phpBB2_old/images/smiles/icon_exclaim.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_frown.gif b/phpBB2_old/images/smiles/icon_frown.gif deleted file mode 100755 index d2ac78c..0000000 Binary files a/phpBB2_old/images/smiles/icon_frown.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_idea.gif b/phpBB2_old/images/smiles/icon_idea.gif deleted file mode 100755 index a40ae0d..0000000 Binary files a/phpBB2_old/images/smiles/icon_idea.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_lol.gif b/phpBB2_old/images/smiles/icon_lol.gif deleted file mode 100755 index 374ba15..0000000 Binary files a/phpBB2_old/images/smiles/icon_lol.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_mad.gif b/phpBB2_old/images/smiles/icon_mad.gif deleted file mode 100755 index 1f6c3c2..0000000 Binary files a/phpBB2_old/images/smiles/icon_mad.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_mrgreen.gif b/phpBB2_old/images/smiles/icon_mrgreen.gif deleted file mode 100755 index b54cd0f..0000000 Binary files a/phpBB2_old/images/smiles/icon_mrgreen.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_neutral.gif b/phpBB2_old/images/smiles/icon_neutral.gif deleted file mode 100755 index 4f31156..0000000 Binary files a/phpBB2_old/images/smiles/icon_neutral.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_question.gif b/phpBB2_old/images/smiles/icon_question.gif deleted file mode 100755 index 9d07226..0000000 Binary files a/phpBB2_old/images/smiles/icon_question.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_razz.gif b/phpBB2_old/images/smiles/icon_razz.gif deleted file mode 100755 index 29da2a2..0000000 Binary files a/phpBB2_old/images/smiles/icon_razz.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_redface.gif b/phpBB2_old/images/smiles/icon_redface.gif deleted file mode 100755 index ad76283..0000000 Binary files a/phpBB2_old/images/smiles/icon_redface.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_rolleyes.gif b/phpBB2_old/images/smiles/icon_rolleyes.gif deleted file mode 100755 index d7f5f2f..0000000 Binary files a/phpBB2_old/images/smiles/icon_rolleyes.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_sad.gif b/phpBB2_old/images/smiles/icon_sad.gif deleted file mode 100755 index d2ac78c..0000000 Binary files a/phpBB2_old/images/smiles/icon_sad.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_smile.gif b/phpBB2_old/images/smiles/icon_smile.gif deleted file mode 100755 index 7b1f6d3..0000000 Binary files a/phpBB2_old/images/smiles/icon_smile.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_surprised.gif b/phpBB2_old/images/smiles/icon_surprised.gif deleted file mode 100755 index cb21424..0000000 Binary files a/phpBB2_old/images/smiles/icon_surprised.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_twisted.gif b/phpBB2_old/images/smiles/icon_twisted.gif deleted file mode 100755 index 502fe24..0000000 Binary files a/phpBB2_old/images/smiles/icon_twisted.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/icon_wink.gif b/phpBB2_old/images/smiles/icon_wink.gif deleted file mode 100755 index d148288..0000000 Binary files a/phpBB2_old/images/smiles/icon_wink.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs.zip b/phpBB2_old/images/smiles/signs.zip deleted file mode 100644 index a469137..0000000 Binary files a/phpBB2_old/images/smiles/signs.zip and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs/signs_champion.gif b/phpBB2_old/images/smiles/signs/signs_champion.gif deleted file mode 100644 index 2cbe336..0000000 Binary files a/phpBB2_old/images/smiles/signs/signs_champion.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs/signs_help.gif b/phpBB2_old/images/smiles/signs/signs_help.gif deleted file mode 100644 index 2744db1..0000000 Binary files a/phpBB2_old/images/smiles/signs/signs_help.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs/signs_hm.gif b/phpBB2_old/images/smiles/signs/signs_hm.gif deleted file mode 100644 index 74c7d92..0000000 Binary files a/phpBB2_old/images/smiles/signs/signs_hm.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs/signs_lol.gif b/phpBB2_old/images/smiles/signs/signs_lol.gif deleted file mode 100644 index 8197970..0000000 Binary files a/phpBB2_old/images/smiles/signs/signs_lol.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs/signs_noparking.gif b/phpBB2_old/images/smiles/signs/signs_noparking.gif deleted file mode 100644 index 2ea1883..0000000 Binary files a/phpBB2_old/images/smiles/signs/signs_noparking.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs/signs_nopass.gif b/phpBB2_old/images/smiles/signs/signs_nopass.gif deleted file mode 100644 index 68f4b78..0000000 Binary files a/phpBB2_old/images/smiles/signs/signs_nopass.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs/signs_oneway.gif b/phpBB2_old/images/smiles/signs/signs_oneway.gif deleted file mode 100644 index 55bbe69..0000000 Binary files a/phpBB2_old/images/smiles/signs/signs_oneway.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs/signs_prepare.gif b/phpBB2_old/images/smiles/signs/signs_prepare.gif deleted file mode 100644 index e5ad304..0000000 Binary files a/phpBB2_old/images/smiles/signs/signs_prepare.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs/signs_rant.gif b/phpBB2_old/images/smiles/signs/signs_rant.gif deleted file mode 100644 index 15c4dc9..0000000 Binary files a/phpBB2_old/images/smiles/signs/signs_rant.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs/signs_rantoff.gif b/phpBB2_old/images/smiles/signs/signs_rantoff.gif deleted file mode 100644 index 39e824c..0000000 Binary files a/phpBB2_old/images/smiles/signs/signs_rantoff.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs/signs_ranton.gif b/phpBB2_old/images/smiles/signs/signs_ranton.gif deleted file mode 100644 index 414ff2d..0000000 Binary files a/phpBB2_old/images/smiles/signs/signs_ranton.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs/signs_welcome.gif b/phpBB2_old/images/smiles/signs/signs_welcome.gif deleted file mode 100644 index b059e78..0000000 Binary files a/phpBB2_old/images/smiles/signs/signs_welcome.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs_champion.gif b/phpBB2_old/images/smiles/signs_champion.gif deleted file mode 100644 index 2cbe336..0000000 Binary files a/phpBB2_old/images/smiles/signs_champion.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs_help.gif b/phpBB2_old/images/smiles/signs_help.gif deleted file mode 100644 index 2744db1..0000000 Binary files a/phpBB2_old/images/smiles/signs_help.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs_hm.gif b/phpBB2_old/images/smiles/signs_hm.gif deleted file mode 100644 index 74c7d92..0000000 Binary files a/phpBB2_old/images/smiles/signs_hm.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs_lol.gif b/phpBB2_old/images/smiles/signs_lol.gif deleted file mode 100644 index 8197970..0000000 Binary files a/phpBB2_old/images/smiles/signs_lol.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs_noparking.gif b/phpBB2_old/images/smiles/signs_noparking.gif deleted file mode 100644 index 2ea1883..0000000 Binary files a/phpBB2_old/images/smiles/signs_noparking.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs_nopass.gif b/phpBB2_old/images/smiles/signs_nopass.gif deleted file mode 100644 index 68f4b78..0000000 Binary files a/phpBB2_old/images/smiles/signs_nopass.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs_oneway.gif b/phpBB2_old/images/smiles/signs_oneway.gif deleted file mode 100644 index 55bbe69..0000000 Binary files a/phpBB2_old/images/smiles/signs_oneway.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs_prepare.gif b/phpBB2_old/images/smiles/signs_prepare.gif deleted file mode 100644 index e5ad304..0000000 Binary files a/phpBB2_old/images/smiles/signs_prepare.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs_rant.gif b/phpBB2_old/images/smiles/signs_rant.gif deleted file mode 100644 index 15c4dc9..0000000 Binary files a/phpBB2_old/images/smiles/signs_rant.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs_rantoff.gif b/phpBB2_old/images/smiles/signs_rantoff.gif deleted file mode 100644 index 39e824c..0000000 Binary files a/phpBB2_old/images/smiles/signs_rantoff.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs_ranton.gif b/phpBB2_old/images/smiles/signs_ranton.gif deleted file mode 100644 index 414ff2d..0000000 Binary files a/phpBB2_old/images/smiles/signs_ranton.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/signs_welcome.gif b/phpBB2_old/images/smiles/signs_welcome.gif deleted file mode 100644 index b059e78..0000000 Binary files a/phpBB2_old/images/smiles/signs_welcome.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports.zip b/phpBB2_old/images/smiles/sports.zip deleted file mode 100644 index 6e1fd49..0000000 Binary files a/phpBB2_old/images/smiles/sports.zip and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_basket.gif b/phpBB2_old/images/smiles/sports/sports_basket.gif deleted file mode 100644 index 2d39735..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_basket.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_bronze.gif b/phpBB2_old/images/smiles/sports/sports_bronze.gif deleted file mode 100644 index c0f0867..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_bronze.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_cycling.gif b/phpBB2_old/images/smiles/sports/sports_cycling.gif deleted file mode 100644 index 332081e..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_cycling.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_drop.gif b/phpBB2_old/images/smiles/sports/sports_drop.gif deleted file mode 100644 index 9eb2904..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_drop.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_fairplay.jpg b/phpBB2_old/images/smiles/sports/sports_fairplay.jpg deleted file mode 100644 index ea2aadb..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_fairplay.jpg and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_goal.gif b/phpBB2_old/images/smiles/sports/sports_goal.gif deleted file mode 100644 index 52d1dc9..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_goal.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_keep.gif b/phpBB2_old/images/smiles/sports/sports_keep.gif deleted file mode 100644 index c9fa6c5..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_keep.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_maillotjaune.gif b/phpBB2_old/images/smiles/sports/sports_maillotjaune.gif deleted file mode 100644 index 21e3016..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_maillotjaune.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_ping.gif b/phpBB2_old/images/smiles/sports/sports_ping.gif deleted file mode 100644 index 407c9ff..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_ping.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_podium.gif b/phpBB2_old/images/smiles/sports/sports_podium.gif deleted file mode 100644 index 9079b35..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_podium.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_putgolf.gif b/phpBB2_old/images/smiles/sports/sports_putgolf.gif deleted file mode 100644 index bb14fd4..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_putgolf.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_ski.gif b/phpBB2_old/images/smiles/sports/sports_ski.gif deleted file mode 100644 index 9ac7397..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_ski.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_ski1.gif b/phpBB2_old/images/smiles/sports/sports_ski1.gif deleted file mode 100644 index 5101d60..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_ski1.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_ski2.gif b/phpBB2_old/images/smiles/sports/sports_ski2.gif deleted file mode 100644 index 0971128..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_ski2.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_ski3.gif b/phpBB2_old/images/smiles/sports/sports_ski3.gif deleted file mode 100644 index bf5f4ea..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_ski3.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_ski4.gif b/phpBB2_old/images/smiles/sports/sports_ski4.gif deleted file mode 100644 index 9844a6a..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_ski4.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_ski5.gif b/phpBB2_old/images/smiles/sports/sports_ski5.gif deleted file mode 100644 index 83b1116..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_ski5.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_ski6.gif b/phpBB2_old/images/smiles/sports/sports_ski6.gif deleted file mode 100644 index 2ed1c96..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_ski6.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_ski_fallen.gif b/phpBB2_old/images/smiles/sports/sports_ski_fallen.gif deleted file mode 100644 index 9d37f39..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_ski_fallen.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_ski_falling.gif b/phpBB2_old/images/smiles/sports/sports_ski_falling.gif deleted file mode 100644 index 799ed6c..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_ski_falling.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_ski_jump.gif b/phpBB2_old/images/smiles/sports/sports_ski_jump.gif deleted file mode 100644 index 7534a66..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_ski_jump.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_ski_jumpintree.gif b/phpBB2_old/images/smiles/sports/sports_ski_jumpintree.gif deleted file mode 100644 index cd6f963..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_ski_jumpintree.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_ski_slalom.gif b/phpBB2_old/images/smiles/sports/sports_ski_slalom.gif deleted file mode 100644 index 0b255eb..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_ski_slalom.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_skismile.gif b/phpBB2_old/images/smiles/sports/sports_skismile.gif deleted file mode 100644 index 2d2a393..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_skismile.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_swinggolf.gif b/phpBB2_old/images/smiles/sports/sports_swinggolf.gif deleted file mode 100644 index 2bd1e24..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_swinggolf.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_velo.gif b/phpBB2_old/images/smiles/sports/sports_velo.gif deleted file mode 100644 index a98d044..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_velo.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports/sports_wave.gif b/phpBB2_old/images/smiles/sports/sports_wave.gif deleted file mode 100644 index beb46e6..0000000 Binary files a/phpBB2_old/images/smiles/sports/sports_wave.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports_boat.gif b/phpBB2_old/images/smiles/sports_boat.gif deleted file mode 100644 index 624cb47..0000000 Binary files a/phpBB2_old/images/smiles/sports_boat.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports_boxing.gif b/phpBB2_old/images/smiles/sports_boxing.gif deleted file mode 100644 index 8818c3e..0000000 Binary files a/phpBB2_old/images/smiles/sports_boxing.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports_checkeredflag.gif b/phpBB2_old/images/smiles/sports_checkeredflag.gif deleted file mode 100644 index 28582d7..0000000 Binary files a/phpBB2_old/images/smiles/sports_checkeredflag.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports_cup.gif b/phpBB2_old/images/smiles/sports_cup.gif deleted file mode 100644 index 92eb4ab..0000000 Binary files a/phpBB2_old/images/smiles/sports_cup.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports_diver.gif b/phpBB2_old/images/smiles/sports_diver.gif deleted file mode 100644 index 57da08b..0000000 Binary files a/phpBB2_old/images/smiles/sports_diver.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports_footballhelmet.gif b/phpBB2_old/images/smiles/sports_footballhelmet.gif deleted file mode 100644 index 9ceda34..0000000 Binary files a/phpBB2_old/images/smiles/sports_footballhelmet.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports_garchery.gif b/phpBB2_old/images/smiles/sports_garchery.gif deleted file mode 100644 index 74dbe4d..0000000 Binary files a/phpBB2_old/images/smiles/sports_garchery.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports_grouphug.gif b/phpBB2_old/images/smiles/sports_grouphug.gif deleted file mode 100644 index defa5db..0000000 Binary files a/phpBB2_old/images/smiles/sports_grouphug.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports_jab.gif b/phpBB2_old/images/smiles/sports_jab.gif deleted file mode 100644 index fc2d889..0000000 Binary files a/phpBB2_old/images/smiles/sports_jab.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports_skateboard.gif b/phpBB2_old/images/smiles/sports_skateboard.gif deleted file mode 100644 index 40b8aff..0000000 Binary files a/phpBB2_old/images/smiles/sports_skateboard.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports_snorkel.gif b/phpBB2_old/images/smiles/sports_snorkel.gif deleted file mode 100644 index 2a963a2..0000000 Binary files a/phpBB2_old/images/smiles/sports_snorkel.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports_surfing.gif b/phpBB2_old/images/smiles/sports_surfing.gif deleted file mode 100644 index d9b3685..0000000 Binary files a/phpBB2_old/images/smiles/sports_surfing.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports_target.gif b/phpBB2_old/images/smiles/sports_target.gif deleted file mode 100644 index d043647..0000000 Binary files a/phpBB2_old/images/smiles/sports_target.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports_waterskiing.gif b/phpBB2_old/images/smiles/sports_waterskiing.gif deleted file mode 100644 index d735c3f..0000000 Binary files a/phpBB2_old/images/smiles/sports_waterskiing.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/sports_weightlifter.gif b/phpBB2_old/images/smiles/sports_weightlifter.gif deleted file mode 100644 index 4bdfd6f..0000000 Binary files a/phpBB2_old/images/smiles/sports_weightlifter.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/Valentine.pak b/phpBB2_old/images/smiles/valentine/Valentine.pak deleted file mode 100644 index a5c56d5..0000000 --- a/phpBB2_old/images/smiles/valentine/Valentine.pak +++ /dev/null @@ -1,17 +0,0 @@ -valentine_bemine.gif=+:valentine_bemine.gif=+:[valentine_bemine.gif] -valentine_callme.gif=+:valentine_callme.gif=+:[valentine_callme.gif] -valentine_Happy.gif=+:valentine_Happy.gif=+:[valentine_Happy.gif] -valentine_Heartfillwithlove.gif=+:valentine_Heartfillwithlove.gif=+:[valentine_Heartfillwithlove.gif] -valentine_Hiya.gif=+:valentine_Hiya.gif=+:[valentine_Hiya.gif] -valentine_hotoveryou.gif=+:valentine_hotoveryou.gif=+:[valentine_hotoveryou.gif] -valentine_Iloveyou1.gif=+:valentine_Iloveyou1.gif=+:[valentine_Iloveyou1.gif] -valentine_iloveyou2.gif=+:valentine_iloveyou2.gif=+:[valentine_iloveyou2.gif] -valentine_Kissoflove.gif=+:valentine_Kissoflove.gif=+:[valentine_Kissoflove.gif] -valentine_lovesick.gif=+:valentine_lovesick.gif=+:[valentine_lovesick.gif] -valentine_lovetogether.gif=+:valentine_lovetogether.gif=+:[valentine_lovetogether.gif] -valentine_myHeartfireupforyou.gif=+:valentine_myHeartfireupforyou.gif=+:[valentine_myHeartfireupforyou.gif] -valentine_mylove.gif=+:valentine_mylove.gif=+:[valentine_mylove.gif] -valentine_Peekaboo.gif=+:valentine_Peekaboo.gif=+:[valentine_Peekaboo.gif] -valentine_Realmad.gif=+:valentine_Realmad.gif=+:[valentine_Realmad.gif] -valentine_Tofunny.gif=+:valentine_Tofunny.gif=+:[valentine_Tofunny.gif] -valentine_winyourlove.gif=+:valentine_winyourlove.gif=+:[valentine_winyourlove.gif] diff --git a/phpBB2_old/images/smiles/valentine/valentine_Happy.gif b/phpBB2_old/images/smiles/valentine/valentine_Happy.gif deleted file mode 100644 index 5d9b1d7..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_Happy.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_Heartfillwithlove.gif b/phpBB2_old/images/smiles/valentine/valentine_Heartfillwithlove.gif deleted file mode 100644 index a86912a..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_Heartfillwithlove.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_Hiya.gif b/phpBB2_old/images/smiles/valentine/valentine_Hiya.gif deleted file mode 100644 index 575f1a2..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_Hiya.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_Iloveyou1.gif b/phpBB2_old/images/smiles/valentine/valentine_Iloveyou1.gif deleted file mode 100644 index 6b2ded9..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_Iloveyou1.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_Kissoflove.gif b/phpBB2_old/images/smiles/valentine/valentine_Kissoflove.gif deleted file mode 100644 index 0d83c27..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_Kissoflove.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_Peekaboo.gif b/phpBB2_old/images/smiles/valentine/valentine_Peekaboo.gif deleted file mode 100644 index 8822714..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_Peekaboo.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_Realmad.gif b/phpBB2_old/images/smiles/valentine/valentine_Realmad.gif deleted file mode 100644 index baad2d0..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_Realmad.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_Tofunny.gif b/phpBB2_old/images/smiles/valentine/valentine_Tofunny.gif deleted file mode 100644 index 7b62901..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_Tofunny.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_bemine.gif b/phpBB2_old/images/smiles/valentine/valentine_bemine.gif deleted file mode 100644 index c0b1620..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_bemine.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_callme.gif b/phpBB2_old/images/smiles/valentine/valentine_callme.gif deleted file mode 100644 index 5d130f4..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_callme.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_hotoveryou.gif b/phpBB2_old/images/smiles/valentine/valentine_hotoveryou.gif deleted file mode 100644 index 5c4c2e7..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_hotoveryou.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_iloveyou2.gif b/phpBB2_old/images/smiles/valentine/valentine_iloveyou2.gif deleted file mode 100644 index e00ae8b..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_iloveyou2.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_lovesick.gif b/phpBB2_old/images/smiles/valentine/valentine_lovesick.gif deleted file mode 100644 index df98b94..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_lovesick.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_lovetogether.gif b/phpBB2_old/images/smiles/valentine/valentine_lovetogether.gif deleted file mode 100644 index bd73373..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_lovetogether.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_myHeartfireupforyou.gif b/phpBB2_old/images/smiles/valentine/valentine_myHeartfireupforyou.gif deleted file mode 100644 index db37b5c..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_myHeartfireupforyou.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_mylove.gif b/phpBB2_old/images/smiles/valentine/valentine_mylove.gif deleted file mode 100644 index 9486e4d..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_mylove.gif and /dev/null differ diff --git a/phpBB2_old/images/smiles/valentine/valentine_winyourlove.gif b/phpBB2_old/images/smiles/valentine/valentine_winyourlove.gif deleted file mode 100644 index 4539e22..0000000 Binary files a/phpBB2_old/images/smiles/valentine/valentine_winyourlove.gif and /dev/null differ diff --git a/phpBB2_old/images/spacer.gif b/phpBB2_old/images/spacer.gif deleted file mode 100755 index cd29009..0000000 Binary files a/phpBB2_old/images/spacer.gif and /dev/null differ diff --git a/phpBB2_old/includes/auth.php b/phpBB2_old/includes/auth.php deleted file mode 100644 index 2e35a32..0000000 --- a/phpBB2_old/includes/auth.php +++ /dev/null @@ -1,326 +0,0 @@ -sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Failed obtaining forum access control lists', '', __LINE__, __FILE__, $sql); - } - - $sql_fetchrow = ( $forum_id != AUTH_LIST_ALL ) ? 'sql_fetchrow' : 'sql_fetchrowset'; - - if ( !($f_access = $db->$sql_fetchrow($result)) ) - { - $db->sql_freeresult($result); - return array(); - } - $db->sql_freeresult($result); - } - - // - // If the user isn't logged on then all we need do is check if the forum - // has the type set to ALL, if yes they are good to go, if not then they - // are denied access - // - $u_access = array(); - if ( $userdata['session_logged_in'] ) - { - $forum_match_sql = ( $forum_id != AUTH_LIST_ALL ) ? "AND a.forum_id = $forum_id" : ''; - - $sql = "SELECT a.forum_id, $a_sql, a.auth_mod - FROM " . AUTH_ACCESS_TABLE . " a, " . USER_GROUP_TABLE . " ug - WHERE ug.user_id = ".$userdata['user_id']. " - AND ug.user_pending = 0 - AND a.group_id = ug.group_id - $forum_match_sql"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Failed obtaining forum access control lists', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - do - { - if ( $forum_id != AUTH_LIST_ALL) - { - $u_access[] = $row; - } - else - { - $u_access[$row['forum_id']][] = $row; - } - } - while( $row = $db->sql_fetchrow($result) ); - } - $db->sql_freeresult($result); - } - - $is_admin = ( $userdata['user_level'] == ADMIN && $userdata['session_logged_in'] ) ? TRUE : 0; - - $auth_user = array(); - for($i = 0; $i < count($auth_fields); $i++) - { - $key = $auth_fields[$i]; - - // - // If the user is logged on and the forum type is either ALL or REG then the user has access - // - // If the type if ACL, MOD or ADMIN then we need to see if the user has specific permissions - // to do whatever it is they want to do ... to do this we pull relevant information for the - // user (and any groups they belong to) - // - // Now we compare the users access level against the forums. We assume here that a moderator - // and admin automatically have access to an ACL forum, similarly we assume admins meet an - // auth requirement of MOD - // - if ( $forum_id != AUTH_LIST_ALL ) - { - $value = $f_access[$key]; - - switch( $value ) - { - case AUTH_ALL: - $auth_user[$key] = TRUE; - $auth_user[$key . '_type'] = $lang['Auth_Anonymous_Users']; - break; - - case AUTH_REG: - $auth_user[$key] = ( $userdata['session_logged_in'] ) ? TRUE : 0; - $auth_user[$key . '_type'] = $lang['Auth_Registered_Users']; - break; - - case AUTH_ACL: - $auth_user[$key] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_ACL, $key, $u_access, $is_admin) : 0; - $auth_user[$key . '_type'] = $lang['Auth_Users_granted_access']; - break; - - case AUTH_MOD: - $auth_user[$key] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_MOD, 'auth_mod', $u_access, $is_admin) : 0; - $auth_user[$key . '_type'] = $lang['Auth_Moderators']; - break; - - case AUTH_ADMIN: - $auth_user[$key] = $is_admin; - $auth_user[$key . '_type'] = $lang['Auth_Administrators']; - break; - - default: - $auth_user[$key] = 0; - break; - } - } - else - { - for($k = 0; $k < count($f_access); $k++) - { - $value = $f_access[$k][$key]; - $f_forum_id = $f_access[$k]['forum_id']; - - switch( $value ) - { - case AUTH_ALL: - $auth_user[$f_forum_id][$key] = TRUE; - $auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Anonymous_Users']; - break; - - case AUTH_REG: - $auth_user[$f_forum_id][$key] = ( $userdata['session_logged_in'] ) ? TRUE : 0; - $auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Registered_Users']; - break; - - case AUTH_ACL: - $auth_user[$f_forum_id][$key] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_ACL, $key, $u_access[$f_forum_id], $is_admin) : 0; - $auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Users_granted_access']; - break; - - case AUTH_MOD: - $auth_user[$f_forum_id][$key] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_MOD, 'auth_mod', $u_access[$f_forum_id], $is_admin) : 0; - $auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Moderators']; - break; - - case AUTH_ADMIN: - $auth_user[$f_forum_id][$key] = $is_admin; - $auth_user[$f_forum_id][$key . '_type'] = $lang['Auth_Administrators']; - break; - - default: - $auth_user[$f_forum_id][$key] = 0; - break; - } - } - } - } - - // - // Is user a moderator? - // - if ( $forum_id != AUTH_LIST_ALL ) - { - $auth_user['auth_mod'] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_MOD, 'auth_mod', $u_access, $is_admin) : 0; - } - else - { - for($k = 0; $k < count($f_access); $k++) - { - $f_forum_id = $f_access[$k]['forum_id']; - - $auth_user[$f_forum_id]['auth_mod'] = ( $userdata['session_logged_in'] ) ? auth_check_user(AUTH_MOD, 'auth_mod', $u_access[$f_forum_id], $is_admin) : 0; - } - } - - return $auth_user; -} - -function auth_check_user($type, $key, $u_access, $is_admin) -{ - $auth_user = 0; - - if ( count($u_access) ) - { - for($j = 0; $j < count($u_access); $j++) - { - $result = 0; - switch($type) - { - case AUTH_ACL: - $result = $u_access[$j][$key]; - - case AUTH_MOD: - $result = $result || $u_access[$j]['auth_mod']; - - case AUTH_ADMIN: - $result = $result || $is_admin; - break; - } - - $auth_user = $auth_user || $result; - } - } - else - { - $auth_user = $is_admin; - } - - return $auth_user; -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/bbcode.php b/phpBB2_old/includes/bbcode.php deleted file mode 100644 index c9c8cb6..0000000 --- a/phpBB2_old/includes/bbcode.php +++ /dev/null @@ -1,785 +0,0 @@ -make_filename('bbcode.tpl'); - $tpl = fread(fopen($tpl_filename, 'r'), filesize($tpl_filename)); - - // replace \ with \\ and then ' with \'. - $tpl = str_replace('\\', '\\\\', $tpl); - $tpl = str_replace('\'', '\\\'', $tpl); - - // strip newlines. - $tpl = str_replace("\n", '', $tpl); - - // Turn template blocks into PHP assignment statements for the values of $bbcode_tpls.. - $tpl = preg_replace('#(.*?)#', "\n" . '$bbcode_tpls[\'\\1\'] = \'\\2\';', $tpl); - - $bbcode_tpls = array(); - - eval($tpl); - - return $bbcode_tpls; -} - - -/** - * Prepares the loaded bbcode templates for insertion into preg_replace() - * or str_replace() calls in the bbencode_second_pass functions. This - * means replacing template placeholders with the appropriate preg backrefs - * or with language vars. NOTE: If you change how the regexps work in - * bbencode_second_pass(), you MUST change this function. - * - * Nathan Codding, Sept 26 2001 - * - */ -function prepare_bbcode_template($bbcode_tpl) -{ - global $lang; - - $bbcode_tpl['olist_open'] = str_replace('{LIST_TYPE}', '\\1', $bbcode_tpl['olist_open']); - - $bbcode_tpl['color_open'] = str_replace('{COLOR}', '\\1', $bbcode_tpl['color_open']); - - $bbcode_tpl['size_open'] = str_replace('{SIZE}', '\\1', $bbcode_tpl['size_open']); - - $bbcode_tpl['quote_open'] = str_replace('{L_QUOTE}', $lang['Quote'], $bbcode_tpl['quote_open']); - - $bbcode_tpl['quote_username_open'] = str_replace('{L_QUOTE}', $lang['Quote'], $bbcode_tpl['quote_username_open']); - $bbcode_tpl['quote_username_open'] = str_replace('{L_WROTE}', $lang['wrote'], $bbcode_tpl['quote_username_open']); - $bbcode_tpl['quote_username_open'] = str_replace('{USERNAME}', '\\1', $bbcode_tpl['quote_username_open']); - - $bbcode_tpl['code_open'] = str_replace('{L_CODE}', $lang['Code'], $bbcode_tpl['code_open']); - - $bbcode_tpl['img'] = str_replace('{URL}', '\\1', $bbcode_tpl['img']); - - // We do URLs in several different ways.. - $bbcode_tpl['url1'] = str_replace('{URL}', '\\1', $bbcode_tpl['url']); - $bbcode_tpl['url1'] = str_replace('{DESCRIPTION}', '\\1', $bbcode_tpl['url1']); - - $bbcode_tpl['url2'] = str_replace('{URL}', 'http://\\1', $bbcode_tpl['url']); - $bbcode_tpl['url2'] = str_replace('{DESCRIPTION}', '\\1', $bbcode_tpl['url2']); - - $bbcode_tpl['url3'] = str_replace('{URL}', '\\1', $bbcode_tpl['url']); - $bbcode_tpl['url3'] = str_replace('{DESCRIPTION}', '\\2', $bbcode_tpl['url3']); - - $bbcode_tpl['url4'] = str_replace('{URL}', 'http://\\1', $bbcode_tpl['url']); - $bbcode_tpl['url4'] = str_replace('{DESCRIPTION}', '\\3', $bbcode_tpl['url4']); - - $bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']); - - define("BBCODE_TPL_READY", true); - - return $bbcode_tpl; -} - - -/** - * Does second-pass bbencoding. This should be used before displaying the message in - * a thread. Assumes the message is already first-pass encoded, and we are given the - * correct UID as used in first-pass encoding. - */ -function bbencode_second_pass($text, $uid) -{ - global $lang, $bbcode_tpl; - - // pad it with a space so we can distinguish between FALSE and matching the 1st char (index 0). - // This is important; bbencode_quote(), bbencode_list(), and bbencode_code() all depend on it. - $text = " " . $text; - - // First: If there isn't a "[" and a "]" in the message, don't bother. - if (! (strpos($text, "[") && strpos($text, "]")) ) - { - // Remove padding, return. - $text = substr($text, 1); - return $text; - } - - // Only load the templates ONCE.. - if (!defined("BBCODE_TPL_READY")) - { - // load templates from file into array. - $bbcode_tpl = load_bbcode_template(); - - // prepare array for use in regexps. - $bbcode_tpl = prepare_bbcode_template($bbcode_tpl); - } - - // [CODE] and [/CODE] for posting code (HTML, PHP, C etc etc) in your posts. - $text = bbencode_second_pass_code($text, $uid, $bbcode_tpl); - - // [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff. - $text = str_replace("[quote:$uid]", $bbcode_tpl['quote_open'], $text); - $text = str_replace("[/quote:$uid]", $bbcode_tpl['quote_close'], $text); - - // New one liner to deal with opening quotes with usernames... - // replaces the two line version that I had here before.. - $text = preg_replace("/\[quote:$uid=\"(.*?)\"\]/si", $bbcode_tpl['quote_username_open'], $text); - - // [list] and [list=x] for (un)ordered lists. - // unordered lists - $text = str_replace("[list:$uid]", $bbcode_tpl['ulist_open'], $text); - // li tags - $text = str_replace("[*:$uid]", $bbcode_tpl['listitem'], $text); - // ending tags - $text = str_replace("[/list:u:$uid]", $bbcode_tpl['ulist_close'], $text); - $text = str_replace("[/list:o:$uid]", $bbcode_tpl['olist_close'], $text); - // Ordered lists - $text = preg_replace("/\[list=([a1]):$uid\]/si", $bbcode_tpl['olist_open'], $text); - - // colours - $text = preg_replace("/\[color=(\#[0-9A-F]{6}|[a-z]+):$uid\]/si", $bbcode_tpl['color_open'], $text); - $text = str_replace("[/color:$uid]", $bbcode_tpl['color_close'], $text); - - // size - $text = preg_replace("/\[size=([1-2]?[0-9]):$uid\]/si", $bbcode_tpl['size_open'], $text); - $text = str_replace("[/size:$uid]", $bbcode_tpl['size_close'], $text); - - // [b] and [/b] for bolding text. - $text = str_replace("[b:$uid]", $bbcode_tpl['b_open'], $text); - $text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text); - - // [u] and [/u] for underlining text. - $text = str_replace("[u:$uid]", $bbcode_tpl['u_open'], $text); - $text = str_replace("[/u:$uid]", $bbcode_tpl['u_close'], $text); - - // [i] and [/i] for italicizing text. - $text = str_replace("[i:$uid]", $bbcode_tpl['i_open'], $text); - $text = str_replace("[/i:$uid]", $bbcode_tpl['i_close'], $text); - - // Patterns and replacements for URL and email tags.. - $patterns = array(); - $replacements = array(); - - // [img]image_url_here[/img] code.. - // This one gets first-passed.. - $patterns[] = "#\[img:$uid\](.*?)\[/img:$uid\]#si"; - $replacements[] = $bbcode_tpl['img']; - - // matches a [url]xxxx://www.phpbb.com[/url] code.. - $patterns[] = "#\[url\]([\w]+?://[^ \"\n\r\t<]*?)\[/url\]#is"; - $replacements[] = $bbcode_tpl['url1']; - - // [url]www.phpbb.com[/url] code.. (no xxxx:// prefix). - $patterns[] = "#\[url\]((www|ftp)\.[^ \"\n\r\t<]*?)\[/url\]#is"; - $replacements[] = $bbcode_tpl['url2']; - - // [url=xxxx://www.phpbb.com]phpBB[/url] code.. - $patterns[] = "#\[url=([\w]+?://[^ \"\n\r\t<]*?)\](.*?)\[/url\]#is"; - $replacements[] = $bbcode_tpl['url3']; - - // [url=www.phpbb.com]phpBB[/url] code.. (no xxxx:// prefix). - $patterns[] = "#\[url=((www|ftp)\.[^ \"\n\r\t<]*?)\](.*?)\[/url\]#is"; - $replacements[] = $bbcode_tpl['url4']; - - // [email]user@domain.tld[/email] code.. - $patterns[] = "#\[email\]([a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si"; - $replacements[] = $bbcode_tpl['email']; - - $text = preg_replace($patterns, $replacements, $text); - - // Remove our padding from the string.. - $text = substr($text, 1); - - return $text; - -} // bbencode_second_pass() - -// Need to initialize the random numbers only ONCE -mt_srand( (double) microtime() * 1000000); - -function make_bbcode_uid() -{ - // Unique ID for this message.. - - $uid = md5(mt_rand()); - $uid = substr($uid, 0, BBCODE_UID_LEN); - - return $uid; -} - -function bbencode_first_pass($text, $uid) -{ - // pad it with a space so we can distinguish between FALSE and matching the 1st char (index 0). - // This is important; bbencode_quote(), bbencode_list(), and bbencode_code() all depend on it. - $text = " " . $text; - - // [CODE] and [/CODE] for posting code (HTML, PHP, C etc etc) in your posts. - $text = bbencode_first_pass_pda($text, $uid, '[code]', '[/code]', '', true, ''); - - // [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff. - $text = bbencode_first_pass_pda($text, $uid, '[quote]', '[/quote]', '', false, ''); - $text = bbencode_first_pass_pda($text, $uid, '/\[quote=(\\\".*?\\\")\]/is', '[/quote]', '', false, '', "[quote:$uid=\\1]"); - - // [list] and [list=x] for (un)ordered lists. - $open_tag = array(); - $open_tag[0] = "[list]"; - - // unordered.. - $text = bbencode_first_pass_pda($text, $uid, $open_tag, "[/list]", "[/list:u]", false, 'replace_listitems'); - - $open_tag[0] = "[list=1]"; - $open_tag[1] = "[list=a]"; - - // ordered. - $text = bbencode_first_pass_pda($text, $uid, $open_tag, "[/list]", "[/list:o]", false, 'replace_listitems'); - - // [color] and [/color] for setting text color - $text = preg_replace("#\[color=(\#[0-9A-F]{6}|[a-z\-]+)\](.*?)\[/color\]#si", "[color=\\1:$uid]\\2[/color:$uid]", $text); - - // [size] and [/size] for setting text size - $text = preg_replace("#\[size=([1-2]?[0-9])\](.*?)\[/size\]#si", "[size=\\1:$uid]\\2[/size:$uid]", $text); - - // [b] and [/b] for bolding text. - $text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text); - - // [u] and [/u] for underlining text. - $text = preg_replace("#\[u\](.*?)\[/u\]#si", "[u:$uid]\\1[/u:$uid]", $text); - - // [i] and [/i] for italicizing text. - $text = preg_replace("#\[i\](.*?)\[/i\]#si", "[i:$uid]\\1[/i:$uid]", $text); - - // [img]image_url_here[/img] code.. - $text = preg_replace("#\[img\]((http|ftp|https|ftps)://)([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\1' . str_replace(' ', '%20', '\\3') . '[/img:$uid]'", $text); - - // Remove our padding from the string.. - return substr($text, 1);; - -} // bbencode_first_pass() - -/** - * $text - The text to operate on. - * $uid - The UID to add to matching tags. - * $open_tag - The opening tag to match. Can be an array of opening tags. - * $close_tag - The closing tag to match. - * $close_tag_new - The closing tag to replace with. - * $mark_lowest_level - boolean - should we specially mark the tags that occur - * at the lowest level of nesting? (useful for [code], because - * we need to match these tags first and transform HTML tags - * in their contents.. - * $func - This variable should contain a string that is the name of a function. - * That function will be called when a match is found, and passed 2 - * parameters: ($text, $uid). The function should return a string. - * This is used when some transformation needs to be applied to the - * text INSIDE a pair of matching tags. If this variable is FALSE or the - * empty string, it will not be executed. - * If open_tag is an array, then the pda will try to match pairs consisting of - * any element of open_tag followed by close_tag. This allows us to match things - * like [list=A]...[/list] and [list=1]...[/list] in one pass of the PDA. - * - * NOTES: - this function assumes the first character of $text is a space. - * - every opening tag and closing tag must be of the [...] format. - */ -function bbencode_first_pass_pda($text, $uid, $open_tag, $close_tag, $close_tag_new, $mark_lowest_level, $func, $open_regexp_replace = false) -{ - $open_tag_count = 0; - - if (!$close_tag_new || ($close_tag_new == '')) - { - $close_tag_new = $close_tag; - } - - $close_tag_length = strlen($close_tag); - $close_tag_new_length = strlen($close_tag_new); - $uid_length = strlen($uid); - - $use_function_pointer = ($func && ($func != '')); - - $stack = array(); - - if (is_array($open_tag)) - { - if (0 == count($open_tag)) - { - // No opening tags to match, so return. - return $text; - } - $open_tag_count = count($open_tag); - } - else - { - // only one opening tag. make it into a 1-element array. - $open_tag_temp = $open_tag; - $open_tag = array(); - $open_tag[0] = $open_tag_temp; - $open_tag_count = 1; - } - - $open_is_regexp = false; - - if ($open_regexp_replace) - { - $open_is_regexp = true; - if (!is_array($open_regexp_replace)) - { - $open_regexp_temp = $open_regexp_replace; - $open_regexp_replace = array(); - $open_regexp_replace[0] = $open_regexp_temp; - } - } - - if ($mark_lowest_level && $open_is_regexp) - { - message_die(GENERAL_ERROR, "Unsupported operation for bbcode_first_pass_pda()."); - } - - // Start at the 2nd char of the string, looking for opening tags. - $curr_pos = 1; - while ($curr_pos && ($curr_pos < strlen($text))) - { - $curr_pos = strpos($text, "[", $curr_pos); - - // If not found, $curr_pos will be 0, and the loop will end. - if ($curr_pos) - { - // We found a [. It starts at $curr_pos. - // check if it's a starting or ending tag. - $found_start = false; - $which_start_tag = ""; - $start_tag_index = -1; - - for ($i = 0; $i < $open_tag_count; $i++) - { - // Grab everything until the first "]"... - $possible_start = substr($text, $curr_pos, strpos($text, ']', $curr_pos + 1) - $curr_pos + 1); - - // - // We're going to try and catch usernames with "[' characters. - // - if( preg_match('#\[quote=\\\"#si', $possible_start, $match) && !preg_match('#\[quote=\\\"(.*?)\\\"\]#si', $possible_start) ) - { - // OK we are in a quote tag that probably contains a ] bracket. - // Grab a bit more of the string to hopefully get all of it.. - if ($close_pos = strpos($text, '"]', $curr_pos + 9)) - { - if (strpos(substr($text, $curr_pos + 9, $close_pos - ($curr_pos + 9)), '[quote') === false) - { - $possible_start = substr($text, $curr_pos, $close_pos - $curr_pos + 2); - } - } - } - - // Now compare, either using regexp or not. - if ($open_is_regexp) - { - $match_result = array(); - if (preg_match($open_tag[$i], $possible_start, $match_result)) - { - $found_start = true; - $which_start_tag = $match_result[0]; - $start_tag_index = $i; - break; - } - } - else - { - // straightforward string comparison. - if (0 == strcasecmp($open_tag[$i], $possible_start)) - { - $found_start = true; - $which_start_tag = $open_tag[$i]; - $start_tag_index = $i; - break; - } - } - } - - if ($found_start) - { - // We have an opening tag. - // Push its position, the text we matched, and its index in the open_tag array on to the stack, and then keep going to the right. - $match = array("pos" => $curr_pos, "tag" => $which_start_tag, "index" => $start_tag_index); - bbcode_array_push($stack, $match); - // - // Rather than just increment $curr_pos - // Set it to the ending of the tag we just found - // Keeps error in nested tag from breaking out - // of table structure.. - // - $curr_pos += strlen($possible_start); - } - else - { - // check for a closing tag.. - $possible_end = substr($text, $curr_pos, $close_tag_length); - if (0 == strcasecmp($close_tag, $possible_end)) - { - // We have an ending tag. - // Check if we've already found a matching starting tag. - if (sizeof($stack) > 0) - { - // There exists a starting tag. - $curr_nesting_depth = sizeof($stack); - // We need to do 2 replacements now. - $match = bbcode_array_pop($stack); - $start_index = $match['pos']; - $start_tag = $match['tag']; - $start_length = strlen($start_tag); - $start_tag_index = $match['index']; - - if ($open_is_regexp) - { - $start_tag = preg_replace($open_tag[$start_tag_index], $open_regexp_replace[$start_tag_index], $start_tag); - } - - // everything before the opening tag. - $before_start_tag = substr($text, 0, $start_index); - - // everything after the opening tag, but before the closing tag. - $between_tags = substr($text, $start_index + $start_length, $curr_pos - $start_index - $start_length); - - // Run the given function on the text between the tags.. - if ($use_function_pointer) - { - $between_tags = $func($between_tags, $uid); - } - - // everything after the closing tag. - $after_end_tag = substr($text, $curr_pos + $close_tag_length); - - // Mark the lowest nesting level if needed. - if ($mark_lowest_level && ($curr_nesting_depth == 1)) - { - if ($open_tag[0] == '[code]') - { - $code_entities_match = array('#<#', '#>#', '#"#', '#:#', '#\[#', '#\]#', '#\(#', '#\)#', '#\{#', '#\}#'); - $code_entities_replace = array('<', '>', '"', ':', '[', ']', '(', ')', '{', '}'); - $between_tags = preg_replace($code_entities_match, $code_entities_replace, $between_tags); - } - $text = $before_start_tag . substr($start_tag, 0, $start_length - 1) . ":$curr_nesting_depth:$uid]"; - $text .= $between_tags . substr($close_tag_new, 0, $close_tag_new_length - 1) . ":$curr_nesting_depth:$uid]"; - } - else - { - if ($open_tag[0] == '[code]') - { - $text = $before_start_tag . '[code]'; - $text .= $between_tags . '[/code]'; - } - else - { - if ($open_is_regexp) - { - $text = $before_start_tag . $start_tag; - } - else - { - $text = $before_start_tag . substr($start_tag, 0, $start_length - 1) . ":$uid]"; - } - $text .= $between_tags . substr($close_tag_new, 0, $close_tag_new_length - 1) . ":$uid]"; - } - } - - $text .= $after_end_tag; - - // Now.. we've screwed up the indices by changing the length of the string. - // So, if there's anything in the stack, we want to resume searching just after it. - // otherwise, we go back to the start. - if (sizeof($stack) > 0) - { - $match = bbcode_array_pop($stack); - $curr_pos = $match['pos']; -// bbcode_array_push($stack, $match); -// ++$curr_pos; - } - else - { - $curr_pos = 1; - } - } - else - { - // No matching start tag found. Increment pos, keep going. - ++$curr_pos; - } - } - else - { - // No starting tag or ending tag.. Increment pos, keep looping., - ++$curr_pos; - } - } - } - } // while - - return $text; - -} // bbencode_first_pass_pda() - -/** - * Does second-pass bbencoding of the [code] tags. This includes - * running htmlspecialchars() over the text contained between - * any pair of [code] tags that are at the first level of - * nesting. Tags at the first level of nesting are indicated - * by this format: [code:1:$uid] ... [/code:1:$uid] - * Other tags are in this format: [code:$uid] ... [/code:$uid] - */ -function bbencode_second_pass_code($text, $uid, $bbcode_tpl) -{ - global $lang; - - $code_start_html = $bbcode_tpl['code_open']; - $code_end_html = $bbcode_tpl['code_close']; - - // First, do all the 1st-level matches. These need an htmlspecialchars() run, - // so they have to be handled differently. - $match_count = preg_match_all("#\[code:1:$uid\](.*?)\[/code:1:$uid\]#si", $text, $matches); - - for ($i = 0; $i < $match_count; $i++) - { - $before_replace = $matches[1][$i]; - $after_replace = $matches[1][$i]; - - // Replace 2 spaces with "  " so non-tabbed code indents without making huge long lines. - $after_replace = str_replace(" ", "  ", $after_replace); - // now Replace 2 spaces with "  " to catch odd #s of spaces. - $after_replace = str_replace(" ", "  ", $after_replace); - - // Replace tabs with "   " so tabbed code indents sorta right without making huge long lines. - $after_replace = str_replace("\t", "   ", $after_replace); - - // now Replace space occurring at the beginning of a line - $after_replace = preg_replace("/^ {1}/m", ' ', $after_replace); - - $str_to_match = "[code:1:$uid]" . $before_replace . "[/code:1:$uid]"; - - $replacement = $code_start_html; - $replacement .= $after_replace; - $replacement .= $code_end_html; - - $text = str_replace($str_to_match, $replacement, $text); - } - - // Now, do all the non-first-level matches. These are simple. - $text = str_replace("[code:$uid]", $code_start_html, $text); - $text = str_replace("[/code:$uid]", $code_end_html, $text); - - return $text; - -} // bbencode_second_pass_code() - -/** - * Rewritten by Nathan Codding - Feb 6, 2001. - * - Goes through the given string, and replaces xxxx://yyyy with an HTML tag linking - * to that URL - * - Goes through the given string, and replaces www.xxxx.yyyy[zzzz] with an HTML tag linking - * to http://www.xxxx.yyyy[/zzzz] - * - Goes through the given string, and replaces xxxx@yyyy with an HTML mailto: tag linking - * to that email address - * - Only matches these 2 patterns either after a space, or at the beginning of a line - * - * Notes: the email one might get annoying - it's easy to make it more restrictive, though.. maybe - * have it require something like xxxx@yyyy.zzzz or such. We'll see. - */ -function make_clickable($text) -{ - - // pad it with a space so we can match things at the start of the 1st line. - $ret = ' ' . $text; - - // matches an "xxxx://yyyy" URL at the start of a line, or after a space. - // xxxx can only be alpha characters. - // yyyy is anything up to the first space, newline, comma, double quote or < - $ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1\\2", $ret); - - // matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing - // Must contain at least 2 dots. xxxx contains either alphanum, or "-" - // zzzz is optional.. will contain everything up to the first space, newline, - // comma, double quote or <. - $ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1\\2", $ret); - - // matches an email@domain type address at the start of a line, or after a space. - // Note: Only the followed chars are valid; alphanums, "-", "_" and or ".". - $ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1\\2@\\3", $ret); - - // Remove our padding.. - $ret = substr($ret, 1); - - return($ret); -} - -/** - * Nathan Codding - Feb 6, 2001 - * Reverses the effects of make_clickable(), for use in editpost. - * - Does not distinguish between "www.xxxx.yyyy" and "http://aaaa.bbbb" type URLs. - * - */ -function undo_make_clickable($text) -{ - $text = preg_replace("#.*?#i", "\\1", $text); - $text = preg_replace("#.*?#i", "\\1", $text); - - return $text; - -} - -/** - * Nathan Codding - August 24, 2000. - * Takes a string, and does the reverse of the PHP standard function - * htmlspecialchars(). - */ -function undo_htmlspecialchars($input) -{ - $input = preg_replace("/>/i", ">", $input); - $input = preg_replace("/</i", "<", $input); - $input = preg_replace("/"/i", "\"", $input); - $input = preg_replace("/&/i", "&", $input); - - return $input; -} - -/** - * This is used to change a [*] tag into a [*:$uid] tag as part - * of the first-pass bbencoding of [list] tags. It fits the - * standard required in order to be passed as a variable - * function into bbencode_first_pass_pda(). - */ -function replace_listitems($text, $uid) -{ - $text = str_replace("[*]", "[*:$uid]", $text); - - return $text; -} - -/** - * Escapes the "/" character with "\/". This is useful when you need - * to stick a runtime string into a PREG regexp that is being delimited - * with slashes. - */ -function escape_slashes($input) -{ - $output = str_replace('/', '\/', $input); - return $output; -} - -/** - * This function does exactly what the PHP4 function array_push() does - * however, to keep phpBB compatable with PHP 3 we had to come up with our own - * method of doing it. - */ -function bbcode_array_push(&$stack, $value) -{ - $stack[] = $value; - return(sizeof($stack)); -} - -/** - * This function does exactly what the PHP4 function array_pop() does - * however, to keep phpBB compatable with PHP 3 we had to come up with our own - * method of doing it. - */ -function bbcode_array_pop(&$stack) -{ - $arrSize = count($stack); - $x = 1; - - while(list($key, $val) = each($stack)) - { - if($x < count($stack)) - { - $tmpArr[] = $val; - } - else - { - $return_val = $val; - } - $x++; - } - $stack = $tmpArr; - - return($return_val); -} - -// -// Smilies code ... would this be better tagged on to the end of bbcode.php? -// Probably so and I'll move it before B2 -// -function smilies_pass($message) -{ - static $orig, $repl; - - if (!isset($orig)) - { - global $db, $board_config; - $orig = $repl = array(); - - $sql = 'SELECT * FROM ' . SMILIES_TABLE; - if( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain smilies data", "", __LINE__, __FILE__, $sql); - } - $smilies = $db->sql_fetchrowset($result); - - if (count($smilies)) - { - usort($smilies, 'smiley_sort'); - } - - for ($i = 0; $i < count($smilies); $i++) - { - $orig[] = "/(?<=.\W|\W.|^\W)" . phpbb_preg_quote($smilies[$i]['code'], "/") . "(?=.\W|\W.|\W$)/"; - $repl[] = '' . $smilies[$i]['emoticon'] . ''; - } - } - - if (count($orig)) - { - $message = preg_replace($orig, $repl, ' ' . $message . ' '); - $message = substr($message, 1, -1); - } - - return $message; -} - -function smiley_sort($a, $b) -{ - if ( strlen($a['code']) == strlen($b['code']) ) - { - return 0; - } - - return ( strlen($a['code']) > strlen($b['code']) ) ? -1 : 1; -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/constants.php b/phpBB2_old/includes/constants.php deleted file mode 100644 index b0471ac..0000000 --- a/phpBB2_old/includes/constants.php +++ /dev/null @@ -1,182 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2_old/includes/db.php b/phpBB2_old/includes/db.php deleted file mode 100644 index 88cbc50..0000000 --- a/phpBB2_old/includes/db.php +++ /dev/null @@ -1,66 +0,0 @@ -db_connect_id) -{ - message_die(CRITICAL_ERROR, "Could not connect to the database"); -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/emailer.php b/phpBB2_old/includes/emailer.php deleted file mode 100644 index 72f2f98..0000000 --- a/phpBB2_old/includes/emailer.php +++ /dev/null @@ -1,373 +0,0 @@ -reset(); - $this->use_smtp = $use_smtp; - $this->reply_to = $this->from = ''; - } - - // Resets all the data (address, template file, etc etc to default - function reset() - { - $this->addresses = array(); - $this->vars = $this->msg = $this->extra_headers = ''; - } - - // Sets an email address to send to - function email_address($address) - { - $this->addresses['to'] = trim($address); - } - - function cc($address) - { - $this->addresses['cc'][] = trim($address); - } - - function bcc($address) - { - $this->addresses['bcc'][] = trim($address); - } - - function replyto($address) - { - $this->reply_to = trim($address); - } - - function from($address) - { - $this->from = trim($address); - } - - // set up subject for mail - function set_subject($subject = '') - { - $this->subject = trim(preg_replace('#[\n\r]+#s', '', $subject)); - } - - // set up extra mail headers - function extra_headers($headers) - { - $this->extra_headers .= trim($headers) . "\n"; - } - - function use_template($template_file, $template_lang = '') - { - global $board_config, $phpbb_root_path; - - if (trim($template_file) == '') - { - message_die(GENERAL_ERROR, 'No template file set', '', __LINE__, __FILE__); - } - - if (trim($template_lang) == '') - { - $template_lang = $board_config['default_lang']; - } - - if (empty($this->tpl_msg[$template_lang . $template_file])) - { - $tpl_file = $phpbb_root_path . 'language/lang_' . $template_lang . '/email/' . $template_file . '.tpl'; - - if (!@file_exists(@phpbb_realpath($tpl_file))) - { - $tpl_file = $phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/email/' . $template_file . '.tpl'; - - if (!@file_exists(@phpbb_realpath($tpl_file))) - { - message_die(GENERAL_ERROR, 'Could not find email template file :: ' . $template_file, '', __LINE__, __FILE__); - } - } - - if (!($fd = @fopen($tpl_file, 'r'))) - { - message_die(GENERAL_ERROR, 'Failed opening template file :: ' . $tpl_file, '', __LINE__, __FILE__); - } - - $this->tpl_msg[$template_lang . $template_file] = fread($fd, filesize($tpl_file)); - fclose($fd); - } - - $this->msg = $this->tpl_msg[$template_lang . $template_file]; - - return true; - } - - // assign variables - function assign_vars($vars) - { - $this->vars = (empty($this->vars)) ? $vars : $this->vars . $vars; - } - - // Send the mail out to the recipients set previously in var $this->address - function send() - { - global $board_config, $lang, $phpEx, $phpbb_root_path, $db; - - // Escape all quotes, else the eval will fail. - $this->msg = str_replace ("'", "\'", $this->msg); - $this->msg = preg_replace('#\{([a-z0-9\-_]*?)\}#is', "' . $\\1 . '", $this->msg); - - // Set vars - reset ($this->vars); - while (list($key, $val) = each($this->vars)) - { - $$key = $val; - } - - eval("\$this->msg = '$this->msg';"); - - // Clear vars - reset ($this->vars); - while (list($key, $val) = each($this->vars)) - { - unset($$key); - } - - // We now try and pull a subject from the email body ... if it exists, - // do this here because the subject may contain a variable - $drop_header = ''; - $match = array(); - if (preg_match('#^(Subject:(.*?))$#m', $this->msg, $match)) - { - $this->subject = (trim($match[2]) != '') ? trim($match[2]) : (($this->subject != '') ? $this->subject : 'No Subject'); - $drop_header .= '[\r\n]*?' . phpbb_preg_quote($match[1], '#'); - } - else - { - $this->subject = (($this->subject != '') ? $this->subject : 'No Subject'); - } - - if (preg_match('#^(Charset:(.*?))$#m', $this->msg, $match)) - { - $this->encoding = (trim($match[2]) != '') ? trim($match[2]) : trim($lang['ENCODING']); - $drop_header .= '[\r\n]*?' . phpbb_preg_quote($match[1], '#'); - } - else - { - $this->encoding = trim($lang['ENCODING']); - } - - if ($drop_header != '') - { - $this->msg = trim(preg_replace('#' . $drop_header . '#s', '', $this->msg)); - } - - $to = $this->addresses['to']; - - $cc = (count($this->addresses['cc'])) ? implode(', ', $this->addresses['cc']) : ''; - $bcc = (count($this->addresses['bcc'])) ? implode(', ', $this->addresses['bcc']) : ''; - - // Build header - $this->extra_headers = (($this->reply_to != '') ? "Reply-to: $this->reply_to\n" : '') . (($this->from != '') ? "From: $this->from\n" : "From: " . $board_config['board_email'] . "\n") . "Return-Path: " . $board_config['board_email'] . "\nMessage-ID: <" . md5(uniqid(time())) . "@" . $board_config['server_name'] . ">\nMIME-Version: 1.0\nContent-type: text/plain; charset=" . $this->encoding . "\nContent-transfer-encoding: 8bit\nDate: " . date('r', time()) . "\nX-Priority: 3\nX-MSMail-Priority: Normal\nX-Mailer: PHP\nX-MimeOLE: Produced By phpBB2\n" . $this->extra_headers . (($cc != '') ? "Cc: $cc\n" : '') . (($bcc != '') ? "Bcc: $bcc\n" : ''); - - // Send message ... removed $this->encode() from subject for time being - if ( $this->use_smtp ) - { - if ( !defined('SMTP_INCLUDED') ) - { - include($phpbb_root_path . 'includes/smtp.' . $phpEx); - } - - $result = smtpmail($to, $this->subject, $this->msg, $this->extra_headers); - } - else - { - $empty_to_header = ($to == '') ? TRUE : FALSE; - $to = ($to == '') ? (($board_config['sendmail_fix']) ? ' ' : 'Undisclosed-recipients:;') : $to; - - $result = @mail($to, $this->subject, preg_replace("#(?msg), $this->extra_headers); - - if (!$result && !$board_config['sendmail_fix'] && $empty_to_header) - { - $to = ' '; - - $sql = "UPDATE " . CONFIG_TABLE . " - SET config_value = '1' - WHERE config_name = 'sendmail_fix'"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Unable to update config table', '', __LINE__, __FILE__, $sql); - } - - $board_config['sendmail_fix'] = 1; - $result = @mail($to, $this->subject, preg_replace("#(?msg), $this->extra_headers); - } - } - - // Did it work? - if (!$result) - { - message_die(GENERAL_ERROR, 'Failed sending email :: ' . (($this->use_smtp) ? 'SMTP' : 'PHP') . ' :: ' . $result, '', __LINE__, __FILE__); - } - - return true; - } - - // Encodes the given string for proper display for this encoding ... nabbed - // from php.net and modified. There is an alternative encoding method which - // may produce lesd output but it's questionable as to its worth in this - // scenario IMO - function encode($str) - { - if ($this->encoding == '') - { - return $str; - } - - // define start delimimter, end delimiter and spacer - $end = "?="; - $start = "=?$this->encoding?B?"; - $spacer = "$end\r\n $start"; - - // determine length of encoded text within chunks and ensure length is even - $length = 75 - strlen($start) - strlen($end); - $length = floor($length / 2) * 2; - - // encode the string and split it into chunks with spacers after each chunk - $str = chunk_split(base64_encode($str), $length, $spacer); - - // remove trailing spacer and add start and end delimiters - $str = preg_replace('#' . phpbb_preg_quote($spacer, '#') . '$#', '', $str); - - return $start . $str . $end; - } - - // - // Attach files via MIME. - // - function attachFile($filename, $mimetype = "application/octet-stream", $szFromAddress, $szFilenameToDisplay) - { - global $lang; - $mime_boundary = "--==================_846811060==_"; - - $this->msg = '--' . $mime_boundary . "\nContent-Type: text/plain;\n\tcharset=\"" . $lang['ENCODING'] . "\"\n\n" . $this->msg; - - if ($mime_filename) - { - $filename = $mime_filename; - $encoded = $this->encode_file($filename); - } - - $fd = fopen($filename, "r"); - $contents = fread($fd, filesize($filename)); - - $this->mimeOut = "--" . $mime_boundary . "\n"; - $this->mimeOut .= "Content-Type: " . $mimetype . ";\n\tname=\"$szFilenameToDisplay\"\n"; - $this->mimeOut .= "Content-Transfer-Encoding: quoted-printable\n"; - $this->mimeOut .= "Content-Disposition: attachment;\n\tfilename=\"$szFilenameToDisplay\"\n\n"; - - if ( $mimetype == "message/rfc822" ) - { - $this->mimeOut .= "From: ".$szFromAddress."\n"; - $this->mimeOut .= "To: ".$this->emailAddress."\n"; - $this->mimeOut .= "Date: ".date("D, d M Y H:i:s") . " UT\n"; - $this->mimeOut .= "Reply-To:".$szFromAddress."\n"; - $this->mimeOut .= "Subject: ".$this->mailSubject."\n"; - $this->mimeOut .= "X-Mailer: PHP/".phpversion()."\n"; - $this->mimeOut .= "MIME-Version: 1.0\n"; - } - - $this->mimeOut .= $contents."\n"; - $this->mimeOut .= "--" . $mime_boundary . "--" . "\n"; - - return $out; - // added -- to notify email client attachment is done - } - - function getMimeHeaders($filename, $mime_filename="") - { - $mime_boundary = "--==================_846811060==_"; - - if ($mime_filename) - { - $filename = $mime_filename; - } - - $out = "MIME-Version: 1.0\n"; - $out .= "Content-Type: multipart/mixed;\n\tboundary=\"$mime_boundary\"\n\n"; - $out .= "This message is in MIME format. Since your mail reader does not understand\n"; - $out .= "this format, some or all of this message may not be legible."; - - return $out; - } - - // - // Split string by RFC 2045 semantics (76 chars per line, end with \r\n). - // - function myChunkSplit($str) - { - $stmp = $str; - $len = strlen($stmp); - $out = ""; - - while ($len > 0) - { - if ($len >= 76) - { - $out .= substr($stmp, 0, 76) . "\r\n"; - $stmp = substr($stmp, 76); - $len = $len - 76; - } - else - { - $out .= $stmp . "\r\n"; - $stmp = ""; - $len = 0; - } - } - return $out; - } - - // - // Split the specified file up into a string and return it - // - function encode_file($sourcefile) - { - if (is_readable(phpbb_realpath($sourcefile))) - { - $fd = fopen($sourcefile, "r"); - $contents = fread($fd, filesize($sourcefile)); - $encoded = $this->myChunkSplit(base64_encode($contents)); - fclose($fd); - } - - return $encoded; - } - -} // class emailer - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/functions.php b/phpBB2_old/includes/functions.php deleted file mode 100644 index fe9b8c8..0000000 --- a/phpBB2_old/includes/functions.php +++ /dev/null @@ -1,781 +0,0 @@ - " . ANONYMOUS; - break; - - case 'newestuser': - $sql = "SELECT user_id, username - FROM " . USERS_TABLE . " - WHERE user_id <> " . ANONYMOUS . " - ORDER BY user_id DESC - LIMIT 1"; - break; - - case 'postcount': - case 'topiccount': - $sql = "SELECT SUM(forum_topics) AS topic_total, SUM(forum_posts) AS post_total - FROM " . FORUMS_TABLE; - break; - } - - if ( !($result = $db->sql_query($sql)) ) - { - return false; - } - - $row = $db->sql_fetchrow($result); - - switch ( $mode ) - { - case 'usercount': - return $row['total']; - break; - case 'newestuser': - return $row; - break; - case 'postcount': - return $row['post_total']; - break; - case 'topiccount': - return $row['topic_total']; - break; - } - - return false; -} - -// added at phpBB 2.0.11 to properly format the username -function phpbb_clean_username($username) -{ - $username = htmlspecialchars(rtrim(trim($username), "\\")); - $username = substr(str_replace("\\'", "'", $username), 0, 25); - $username = str_replace("'", "\\'", $username); - - return $username; -} - -// -// Get Userdata, $user can be username or user_id. If force_str is true, the username will be forced. -// -function get_userdata($user, $force_str = false) -{ - global $db; - - if (intval($user) == 0 || $force_str) - { - $user = phpbb_clean_username($user); - } - else - { - $user = intval($user); - } - - $sql = "SELECT * - FROM " . USERS_TABLE . " - WHERE "; - $sql .= ( ( is_integer($user) ) ? "user_id = $user" : "username = '" . $user . "'" ) . " AND user_id <> " . ANONYMOUS; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Tried obtaining data for a non-existent user', '', __LINE__, __FILE__, $sql); - } - - return ( $row = $db->sql_fetchrow($result) ) ? $row : false; -} - -function make_jumpbox($action, $match_forum_id = 0) -{ - global $template, $userdata, $lang, $db, $nav_links, $phpEx, $SID; - -// $is_auth = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata); - - $sql = "SELECT c.cat_id, c.cat_title, c.cat_order - FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f - WHERE f.cat_id = c.cat_id - GROUP BY c.cat_id, c.cat_title, c.cat_order - ORDER BY c.cat_order"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain category list.", "", __LINE__, __FILE__, $sql); - } - - $category_rows = array(); - while ( $row = $db->sql_fetchrow($result) ) - { - $category_rows[] = $row; - } - - if ( $total_categories = count($category_rows) ) - { - $sql = "SELECT * - FROM " . FORUMS_TABLE . " - ORDER BY cat_id, forum_order"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql); - } - - $boxstring = ''; - } - else - { - $boxstring .= ''; - } - - // Let the jumpbox work again in sites having additional session id checks. -// if ( !empty($SID) ) -// { - $boxstring .= ''; -// } - - $template->set_filenames(array( - 'jumpbox' => 'jumpbox.tpl') - ); - $template->assign_vars(array( - 'L_GO' => $lang['Go'], - 'L_JUMP_TO' => $lang['Jump_to'], - 'L_SELECT_FORUM' => $lang['Select_forum'], - - 'S_JUMPBOX_SELECT' => $boxstring, - 'S_JUMPBOX_ACTION' => append_sid($action)) - ); - $template->assign_var_from_handle('JUMPBOX', 'jumpbox'); - - return; -} - -// -// Initialise user settings on page load -function init_userprefs($userdata) -{ - global $board_config, $theme, $images; - global $template, $lang, $phpEx, $phpbb_root_path; - global $nav_links; - - if ( $userdata['user_id'] != ANONYMOUS ) - { - if ( !empty($userdata['user_lang'])) - { - $board_config['default_lang'] = $userdata['user_lang']; - } - - if ( !empty($userdata['user_dateformat']) ) - { - $board_config['default_dateformat'] = $userdata['user_dateformat']; - } - - if ( isset($userdata['user_timezone']) ) - { - $board_config['board_timezone'] = $userdata['user_timezone']; - } - } - - if ( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx)) ) - { - $board_config['default_lang'] = 'english'; - } - - include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); - - if ( defined('IN_ADMIN') ) - { - if( !file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.'.$phpEx)) ) - { - $board_config['default_lang'] = 'english'; - } - - include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx); - } - - // - // Set up style - // - if ( !$board_config['override_user_style'] ) - { - if ( $userdata['user_id'] != ANONYMOUS && $userdata['user_style'] > 0 ) - { - if ( $theme = setup_style($userdata['user_style']) ) - { - return; - } - } - } - - $theme = setup_style($board_config['default_style']); - - // - // Mozilla navigation bar - // Default items that should be valid on all pages. - // Defined here to correctly assign the Language Variables - // and be able to change the variables within code. - // - $nav_links['top'] = array ( - 'url' => append_sid($phpbb_root_path . 'index.' . $phpEx), - 'title' => sprintf($lang['Forum_Index'], $board_config['sitename']) - ); - $nav_links['search'] = array ( - 'url' => append_sid($phpbb_root_path . 'search.' . $phpEx), - 'title' => $lang['Search'] - ); - $nav_links['help'] = array ( - 'url' => append_sid($phpbb_root_path . 'faq.' . $phpEx), - 'title' => $lang['FAQ'] - ); - $nav_links['author'] = array ( - 'url' => append_sid($phpbb_root_path . 'memberlist.' . $phpEx), - 'title' => $lang['Memberlist'] - ); - - return; -} - -function setup_style($style) -{ - global $db, $board_config, $template, $images, $phpbb_root_path; - - $sql = "SELECT * - FROM " . THEMES_TABLE . " - WHERE themes_id = $style"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(CRITICAL_ERROR, 'Could not query database for theme info'); - } - - if ( !($row = $db->sql_fetchrow($result)) ) - { - message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]"); - } - - $template_path = 'templates/' ; - $template_name = $row['template_name'] ; - - $template = new Template($phpbb_root_path . $template_path . $template_name); - - if ( $template ) - { - $current_template_path = $template_path . $template_name; - @include($phpbb_root_path . $template_path . $template_name . '/' . $template_name . '.cfg'); - - if ( !defined('TEMPLATE_CONFIG') ) - { - message_die(CRITICAL_ERROR, "Could not open $template_name template config file", '', __LINE__, __FILE__); - } - - $img_lang = ( file_exists(@phpbb_realpath($phpbb_root_path . $current_template_path . '/images/lang_' . $board_config['default_lang'])) ) ? $board_config['default_lang'] : 'english'; - - while( list($key, $value) = @each($images) ) - { - if ( !is_array($value) ) - { - $images[$key] = str_replace('{LANG}', 'lang_' . $img_lang, $value); - } - } - } - - return $row; -} - -function encode_ip($dotquad_ip) -{ - $ip_sep = explode('.', $dotquad_ip); - return sprintf('%02x%02x%02x%02x', $ip_sep[0], $ip_sep[1], $ip_sep[2], $ip_sep[3]); -} - -function decode_ip($int_ip) -{ - $hexipbang = explode('.', chunk_split($int_ip, 2, '.')); - return hexdec($hexipbang[0]). '.' . hexdec($hexipbang[1]) . '.' . hexdec($hexipbang[2]) . '.' . hexdec($hexipbang[3]); -} - -// -// Create date/time from format and timezone -// -function create_date($format, $gmepoch, $tz) -{ - global $board_config, $lang; - static $translate; - - if ( empty($translate) && $board_config['default_lang'] != 'english' ) - { - @reset($lang['datetime']); - while ( list($match, $replace) = @each($lang['datetime']) ) - { - $translate[$match] = $replace; - } - } - - return ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * $tz)), $translate) : @gmdate($format, $gmepoch + (3600 * $tz)); -} - -// -// Pagination routine, generates -// page number sequence -// -function generate_pagination($base_url, $num_items, $per_page, $start_item, $add_prevnext_text = TRUE) -{ - global $lang; - - $total_pages = ceil($num_items/$per_page); - - if ( $total_pages == 1 ) - { - return ''; - } - - $on_page = floor($start_item / $per_page) + 1; - - $page_string = ''; - if ( $total_pages > 10 ) - { - $init_page_max = ( $total_pages > 3 ) ? 3 : $total_pages; - - for($i = 1; $i < $init_page_max + 1; $i++) - { - $page_string .= ( $i == $on_page ) ? '' . $i . '' : '' . $i . ''; - if ( $i < $init_page_max ) - { - $page_string .= ", "; - } - } - - if ( $total_pages > 3 ) - { - if ( $on_page > 1 && $on_page < $total_pages ) - { - $page_string .= ( $on_page > 5 ) ? ' ... ' : ', '; - - $init_page_min = ( $on_page > 4 ) ? $on_page : 5; - $init_page_max = ( $on_page < $total_pages - 4 ) ? $on_page : $total_pages - 4; - - for($i = $init_page_min - 1; $i < $init_page_max + 2; $i++) - { - $page_string .= ($i == $on_page) ? '' . $i . '' : '' . $i . ''; - if ( $i < $init_page_max + 1 ) - { - $page_string .= ', '; - } - } - - $page_string .= ( $on_page < $total_pages - 4 ) ? ' ... ' : ', '; - } - else - { - $page_string .= ' ... '; - } - - for($i = $total_pages - 2; $i < $total_pages + 1; $i++) - { - $page_string .= ( $i == $on_page ) ? '' . $i . '' : '' . $i . ''; - if( $i < $total_pages ) - { - $page_string .= ", "; - } - } - } - } - else - { - for($i = 1; $i < $total_pages + 1; $i++) - { - $page_string .= ( $i == $on_page ) ? '' . $i . '' : '' . $i . ''; - if ( $i < $total_pages ) - { - $page_string .= ', '; - } - } - } - - if ( $add_prevnext_text ) - { - if ( $on_page > 1 ) - { - $page_string = ' ' . $lang['Previous'] . '  ' . $page_string; - } - - if ( $on_page < $total_pages ) - { - $page_string .= '  ' . $lang['Next'] . ''; - } - - } - - $page_string = $lang['Goto_page'] . ' ' . $page_string; - - return $page_string; -} - -// -// This does exactly what preg_quote() does in PHP 4-ish -// If you just need the 1-parameter preg_quote call, then don't bother using this. -// -function phpbb_preg_quote($str, $delimiter) -{ - $text = preg_quote($str); - $text = str_replace($delimiter, '\\' . $delimiter, $text); - - return $text; -} - -// -// Obtain list of naughty words and build preg style replacement arrays for use by the -// calling script, note that the vars are passed as references this just makes it easier -// to return both sets of arrays -// -function obtain_word_list(&$orig_word, &$replacement_word) -{ - global $db; - - // - // Define censored word matches - // - $sql = "SELECT word, replacement - FROM " . WORDS_TABLE; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get censored words from database', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - do - { - $orig_word[] = '#\b(' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word'], '#')) . ')\b#i'; - $replacement_word[] = $row['replacement']; - } - while ( $row = $db->sql_fetchrow($result) ); - } - - return true; -} - -// -// This is general replacement for die(), allows templated -// output in users (or default) language, etc. -// -// $msg_code can be one of these constants: -// -// GENERAL_MESSAGE : Use for any simple text message, eg. results -// of an operation, authorisation failures, etc. -// -// GENERAL ERROR : Use for any error which occurs _AFTER_ the -// common.php include and session code, ie. most errors in -// pages/functions -// -// CRITICAL_MESSAGE : Used when basic config data is available but -// a session may not exist, eg. banned users -// -// CRITICAL_ERROR : Used when config data cannot be obtained, eg -// no database connection. Should _not_ be used in 99.5% of cases -// -function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '') -{ - global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path, $nav_links, $gen_simple_header, $images; - global $userdata, $user_ip, $session_length; - global $starttime; - - if(defined('HAS_DIED')) - { - die("message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?"); - } - - define(HAS_DIED, 1); - - - $sql_store = $sql; - - // - // Get SQL error if we are debugging. Do this as soon as possible to prevent - // subsequent queries from overwriting the status of sql_error() - // - if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) ) - { - $sql_error = $db->sql_error(); - - $debug_text = ''; - - if ( $sql_error['message'] != '' ) - { - $debug_text .= '

    SQL Error : ' . $sql_error['code'] . ' ' . $sql_error['message']; - } - - if ( $sql_store != '' ) - { - $debug_text .= "

    $sql_store"; - } - - if ( $err_line != '' && $err_file != '' ) - { - $debug_text .= '

    Line : ' . $err_line . '
    File : ' . $err_file; - } - } - - if( empty($userdata) && ( $msg_code == GENERAL_MESSAGE || $msg_code == GENERAL_ERROR ) ) - { - $userdata = session_pagestart($user_ip, PAGE_INDEX); - init_userprefs($userdata); - } - - // - // If the header hasn't been output then do it - // - if ( !defined('HEADER_INC') && $msg_code != CRITICAL_ERROR ) - { - if ( empty($lang) ) - { - if ( !empty($board_config['default_lang']) ) - { - include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx); - } - else - { - include($phpbb_root_path . 'language/lang_english/lang_main.'.$phpEx); - } - } - - if ( empty($template) ) - { - $template = new Template($phpbb_root_path . 'templates/' . $board_config['board_template']); - } - if ( empty($theme) ) - { - $theme = setup_style($board_config['default_style']); - } - - // - // Load the Page Header - // - if ( !defined('IN_ADMIN') ) - { - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - } - else - { - include($phpbb_root_path . 'admin/page_header_admin.'.$phpEx); - } - } - - switch($msg_code) - { - case GENERAL_MESSAGE: - if ( $msg_title == '' ) - { - $msg_title = $lang['Information']; - } - break; - - case CRITICAL_MESSAGE: - if ( $msg_title == '' ) - { - $msg_title = $lang['Critical_Information']; - } - break; - - case GENERAL_ERROR: - if ( $msg_text == '' ) - { - $msg_text = $lang['An_error_occured']; - } - - if ( $msg_title == '' ) - { - $msg_title = $lang['General_Error']; - } - break; - - case CRITICAL_ERROR: - // - // Critical errors mean we cannot rely on _ANY_ DB information being - // available so we're going to dump out a simple echo'd statement - // - include($phpbb_root_path . 'language/lang_english/lang_main.'.$phpEx); - - if ( $msg_text == '' ) - { - $msg_text = $lang['A_critical_error']; - } - - if ( $msg_title == '' ) - { - $msg_title = 'phpBB : ' . $lang['Critical_Error'] . ''; - } - break; - } - - // - // Add on DEBUG info if we've enabled debug mode and this is an error. This - // prevents debug info being output for general messages should DEBUG be - // set TRUE by accident (preventing confusion for the end user!) - // - if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) ) - { - if ( $debug_text != '' ) - { - $msg_text = $msg_text . '

    DEBUG MODE' . $debug_text; - } - } - - if ( $msg_code != CRITICAL_ERROR ) - { - if ( !empty($lang[$msg_text]) ) - { - $msg_text = $lang[$msg_text]; - } - - if ( !defined('IN_ADMIN') ) - { - $template->set_filenames(array( - 'message_body' => 'message_body.tpl') - ); - } - else - { - $template->set_filenames(array( - 'message_body' => 'admin/admin_message_body.tpl') - ); - } - - $template->assign_vars(array( - 'MESSAGE_TITLE' => $msg_title, - 'MESSAGE_TEXT' => $msg_text) - ); - $template->pparse('message_body'); - - if ( !defined('IN_ADMIN') ) - { - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } - else - { - include($phpbb_root_path . 'admin/page_footer_admin.'.$phpEx); - } - } - else - { - echo "\n\n" . $msg_title . "\n

    \n" . $msg_text . "\n"; - } - - exit; -} - -// -// This function is for compatibility with PHP 4.x's realpath() -// function. In later versions of PHP, it needs to be called -// to do checks with some functions. Older versions of PHP don't -// seem to need this, so we'll just return the original value. -// dougk_ff7 -function phpbb_realpath($path) -{ - global $phpbb_root_path, $phpEx; - - return (!@function_exists('realpath') || !@realpath($phpbb_root_path . 'includes/functions.'.$phpEx)) ? $path : @realpath($path); -} - -function redirect($url) -{ - global $db, $board_config; - - if (!empty($db)) - { - $db->sql_close(); - } - - if (strstr(urldecode($url), "\n") || strstr(urldecode($url), "\r")) - { - message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.'); - } - - $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; - $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); - $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; - $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); - $script_name = ($script_name == '') ? $script_name : '/' . $script_name; - $url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url)); - - // Redirect via an HTML form for PITA webservers - if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) - { - header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url); - echo 'Redirect
    If your browser does not support meta redirection please click HERE to be redirected
    '; - exit; - } - - // Behave as per HTTP/1.1 spec for others - header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url); - exit; -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/functions_admin.php b/phpBB2_old/includes/functions_admin.php deleted file mode 100644 index 23fe1b2..0000000 --- a/phpBB2_old/includes/functions_admin.php +++ /dev/null @@ -1,155 +0,0 @@ -sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Couldn not obtain forums information', '', __LINE__, __FILE__, $sql); - } - - $forum_list = ''; - while( $row = $db->sql_fetchrow($result) ) - { - if ( $is_auth_ary[$row['forum_id']]['auth_read'] && $ignore_forum != $row['forum_id'] ) - { - $selected = ( $select_forum == $row['forum_id'] ) ? ' selected="selected"' : ''; - $forum_list .= ''; - } - } - - $forum_list = ( $forum_list == '' ) ? '' : ''; - - return $forum_list; -} - -// -// Synchronise functions for forums/topics -// -function sync($type, $id = false) -{ - global $db; - - switch($type) - { - case 'all forums': - $sql = "SELECT forum_id - FROM " . FORUMS_TABLE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get forum IDs', '', __LINE__, __FILE__, $sql); - } - - while( $row = $db->sql_fetchrow($result) ) - { - sync('forum', $row['forum_id']); - } - break; - - case 'all topics': - $sql = "SELECT topic_id - FROM " . TOPICS_TABLE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get topic ID', '', __LINE__, __FILE__, $sql); - } - - while( $row = $db->sql_fetchrow($result) ) - { - sync('topic', $row['topic_id']); - } - break; - - case 'forum': - $sql = "SELECT MAX(post_id) AS last_post, COUNT(post_id) AS total - FROM " . POSTS_TABLE . " - WHERE forum_id = $id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get post ID', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $last_post = ( $row['last_post'] ) ? $row['last_post'] : 0; - $total_posts = ($row['total']) ? $row['total'] : 0; - } - else - { - $last_post = 0; - $total_posts = 0; - } - - $sql = "SELECT COUNT(topic_id) AS total - FROM " . TOPICS_TABLE . " - WHERE forum_id = $id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get topic count', '', __LINE__, __FILE__, $sql); - } - - $total_topics = ( $row = $db->sql_fetchrow($result) ) ? ( ( $row['total'] ) ? $row['total'] : 0 ) : 0; - - $sql = "UPDATE " . FORUMS_TABLE . " - SET forum_last_post_id = $last_post, forum_posts = $total_posts, forum_topics = $total_topics - WHERE forum_id = $id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update forum', '', __LINE__, __FILE__, $sql); - } - break; - - case 'topic': - $sql = "SELECT MAX(post_id) AS last_post, MIN(post_id) AS first_post, COUNT(post_id) AS total_posts - FROM " . POSTS_TABLE . " - WHERE topic_id = $id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get post ID', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $sql = ( $row['total_posts'] ) ? "UPDATE " . TOPICS_TABLE . " SET topic_replies = " . ( $row['total_posts'] - 1 ) . ", topic_first_post_id = " . $row['first_post'] . ", topic_last_post_id = " . $row['last_post'] . " WHERE topic_id = $id" : "DELETE FROM " . TOPICS_TABLE . " WHERE topic_id = $id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update topic', '', __LINE__, __FILE__, $sql); - } - } - break; - } - - return true; -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/functions_post.php b/phpBB2_old/includes/functions_post.php deleted file mode 100644 index 076c6d9..0000000 --- a/phpBB2_old/includes/functions_post.php +++ /dev/null @@ -1,862 +0,0 @@ -#'); -$html_entities_replace = array('&', '<', '>'); - -$unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#'); -$unhtml_specialchars_replace = array('>', '<', '"', '&'); - -// -// This function will prepare a posted message for -// entry into the database. -// -function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid = 0) -{ - global $board_config, $html_entities_match, $html_entities_replace; - - // - // Clean up the message - // - $message = trim($message); - - if ($html_on) - { - $allowed_html_tags = split(',', $board_config['allow_html_tags']); - - $end_html = 0; - $start_html = 1; - $tmp_message = ''; - $message = ' ' . $message . ' '; - - while ($start_html = strpos($message, '<', $start_html)) - { - $tmp_message .= preg_replace($html_entities_match, $html_entities_replace, substr($message, $end_html + 1, ($start_html - $end_html - 1))); - - if ($end_html = strpos($message, '>', $start_html)) - { - $length = $end_html - $start_html + 1; - $hold_string = substr($message, $start_html, $length); - - if (($unclosed_open = strrpos(' ' . $hold_string, '<')) != 1) - { - $tmp_message .= preg_replace($html_entities_match, $html_entities_replace, substr($hold_string, 0, $unclosed_open - 1)); - $hold_string = substr($hold_string, $unclosed_open - 1); - } - - $tagallowed = false; - for ($i = 0; $i < sizeof($allowed_html_tags); $i++) - { - $match_tag = trim($allowed_html_tags[$i]); - if (preg_match('#^<\/?' . $match_tag . '[> ]#i', $hold_string)) - { - $tagallowed = (preg_match('#^<\/?' . $match_tag . ' .*?(style[\t ]*?=|on[\w]+[\t ]*?=)#i', $hold_string)) ? false : true; - } - } - - $tmp_message .= ($length && !$tagallowed) ? preg_replace($html_entities_match, $html_entities_replace, $hold_string) : $hold_string; - - $start_html += $length; - } - else - { - $tmp_message .= preg_replace($html_entities_match, $html_entities_replace, substr($message, $start_html, strlen($message))); - - $start_html = strlen($message); - $end_html = $start_html; - } - } - - if (!$end_html || ($end_html != strlen($message) && $tmp_message != '')) - { - $tmp_message .= preg_replace($html_entities_match, $html_entities_replace, substr($message, $end_html + 1)); - } - - $message = ($tmp_message != '') ? trim($tmp_message) : trim($message); - } - else - { - $message = preg_replace($html_entities_match, $html_entities_replace, $message); - } - - if($bbcode_on && $bbcode_uid != '') - { - $message = bbencode_first_pass($message, $bbcode_uid); - } - - return $message; -} - -function unprepare_message($message) -{ - global $unhtml_specialchars_match, $unhtml_specialchars_replace; - - return preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, $message); -} - -// -// Prepare a message for posting -// -function prepare_post(&$mode, &$post_data, &$bbcode_on, &$html_on, &$smilies_on, &$error_msg, &$username, &$bbcode_uid, &$subject, &$message, &$poll_title, &$poll_options, &$poll_length) -{ - global $board_config, $userdata, $lang, $phpEx, $phpbb_root_path; - - // Check username - if (!empty($username)) - { - $username = phpbb_clean_username($username); - - if (!$userdata['session_logged_in'] || ($userdata['session_logged_in'] && $username != $userdata['username'])) - { - include($phpbb_root_path . 'includes/functions_validate.'.$phpEx); - - $result = validate_username($username); - if ($result['error']) - { - $error_msg .= (!empty($error_msg)) ? '
    ' . $result['error_msg'] : $result['error_msg']; - } - } - else - { - $username = ''; - } - } - - // Check subject - if (!empty($subject)) - { - $subject = htmlspecialchars(trim($subject)); - } - else if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post'])) - { - $error_msg .= (!empty($error_msg)) ? '
    ' . $lang['Empty_subject'] : $lang['Empty_subject']; - } - - // Check message - if (!empty($message)) - { - $bbcode_uid = ($bbcode_on) ? make_bbcode_uid() : ''; - $message = prepare_message(trim($message), $html_on, $bbcode_on, $smilies_on, $bbcode_uid); - } - else if ($mode != 'delete' && $mode != 'poll_delete') - { - $error_msg .= (!empty($error_msg)) ? '
    ' . $lang['Empty_message'] : $lang['Empty_message']; - } - - // - // Handle poll stuff - // - if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post'])) - { - $poll_length = (isset($poll_length)) ? max(0, intval($poll_length)) : 0; - - if (!empty($poll_title)) - { - $poll_title = htmlspecialchars(trim($poll_title)); - } - - if(!empty($poll_options)) - { - $temp_option_text = array(); - while(list($option_id, $option_text) = @each($poll_options)) - { - $option_text = trim($option_text); - if (!empty($option_text)) - { - $temp_option_text[$option_id] = htmlspecialchars($option_text); - } - } - $option_text = $temp_option_text; - - if (count($poll_options) < 2) - { - $error_msg .= (!empty($error_msg)) ? '
    ' . $lang['To_few_poll_options'] : $lang['To_few_poll_options']; - } - else if (count($poll_options) > $board_config['max_poll_options']) - { - $error_msg .= (!empty($error_msg)) ? '
    ' . $lang['To_many_poll_options'] : $lang['To_many_poll_options']; - } - else if ($poll_title == '') - { - $error_msg .= (!empty($error_msg)) ? '
    ' . $lang['Empty_poll_title'] : $lang['Empty_poll_title']; - } - } - } - - return; -} - -// -// Post a new topic/reply/poll or edit existing post/poll -// -function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length) -{ - global $board_config, $lang, $db, $phpbb_root_path, $phpEx; - global $userdata, $user_ip; - - include($phpbb_root_path . 'includes/functions_search.'.$phpEx); - - $current_time = time(); - - if ($mode == 'newtopic' || $mode == 'reply' || $mode == 'editpost') - { - // - // Flood control - // - $where_sql = ($userdata['user_id'] == ANONYMOUS) ? "poster_ip = '$user_ip'" : 'poster_id = ' . $userdata['user_id']; - $sql = "SELECT MAX(post_time) AS last_post_time - FROM " . POSTS_TABLE . " - WHERE $where_sql"; - if ($result = $db->sql_query($sql)) - { - if ($row = $db->sql_fetchrow($result)) - { - if (intval($row['last_post_time']) > 0 && ($current_time - intval($row['last_post_time'])) < intval($board_config['flood_interval'])) - { - message_die(GENERAL_MESSAGE, $lang['Flood_Error']); - } - } - } - } - - if ($mode == 'editpost') - { - remove_search_post($post_id); - } - - if ($mode == 'newtopic' || ($mode == 'editpost' && $post_data['first_post'])) - { - $topic_vote = (!empty($poll_title) && count($poll_options) >= 2) ? 1 : 0; - - $sql = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_type = $topic_type " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - - if ($mode == 'newtopic') - { - $topic_id = $db->sql_nextid(); - } - } - - $edited_sql = ($mode == 'editpost' && !$post_data['last_post'] && $post_data['poster_post']) ? ", post_edit_time = $current_time, post_edit_count = post_edit_count + 1 " : ""; - $sql = ($mode != "editpost") ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig) VALUES ($topic_id, $forum_id, " . $userdata['user_id'] . ", '$post_username', $current_time, '$user_ip', $bbcode_on, $html_on, $smilies_on, $attach_sig)" : "UPDATE " . POSTS_TABLE . " SET post_username = '$post_username', enable_bbcode = $bbcode_on, enable_html = $html_on, enable_smilies = $smilies_on, enable_sig = $attach_sig" . $edited_sql . " WHERE post_id = $post_id"; - if (!$db->sql_query($sql, BEGIN_TRANSACTION)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - - if ($mode != 'editpost') - { - $post_id = $db->sql_nextid(); - } - - $sql = ($mode != 'editpost') ? "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, post_subject, bbcode_uid, post_text) VALUES ($post_id, '$post_subject', '$bbcode_uid', '$post_message')" : "UPDATE " . POSTS_TEXT_TABLE . " SET post_text = '$post_message', bbcode_uid = '$bbcode_uid', post_subject = '$post_subject' WHERE post_id = $post_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - - add_search_words('single', $post_id, stripslashes($post_message), stripslashes($post_subject)); - - // - // Add poll - // - if (($mode == 'newtopic' || ($mode == 'editpost' && $post_data['edit_poll'])) && !empty($poll_title) && count($poll_options) >= 2) - { - $sql = (!$post_data['has_poll']) ? "INSERT INTO " . VOTE_DESC_TABLE . " (topic_id, vote_text, vote_start, vote_length) VALUES ($topic_id, '$poll_title', $current_time, " . ($poll_length * 86400) . ")" : "UPDATE " . VOTE_DESC_TABLE . " SET vote_text = '$poll_title', vote_length = " . ($poll_length * 86400) . " WHERE topic_id = $topic_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - - $delete_option_sql = ''; - $old_poll_result = array(); - if ($mode == 'editpost' && $post_data['has_poll']) - { - $sql = "SELECT vote_option_id, vote_result - FROM " . VOTE_RESULTS_TABLE . " - WHERE vote_id = $poll_id - ORDER BY vote_option_id ASC"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not obtain vote data results for this topic', '', __LINE__, __FILE__, $sql); - } - - while ($row = $db->sql_fetchrow($result)) - { - $old_poll_result[$row['vote_option_id']] = $row['vote_result']; - - if (!isset($poll_options[$row['vote_option_id']])) - { - $delete_option_sql .= ($delete_option_sql != '') ? ', ' . $row['vote_option_id'] : $row['vote_option_id']; - } - } - } - else - { - $poll_id = $db->sql_nextid(); - } - - @reset($poll_options); - - $poll_option_id = 1; - while (list($option_id, $option_text) = each($poll_options)) - { - if (!empty($option_text)) - { - $option_text = str_replace("\'", "''", htmlspecialchars($option_text)); - $poll_result = ($mode == "editpost" && isset($old_poll_result[$option_id])) ? $old_poll_result[$option_id] : 0; - - $sql = ($mode != "editpost" || !isset($old_poll_result[$option_id])) ? "INSERT INTO " . VOTE_RESULTS_TABLE . " (vote_id, vote_option_id, vote_option_text, vote_result) VALUES ($poll_id, $poll_option_id, '$option_text', $poll_result)" : "UPDATE " . VOTE_RESULTS_TABLE . " SET vote_option_text = '$option_text', vote_result = $poll_result WHERE vote_option_id = $option_id AND vote_id = $poll_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - $poll_option_id++; - } - } - - if ($delete_option_sql != '') - { - $sql = "DELETE FROM " . VOTE_RESULTS_TABLE . " - WHERE vote_option_id IN ($delete_option_sql) - AND vote_id = $poll_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error deleting pruned poll options', '', __LINE__, __FILE__, $sql); - } - } - } - - $meta = ''; - $message = $lang['Stored'] . '

    ' . sprintf($lang['Click_view_message'], '', '') . '

    ' . sprintf($lang['Click_return_forum'], '', ''); - - return false; -} - -// -// Update post stats and details -// -function update_post_stats(&$mode, &$post_data, &$forum_id, &$topic_id, &$post_id, &$user_id) -{ - global $db; - - $sign = ($mode == 'delete') ? '- 1' : '+ 1'; - $forum_update_sql = "forum_posts = forum_posts $sign"; - $topic_update_sql = ''; - - if ($mode == 'delete') - { - if ($post_data['last_post']) - { - if ($post_data['first_post']) - { - $forum_update_sql .= ', forum_topics = forum_topics - 1'; - } - else - { - - $topic_update_sql .= 'topic_replies = topic_replies - 1'; - - $sql = "SELECT MAX(post_id) AS last_post_id - FROM " . POSTS_TABLE . " - WHERE topic_id = $topic_id"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - $topic_update_sql .= ', topic_last_post_id = ' . $row['last_post_id']; - } - } - - if ($post_data['last_topic']) - { - $sql = "SELECT MAX(post_id) AS last_post_id - FROM " . POSTS_TABLE . " - WHERE forum_id = $forum_id"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - $forum_update_sql .= ($row['last_post_id']) ? ', forum_last_post_id = ' . $row['last_post_id'] : ', forum_last_post_id = 0'; - } - } - } - else if ($post_data['first_post']) - { - $sql = "SELECT MIN(post_id) AS first_post_id - FROM " . POSTS_TABLE . " - WHERE topic_id = $topic_id"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - $topic_update_sql .= 'topic_replies = topic_replies - 1, topic_first_post_id = ' . $row['first_post_id']; - } - } - else - { - $topic_update_sql .= 'topic_replies = topic_replies - 1'; - } - } - else if ($mode != 'poll_delete') - { - $forum_update_sql .= ", forum_last_post_id = $post_id" . (($mode == 'newtopic') ? ", forum_topics = forum_topics $sign" : ""); - $topic_update_sql = "topic_last_post_id = $post_id" . (($mode == 'reply') ? ", topic_replies = topic_replies $sign" : ", topic_first_post_id = $post_id"); - } - else - { - $topic_update_sql .= 'topic_vote = 0'; - } - - $sql = "UPDATE " . FORUMS_TABLE . " SET - $forum_update_sql - WHERE forum_id = $forum_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - - if ($topic_update_sql != '') - { - $sql = "UPDATE " . TOPICS_TABLE . " SET - $topic_update_sql - WHERE topic_id = $topic_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - } - - if ($mode != 'poll_delete') - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_posts = user_posts $sign - WHERE user_id = $user_id"; - if (!$db->sql_query($sql, END_TRANSACTION)) - { - message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); - } - } - - return; -} - -// -// Delete a post/poll -// -function delete_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id) -{ - global $board_config, $lang, $db, $phpbb_root_path, $phpEx; - global $userdata, $user_ip; - - if ($mode != 'poll_delete') - { - include($phpbb_root_path . 'includes/functions_search.'.$phpEx); - - $sql = "DELETE FROM " . POSTS_TABLE . " - WHERE post_id = $post_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . POSTS_TEXT_TABLE . " - WHERE post_id = $post_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - - if ($post_data['last_post']) - { - if ($post_data['first_post']) - { - $forum_update_sql .= ', forum_topics = forum_topics - 1'; - $sql = "DELETE FROM " . TOPICS_TABLE . " - WHERE topic_id = $topic_id - OR topic_moved_id = $topic_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - } - } - - remove_search_post($post_id); - } - - if ($mode == 'poll_delete' || ($mode == 'delete' && $post_data['first_post'] && $post_data['last_post']) && $post_data['has_poll'] && $post_data['edit_poll']) - { - $sql = "DELETE FROM " . VOTE_DESC_TABLE . " - WHERE topic_id = $topic_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in deleting poll', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . VOTE_RESULTS_TABLE . " - WHERE vote_id = $poll_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in deleting poll', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . VOTE_USERS_TABLE . " - WHERE vote_id = $poll_id"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Error in deleting poll', '', __LINE__, __FILE__, $sql); - } - } - - if ($mode == 'delete' && $post_data['first_post'] && $post_data['last_post']) - { - $meta = ''; - $message = $lang['Deleted']; - } - else - { - $meta = ''; - $message = (($mode == 'poll_delete') ? $lang['Poll_delete'] : $lang['Deleted']) . '

    ' . sprintf($lang['Click_return_topic'], '', ''); - } - - $message .= '

    ' . sprintf($lang['Click_return_forum'], '', ''); - - return; -} - -// -// Handle user notification on new post -// -function user_notification($mode, &$post_data, &$topic_title, &$forum_id, &$topic_id, &$post_id, &$notify_user) -{ - global $board_config, $lang, $db, $phpbb_root_path, $phpEx; - global $userdata, $user_ip; - - $current_time = time(); - - if ($mode == 'delete') - { - $delete_sql = (!$post_data['first_post'] && !$post_data['last_post']) ? " AND user_id = " . $userdata['user_id'] : ''; - $sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " WHERE topic_id = $topic_id" . $delete_sql; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Could not change topic notify data', '', __LINE__, __FILE__, $sql); - } - } - else - { - if ($mode == 'reply') - { - $sql = "SELECT ban_userid - FROM " . BANLIST_TABLE; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not obtain banlist', '', __LINE__, __FILE__, $sql); - } - - $user_id_sql = ''; - while ($row = $db->sql_fetchrow($result)) - { - if (isset($row['ban_userid']) && !empty($row['ban_userid'])) - { - $user_id_sql .= ', ' . $row['ban_userid']; - } - } - - $sql = "SELECT u.user_id, u.user_email, u.user_lang - FROM " . TOPICS_WATCH_TABLE . " tw, " . USERS_TABLE . " u - WHERE tw.topic_id = $topic_id - AND tw.user_id NOT IN (" . $userdata['user_id'] . ", " . ANONYMOUS . $user_id_sql . ") - AND tw.notify_status = " . TOPIC_WATCH_UN_NOTIFIED . " - AND u.user_id = tw.user_id"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not obtain list of topic watchers', '', __LINE__, __FILE__, $sql); - } - - $update_watched_sql = ''; - $bcc_list_ary = array(); - - if ($row = $db->sql_fetchrow($result)) - { - // Sixty second limit - @set_time_limit(60); - - do - { - if ($row['user_email'] != '') - { - $bcc_list_ary[$row['user_lang']][] = $row['user_email']; - } - $update_watched_sql .= ($update_watched_sql != '') ? ', ' . $row['user_id'] : $row['user_id']; - } - while ($row = $db->sql_fetchrow($result)); - - // - // Let's do some checking to make sure that mass mail functions - // are working in win32 versions of php. - // - if (preg_match('/[c-z]:\\\.*/i', getenv('PATH')) && !$board_config['smtp_delivery']) - { - $ini_val = (@phpversion() >= '4.0.0') ? 'ini_get' : 'get_cfg_var'; - - // We are running on windows, force delivery to use our smtp functions - // since php's are broken by default - $board_config['smtp_delivery'] = 1; - $board_config['smtp_host'] = @$ini_val('SMTP'); - } - - if (sizeof($bcc_list_ary)) - { - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $script_name = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['script_path'])); - $script_name = ($script_name != '') ? $script_name . '/viewtopic.'.$phpEx : 'viewtopic.'.$phpEx; - $server_name = trim($board_config['server_name']); - $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; - $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) . '/' : '/'; - - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $topic_title = (count($orig_word)) ? preg_replace($orig_word, $replacement_word, unprepare_message($topic_title)) : unprepare_message($topic_title); - - @reset($bcc_list_ary); - while (list($user_lang, $bcc_list) = each($bcc_list_ary)) - { - $emailer->use_template('topic_notify', $user_lang); - - for ($i = 0; $i < count($bcc_list); $i++) - { - $emailer->bcc($bcc_list[$i]); - } - - // The Topic_reply_notification lang string below will be used - // if for some reason the mail template subject cannot be read - // ... note it will not necessarily be in the posters own language! - $emailer->set_subject($lang['Topic_reply_notification']); - - // This is a nasty kludge to remove the username var ... till (if?) - // translators update their templates - $emailer->msg = preg_replace('#[ ]?{USERNAME}#', '', $emailer->msg); - - $emailer->assign_vars(array( - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
    ', "\n", "-- \n" . $board_config['board_email_sig']) : '', - 'SITENAME' => $board_config['sitename'], - 'TOPIC_TITLE' => $topic_title, - - 'U_TOPIC' => $server_protocol . $server_name . $server_port . $script_name . '?' . POST_POST_URL . "=$post_id#$post_id", - 'U_STOP_WATCHING_TOPIC' => $server_protocol . $server_name . $server_port . $script_name . '?' . POST_TOPIC_URL . "=$topic_id&unwatch=topic") - ); - - $emailer->send(); - $emailer->reset(); - } - } - } - $db->sql_freeresult($result); - - if ($update_watched_sql != '') - { - $sql = "UPDATE " . TOPICS_WATCH_TABLE . " - SET notify_status = " . TOPIC_WATCH_NOTIFIED . " - WHERE topic_id = $topic_id - AND user_id IN ($update_watched_sql)"; - $db->sql_query($sql); - } - } - - $sql = "SELECT topic_id - FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not obtain topic watch information', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - - if (!$notify_user && !empty($row['topic_id'])) - { - $sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Could not delete topic watch information', '', __LINE__, __FILE__, $sql); - } - } - else if ($notify_user && empty($row['topic_id'])) - { - $sql = "INSERT INTO " . TOPICS_WATCH_TABLE . " (user_id, topic_id, notify_status) - VALUES (" . $userdata['user_id'] . ", $topic_id, 0)"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Could not insert topic watch information', '', __LINE__, __FILE__, $sql); - } - } - } -} - -// -// Fill smiley templates (or just the variables) with smileys -// Either in a window or inline -// -function generate_smilies($mode, $page_id) -{ - global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path; - global $user_ip, $session_length, $starttime; - global $userdata; - - $inline_columns = 4; - $inline_rows = 5; - $window_columns = 8; - - if ($mode == 'window') - { - $userdata = session_pagestart($user_ip, $page_id); - init_userprefs($userdata); - - $gen_simple_header = TRUE; - - $page_title = $lang['Emoticons'] . " - $topic_title"; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'smiliesbody' => 'posting_smilies.tpl') - ); - } - - $sql = "SELECT emoticon, code, smile_url - FROM " . SMILIES_TABLE . " - ORDER BY smilies_id"; - if ($result = $db->sql_query($sql)) - { - $num_smilies = 0; - $rowset = array(); - while ($row = $db->sql_fetchrow($result)) - { - if (empty($rowset[$row['smile_url']])) - { - $rowset[$row['smile_url']]['code'] = str_replace("'", "\\'", str_replace('\\', '\\\\', $row['code'])); - $rowset[$row['smile_url']]['emoticon'] = $row['emoticon']; - $num_smilies++; - } - } - - if ($num_smilies) - { - $smilies_count = ($mode == 'inline') ? min(19, $num_smilies) : $num_smilies; - $smilies_split_row = ($mode == 'inline') ? $inline_columns - 1 : $window_columns - 1; - - $s_colspan = 0; - $row = 0; - $col = 0; - - while (list($smile_url, $data) = @each($rowset)) - { - if (!$col) - { - $template->assign_block_vars('smilies_row', array()); - } - - $template->assign_block_vars('smilies_row.smilies_col', array( - 'SMILEY_CODE' => $data['code'], - 'SMILEY_IMG' => $board_config['smilies_path'] . '/' . $smile_url, - 'SMILEY_DESC' => $data['emoticon']) - ); - - $s_colspan = max($s_colspan, $col + 1); - - if ($col == $smilies_split_row) - { - if ($mode == 'inline' && $row == $inline_rows - 1) - { - break; - } - $col = 0; - $row++; - } - else - { - $col++; - } - } - - if ($mode == 'inline' && $num_smilies > $inline_rows * $inline_columns) - { - $template->assign_block_vars('switch_smilies_extra', array()); - - $template->assign_vars(array( - 'L_MORE_SMILIES' => $lang['More_emoticons'], - 'U_MORE_SMILIES' => append_sid("posting.$phpEx?mode=smilies")) - ); - } - - $template->assign_vars(array( - 'L_EMOTICONS' => $lang['Emoticons'], - 'L_CLOSE_WINDOW' => $lang['Close_window'], - 'S_SMILIES_COLSPAN' => $s_colspan) - ); - } - } - - if ($mode == 'window') - { - $template->pparse('smiliesbody'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/functions_search.php b/phpBB2_old/includes/functions_search.php deleted file mode 100644 index 2fcbb54..0000000 --- a/phpBB2_old/includes/functions_search.php +++ /dev/null @@ -1,498 +0,0 @@ -', '`', '\'', '"', '|', ',', '@', '_', '?', '%', '-', '~', '+', '.', '[', ']', '{', '}', ':', '\\', '/', '=', '#', '\'', ';', '!'); - static $drop_char_replace = array(' ', ' ', ' ', ' ', ' ', ' ', ' ', '', '', ' ', ' ', ' ', ' ', '', ' ', ' ', '', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' , ' ', ' ', ' ', ' ', ' ', ' '); - - $entry = ' ' . strip_tags(strtolower($entry)) . ' '; - - if ( $mode == 'post' ) - { - // Replace line endings by a space - $entry = preg_replace('/[\n\r]/is', ' ', $entry); - // HTML entities like   - $entry = preg_replace('/\b&[a-z]+;\b/', ' ', $entry); - // Remove URL's - $entry = preg_replace('/\b[a-z0-9]+:\/\/[a-z0-9\.\-]+(\/[a-z0-9\?\.%_\-\+=&\/]+)?/', ' ', $entry); - // Quickly remove BBcode. - $entry = preg_replace('/\[img:[a-z0-9]{10,}\].*?\[\/img:[a-z0-9]{10,}\]/', ' ', $entry); - $entry = preg_replace('/\[\/?url(=.*?)?\]/', ' ', $entry); - $entry = preg_replace('/\[\/?[a-z\*=\+\-]+(\:?[0-9a-z]+)?:[a-z0-9]{10,}(\:[a-z0-9]+)?=?.*?\]/', ' ', $entry); - } - else if ( $mode == 'search' ) - { - $entry = str_replace(' +', ' and ', $entry); - $entry = str_replace(' -', ' not ', $entry); - } - - // - // Filter out strange characters like ^, $, &, change "it's" to "its" - // - for($i = 0; $i < count($drop_char_match); $i++) - { - $entry = str_replace($drop_char_match[$i], $drop_char_replace[$i], $entry); - } - - if ( $mode == 'post' ) - { - $entry = str_replace('*', ' ', $entry); - - // 'words' that consist of <3 or >20 characters are removed. - $entry = preg_replace('/[ ]([\S]{1,2}|[\S]{21,})[ ]/',' ', $entry); - } - - if ( !empty($stopword_list) ) - { - for ($j = 0; $j < count($stopword_list); $j++) - { - $stopword = trim($stopword_list[$j]); - - if ( $mode == 'post' || ( $stopword != 'not' && $stopword != 'and' && $stopword != 'or' ) ) - { - $entry = str_replace(' ' . trim($stopword) . ' ', ' ', $entry); - } - } - } - - if ( !empty($synonym_list) ) - { - for ($j = 0; $j < count($synonym_list); $j++) - { - list($replace_synonym, $match_synonym) = split(' ', trim(strtolower($synonym_list[$j]))); - if ( $mode == 'post' || ( $match_synonym != 'not' && $match_synonym != 'and' && $match_synonym != 'or' ) ) - { - $entry = str_replace(' ' . trim($match_synonym) . ' ', ' ' . trim($replace_synonym) . ' ', $entry); - } - } - } - - return $entry; -} - -function split_words(&$entry, $mode = 'post') -{ - // If you experience problems with the new method, uncomment this block. -/* - $rex = ( $mode == 'post' ) ? "/\b([\w±µ-ÿ][\w±µ-ÿ']*[\w±µ-ÿ]+|[\w±µ-ÿ]+?)\b/" : '/(\*?[a-z0-9±µ-ÿ]+\*?)|\b([a-z0-9±µ-ÿ]+)\b/'; - preg_match_all($rex, $entry, $split_entries); - - return $split_entries[1]; -*/ - // Trim 1+ spaces to one space and split this trimmed string into words. - return explode(' ', trim(preg_replace('#\s+#', ' ', $entry))); -} - -function add_search_words($mode, $post_id, $post_text, $post_title = '') -{ - global $db, $phpbb_root_path, $board_config, $lang; - - $stopword_array = @file($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . "/search_stopwords.txt"); - $synonym_array = @file($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . "/search_synonyms.txt"); - - $search_raw_words = array(); - $search_raw_words['text'] = split_words(clean_words('post', $post_text, $stopword_array, $synonym_array)); - $search_raw_words['title'] = split_words(clean_words('post', $post_title, $stopword_array, $synonym_array)); - - @set_time_limit(0); - - $word = array(); - $word_insert_sql = array(); - while ( list($word_in, $search_matches) = @each($search_raw_words) ) - { - $word_insert_sql[$word_in] = ''; - if ( !empty($search_matches) ) - { - for ($i = 0; $i < count($search_matches); $i++) - { - $search_matches[$i] = trim($search_matches[$i]); - - if( $search_matches[$i] != '' ) - { - $word[] = $search_matches[$i]; - if ( !strstr($word_insert_sql[$word_in], "'" . $search_matches[$i] . "'") ) - { - $word_insert_sql[$word_in] .= ( $word_insert_sql[$word_in] != "" ) ? ", '" . $search_matches[$i] . "'" : "'" . $search_matches[$i] . "'"; - } - } - } - } - } - - if ( count($word) ) - { - sort($word); - - $prev_word = ''; - $word_text_sql = ''; - $temp_word = array(); - for($i = 0; $i < count($word); $i++) - { - if ( $word[$i] != $prev_word ) - { - $temp_word[] = $word[$i]; - $word_text_sql .= ( ( $word_text_sql != '' ) ? ', ' : '' ) . "'" . $word[$i] . "'"; - } - $prev_word = $word[$i]; - } - $word = $temp_word; - - $check_words = array(); - switch( SQL_LAYER ) - { - case 'postgresql': - case 'msaccess': - case 'mssql-odbc': - case 'oracle': - case 'db2': - $sql = "SELECT word_id, word_text - FROM " . SEARCH_WORD_TABLE . " - WHERE word_text IN ($word_text_sql)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select words', '', __LINE__, __FILE__, $sql); - } - - while ( $row = $db->sql_fetchrow($result) ) - { - $check_words[$row['word_text']] = $row['word_id']; - } - break; - } - - $value_sql = ''; - $match_word = array(); - for ($i = 0; $i < count($word); $i++) - { - $new_match = true; - if ( isset($check_words[$word[$i]]) ) - { - $new_match = false; - } - - if ( $new_match ) - { - switch( SQL_LAYER ) - { - case 'mysql': - case 'mysql4': - $value_sql .= ( ( $value_sql != '' ) ? ', ' : '' ) . '(\'' . $word[$i] . '\', 0)'; - break; - case 'mssql': - case 'mssql-odbc': - $value_sql .= ( ( $value_sql != '' ) ? ' UNION ALL ' : '' ) . "SELECT '" . $word[$i] . "', 0"; - break; - default: - $sql = "INSERT INTO " . SEARCH_WORD_TABLE . " (word_text, word_common) - VALUES ('" . $word[$i] . "', 0)"; - if( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert new word', '', __LINE__, __FILE__, $sql); - } - break; - } - } - } - - if ( $value_sql != '' ) - { - switch ( SQL_LAYER ) - { - case 'mysql': - case 'mysql4': - $sql = "INSERT IGNORE INTO " . SEARCH_WORD_TABLE . " (word_text, word_common) - VALUES $value_sql"; - break; - case 'mssql': - case 'mssql-odbc': - $sql = "INSERT INTO " . SEARCH_WORD_TABLE . " (word_text, word_common) - $value_sql"; - break; - } - - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert new word', '', __LINE__, __FILE__, $sql); - } - } - } - - while( list($word_in, $match_sql) = @each($word_insert_sql) ) - { - $title_match = ( $word_in == 'title' ) ? 1 : 0; - - if ( $match_sql != '' ) - { - $sql = "INSERT INTO " . SEARCH_MATCH_TABLE . " (post_id, word_id, title_match) - SELECT $post_id, word_id, $title_match - FROM " . SEARCH_WORD_TABLE . " - WHERE word_text IN ($match_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert new word matches', '', __LINE__, __FILE__, $sql); - } - } - } - - if ($mode == 'single') - { - remove_common('single', 4/10, $word); - } - - return; -} - -// -// Check if specified words are too common now -// -function remove_common($mode, $fraction, $word_id_list = array()) -{ - global $db; - - $sql = "SELECT COUNT(post_id) AS total_posts - FROM " . POSTS_TABLE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain post count', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - - if ( $row['total_posts'] >= 100 ) - { - $common_threshold = floor($row['total_posts'] * $fraction); - - if ( $mode == 'single' && count($word_id_list) ) - { - $word_id_sql = ''; - for($i = 0; $i < count($word_id_list); $i++) - { - $word_id_sql .= ( ( $word_id_sql != '' ) ? ', ' : '' ) . "'" . $word_id_list[$i] . "'"; - } - - $sql = "SELECT m.word_id - FROM " . SEARCH_MATCH_TABLE . " m, " . SEARCH_WORD_TABLE . " w - WHERE w.word_text IN ($word_id_sql) - AND m.word_id = w.word_id - GROUP BY m.word_id - HAVING COUNT(m.word_id) > $common_threshold"; - } - else - { - $sql = "SELECT word_id - FROM " . SEARCH_MATCH_TABLE . " - GROUP BY word_id - HAVING COUNT(word_id) > $common_threshold"; - } - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain common word list', '', __LINE__, __FILE__, $sql); - } - - $common_word_id = ''; - while ( $row = $db->sql_fetchrow($result) ) - { - $common_word_id .= ( ( $common_word_id != '' ) ? ', ' : '' ) . $row['word_id']; - } - $db->sql_freeresult($result); - - if ( $common_word_id != '' ) - { - $sql = "UPDATE " . SEARCH_WORD_TABLE . " - SET word_common = " . TRUE . " - WHERE word_id IN ($common_word_id)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete word list entry', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . SEARCH_MATCH_TABLE . " - WHERE word_id IN ($common_word_id)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete word match entry', '', __LINE__, __FILE__, $sql); - } - } - } - - return; -} - -function remove_search_post($post_id_sql) -{ - global $db; - - $words_removed = false; - - switch ( SQL_LAYER ) - { - case 'mysql': - case 'mysql4': - $sql = "SELECT word_id - FROM " . SEARCH_MATCH_TABLE . " - WHERE post_id IN ($post_id_sql) - GROUP BY word_id"; - if ( $result = $db->sql_query($sql) ) - { - $word_id_sql = ''; - while ( $row = $db->sql_fetchrow($result) ) - { - $word_id_sql .= ( $word_id_sql != '' ) ? ', ' . $row['word_id'] : $row['word_id']; - } - - $sql = "SELECT word_id - FROM " . SEARCH_MATCH_TABLE . " - WHERE word_id IN ($word_id_sql) - GROUP BY word_id - HAVING COUNT(word_id) = 1"; - if ( $result = $db->sql_query($sql) ) - { - $word_id_sql = ''; - while ( $row = $db->sql_fetchrow($result) ) - { - $word_id_sql .= ( $word_id_sql != '' ) ? ', ' . $row['word_id'] : $row['word_id']; - } - - if ( $word_id_sql != '' ) - { - $sql = "DELETE FROM " . SEARCH_WORD_TABLE . " - WHERE word_id IN ($word_id_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete word list entry', '', __LINE__, __FILE__, $sql); - } - - $words_removed = $db->sql_affectedrows(); - } - } - } - break; - - default: - $sql = "DELETE FROM " . SEARCH_WORD_TABLE . " - WHERE word_id IN ( - SELECT word_id - FROM " . SEARCH_MATCH_TABLE . " - WHERE word_id IN ( - SELECT word_id - FROM " . SEARCH_MATCH_TABLE . " - WHERE post_id IN ($post_id_sql) - GROUP BY word_id - ) - GROUP BY word_id - HAVING COUNT(word_id) = 1 - )"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete old words from word table', '', __LINE__, __FILE__, $sql); - } - - $words_removed = $db->sql_affectedrows(); - - break; - } - - $sql = "DELETE FROM " . SEARCH_MATCH_TABLE . " - WHERE post_id IN ($post_id_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Error in deleting post', '', __LINE__, __FILE__, $sql); - } - - return $words_removed; -} - -// -// Username search -// -function username_search($search_match) -{ - global $db, $board_config, $template, $lang, $images, $theme, $phpEx, $phpbb_root_path; - global $starttime, $gen_simple_header; - - $gen_simple_header = TRUE; - - $username_list = ''; - if ( !empty($search_match) ) - { - $username_search = preg_replace('/\*/', '%', phpbb_clean_username($search_match)); - - $sql = "SELECT username - FROM " . USERS_TABLE . " - WHERE username LIKE '" . str_replace("\'", "''", $username_search) . "' AND user_id <> " . ANONYMOUS . " - ORDER BY username"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain search results', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - do - { - $username_list .= ''; - } - while ( $row = $db->sql_fetchrow($result) ); - } - else - { - $username_list .= ''; - } - $db->sql_freeresult($result); - } - - $page_title = $lang['Search']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'search_user_body' => 'search_username.tpl') - ); - - $template->assign_vars(array( - 'USERNAME' => (!empty($search_match)) ? phpbb_clean_username($search_match) : '', - - 'L_CLOSE_WINDOW' => $lang['Close_window'], - 'L_SEARCH_USERNAME' => $lang['Find_username'], - 'L_UPDATE_USERNAME' => $lang['Select_username'], - 'L_SELECT' => $lang['Select'], - 'L_SEARCH' => $lang['Search'], - 'L_SEARCH_EXPLAIN' => $lang['Search_author_explain'], - 'L_CLOSE_WINDOW' => $lang['Close_window'], - - 'S_USERNAME_OPTIONS' => $username_list, - 'S_SEARCH_ACTION' => append_sid("search.$phpEx?mode=searchuser")) - ); - - if ( $username_list != '' ) - { - $template->assign_block_vars('switch_select_name', array()); - } - - $template->pparse('search_user_body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - - return; -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/functions_selects.php b/phpBB2_old/includes/functions_selects.php deleted file mode 100644 index 3d16c05..0000000 --- a/phpBB2_old/includes/functions_selects.php +++ /dev/null @@ -1,111 +0,0 @@ -'; - while ( list($displayname, $filename) = @each($lang) ) - { - $selected = ( strtolower($default) == strtolower($filename) ) ? ' selected="selected"' : ''; - $lang_select .= ''; - } - $lang_select .= ''; - - return $lang_select; -} - -// -// Pick a template/theme combo, -// -function style_select($default_style, $select_name = "style", $dirname = "templates") -{ - global $db; - - $sql = "SELECT themes_id, style_name - FROM " . THEMES_TABLE . " - ORDER BY template_name, themes_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't query themes table", "", __LINE__, __FILE__, $sql); - } - - $style_select = '"; - - return $style_select; -} - -// -// Pick a timezone -// -function tz_select($default, $select_name = 'timezone') -{ - global $sys_timezone, $lang; - - if ( !isset($default) ) - { - $default == $sys_timezone; - } - $tz_select = ''; - - return $tz_select; -} - -?> diff --git a/phpBB2_old/includes/functions_validate.php b/phpBB2_old/includes/functions_validate.php deleted file mode 100644 index bd7767e..0000000 --- a/phpBB2_old/includes/functions_validate.php +++ /dev/null @@ -1,207 +0,0 @@ -sql_query($sql)) - { - if ($row = $db->sql_fetchrow($result)) - { - if (($userdata['session_logged_in'] && $row['username'] != $userdata['username']) || !$userdata['session_logged_in']) - { - $db->sql_freeresult($result); - return array('error' => true, 'error_msg' => $lang['Username_taken']); - } - } - } - $db->sql_freeresult($result); - - $sql = "SELECT group_name - FROM " . GROUPS_TABLE . " - WHERE LOWER(group_name) = '" . strtolower($username) . "'"; - if ($result = $db->sql_query($sql)) - { - if ($row = $db->sql_fetchrow($result)) - { - $db->sql_freeresult($result); - return array('error' => true, 'error_msg' => $lang['Username_taken']); - } - } - $db->sql_freeresult($result); - - $sql = "SELECT disallow_username - FROM " . DISALLOW_TABLE; - if ($result = $db->sql_query($sql)) - { - if ($row = $db->sql_fetchrow($result)) - { - do - { - if (preg_match("#\b(" . str_replace("\*", ".*?", phpbb_preg_quote($row['disallow_username'], '#')) . ")\b#i", $username)) - { - $db->sql_freeresult($result); - return array('error' => true, 'error_msg' => $lang['Username_disallowed']); - } - } - while($row = $db->sql_fetchrow($result)); - } - } - $db->sql_freeresult($result); - - $sql = "SELECT word - FROM " . WORDS_TABLE; - if ($result = $db->sql_query($sql)) - { - if ($row = $db->sql_fetchrow($result)) - { - do - { - if (preg_match("#\b(" . str_replace("\*", ".*?", phpbb_preg_quote($row['word'], '#')) . ")\b#i", $username)) - { - $db->sql_freeresult($result); - return array('error' => true, 'error_msg' => $lang['Username_disallowed']); - } - } - while ($row = $db->sql_fetchrow($result)); - } - } - $db->sql_freeresult($result); - - // Don't allow " and ALT-255 in username. - if (strstr($username, '"') || strstr($username, '"') || strstr($username, chr(160))) - { - return array('error' => true, 'error_msg' => $lang['Username_invalid']); - } - - return array('error' => false, 'error_msg' => ''); -} - -// -// Check to see if email address is banned -// or already present in the DB -// -function validate_email($email) -{ - global $db, $lang; - - if ($email != '') - { - if (preg_match('/^[a-z0-9&\'\.\-_\+]+@[a-z0-9\-]+\.([a-z0-9\-]+\.)*?[a-z]+$/is', $email)) - { - $sql = "SELECT ban_email - FROM " . BANLIST_TABLE; - if ($result = $db->sql_query($sql)) - { - if ($row = $db->sql_fetchrow($result)) - { - do - { - $match_email = str_replace('*', '.*?', $row['ban_email']); - if (preg_match('/^' . $match_email . '$/is', $email)) - { - $db->sql_freeresult($result); - return array('error' => true, 'error_msg' => $lang['Email_banned']); - } - } - while($row = $db->sql_fetchrow($result)); - } - } - $db->sql_freeresult($result); - - $sql = "SELECT user_email - FROM " . USERS_TABLE . " - WHERE user_email = '" . str_replace("\'", "''", $email) . "'"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, "Couldn't obtain user email information.", "", __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - return array('error' => true, 'error_msg' => $lang['Email_taken']); - } - $db->sql_freeresult($result); - - return array('error' => false, 'error_msg' => ''); - } - } - - return array('error' => true, 'error_msg' => $lang['Email_invalid']); -} - -// -// Does supplementary validation of optional profile fields. This expects common stuff like trim() and strip_tags() -// to have already been run. Params are passed by-ref, so we can set them to the empty string if they fail. -// -function validate_optional_fields(&$icq, &$aim, &$msnm, &$yim, &$website, &$location, &$occupation, &$interests, &$sig) -{ - $check_var_length = array('aim', 'msnm', 'yim', 'location', 'occupation', 'interests', 'sig'); - - for($i = 0; $i < count($check_var_length); $i++) - { - if (strlen($$check_var_length[$i]) < 2) - { - $$check_var_length[$i] = ''; - } - } - - // ICQ number has to be only numbers. - if (!preg_match('/^[0-9]+$/', $icq)) - { - $icq = ''; - } - - // website has to start with http://, followed by something with length at least 3 that - // contains at least one dot. - if ($website != "") - { - if (!preg_match('#^http[s]?:\/\/#i', $website)) - { - $website = 'http://' . $website; - } - - if (!preg_match('#^http[s]?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $website)) - { - $website = ''; - } - } - - return; -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/index.htm b/phpBB2_old/includes/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2_old/includes/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2_old/includes/page_header.php b/phpBB2_old/includes/page_header.php deleted file mode 100644 index 58e7b0d..0000000 --- a/phpBB2_old/includes/page_header.php +++ /dev/null @@ -1,482 +0,0 @@ -= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) ) - { - if ( extension_loaded('zlib') ) - { - ob_start('ob_gzhandler'); - } - } - else if ( $phpver > '4.0' ) - { - if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') ) - { - if ( extension_loaded('zlib') ) - { - $do_gzip_compress = TRUE; - ob_start(); - ob_implicit_flush(0); - - header('Content-Encoding: gzip'); - } - } - } -} - -// -// Parse and show the overall header. -// -$template->set_filenames(array( - 'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl') -); - -// -// Generate logged in/logged out status -// -if ( $userdata['session_logged_in'] ) -{ - $u_login_logout = 'login.'.$phpEx.'?logout=true&sid=' . $userdata['session_id']; - $l_login_logout = $lang['Logout'] . ' [ ' . $userdata['username'] . ' ]'; -} -else -{ - $u_login_logout = 'login.'.$phpEx; - $l_login_logout = $lang['Login']; -} - -$s_last_visit = ( $userdata['session_logged_in'] ) ? create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']) : ''; - -// -// Get basic (usernames + totals) online -// situation -// -$logged_visible_online = 0; -$logged_hidden_online = 0; -$guests_online = 0; -$online_userlist = ''; -$l_online_users = ''; - -if (defined('SHOW_ONLINE')) -{ - - $user_forum_sql = ( !empty($forum_id) ) ? "AND s.session_page = " . intval($forum_id) : ''; - $sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip - FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s - WHERE u.user_id = s.session_user_id - AND s.session_time >= ".( time() - 300 ) . " - $user_forum_sql - ORDER BY u.username ASC, s.session_ip ASC"; - if( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql); - } - - $userlist_ary = array(); - $userlist_visible = array(); - - $prev_user_id = 0; - $prev_user_ip = $prev_session_ip = ''; - - while( $row = $db->sql_fetchrow($result) ) - { - // User is logged in and therefor not a guest - if ( $row['session_logged_in'] ) - { - // Skip multiple sessions for one user - if ( $row['user_id'] != $prev_user_id ) - { - $style_color = ''; - if ( $row['user_level'] == ADMIN ) - { - $row['username'] = '' . $row['username'] . ''; - $style_color = 'style="color:#' . $theme['fontcolor3'] . '"'; - } - else if ( $row['user_level'] == MOD ) - { - $row['username'] = '' . $row['username'] . ''; - $style_color = 'style="color:#' . $theme['fontcolor2'] . '"'; - } - - if ( $row['user_allow_viewonline'] ) - { - $user_online_link = '' . $row['username'] . ''; - $logged_visible_online++; - } - else - { - $user_online_link = '' . $row['username'] . ''; - $logged_hidden_online++; - } - - if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN ) - { - $online_userlist .= ( $online_userlist != '' ) ? ', ' . $user_online_link : $user_online_link; - } - } - - $prev_user_id = $row['user_id']; - } - else - { - // Skip multiple sessions for one user - if ( $row['session_ip'] != $prev_session_ip ) - { - $guests_online++; - } - } - - $prev_session_ip = $row['session_ip']; - } - $db->sql_freeresult($result); - - if ( empty($online_userlist) ) - { - $online_userlist = $lang['None']; - } - $online_userlist = ( ( isset($forum_id) ) ? $lang['Browsing_forum'] : $lang['Registered_users'] ) . ' ' . $online_userlist; - - $total_online_users = $logged_visible_online + $logged_hidden_online + $guests_online; - - if ( $total_online_users > $board_config['record_online_users']) - { - $board_config['record_online_users'] = $total_online_users; - $board_config['record_online_date'] = time(); - - $sql = "UPDATE " . CONFIG_TABLE . " - SET config_value = '$total_online_users' - WHERE config_name = 'record_online_users'"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update online user record (nr of users)', '', __LINE__, __FILE__, $sql); - } - - $sql = "UPDATE " . CONFIG_TABLE . " - SET config_value = '" . $board_config['record_online_date'] . "' - WHERE config_name = 'record_online_date'"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update online user record (date)', '', __LINE__, __FILE__, $sql); - } - } - - if ( $total_online_users == 0 ) - { - $l_t_user_s = $lang['Online_users_zero_total']; - } - else if ( $total_online_users == 1 ) - { - $l_t_user_s = $lang['Online_user_total']; - } - else - { - $l_t_user_s = $lang['Online_users_total']; - } - - if ( $logged_visible_online == 0 ) - { - $l_r_user_s = $lang['Reg_users_zero_total']; - } - else if ( $logged_visible_online == 1 ) - { - $l_r_user_s = $lang['Reg_user_total']; - } - else - { - $l_r_user_s = $lang['Reg_users_total']; - } - - if ( $logged_hidden_online == 0 ) - { - $l_h_user_s = $lang['Hidden_users_zero_total']; - } - else if ( $logged_hidden_online == 1 ) - { - $l_h_user_s = $lang['Hidden_user_total']; - } - else - { - $l_h_user_s = $lang['Hidden_users_total']; - } - - if ( $guests_online == 0 ) - { - $l_g_user_s = $lang['Guest_users_zero_total']; - } - else if ( $guests_online == 1 ) - { - $l_g_user_s = $lang['Guest_user_total']; - } - else - { - $l_g_user_s = $lang['Guest_users_total']; - } - - $l_online_users = sprintf($l_t_user_s, $total_online_users); - $l_online_users .= sprintf($l_r_user_s, $logged_visible_online); - $l_online_users .= sprintf($l_h_user_s, $logged_hidden_online); - $l_online_users .= sprintf($l_g_user_s, $guests_online); -} - -// -// Obtain number of new private messages -// if user is logged in -// -if ( ($userdata['session_logged_in']) && (empty($gen_simple_header)) ) -{ - if ( $userdata['user_new_privmsg'] ) - { - $l_message_new = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['New_pm'] : $lang['New_pms']; - $l_privmsgs_text = sprintf($l_message_new, $userdata['user_new_privmsg']); - - if ( $userdata['user_last_privmsg'] > $userdata['user_lastvisit'] ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_last_privmsg = " . $userdata['user_lastvisit'] . " - WHERE user_id = " . $userdata['user_id']; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql); - } - - $s_privmsg_new = 1; - $icon_pm = $images['pm_new_msg']; - } - else - { - $s_privmsg_new = 0; - $icon_pm = $images['pm_new_msg']; - } - } - else - { - $l_privmsgs_text = $lang['No_new_pm']; - - $s_privmsg_new = 0; - $icon_pm = $images['pm_no_new_msg']; - } - - if ( $userdata['user_unread_privmsg'] ) - { - $l_message_unread = ( $userdata['user_unread_privmsg'] == 1 ) ? $lang['Unread_pm'] : $lang['Unread_pms']; - $l_privmsgs_text_unread = sprintf($l_message_unread, $userdata['user_unread_privmsg']); - } - else - { - $l_privmsgs_text_unread = $lang['No_unread_pm']; - } -} -else -{ - $icon_pm = $images['pm_no_new_msg']; - $l_privmsgs_text = $lang['Login_check_pm']; - $l_privmsgs_text_unread = ''; - $s_privmsg_new = 0; -} - -// -// Generate HTML required for Mozilla Navigation bar -// -if (!isset($nav_links)) -{ - $nav_links = array(); -} - -$nav_links_html = ''; -$nav_link_proto = '' . "\n"; -while( list($nav_item, $nav_array) = @each($nav_links) ) -{ - if ( !empty($nav_array['url']) ) - { - $nav_links_html .= sprintf($nav_link_proto, $nav_item, append_sid($nav_array['url']), $nav_array['title']); - } - else - { - // We have a nested array, used for items like that can occur more than once. - while( list(,$nested_array) = each($nav_array) ) - { - $nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']); - } - } -} - -// Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility -$l_timezone = explode('.', $board_config['board_timezone']); -$l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])]; -// -// The following assigns all _common_ variables that may be used at any point -// in a template. -// -$template->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'SITE_DESCRIPTION' => $board_config['site_desc'], - 'PAGE_TITLE' => $page_title, - 'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit), - 'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])), - 'TOTAL_USERS_ONLINE' => $l_online_users, - 'LOGGED_IN_USER_LIST' => $online_userlist, - 'RECORD_USERS' => sprintf($lang['Record_online_users'], $board_config['record_online_users'], create_date($board_config['default_dateformat'], $board_config['record_online_date'], $board_config['board_timezone'])), - 'PRIVATE_MESSAGE_INFO' => $l_privmsgs_text, - 'PRIVATE_MESSAGE_INFO_UNREAD' => $l_privmsgs_text_unread, - 'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new, - - 'PRIVMSG_IMG' => $icon_pm, - - 'L_USERNAME' => $lang['Username'], - 'L_PASSWORD' => $lang['Password'], - 'L_LOGIN_LOGOUT' => $l_login_logout, - 'L_LOGIN' => $lang['Login'], - 'L_LOG_ME_IN' => $lang['Log_me_in'], - 'L_AUTO_LOGIN' => $lang['Log_me_in'], - 'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']), - 'L_REGISTER' => $lang['Register'], - 'L_PROFILE' => $lang['Profile'], - 'L_SEARCH' => $lang['Search'], - 'L_PRIVATEMSGS' => $lang['Private_Messages'], - 'L_WHO_IS_ONLINE' => $lang['Who_is_Online'], - 'L_MEMBERLIST' => $lang['Memberlist'], - 'L_FAQ' => $lang['FAQ'], - 'L_USERGROUPS' => $lang['Usergroups'], - 'L_SEARCH_NEW' => $lang['Search_new'], - 'L_SEARCH_UNANSWERED' => $lang['Search_unanswered'], - 'L_SEARCH_SELF' => $lang['Search_your_posts'], - 'L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '', ''), - 'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '', ''), - - 'U_SEARCH_UNANSWERED' => append_sid('search.'.$phpEx.'?search_id=unanswered'), - 'U_SEARCH_SELF' => append_sid('search.'.$phpEx.'?search_id=egosearch'), - 'U_SEARCH_NEW' => append_sid('search.'.$phpEx.'?search_id=newposts'), - 'U_INDEX' => append_sid('index.'.$phpEx), - 'U_REGISTER' => append_sid('profile.'.$phpEx.'?mode=register'), - 'U_PROFILE' => append_sid('profile.'.$phpEx.'?mode=editprofile'), - 'U_PRIVATEMSGS' => append_sid('privmsg.'.$phpEx.'?folder=inbox'), - 'U_PRIVATEMSGS_POPUP' => append_sid('privmsg.'.$phpEx.'?mode=newpm'), - 'U_SEARCH' => append_sid('search.'.$phpEx), - 'U_MEMBERLIST' => append_sid('memberlist.'.$phpEx), - 'U_MODCP' => append_sid('modcp.'.$phpEx), - 'U_FAQ' => append_sid('faq.'.$phpEx), - 'U_VIEWONLINE' => append_sid('viewonline.'.$phpEx), - 'U_LOGIN_LOGOUT' => append_sid($u_login_logout), - 'U_GROUP_CP' => append_sid('groupcp.'.$phpEx), - - 'S_CONTENT_DIRECTION' => $lang['DIRECTION'], - 'S_CONTENT_ENCODING' => $lang['ENCODING'], - 'S_CONTENT_DIR_LEFT' => $lang['LEFT'], - 'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'], - 'S_TIMEZONE' => sprintf($lang['All_times'], $l_timezone), - 'S_LOGIN_ACTION' => append_sid('login.'.$phpEx), - - 'T_HEAD_STYLESHEET' => $theme['head_stylesheet'], - 'T_BODY_BACKGROUND' => $theme['body_background'], - 'T_BODY_BGCOLOR' => '#'.$theme['body_bgcolor'], - 'T_BODY_TEXT' => '#'.$theme['body_text'], - 'T_BODY_LINK' => '#'.$theme['body_link'], - 'T_BODY_VLINK' => '#'.$theme['body_vlink'], - 'T_BODY_ALINK' => '#'.$theme['body_alink'], - 'T_BODY_HLINK' => '#'.$theme['body_hlink'], - 'T_TR_COLOR1' => '#'.$theme['tr_color1'], - 'T_TR_COLOR2' => '#'.$theme['tr_color2'], - 'T_TR_COLOR3' => '#'.$theme['tr_color3'], - 'T_TR_CLASS1' => $theme['tr_class1'], - 'T_TR_CLASS2' => $theme['tr_class2'], - 'T_TR_CLASS3' => $theme['tr_class3'], - 'T_TH_COLOR1' => '#'.$theme['th_color1'], - 'T_TH_COLOR2' => '#'.$theme['th_color2'], - 'T_TH_COLOR3' => '#'.$theme['th_color3'], - 'T_TH_CLASS1' => $theme['th_class1'], - 'T_TH_CLASS2' => $theme['th_class2'], - 'T_TH_CLASS3' => $theme['th_class3'], - 'T_TD_COLOR1' => '#'.$theme['td_color1'], - 'T_TD_COLOR2' => '#'.$theme['td_color2'], - 'T_TD_COLOR3' => '#'.$theme['td_color3'], - 'T_TD_CLASS1' => $theme['td_class1'], - 'T_TD_CLASS2' => $theme['td_class2'], - 'T_TD_CLASS3' => $theme['td_class3'], - 'T_FONTFACE1' => $theme['fontface1'], - 'T_FONTFACE2' => $theme['fontface2'], - 'T_FONTFACE3' => $theme['fontface3'], - 'T_FONTSIZE1' => $theme['fontsize1'], - 'T_FONTSIZE2' => $theme['fontsize2'], - 'T_FONTSIZE3' => $theme['fontsize3'], - 'T_FONTCOLOR1' => '#'.$theme['fontcolor1'], - 'T_FONTCOLOR2' => '#'.$theme['fontcolor2'], - 'T_FONTCOLOR3' => '#'.$theme['fontcolor3'], - 'T_SPAN_CLASS1' => $theme['span_class1'], - 'T_SPAN_CLASS2' => $theme['span_class2'], - 'T_SPAN_CLASS3' => $theme['span_class3'], - - 'NAV_LINKS' => $nav_links_html) -); - -// -// Login box? -// -if ( !$userdata['session_logged_in'] ) -{ - $template->assign_block_vars('switch_user_logged_out', array()); -} -else -{ - $template->assign_block_vars('switch_user_logged_in', array()); - - if ( !empty($userdata['user_popup_pm']) ) - { - $template->assign_block_vars('switch_enable_pm_popup', array()); - } -} - -// Add no-cache control for cookies if they are set -//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : ''; - -// Work around for "current" Apache 2 + PHP module which seems to not -// cope with private cache control setting -if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2')) -{ - header ('Cache-Control: no-cache, pre-check=0, post-check=0'); -} -else -{ - header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0'); -} -header ('Expires: 0'); -header ('Pragma: no-cache'); - -$template->pparse('overall_header'); - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/page_tail.php b/phpBB2_old/includes/page_tail.php deleted file mode 100644 index a0e28f5..0000000 --- a/phpBB2_old/includes/page_tail.php +++ /dev/null @@ -1,75 +0,0 @@ -' . $lang['Admin_panel'] . '

    ' : ''; - -$template->set_filenames(array( - 'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl') -); - -$template->assign_vars(array( - 'PHPBB_VERSION' => '2' . $board_config['version'], - 'TRANSLATION_INFO' => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : '', - 'ADMIN_LINK' => $admin_link) -); - -$template->pparse('overall_footer'); - -// -// Close our DB connection. -// -$db->sql_close(); - -// -// Compress buffered output if required and send to browser -// -if ( $do_gzip_compress ) -{ - // - // Borrowed from php.net! - // - $gzip_contents = ob_get_contents(); - ob_end_clean(); - - $gzip_size = strlen($gzip_contents); - $gzip_crc = crc32($gzip_contents); - - $gzip_contents = gzcompress($gzip_contents, 9); - $gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4); - - echo "\x1f\x8b\x08\x00\x00\x00\x00\x00"; - echo $gzip_contents; - echo pack('V', $gzip_crc); - echo pack('V', $gzip_size); -} - -exit; - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/prune.php b/phpBB2_old/includes/prune.php deleted file mode 100644 index f025893..0000000 --- a/phpBB2_old/includes/prune.php +++ /dev/null @@ -1,161 +0,0 @@ - ' . POST_ANNOUNCE; - // - // Those without polls and announcements ... unless told otherwise! - // - $sql = "SELECT t.topic_id - FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t - WHERE t.forum_id = $forum_id - $prune_all - AND ( p.post_id = t.topic_last_post_id - OR t.topic_last_post_id = 0 )"; - if ( $prune_date != '' ) - { - $sql .= " AND p.post_time < $prune_date"; - } - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain lists of topics to prune', '', __LINE__, __FILE__, $sql); - } - - $sql_topics = ''; - while( $row = $db->sql_fetchrow($result) ) - { - $sql_topics .= ( ( $sql_topics != '' ) ? ', ' : '' ) . $row['topic_id']; - } - $db->sql_freeresult($result); - - if( $sql_topics != '' ) - { - $sql = "SELECT post_id - FROM " . POSTS_TABLE . " - WHERE forum_id = $forum_id - AND topic_id IN ($sql_topics)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain list of posts to prune', '', __LINE__, __FILE__, $sql); - } - - $sql_post = ''; - while ( $row = $db->sql_fetchrow($result) ) - { - $sql_post .= ( ( $sql_post != '' ) ? ', ' : '' ) . $row['post_id']; - } - $db->sql_freeresult($result); - - if ( $sql_post != '' ) - { - $sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id IN ($sql_topics)"; - if ( !$db->sql_query($sql, BEGIN_TRANSACTION) ) - { - message_die(GENERAL_ERROR, 'Could not delete watched topics during prune', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE FROM " . TOPICS_TABLE . " - WHERE topic_id IN ($sql_topics)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete topics during prune', '', __LINE__, __FILE__, $sql); - } - - $pruned_topics = $db->sql_affectedrows(); - - $sql = "DELETE FROM " . POSTS_TABLE . " - WHERE post_id IN ($sql_post)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete post_text during prune', '', __LINE__, __FILE__, $sql); - } - - $pruned_posts = $db->sql_affectedrows(); - - $sql = "DELETE FROM " . POSTS_TEXT_TABLE . " - WHERE post_id IN ($sql_post)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete post during prune', '', __LINE__, __FILE__, $sql); - } - - remove_search_post($sql_post); - - return array ('topics' => $pruned_topics, 'posts' => $pruned_posts); - } - } - - return array('topics' => 0, 'posts' => 0); -} - -// -// Function auto_prune(), this function will read the configuration data from -// the auto_prune table and call the prune function with the necessary info. -// -function auto_prune($forum_id = 0) -{ - global $db, $lang; - - $sql = "SELECT * - FROM " . PRUNE_TABLE . " - WHERE forum_id = $forum_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not read auto_prune table', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - if ( $row['prune_freq'] && $row['prune_days'] ) - { - $prune_date = time() - ( $row['prune_days'] * 86400 ); - $next_prune = time() + ( $row['prune_freq'] * 86400 ); - - prune($forum_id, $prune_date); - sync('forum', $forum_id); - - $sql = "UPDATE " . FORUMS_TABLE . " - SET prune_next = $next_prune - WHERE forum_id = $forum_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update forum table', '', __LINE__, __FILE__, $sql); - } - } - } - - return; -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/sessions.php b/phpBB2_old/includes/sessions.php deleted file mode 100644 index 10a85fd..0000000 --- a/phpBB2_old/includes/sessions.php +++ /dev/null @@ -1,400 +0,0 @@ -sql_query($sql)) ) - { - message_die(CRITICAL_ERROR, 'Could not obtain lastvisit data from user table', '', __LINE__, __FILE__, $sql); - } - - $userdata = $db->sql_fetchrow($result); - - if ( $user_id != ANONYMOUS ) - { - $auto_login_key = $userdata['user_password']; - - if ( $auto_create ) - { - if ( isset($sessiondata['autologinid']) && $userdata['user_active'] ) - { - // We have to login automagically - if( $sessiondata['autologinid'] == $auto_login_key ) - { - // autologinid matches password - $login = 1; - $enable_autologin = 1; - } - else - { - // No match; don't login, set as anonymous user - $login = 0; - $enable_autologin = 0; - $user_id = $userdata['user_id'] = ANONYMOUS; - } - } - else - { - // Autologin is not set. Don't login, set as anonymous user - $login = 0; - $enable_autologin = 0; - $user_id = $userdata['user_id'] = ANONYMOUS; - } - } - else - { - $login = 1; - } - } - else - { - $login = 0; - $enable_autologin = 0; - } - - // - // Initial ban check against user id, IP and email address - // - preg_match('/(..)(..)(..)(..)/', $user_ip, $user_ip_parts); - - $sql = "SELECT ban_ip, ban_userid, ban_email - FROM " . BANLIST_TABLE . " - WHERE ban_ip IN ('" . $user_ip_parts[1] . $user_ip_parts[2] . $user_ip_parts[3] . $user_ip_parts[4] . "', '" . $user_ip_parts[1] . $user_ip_parts[2] . $user_ip_parts[3] . "ff', '" . $user_ip_parts[1] . $user_ip_parts[2] . "ffff', '" . $user_ip_parts[1] . "ffffff') - OR ban_userid = $user_id"; - if ( $user_id != ANONYMOUS ) - { - $sql .= " OR ban_email LIKE '" . str_replace("\'", "''", $userdata['user_email']) . "' - OR ban_email LIKE '" . substr(str_replace("\'", "''", $userdata['user_email']), strpos(str_replace("\'", "''", $userdata['user_email']), "@")) . "'"; - } - if ( !($result = $db->sql_query($sql)) ) - { - message_die(CRITICAL_ERROR, 'Could not obtain ban information', '', __LINE__, __FILE__, $sql); - } - - if ( $ban_info = $db->sql_fetchrow($result) ) - { - if ( $ban_info['ban_ip'] || $ban_info['ban_userid'] || $ban_info['ban_email'] ) - { - message_die(CRITICAL_MESSAGE, 'You_been_banned'); - } - } - - // - // Create or update the session - // - $sql = "UPDATE " . SESSIONS_TABLE . " - SET session_user_id = $user_id, session_start = $current_time, session_time = $current_time, session_page = $page_id, session_logged_in = $login - WHERE session_id = '" . $session_id . "' - AND session_ip = '$user_ip'"; - if ( !$db->sql_query($sql) || !$db->sql_affectedrows() ) - { - $session_id = md5(uniqid($user_ip)); - - $sql = "INSERT INTO " . SESSIONS_TABLE . " - (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in) - VALUES ('$session_id', $user_id, $current_time, $current_time, '$user_ip', $page_id, $login)"; - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error creating new session', '', __LINE__, __FILE__, $sql); - } - } - - if ( $user_id != ANONYMOUS ) - {// ( $userdata['user_session_time'] > $expiry_time && $auto_create ) ? $userdata['user_lastvisit'] : ( - $last_visit = ( $userdata['user_session_time'] > 0 ) ? $userdata['user_session_time'] : $current_time; - - $sql = "UPDATE " . USERS_TABLE . " - SET user_session_time = $current_time, user_session_page = $page_id, user_lastvisit = $last_visit - WHERE user_id = $user_id"; - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error updating last visit time', '', __LINE__, __FILE__, $sql); - } - - $userdata['user_lastvisit'] = $last_visit; - - $sessiondata['autologinid'] = ( $enable_autologin && $sessionmethod == SESSION_METHOD_COOKIE ) ? $auto_login_key : ''; - $sessiondata['userid'] = $user_id; - } - - $userdata['session_id'] = $session_id; - $userdata['session_ip'] = $user_ip; - $userdata['session_user_id'] = $user_id; - $userdata['session_logged_in'] = $login; - $userdata['session_page'] = $page_id; - $userdata['session_start'] = $current_time; - $userdata['session_time'] = $current_time; - - setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure); - setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure); - - $SID = 'sid=' . $session_id; - - return $userdata; -} - -// -// Checks for a given user session, tidies session table and updates user -// sessions at each page refresh -// -function session_pagestart($user_ip, $thispage_id) -{ - global $db, $lang, $board_config; - global $HTTP_COOKIE_VARS, $HTTP_GET_VARS, $SID; - - $cookiename = $board_config['cookie_name']; - $cookiepath = $board_config['cookie_path']; - $cookiedomain = $board_config['cookie_domain']; - $cookiesecure = $board_config['cookie_secure']; - - $current_time = time(); - unset($userdata); - - if ( isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) || isset($HTTP_COOKIE_VARS[$cookiename . '_data']) ) - { - $sessiondata = isset( $HTTP_COOKIE_VARS[$cookiename . '_data'] ) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookiename . '_data'])) : array(); - $session_id = isset( $HTTP_COOKIE_VARS[$cookiename . '_sid'] ) ? $HTTP_COOKIE_VARS[$cookiename . '_sid'] : ''; - $sessionmethod = SESSION_METHOD_COOKIE; - } - else - { - $sessiondata = array(); - $session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : ''; - $sessionmethod = SESSION_METHOD_GET; - } - - // - if (!preg_match('/^[A-Za-z0-9]*$/', $session_id)) - { - $session_id = ''; - } - - // - // Does a session exist? - // - if ( !empty($session_id) ) - { - // - // session_id exists so go ahead and attempt to grab all - // data in preparation - // - $sql = "SELECT u.*, s.* - FROM " . SESSIONS_TABLE . " s, " . USERS_TABLE . " u - WHERE s.session_id = '$session_id' - AND u.user_id = s.session_user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(CRITICAL_ERROR, 'Error doing DB query userdata row fetch', '', __LINE__, __FILE__, $sql); - } - - $userdata = $db->sql_fetchrow($result); - - // - // Did the session exist in the DB? - // - if ( isset($userdata['user_id']) ) - { - // - // Do not check IP assuming equivalence, if IPv4 we'll check only first 24 - // bits ... I've been told (by vHiker) this should alleviate problems with - // load balanced et al proxies while retaining some reliance on IP security. - // - $ip_check_s = substr($userdata['session_ip'], 0, 6); - $ip_check_u = substr($user_ip, 0, 6); - - if ($ip_check_s == $ip_check_u) - { - $SID = ($sessionmethod == SESSION_METHOD_GET || defined('IN_ADMIN')) ? 'sid=' . $session_id : ''; - - // - // Only update session DB a minute or so after last update - // - if ( $current_time - $userdata['session_time'] > 60 ) - { - $sql = "UPDATE " . SESSIONS_TABLE . " - SET session_time = $current_time, session_page = $thispage_id - WHERE session_id = '" . $userdata['session_id'] . "'"; - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error updating sessions table', '', __LINE__, __FILE__, $sql); - } - - if ( $userdata['user_id'] != ANONYMOUS ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_session_time = $current_time, user_session_page = $thispage_id - WHERE user_id = " . $userdata['user_id']; - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error updating sessions table', '', __LINE__, __FILE__, $sql); - } - } - - // - // Delete expired sessions - // - $expiry_time = $current_time - $board_config['session_length']; - $sql = "DELETE FROM " . SESSIONS_TABLE . " - WHERE session_time < $expiry_time - AND session_id <> '$session_id'"; - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error clearing sessions table', '', __LINE__, __FILE__, $sql); - } - - setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure); - setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure); - } - - return $userdata; - } - } - } - - // - // If we reach here then no (valid) session exists. So we'll create a new one, - // using the cookie user_id if available to pull basic user prefs. - // - $user_id = ( isset($sessiondata['userid']) ) ? intval($sessiondata['userid']) : ANONYMOUS; - - if ( !($userdata = session_begin($user_id, $user_ip, $thispage_id, TRUE)) ) - { - message_die(CRITICAL_ERROR, 'Error creating user session', '', __LINE__, __FILE__, $sql); - } - - return $userdata; - -} - -// -// session_end closes out a session -// deleting the corresponding entry -// in the sessions table -// -function session_end($session_id, $user_id) -{ - global $db, $lang, $board_config; - global $HTTP_COOKIE_VARS, $HTTP_GET_VARS, $SID; - - $cookiename = $board_config['cookie_name']; - $cookiepath = $board_config['cookie_path']; - $cookiedomain = $board_config['cookie_domain']; - $cookiesecure = $board_config['cookie_secure']; - - $current_time = time(); - - // - // Pull cookiedata or grab the URI propagated sid - // - if ( isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) ) - { - $session_id = isset( $HTTP_COOKIE_VARS[$cookiename . '_sid'] ) ? $HTTP_COOKIE_VARS[$cookiename . '_sid'] : ''; - $sessionmethod = SESSION_METHOD_COOKIE; - } - else - { - $session_id = ( isset($HTTP_GET_VARS['sid']) ) ? $HTTP_GET_VARS['sid'] : ''; - $sessionmethod = SESSION_METHOD_GET; - } - - if (!preg_match('/^[A-Za-z0-9]*$/', $session_id)) - { - return; - } - - // - // Delete existing session - // - $sql = "DELETE FROM " . SESSIONS_TABLE . " - WHERE session_id = '$session_id' - AND session_user_id = $user_id"; - if ( !$db->sql_query($sql) ) - { - message_die(CRITICAL_ERROR, 'Error removing user session', '', __LINE__, __FILE__, $sql); - } - - setcookie($cookiename . '_data', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure); - setcookie($cookiename . '_sid', '', $current_time - 31536000, $cookiepath, $cookiedomain, $cookiesecure); - - return true; -} - -// -// Append $SID to a url. Borrowed from phplib and modified. This is an -// extra routine utilised by the session code above and acts as a wrapper -// around every single URL and form action. If you replace the session -// code you must include this routine, even if it's empty. -// -function append_sid($url, $non_html_amp = false) -{ - global $SID; - - if ( !empty($SID) && !preg_match('#sid=#', $url) ) - { - $url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID; - } - - return $url; -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/smtp.php b/phpBB2_old/includes/smtp.php deleted file mode 100644 index d0d59ef..0000000 --- a/phpBB2_old/includes/smtp.php +++ /dev/null @@ -1,209 +0,0 @@ - 1) - { - $headers = join("\n", $headers); - } - else - { - $headers = $headers[0]; - } - } - $headers = chop($headers); - - // Make sure there are no bare linefeeds in the headers - $headers = preg_replace('#(?\r\n"); - server_parse($socket, "250", __LINE__); - - // Specify each user to send to and build to header. - $to_header = ''; - - // Add an additional bit of error checking to the To field. - $mail_to = (trim($mail_to) == '') ? 'Undisclosed-recipients:;' : trim($mail_to); - if (preg_match('#[^ ]+\@[^ ]+#', $mail_to)) - { - fputs($socket, "RCPT TO: <$mail_to>\r\n"); - server_parse($socket, "250", __LINE__); - } - - // Ok now do the CC and BCC fields... - @reset($bcc); - while(list(, $bcc_address) = each($bcc)) - { - // Add an additional bit of error checking to bcc header... - $bcc_address = trim($bcc_address); - if (preg_match('#[^ ]+\@[^ ]+#', $bcc_address)) - { - fputs($socket, "RCPT TO: <$bcc_address>\r\n"); - server_parse($socket, "250", __LINE__); - } - } - - @reset($cc); - while(list(, $cc_address) = each($cc)) - { - // Add an additional bit of error checking to cc header - $cc_address = trim($cc_address); - if (preg_match('#[^ ]+\@[^ ]+#', $cc_address)) - { - fputs($socket, "RCPT TO: <$cc_address>\r\n"); - server_parse($socket, "250", __LINE__); - } - } - - // Ok now we tell the server we are ready to start sending data - fputs($socket, "DATA\r\n"); - - // This is the last response code we look for until the end of the message. - server_parse($socket, "354", __LINE__); - - // Send the Subject Line... - fputs($socket, "Subject: $subject\r\n"); - - // Now the To Header. - fputs($socket, "To: $mail_to\r\n"); - - // Now any custom headers.... - fputs($socket, "$headers\r\n\r\n"); - - // Ok now we are ready for the message... - fputs($socket, "$message\r\n"); - - // Ok the all the ingredients are mixed in let's cook this puppy... - fputs($socket, ".\r\n"); - server_parse($socket, "250", __LINE__); - - // Now tell the server we are done and close the socket... - fputs($socket, "QUIT\r\n"); - fclose($socket); - - return TRUE; -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/sql_parse.php b/phpBB2_old/includes/sql_parse.php deleted file mode 100644 index ad27bb3..0000000 --- a/phpBB2_old/includes/sql_parse.php +++ /dev/null @@ -1,192 +0,0 @@ - 0)) - { - if ($lines[$i][0] != "#") - { - $output .= $lines[$i] . "\n"; - } - else - { - $output .= "\n"; - } - // Trading a bit of speed for lower mem. use here. - $lines[$i] = ""; - } - } - - return $output; - -} - -// -// split_sql_file will split an uploaded sql file into single sql statements. -// Note: expects trim() to have already been run on $sql. -// -function split_sql_file($sql, $delimiter) -{ - // Split up our string into "possible" SQL statements. - $tokens = explode($delimiter, $sql); - - // try to save mem. - $sql = ""; - $output = array(); - - // we don't actually care about the matches preg gives us. - $matches = array(); - - // this is faster than calling count($oktens) every time thru the loop. - $token_count = count($tokens); - for ($i = 0; $i < $token_count; $i++) - { - // Don't wanna add an empty string as the last thing in the array. - if (($i != ($token_count - 1)) || (strlen($tokens[$i] > 0))) - { - // This is the total number of single quotes in the token. - $total_quotes = preg_match_all("/'/", $tokens[$i], $matches); - // Counts single quotes that are preceded by an odd number of backslashes, - // which means they're escaped quotes. - $escaped_quotes = preg_match_all("/(? \ No newline at end of file diff --git a/phpBB2_old/includes/template.php b/phpBB2_old/includes/template.php deleted file mode 100644 index e6ec18b..0000000 --- a/phpBB2_old/includes/template.php +++ /dev/null @@ -1,2209 +0,0 @@ -_tpldata[block.][iteration#][child.][iteration#][child2.][iteration#][variablename] == value - // if it's a root-level variable, it'll be like this: - // $this->vars[varname] == value or $this->_tpldata['.'][0][varname] == value - // array "vars" is added for easier access to data - var $_tpldata = array('.' => array(0 => array())); - var $vars; - - // Hash of filenames for each template handle. - var $files = array(); - var $files_cache = array(); // array of cache files that exists - var $files_cache2 = array(); // array of cache files (exists or not exists) - - // Root template directory. - var $root = ''; - - // Cache directory (compatible with default cache mod) - var $cachedir = ''; - - // Search/replace for unknown files - var $cache_search = array(); - var $cache_replace = array(); - - // Template root directory (generated by set_rootdir) - var $tpldir = ''; - var $tpldir_len = 0; - - // Default template directory. - // If file for default template isn't found file from this template is used. - var $tpldef = 'subSilver'; - - // this will hash handle names to the compiled code for that handle. - var $compiled_code = array(); - - // This will hold the uncompiled code for that handle. - var $uncompiled_code = array(); - - // Cache settings - var $use_cache = 1; - var $cache_writable = 1; - - // Auto-compile setting - var $auto_compile = 1; - - // Current template name - var $tpl = ''; - - // List of replacements. tpl files in this list will be replaced with other tpl files - // according to configuration in xs.cfg - var $replace = array(); - - // counter for include - var $include_count = 0; - - // php extension. will be replaced by $phpEx in Template() function unless you disable it there - var $php = 'php'; - - // True if check switches - var $xs_check_switches = 1; - - // eXtreme Styles variables - var $xs_started = 0; - var $xs_version = 5; // number version. internal. do not change. - var $xs_versiontxt = '2.0.1'; // text version - - // These handles will be parsed if pparse() is executed. - // Can be used to automatically include header/footer if there is any content. - var $preparse = ''; - var $postparse = ''; - - // subtemplates mod detection - var $subtemplates = false; - - // list of switches that are known typos in some mods. - // when error checking is enabled these errors will be auto-fixed. - // format: - // array(start_tag, end_tag) - var $bugs = array( - // ezportal typo: - array('fetchpost_row', 'fetch_post_row'), - // mycalendar 2.2.7 typos: - array('date_cell', 'date_cells'), - array('date_row', 'date_rows'), - // history mod typo: - array('site_today', 'site_week'), - ); - - /** - * Constructor. Installs XS mod on first run or updates it and sets the root dir. - */ - function Template($root = '.') - { - // setting pointer "vars" - $this->vars = &$this->_tpldata['.'][0]; - // load configuration - $this->load_config($root, true); - } - - /** - * Load mod configuration - */ - function load_config($root, $edit_db) - { - global $board_config, $phpbb_root_path, $phpEx; - // getting mod version from config and comparing with real data - $ver = isset($board_config['xs_version']) ? $board_config['xs_version'] : 0; - // check configuration - // set config values if there aren't any - $add = array(); - $del = array(); - $up = array(); - // list of outdated variables - $outdated = array( - 'xs_versoin', // was a typo in one of previous versions - 'xs_separator', // no longer used - 'xs_cache_dir_absolute', // no longer used - 'xs_cache_dir', // no longer used - 'xs_use_isset', // no longer used - ); - // list of default values - $default = array( - 'xs_auto_compile' => 1, - 'xs_auto_recompile' => 1, - 'xs_use_cache' => 1, - 'xs_php' => $phpEx, - 'xs_def_template' => 'subSilver', - 'xs_check_switches' => 1, - 'xs_warn_includes' => 1, - 'xs_add_comments' => 0, - 'xs_ftp_host' => '', - 'xs_ftp_login' => '', - 'xs_ftp_path' => '', - 'xs_downloads_count' => '0', - 'xs_downloads_default' => '0', - 'xs_shownav' => '1', - 'xs_template_time' => '0', - ); - // checking if all variables exist - foreach($default as $var => $value) - { - if(!isset($board_config[$var])) - { - $board_config[$var] = $value; - $add[] = $var; - } - } - // checking if there are any outdated variables that should be deleted - for($i=0; $ixs_version; - $add[] = 'xs_version'; - } - elseif($board_config['xs_version'] != $this->xs_version) - { - $board_config['xs_version'] = $this->xs_version; - $up[] = 'xs_version'; - } - // check config - if(!empty($board_config['xs_auto_recompile'])) - { - if(!$board_config['xs_auto_compile']) - { - $board_config['xs_auto_compile'] = 1; - if(!in_array('xs_auto_compile', $up) && !in_array('xs_auto_compile', $add)) - { - $up[] = 'xs_auto_compile'; - } - } - } - // install/upgrade - if($edit_db && ((count($add) > 0) || (count($up) > 0) || (count($del) > 0))) - { - $board_config['xs_template_time'] = time(); - if(!in_array('xs_template_time', $up)) - { - $up[] = 'xs_template_time'; - } - global $db; - if(isset($db) && (@get_class($db) === 'sql_db')) - { - // adding new config values - for($i=0; $isql_query($sql); - } - // removing old configuration variables that aren't used - for($i=0; $isql_query($sql); - } - // updating variables that should be overwritten - for($i=0; $isql_query($sql); - } - } - } - $this->php = $board_config['xs_php']; - $this->tpldef = $board_config['xs_def_template']; - $this->use_cache = $board_config['xs_use_cache']; - $this->auto_compile = $board_config['xs_auto_compile']; - $this->xs_check_switches = $board_config['xs_check_switches']; - $this->cache_search = array('.', '\\', '/', '_tpl'); - $this->cache_replace = array('_', XS_SEPARATOR, XS_SEPARATOR, '.'.$this->php); - $old_root = $this->root; - $this->set_rootdir($root); - if(!empty($this->tpl)) - { - $this->load_replacements($this->tpldir . $this->tpl . '/xs.cfg'); - } - if($old_root !== $this->root) - { - $this->clear_files(); - } - } - - /** - * Sets the template root directory for this Template object. - */ - function set_rootdir($dir) - { - global $board_config, $phpbb_root_path; - if (!@is_dir($dir)) - { - return false; - } - $dir = str_replace('\\', '/', $dir); - // creating absolute path for cache - $this->cachedir = $phpbb_root_path . XS_DIR_CACHE . '/'; - // creating absolute path for current template and root dir - $this->tpldir = $phpbb_root_path . 'templates/'; - $this->tpldir_len = strlen($this->tpldir); - $this->root = $dir; - $this->tpl = $this->template_name($dir); - // check subtemplates mod - $sub_templates_cfg = $this->root . '/sub_templates.cfg'; - if(defined('LANG_EXTEND_DONE') && @file_exists($sub_templates_cfg)) - { - $this->subtemplates = true; - } - return true; - } - - /** - * Destroys this template object. Should be called when you're done with it, in order - * to clear out the template data so you can load/parse a new template set. - */ - function destroy() - { - $this->_tpldata = array('.' => array(0 => array())); - $this->vars = &$this->_tpldata['.'][0]; - $this->xs_started = 0; - } - - /** - * Clears list of compiled files. - */ - function clear_files() - { - $this->files = array(); - $this->files_cache = array(); - $this->files_cache2 = array(); - $this->compiled_code = array(); - $this->uncompiled_code = array(); - } - - /** - * Loads replacements from .cfg file - */ - function load_replacements($file) - { - if(@file_exists($file)) - { - $replace = array(); - @include($file); - $this->replace = array_merge($this->replace, $replace); - } - } - - /** - * Extracts template name from path - */ - function template_name($dir) - { - $tpl = XS_TPL_ANY; // can start at any position - $tpl_null = XS_TPL_START; // can start only at zero position - // searching for 'templates/' and removing everything before it - $pos = strpos($dir, $tpl); - if($pos === false) - { - if(substr($dir, 0, strlen($tpl_null)) !== $tpl_null) - { - return ''; - } - $str = substr($dir, strlen($tpl_null), strlen($dir)); - } - else - { - $str = substr($dir, $pos + strlen($tpl), strlen($dir)); - } - // searching for one more 'templates/' - // that can happen if full path is like /home/some_dude/templates/phpbb/templates/subSilver/ - $dir = $this->template_name($str); - if(!$dir) - { - $dir = $str; - } - if(strpos($str, $tpl) !== false) - { - $dir = $this->template_name($str); - } - // check for another subdirectory - $pos = strpos($dir, '/'); - if($pos) - { - $dir = substr($dir, 0, $pos); - } - return $dir; - } - - function subtemplates_make_filename($filename) - { - global $HTTP_GET_VARS, $HTTP_POST_VARS, $db, $board_config, $images, $theme; - global $sub_template_key_image, $sub_templates; - global $tree; - - // initiate the sub-template image pack that will be use - $sub_template_key_image = POST_CAT_URL . '0'; - - // Check if sub_templates are defined for this theme - if ( $board_config['version'] > '.0.5' ) - { - $sub_templates_cfg = @phpbb_realpath($this->root . '/sub_templates.cfg'); - } - else - { - $sub_templates_cfg = $this->root . '/sub_templates.cfg'; - } - @include($sub_templates_cfg); - if ( isset($sub_templates) ) - { - // search an id - $cat_id = 0; - $forum_id = 0; - $topic_id = 0; - $post_id = 0; - - if ( !defined('IN_PRIVMSG') && ( isset($HTTP_GET_VARS[POST_POST_URL]) || isset($HTTP_POST_VARS[POST_POST_URL]) ) ) - { - $post_id = isset($HTTP_GET_VARS[POST_POST_URL]) ? intval($HTTP_GET_VARS[POST_POST_URL]) : intval($HTTP_POST_VARS[POST_POST_URL]); - } - - if ( isset($HTTP_GET_VARS[POST_TOPIC_URL]) || isset($HTTP_POST_VARS[POST_TOPIC_URL]) ) - { - $topic_id = intval($HTTP_GET_VARS[POST_TOPIC_URL]) ? intval($HTTP_GET_VARS[POST_TOPIC_URL]) : intval($HTTP_POST_VARS[POST_TOPIC_URL]); - } - - if ( isset($HTTP_GET_VARS[POST_FORUM_URL]) || isset($HTTP_POST_VARS[POST_FORUM_URL]) ) - { - $forum_id = isset($HTTP_GET_VARS[POST_FORUM_URL]) ? intval($HTTP_GET_VARS[POST_FORUM_URL]) : intval($HTTP_POST_VARS[POST_FORUM_URL]); - } - - if ( isset($HTTP_GET_VARS[POST_CAT_URL]) || isset($HTTP_POST_VARS[POST_CAT_URL]) ) - { - $cat_id = isset($HTTP_GET_VARS[POST_CAT_URL]) ? intval($HTTP_GET_VARS[POST_CAT_URL]) : intval($HTTP_POST_VARS[POST_CAT_URL]); - } - - if ( isset($HTTP_GET_VARS['selected_id']) || isset($HTTP_POST_VARS['selected_id']) ) - { - $selected_id = isset($HTTP_GET_VARS['selected_id']) ? $HTTP_GET_VARS['selected_id'] : $HTTP_POST_VARS['selected_id']; - $type = substr($selected_id, 0, 1); - $id = intval(substr($selected_id, 1)); - if (!empty($id)) switch ($type) - { - case POST_CAT_URL: - $cat_id = $id; - break; - case POST_FORUM_URL: - $forum_id = $id; - break; - case POST_TOPIC_URL: - $topic_id = $id; - break; - case POST_POST_URL: - if ( !defined('IN_PRIVMSG') ) - { - $post_id = $id; - break; - } - default: - break; - } - } - - // find the forum - if ( ($forum_id <= 0) && ($cat_id <= 0) ) - { - if ($post_id > 0) - { - $sql = "SELECT * FROM " . POSTS_TABLE . " WHERE post_id=$post_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Wasn\'t able to access posts', '', __LINE__, __FILE__, $sql); - } - if ( $row = $db->sql_fetchrow($result) ) - { - $forum_id = $row['forum_id']; - } - } - - if ($topic_id > 0) - { - $sql = "SELECT * FROM " . TOPICS_TABLE . " WHERE topic_id=$topic_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Wasn\'t able to access topics', '', __LINE__, __FILE__, $sql); - } - if ( $row = $db->sql_fetchrow($result) ) - { - $forum_id = $row['forum_id']; - } - } - } - - // is the categories hierarchy v 2 installed ? - $cat_hierarchy = function_exists(get_auth_keys); - - // get the ids (forums and cats) - $fids = array(); - if (!$cat_hierarchy) - { - if ($forum_id > 0) - { - // add the forum_id - $fids[] = POST_FORUM_URL . $forum_id; - - // get the cat_id - $sql = "SELECT * FROM " . FORUMS_TABLE . " WHERE forum_id=$forum_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Wasn\'t able to access forums', '', __LINE__, __FILE__, $sql); - } - if ( $row = $db->sql_fetchrow($result) ) - { - $cat_id = $row['cat_id']; - } - } - - // add the cat_id - if ($cat_id > 0) - { - $fids[] = POST_CAT_URL . $cat_id; - } - - // add the root level - $fids[] = 'Root'; - } - else - { - // categories hierarchy v 2 compliancy - $cur = 'Root'; - if ($forum_id > 0) - { - $cur = POST_FORUM_URL . $forum_id; - } - else if ($cat_id > 0) - { - $cur = POST_CAT_URL . $cat_id; - } - - // add start - $fids[] = $cur; - while ( ($cur != 'Root') && !empty($cur) ) - { - // get parent level - $cur = (isset($tree['main'][ $tree['keys'][$cur] ])) ? $tree['main'][ $tree['keys'][$cur] ] : 'Root'; - - // add the parent level - if ( !empty($cur) ) - { - $fids[] = $cur; - } - } - } - - // search if this file is part of a sub-template - $sub_tpl_file = ''; - $sub_css_file = ''; - $sub_img_file = ''; - $sub_img_path = ''; - $template_path = 'templates/'; - $template_name = substr( $this->root, strpos($this->root, $template_path) + strlen($template_path) ); - $real_root = $this->root; - if ( $board_config['version'] > '.0.5' ) - { - $real_root = @phpbb_realpath($this->root); - } - if (substr($filename, 0, 1) != '/') - { - $found = false; - $num_fids = count($fids); - for ($i = 0; !$found && ($i < $num_fids); $i++) - { - $key = $fids[$i]; - - // convert root into c0 category - if ( ($key == 'Root') || empty($key) ) - { - $key = POST_CAT_URL . '0'; - } - - if ( isset($sub_templates[$key]) ) - { - // get the sub-template path - $current_template_path = $template_path . $template_name . '/' . $sub_templates[$key]['dir']; - $root_template_path = $real_root . '/' . $sub_templates[$key]['dir']; - - // set the filename - if ( empty($sub_tpl_file) && file_exists($root_template_path . '/' . $filename) ) - { - $found = true; - $sub_tpl_file = $sub_templates[$key]['dir'] . '/' . $filename; - break; - } - } - } - - // set the css file name - $found = false; - $num_fids = count($fids); - for ($i = 0; !$found && ($i < $num_fids); $i++) - { - $key = $fids[$i]; - - // convert root into c0 category - if ( ($key == 'Root') || empty($key) ) - { - $key = POST_CAT_URL . '0'; - } - - if ( isset($sub_templates[$key]) ) - { - // get the sub-template path - $current_template_path = $template_path . $template_name . '/' . $sub_templates[$key]['dir']; - $root_template_path = $real_root . '/' . $sub_templates[$key]['dir']; - if ( empty($sub_css_file) && isset($sub_templates[$key]['head_stylesheet']) && file_exists($root_template_path . '/' . $sub_templates[$key]['head_stylesheet']) ) - { - $found = true; - $sub_css_file = $sub_templates[$key]['dir'] . '/' . $sub_templates[$key]['head_stylesheet']; - break; - } - } - } - - // set the img file name - $found = false; - $num_fids = count($fids); - for ($i = 0; !$found && ($i < $num_fids); $i++) - { - $key = $fids[$i]; - - // convert root into c0 category - if ( ($key == 'Root') || empty($key) ) - { - $key = POST_CAT_URL . '0'; - } - - if ( isset($sub_templates[$key]) ) - { - // get the sub-template path - $current_template_path = $template_path . $template_name . '/' . $sub_templates[$key]['dir']; - $root_template_path = $real_root . '/' . $sub_templates[$key]['dir']; - if ( isset($sub_templates[$key]['imagefile']) && file_exists($root_template_path . '/' . $sub_templates[$key]['imagefile']) ) - { - $sub_img_path = $sub_templates[$key]['dir']; - $sub_img_file = $sub_templates[$key]['imagefile']; - - // send back the lowest level of the images file - $found = true; - $sub_template_key_image = $key; - break; - } - } - } - } - - // set the tpl file - if ( !empty($sub_tpl_file) ) - { - $filename = $sub_tpl_file; - } - - // set the css file - if ( !empty($sub_css_file) ) - { - $theme['head_stylesheet'] = $sub_css_file; - } - - // get the root level images - $key = POST_CAT_URL . '0'; - if ( isset($sub_templates[$key]) ) - { - // get the sub-template path - $current_template_path = $template_path . $template_name . '/' . $sub_templates[$key]['dir']; - $root_template_path = $real_root . '/' . $sub_templates[$key]['dir']; - if ( isset($sub_templates[$key]['imagefile']) && file_exists($root_template_path . '/' . $sub_templates[$key]['imagefile']) ) - { - $sav_images = $images; - $images = array(); - @include($root_template_path . '/' . $sub_templates[$key]['imagefile']); - $img_lang = ( file_exists($root_template_path . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english'; - foreach($images as $key => $value) - { - if ( !is_array($value) ) - { - $images[$key] = str_replace('{LANG}', 'lang_' . $img_lang, $value); - } - $sav_images[$key] = $images[$key]; - } - $images = $sav_images; - $sav_images = array(); - } - } - - // get the current images - if ( !empty($sub_template_key_image) && ($sub_template_key_image != POST_CAT_URL . '0') ) - { - $key = $sub_template_key_image; - - // get the sub-template path - $current_template_path = $template_path . $template_name . '/' . $sub_templates[$key]['dir']; - $root_template_path = $real_root . '/' . $sub_templates[$key]['dir']; - if ( isset($sub_templates[$key]['imagefile']) && file_exists($root_template_path . '/' . $sub_templates[$key]['imagefile']) ) - { - $sav_images = $images; - $images = array(); - @include($root_template_path . '/' . $sub_templates[$key]['imagefile']); - $img_lang = ( file_exists($root_template_path . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english'; - foreach($images as $key => $value) - { - if ( !is_array($value) ) - { - $images[$key] = str_replace('{LANG}', 'lang_' . $img_lang, $value); - } - $sav_images[$key] = $images[$key]; - } - $images = $sav_images; - $sav_images = array(); - } - } - } - return $filename; - } - - /** - * Generates a full path+filename for the given filename, which can either - * be an absolute name, or a name relative to the rootdir for this Template - * object. - */ - function make_filename($filename, $xs_include = false) - { - if($this->subtemplates) - { - $filename = $this->subtemplates_make_filename($filename); - } - // Check replacements list - if(!$xs_include && isset($this->replace[$filename])) - { - $filename = $this->replace[$filename]; - } - // Check if it's an absolute or relative path. - if ((substr($filename, 0, 1) !== '/') && (substr($filename, 1, 1) !== ':')) - { - return $this->root . '/' . $filename; - } - else - { - return str_replace('\\', '/', $filename); - } - } - - /** - * Converts template filename to cache filename. - * Returns empty string if non-cachable (for tpl files outside of root dir). - * $file should be absolute filename - */ - function make_filename_cache($file) - { - $str = str_replace($this->cache_search, $this->cache_replace, $file); - if(substr($file, 0, $this->tpldir_len) !== $this->tpldir || empty($this->tpl)) - { - return $this->cachedir . XS_TPL_PREFIX2 . $str; - } - // removing not needed part - $file = substr($file, $this->tpldir_len, strlen($file)); - // creating filename - return $this->cachedir . XS_TPL_PREFIX . str_replace($this->cache_search, $this->cache_replace, $file); - } - - /** - * Sets the template filenames for handles. $filename_array - * should be a hash of handle => filename pairs. - */ - function set_filenames($filename_array) - { - if (!is_array($filename_array)) - { - return false; - } - - foreach($filename_array as $handle => $filename) - { - $this->set_filename($handle, $filename); - } - - return true; - } - - - /** - * Assigns template filename for handle. - */ - function set_filename($handle, $filename, $xs_include = false, $quiet = false) - { - global $board_config; - $can_cache = $this->use_cache; - if(strpos($filename, '..') !== false) - { - $can_cache = false; - } - $this->files[$handle] = $this->make_filename($filename, $xs_include); - $this->files_cache[$handle] = ''; - $this->files_cache2[$handle] = ''; - // check if we are in admin control panel and override extreme styles mod controls if needed - if(defined('XS_ADMIN_OVERRIDE') && XS_ADMIN_OVERRIDE === true && @function_exists('xs_admin_override')) - { - xs_admin_override(); - } - // checking if we have valid filename - if(!$this->files[$handle]) - { - if($xs_include || $quiet) - { - return false; - } - else - { - die("Template->make_filename(): Error - invalid template $filename"); - } - } - // creating cache filename - if($can_cache) - { - $this->files_cache2[$handle] = $this->make_filename_cache($this->files[$handle]); - if(@file_exists($this->files_cache2[$handle])) - { - $this->files_cache[$handle] = $this->files_cache2[$handle]; - } - } - // checking if tpl and/or php file exists - if(empty($this->files_cache[$handle]) && !@file_exists($this->files[$handle])) - { - // trying to load alternative filename (usually subSilver) - if(!empty($this->tpldef) && !empty($this->tpl) && ($this->tpldef !== $this->tpl)) - { - $this->files[$handle] = ''; - // save old configuration - $root = $this->root; - $tpl_name = $this->tpl; - // set temporary configuration - $this->root = $this->tpldir . $this->tpldef; - $this->tpl = $this->tpldef; - // recursively run set_filename - $res = $this->set_filename($handle, $filename, $xs_include, $quiet); - // restore old configuration - $this->root = $root; - $this->tpl = $tpl_name; - return $res; - } - if($quiet) - { - return false; - } - if($xs_include) - { - if($board_config['xs_warn_includes']) - { - die('Template->make_filename(): Error - included template file not found: ' . $filename); - } - return false; - } - else - { - die('Template->make_filename(): Error - template file not found: ' . $filename); - } - } - // checking if we should recompile cache - if(!empty($this->files_cache[$handle]) && !empty($board_config['xs_auto_recompile'])) - { - $cache_time = @filemtime($this->files_cache[$handle]); - if(@filemtime($this->files[$handle]) > $cache_time || $board_config['xs_template_time'] > $cache_time) - { - // file was changed. don't use cache file (will be recompled if configuration allowes it) - $this->files_cache[$handle] = ''; - } - } - return true; - } - - /** - * includes file or executes code - */ - function execute($filename, $code, $handle) - { - global $lang, $theme, $board_config; - $template = $theme['template_name']; - global $$template; - $theme_info = &$$template; - if($board_config['xs_add_comments'] && $handle) - { - echo ''; - } - if($filename) - { - include($filename); - } - else - { - eval($code); - } - if($board_config['xs_add_comments'] && $handle) - { - echo ''; - } - return true; - } - - /** - * Load the file for the handle, compile the file, - * and run the compiled code. This will print out - * the results of executing the template. - */ - function pparse($handle) - { - global $board_config; - // parsing header if there is one - if($this->preparse || $this->postparse) - { - $preparse = $this->preparse; - $postparse = $this->postparse; - $this->preparse = $this->postparse = ''; - if($preparse) - { - $this->pparse($preparse); - } - if($postparse) - { - $str = $handle; - $handle = $postparse; - $this->pparse($str); - } - } - // checking if handle exists - if (empty($this->files[$handle]) && empty($this->files_cache[$handle])) - { - die("Template->loadfile(): No files found for handle $handle"); - } - $this->xs_startup(); - $force_recompile = empty($this->uncompiled_code[$handle]) ? false : true; - // checking if php file exists. - if (!empty($this->files_cache[$handle]) && !$force_recompile) - { - // php file exists - running it instead of tpl - $this->execute($this->files_cache[$handle], '', $handle); - return true; - } - if (!$this->loadfile($handle)) - { - die("Template->pparse(): Couldn't load template file for handle $handle"); - } - // actually compile the template now. - if (empty($this->compiled_code[$handle])) - { - // Actually compile the code now. - if(!empty($this->files_cache2[$handle]) && empty($this->files_cache[$handle]) && !$force_recompile) - { - $this->compiled_code[$handle] = $this->compile2($this->uncompiled_code[$handle], $handle, $this->files_cache2[$handle]); - } - else - { - $this->compiled_code[$handle] = $this->compile2($this->uncompiled_code[$handle], '', ''); - } - } - // Run the compiled code. - if (empty($this->files_cache[$handle]) || $force_recompile) - { - $this->execute('', $this->compiled_code[$handle], $handle); - } - else - { - $this->execute($this->files_cache[$handle], '', $handle); - } - return true; - } - - /** - * Precompile file - */ - function precompile($template, $filename) - { - global $precompile_num, $board_config; - if(empty($precompile_num)) - { - $precompile_num = 0; - } - $precompile_num ++; - $handle = 'precompile_' . $precompile_num; - // save old configuration - $root = $this->root; - $tpl_name = $this->tpl; - $old_config = $this->use_cache; - $old_autosave = $this->auto_compile; - // set temporary configuration - $this->root = $this->tpldir . $template; - $this->tpl = $template; - $this->use_cache = 1; - $this->auto_compile = 1; - // set filename - $res = $this->set_filename($handle, $filename, true, true); - if(!$res || !$this->files_cache2[$handle]) - { - $this->root = $root; - $this->tpl = $tpl_name; - $this->use_cache = $old_config; - $this->auto_compile = $old_autosave; - return false; - } - $this->files_cache[$handle] = ''; - // load template - $res = $this->loadfile($handle); - if(!$res || empty($this->uncompiled_code[$handle])) - { - $this->root = $root; - $this->tpl = $tpl_name; - $this->use_cache = $old_config; - $this->auto_compile = $old_autosave; - return false; - } - // compile the code - $this->compile2($this->uncompiled_code[$handle], $handle, $this->files_cache2[$handle]); - // restore confirugation - $this->root = $root; - $this->tpl = $tpl_name; - $this->use_cache = $old_config; - $this->auto_compile = $old_autosave; - return true; - } - - /** - * Inserts the uncompiled code for $handle as the - * value of $varname in the root-level. This can be used - * to effectively include a template in the middle of another - * template. - * Note that all desired assignments to the variables in $handle should be done - * BEFORE calling this function. - */ - function assign_var_from_handle($varname, $handle) - { - ob_start(); - $res = $this->pparse($handle); - $this->vars[$varname] = ob_get_contents(); - ob_end_clean(); - return $res; - } - - /** - * Block-level variable assignment. Adds a new block iteration with the given - * variable assignments. Note that this should only be called once per block - * iteration. - */ - function assign_block_vars($blockname, $vararray) - { - if (strstr($blockname, '.')) - { - // Nested block. - $blocks = explode('.', $blockname); - $blockcount = sizeof($blocks) - 1; - - $str = &$this->_tpldata; - for($i = 0; $i < $blockcount; $i++) - { - $str = &$str[$blocks[$i].'.']; - $str = &$str[sizeof($str)-1]; - } - // Now we add the block that we're actually assigning to. - // We're adding a new iteration to this block with the given - // variable assignments. - $str[$blocks[$blockcount].'.'][] = $vararray; - } - else - { - // Top-level block. - // Add a new iteration to this block with the variable assignments - // we were given. - $this->_tpldata[$blockname.'.'][] = $vararray; - } - - return true; - } - - /** - * Root-level variable assignment. Adds to current assignments, overriding - * any existing variable assignment with the same name. - */ - function assign_vars($vararray) - { - foreach($vararray as $key => $val) - { - $this->vars[$key] = $val; - } - return true; - } - - /** - * Root-level variable assignment. Adds to current assignments, overriding - * any existing variable assignment with the same name. - */ - function assign_var($varname, $varval) - { - $this->vars[$varname] = $varval; - - return true; - } - - /** - * If not already done, load the file for the given handle and populate - * the uncompiled_code[] hash with its code. Do not compile. - */ - function loadfile($handle) - { - global $board_config; - // If cached file exists do nothing - it will be included via include() - if(!empty($this->files_cache[$handle])) - { - return true; - } - - // If the file for this handle is already loaded and compiled, do nothing. - if (!empty($this->uncompiled_code[$handle])) - { - return true; - } - - // If we don't have a file assigned to this handle, die. - if (empty($this->files[$handle])) - { - die("Template->loadfile(): No file specified for handle $handle"); - } - - $filename = $this->files[$handle]; - - $str = implode('', @file($filename)); - if (empty($str)) - { - die("Template->loadfile(): File $filename for handle $handle is empty"); - } - - $this->uncompiled_code[$handle] = $str; - - return true; - } - - - - /** - * Generates a reference to the given variable inside the given (possibly nested) - * block namespace. This is a string of the form: - * ' . $this->_tpldata['parent.'][$_parent_i]['$child1.'][$_child1_i]['$child2.'][$_child2_i]...['varname'] . ' - * It's ready to be inserted into an "echo" line in one of the templates. - * NOTE: expects a trailing "." on the namespace. - */ - function generate_block_varref($namespace, $varname, $use_isset = true) - { - // Strip the trailing period. - $namespace = substr($namespace, 0, strlen($namespace) - 1); - - // Get a reference to the data block for this namespace. - $varref = $this->generate_block_data_ref($namespace, true); - // Prepend the necessary code to stick this in an echo line. - - // Append the variable reference. - $varref .= '[\'' . $varname . '\']'; - - if($use_isset) - { - $varref = '<'.'?php echo isset(' . $varref . ') ? ' . $varref . ' : \'\'; ?'.'>'; - } - else - { - $varref = '<'.'?php echo ' . $varref . '; ?'.'>'; - } - - return $varref; - - } - - - /** - * Generates a reference to the array of data values for the given - * (possibly nested) block namespace. This is a string of the form: - * $this->_tpldata['parent.'][$_parent_i]['$child1.'][$_child1_i]['$child2.'][$_child2_i]...['$childN.'] - * - * If $include_last_iterator is true, then [$_childN_i] will be appended to the form shown above. - * NOTE: does not expect a trailing "." on the blockname. - */ - function generate_block_data_ref($blockname, $include_last_iterator, $defop = false) - { - // Get an array of the blocks involved. - $blocks = explode('.', $blockname); - $blockcount = sizeof($blocks) - 1; - if($defop) - { - $varref = '$this->_tpldata[\'DEFINE\']'; - // Build up the string with everything but the last child. - for ($i = 0; $i < $blockcount; $i++) - { - $varref .= "['" . $blocks[$i] . ".'][\$" . $blocks[$i] . '_i]'; - } - // Add the block reference for the last child. - $varref .= "['" . $blocks[$blockcount] . ".']"; - // Add the iterator for the last child if requried. - if ($include_last_iterator) - { - $varref .= '[$' . $blocks[$blockcount] . '_i]'; - } - return $varref; - } - if($include_last_iterator) - { - return '$'. $blocks[$blockcount]. '_item'; - } - else - { - return '$'. $blocks[$blockcount-1]. '_item[\''. $blocks[$blockcount]. '.\']'; - } - } - - function compile_code($filename, $code, $use_isset = false) - { - // $filename - file to load code from. used if $code is empty - // $code - tpl code - // $use_isset - if false then compiled code looks more beautiful and easier - // to understand and it adds error_reporting() to supress php warnings. - // if true then isset() is used to check variables instead of supressing - // php warnings. note: for extreme styles mod 2.x it works only for - // block variables and for usual variables its always true. - - // load code from file - if(!$code && !empty($filename)) - { - $code = @implode('', @file($filename)); - } - - // Replace phpBB 2.2 tags - $search = array('', ''); - $replace = array('<'.'?php ', ' ?'.'>'); - $code = str_replace($search, $replace, $code); - - // Break it up into lines and put " -->" back. - $code_lines = explode(' -->', $code); - $count = count($code_lines); - for ($i = 0; $i < ($count - 1); $i++) - { - $code_lines[$i] .= ' -->'; - } - - $block_nesting_level = 0; - $block_names = array(); - $block_names[0] = "."; - $block_items = array(); - $count_if = 0; - - // prepare array for compiled code - $compiled = array(); - $count_bugs = count($this->bugs); - - // array of switches - $sw = array(); - - // replace all short php tags - $new_code = array(); - $line_count = count($code_lines); - for($i=0; $i<$line_count; $i++) - { - $line = $code_lines[$i]; - $pos = strpos($line, ''; - $code_lines[$i] = substr($line, $pos + 2); - $i --; - } - $code_lines = $new_code; - - // main loop - $line_count = count($code_lines); - for($i=0; $i<$line_count; $i++) - { - $line = $code_lines[$i]; - // reset keyword type - $keyword_type = XS_TAG_NONE; - // check if we have valid keyword in current line - $pos1 = strpos($line, '', $pos1); - if($pos2 !== false) - { - // find end of keyword in comment - $pos3 = strpos($line, ' ', $pos1 + 5); - if($pos3 !== false && $pos3 <= $pos2) - { - $keyword = substr($line, $pos1 + 5, $pos3 - $pos1 - 5); - // check keyword against list of supported keywords. case-sensitive - if($keyword === 'BEGIN') - { - $keyword_type = XS_TAG_BEGIN; - } - elseif($keyword === 'END') - { - $keyword_type = XS_TAG_END; - } - elseif($keyword === 'INCLUDE') - { - $keyword_type = XS_TAG_INCLUDE; - } - elseif($keyword === 'IF') - { - $keyword_type = XS_TAG_IF; - } - elseif($keyword === 'ELSE') - { - $keyword_type = XS_TAG_ELSE; - } - elseif($keyword === 'ELSEIF') - { - $keyword_type = XS_TAG_ELSEIF; - } - elseif($keyword === 'ENDIF') - { - $keyword_type = XS_TAG_ENDIF; - } - elseif($keyword === 'DEFINE') - { - $keyword_type = XS_TAG_DEFINE; - } - elseif($keyword === 'UNDEFINE') - { - $keyword_type = XS_TAG_UNDEFINE; - } - } - } - if(!$keyword_type) - { - // not valid keyword. process the rest of line - $compiled[] = $this->_compile_text(substr($line, 0, $pos1 + 4), $use_isset); - $code_lines[$i] = substr($line, $pos1 + 4); - $i --; - continue; - } - // remove code before keyword - if($pos1 > 0) - { - $compiled[] = $this->_compile_text(substr($line, 0, $pos1), $use_isset); - } - // remove keyword - $keyword_str = substr($line, $pos1, $pos2 - $pos1 + 4); - $params_str = $pos2 == $pos3 ? '' : substr($line, $pos3 + 1, $pos2 - $pos3 - 1); - $code_lines[$i] = substr($line, $pos2 + 4); - $i--; - // Check keywords - - /* - * - */ - if($keyword_type == XS_TAG_BEGIN) - { - $params = explode(' ', $params_str); - $num_params = count($params); - // get variable name - if($num_params == 1) - { - $var = $params[0]; - } - elseif($num_params == 2) - { - if($params[0] === '') - { - $var = $params[1]; - } - elseif($params[1] === '') - { - $var = $params[0]; - } - else - { - // invalid tag - $compiled[] = $keyword_str; - continue; - } - } - else - { - // invalid tag - $compiled[] = $keyword_str; - continue; - } - // check variable for matching end - if($this->xs_check_switches) - { - $found = 0; - $str = ''; - for ($j = $i+1; ($j < $line_count) && !$found; $j++) - { - $pos = strpos($code_lines[$j], $str); - if($pos !== false) - { - $found = 1; - $found_var = $var; - } - } - if(!$found && ($this->xs_check_switches == 1)) - { - // checking list of known buggy switches - $item = -1; - for($j=0; $j<$count_bugs; $j++) - { - if($this->bugs[$j][0] === $var) - { - $item = $j; - } - } - if($item >= 0) - { - $str1 = ''; - for ($j = $i+1; ($j < $line_count) && !$found; $j++) - { - $pos = strpos($code_lines[$j], $str1); - if($pos !== false) - { - $found_var = $this->bugs[$item][1]; - $found = 1; - $code_lines[$j] = str_replace($str, $str1, $code_lines[$j]); - } - } - } - } - if(!$found) - { - $compiled[] = $keyword_str; - continue; - } - // adding to list of switches - if(isset($sw[$found_var])) - { - $sw[$found_var] ++; - } - else - { - $sw[$found_var] = 1; - } - } - // adding code - $block_nesting_level++; - $block_names[$block_nesting_level] = $var; - if(isset($block_items[$var])) - { - $block_items[$var] ++; - } - else - { - $block_items[$var] = 1; - } - if ($block_nesting_level < 2) - { - // Block is not nested. - $line = '<'."?php\n\n"; - if($use_isset) - { - $line .= '$'. $var. '_count = ( isset($this->_tpldata[\''. $var. '.\']) ) ? sizeof($this->_tpldata[\''. $var. '.\']) : 0;'; - } - else - { - $line .= '$'. $var. '_count = sizeof($this->_tpldata[\''. $var. '.\']);'; - } - $line .= "\n" . 'for ($'. $var. '_i = 0; $'. $var. '_i < $'. $var. '_count; $'. $var. '_i++)'; - $line .= "\n". '{'. "\n"; - $line .= ' $'. $var. '_item = &$this->_tpldata[\''. $var. '.\'][$'. $var. '_i];'."\n"; - $line .= " \${$var}_item['S_ROW_COUNT'] = \${$var}_i;\n"; - $line .= " \${$var}_item['S_NUM_ROWS'] = \${$var}_count;\n"; - $line .= "\n?".">"; - } - else - { - // This block is nested. - // Generate a namespace string for this block. - $namespace = implode('.', $block_names); - // strip leading period from root level.. - $namespace = substr($namespace, 2); - // Get a reference to the data array for this block that depends on the - // current indices of all parent blocks. - $varref = $this->generate_block_data_ref($namespace, false); - // Create the for loop code to iterate over this block. - $line = '<'."?php\n\n"; - if($use_isset) - { - $line .= '$'. $var. '_count = ( isset('. $varref. ') ) ? sizeof('. $varref. ') : 0;'; - } - else - { - $line .= '$'. $var. '_count = sizeof('. $varref. ');'; - } - $line .= "\n". 'for ($'. $var. '_i = 0; $'. $var. '_i < $'. $var. '_count; $'. $var. '_i++)'; - $line .= "\n". '{'. "\n"; - $line .= ' $'. $var. '_item = &'. $varref. '[$'. $var. '_i];'."\n"; - $line .= " \${$var}_item['S_ROW_COUNT'] = \${$var}_i;\n"; - $line .= " \${$var}_item['S_NUM_ROWS'] = \${$var}_count;\n"; - $line .= "\n?".">"; - } - $compiled[] = $line; - continue; - } - /* - * - */ - if($keyword_type == XS_TAG_END) - { - $params = explode(' ', $params_str); - $num_params = count($params); - if($num_params == 1) - { - $var = $params[0]; - } - elseif($num_params == 2 && $params[0] === '') - { - $var = $params[1]; - } - elseif($num_params == 2 && $params[1] === '') - { - $var = $params[0]; - } - else - { - $compiled[] = $keyword_str; - continue; - } - if($this->xs_check_switches) - { - // checking if this switch was opened - if(!isset($sw[$var]) || ($sw[$var] < 1)) - { - // there is no opening switch - $compiled[] = $keyword_str; - continue; - } - $sw[$var] --; - } - // We have the end of a block. - $line = '<'."?php\n\n"; - $line .= '} // END ' . $var . "\n\n"; - $line .= 'if(isset($' . $var . '_item)) { unset($' . $var . '_item); } '; - $line .= "\n\n?".">"; - if(isset($block_items[$var])) - { - $block_items[$var] --; - } - else - { - $block_items[$var] = -1; - } - unset($block_names[$block_nesting_level]); - $block_nesting_level--; - $compiled[] = $line; - continue; - } - /* - * - */ - if($keyword_type == XS_TAG_INCLUDE) - { - $params = explode(' ', $params_str); - $num_params = count($params); - if($num_params != 1) - { - $compiled[] = $keyword_str; - continue; - } - $line = '<'.'?php '; - $line .= ' $this->set_filename(\'xs_include' . $this->include_count . '\', \'' . $params_str .'\', true); '; - $line .= ' $this->pparse(\'xs_include' . $this->include_count . '\'); '; - $line .= ' ?'.'>'; - $this->include_count ++; - $compiled[] = $line; - continue; - } - /* - * - */ - if($keyword_type == XS_TAG_IF || $keyword_type == XS_TAG_ELSEIF) - { - if(!$count_if) - { - $keyword_type = XS_TAG_IF; - } - $str = $this->compile_tag_if($params_str, $keyword_type == XS_TAG_IF ? false : true); - if($str) - { - $compiled[] = ''; - if($keyword_type == XS_TAG_IF) - { - $count_if ++; - } - } - else - { - $compiled[] = $keyword_str; - } - continue; - } - /* - * - */ - if($keyword_type == XS_TAG_ELSE && $count_if > 0) - { - $compiled[] = ''; - continue; - } - /* - * - */ - if($keyword_type == XS_TAG_ENDIF && $count_if > 0) - { - $compiled[] = ''; - $count_if --; - continue; - } - /* - * - */ - if($keyword_type == XS_TAG_DEFINE) - { - $str = $this->compile_tag_define($params_str); - if($str) - { - $compiled[] = ''; - } - else - { - $compiled[] = $keyword_str; - } - } - /* - * - */ - if($keyword_type == XS_TAG_UNDEFINE) - { - $str = $this->compile_tag_undefine($params_str); - if($str) - { - $compiled[] = ''; - } - else - { - $compiled[] = $keyword_str; - } - } - } - - // bring it back into a single string. - $code_header = ''; - $code_footer = ''; - if(!$use_isset) - { - $code_header = "<". "?php\n\$old_level = @error_reporting(E_ERROR | E_WARNING | E_PARSE); \n?".">"; - $code_footer = '<'."?php @error_reporting(\$old_level); ?".'>'; - } - - return $code_header . implode('', $compiled) . $code_footer; - } - - /* - * Compile code between tags - */ - function _compile_text($code, $use_isset) - { - if(strlen($code) < 3) - { - return $code; - } - // change template varrefs into PHP varrefs - // This one will handle varrefs WITH namespaces - $varrefs = array(); - preg_match_all('#\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}#is', $code, $varrefs); - $varcount = sizeof($varrefs[1]); - $search = array(); - $replace = array(); - for ($i = 0; $i < $varcount; $i++) - { - $namespace = $varrefs[1][$i]; - $varname = $varrefs[3][$i]; - $new = $this->generate_block_varref($namespace, $varname, $use_isset); - $search[] = $varrefs[0][$i]; - $replace[] = $new; - } - if(count($search) > 0) - { - $code = str_replace($search, $replace, $code); - } - // This will handle the remaining root-level varrefs - $code = preg_replace('#\{([a-z0-9\-_]*?)\}#is', '<'.'?php echo isset($this->vars[\'\1\']) ? $this->vars[\'\1\'] : $this->lang(\'\1\'); ?'.'>', $code); - $code = preg_replace('#\{\$([a-z0-9\-_]*?)\}#is', '<'.'?php echo isset($this->_tpldata[\'DEFINE\'][\'.\'][\'\\1\']) ? $this->_tpldata[\'DEFINE\'][\'.\'][\'\\1\'] : \'\'; ?'.'>', $code); - return $code; - } - - // - // Compile IF tags - much of this is from Smarty with - // some adaptions for our block level methods - // - function compile_tag_if($tag_args, $elseif) - { - /* Tokenize args for 'if' tag. */ - preg_match_all('/(?: - "[^"\\\\]*(?:\\\\.[^"\\\\]*)*" | - \'[^\'\\\\]*(?:\\\\.[^\'\\\\]*)*\' | - [(),] | - [^\s(),]+)/x', $tag_args, $match); - - $tokens = $match[0]; - $is_arg_stack = array(); - - for ($i = 0; $i < count($tokens); $i++) - { - $token = &$tokens[$i]; - - switch ($token) - { - case '!': - case '%': - case '!==': - case '==': - case '===': - case '>': - case '<': - case '!=': - case '<>': - case '<<': - case '>>': - case '<=': - case '>=': - case '&&': - case '||': - case '|': - case '^': - case '&': - case '~': - case ')': - case ',': - case '+': - case '-': - case '*': - case '/': - case '@': - break; - - case 'eq': - $token = '=='; - break; - - case 'ne': - case 'neq': - $token = '!='; - break; - - case 'lt': - $token = '<'; - break; - - case 'le': - case 'lte': - $token = '<='; - break; - - case 'gt': - $token = '>'; - break; - - case 'ge': - case 'gte': - $token = '>='; - break; - - case 'and': - $token = '&&'; - break; - - case 'or': - $token = '||'; - break; - - case 'not': - $token = '!'; - break; - - case 'mod': - $token = '%'; - break; - - case '(': - array_push($is_arg_stack, $i); - break; - - case 'is': - $is_arg_start = ($tokens[$i-1] == ')') ? array_pop($is_arg_stack) : $i-1; - $is_arg = implode(' ', array_slice($tokens, $is_arg_start, $i - $is_arg_start)); - - $new_tokens = $this->_parse_is_expr($is_arg, array_slice($tokens, $i+1)); - - array_splice($tokens, $is_arg_start, count($tokens), $new_tokens); - - $i = $is_arg_start; - - default: - if (preg_match('#^(([a-z0-9\-_]+?\.)+?)?(\$)?([A-Z]+[A-Z0-9\-_]+)$#s', $token, $varrefs)) - { - $token = (!empty($varrefs[1])) ? $this->generate_block_data_ref(substr($varrefs[1], 0, -1), true, $varrefs[3]) . '[\'' . $varrefs[4] . '\']' : (($varrefs[3]) ? '$this->_tpldata[\'DEFINE\'][\'.\'][\'' . $varrefs[4] . '\']' : '$this->vars[\'' . $varrefs[4] . '\']'); - } - break; - } - } - - $code = (($elseif) ? '} elseif (' : 'if (') . (implode(' ', $tokens) . ') { '); - - return $code; - } - - // This is from Smarty - function _parse_is_expr($is_arg, $tokens) - { - $expr_end = 0; - $negate_expr = false; - - if (($first_token = array_shift($tokens)) == 'not') - { - $negate_expr = true; - $expr_type = array_shift($tokens); - } - else - { - $expr_type = $first_token; - } - - switch ($expr_type) - { - case 'even': - if (@$tokens[$expr_end] == 'by') - { - $expr_end++; - $expr_arg = $tokens[$expr_end++]; - $expr = "!(($is_arg / $expr_arg) % $expr_arg)"; - } - else - { - $expr = "!($is_arg % 2)"; - } - break; - - case 'odd': - if (@$tokens[$expr_end] == 'by') - { - $expr_end++; - $expr_arg = $tokens[$expr_end++]; - $expr = "(($is_arg / $expr_arg) % $expr_arg)"; - } - else - { - $expr = "($is_arg % 2)"; - } - break; - - case 'div': - if (@$tokens[$expr_end] == 'by') - { - $expr_end++; - $expr_arg = $tokens[$expr_end++]; - $expr = "!($is_arg % $expr_arg)"; - } - break; - - default: - break; - } - - if ($negate_expr) - { - $expr = "!($expr)"; - } - - array_splice($tokens, 0, $expr_end, $expr); - - return $tokens; - } - - - function compile_tag_define($tag_args) - { - preg_match('#^(([a-z0-9\-_]+?\.)+?)?\$([A-Z][A-Z0-9_\-]*?) = (\'?)(.*?)(\'?)$#', $tag_args, $match); - - if (empty($match[3]) || empty($match[5])) - { - return ''; - } - - // Are we a string? - if ($match[4] && $match[6]) - { - $match[5] = "'" . addslashes(str_replace(array('\\\'', '\\\\'), array('\'', '\\'), $match[5])) . "'"; - } - else - { - preg_match('#(true|false|\.)#i', $match[5], $type); - - switch (strtolower($type[1])) - { - case 'true': - case 'false': - $match[5] = strtoupper($match[5]); - break; - case '.'; - $match[5] = doubleval($match[5]); - break; - default: - $match[5] = intval($match[5]); - break; - } - } - - return (($match[1]) ? $this->generate_block_data_ref(substr($match[1], 0, -1), true, true) . '[\'' . $match[3] . '\']' : '$this->_tpldata[\'DEFINE\'][\'.\'][\'' . $match[3] . '\']') . ' = ' . $match[5] . ';'; - } - - function compile_tag_undefine($tag_args) - { - preg_match('#^(([a-z0-9\-_]+?\.)+?)?\$([A-Z][A-Z0-9_\-]*?)$#', $tag_args, $match); - if (empty($match[3])) - { - return ''; - } - return 'unset(' . (($match[1]) ? $this->generate_block_data_ref(substr($match[1], 0, -1), true, true) . '[\'' . $match[3] . '\']' : '$this->_tpldata[\'DEFINE\'][\'.\'][\'' . $match[3] . '\']') . ');'; - } - - /** - * Compiles code and writes to cache if needed - */ - function compile2($code, $handle, $cache_file) - { - $code = $this->compile_code('', $code, XS_USE_ISSET); - if($cache_file && !empty($this->use_cache) && !empty($this->auto_compile)) - { - $res = $this->write_cache($cache_file, $code); - if($handle && $res) - { - $this->files_cache[$handle] = $cache_file; - } - } - $code = '?'.'>'.$code.'<'."?php\n"; - return $code; - } - - /** - * Compiles the given string of code, and returns - * the result in a string. - * If "do_not_echo" is true, the returned code will not be directly - * executable, but can be used as part of a variable assignment - * for use in assign_code_from_handle(). - * This function isn't used and kept only for compatibility with original template.php - */ - function compile($code, $do_not_echo = false, $retvar = '') - { - $code = ' ?'.'>' . $this->compile_code('', $code, true) . '<'."?php \n"; - if($do_not_echo) - { - $code = "ob_start();\n". $code. "\n\${$retvar} = ob_get_contents();\nob_end_clean();\n"; - } - return $code; - } - - /** - * Write cache to disk - */ - function write_cache($filename, $code) - { - // check if cache is writable - if(!$this->cache_writable) - { - return false; - } - // check if filename is valid - if(substr($filename, 0, strlen($this->cachedir)) !== $this->cachedir) - { - return false; - } - // try to open file - $file = @fopen($filename, 'w'); - if(!$file) - { - // try to create directories - $dir = substr($filename, strlen($this->cachedir), strlen($filename)); - $dirs = explode('/', $dir); - $path = $this->cachedir; - @umask(0); - if(!@is_dir($path)) - { - if(!@mkdir($path)) - { - $this->cache_writable = 0; - return false; - } - else - { - @chmod($path, 0777); - } - } - $count = count($dirs); - if($count > 0) - for($i=0; $i<$count-1; $i++) - { - if($i>0) - { - $path .= '/'; - } - $path .= $dirs[$i]; - if(!@is_dir($path)) - { - if(!@mkdir($path)) - { - $this->cache_writable = 0; - return false; - } - else - { - @chmod($path, 0777); - } - } - } - // try to open file again after directories were created - $file = @fopen($filename, 'w'); - } - if(!$file) - { - $this->cache_writable = 0; - return false; - } - fputs($file, ""); - fputs($file, $code); - fclose($file); - @chmod($filename, 0777); - return true; - } - - function xs_startup() - { - global $phpEx, $board_config, $phpbb_root_path; - if(empty($this->xs_started)) - { // adding predefined variables - $this->xs_started = 1; - // file extension with session ID (eg: "php?sid=123&" or "php?") - // can be used to make custom URLs without modding phpbb - // contains "&" or "?" at the end so you can easily append paramenters - $php = append_sid($phpEx); - if(strpos($php, '?')) - { - $php .= '&'; - } - else - { - $php .= '?'; - } - $this->vars['PHP'] = $php; - // adding language variable (eg: "english" or "german") - // can be used to make truly multi-lingual templates - $this->vars['LANG'] = $board_config['default_lang']; - // adding current template - $tpl = $this->root . '/'; // $phpbb_root_path . 'templates/' . $this->tpl . '/'; - if(substr($tpl, 0, 2) === './') - { - $tpl = substr($tpl, 2, strlen($tpl)); - } - $this->vars['TEMPLATE'] = $tpl; - $this->vars['TEMPLATE_NAME'] = $this->tpl; - $this->_tpldata['switch_xs_enabled.'] = array(array('version' => $this->xs_versiontxt)); - } - } - - /** - * Checks for empty variable and shows language variable if possible. - */ - function lang($var) - { - global $lang; - if(substr($var, 0, 2) === 'L_') - { - $var = substr($var, 2); - // check variable as it is - if(isset($lang[$var])) - { - return $lang[$var]; - } - // check variable in lower case - if(isset($lang[strtolower($var)])) - { - return $lang[strtolower($var)]; - } - // check variable with first letter in upper case - $str = ucfirst(strtolower($var)); - if(isset($lang[$str])) - { - return $lang[$str]; - } - return ''; //str_replace('_', ' ', $var); - } - return ''; - } - - // - // - // Functions added for USERGROUP MOD (optimized) - // - // - function append_var_from_handle_to_block($blockname, $varname, $handle) - { - $this->assign_var_from_handle('_tmp', $handle); - // assign the value of the generated variable to the given varname. - $this->append_block_vars($blockname, array($varname => $this->vars['_tmp'])); - return true; - } - - function append_block_vars($blockname, $vararray) - { - if(strstr($blockname, '.')) - { - // Nested block. - $blocks = explode('.', $blockname); - $blockcount = sizeof($blocks) - 1; - $str = &$this->_tpldata; - for($i = 0; $i < $blockcount; $i++) - { - $str = &$str[$blocks[$i].'.']; - $str = &$str[sizeof($str)-1]; - } - // Now we add the block that we're actually assigning to. - // We're adding a new iteration to this block with the given - // variable assignments. - $str = &$str[$blocks[$blockcount].'.']; - $count = sizeof($str) - 1; - if($count >= 0) - { - // adding only if there is at least one item - $str[$count] = array_merge($str[$count], $vararray); - } - } - else - { - // Top-level block. - // Add a new iteration to this block with the variable assignments - // we were given. - $str = &$this->_tpldata[$blockname.'.']; - $count = sizeof($str) - 1; - if($count >= 0) - { - // adding only if there is at least one item - $str[$count] = array_merge($str[$count], $vararray); - } - } - return true; - } - - /* - * Flush a root level block, so it becomes empty. - */ - function flush_block_vars($blockname) - { - // Top-level block. - // flush a existing block we were given. - $current_iteration = sizeof($this->_tpldata[$blockname . '.']) - 1; - unset($this->_tpldata[$blockname . '.']); - return true; - } -} - -function xs_switch($tpl, $name) -{ - return (isset($tpl->_tpldata[$name.'.']) && count($tpl->_tpldata[$name.'.']) > 0); -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/topic_review.php b/phpBB2_old/includes/topic_review.php deleted file mode 100644 index 1597f20..0000000 --- a/phpBB2_old/includes/topic_review.php +++ /dev/null @@ -1,228 +0,0 @@ -sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql); - } - - if ( !($forum_row = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_MESSAGE, 'Topic_post_not_exist'); - } - $db->sql_freeresult($result); - - $forum_id = $forum_row['forum_id']; - $topic_title = $forum_row['topic_title']; - - // - // Start session management - // - $userdata = session_pagestart($user_ip, $forum_id); - init_userprefs($userdata); - // - // End session management - // - - $is_auth = array(); - $is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_row); - - if ( !$is_auth['auth_read'] ) - { - message_die(GENERAL_MESSAGE, sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type'])); - } - } - - // - // Define censored word matches - // - if ( empty($orig_word) && empty($replacement_word) ) - { - $orig_word = array(); - $replacement_word = array(); - - obtain_word_list($orig_word, $replacement_word); - } - - // - // Dump out the page header and load viewtopic body template - // - if ( !$is_inline_review ) - { - $gen_simple_header = TRUE; - - $page_title = $lang['Topic_review'] . ' - ' . $topic_title; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'reviewbody' => 'posting_topic_review.tpl') - ); - } - - // - // Go ahead and pull all data for this topic - // - $sql = "SELECT u.username, u.user_id, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid - FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt - WHERE p.topic_id = $topic_id - AND p.poster_id = u.user_id - AND p.post_id = pt.post_id - ORDER BY p.post_time DESC - LIMIT " . $board_config['posts_per_page']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain post/user information', '', __LINE__, __FILE__, $sql); - } - - // - // Okay, let's do the loop, yeah come on baby let's do the loop - // and it goes like this ... - // - if ( $row = $db->sql_fetchrow($result) ) - { - $mini_post_img = $images['icon_minipost']; - $mini_post_alt = $lang['Post']; - - $i = 0; - do - { - $poster_id = $row['user_id']; - $poster = $row['username']; - - $post_date = create_date($board_config['default_dateformat'], $row['post_time'], $board_config['board_timezone']); - - // - // Handle anon users posting with usernames - // - if( $poster_id == ANONYMOUS && $row['post_username'] != '' ) - { - $poster = $row['post_username']; - $poster_rank = $lang['Guest']; - } - elseif ( $poster_id == ANONYMOUS ) - { - $poster = $lang['Guest']; - $poster_rank = ''; - } - - $post_subject = ( $row['post_subject'] != '' ) ? $row['post_subject'] : ''; - - $message = $row['post_text']; - $bbcode_uid = $row['bbcode_uid']; - - // - // If the board has HTML off but the post has HTML - // on then we process it, else leave it alone - // - if ( !$board_config['allow_html'] && $row['enable_html'] ) - { - $message = preg_replace('#(<)([\/]?.*?)(>)#is', '<\2>', $message); - } - - if ( $bbcode_uid != "" ) - { - $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message); - } - - $message = make_clickable($message); - - if ( count($orig_word) ) - { - $post_subject = preg_replace($orig_word, $replacement_word, $post_subject); - $message = preg_replace($orig_word, $replacement_word, $message); - } - - if ( $board_config['allow_smilies'] && $row['enable_smilies'] ) - { - $message = smilies_pass($message); - } - - $message = str_replace("\n", '
    ', $message); - - // - // Again this will be handled by the templating - // code at some point - // - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('postrow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - - 'MINI_POST_IMG' => $mini_post_img, - 'POSTER_NAME' => $poster, - 'POST_DATE' => $post_date, - 'POST_SUBJECT' => $post_subject, - 'MESSAGE' => $message, - - 'L_MINI_POST_ALT' => $mini_post_alt) - ); - - $i++; - } - while ( $row = $db->sql_fetchrow($result) ); - } - else - { - message_die(GENERAL_MESSAGE, 'Topic_post_not_exist', '', __LINE__, __FILE__, $sql); - } - $db->sql_freeresult($result); - - $template->assign_vars(array( - 'L_AUTHOR' => $lang['Author'], - 'L_MESSAGE' => $lang['Message'], - 'L_POSTED' => $lang['Posted'], - 'L_POST_SUBJECT' => $lang['Post_subject'], - 'L_TOPIC_REVIEW' => $lang['Topic_review']) - ); - - if ( !$is_inline_review ) - { - $template->pparse('reviewbody'); - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } -} - -?> diff --git a/phpBB2_old/includes/usercp_activate.php b/phpBB2_old/includes/usercp_activate.php deleted file mode 100644 index c769c40..0000000 --- a/phpBB2_old/includes/usercp_activate.php +++ /dev/null @@ -1,107 +0,0 @@ -sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not obtain user information', '', __LINE__, __FILE__, $sql); -} - -if ( $row = $db->sql_fetchrow($result) ) -{ - if ( $row['user_active'] && trim($row['user_actkey']) == '' ) - { - $template->assign_vars(array( - 'META' => '') - ); - - message_die(GENERAL_MESSAGE, $lang['Already_activated']); - } - else if ((trim($row['user_actkey']) == trim($HTTP_GET_VARS['act_key'])) && (trim($row['user_actkey']) != '')) - { - $sql_update_pass = ( $row['user_newpasswd'] != '' ) ? ", user_password = '" . str_replace("\'", "''", $row['user_newpasswd']) . "', user_newpasswd = ''" : ''; - - $sql = "UPDATE " . USERS_TABLE . " - SET user_active = 1, user_actkey = ''" . $sql_update_pass . " - WHERE user_id = " . $row['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql_update); - } - - if ( intval($board_config['require_activation']) == USER_ACTIVATION_ADMIN && $sql_update_pass == '' ) - { - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->use_template('admin_welcome_activated', $row['user_lang']); - $emailer->email_address($row['user_email']); - $emailer->set_subject($lang['Account_activated_subject']); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'USERNAME' => $row['username'], - 'PASSWORD' => $password_confirm, - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
    ', "\n", "-- \n" . $board_config['board_email_sig']) : '') - ); - $emailer->send(); - $emailer->reset(); - - $template->assign_vars(array( - 'META' => '') - ); - - message_die(GENERAL_MESSAGE, $lang['Account_active_admin']); - } - else - { - $template->assign_vars(array( - 'META' => '') - ); - - $message = ( $sql_update_pass == '' ) ? $lang['Account_active'] : $lang['Password_activated']; - message_die(GENERAL_MESSAGE, $message); - } - } - else - { - message_die(GENERAL_MESSAGE, $lang['Wrong_activation']); - } -} -else -{ - message_die(GENERAL_MESSAGE, $lang['No_such_user']); -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/usercp_avatar.php b/phpBB2_old/includes/usercp_avatar.php deleted file mode 100644 index b95f27d..0000000 --- a/phpBB2_old/includes/usercp_avatar.php +++ /dev/null @@ -1,345 +0,0 @@ -' . $lang['Avatar_filetype'] : $lang['Avatar_filetype']; - break; - } - - return false; -} - -function user_avatar_delete($avatar_type, $avatar_file) -{ - global $board_config, $userdata; - - if ( $avatar_type == USER_AVATAR_UPLOAD && $avatar_file != '' ) - { - if ( @file_exists(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $avatar_file)) ) - { - @unlink('./' . $board_config['avatar_path'] . '/' . $avatar_file); - } - } - - return ", user_avatar = '', user_avatar_type = " . USER_AVATAR_NONE; -} - -function user_avatar_gallery($mode, &$error, &$error_msg, $avatar_filename) -{ - global $board_config; - if ( file_exists(@phpbb_realpath($board_config['avatar_gallery_path'] . '/' . $avatar_filename)) && ($mode == 'editprofile') ) - { - $return = ", user_avatar = '" . str_replace("\'", "''", $avatar_filename) . "', user_avatar_type = " . USER_AVATAR_GALLERY; - } - else - { - $return = ''; - } - return $return; -} - -function user_avatar_url($mode, &$error, &$error_msg, $avatar_filename) -{ - if ( !preg_match('#^(http)|(ftp):\/\/#i', $avatar_filename) ) - { - $avatar_filename = 'http://' . $avatar_filename; - } - - if ( !preg_match("#^((ht|f)tp://)([^ \?&=\#\"\n\r\t<]*?(\.(jpg|jpeg|gif|png))$)#is", $avatar_filename) ) - { - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
    ' . $lang['Wrong_remote_avatar_format'] : $lang['Wrong_remote_avatar_format']; - return; - } - - return ( $mode == 'editprofile' ) ? ", user_avatar = '" . str_replace("\'", "''", $avatar_filename) . "', user_avatar_type = " . USER_AVATAR_REMOTE : ''; - -} - -function user_avatar_upload($mode, $avatar_mode, &$current_avatar, &$current_type, &$error, &$error_msg, $avatar_filename, $avatar_realname, $avatar_filesize, $avatar_filetype) -{ - global $board_config, $db, $lang; - - $ini_val = ( @phpversion() >= '4.0.0' ) ? 'ini_get' : 'get_cfg_var'; - - if ( $avatar_mode == 'remote' && preg_match('/^(http:\/\/)?([\w\-\.]+)\:?([0-9]*)\/(.*)$/', $avatar_filename, $url_ary) ) - { - if ( empty($url_ary[4]) ) - { - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
    ' . $lang['Incomplete_URL'] : $lang['Incomplete_URL']; - return; - } - - $base_get = '/' . $url_ary[4]; - $port = ( !empty($url_ary[3]) ) ? $url_ary[3] : 80; - - if ( !($fsock = @fsockopen($url_ary[2], $port, $errno, $errstr)) ) - { - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
    ' . $lang['No_connection_URL'] : $lang['No_connection_URL']; - return; - } - - @fputs($fsock, "GET $base_get HTTP/1.1\r\n"); - @fputs($fsock, "HOST: " . $url_ary[2] . "\r\n"); - @fputs($fsock, "Connection: close\r\n\r\n"); - - unset($avatar_data); - while( !@feof($fsock) ) - { - $avatar_data .= @fread($fsock, $board_config['avatar_filesize']); - } - @fclose($fsock); - - if (!preg_match('#Content-Length\: ([0-9]+)[^ /][\s]+#i', $avatar_data, $file_data1) || !preg_match('#Content-Type\: image/[x\-]*([a-z]+)[\s]+#i', $avatar_data, $file_data2)) - { - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
    ' . $lang['File_no_data'] : $lang['File_no_data']; - return; - } - - $avatar_filesize = $file_data1[1]; - $avatar_filetype = $file_data2[1]; - - if ( !$error && $avatar_filesize > 0 && $avatar_filesize < $board_config['avatar_filesize'] ) - { - $avatar_data = substr($avatar_data, strlen($avatar_data) - $avatar_filesize, $avatar_filesize); - - $tmp_path = ( !@$ini_val('safe_mode') ) ? '/tmp' : './' . $board_config['avatar_path'] . '/tmp'; - $tmp_filename = tempnam($tmp_path, uniqid(rand()) . '-'); - - $fptr = @fopen($tmp_filename, 'wb'); - $bytes_written = @fwrite($fptr, $avatar_data, $avatar_filesize); - @fclose($fptr); - - if ( $bytes_written != $avatar_filesize ) - { - @unlink($tmp_filename); - message_die(GENERAL_ERROR, 'Could not write avatar file to local storage. Please contact the board administrator with this message', '', __LINE__, __FILE__); - } - - list($width, $height) = @getimagesize($tmp_filename); - } - else - { - $l_avatar_size = sprintf($lang['Avatar_filesize'], round($board_config['avatar_filesize'] / 1024)); - - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
    ' . $l_avatar_size : $l_avatar_size; - } - } - else if ( ( file_exists(@phpbb_realpath($avatar_filename)) ) && preg_match('/\.(jpg|jpeg|gif|png)$/i', $avatar_realname) ) - { - if ( $avatar_filesize <= $board_config['avatar_filesize'] && $avatar_filesize > 0 ) - { - preg_match('#image\/[x\-]*([a-z]+)#', $avatar_filetype, $avatar_filetype); - $avatar_filetype = $avatar_filetype[1]; - } - else - { - $l_avatar_size = sprintf($lang['Avatar_filesize'], round($board_config['avatar_filesize'] / 1024)); - - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
    ' . $l_avatar_size : $l_avatar_size; - return; - } - - list($width, $height) = @getimagesize($avatar_filename); - } - - if ( !($imgtype = check_image_type($avatar_filetype, $error, $error_msg)) ) - { - return; - } - - if ( $width <= $board_config['avatar_max_width'] && $height <= $board_config['avatar_max_height'] ) - { - $new_filename = uniqid(rand()) . $imgtype; - - if ( $mode == 'editprofile' && $current_type == USER_AVATAR_UPLOAD && $current_avatar != '' ) - { - if ( file_exists(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $current_avatar)) ) - { - @unlink('./' . $board_config['avatar_path'] . '/' . $current_avatar); - } - } - - if( $avatar_mode == 'remote' ) - { - @copy($tmp_filename, './' . $board_config['avatar_path'] . "/$new_filename"); - @unlink($tmp_filename); - } - else - { - if ( @$ini_val('open_basedir') != '' ) - { - if ( @phpversion() < '4.0.3' ) - { - message_die(GENERAL_ERROR, 'open_basedir is set and your PHP version does not allow move_uploaded_file', '', __LINE__, __FILE__); - } - - $move_file = 'move_uploaded_file'; - } - else - { - $move_file = 'copy'; - } - - $move_file($avatar_filename, './' . $board_config['avatar_path'] . "/$new_filename"); - } - - @chmod('./' . $board_config['avatar_path'] . "/$new_filename", 0777); - - $avatar_sql = ( $mode == 'editprofile' ) ? ", user_avatar = '$new_filename', user_avatar_type = " . USER_AVATAR_UPLOAD : "'$new_filename', " . USER_AVATAR_UPLOAD; - } - else - { - $l_avatar_size = sprintf($lang['Avatar_imagesize'], $board_config['avatar_max_width'], $board_config['avatar_max_height']); - - $error = true; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
    ' . $l_avatar_size : $l_avatar_size; - } - - return $avatar_sql; -} - -function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popup_pm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$session_id) -{ - global $board_config, $db, $template, $lang, $images, $theme; - global $phpbb_root_path, $phpEx; - - $dir = @opendir($board_config['avatar_gallery_path']); - - $avatar_images = array(); - while( $file = @readdir($dir) ) - { - if( $file != '.' && $file != '..' && !is_file($board_config['avatar_gallery_path'] . '/' . $file) && !is_link($board_config['avatar_gallery_path'] . '/' . $file) ) - { - $sub_dir = @opendir($board_config['avatar_gallery_path'] . '/' . $file); - - $avatar_row_count = 0; - $avatar_col_count = 0; - while( $sub_file = @readdir($sub_dir) ) - { - if( preg_match('/(\.gif$|\.png$|\.jpg|\.jpeg)$/is', $sub_file) ) - { - $avatar_images[$file][$avatar_row_count][$avatar_col_count] = $file . '/' . $sub_file; - $avatar_name[$file][$avatar_row_count][$avatar_col_count] = ucfirst(str_replace("_", " ", preg_replace('/^(.*)\..*$/', '\1', $sub_file))); - - $avatar_col_count++; - if( $avatar_col_count == 5 ) - { - $avatar_row_count++; - $avatar_col_count = 0; - } - } - } - } - } - - @closedir($dir); - - @ksort($avatar_images); - @reset($avatar_images); - - if( empty($category) ) - { - list($category, ) = each($avatar_images); - } - @reset($avatar_images); - - $s_categories = ''; - - $s_colspan = 0; - for($i = 0; $i < count($avatar_images[$category]); $i++) - { - $template->assign_block_vars("avatar_row", array()); - - $s_colspan = max($s_colspan, count($avatar_images[$category][$i])); - - for($j = 0; $j < count($avatar_images[$category][$i]); $j++) - { - $template->assign_block_vars('avatar_row.avatar_column', array( - "AVATAR_IMAGE" => $board_config['avatar_gallery_path'] . '/' . $avatar_images[$category][$i][$j], - "AVATAR_NAME" => $avatar_name[$category][$i][$j]) - ); - - $template->assign_block_vars('avatar_row.avatar_option_column', array( - "S_OPTIONS_AVATAR" => $avatar_images[$category][$i][$j]) - ); - } - } - - $params = array('coppa', 'user_id', 'username', 'email', 'current_email', 'cur_password', 'new_password', 'password_confirm', 'icq', 'aim', 'msn', 'yim', 'website', 'location', 'occupation', 'interests', 'signature', 'viewemail', 'notifypm', 'popup_pm', 'notifyreply', 'attachsig', 'allowhtml', 'allowbbcode', 'allowsmilies', 'hideonline', 'style', 'language', 'timezone', 'dateformat'); - - $s_hidden_vars = ''; - - for($i = 0; $i < count($params); $i++) - { - $s_hidden_vars .= ''; - } - - $template->assign_vars(array( - 'L_AVATAR_GALLERY' => $lang['Avatar_gallery'], - 'L_SELECT_AVATAR' => $lang['Select_avatar'], - 'L_RETURN_PROFILE' => $lang['Return_profile'], - 'L_CATEGORY' => $lang['Select_category'], - - 'S_CATEGORY_SELECT' => $s_categories, - 'S_COLSPAN' => $s_colspan, - 'S_PROFILE_ACTION' => append_sid("profile.$phpEx?mode=$mode"), - 'S_HIDDEN_FIELDS' => $s_hidden_vars) - ); - - return; -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/usercp_confirm.php b/phpBB2_old/includes/usercp_confirm.php deleted file mode 100644 index 3b51164..0000000 --- a/phpBB2_old/includes/usercp_confirm.php +++ /dev/null @@ -1,435 +0,0 @@ -sql_query($sql); - -// If we have a row then grab data else create a new id -if ($row = $db->sql_fetchrow($result)) -{ - $db->sql_freeresult($result); - $code = $row['code']; -} -else -{ - exit; -} - -// If we can we will generate a single filtered png else we will have to simply -// output six seperate original pngs ... first way is preferable! -if (@extension_loaded('zlib')) -{ - $_png = define_filtered_pngs(); - - $total_width = 320; - $total_height = 50; - $img_height = 40; - $img_width = 0; - $l = 0; - - list($usec, $sec) = explode(' ', microtime()); - mt_srand($sec * $usec); - - $char_widths = array(); - for ($i = 0; $i < strlen($code); $i++) - { - $char = $code{$i}; - - $width = mt_rand(0, 4); - $char_widths[] = $width; - $img_width += $_png[$char]['width'] - $width; - } - - $offset_x = mt_rand(0, $total_width - $img_width); - $offset_y = mt_rand(0, $total_height - $img_height); - - $image = ''; - $hold_chars = array(); - for ($i = 0; $i < $total_height; $i++) - { - $image .= chr(0); - - if ($i > $offset_y && $i < $offset_y + $img_height) - { - $j = 0; - - for ($k = 0; $k < $offset_x; $k++) - { - $image .= chr(mt_rand(140, 255)); - } - - for ($k = 0; $k < strlen($code); $k++) - { - $char = $code{$k}; - - if (empty($hold_chars[$char])) - { - $hold_chars[$char] = explode("\n", chunk_split(base64_decode($_png[$char]['data']), $_png[$char]['width'] + 1, "\n")); - } - $image .= randomise(substr($hold_chars[$char][$l], 1), $char_widths[$j]); - $j++; - } - - for ($k = $offset_x + $img_width; $k < $total_width; $k++) - { - $image .= chr(mt_rand(140, 255)); - } - - $l++; - } - else - { - for ($k = 0; $k < $total_width; $k++) - { - $image .= chr(mt_rand(140, 255)); - } - } - - } - unset($hold); - - $image = create_png(gzcompress($image), $total_width, $total_height); - - // Output image - header('Content-Type: image/png'); - header('Cache-control: no-cache, no-store'); - echo $image; - - unset($image); - unset($_png); - exit; - -} -else -{ - if (!empty($HTTP_GET_VARS['c'])) - { - $_png = define_raw_pngs(); - - $char = substr($code, intval($HTTP_GET_VARS['c']) - 1, 1); - header('Content-Type: image/png'); - header('Cache-control: no-cache, no-store'); - echo base64_decode($_png[$char]); - - unset($_png); - exit; - } -} - -exit; - -// This is designed to randomise the pixels of the image data within -// certain limits so as to keep it readable. It also varies the image -// width a little -function randomise($scanline, $width) -{ - $new_line = ''; - $start = floor($width/2); - $end = strlen($scanline) - ceil($width/2); - - for ($i = $start; $i < $end; $i++) - { - $pixel = ord($scanline{$i}); - - if ($pixel < 190) - { - $new_line .= chr(mt_rand(0, 205)); - } - else if ($pixel > 190) - { - $new_line .= chr(mt_rand(145, 255)); - } - else - { - $new_line .= $scanline{$i}; - } - } - - return $new_line; -} - -// This creates a chunk of the given type, with the given data -// of the given length adding the relevant crc -function png_chunk($length, $type, $data) -{ - $raw = $type; - $raw .= $data; - $crc = crc32($raw); - $raw .= pack('C4', $crc >> 24, $crc >> 16, $crc >> 8, $crc); - - return pack('C4', $length >> 24, $length >> 16, $length >> 8, $length) . $raw; -} - -// Creates greyscale 8bit png - The PNG spec can be found at -// http://www.libpng.org/pub/png/spec/PNG-Contents.html we use -// png because it's a fully recognised open standard and supported -// by practically all modern browsers and OSs -function create_png($gzimage, $width, $height) -{ - // SIG - $image = pack('C8', 137, 80, 78, 71, 13, 10, 26, 10); - // IHDR - $raw = pack('C4', $width >> 24, $width >> 16, $width >> 8, $width); - $raw .= pack('C4', $height >> 24, $height >> 16, $height >> 8, $height); - $raw .= pack('C5', 8, 0, 0, 0, 0); - $image .= png_chunk(13, 'IHDR', $raw); - // IDAT - $image .= png_chunk(strlen($gzimage), 'IDAT', $gzimage); - // IEND - $image .= png_chunk(0, 'IEND', ''); - - return $image; -} - -// Each 'data' element is base64_encoded uncompressed IDAT -// png image data -function define_filtered_pngs() -{ - $_png = array( - '0' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A///////////////////olFAkBAAAGDyA4P///M31/////////////wD////////////////0dAgAAAAAAAAAAAAEcPipFGHn////////////AP//////////////6DAAAAAAAAAAAAAAAAAALSEAN+T///////////8A//////////////xAAAAAAAAAAAAAAAAAAAAAACPA/////////////wD/////////////oAAAAAAAAAAAAAAAAAAAAAAAev//////////////AP////////////8oAAAAAAAAPNj/zDAAAAAAAABD//////////////8A////////////1AAAAAAAABjw////5BAAAAAAAADo/////////////wD///////////+QAAAAAAAAbP//////QgAAAAAAAKj/////////////AP///////////1wAAAAAAACs/////8AXAAAAAAAAcP////////////8A////////////OAAAAAAAAND////dNwAAAAAAAABI/////////////wD///////////8gAAAAAAAA4P//7koACwAAAAAAACT/////////////AP///////////wgAAAAAAAD///VqAwaPAAAAAAAAEP////////////8A////////////AAAAAAAAAP/8kQYDavUAAAAAAAAA/////////////wD///////////8AAAAAAAAA/6kNAEru/wAAAAAAAAD/////////////AP///////////wAAAAAAAADAIwA33f//AAAAAAAAAP////////////8A////////////FAAAAAAAADYAI8D///8AAAAAAAAQ/////////////wD///////////8kAAAAAAAAAA2p////5AAAAAAAACD/////////////AP///////////0gAAAAAAAAFkfz////UAAAAAAAAQP////////////8A////////////cAAAAAAAAET1/////7AAAAAAAABo/////////////wD///////////+oAAAAAAAAXfX/////sAAAAAAAAGj/////////////AAAAALgAAAAAAAAwAAAAAAAAAAAAAAD////////////oAAAAAAAACOT////oEAAAAAAAAOD/////////////AP////////////8+AAAAAAAAKMz/zDQAAAAAAAA0//////////////8A////////////7jgAAAAAAAAAAAAAAAAAAAAAAKT//////////////wD///////////VqAwIAAAAAAAAAAAAAAAAAAAA8////////////////AP//////////rQcDaVEAAAAAAAAAAAAAAAAAKOj///////////////8A///////////nblnu/IAIAAAAAAAAAAAAAFzw/////////////////wD////////////79////+iITCAAAAAgSITg////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////w==', - 'width' => 40 - ), - '1' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////8BAAAAAAAP//////////////////AP////////////////////////9sAAAAAAAA//////////////////8A////////////////////////pAAAAAAAAAD//////////////////wD//////////////////////6wEAAAAAAAAAP//////////////////AP////////////////////h4AAAAAAAAAAAA//////////////////8A//////////////////ygJAAAAAAAAAAAAAD//////////////////wD//////////////9x8HAAAAAAAAAAAAAAAAP//////////////////AP//////////////AAAAAAAAAAAAAAAAAAAA//////////////////8A//////////////8AAAAAAAAAAAAAAAAAAAD//////////////////wD//////////////wAAAAAAAAR4AAAAAAAAAP//////////////////AP//////////////AAAAAAA4zP8AAAAAAAAA//////////////////8A//////////////8AAAA4sP///wAAAAAAAAD//////////////////wD//////////////yR80P//////AAAAAAAAAP//////////////////AP////////////////////////8AAAAAAAAA//////////////////8A/////////////////////////wAAAAAAAAD//////////////////wD/////////////////////////AAAAAAAAAP//////////////////AP////////////////////////8AAAAAAAAA//////////////////8A/////////////////////////wAAAAAAAAD//////////////////wD/////////////////////////AAAAAAAAAP//////////////////AP////////////////////////8AAAAAAAAA//////////////////8A/////////////////////////wAAAAAAAAD//////////////////wD/////////////////////////AAAAAAAAAP//////////////////AP////////////////////////8AAAAAAAAA//////////////////8A/////////////////////////wAAAAAAAAD//////////////////wD/////////////////////////AAAAAAAAAP//////////////////AP////////////////////////8AAAAAAAAA//////////////////8A/////////////////////////wAAAAAAAAD//////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '2' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP/////////////////okFAkCAAABCBIfNT///////////////////8A///////////////8hAgAAAAAAAAAAAAAAFTo/////////////////wD//////////////1QAAAAAAAAAAAAAAAAAACjo////////////////AP////////////+MAAAAAAAAAAAAAAAAAAAAADj///////////////8A////////////9BAAAAAAAAAAAAAAAAAAAAAAALD//////////////wD///////////+gAAAAAAAAAHjs+KwMAAAAAAAAVP//////////////AP///////////1gAAAAAAABM/////6QAAAAAAAAU//////////////8A////////////KAAAAAAAALj/////+AAAAAAAAAD//////////////wD///////////+MfGBMOCAI8P/////wAAAAAAAACP//////////////AP///////////////////////////5wAAAAAAAAw//////////////8A///////////////////////////oFAAAAAAAAHz//////////////wD/////////////////////////6CgAAAAAAAAE3P//////////////AP///////////////////////9ggAAAAAAAAAHT///////////////8A//////////////////////+0DAAAAAAAAAA8+P///////////////wD/////////////////////gAAAAAAAAAAAKOj/////////////////AP//////////////////9FAAAAAAAAAAADzw//////////////////8A/////////////////+g4AAAAAAAAAABk/P///////////////////wD////////////////oKAAAAAAAAAAMqP//////////////////////AP//////////////6CgAAAAAAAAAMNz///////////////////////8A//////////////g4AAAAAAAAAFT0/////////////////////////wD/////////////bAAAAAAAAABU/P//////////////////////////AP///////////8wAAAAAAAAAAAAAAAAAAAAAAAAA//////////////8A////////////SAAAAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////9wAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////////AP//////////hAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////8A//////////9AAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////xAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '3' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD////////////////8sGg0FAAAACA4cLz8////////////////////AP//////////////rBgAAAAAAAAAAAAAACTA//////////////////8A/////////////3QAAAAAAAAAAAAAAAAAAASs/////////////////wD///////////+YAAAAAAAAAAAAAAAAAAAAAAjc////////////////AP//////////6AwAAAAAAAAAAAAAAAAAAAAAAGT///////////////8A//////////94AAAAAAAABJDw/8g4AAAAAAAAHP///////////////wD//////////yAAAAAAAACE/////9gAAAAAAAAA////////////////AP///////////NSwiGQ4FOT//////AAAAAAAABD///////////////8A//////////////////////////+YAAAAAAAAVP///////////////wD//////////////////////P/ggAQAAAAAAATM////////////////AP////////////////////9gAAAAAAAAAAAElP////////////////8A/////////////////////0AAAAAAAAAAHLj//////////////////wD/////////////////////OAAAAAAAAAAwkPj/////////////////AP////////////////////8gAAAAAAAAAAAAINj///////////////8A/////////////////////xAAAAAAAAAAAAAAIPD//////////////wD/////////////////////uOz/4HgEAAAAAAAAhP//////////////AP///////////////////////////3wAAAAAAAAw//////////////8A////////////////////////////6AAAAAAAAAj//////////////wD/////////////////////////////AAAAAAAAAP//////////////AP//////////tJh8YEQoDNz//////+AAAAAAAAAY//////////////8A//////////88AAAAAAAAaP//////dAAAAAAAAEz//////////////wD//////////6QAAAAAAAAAdOD/5HQAAAAAAAAApP//////////////AP///////////CgAAAAAAAAAAAAAAAAAAAAAACD4//////////////8A////////////yAQAAAAAAAAAAAAAAAAAAAAEuP///////////////wD/////////////rAQAAAAAAAAAAAAAAAAABJD/////////////////AP//////////////zDQAAAAAAAAAAAAAACTA//////////////////8A/////////////////8BwOCAAAAAUNGi0/P///////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '4' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP//////////////////////////nAAAAAAAAAD///////////////8A/////////////////////////8AEAAAAAAAAAP///////////////wD////////////////////////gGAAAAAAAAAAA////////////////AP//////////////////////9DAAAAAAAAAAAAD///////////////8A//////////////////////9UAAAAAAAAAAAAAP///////////////wD/////////////////////hAAAAAAAAAAAAAAA////////////////AP///////////////////7QAAAAAAAAAAAAAAAD///////////////8A///////////////////UDAAAAAAUAAAAAAAAAP///////////////wD/////////////////7CQAAAAABMAAAAAAAAAA////////////////AP////////////////xEAAAAAACU/wAAAAAAAAD///////////////8A////////////////cAAAAAAAZP//AAAAAAAAAP///////////////wD//////////////6AAAAAAADz8//8AAAAAAAAA////////////////AP/////////////IBAAAAAAc6P///wAAAAAAAAD///////////////8A////////////5BgAAAAADMz/////AAAAAAAAAP///////////////wD///////////g0AAAAAACk//////8AAAAAAAAA////////////////AP//////////XAAAAAAAfP///////wAAAAAAAAD///////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////8A////////////////////////////AAAAAAAAAP///////////////wD///////////////////////////8AAAAAAAAA////////////////AP///////////////////////////wAAAAAAAAD///////////////8A////////////////////////////AAAAAAAAAP///////////////wD///////////////////////////8AAAAAAAAA////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '5' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP//////////////8AAAAAAAAAAAAAAAAAAAAAAA//////////////8A///////////////MAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////////6wAAAAAAAAAAAAAAAAAAAAAAP//////////////AP//////////////iAAAAAAAAAAAAAAAAAAAAAAA//////////////8A//////////////9kAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////////0QAAAAAAAAAAAAAAAAAAAAAAP//////////////AP//////////////IAAAAAAAYP////////////////////////////8A//////////////wAAAAAAAB8/////////////////////////////wD/////////////3AAAAAAAAIj/////////////////////////////AP////////////+4AAAAAAAAoLRYHAAEKGTE//////////////////8A/////////////5QAAAAAAAAQAAAAAAAAAABY9P///////////////wD/////////////dAAAAAAAAAAAAAAAAAAAAAA89P//////////////AP////////////9QAAAAAAAAAAAAAAAAAAAAAABg//////////////8A/////////////zAAAAAAAAAAAAAAAAAAAAAAAADQ/////////////wD/////////////IAAAAAAAAGjY/+h4BAAAAAAAAGz/////////////AP//////////////9NS0lHSc//////90AAAAAAAALP////////////8A/////////////////////////////9QAAAAAAAAE/////////////wD//////////////////////////////wAAAAAAAAD/////////////AP/////////////////////////////8AAAAAAAAEP////////////8A////////////pIRwWEAgDOD//////8wAAAAAAAA8/////////////wD///////////9EAAAAAAAAaP//////ZAAAAAAAAHz/////////////AP///////////6QAAAAAAAAAaOD/4GQAAAAAAAAE4P////////////8A/////////////CQAAAAAAAAAAAAAAAAAAAAAAGD//////////////wD/////////////yAQAAAAAAAAAAAAAAAAAAAAc7P//////////////AP//////////////rAwAAAAAAAAAAAAAAAAAGNj///////////////8A////////////////0EAAAAAAAAAAAAAAAFTo/////////////////wD//////////////////8h4QCAAAAAcQHzU////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '6' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD///////////////////+0ZCwMAAAUNGjI////////////////////AP/////////////////EMAAAAAAAAAAAAABM6P////////////////8A////////////////lAQAAAAAAAAAAAAAAAAo6P///////////////wD//////////////6wAAAAAAAAAAAAAAAAAAABI////////////////AP/////////////oEAAAAAAAAAAAAAAAAAAAAACw//////////////8A/////////////3AAAAAAAAAoxP/YPAAAAAAAAEj//////////////wD////////////4EAAAAAAACOD////YDCBAVGiAoP//////////////AP///////////7gAAAAAAABY//////////////////////////////8A////////////eAAAAAAAAJT//////////////////////////////wD///////////9MAAAAAAAAvP/IXBgABCx03P//////////////////AP///////////ygAAAAAAADcdAAAAAAAAAAEiP////////////////8A////////////FAAAAAAAAFAAAAAAAAAAAAAAcP///////////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAlP//////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAAAQ8P////////////8A////////////AAAAAAAAAABAyP/kZAAAAAAAAACQ/////////////wD///////////8MAAAAAAAALPj/////WAAAAAAAAET/////////////AP///////////yQAAAAAAACY///////MAAAAAAAAFP////////////8A////////////SAAAAAAAAMD///////wAAAAAAAAA/////////////wD///////////9wAAAAAAAAvP///////wAAAAAAAAD/////////////AP///////////7QAAAAAAACI///////UAAAAAAAAJP////////////8A////////////+AwAAAAAACDw/////2wAAAAAAABY/////////////wD/////////////cAAAAAAAADC8/Ox4AAAAAAAAAKj/////////////AP/////////////oEAAAAAAAAAAAAAAAAAAAAAAk/P////////////8A//////////////+oAAAAAAAAAAAAAAAAAAAABLj//////////////wD///////////////+QAAAAAAAAAAAAAAAAAACQ////////////////AP////////////////+0JAAAAAAAAAAAAAAkuP////////////////8A///////////////////8sGg0FAAADCxgqPz//////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '7' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAAAABP////////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAAAy4/////////////wD//////////////////////////+QUAAAAAAAEuP//////////////AP/////////////////////////8QAAAAAAAAKT///////////////8A/////////////////////////4wAAAAAAAB0/////////////////wD////////////////////////cCAAAAAAANPz/////////////////AP///////////////////////0QAAAAAAATY//////////////////8A//////////////////////+0AAAAAAAAeP///////////////////wD//////////////////////CQAAAAAABTw////////////////////AP////////////////////+gAAAAAAAAkP////////////////////8A/////////////////////ywAAAAAABDw/////////////////////wD///////////////////+4AAAAAAAAbP//////////////////////AP///////////////////1wAAAAAAADQ//////////////////////8A///////////////////4DAAAAAAAMP///////////////////////wD//////////////////7QAAAAAAAB8////////////////////////AP//////////////////aAAAAAAAAMj///////////////////////8A//////////////////8oAAAAAAAM/P///////////////////////wD/////////////////8AAAAAAAAET/////////////////////////AP////////////////+0AAAAAAAAcP////////////////////////8A/////////////////4wAAAAAAACY/////////////////////////wD/////////////////WAAAAAAAAMD/////////////////////////AP////////////////80AAAAAAAA4P////////////////////////8A/////////////////xAAAAAAAAD4/////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '8' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD////////////////////IdDQUAAAEIEiA1P//////////////////AP/////////////////gRAAAAAAAAAAAAAAAROD///////////////8A////////////////0BgAAAAAAAAAAAAAAAAAEMj//////////////wD///////////////AcAAAAAAAAAAAAAAAAAAAAHPD/////////////AP//////////////hAAAAAAAAAAAAAAAAAAAAAAAhP////////////8A//////////////8sAAAAAAAAKMz/zCgAAAAAAAAs/////////////wD//////////////wAAAAAAAADM////zAAAAAAAAAD/////////////AP//////////////BAAAAAAAAP//////AAAAAAAABP////////////8A//////////////8sAAAAAAAAzP///9QAAAAAAAAw/////////////wD//////////////3wAAAAAAAAoyP/YNAAAAAAAAIT/////////////AP//////////////7BgAAAAAAAAAAAAAAAAAAAAc8P////////////8A////////////////xBgAAAAAAAAAAAAAAAAAGNj//////////////wD/////////////////tAQAAAAAAAAAAAAAAACo////////////////AP///////////////HAAAAAAAAAAAAAAAAAAAAB8//////////////8A//////////////9gAAAAAAAAAAAAAAAAAAAAAAB8/////////////wD/////////////wAAAAAAAAABk4P/UWAAAAAAAAATQ////////////AP////////////9UAAAAAAAAaP//////XAAAAAAAAGT///////////8A/////////////xgAAAAAAADg///////cAAAAAAAAJP///////////wD/////////////AAAAAAAAAP////////8AAAAAAAAA////////////AP////////////8AAAAAAAAA4P//////3AAAAAAAAAT///////////8A/////////////ygAAAAAAABg//////9cAAAAAAAALP///////////wD/////////////ZAAAAAAAAABY1P/cXAAAAAAAAABw////////////AP/////////////QAAAAAAAAAAAAAAAAAAAAAAAABNz///////////8A//////////////9gAAAAAAAAAAAAAAAAAAAAAAB0/////////////wD///////////////Q8AAAAAAAAAAAAAAAAAAAAUPz/////////////AP////////////////x4CAAAAAAAAAAAAAAAEIT8//////////////8A///////////////////smFQwGAAAABg0ZKT0/////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - '9' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD///////////////////ysYCwMAAAUNGiw/P//////////////////AP////////////////+4JAAAAAAAAAAAAAAkuP////////////////8A////////////////lAQAAAAAAAAAAAAAAAAAkP///////////////wD//////////////8AEAAAAAAAAAAAAAAAAAAAAqP//////////////AP/////////////8JAAAAAAAAAAAAAAAAAAAAAAQ7P////////////8A/////////////6wAAAAAAAAAfOz8vCwAAAAAAABw/////////////wD/////////////WAAAAAAAAHD/////7BgAAAAAAAz4////////////AP////////////8kAAAAAAAA1P//////hAAAAAAAALT///////////8A/////////////wAAAAAAAAD///////+4AAAAAAAAcP///////////wD/////////////AAAAAAAAAPz//////8AAAAAAAABI////////////AP////////////8UAAAAAAAAzP//////lAAAAAAAACT///////////8A/////////////0QAAAAAAABY//////gsAAAAAAAADP///////////wD/////////////kAAAAAAAAABw5P/IPAAAAAAAAAAA////////////AP/////////////wEAAAAAAAAAAAAAAAAAAAAAAAAAD///////////8A//////////////+UAAAAAAAAAAAAAAAAAAAAAAAAAP///////////wD///////////////9wAAAAAAAAAAAAAFAAAAAAAAAU////////////AP////////////////+IBAAAAAAAAABw3AAAAAAAACj///////////8A///////////////////cdCwEABhcxP+8AAAAAAAATP///////////wD//////////////////////////////5AAAAAAAAB4////////////AP//////////////////////////////UAAAAAAAALj///////////8A//////////////+kgGxUQCAM2P///+AIAAAAAAAQ+P///////////wD//////////////0gAAAAAAAA42P/EKAAAAAAAAHD/////////////AP//////////////sAAAAAAAAAAAAAAAAAAAAAAQ6P////////////8A////////////////TAAAAAAAAAAAAAAAAAAAAKz//////////////wD////////////////oKAAAAAAAAAAAAAAAAASU////////////////AP/////////////////sUAAAAAAAAAAAAAAwxP////////////////8A////////////////////yHA0FAAADCxktP///////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'A' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD//////////////////+QAAAAAAAAAAAAAAOT/////////////////AP//////////////////kAAAAAAAAAAAAAAAkP////////////////8A//////////////////88AAAAAAAAAAAAAAA8/////////////////wD/////////////////5AAAAAAAAAAAAAAAAADk////////////////AP////////////////+QAAAAAAAAAAAAAAAAAJD///////////////8A/////////////////zwAAAAAAAAAAAAAAAAAPP///////////////wD////////////////kAAAAAAAAAAgAAAAAAAAA5P//////////////AP///////////////5AAAAAAAAAAgAAAAAAAAACQ//////////////8A////////////////PAAAAAAAAAz8HAAAAAAAADz//////////////wD//////////////+QAAAAAAAAAWP9kAAAAAAAAANz/////////////AP//////////////kAAAAAAAAACk/7wAAAAAAAAAhP////////////8A//////////////88AAAAAAAABOz//BQAAAAAAAAw/////////////wD/////////////4AAAAAAAAAA8////ZAAAAAAAAADc////////////AP////////////+EAAAAAAAAAIj///+8AAAAAAAAAIT///////////8A/////////////zAAAAAAAAAA2P////wQAAAAAAAAMP///////////wD////////////cAAAAAAAAACT//////1wAAAAAAAAA3P//////////AP///////////4QAAAAAAAAAAAAAAAAAAAAAAAAAAACE//////////8A////////////MAAAAAAAAAAAAAAAAAAAAAAAAAAAADD//////////wD//////////9wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANz/////////AP//////////hAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhP////////8A//////////8wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAw/////////wD/////////3AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADc////////AP////////+EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIT///////8A/////////zAAAAAAAAAAhP///////////2QAAAAAAAAAMP///////wD////////cAAAAAAAAAADM////////////vAAAAAAAAAAA3P//////AP///////4QAAAAAAAAAHP/////////////4DAAAAAAAAACE//////8A////////MAAAAAAAAABk//////////////9cAAAAAAAAADD//////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'B' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAEDh83P///////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAEhP//////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAeP////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAxP///////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAABY////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAABT///////////8A//////////8AAAAAAAAAAP/////4zEwAAAAAAAAAAP///////////wD//////////wAAAAAAAAAA////////7AAAAAAAAAAQ////////////AP//////////AAAAAAAAAAD////////sAAAAAAAAAEj///////////8A//////////8AAAAAAAAAAP/////4zEQAAAAAAAAAtP///////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAFz/////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAiA/P////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAIjPj//////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAGKz/////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAJT///////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAABNz//////////wD//////////wAAAAAAAAAA///////sqCAAAAAAAAAAbP//////////AP//////////AAAAAAAAAAD/////////yAAAAAAAAAAs//////////8A//////////8AAAAAAAAAAP//////////AAAAAAAAAAT//////////wD//////////wAAAAAAAAAA/////////7wAAAAAAAAAAP//////////AP//////////AAAAAAAAAAD//////+ikGAAAAAAAAAAY//////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFT//////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsP//////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAADj///////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAc6P///////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAATOj/////////////AP//////////AAAAAAAAAAAAAAAAAAAEIEBkkNj///////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'C' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP//////////////////5JRULBAAAAgkTIDQ//////////////////8A////////////////1FAAAAAAAAAAAAAAAABAyP///////////////wD//////////////4gEAAAAAAAAAAAAAAAAAAAElP//////////////AP////////////9wAAAAAAAAAAAAAAAAAAAAAAAAlP////////////8A////////////kAAAAAAAAAAAAAAAAAAAAAAAAAAEyP///////////wD//////////9wIAAAAAAAAAAAAAAAAAAAAAAAAAAAw////////////AP//////////WAAAAAAAAAAAWMz/8JwQAAAAAAAAAACw//////////8A/////////+wEAAAAAAAAAID//////9QMAAAAAAAAAET//////////wD/////////nAAAAAAAAAAo/P///////3wAAAAABDBspP//////////AP////////9gAAAAAAAAAIz/////////3BxQjMT0//////////////8A/////////zQAAAAAAAAAzP///////////////////////////////wD/////////GAAAAAAAAADo////////////////////////////////AP////////8AAAAAAAAAAP////////////////////////////////8A/////////wAAAAAAAAAA/////////////////////////////////wD/////////AAAAAAAAAAD/////////////////////////////////AP////////8cAAAAAAAAAOj///////////////////////////////8A/////////zgAAAAAAAAA0P/////////kIGio7P///////////////wD/////////bAAAAAAAAACg/////////5wAAAAAMHS49P//////////AP////////+oAAAAAAAAAEz/////////PAAAAAAAAAAc//////////8A//////////QIAAAAAAAAALz//////6QAAAAAAAAAAGT//////////wD//////////3AAAAAAAAAADIzo/+SEBAAAAAAAAAAAyP//////////AP//////////7BAAAAAAAAAAAAAAAAAAAAAAAAAAAED///////////8A////////////rAAAAAAAAAAAAAAAAAAAAAAAAAAE0P///////////wD/////////////fAAAAAAAAAAAAAAAAAAAAAAAAJz/////////////AP//////////////iAQAAAAAAAAAAAAAAAAAAASY//////////////8A////////////////yEAAAAAAAAAAAAAAAAA8yP///////////////wD//////////////////9yIUCwQAAAAIEB4yP//////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'D' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD///////////8AAAAAAAAAAAAAAAAADChQkOT/////////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAABGjw//////////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAACDY/////////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAABjk////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAED///////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAKj//////////wD///////////8AAAAAAAAAAP///+isSAAAAAAAAAAANP//////////AP///////////wAAAAAAAAAA////////hAAAAAAAAAAA2P////////8A////////////AAAAAAAAAAD/////////MAAAAAAAAACQ/////////wD///////////8AAAAAAAAAAP////////+MAAAAAAAAAFj/////////AP///////////wAAAAAAAAAA/////////8gAAAAAAAAAMP////////8A////////////AAAAAAAAAAD/////////5AAAAAAAAAAY/////////wD///////////8AAAAAAAAAAP//////////AAAAAAAAAAD/////////AP///////////wAAAAAAAAAA//////////8AAAAAAAAAAP////////8A////////////AAAAAAAAAAD//////////wAAAAAAAAAA/////////wD///////////8AAAAAAAAAAP/////////wAAAAAAAAABD/////////AP///////////wAAAAAAAAAA/////////9QAAAAAAAAAJP////////8A////////////AAAAAAAAAAD/////////qAAAAAAAAABI/////////wD///////////8AAAAAAAAAAP////////9QAAAAAAAAAHj/////////AP///////////wAAAAAAAAAA////////uAAAAAAAAAAAvP////////8A////////////AAAAAAAAAAD////w0HwEAAAAAAAAACT8/////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAoP//////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAAAAADz8//////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAY6P///////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAKNz/////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAACHT0//////////////8A////////////AAAAAAAAAAAAAAAAABg4bKj0/////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'E' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP//////////AAAAAAAAAAD///////////////////////////////8A//////////8AAAAAAAAAAP///////////////////////////////wD//////////wAAAAAAAAAA////////////////////////////////AP//////////AAAAAAAAAAD///////////////////////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////8A//////////8AAAAAAAAAAP///////////////////////////////wD//////////wAAAAAAAAAA////////////////////////////////AP//////////AAAAAAAAAAD///////////////////////////////8A//////////8AAAAAAAAAAP///////////////////////////////wD//////////wAAAAAAAAAA////////////////////////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'F' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAA////////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAP///////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAA////////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAP///////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'G' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD//////////////////MB8TCgQAAAACCA4YJzs////////////////AP///////////////JQcAAAAAAAAAAAAAAAAAAhw8P////////////8A/////////////9gwAAAAAAAAAAAAAAAAAAAAAAAk2P///////////wD////////////EDAAAAAAAAAAAAAAAAAAAAAAAAAAc7P//////////AP//////////2AwAAAAAAAAAAAAAAAAAAAAAAAAAAABY//////////8A//////////wwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQ/////////wD/////////kAAAAAAAAAAAEHzQ/P/gmCAAAAAAAAAAAFz/////////AP////////wcAAAAAAAAACjg////////8CwAAAAAAAAgWP////////8A////////vAAAAAAAAAAI2P//////////yBRAcJjI8P///////////wD///////94AAAAAAAAAGD/////////////////////////////////AP///////0AAAAAAAAAAsP////////////////////////////////8A////////IAAAAAAAAADc/////////////////////////////////wD///////8AAAAAAAAAAP///////wAAAAAAAAAAAAAAAAD/////////AP///////wAAAAAAAAAA////////AAAAAAAAAAAAAAAAAP////////8A////////AAAAAAAAAAD///////8AAAAAAAAAAAAAAAAA/////////wD///////8gAAAAAAAAAOD//////wAAAAAAAAAAAAAAAAD/////////AP///////0AAAAAAAAAAtP//////AAAAAAAAAAAAAAAAAP////////8A////////cAAAAAAAAABw//////8AAAAAAAAAAAAAAAAA/////////wD///////+8AAAAAAAAABDs////////////AAAAAAAAAAD/////////AP////////wYAAAAAAAAADz0//////////AAAAAAAAAAAP////////8A/////////5AAAAAAAAAAACCY4P//3KhcCAAAAAAAAAAA/////////wD/////////+CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////AP//////////xAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIP////////8A////////////rAQAAAAAAAAAAAAAAAAAAAAAAAAAAGTw/////////wD/////////////vBQAAAAAAAAAAAAAAAAAAAAAADjI////////////AP//////////////8HAQAAAAAAAAAAAAAAAAAEiw//////////////8A//////////////////iwcEAgBAAABCA4aKDk/////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'H' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'I' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAA////////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAP///////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAA////////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAP///////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAA////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAP///////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAA////////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAP///////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAA////////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAD///////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'J' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP///////////////////////////wAAAAAAAAAA//////////////8A////////////////////////////AAAAAAAAAAD//////////////wD///////////////////////////8AAAAAAAAAAP//////////////AP///////////////////////////wAAAAAAAAAA//////////////8A////////////////////////////AAAAAAAAAAD//////////////wD///////////////////////////8AAAAAAAAAAP//////////////AP///////////////////////////wAAAAAAAAAA//////////////8A////////////////////////////AAAAAAAAAAD//////////////wD///////////////////////////8AAAAAAAAAAP//////////////AP///////////////////////////wAAAAAAAAAA//////////////8A////////////////////////////AAAAAAAAAAD//////////////wD///////////////////////////8AAAAAAAAAAP//////////////AP///////////////////////////wAAAAAAAAAA//////////////8A////////////////////////////AAAAAAAAAAD//////////////wD///////////////////////////8AAAAAAAAAAP//////////////AP///////////////////////////wAAAAAAAAAA//////////////8A////////////////////////////AAAAAAAAAAj//////////////wD//////////+zMrIxwUDAQ//////wAAAAAAAAAIP//////////////AP//////////DAAAAAAAAADo////2AAAAAAAAAA0//////////////8A//////////8wAAAAAAAAAKj///+YAAAAAAAAAFj//////////////wD//////////2gAAAAAAAAAIND/yBgAAAAAAAAAkP//////////////AP//////////vAAAAAAAAAAAAAAAAAAAAAAAAADc//////////////8A////////////MAAAAAAAAAAAAAAAAAAAAAAAUP///////////////wD////////////EBAAAAAAAAAAAAAAAAAAAABjk////////////////AP////////////+sBAAAAAAAAAAAAAAAAAAY2P////////////////8A///////////////EMAAAAAAAAAAAAAAAVOj//////////////////wD/////////////////vHBAIAAAABg8fNT/////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'K' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD///////8AAAAAAAAAAP//////////wAQAAAAAAAAAAABw////////AP///////wAAAAAAAAAA/////////9AMAAAAAAAAAAAAcP////////8A////////AAAAAAAAAAD////////cGAAAAAAAAAAAAHD//////////wD///////8AAAAAAAAAAP//////6CgAAAAAAAAAAABs////////////AP///////wAAAAAAAAAA//////Q0AAAAAAAAAAAAVPz///////////8A////////AAAAAAAAAAD////8RAAAAAAAAAAAAFT8/////////////wD///////8AAAAAAAAAAP///1gAAAAAAAAAAABU/P//////////////AP///////wAAAAAAAAAA//9wAAAAAAAAAAAASPz///////////////8A////////AAAAAAAAAAD/jAAAAAAAAAAAADz0/////////////////wD///////8AAAAAAAAAAKQAAAAAAAAAAAA89P//////////////////AP///////wAAAAAAAAAABAAAAAAAAAAAFPT///////////////////8A////////AAAAAAAAAAAAAAAAAAAAAAAApP///////////////////wD///////8AAAAAAAAAAAAAAAAAAAAAAAAU8P//////////////////AP///////wAAAAAAAAAAAAAAAAAAAAAAAABk//////////////////8A////////AAAAAAAAAAAAAAAAAAAAAAAAAADE/////////////////wD///////8AAAAAAAAAAAAAAAAoEAAAAAAAACz8////////////////AP///////wAAAAAAAAAAAAAAGNiAAAAAAAAAAIj///////////////8A////////AAAAAAAAAAAAABjY//gYAAAAAAAACOD//////////////wD///////8AAAAAAAAAAAAY2P///5wAAAAAAAAASP//////////////AP///////wAAAAAAAAAAGNj//////CgAAAAAAAAAqP////////////8A////////AAAAAAAAAADI////////sAAAAAAAAAAc8P///////////wD///////8AAAAAAAAAAP//////////QAAAAAAAAABs////////////AP///////wAAAAAAAAAA///////////IAAAAAAAAAATI//////////8A////////AAAAAAAAAAD///////////9YAAAAAAAAADD8/////////wD///////8AAAAAAAAAAP///////////9wEAAAAAAAAAJD/////////AP///////wAAAAAAAAAA/////////////3AAAAAAAAAADOT///////8A////////AAAAAAAAAAD/////////////7BAAAAAAAAAAUP///////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'L' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAD/////////////////////////////AP////////////8AAAAAAAAAAP////////////////////////////8A/////////////wAAAAAAAAAA/////////////////////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A/////////////wAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD/////////////AAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'M' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A//////8AAAAAAAAAAAAAAHz//////3wAAAAAAAAAAAAAAP///////wD//////wAAAAAAAAAAAAAATP//////UAAAAAAAAAAAAAAA////////AP//////AAAAAAAAAAAAAAAc//////8cAAAAAAAAAAAAAAD///////8A//////8AAAAAAAAAAAAAAADw////8AAAAAAAAAAAAAAAAP///////wD//////wAAAAAAAAAAAAAAALz////AAAAAAAAAAAAAAAAA////////AP//////AAAAAAAAAAAAAAAAkP///5AAAAAAAAAAAAAAAAD///////8A//////8AAAAAAAAAAAAAAABc////ZAAAAAAAAAAAAAAAAP///////wD//////wAAAAAAAAAoAAAAADD///8wAAAAACQAAAAAAAAA////////AP//////AAAAAAAAAFwAAAAABPz//AgAAAAAXAAAAAAAAAD///////8A//////8AAAAAAAAAkAAAAAAA0P/UAAAAAACQAAAAAAAAAP///////wD//////wAAAAAAAADMAAAAAACg/6gAAAAAAMQAAAAAAAAA////////AP//////AAAAAAAAAPgEAAAAAHD/dAAAAAAE+AAAAAAAAAD///////8A//////8AAAAAAAAA/zQAAAAAQP9IAAAAADD/AAAAAAAAAP///////wD//////wAAAAAAAAD/bAAAAAAQ/xQAAAAAaP8AAAAAAAAA////////AP//////AAAAAAAAAP+gAAAAAADQAAAAAACc/wAAAAAAAAD///////8A//////8AAAAAAAAA/9QAAAAAAGgAAAAAAND/AAAAAAAAAP///////wD//////wAAAAAAAAD//wwAAAAAFAAAAAAM/P8AAAAAAAAA////////AP//////AAAAAAAAAP//RAAAAAAAAAAAADz//wAAAAAAAAD///////8A//////8AAAAAAAAA//94AAAAAAAAAAAAcP//AAAAAAAAAP///////wD//////wAAAAAAAAD//7AAAAAAAAAAAACo//8AAAAAAAAA////////AP//////AAAAAAAAAP//5AAAAAAAAAAAANz//wAAAAAAAAD///////8A//////8AAAAAAAAA////HAAAAAAAAAAQ////AAAAAAAAAP///////wD//////wAAAAAAAAD///9QAAAAAAAAAEz///8AAAAAAAAA////////AP//////AAAAAAAAAP///4gAAAAAAAAAfP///wAAAAAAAAD///////8A//////8AAAAAAAAA////vAAAAAAAAACw////AAAAAAAAAP///////wD//////wAAAAAAAAD////wAAAAAAAAAOz///8AAAAAAAAA////////AP//////AAAAAAAAAP////8sAAAAAAAc/////wAAAAAAAAD///////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'N' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////AAAAAAAAALD/////////////AAAAAAAAAP//////////AP////////8AAAAAAAAAFOj///////////8AAAAAAAAA//////////8A/////////wAAAAAAAAAASP///////////wAAAAAAAAD//////////wD/////////AAAAAAAAAAAAkP//////////AAAAAAAAAP//////////AP////////8AAAAAAAAAAAAI1P////////8AAAAAAAAA//////////8A/////////wAAAAAAAAAAAAAw+P///////wAAAAAAAAD//////////wD/////////AAAAAAAAAAAAAABw////////AAAAAAAAAP//////////AP////////8AAAAAAAAAAAAAAAC8//////8AAAAAAAAA//////////8A/////////wAAAAAAAAAAAAAAABzs/////wAAAAAAAAD//////////wD/////////AAAAAAAAAAAAAAAAAFD/////AAAAAAAAAP//////////AP////////8AAAAAAAAAAAAAAAAAAJz///8AAAAAAAAA//////////8A/////////wAAAAAAAAAUAAAAAAAADNz//wAAAAAAAAD//////////wD/////////AAAAAAAAALQAAAAAAAAANPz/AAAAAAAAAP//////////AP////////8AAAAAAAAA/2wAAAAAAAAAfP8AAAAAAAAA//////////8A/////////wAAAAAAAAD/+CwAAAAAAAAExAAAAAAAAAD//////////wD/////////AAAAAAAAAP//0AQAAAAAAAAgAAAAAAAAAP//////////AP////////8AAAAAAAAA////jAAAAAAAAAAAAAAAAAAA//////////8A/////////wAAAAAAAAD/////RAAAAAAAAAAAAAAAAAD//////////wD/////////AAAAAAAAAP/////kFAAAAAAAAAAAAAAAAP//////////AP////////8AAAAAAAAA//////+sAAAAAAAAAAAAAAAA//////////8A/////////wAAAAAAAAD///////9kAAAAAAAAAAAAAAD//////////wD/////////AAAAAAAAAP////////QkAAAAAAAAAAAAAP//////////AP////////8AAAAAAAAA/////////8wEAAAAAAAAAAAA//////////8A/////////wAAAAAAAAD//////////4QAAAAAAAAAAAD//////////wD/////////AAAAAAAAAP///////////DwAAAAAAAAAAP//////////AP////////8AAAAAAAAA////////////4BAAAAAAAAAA//////////8A/////////wAAAAAAAAD/////////////qAAAAAAAAAD//////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'O' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A///////////////////0qGw4HAAAABw4aKT0/////////////////wD////////////////wcAwAAAAAAAAAAAAAAAho6P//////////////AP//////////////uBQAAAAAAAAAAAAAAAAAAAAMoP////////////8A/////////////6AEAAAAAAAAAAAAAAAAAAAAAAAAkP///////////wD///////////+4BAAAAAAAAAAAAAAAAAAAAAAAAAAAoP//////////AP//////////8BQAAAAAAAAAAAAAAAAAAAAAAAAAAAAM5P////////8A//////////9wAAAAAAAAAAAsrPD/7KQsAAAAAAAAAABg/////////wD/////////+BAAAAAAAAAAUPj///////hQAAAAAAAAAAjs////////AP////////+sAAAAAAAAABDw//////////AYAAAAAAAAAKD///////8A/////////2wAAAAAAAAAdP///////////3wAAAAAAAAAYP///////wD/////////OAAAAAAAAAC4////////////xAAAAAAAAAAw////////AP////////8cAAAAAAAAAOD////////////oAAAAAAAAABT///////8A/////////wAAAAAAAAAA//////////////8AAAAAAAAAAP///////wD/////////AAAAAAAAAAD//////////////wAAAAAAAAAA////////AP////////8AAAAAAAAAAP/////////////8AAAAAAAAAAD///////8A/////////xwAAAAAAAAA5P///////////+AAAAAAAAAAHP///////wD/////////NAAAAAAAAAC8////////////uAAAAAAAAAA4////////AP////////9oAAAAAAAAAHj///////////98AAAAAAAAAGT///////8A/////////6gAAAAAAAAAGPD/////////+BgAAAAAAAAApP///////wD/////////9AwAAAAAAAAAUPz///////xcAAAAAAAAAAjs////////AP//////////cAAAAAAAAAAALKjs//CwOAAAAAAAAAAAYP////////8A///////////wFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzk/////////wD///////////+4BAAAAAAAAAAAAAAAAAAAAAAAAAAAoP//////////AP////////////+QAAAAAAAAAAAAAAAAAAAAAAAAAJD///////////8A//////////////+sEAAAAAAAAAAAAAAAAAAAAAyg/////////////wD////////////////oZAgAAAAAAAAAAAAAAARg4P//////////////AP//////////////////9KhsOCAAAAAUMFyc7P////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'P' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP///////////wAAAAAAAAAAAAAAAAAACCxguP////////////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAOOD//////////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAGOD/////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAAAARP////////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAxP///////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAAABo////////////AP///////////wAAAAAAAAAA////6JwMAAAAAAAAADD///////////8A////////////AAAAAAAAAAD//////6AAAAAAAAAADP///////////wD///////////8AAAAAAAAAAP//////9AAAAAAAAAAA////////////AP///////////wAAAAAAAAAA///////0AAAAAAAAAAD///////////8A////////////AAAAAAAAAAD//////5gAAAAAAAAAHP///////////wD///////////8AAAAAAAAAAP///9iICAAAAAAAAABI////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAJD///////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAI6P///////////wD///////////8AAAAAAAAAAAAAAAAAAAAAAAAAAIT/////////////AP///////////wAAAAAAAAAAAAAAAAAAAAAAAABU/P////////////8A////////////AAAAAAAAAAAAAAAAAAAAAAAIhPz//////////////wD///////////8AAAAAAAAAAAAAAAAABCRMkOz/////////////////AP///////////wAAAAAAAAAA//////////////////////////////8A////////////AAAAAAAAAAD//////////////////////////////wD///////////8AAAAAAAAAAP//////////////////////////////AP///////////wAAAAAAAAAA//////////////////////////////8A////////////AAAAAAAAAAD//////////////////////////////wD///////////8AAAAAAAAAAP//////////////////////////////AP///////////wAAAAAAAAAA//////////////////////////////8A////////////AAAAAAAAAAD//////////////////////////////wD///////////8AAAAAAAAAAP//////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'Q' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////SoaDQcAAAAHDhoqPT///////////////////8A//////////////BwDAAAAAAAAAAAAAAACHDo/////////////////wD///////////+4FAAAAAAAAAAAAAAAAAAAABCo////////////////AP//////////nAQAAAAAAAAAAAAAAAAAAAAAAACQ//////////////8A/////////7gEAAAAAAAAAAAAAAAAAAAAAAAAAACg/////////////wD////////wFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzo////////////AP///////3AAAAAAAAAAACyo8P/sqCwAAAAAAAAAAGT///////////8A///////4EAAAAAAAAABM+P///////FQAAAAAAAAACPT//////////wD//////7AAAAAAAAAAFPD/////////9BgAAAAAAAAApP//////////AP//////bAAAAAAAAAB4////////////fAAAAAAAAABk//////////8A//////84AAAAAAAAALz///////////+8AAAAAAAAADT//////////wD//////xwAAAAAAAAA6P///////////+QAAAAAAAAAHP//////////AP//////AAAAAAAAAAD//////////////wAAAAAAAAAA//////////8A//////8AAAAAAAAAAP//////////////AAAAAAAAAAD//////////wD//////wAAAAAAAAAA/P////////////8AAAAAAAAAAP//////////AP//////GAAAAAAAAADg////////////4AAAAAAAAAAc//////////8A//////84AAAAAAAAALT////MJHTo//+8AAAAAAAAADT//////////wD//////2wAAAAAAAAAdP///2AAABCg/3wAAAAAAAAAZP//////////AP//////rAAAAAAAAAAY9P/sCAAAAABMGAAAAAAAAACk//////////8A///////4EAAAAAAAAABU/P+0OAAAAAAAAAAAAAAACPT//////////wD///////94AAAAAAAAAAA4sPD/gAAAAAAAAAAAAABk////////////AP////////AcAAAAAAAAAAAAAAAAAAAAAAAAAAAADOT///////////8A/////////7wEAAAAAAAAAAAAAAAAAAAAAAAAAACQ/////////////wD//////////6wEAAAAAAAAAAAAAAAAAAAAAAAAABSs////////////AP///////////7gUAAAAAAAAAAAAAAAAAAAAAAAAAABAwP////////8A//////////////BwDAAAAAAAAAAAAAAABAgAAAAAAAA8/////////wD////////////////0qGg0GAAAABgwXJjkxBgAAAAAALD/////////AP//////////////////////////////////5DQAAAAk/P////////8A////////////////////////////////////+GwAAJD//////////wD//////////////////////////////////////8A49P//////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'R' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////wAAAAAAAAAAAAAAAAAAAAQgOGSk+P///////////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAcuP//////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAEsP////////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ6P///////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB8////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAADD///////////8A/////////wAAAAAAAAAA///////svDgAAAAAAAAACP///////////wD/////////AAAAAAAAAAD/////////7AAAAAAAAAAA////////////AP////////8AAAAAAAAAAP/////////cAAAAAAAAABD///////////8A/////////wAAAAAAAAAA//////DQoCQAAAAAAAAAQP///////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAACU////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAIPj///////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAzU/////////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAA02P//////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAxctPz///////////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAEDY/////////////////wD/////////AAAAAAAAAAD/9LAsAAAAAAAAAAzc////////////////AP////////8AAAAAAAAAAP///+wkAAAAAAAAADD8//////////////8A/////////wAAAAAAAAAA/////8QAAAAAAAAAAJD//////////////wD/////////AAAAAAAAAAD//////1QAAAAAAAAAFPD/////////////AP////////8AAAAAAAAAAP//////3AQAAAAAAAAAgP////////////8A/////////wAAAAAAAAAA////////aAAAAAAAAAAM6P///////////wD/////////AAAAAAAAAAD////////oCAAAAAAAAABs////////////AP////////8AAAAAAAAAAP////////+AAAAAAAAAAATc//////////8A/////////wAAAAAAAAAA//////////AUAAAAAAAAAFj//////////wD/////////AAAAAAAAAAD//////////5AAAAAAAAAAAND/////////AP////////8AAAAAAAAAAP//////////+CQAAAAAAAAAQP////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'S' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP/////////////////8vHBEIAgAAAQgQHC8/P////////////////8A////////////////pCQAAAAAAAAAAAAAAAAcoP///////////////wD//////////////FwAAAAAAAAAAAAAAAAAAAAAXP//////////////AP////////////9oAAAAAAAAAAAAAAAAAAAAAAAAhP////////////8A////////////zAAAAAAAAAAAAAAAAAAAAAAAAAAI6P///////////wD///////////9cAAAAAAAAAAAAAAAAAAAAAAAAAACA////////////AP///////////xgAAAAAAAAAUOD/8KwkAAAAAAAAADj///////////8A////////////AAAAAAAAAAD0/////8wABCAgICxASP///////////wD///////////8MAAAAAAAAAMz/////////////////////////////AP///////////0AAAAAAAAAACFiQxPT///////////////////////8A////////////oAAAAAAAAAAAAAAAADBwtPT//////////////////wD////////////8QAAAAAAAAAAAAAAAAAAACFTA////////////////AP/////////////oOAAAAAAAAAAAAAAAAAAAAABM6P////////////8A///////////////4fAgAAAAAAAAAAAAAAAAAAAAY2P///////////wD/////////////////7IwwAAAAAAAAAAAAAAAAAAAo+P//////////AP/////////////////////koGw0BAAAAAAAAAAAAACU//////////8A///////////////////////////4uFgAAAAAAAAAADz//////////wD//////////2BgSEA0IBwA6P///////5QAAAAAAAAADP//////////AP//////////JAAAAAAAAACc/////////AAAAAAAAAAA//////////8A//////////9YAAAAAAAAACDo///////AAAAAAAAAABT//////////wD//////////6QAAAAAAAAAACCk7P/snBQAAAAAAAAAUP//////////AP//////////+BAAAAAAAAAAAAAAAAAAAAAAAAAAAACs//////////8A////////////kAAAAAAAAAAAAAAAAAAAAAAAAAAAOP///////////wD////////////8RAAAAAAAAAAAAAAAAAAAAAAAABjc////////////AP/////////////0PAAAAAAAAAAAAAAAAAAAAAAg2P////////////8A///////////////8hBQAAAAAAAAAAAAAAAAMdPT//////////////wD/////////////////+LRwSCAMAAAAHDhoqPT/////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'T' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD///////////////////8AAAAAAAAAAP//////////////////////AP///////////////////wAAAAAAAAAA//////////////////////8A////////////////////AAAAAAAAAAD//////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'U' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////AAAAAAAAAAD///////////8AAAAAAAAAAP//////////AP////////8AAAAAAAAAAP///////////wAAAAAAAAAA//////////8A/////////wAAAAAAAAAA////////////AAAAAAAAAAD//////////wD/////////JAAAAAAAAADk/////////+gAAAAAAAAAHP//////////AP////////9MAAAAAAAAAJz/////////nAAAAAAAAABE//////////8A/////////4gAAAAAAAAAHOj//////+ggAAAAAAAAAHz//////////wD/////////0AAAAAAAAAAAIJzs/+ykIAAAAAAAAAAA0P//////////AP//////////QAAAAAAAAAAAAAAAAAAAAAAAAAAAAED///////////8A///////////IBAAAAAAAAAAAAAAAAAAAAAAAAAAE0P///////////wD///////////+YAAAAAAAAAAAAAAAAAAAAAAAAAJj/////////////AP////////////+UBAAAAAAAAAAAAAAAAAAAAASU//////////////8A///////////////IPAAAAAAAAAAAAAAAAAAwyP///////////////wD/////////////////0IxYOCAIAAAEIEiAyP//////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'V' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD//////zAAAAAAAAAAYP//////////////ZAAAAAAAAAAw////////AP//////kAAAAAAAAAAU/P////////////8UAAAAAAAAAJD///////8A///////oBAAAAAAAAADE////////////xAAAAAAAAAAE7P///////wD///////9MAAAAAAAAAHD///////////94AAAAAAAAAEz/////////AP///////6gAAAAAAAAAJP///////////yQAAAAAAAAArP////////8A////////+BAAAAAAAAAA1P/////////YAAAAAAAAABT4/////////wD/////////aAAAAAAAAACE/////////4QAAAAAAAAAbP//////////AP/////////EAAAAAAAAADT/////////OAAAAAAAAADM//////////8A//////////8kAAAAAAAAAOT//////+QAAAAAAAAAKP///////////wD//////////4QAAAAAAAAAmP//////nAAAAAAAAACI////////////AP//////////5AAAAAAAAABE//////9EAAAAAAAABOT///////////8A////////////QAAAAAAAAAT0////9AgAAAAAAABI/////////////wD///////////+gAAAAAAAAAKT///+kAAAAAAAAAKj/////////////AP////////////QIAAAAAAAAXP///1wAAAAAAAAM+P////////////8A/////////////1wAAAAAAAAM+P/8DAAAAAAAAGT//////////////wD/////////////vAAAAAAAAAC8/7wAAAAAAAAAxP//////////////AP//////////////HAAAAAAAAGj/aAAAAAAAACT///////////////8A//////////////94AAAAAAAAHP8cAAAAAAAAhP///////////////wD//////////////9gAAAAAAAAAkAAAAAAAAADk////////////////AP///////////////zgAAAAAAAAQAAAAAAAAQP////////////////8A////////////////lAAAAAAAAAAAAAAAAACg/////////////////wD////////////////sCAAAAAAAAAAAAAAADPT/////////////////AP////////////////9QAAAAAAAAAAAAAABg//////////////////8A/////////////////7AAAAAAAAAAAAAAAMD//////////////////wD//////////////////BQAAAAAAAAAAAAc////////////////////AP//////////////////cAAAAAAAAAAAAHz///////////////////8A///////////////////MAAAAAAAAAAAA3P///////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'W' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A//8cAAAAAAAAALz/////4AAAAAAAAAAA6P////+8AAAAAAAAABz//wD//1QAAAAAAAAAjP////+gAAAAAAAAAACo/////4wAAAAAAAAAUP//AP//jAAAAAAAAABU/////2AAAAAAAAAAAGj/////VAAAAAAAAACM//8A///EAAAAAAAAACT/////IAAAAAAAAAAAKP////8kAAAAAAAAAMT//wD///gEAAAAAAAAAPD//+AAAAAAAAAAAAAA6P//8AAAAAAAAAAE9P//AP///zAAAAAAAAAAvP//oAAAAAAAAAAAAACo//+8AAAAAAAAADD///8A////bAAAAAAAAACM//9gAAAAAAAAAAAAAGT//4wAAAAAAAAAaP///wD///+kAAAAAAAAAFT//yAAAAAAAAAAAAAAIP//VAAAAAAAAACc////AP///9gAAAAAAAAAJP/gAAAAAAAAAAAAAAAA4P8kAAAAAAAAANT///8A/////xAAAAAAAAAA8KAAAAAAAAAAAAAAAACg8AAAAAAAAAAQ/////wD/////TAAAAAAAAAC8YAAAAAAAAAAAAAAAAGC8AAAAAAAAAET/////AP////+AAAAAAAAAAIwgAAAAAAAAAAAAAAAAIIwAAAAAAAAAfP////8A/////7gAAAAAAAAANAAAAAAAACwwAAAAAAAANAAAAAAAAACw/////wD/////8AAAAAAAAAAAAAAAAAAAdHgAAAAAAAAAAAAAAAAAAOz/////AP//////KAAAAAAAAAAAAAAAAAC4vAAAAAAAAAAAAAAAAAAg//////8A//////9gAAAAAAAAAAAAAAAACPj4CAAAAAAAAAAAAAAAAFj//////wD//////5QAAAAAAAAAAAAAAABE//9IAAAAAAAAAAAAAAAAkP//////AP//////0AAAAAAAAAAAAAAAAIj//4wAAAAAAAAAAAAAAADI//////8A///////8DAAAAAAAAAAAAAAAzP//1AAAAAAAAAAAAAAABPj//////wD///////88AAAAAAAAAAAAABT/////GAAAAAAAAAAAAAA0////////AP///////3QAAAAAAAAAAAAAWP////9gAAAAAAAAAAAAAHD///////8A////////sAAAAAAAAAAAAACg/////6QAAAAAAAAAAAAApP///////wD////////kAAAAAAAAAAAAAOT/////6AAAAAAAAAAAAADc////////AP////////8cAAAAAAAAAAAo////////MAAAAAAAAAAAEP////////8A/////////1QAAAAAAAAAAHD///////94AAAAAAAAAABM/////////wD/////////jAAAAAAAAAAAtP///////7wAAAAAAAAAAID/////////AP/////////EAAAAAAAAAAT0////////+AgAAAAAAAAAuP////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'X' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD///////9UAAAAAAAAAKz///////////+sAAAAAAAAAFD/////////AP///////+QQAAAAAAAAFOT/////////8BwAAAAAAAAM5P////////8A/////////5gAAAAAAAAATP////////9kAAAAAAAAAJD//////////wD//////////0AAAAAAAAAAoP//////wAAAAAAAAAA0/P//////////AP//////////2AgAAAAAAAAQ4P////gkAAAAAAAABMz///////////8A////////////iAAAAAAAAABA////dAAAAAAAAABw/////////////wD////////////8MAAAAAAAAACU/9AEAAAAAAAAHPD/////////////AP/////////////IBAAAAAAAAAzYMAAAAAAAAACs//////////////8A//////////////90AAAAAAAAABAAAAAAAAAATP///////////////wD///////////////QgAAAAAAAAAAAAAAAAAAzg////////////////AP///////////////7wAAAAAAAAAAAAAAAAAjP////////////////8A/////////////////2AAAAAAAAAAAAAAADD8/////////////////wD/////////////////7BQAAAAAAAAAAAAEyP//////////////////AP/////////////////gDAAAAAAAAAAAAAjY//////////////////8A/////////////////0AAAAAAAAAAAAAAADj8/////////////////wD///////////////+UAAAAAAAAAAAAAAAAAJD/////////////////AP//////////////4AwAAAAAAAAAAAAAAAAADOD///////////////8A//////////////9AAAAAAAAAAAAAAAAAAAAAQP///////////////wD/////////////nAAAAAAAAAAAWAAAAAAAAAAAlP//////////////AP///////////+QQAAAAAAAAAGD/YAAAAAAAAAAM4P////////////8A////////////TAAAAAAAAAAs9P/0LAAAAAAAAABM/////////////wD//////////6AAAAAAAAAADNT////UDAAAAAAAAACg////////////AP/////////kEAAAAAAAAACg//////+gAAAAAAAAABDk//////////8A/////////0wAAAAAAAAAYP////////9gAAAAAAAAAEz//////////wD///////+oAAAAAAAAACz0//////////QsAAAAAAAAAKT/////////AP//////7BQAAAAAAAAM1P///////////9QMAAAAAAAAFOz///////8A//////9UAAAAAAAAAKD//////////////6AAAAAAAAAAVP///////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'Y' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP///////1QAAAAAAAAAAGj//////////2gAAAAAAAAAAFT///////8A////////5BAAAAAAAAAAAMT////////EAAAAAAAAAAAQ5P///////wD/////////mAAAAAAAAAAAKPj/////+CgAAAAAAAAAAJj/////////AP//////////PAAAAAAAAAAAgP////+AAAAAAAAAAAA8//////////8A///////////YCAAAAAAAAAAE2P//2AQAAAAAAAAACNj//////////wD///////////+AAAAAAAAAAAA4//84AAAAAAAAAACA////////////AP////////////woAAAAAAAAAACUlAAAAAAAAAAAKPz///////////8A/////////////8gAAAAAAAAAABAQAAAAAAAAAADI/////////////wD//////////////2wAAAAAAAAAAAAAAAAAAAAAbP//////////////AP//////////////8BwAAAAAAAAAAAAAAAAAABzw//////////////8A////////////////tAAAAAAAAAAAAAAAAAAAtP///////////////wD/////////////////VAAAAAAAAAAAAAAAAFT/////////////////AP/////////////////oEAAAAAAAAAAAAAAQ6P////////////////8A//////////////////+cAAAAAAAAAAAAAJz//////////////////wD///////////////////9AAAAAAAAAAABA////////////////////AP///////////////////9gAAAAAAAAAANj///////////////////8A/////////////////////wAAAAAAAAAA/////////////////////wD/////////////////////AAAAAAAAAAD/////////////////////AP////////////////////8AAAAAAAAAAP////////////////////8A/////////////////////wAAAAAAAAAA/////////////////////wD/////////////////////AAAAAAAAAAD/////////////////////AP////////////////////8AAAAAAAAAAP////////////////////8A/////////////////////wAAAAAAAAAA/////////////////////wD/////////////////////AAAAAAAAAAD/////////////////////AP////////////////////8AAAAAAAAAAP////////////////////8A/////////////////////wAAAAAAAAAA/////////////////////wD/////////////////////AAAAAAAAAAD/////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - 'Z' => array( - 'data' => 'AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////////8A//////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////////wD//////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////////AP//////////AAAAAAAAAAAAAAAAAAAAAAAAAAAQ//////////////8A/////////////////////////1AAAAAAAAAABLz//////////////wD///////////////////////98AAAAAAAAAACY////////////////AP//////////////////////pAAAAAAAAAAAaP////////////////8A/////////////////////8QIAAAAAAAAAET8/////////////////wD////////////////////gGAAAAAAAAAAo9P//////////////////AP//////////////////9CwAAAAAAAAAFNz///////////////////8A//////////////////xMAAAAAAAAAATA/////////////////////wD/////////////////eAAAAAAAAAAAnP//////////////////////AP///////////////5wAAAAAAAAAAHT///////////////////////8A///////////////ABAAAAAAAAABM/P///////////////////////wD/////////////3BQAAAAAAAAALPT/////////////////////////AP////////////QoAAAAAAAAABjg//////////////////////////8A///////////8SAAAAAAAAAAExP///////////////////////////wD//////////2wAAAAAAAAAAKD/////////////////////////////AP////////+YAAAAAAAAAAB8//////////////////////////////8A/////////wQAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A/////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////wD/////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////AP////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8A/////////////////////////////////////////////////////wD/////////////////////////////////////////////////////AP////////////////////////////////////////////////////8=', - 'width' => 40 - ), - ); - - return $_png; -} - -// These define base64_encoded raw png image data used -// when we cannot generate our own single png image -function define_raw_pngs() -{ - $_png = array( - '0' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QKCNGXKO6AAAAB3RJTUUH0wUOEDQ6EUG1VwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAXNJREFUeNpj/M9AHGAiUt2wVvhyaqAqKyOjpG3jQwaGv+e+IUn9RwJfSjjg4iwFP1aKJD6HyyErfGGAYrquIoP5E2wK/zigu0v5wH9sChdgeKDqP1aFGhBZmxv/z0Dd4IxV4RWIpMQHIPuJAITzAqEQETx7IFQIP5CQNoJwDmALxzMQCuyjg1chnBPYwtECwr8AZN41h0p6YHOjAkTuwf//77wYuCEcFWwKOWA2fM1iZuuHcASwKYQ55c9ENuasrxgRjKlwJS+D17v/hBUeUGYwv/sfn0IRiJQZJIbxuFEFagjvSlDUQNgK2GIGqpC1JRhIfoAqxBYz0DRhn8IMJO+giKEqhMaMJBeI3AHhIKdkRPqG8DlAifqFADyasKRHO6h1Z/6fMYEwTbCmx3cWGCl8CTaFwBhGz+M2/7EpXMvOnBmIok7jBVaFz/Mi3/1pQORrhpgPyOr+M8IL0j9/gKpeLjhy5QEwoDVsYuRR3cE4IktcAJNx8cJaZBeQAAAAAElFTkSuQmCC', - '1' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QMi//xxVKAAAAB3RJTUUH0wUOEDYLcqnX7wAAAAlwSFlzAAALEgAACxIB0t1+/AAAAHpJREFUeNpj/M9AHGAiUh1WhR8FGUGAsMKaD9iM/I8BlmCVwVS4hoUohT8qcNiFyv2zQIWBCIV3amRwu54RKcDRAgQ1KigIcJYK7CqR3QsCFmf+Y8qgeQakbANMAz6FKjUXECbj8zWa76nm61GFw1UhI10KqVGFNFQIADdK9Zj7PsV9AAAAAElFTkSuQmCC', - '2' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QMwPUBEjoAAAAB3RJTUUH0wUOEDUqFe2UcgAAAAlwSFlzAAALEgAACxIB0t1+/AAAAQxJREFUeNpj/M9AHGAiUt2owkGrkAWF93LFgStPfjCwyGiYRGijqfyPAH9aOJAkQl78RwbICkNQjdB4gUNhD7qzLLAr/CKA4YENSAoRvl7zAUJXvPmxhgfCXILVMxEQvg+IDVUhgtVqDYjkDhD7B2aQIMIx5cOTN29evLAAsaEKObBajQzmQOQMcIQjHLwQgSisIaDwBdS5LHfwK7yhAHVVyX+8CrdAA5HB5gdehQ3Yoxpd4ZcAmDqbD//xKISEIjhU//zHoxDmXQaeFRhOZ8CmzuDOf3wKf8DsDfnyH6/CHJi6P//xKjyDJethVehBpMI7DPgVwrPCCgb8AK5wDwGFcNMF8EkCASOx1QcAGUxu1untnFIAAAAASUVORK5CYII=', - '3' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QMxBQugk2AAAAB3RJTUUH0wUOEDU3duv4qwAAAAlwSFlzAAALEgAACxIB0t1+/AAAATdJREFUeNpj/M9AHGAiUt0IVciCzPm7ZceZB28YGBQkLHwcmNFU/keANRJI4ioH/qMAJIUlaHatwaFwBrqrOO5gVfiCB8P9KVgVVkAtnPDh/wkLCFsGq0IFiGQLiH0D06P/GWHJ7O+NOzfuXLlzQRrEhgSawHscwYPurxAcwQMBf/4/aIAYyHIGr8IEeDhO+Y9XoQNUncwOVHGMRPEDSovc+IkzrpGDCQgUbuC1WgBhhsIHfAp3vPn/oIIFKfRxKQSDGohCA4IKX0DTD7YoRAWMUJ9iyQpbn4DBBWUQ5yFEDDnFw622gXAzwBxoYvfB5sYlUI0lD/4/gWWKJdgU/tHAcKjCD6y+PsGCpo4FJbaRgmcNqkqWCThTzxkTJHXo+Ro1HA9uOPHiATDlKJj4eKCVFIzDqWgGAK7GW/haPS+zAAAAAElFTkSuQmCC', - '4' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QMyqWttCEAAAAB3RJTUUH0wUOEDUxn4hdngAAAAlwSFlzAAALEgAACxIB0t1+/AAAAKBJREFUeNpj/M9AHGAiUh2FCucyQgCK4H9McIAFixwWhQ8kGIhS+MWAgTiFIQzEKWxhIE7hFgbiFF7hASkQIajwjQpInuUAIYV/XMDyU/4TUlgAlk75T0jhArCszR9CCk+AY07mxX8CCp+AY47nzH8CCn+YgOWW/CekMAYsVfMfl0JGmCBq4kNEDp2zAn0UMmItABjRvDykPTO43DgyFQIANP6pTFLWAdoAAAAASUVORK5CYII=', - '5' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QMzPy3XhEAAAAB3RJTUUH0wUOEDUk8lW5dQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAQpJREFUeNpj/M9AHGAiUt2oQuIVfmREBzgU3iHWxAfEKiTaRFpZnfAfAbAr/AsxUYagiVCbeQgqhPpFYmukLCOrZupRNJUIB02BCAjAZCK+/Ed2LoJZgm6bzRfsCgMw3JWAXaEBpg8uIGSRPPMBQmXc+P+iggXCnoOQZUQK1K8PgEAjGcQs7QGL6FzG5mtkcAUiyYIQYcRRUkDTLEIWR1b4ixamQMPhrKUP3rx48eDNFXmwdyFiOthixgXqaTAnBcKpwRaOS6A6Mx78fwBVx/IAm8I/KsTGzAkWNHUyb7Ar/L8GNSlK3MCRev7/v+CApC7kBUoUoAX4yQ0nHjwAWqpiE6GNFgNDoAwHAKC2Q2lMNcCmAAAAAElFTkSuQmCC', - '6' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QNAObRd4vAAAAB3RJTUUH0wUOEDUc2lcB6wAAAAlwSFlzAAALEgAACxIB0t1+/AAAATtJREFUeNpj/M9AHGAiUh2Gwq2puryMjKKmmSfRVf5HBkcMEBI+L1CkUBROYUE2QuMFLoVr0CzzwKHwhQC6szZgV1gAtfHI/xs2mEYywsPxp8QHEMVxQ56B4aaJiIKIiIRCPDZf74DwI/5jB4hwPAChbAgG+BWoExlOxkoysuqW3sUV4BoQ/p0SqARLB44AF4HIByDMKMCuEIu7phCrUOADNl/DgMOJ/09SIMwPC7B5hgfC1/kB4kRAOC7YrFaByM0Ac85AOCLYrFaBhSMIQNPlG2wBDg3HP2CSGU/MuEAoiKVXUWxB9cwPiG8UwEGSg5FCMNOjwZ4/byqgpqwgMoWr/MGeZ1agqWPZgSNz/Z+AqnDCf1wK/29B8qbKDhQpRtTE8HfLjjMP3jDwKJh4hKCGJSPNC6lRhTRWCABWpdoxd/bZ4QAAAABJRU5ErkJggg==', - '7' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QNA18/fMoAAAAB3RJTUUH0wUOEDUVo4u5TwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAM9JREFUeNpj/M9AHGAiUt2oQnorZIGzGLFJIyJ40HqGhUiFPFuQ/YUFPBGBmLcDSQybwj8OEDOW/CegsAeiruQ/AYV3OMDqTP4QUugCceCN/wQUQn1a8Z+Awj8qYHUiHwgpXAAxcMJ/Qgp1wOoEPhBSuANiYM5/QgpjIAovEFL4gweszgAz0NASxZ4vYMqHYDKDBiIWhWhWa0CS1x9CVn+8AaYsmAlZfQRC6RDMChADGTQIKjxDrMI7EEoBi0JGlMJe8AOY+sFOSCEeQHQBAABCZ7xyT9fJhwAAAABJRU5ErkJggg==', - '8' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QNBeBnwpSAAAAB3RJTUUH0wUOEDUOKe5wowAAAAlwSFlzAAALEgAACxIB0t1+/AAAATVJREFUeNpj/M9AHGAiUt1AKmRB459cc+DBGwYWGQ2LEG1Umf/I4IELkozLA2QpFIUXJFDMEDiBQ+EHGTR3yHzArrAFwwct2BXqQGQ1zvw/owFh6mBXCDXmDJB5BsOrjEhxzfoHIgkiGCGB9xtrgEPtOwvEV6FWY4+ZAAgVc5LhZgKEGYI9wN+gBiPu4Pl/BFWlxA1cMfN/C0rUr8AVhX8K0KyuwaEwASNmarAqPACVTXnw/0oENBFewKYQGhYZYE4MVBM2hVAvQ1LhHQhHBVsUMjIgYhCdhy3PPASTd6GOxBYz0KhOQHajDjY3pkC1Rlz5fweqjqEAm8ILGK5gYLlDZICXYI+ZLzZo6gL+4EgUfyo4kJQJtCCpQ8kKQPB2zZ47L14AU5iMgUMAN7IM43AqHwdQIQAhMPz6Gz5V/wAAAABJRU5ErkJggg==', - '9' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QNCQ+T2tEAAAAB3RJTUUH0wUOEDUHUDLIBwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAUZJREFUeNpj/M9AHGAiUh26wr9rE3V5GRlFTTM3/kVT+R8Z7FBBSKjsQJFCUTiFBcWMCbgUHmBBs20FdoV/VNDUMQi8wapwDVS65s2fPToQZgFWhRFIkm8kwGyeH9gUQm2+Aua0QDhb4LJI4XgHQmmDSRMIZw+emIEENAeEcwObQhEIdQHiABRbUGPGBSIQAWL/gHqbB5tnJkC1Fjz5f8IGwxwkhR8EsCQarFE4hViF/wsQCgKgHsSu8H8HLFkUQL2rgUPh/zslOiwMEjFH/kND2geXQvQgqMAWhSjgAIRygAswIuXCpXfevHjz4M0ZdQaGhxo/wAnyBTuWmPnvARGxuPH/iAa+9Ph/A7r9Ai+wK/zvg6ZwzX8cCl9oICtjmfIfl8L/bwIQ6gyO/Met8P//EwUmwHTJo5OyBU2CkdaF1KhCWisEAM/sJxmZkdWnAAAAAElFTkSuQmCC', - 'A' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QFwy1U7TfAAAAB3RJTUUH0wUOEC0ZKCZtPQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAO1JREFUeNrt1LERwiAUBuAHZ2GRwsIypQMwQEZwgBQpM4QDZBSLFI7gCA5gQWGRdA5gkTuMSh48eMTUnq96wH98B+QiDCwruTD3D76qF676ueAp0Y9lSBXeSkFWaLAje3T+kkzK4SgpBzZw8pqxJWcdOJuRsyGPbWDk0tS20zw9SXsobdfytJVXdzNsP61i6Zt3K7Ht0UeUgbPdjsrOXMd+2IS2C2qb271HVWi7YANcNXFQsUEVBTXwNdl46jYRxPl52dnwRUZbhkLSDmS8DnxFRWiULxg8UxvobefuRR8ZQYDKtffVVcQWv/RrfgJC4bd0upw4MQAAAABJRU5ErkJggg==', - 'B' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGAusrz2zAAAAB3RJTUUH0wUOEC01Gv4B3gAAAAlwSFlzAAALEgAACxIB0t1+/AAAANJJREFUeNpj/M9AHGAiUh0tFTKiAUHL2rsoKv9DARZDWFr+IwA+hQwMFcQqZDhCrMIIYhWK4FYIYv8444PuV+wK//9/A+UJwBUSCHAL3OEIsdoFyttCpGdiiAtHjoY/RCnk6PlBbBRKrCE6CqcQq5DlDs5whIT3CgUI788EvOEIBCegXB2YPCNMBSNMISqf5TeUjysK90LpP/itfrFEAhZCMHkWdKMYUbk2MAah7BqD02pUYEFkgMu8IE6hD0IdpmegwSejoKLjoY7syaFU7A0HhQA2e4cJytImvAAAAABJRU5ErkJggg==', - 'C' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGBbPqVFqAAAAB3RJTUUH0wUOEC4BEGemqAAAAAlwSFlzAAALEgAACxIB0t1+/AAAASlJREFUeNpj/M9AHGAiUt2owkGrkAWV+3TDgRtPPjBwyGiYBOijSv1HAlcCkGUcTiDLISvsQDOeZQp2hQWYDpuCTeEEbD44ganwDgc2vxpgKoyAyUWc+f9hjgCMtwFd4RuYRxog/ueBcl3QFc6BSmj8gfBrwE40yFmCrjABqrAH5mSZgJ4jX7AEjwlU4Zn/OAAsrp9AaRlccc0IzdeMsBilOPWQrBDmtpfEKnwBpZ8qZq58i6IS6vscKHcBcgQYlOz4gh6OK6AKfaB8G5hN6Aq/wBLPHjB3CczCFIzUA0u2PD0v/j9pgaf1ExgK3wgwYAEOWFL4GizqWC5gyzM1mArnEJkLZ2DPhf//n3BAVmeDkq8ZUZPL3TUn7gBLCgYFBYsAcxQZRmKrDwABNsv9SJSDwwAAAABJRU5ErkJggg==', - 'D' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGC1+orhOAAAAB3RJTUUH0wUOEC4yr7fHvgAAAAlwSFlzAAALEgAACxIB0t1+/AAAAM9JREFUeNpj/M9AHGAiUt1AKmSBsxiRhXlkNBxCpFFU/ocBTDMyPvxHADwKGRgUbhCpkEHiCZEKGRyIVciwArdCIPPFGg8YzwSvQiBogXFvEFD43wDKnQDl44yZGCh9glAU2sCsJqRQBkq/gMUw3G2wuP6PnU/H9PgRSgsQUvgESosQUngFSqsQUrgCSsNiCFcU7oBx9+CL6w8XamB5SeUPkelxAZEJ1+YPcQolXhCXFTTuEJULOUq+IOVrFgasQELBxMaHG1mEcTiVjwOoEADAIkCnGpmJKgAAAABJRU5ErkJggg==', - 'E' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGDeDwEE0AAAAB3RJTUUH0wUOEC8CkHXGUwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAD5JREFUeNpj/M9AHGAiUt2owkGrkAXGYMQqjUgJQ8EzpPsa05+D140oMYTk4KEQ4MMqZqgUhcM1czESW30AABfqB1XDnLzcAAAAAElFTkSuQmCC', - 'F' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGQe8AkDZAAAAB3RJTUUH0wUOEC8JB6cf2wAAAAlwSFlzAAALEgAACxIB0t1+/AAAADlJREFUeNpj/M9AHGAiUt3wUsiCYDJikUYE3lDwDDm+xvTp4HUjIoaQXTsUAnxYxcyoQryAcUSWuAAW/gZTg/yEMAAAAABJRU5ErkJggg==', - 'G' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGRFI1vWIAAAAB3RJTUUH0wUOEC8QY8y3GwAAAAlwSFlzAAALEgAACxIB0t1+/AAAASZJREFUeNpj/M9AHGAiUt0IVciCwvt7ZM+FOy8+MDBwSEho2AQII8v9R4A/U2RQtHEUfEBIIim8YYBhn8oNLAqP8GBxmcwbDIU3sKljYIhAV/jHgAE7uICmcAJMQqDmwp//D2YowPgxqAr/wPyr8QAi8EEHwleIQFW4BxYicG+eEHEomHECET5QhRVQhQn/cQFoFJ6AKgwgFNcPoFwdnAoZIXmGERahKDwkIdqlR1j4PiRW4RVCCmExvQenQrSYEXiDiAoUBfC4loAK23yBSnzArhCRehRmAJPFnRUxHDgU/lDA7zZECj/Cgl2dAkaeWYNVZcoHDIX/94hgKLM4gS27/v9QIICizGMDkiQjSon7c8eBCw+e/GFgkZEwsHCRRpZiHE5FMwCa2YE+WcAOUwAAAABJRU5ErkJggg==', - 'H' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGRw2Z4k1AAAAB3RJTUUH0wUOEC8agxleBQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAD1JREFUeNpj/M9AHGAiUt2oQvyABUozQml4+KMLDAXPDAWFLGh8RlwKh4JnaB88GOlxELhxVCFewDgEynAAN2sFVHAvevkAAAAASUVORK5CYII=', - 'I' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGSlg1E0WAAAAB3RJTUUH0wUOEC86uHd+zQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAD5JREFUeNpj/M9AHGAiUt1AKmRBMBkxJJE9OhQ8Q32FjGhxDQsjjCQwFDwzqnCwKkRKZqO5EBMwDqcSl2iFAMMeB0s/kLo2AAAAAElFTkSuQmCC', - 'J' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QGywiiNsbAAAAB3RJTUUH0wUOEDAFw0tdbgAAAAlwSFlzAAALEgAACxIB0t1+/AAAAKdJREFUeNpj/M9AHGAiUh3xClmwijJCaSR3Ud/qUYWjCklTyIHEhifctw8ePHgCxO+B7L9QMQlsChW+QOiX4gwMd6BiItisVoHSB6AYWQwM/kNBBszkC/9PwKyc8B8B4Ar3YPHMHWwK/xtgqAv4j1XhEfScK/EEu8L/a1BVStz4j0Ph/yPItoe8QFH3nxGlkNq75cKDB0DDVBwitNEcwjhwpdmoQrwAAN6ioiFapgUdAAAAAElFTkSuQmCC', - 'K' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHAEoFhGpAAAAB3RJTUUH0wUOEDANzZDVXAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAPZJREFUeNpj/M9AHGAiUt2owgFSyAgFMOGDrDARxkKo0H8wYEDh/b/AAzepACqEVeEdCQx1WBW+0ICry/mPR+EXE7i6kD94FP5xwaYOi8IIrOowFRbA1Xkgq8NQ2ANXZ/PlPx6FS3CpQ1fIAmOIoKn7jxbXf2CMNxvQIxvVRAQQ+YDXaiSQQqxChiOEFGoIQGidP/gVStxogLI68CqUuPH/BzSVcTzAoxCo7v//ObBIxK0QrO7/H1iCXIFT4QkIFxbaMh9wKYQJO0D5OYQUnoDF/QkCCuHJ1+APAYV3YOloAgGF8JTO84SAwjfQiGQIgPAZqV4rAACnKSarzdlc4gAAAABJRU5ErkJggg==', - 'L' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHA64qQw4AAAAB3RJTUUH0wUOEDAXMPIsJgAAAAlwSFlzAAALEgAACxIB0t1+/AAAADlJREFUeNpj/M9AHGAiUt2QUMiCYDJCaezhMBQ8M6pwVCEdFLJgCjEisRH5Zyh4hvoKGUdkQUq0QgARaARRV9jUFQAAAABJRU5ErkJggg==', - 'M' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHBhMfblpAAAAB3RJTUUH0wUOEDAqaJpgNwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAPNJREFUeNrdlK0OgzAUhS8bCQYxMYmcmEAgEAgejQfZQyG2pAIxOYlATkAu691o2tvSYia2iv7lyzn3NG0jhG1tt5H7Aggom7ZuaKPhBFqKV+pFWDGjjcxStEAYXuvBkrKtoVX+gdRiK9i6sxjgeVGUMJzWwZLACaZOTqoAOAronmrlBuvPkQsIgHn8BqnE2AMmhaaYJ57jqTRFMwsDyW249XaJLhAujizm7UFM5XCUXTqiTvBLQYWRc7H3WWt+3NmlyGbOGh9q/45mjQxUb+CA6A2jSqu5MweX0ooQWLJxLYx6fz0GwmBOsww5GP3At/dX4Ayb7qpFI9y5ygAAAABJRU5ErkJggg==', - 'N' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHC6DxyzwAAAAB3RJTUUH0wUOEDAye/b4YQAAAAlwSFlzAAALEgAACxIB0t1+/AAAALRJREFUeNpj/M9AHGAiUt0IV8gIARsRMlAROP8/BEB5Ii/+/0cVgXNRhRk8iFXIMIFYhRxXiFTIYPCDSIUMBcQqZNhDrEKZN0QqZAggViHDHIIKRSAUzx1CCrdAaZM/BBT+z4Eyaggp/KEDYbAcIaDw/wUWCEuBkML/PagBgFvhfxdiFT4RIVLh/zXEKvyfQqzCLypEKvx/hoVIhf9biFX4x4ZIhf8fCBCp8P8KNBHG4VQ0AwDEOyeZhO5p1AAAAABJRU5ErkJggg==', - 'O' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHQExDSDoAAAAB3RJTUUH0wUOEDA4myMRfwAAAAlwSFlzAAALEgAACxIB0t1+/AAAATtJREFUeNpj/M9AHGAiUt3wUsiCyv265ciZJ08YGGRkDGwCuFGk/iOBDwU8SDIcGS+Q5JAV7hBBs45nAVaFC1gwXTYBi8IdWNQxMCzAUPhBBJs6Bp4n6AoLYFI6az78f7NEB8ZNQFP4QwAqEfADwg+A+f0NqsI1UHGBDzCnSKC6EhYzB6B0Cj+UwZ+CKgNTeAZKu8C94QGlL6DGjAyU+wAeXC+gIiIQLiM0KzDC9CFCBlWICsnsL3aFMDc+hcs8QZWBKYSF2g24whvYFZpA6T1whUegNCwyoYGxAmYyLGZ+wOxYghqFX2BpO+APmP8nBspHj2uk1LPizf8PGyxgXPTUQ3x6JDqF//8/AYs6bHkGmCYF0O3FnguBCSaFA0kZS8IDJDlG1IIUVFK8eABMWzI6DgHCyDKMI7LEBQCD5YgI9wbKGgAAAABJRU5ErkJggg==', - 'P' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHQvR2Mn2AAAAB3RJTUUH0wUOEDEDMzPJGgAAAAlwSFlzAAALEgAACxIB0t1+/AAAAKVJREFUeNpj/M9AHGAiUh05ChlRAKdu4k5Ulf9hANMQiwf/EQCfQgaJB0QqZHAhViHDEbg0AV8vwRM8QN0v5vBAOSfw+BrMWQDl8MClGeEKGGEKQcRXHmQemTGD1RMy+N14o4MDyvGAS7NgGMaIzPHAYyIy4HhBZMy0EBmFIX+IUsjRgqQOi2fAgEVBwyVGGEUEQw2O3EbLzDWSFDIOhtJsVCEWAAC/Yt2X+2PYcgAAAABJRU5ErkJggg==', - 'Q' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHRxSC0wxAAAAB3RJTUUH0wUOEDEKSu9xvgAAAAlwSFlzAAALEgAACxIB0t1+/AAAAW1JREFUeNpj/M9AHGAiUt2QUMiCzPm65cCZF08YGGRkDBx8uNFU/oeDDwU8SOIcBS/+IwOEwh0iaEYIrMCqcA4LprsmYFG4A4s6BoYFGAo/iGBTx8DzAl1hAUxKZ8WH/29W6MC4KWgKfwhAJXx+gPl/QmB+/4KqcANUXOQDVPiLBFRkCUwhJGb2wGzihzK4U6CMA6hReAbKc4F7wwFKX0CNGRkoB+HJJ1ARGZgAIziFM8J0IUIGXYjMZPaXkEJYYDyBiz+EuRFVoQKUdwWIz6qWvmRguAMVkUBVaIIUalPu9GgshIefAWrwrIHp//L/DQc4KjFiBi2uQ/7832KB5AX0uP5fAZOx2PDhfwNCIXrq+f9BhgEb4HmCkcL3YE3hSHkBnmfWYFMpsoaYXAgGDgcwFKLlaxYOCG2DqRCYrldkmIACUMIgZsaTI5Cg3IBNISp4AoovlT+EFf7/kYPkb3wK//8/YAGPGcYhUIYDAHBC9Yak1w7iAAAAAElFTkSuQmCC', - 'R' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHSkEuIgSAAAAB3RJTUUH0wUOEDEUsOBM3QAAAAlwSFlzAAALEgAACxIB0t1+/AAAAOZJREFUeNpj/M9AHGAiUh0NFLJAaUY0YRkJHYcQdmSh/xCAzRCZHf8RAJ9CBpYNRCpkEHgBV4jfMx+mEOVGIDDAaTWY82aPBZTLgV8hUCkaH6cbP8B8gxHgyODjgwstMDfiVIgWQyFE+lrhB3EBznOFuJgxuUFMXPPEbPmDpA53FH55osKMIoAe4F826MDMvPMfj9WgWFGBBeIf/Ar/H4FxJhBQ+B8WzCIfCCi8A4uvBgIK/2fA/POCgMIXHFBuDqH02ABLM3cIKPwgAuVHEFD4fwJM4AIBhT9goe4AFWAcAsXesFIIAEvJyZHTCSiTAAAAAElFTkSuQmCC', - 'S' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHTRnvuTLAAAAB3RJTUUH0wUOEDEbIF9RTAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAVZJREFUeNpj/M9AHGAiUt2oQvyABYX398CWK3de/GBgkVEw8HFgRpH7jwSWqCDLyCxAlkNS+CcG3boY7AozMB3Wgk3hGSw+4HgBl0b4egIWhT9mYPGMBFQg4MH/D2tgvrKASzPC0yMjlP7CDSTOmrDIMDDwiHBsxzSRBypw5j9WgFDoAPNAxIQjX/ApXIDsC4OCLV9wKfzjwIACOEIO4IiZFxbooePzAqvC/z9qONBUStzAqvD//zc9BqgqNX5gVwgETxbkmCClvSk4FYLdsCMCptAGI2YSGV78+PLmz5MX4mDu1ByIMM9n9JiBxe4caGChy8MZMMsUIEFyAMoVwVC4BGaEwpI3/9/MEYGlJQyFPwQYsIE1mL7GlnCR0iNSXLtgqpO4gy1mvtigq1NAxCBKgP9pEUFWxlOCnNIYUYrmn3v23Ljx5gsw88sYOPhwI0sxDoEyHAABtSc836a1EQAAAABJRU5ErkJggg==', - 'T' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHgUdTbcyAAAAB3RJTUUH0wUOEDEgkVS4aAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADdJREFUeNpj/M9AHGAiUt0IVcgCpRlxyMODeSh4hmiFjGipB+Z7jEQ1FDwzqnBU4WBSyDicimYAb/AFTaJpyH8AAAAASUVORK5CYII=', - 'U' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHhEHl2NPAAAAB3RJTUUH0wUOEDEon48wWgAAAAlwSFlzAAALEgAACxIB0t1+/AAAAKlJREFUeNpj/M9AHGAiUh3xClmgNCOUhrsEXYD6Vo8qHFVIuUIVKP0USr+E0jLoCjWg9A4ovQVNHJjUIaADZsILMPeFApRfA5X/D1N4AaZRYc6b/2+WwNQxXEBX+N8Bqxcc/mMoPMGCRR3LBUyF/2dgUTjjPxaF/6egm8ky5T9Whf9P2KCoMziBJPefEaWQurjnzIMXL34wsMhoWHiYo2hjHLjSbFQhXgAAKzejCLAOcVMAAAAASUVORK5CYII=', - 'V' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHh/gL05IAAAAB3RJTUUH0wUOEDEuduyVbwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAVNJREFUeNpj/M9AHGAiUt2owoFRaMgIAYlIMqlQMUMo/z8ITIByRP78hwMRqNgECBei8AULVPQIXN0RqAjLGwgfYrW4B1R4DdzmLVDaQxjZ6v8roDwVuIkqMK3/ka3+/0MAKn4FKn4D5uof/5GtZmCPgEpsQHNDBDsDitVwt5tA+RZQ/pn/qFYj3PQEzHsC5WnA3QyPmQQU3+5AE0VYDTfDBcxzgQbik/8YVv93gMp9AbK/cEAD8T+m1TBb/oD8veEHhs0IE2GmxADZMRAmz4//WKxGkv3DA2Gm/MeqcA/Ujj1w1hHsCv/LQKQz/megRzyawgqIvAxMRwsuhbCEAEvGT3AphEUwNCU5IEv9R8lcUH9/wAxE5HAEgjccSBI8X3CbKOyBxAnhxm3i/w1IEgdQZFA98/+PCFydDKo6VKsZmGPQ0wgOq/+fgYvfQTORkeq1AgCIAvD7+THsDgAAAABJRU5ErkJggg==', - 'W' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QFhZRKnzkAAAAB3RJTUUH0wUOEDIR66frkQAAAAlwSFlzAAALEgAACxIB0t1+/AAAAXNJREFUeNrtlK1ywkAUhZdMZsJMKyIqKhAIBAKBiEBEVCDyCJV9iIo+Do9QGRERgUBEVCAqKhAIREVERURnTvfn3t27xSA6g+kOQ/ZkP/aec5NlBHXZSC7k/sE/AhUwoVkDPQ58/2RUQ2IC6B1XpN7MV8tg62/pUdjSDO7OwR2J0pbekpqZYlMG50bNSGwBDQ4pyV5YtCZ7mqZf1mO2IN2Jynba0XRx49pThjQCbEKWFfVRpIlBzlK4PuLdpxEWlTr4LHvYMEDOaTYS3HCW3DAJt8mmaSXYchZbOfEzkyYGZRbrEbX8qe7GMpLqFeyxV9F4fon1pwcxjxbqJpJTBPBJLoyHYSz1I3xq78aOMssepHZZHFjKhbX9/AZd6e9bsdABeyHTQXiE2PLO6PugCwiP/r1QVLYSlpXwKE1Wno7b7jY+hoWj0aegPyA9+jPrzgqwZJ0j8hhMVtElmDoD19FFPAvamc+sOXBm+KdYEzC63p/9D7Tr72kj/8qjAAAAAElFTkSuQmCC', - 'X' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHi/G9n7kAAAAB3RJTUUH0wUOEDIXAsROpAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAT9JREFUeNpj/M9AHGAiUt3IVhjKCAFr4RJroSKBMIH/YPBEAMITeQLh//8gAxHggQlAFf6fAdXnA+WnQPkT/qMp/O8AlVkA5h2A8kz+YCi8wQGREngA5PxQgXBYzvzHUPi/A2qIA5BdAmUX/Mei8I8BVHbK/wssEJbMB2wK/5+ASvPcgGlZ8x+rQriFAmghgKHwiwJKXPA8wKXw/x4UhT3/cSr8n4CkzuAPHoVvRODqWE6gyPxHTT1ffiAUCjCgAhRtDkgSFnisnoJixAScCh/wEBk8DmiucsChcA5MQQSMMQWrQlgiZ0iAByey5QiFPlBZnS//v+hgxjZc4QKYKVeAnCswby3AUAi3eAGKNoEn6Ap94A5EjXUfNIUrEA6EALgzl6AohCUGsAMhAOZMkTfICkMw3I5wZgiEyzicimYAFRFkVwgDfJ0AAAAASUVORK5CYII=', - 'Y' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHjkyIsu1AAAAB3RJTUUH0wUOEDIkvRQvsgAAAAlwSFlzAAALEgAACxIB0t1+/AAAANJJREFUeNrt1L0NgzAQBWAcUVB6AAZgBAoKhmAICoZgCAoKxmAECkbwABSUlBRILwF8duwYhFJEihJ37+6T5T9g8K6N20X3FdDDNjKKOeTIqZLtWcKBU73bCx1lPhgQNTWieY1zRLmGCZFQp1xTSSmBDUUgW754BF+GQLxAPUkMxMb0FlzUsqpKLXhxQPRqo+oIerggCvuMC7jhFJounA4gWhO2OIL6Jp/uzglHrh0fTyAaDRucQaTkUpxDQVBYDWZ/hYze6bsv/A8/DNlP/kgvwzuer4kCMGPZDgAAAABJRU5ErkJggg==', - 'Z' => 'iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAAAAACpleexAAAAFXRFWHRDcmVhdGlvbiBUaW1lAAfTBQ4QHwfqWOdfAAAAB3RJTUUH0wUOEDIrLasyIwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAL5JREFUeNrl1C0OwkAQBWCWQIJEVPQIFT0GAlHBMRBIBKIHqahAIDlERY9R0UOs3ORh5qVLunmp5GfUZvczbzKzDqtltV7ofgtueHCp16h33xBGwn0KYqoTO/J868Csaj418e0cPujOkLDfmTsECcfcXOGhoC/NZQMUDBUDd5DwxiAtJGzprpCw48xVQcIhM1d6KOgLc/kIBcORgXtIeGGQOyRs6Oq0g7P92YbkRE7bRZhcwhh+6nLF5f7yx30B8Z7FgxzMWtEAAAAASUVORK5CYII=', - ); - - return $_png; -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/usercp_email.php b/phpBB2_old/includes/usercp_email.php deleted file mode 100644 index c79dbcc..0000000 --- a/phpBB2_old/includes/usercp_email.php +++ /dev/null @@ -1,210 +0,0 @@ -sql_query($sql) ) -{ - $row = $db->sql_fetchrow($result); - - $username = $row['username']; - $user_email = $row['user_email']; - $user_lang = $row['user_lang']; - - if ( $row['user_viewemail'] || $userdata['user_level'] == ADMIN ) - { - if ( time() - $userdata['user_emailtime'] < $board_config['flood_interval'] ) - { - message_die(GENERAL_MESSAGE, $lang['Flood_email_limit']); - } - - if ( isset($HTTP_POST_VARS['submit']) ) - { - $error = FALSE; - - if ( !empty($HTTP_POST_VARS['subject']) ) - { - $subject = trim(stripslashes($HTTP_POST_VARS['subject'])); - } - else - { - $error = TRUE; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
    ' . $lang['Empty_subject_email'] : $lang['Empty_subject_email']; - } - - if ( !empty($HTTP_POST_VARS['message']) ) - { - $message = trim(stripslashes($HTTP_POST_VARS['message'])); - } - else - { - $error = TRUE; - $error_msg = ( !empty($error_msg) ) ? $error_msg . '
    ' . $lang['Empty_message_email'] : $lang['Empty_message_email']; - } - - if ( !$error ) - { - $sql = "UPDATE " . USERS_TABLE . " - SET user_emailtime = " . time() . " - WHERE user_id = " . $userdata['user_id']; - if ( $result = $db->sql_query($sql) ) - { - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($userdata['user_email']); - $emailer->replyto($userdata['user_email']); - - $email_headers = 'X-AntiAbuse: Board servername - ' . $server_name . "\n"; - $email_headers .= 'X-AntiAbuse: User_id - ' . $userdata['user_id'] . "\n"; - $email_headers .= 'X-AntiAbuse: Username - ' . $userdata['username'] . "\n"; - $email_headers .= 'X-AntiAbuse: User IP - ' . decode_ip($user_ip) . "\n"; - - $emailer->use_template('profile_send_email', $user_lang); - $emailer->email_address($user_email); - $emailer->set_subject($subject); - $emailer->extra_headers($email_headers); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'BOARD_EMAIL' => $board_config['board_email'], - 'FROM_USERNAME' => $userdata['username'], - 'TO_USERNAME' => $username, - 'MESSAGE' => $message) - ); - $emailer->send(); - $emailer->reset(); - - if ( !empty($HTTP_POST_VARS['cc_email']) ) - { - $emailer->from($userdata['user_email']); - $emailer->replyto($userdata['user_email']); - $emailer->use_template('profile_send_email'); - $emailer->email_address($userdata['user_email']); - $emailer->set_subject($subject); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'BOARD_EMAIL' => $board_config['board_email'], - 'FROM_USERNAME' => $userdata['username'], - 'TO_USERNAME' => $username, - 'MESSAGE' => $message) - ); - $emailer->send(); - $emailer->reset(); - } - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Email_sent'] . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - message_die(GENERAL_ERROR, 'Could not update last email time', '', __LINE__, __FILE__, $sql); - } - } - } - - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'body' => 'profile_send_email.tpl') - ); - make_jumpbox('viewforum.'.$phpEx); - - if ( $error ) - { - $template->set_filenames(array( - 'reg_header' => 'error_body.tpl') - ); - $template->assign_vars(array( - 'ERROR_MESSAGE' => $error_msg) - ); - $template->assign_var_from_handle('ERROR_BOX', 'reg_header'); - } - - $template->assign_vars(array( - 'USERNAME' => $username, - - 'S_HIDDEN_FIELDS' => '', - 'S_POST_ACTION' => append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL . "=$user_id"), - - 'L_SEND_EMAIL_MSG' => $lang['Send_email_msg'], - 'L_RECIPIENT' => $lang['Recipient'], - 'L_SUBJECT' => $lang['Subject'], - 'L_MESSAGE_BODY' => $lang['Message_body'], - 'L_MESSAGE_BODY_DESC' => $lang['Email_message_desc'], - 'L_EMPTY_SUBJECT_EMAIL' => $lang['Empty_subject_email'], - 'L_EMPTY_MESSAGE_EMAIL' => $lang['Empty_message_email'], - 'L_OPTIONS' => $lang['Options'], - 'L_CC_EMAIL' => $lang['CC_email'], - 'L_SPELLCHECK' => $lang['Spellcheck'], - 'L_SEND_EMAIL' => $lang['Send_email']) - ); - - $template->pparse('body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } - else - { - message_die(GENERAL_MESSAGE, $lang['User_prevent_email']); - } -} -else -{ - message_die(GENERAL_MESSAGE, $lang['User_not_exist']); -} - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/usercp_register.php b/phpBB2_old/includes/usercp_register.php deleted file mode 100644 index f9643a1..0000000 --- a/phpBB2_old/includes/usercp_register.php +++ /dev/null @@ -1,1137 +0,0 @@ -', '<', '"', '&'); - -// --------------------------------------- -// Load agreement template since user has not yet -// agreed to registration conditions/coppa -// -function show_coppa() -{ - global $userdata, $template, $lang, $phpbb_root_path, $phpEx; - - $template->set_filenames(array( - 'body' => 'agreement.tpl') - ); - - $template->assign_vars(array( - 'REGISTRATION' => $lang['Registration'], - 'AGREEMENT' => $lang['Reg_agreement'], - "AGREE_OVER_13" => $lang['Agree_over_13'], - "AGREE_UNDER_13" => $lang['Agree_under_13'], - 'DO_NOT_AGREE' => $lang['Agree_not'], - - "U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&agreed=true"), - "U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true")) - ); - - $template->pparse('body'); - -} -// -// --------------------------------------- - -$error = FALSE; -$page_title = ( $mode == 'editprofile' ) ? $lang['Edit_profile'] : $lang['Register']; - -if ( $mode == 'register' && !isset($HTTP_POST_VARS['agreed']) && !isset($HTTP_GET_VARS['agreed']) ) -{ - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - show_coppa(); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); -} - -$coppa = ( empty($HTTP_POST_VARS['coppa']) && empty($HTTP_GET_VARS['coppa']) ) ? 0 : TRUE; - -// -// Check and initialize some variables if needed -// -if ( - isset($HTTP_POST_VARS['submit']) || - isset($HTTP_POST_VARS['avatargallery']) || - isset($HTTP_POST_VARS['submitavatar']) || - isset($HTTP_POST_VARS['cancelavatar']) || - $mode == 'register' ) -{ - include($phpbb_root_path . 'includes/functions_validate.'.$phpEx); - include($phpbb_root_path . 'includes/bbcode.'.$phpEx); - include($phpbb_root_path . 'includes/functions_post.'.$phpEx); - - if ( $mode == 'editprofile' ) - { - $user_id = intval($HTTP_POST_VARS['user_id']); - $current_email = trim(htmlspecialchars($HTTP_POST_VARS['current_email'])); - } - - $strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests'); - $strip_var_list['confirm_code'] = 'confirm_code'; - - // Strip all tags from data ... may p**s some people off, bah, strip_tags is - // doing the job but can still break HTML output ... have no choice, have - // to use htmlspecialchars ... be prepared to be moaned at. - while( list($var, $param) = @each($strip_var_list) ) - { - if ( !empty($HTTP_POST_VARS[$param]) ) - { - $$var = trim(htmlspecialchars($HTTP_POST_VARS[$param])); - } - } - - $trim_var_list = array('cur_password' => 'cur_password', 'new_password' => 'new_password', 'password_confirm' => 'password_confirm', 'signature' => 'signature'); - - while( list($var, $param) = @each($trim_var_list) ) - { - if ( !empty($HTTP_POST_VARS[$param]) ) - { - $$var = trim($HTTP_POST_VARS[$param]); - } - } - - $signature = str_replace('
    ', "\n", $signature); - - // Run some validation on the optional fields. These are pass-by-ref, so they'll be changed to - // empty strings if they fail. - validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature); - - $viewemail = ( isset($HTTP_POST_VARS['viewemail']) ) ? ( ($HTTP_POST_VARS['viewemail']) ? TRUE : 0 ) : 0; - $allowviewonline = ( isset($HTTP_POST_VARS['hideonline']) ) ? ( ($HTTP_POST_VARS['hideonline']) ? 0 : TRUE ) : TRUE; - $notifyreply = ( isset($HTTP_POST_VARS['notifyreply']) ) ? ( ($HTTP_POST_VARS['notifyreply']) ? TRUE : 0 ) : 0; - $notifypm = ( isset($HTTP_POST_VARS['notifypm']) ) ? ( ($HTTP_POST_VARS['notifypm']) ? TRUE : 0 ) : TRUE; - $popup_pm = ( isset($HTTP_POST_VARS['popup_pm']) ) ? ( ($HTTP_POST_VARS['popup_pm']) ? TRUE : 0 ) : TRUE; - - if ( $mode == 'register' ) - { - $attachsig = ( isset($HTTP_POST_VARS['attachsig']) ) ? ( ($HTTP_POST_VARS['attachsig']) ? TRUE : 0 ) : $board_config['allow_sig']; - - $allowhtml = ( isset($HTTP_POST_VARS['allowhtml']) ) ? ( ($HTTP_POST_VARS['allowhtml']) ? TRUE : 0 ) : $board_config['allow_html']; - $allowbbcode = ( isset($HTTP_POST_VARS['allowbbcode']) ) ? ( ($HTTP_POST_VARS['allowbbcode']) ? TRUE : 0 ) : $board_config['allow_bbcode']; - $allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies']) ) ? ( ($HTTP_POST_VARS['allowsmilies']) ? TRUE : 0 ) : $board_config['allow_smilies']; - } - else - { - $attachsig = ( isset($HTTP_POST_VARS['attachsig']) ) ? ( ($HTTP_POST_VARS['attachsig']) ? TRUE : 0 ) : 0; - - $allowhtml = ( isset($HTTP_POST_VARS['allowhtml']) ) ? ( ($HTTP_POST_VARS['allowhtml']) ? TRUE : 0 ) : $userdata['user_allowhtml']; - $allowbbcode = ( isset($HTTP_POST_VARS['allowbbcode']) ) ? ( ($HTTP_POST_VARS['allowbbcode']) ? TRUE : 0 ) : $userdata['user_allowbbcode']; - $allowsmilies = ( isset($HTTP_POST_VARS['allowsmilies']) ) ? ( ($HTTP_POST_VARS['allowsmilies']) ? TRUE : 0 ) : $userdata['user_allowsmile']; - } - - $user_style = ( isset($HTTP_POST_VARS['style']) ) ? intval($HTTP_POST_VARS['style']) : $board_config['default_style']; - - if ( !empty($HTTP_POST_VARS['language']) ) - { - if ( preg_match('/^[a-z_]+$/i', $HTTP_POST_VARS['language']) ) - { - $user_lang = htmlspecialchars($HTTP_POST_VARS['language']); - } - else - { - $error = true; - $error_msg = $lang['Fields_empty']; - } - } - else - { - $user_lang = $board_config['default_lang']; - } - - $user_timezone = ( isset($HTTP_POST_VARS['timezone']) ) ? doubleval($HTTP_POST_VARS['timezone']) : $board_config['board_timezone']; - - $sql = "SELECT config_value - FROM " . CONFIG_TABLE . " - WHERE config_name = 'default_dateformat'"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select default dateformat', '', __LINE__, __FILE__, $sql); - } - $row = $db->sql_fetchrow($result); - $board_config['default_dateformat'] = $row['config_value']; - $user_dateformat = ( !empty($HTTP_POST_VARS['dateformat']) ) ? trim(htmlspecialchars($HTTP_POST_VARS['dateformat'])) : $board_config['default_dateformat']; - - $user_avatar_local = ( isset($HTTP_POST_VARS['avatarselect']) && !empty($HTTP_POST_VARS['submitavatar']) && $board_config['allow_avatar_local'] ) ? htmlspecialchars($HTTP_POST_VARS['avatarselect']) : ( ( isset($HTTP_POST_VARS['avatarlocal']) ) ? htmlspecialchars($HTTP_POST_VARS['avatarlocal']) : '' ); - - $user_avatar_remoteurl = ( !empty($HTTP_POST_VARS['avatarremoteurl']) ) ? trim(htmlspecialchars($HTTP_POST_VARS['avatarremoteurl'])) : ''; - $user_avatar_upload = ( !empty($HTTP_POST_VARS['avatarurl']) ) ? trim($HTTP_POST_VARS['avatarurl']) : ( ( $HTTP_POST_FILES['avatar']['tmp_name'] != "none") ? $HTTP_POST_FILES['avatar']['tmp_name'] : '' ); - $user_avatar_name = ( !empty($HTTP_POST_FILES['avatar']['name']) ) ? $HTTP_POST_FILES['avatar']['name'] : ''; - $user_avatar_size = ( !empty($HTTP_POST_FILES['avatar']['size']) ) ? $HTTP_POST_FILES['avatar']['size'] : 0; - $user_avatar_filetype = ( !empty($HTTP_POST_FILES['avatar']['type']) ) ? $HTTP_POST_FILES['avatar']['type'] : ''; - - $user_avatar = ( empty($user_avatar_loc) && $mode == 'editprofile' ) ? $userdata['user_avatar'] : ''; - $user_avatar_type = ( empty($user_avatar_loc) && $mode == 'editprofile' ) ? $userdata['user_avatar_type'] : ''; - - if ( (isset($HTTP_POST_VARS['avatargallery']) || isset($HTTP_POST_VARS['submitavatar']) || isset($HTTP_POST_VARS['cancelavatar'])) && (!isset($HTTP_POST_VARS['submit'])) ) - { - $username = stripslashes($username); - $email = stripslashes($email); - $cur_password = htmlspecialchars(stripslashes($cur_password)); - $new_password = htmlspecialchars(stripslashes($new_password)); - $password_confirm = htmlspecialchars(stripslashes($password_confirm)); - - $icq = stripslashes($icq); - $aim = stripslashes($aim); - $msn = stripslashes($msn); - $yim = stripslashes($yim); - - $website = stripslashes($website); - $location = stripslashes($location); - $occupation = stripslashes($occupation); - $interests = stripslashes($interests); - $signature = stripslashes($signature); - - $user_lang = stripslashes($user_lang); - $user_dateformat = stripslashes($user_dateformat); - - if ( !isset($HTTP_POST_VARS['cancelavatar'])) - { - $user_avatar = $user_avatar_local; - $user_avatar_type = USER_AVATAR_GALLERY; - } - } -} - -// -// Let's make sure the user isn't logged in while registering, -// and ensure that they were trying to register a second time -// (Prevents double registrations) -// -if ($mode == 'register' && ($userdata['session_logged_in'] || $username == $userdata['username'])) -{ - message_die(GENERAL_MESSAGE, $lang['Username_taken'], '', __LINE__, __FILE__); -} - -// -// Did the user submit? In this case build a query to update the users profile in the DB -// -if ( isset($HTTP_POST_VARS['submit']) ) -{ - include($phpbb_root_path . 'includes/usercp_avatar.'.$phpEx); - - $passwd_sql = ''; - if ( $mode == 'editprofile' ) - { - if ( $user_id != $userdata['user_id'] ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Wrong_Profile']; - } - } - else if ( $mode == 'register' ) - { - if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Fields_empty']; - } - } - - if ($board_config['enable_confirm'] && $mode == 'register') - { - if (empty($HTTP_POST_VARS['confirm_id'])) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Confirm_code_wrong']; - } - else - { - $confirm_id = htmlspecialchars($HTTP_POST_VARS['confirm_id']); - if (!preg_match('/^[A-Za-z0-9]+$/', $confirm_id)) - { - $confirm_id = ''; - } - - $sql = 'SELECT code - FROM ' . CONFIRM_TABLE . " - WHERE confirm_id = '$confirm_id' - AND session_id = '" . $userdata['session_id'] . "'"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not obtain confirmation code', __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - if ($row['code'] != $confirm_code) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Confirm_code_wrong']; - } - else - { - $sql = 'DELETE FROM ' . CONFIRM_TABLE . " - WHERE confirm_id = '$confirm_id' - AND session_id = '" . $userdata['session_id'] . "'"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Could not delete confirmation code', __LINE__, __FILE__, $sql); - } - } - } - else - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Confirm_code_wrong']; - } - $db->sql_freeresult($result); - } - } - - $passwd_sql = ''; - if ( !empty($new_password) && !empty($password_confirm) ) - { - if ( $new_password != $password_confirm ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Password_mismatch']; - } - else if ( strlen($new_password) > 32 ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Password_long']; - } - else - { - if ( $mode == 'editprofile' ) - { - $sql = "SELECT user_password - FROM " . USERS_TABLE . " - WHERE user_id = $user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user_password information', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - - if ( $row['user_password'] != md5($cur_password) ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Current_password_mismatch']; - } - } - - if ( !$error ) - { - $new_password = md5($new_password); - $passwd_sql = "user_password = '$new_password', "; - } - } - } - else if ( ( empty($new_password) && !empty($password_confirm) ) || ( !empty($new_password) && empty($password_confirm) ) ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Password_mismatch']; - } - - // - // Do a ban check on this email address - // - if ( $email != $userdata['user_email'] || $mode == 'register' ) - { - $result = validate_email($email); - if ( $result['error'] ) - { - $email = $userdata['user_email']; - - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $result['error_msg']; - } - - if ( $mode == 'editprofile' ) - { - $sql = "SELECT user_password - FROM " . USERS_TABLE . " - WHERE user_id = $user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user_password information', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrow($result); - - if ( $row['user_password'] != md5($cur_password) ) - { - $email = $userdata['user_email']; - - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Current_password_mismatch']; - } - } - } - - $username_sql = ''; - if ( $board_config['allow_namechange'] || $mode == 'register' ) - { - if ( empty($username) ) - { - // Error is already triggered, since one field is empty. - $error = TRUE; - } - else if ( $username != $userdata['username'] || $mode == 'register' ) - { - if (strtolower($username) != strtolower($userdata['username'])) - { - $result = validate_username($username); - if ( $result['error'] ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $result['error_msg']; - } - } - - if (!$error) - { - $username_sql = "username = '" . str_replace("\'", "''", $username) . "', "; - } - } - } - - if ( $signature != '' ) - { - if ( strlen($signature) > $board_config['max_sig_chars'] ) - { - $error = TRUE; - $error_msg .= ( ( isset($error_msg) ) ? '
    ' : '' ) . $lang['Signature_too_long']; - } - - if ( $signature_bbcode_uid == '' ) - { - $signature_bbcode_uid = ( $allowbbcode ) ? make_bbcode_uid() : ''; - } - $signature = prepare_message($signature, $allowhtml, $allowbbcode, $allowsmilies, $signature_bbcode_uid); - } - - if ( $website != '' ) - { - rawurlencode($website); - } - - $avatar_sql = ''; - - if ( isset($HTTP_POST_VARS['avatardel']) && $mode == 'editprofile' ) - { - $avatar_sql = user_avatar_delete($userdata['user_avatar_type'], $userdata['user_avatar']); - } - - if ( ( !empty($user_avatar_upload) || !empty($user_avatar_name) ) && $board_config['allow_avatar_upload'] ) - { - if ( !empty($user_avatar_upload) ) - { - $avatar_mode = ( !empty($user_avatar_name) ) ? 'local' : 'remote'; - $avatar_sql = user_avatar_upload($mode, $avatar_mode, $userdata['user_avatar'], $userdata['user_avatar_type'], $error, $error_msg, $user_avatar_upload, $user_avatar_name, $user_avatar_size, $user_avatar_filetype); - } - else if ( !empty($user_avatar_name) ) - { - $l_avatar_size = sprintf($lang['Avatar_filesize'], round($board_config['avatar_filesize'] / 1024)); - - $error = true; - $error_msg .= ( ( !empty($error_msg) ) ? '
    ' : '' ) . $l_avatar_size; - } - } - else if ( $user_avatar_remoteurl != '' && $board_config['allow_avatar_remote'] ) - { - if ( @file_exists(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $userdata['user_avatar'])) ) - { - @unlink(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $userdata['user_avatar'])); - } - $avatar_sql = user_avatar_url($mode, $error, $error_msg, $user_avatar_remoteurl); - } - else if ( $user_avatar_local != '' && $board_config['allow_avatar_local'] ) - { - if ( @file_exists(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $userdata['user_avatar'])) ) - { - @unlink(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $userdata['user_avatar'])); - } - $avatar_sql = user_avatar_gallery($mode, $error, $error_msg, $user_avatar_local); - } - - if ( !$error ) - { - if ( $avatar_sql == '' ) - { - $avatar_sql = ( $mode == 'editprofile' ) ? '' : "'', " . USER_AVATAR_NONE; - } - - if ( $mode == 'editprofile' ) - { - if ( $email != $userdata['user_email'] && $board_config['require_activation'] != USER_ACTIVATION_NONE && $userdata['user_level'] != ADMIN ) - { - $user_active = 0; - - $user_actkey = gen_rand_string(true); - $key_len = 54 - ( strlen($server_url) ); - $key_len = ( $key_len > 6 ) ? $key_len : 6; - $user_actkey = substr($user_actkey, 0, $key_len); - - if ( $userdata['session_logged_in'] ) - { - session_end($userdata['session_id'], $userdata['user_id']); - } - } - else - { - $user_active = 1; - $user_actkey = ''; - } - - $sql = "UPDATE " . USERS_TABLE . " - SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popup_pm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . " - WHERE user_id = $user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql); - } - - if ( !$user_active ) - { - // - // The users account has been deactivated, send them an email with a new activation key - // - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->use_template('user_activate', stripslashes($user_lang)); - $emailer->email_address($email); - $emailer->set_subject($lang['Reactivate']); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)), - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
    ', "\n", "-- \n" . $board_config['board_email_sig']) : '', - - 'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey) - ); - $emailer->send(); - $emailer->reset(); - - $message = $lang['Profile_updated_inactive'] . '

    ' . sprintf($lang['Click_return_index'], '', ''); - } - else - { - $message = $lang['Profile_updated'] . '

    ' . sprintf($lang['Click_return_index'], '', ''); - } - - $template->assign_vars(array( - "META" => '') - ); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - $sql = "SELECT MAX(user_id) AS total - FROM " . USERS_TABLE; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql); - } - - if ( !($row = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql); - } - $user_id = $row['total'] + 1; - - // - // Get current date - // - $sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey) - VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, "; - if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa ) - { - $user_actkey = gen_rand_string(true); - $key_len = 54 - (strlen($server_url)); - $key_len = ( $key_len > 6 ) ? $key_len : 6; - $user_actkey = substr($user_actkey, 0, $key_len); - $sql .= "0, '" . str_replace("\'", "''", $user_actkey) . "')"; - } - else - { - $sql .= "1, '')"; - } - - if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) ) - { - message_die(GENERAL_ERROR, 'Could not insert data into users table', '', __LINE__, __FILE__, $sql); - } - - $sql = "INSERT INTO " . GROUPS_TABLE . " (group_name, group_description, group_single_user, group_moderator) - VALUES ('', 'Personal User', 1, 0)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not insert data into groups table', '', __LINE__, __FILE__, $sql); - } - - $group_id = $db->sql_nextid(); - - $sql = "INSERT INTO " . USER_GROUP_TABLE . " (user_id, group_id, user_pending) - VALUES ($user_id, $group_id, 0)"; - if( !($result = $db->sql_query($sql, END_TRANSACTION)) ) - { - message_die(GENERAL_ERROR, 'Could not insert data into user_group table', '', __LINE__, __FILE__, $sql); - } - - if ( $coppa ) - { - $message = $lang['COPPA']; - $email_template = 'coppa_welcome_inactive'; - } - else if ( $board_config['require_activation'] == USER_ACTIVATION_SELF ) - { - $message = $lang['Account_inactive']; - $email_template = 'user_welcome_inactive'; - } - else if ( $board_config['require_activation'] == USER_ACTIVATION_ADMIN ) - { - $message = $lang['Account_inactive_admin']; - $email_template = 'admin_welcome_inactive'; - } - else - { - $message = $lang['Account_added']; - $email_template = 'user_welcome'; - } - - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->use_template($email_template, stripslashes($user_lang)); - $emailer->email_address($email); - $emailer->set_subject(sprintf($lang['Welcome_subject'], $board_config['sitename'])); - - if( $coppa ) - { - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'WELCOME_MSG' => sprintf($lang['Welcome_subject'], $board_config['sitename']), - 'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)), - 'PASSWORD' => $password_confirm, - 'EMAIL_SIG' => str_replace('
    ', "\n", "-- \n" . $board_config['board_email_sig']), - - 'FAX_INFO' => $board_config['coppa_fax'], - 'MAIL_INFO' => $board_config['coppa_mail'], - 'EMAIL_ADDRESS' => $email, - 'ICQ' => $icq, - 'AIM' => $aim, - 'YIM' => $yim, - 'MSN' => $msn, - 'WEB_SITE' => $website, - 'FROM' => $location, - 'OCC' => $occupation, - 'INTERESTS' => $interests, - 'SITENAME' => $board_config['sitename'])); - } - else - { - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'WELCOME_MSG' => sprintf($lang['Welcome_subject'], $board_config['sitename']), - 'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)), - 'PASSWORD' => $password_confirm, - 'EMAIL_SIG' => str_replace('
    ', "\n", "-- \n" . $board_config['board_email_sig']), - - 'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey) - ); - } - - $emailer->send(); - $emailer->reset(); - - if ( $board_config['require_activation'] == USER_ACTIVATION_ADMIN ) - { - $sql = "SELECT user_email, user_lang - FROM " . USERS_TABLE . " - WHERE user_level = " . ADMIN; - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not select Administrators', '', __LINE__, __FILE__, $sql); - } - - while ($row = $db->sql_fetchrow($result)) - { - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->email_address(trim($row['user_email'])); - $emailer->use_template("admin_activate", $row['user_lang']); - $emailer->set_subject($lang['New_account_subject']); - - $emailer->assign_vars(array( - 'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)), - 'EMAIL_SIG' => str_replace('
    ', "\n", "-- \n" . $board_config['board_email_sig']), - - 'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey) - ); - $emailer->send(); - $emailer->reset(); - } - $db->sql_freeresult($result); - } - - $message = $message . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } // if mode == register - } -} // End of submit - - -if ( $error ) -{ - // - // If an error occured we need to stripslashes on returned data - // - $username = stripslashes($username); - $email = stripslashes($email); - $new_password = ''; - $password_confirm = ''; - - $icq = stripslashes($icq); - $aim = str_replace('+', ' ', stripslashes($aim)); - $msn = stripslashes($msn); - $yim = stripslashes($yim); - - $website = stripslashes($website); - $location = stripslashes($location); - $occupation = stripslashes($occupation); - $interests = stripslashes($interests); - $signature = stripslashes($signature); - $signature = ($signature_bbcode_uid != '') ? preg_replace("/:(([a-z0-9]+:)?)$signature_bbcode_uid(=|\])/si", '\\3', $signature) : $signature; - - $user_lang = stripslashes($user_lang); - $user_dateformat = stripslashes($user_dateformat); - -} -else if ( $mode == 'editprofile' && !isset($HTTP_POST_VARS['avatargallery']) && !isset($HTTP_POST_VARS['submitavatar']) && !isset($HTTP_POST_VARS['cancelavatar']) ) -{ - $user_id = $userdata['user_id']; - $username = $userdata['username']; - $email = $userdata['user_email']; - $new_password = ''; - $password_confirm = ''; - - $icq = $userdata['user_icq']; - $aim = str_replace('+', ' ', $userdata['user_aim']); - $msn = $userdata['user_msnm']; - $yim = $userdata['user_yim']; - - $website = $userdata['user_website']; - $location = $userdata['user_from']; - $occupation = $userdata['user_occ']; - $interests = $userdata['user_interests']; - $signature_bbcode_uid = $userdata['user_sig_bbcode_uid']; - $signature = ($signature_bbcode_uid != '') ? preg_replace("/:(([a-z0-9]+:)?)$signature_bbcode_uid(=|\])/si", '\\3', $userdata['user_sig']) : $userdata['user_sig']; - - $viewemail = $userdata['user_viewemail']; - $notifypm = $userdata['user_notify_pm']; - $popup_pm = $userdata['user_popup_pm']; - $notifyreply = $userdata['user_notify']; - $attachsig = $userdata['user_attachsig']; - $allowhtml = $userdata['user_allowhtml']; - $allowbbcode = $userdata['user_allowbbcode']; - $allowsmilies = $userdata['user_allowsmile']; - $allowviewonline = $userdata['user_allow_viewonline']; - - $user_avatar = ( $userdata['user_allowavatar'] ) ? $userdata['user_avatar'] : ''; - $user_avatar_type = ( $userdata['user_allowavatar'] ) ? $userdata['user_avatar_type'] : USER_AVATAR_NONE; - - $user_style = $userdata['user_style']; - $user_lang = $userdata['user_lang']; - $user_timezone = $userdata['user_timezone']; - $user_dateformat = $userdata['user_dateformat']; -} - -// -// Default pages -// -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -make_jumpbox('viewforum.'.$phpEx); - -if ( $mode == 'editprofile' ) -{ - if ( $user_id != $userdata['user_id'] ) - { - $error = TRUE; - $error_msg = $lang['Wrong_Profile']; - } -} - -if( isset($HTTP_POST_VARS['avatargallery']) && !$error ) -{ - include($phpbb_root_path . 'includes/usercp_avatar.'.$phpEx); - - $avatar_category = ( !empty($HTTP_POST_VARS['avatarcategory']) ) ? htmlspecialchars($HTTP_POST_VARS['avatarcategory']) : ''; - - $template->set_filenames(array( - 'body' => 'profile_avatar_gallery.tpl') - ); - - $allowviewonline = !$allowviewonline; - - display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, &$new_password, &$cur_password, $password_confirm, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $viewemail, $notifypm, $popup_pm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat, $userdata['session_id']); -} -else -{ - include($phpbb_root_path . 'includes/functions_selects.'.$phpEx); - - if ( !isset($coppa) ) - { - $coppa = FALSE; - } - - if ( !isset($user_template) ) - { - $selected_template = $board_config['system_template']; - } - - $avatar_img = ''; - if ( $user_avatar_type ) - { - switch( $user_avatar_type ) - { - case USER_AVATAR_UPLOAD: - $avatar_img = ( $board_config['allow_avatar_upload'] ) ? '' : ''; - break; - case USER_AVATAR_REMOTE: - $avatar_img = ( $board_config['allow_avatar_remote'] ) ? '' : ''; - break; - case USER_AVATAR_GALLERY: - $avatar_img = ( $board_config['allow_avatar_local'] ) ? '' : ''; - break; - } - } - - $s_hidden_fields = ''; - if( $mode == 'editprofile' ) - { - $s_hidden_fields .= ''; - // - // Send the users current email address. If they change it, and account activation is turned on - // the user account will be disabled and the user will have to reactivate their account. - // - $s_hidden_fields .= ''; - } - - if ( !empty($user_avatar_local) ) - { - $s_hidden_fields .= ''; - } - - $html_status = ( $userdata['user_allowhtml'] && $board_config['allow_html'] ) ? $lang['HTML_is_ON'] : $lang['HTML_is_OFF']; - $bbcode_status = ( $userdata['user_allowbbcode'] && $board_config['allow_bbcode'] ) ? $lang['BBCode_is_ON'] : $lang['BBCode_is_OFF']; - $smilies_status = ( $userdata['user_allowsmile'] && $board_config['allow_smilies'] ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF']; - - if ( $error ) - { - $template->set_filenames(array( - 'reg_header' => 'error_body.tpl') - ); - $template->assign_vars(array( - 'ERROR_MESSAGE' => $error_msg) - ); - $template->assign_var_from_handle('ERROR_BOX', 'reg_header'); - } - - $template->set_filenames(array( - 'body' => 'profile_add_body.tpl') - ); - - if ( $mode == 'editprofile' ) - { - $template->assign_block_vars('switch_edit_profile', array()); - } - - if ( ($mode == 'register') || ($board_config['allow_namechange']) ) - { - $template->assign_block_vars('switch_namechange_allowed', array()); - } - else - { - $template->assign_block_vars('switch_namechange_disallowed', array()); - } - - - // Visual Confirmation - $confirm_image = ''; - if (!empty($board_config['enable_confirm']) && $mode == 'register') - { - $sql = 'SELECT session_id - FROM ' . SESSIONS_TABLE; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not select session data', '', __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - $confirm_sql = ''; - do - { - $confirm_sql .= (($confirm_sql != '') ? ', ' : '') . "'" . $row['session_id'] . "'"; - } - while ($row = $db->sql_fetchrow($result)); - - $sql = 'DELETE FROM ' . CONFIRM_TABLE . " - WHERE session_id NOT IN ($confirm_sql)"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Could not delete stale confirm data', '', __LINE__, __FILE__, $sql); - } - } - $db->sql_freeresult($result); - - $sql = 'SELECT COUNT(session_id) AS attempts - FROM ' . CONFIRM_TABLE . " - WHERE session_id = '" . $userdata['session_id'] . "'"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not obtain confirm code count', '', __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - if ($row['attempts'] > 3) - { - message_die(GENERAL_MESSAGE, $lang['Too_many_registers']); - } - } - $db->sql_freeresult($result); - - $confirm_chars = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9'); - - list($usec, $sec) = explode(' ', microtime()); - mt_srand($sec * $usec); - - $max_chars = count($confirm_chars) - 1; - $code = ''; - for ($i = 0; $i < 6; $i++) - { - $code .= $confirm_chars[mt_rand(0, $max_chars)]; - } - - $confirm_id = md5(uniqid($user_ip)); - - $sql = 'INSERT INTO ' . CONFIRM_TABLE . " (confirm_id, session_id, code) - VALUES ('$confirm_id', '". $userdata['session_id'] . "', '$code')"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Could not insert new confirm code information', '', __LINE__, __FILE__, $sql); - } - - unset($code); - - $confirm_image = (@extension_loaded('zlib')) ? '' : ''; - $s_hidden_fields .= ''; - - $template->assign_block_vars('switch_confirm', array()); - } - - - // - // Let's do an overall check for settings/versions which would prevent - // us from doing file uploads.... - // - $ini_val = ( phpversion() >= '4.0.0' ) ? 'ini_get' : 'get_cfg_var'; - $form_enctype = ( @$ini_val('file_uploads') == '0' || strtolower(@$ini_val('file_uploads') == 'off') || phpversion() == '4.0.4pl1' || !$board_config['allow_avatar_upload'] || ( phpversion() < '4.0.3' && @$ini_val('open_basedir') != '' ) ) ? '' : 'enctype="multipart/form-data"'; - - $template->assign_vars(array( - 'USERNAME' => $username, - 'CUR_PASSWORD' => $cur_password, - 'NEW_PASSWORD' => $new_password, - 'PASSWORD_CONFIRM' => $password_confirm, - 'EMAIL' => $email, - 'CONFIRM_IMG' => $confirm_image, - 'YIM' => $yim, - 'ICQ' => $icq, - 'MSN' => $msn, - 'AIM' => $aim, - 'OCCUPATION' => $occupation, - 'INTERESTS' => $interests, - 'LOCATION' => $location, - 'WEBSITE' => $website, - 'SIGNATURE' => str_replace('
    ', "\n", $signature), - 'VIEW_EMAIL_YES' => ( $viewemail ) ? 'checked="checked"' : '', - 'VIEW_EMAIL_NO' => ( !$viewemail ) ? 'checked="checked"' : '', - 'HIDE_USER_YES' => ( !$allowviewonline ) ? 'checked="checked"' : '', - 'HIDE_USER_NO' => ( $allowviewonline ) ? 'checked="checked"' : '', - 'NOTIFY_PM_YES' => ( $notifypm ) ? 'checked="checked"' : '', - 'NOTIFY_PM_NO' => ( !$notifypm ) ? 'checked="checked"' : '', - 'POPUP_PM_YES' => ( $popup_pm ) ? 'checked="checked"' : '', - 'POPUP_PM_NO' => ( !$popup_pm ) ? 'checked="checked"' : '', - 'ALWAYS_ADD_SIGNATURE_YES' => ( $attachsig ) ? 'checked="checked"' : '', - 'ALWAYS_ADD_SIGNATURE_NO' => ( !$attachsig ) ? 'checked="checked"' : '', - 'NOTIFY_REPLY_YES' => ( $notifyreply ) ? 'checked="checked"' : '', - 'NOTIFY_REPLY_NO' => ( !$notifyreply ) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_BBCODE_YES' => ( $allowbbcode ) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_BBCODE_NO' => ( !$allowbbcode ) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_HTML_YES' => ( $allowhtml ) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_HTML_NO' => ( !$allowhtml ) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_SMILIES_YES' => ( $allowsmilies ) ? 'checked="checked"' : '', - 'ALWAYS_ALLOW_SMILIES_NO' => ( !$allowsmilies ) ? 'checked="checked"' : '', - 'ALLOW_AVATAR' => $board_config['allow_avatar_upload'], - 'AVATAR' => $avatar_img, - 'AVATAR_SIZE' => $board_config['avatar_filesize'], - 'LANGUAGE_SELECT' => language_select($user_lang, 'language'), - 'STYLE_SELECT' => style_select($user_style, 'style'), - 'TIMEZONE_SELECT' => tz_select($user_timezone, 'timezone'), - 'DATE_FORMAT' => $user_dateformat, - 'HTML_STATUS' => $html_status, - 'BBCODE_STATUS' => sprintf($bbcode_status, '', ''), - 'SMILIES_STATUS' => $smilies_status, - - 'L_CURRENT_PASSWORD' => $lang['Current_password'], - 'L_NEW_PASSWORD' => ( $mode == 'register' ) ? $lang['Password'] : $lang['New_password'], - 'L_CONFIRM_PASSWORD' => $lang['Confirm_password'], - 'L_CONFIRM_PASSWORD_EXPLAIN' => ( $mode == 'editprofile' ) ? $lang['Confirm_password_explain'] : '', - 'L_PASSWORD_IF_CHANGED' => ( $mode == 'editprofile' ) ? $lang['password_if_changed'] : '', - 'L_PASSWORD_CONFIRM_IF_CHANGED' => ( $mode == 'editprofile' ) ? $lang['password_confirm_if_changed'] : '', - 'L_SUBMIT' => $lang['Submit'], - 'L_RESET' => $lang['Reset'], - 'L_ICQ_NUMBER' => $lang['ICQ'], - 'L_MESSENGER' => $lang['MSNM'], - 'L_YAHOO' => $lang['YIM'], - 'L_WEBSITE' => $lang['Website'], - 'L_AIM' => $lang['AIM'], - 'L_LOCATION' => $lang['Location'], - 'L_OCCUPATION' => $lang['Occupation'], - 'L_BOARD_LANGUAGE' => $lang['Board_lang'], - 'L_BOARD_STYLE' => $lang['Board_style'], - 'L_TIMEZONE' => $lang['Timezone'], - 'L_DATE_FORMAT' => $lang['Date_format'], - 'L_DATE_FORMAT_EXPLAIN' => $lang['Date_format_explain'], - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - 'L_INTERESTS' => $lang['Interests'], - 'L_ALWAYS_ALLOW_SMILIES' => $lang['Always_smile'], - 'L_ALWAYS_ALLOW_BBCODE' => $lang['Always_bbcode'], - 'L_ALWAYS_ALLOW_HTML' => $lang['Always_html'], - 'L_HIDE_USER' => $lang['Hide_user'], - 'L_ALWAYS_ADD_SIGNATURE' => $lang['Always_add_sig'], - - 'L_AVATAR_PANEL' => $lang['Avatar_panel'], - 'L_AVATAR_EXPLAIN' => sprintf($lang['Avatar_explain'], $board_config['avatar_max_width'], $board_config['avatar_max_height'], (round($board_config['avatar_filesize'] / 1024))), - 'L_UPLOAD_AVATAR_FILE' => $lang['Upload_Avatar_file'], - 'L_UPLOAD_AVATAR_URL' => $lang['Upload_Avatar_URL'], - 'L_UPLOAD_AVATAR_URL_EXPLAIN' => $lang['Upload_Avatar_URL_explain'], - 'L_AVATAR_GALLERY' => $lang['Select_from_gallery'], - 'L_SHOW_GALLERY' => $lang['View_avatar_gallery'], - 'L_LINK_REMOTE_AVATAR' => $lang['Link_remote_Avatar'], - 'L_LINK_REMOTE_AVATAR_EXPLAIN' => $lang['Link_remote_Avatar_explain'], - 'L_DELETE_AVATAR' => $lang['Delete_Image'], - 'L_CURRENT_IMAGE' => $lang['Current_Image'], - - 'L_SIGNATURE' => $lang['Signature'], - 'L_SIGNATURE_EXPLAIN' => sprintf($lang['Signature_explain'], $board_config['max_sig_chars']), - 'L_NOTIFY_ON_REPLY' => $lang['Always_notify'], - 'L_NOTIFY_ON_REPLY_EXPLAIN' => $lang['Always_notify_explain'], - 'L_NOTIFY_ON_PRIVMSG' => $lang['Notify_on_privmsg'], - 'L_POPUP_ON_PRIVMSG' => $lang['Popup_on_privmsg'], - 'L_POPUP_ON_PRIVMSG_EXPLAIN' => $lang['Popup_on_privmsg_explain'], - 'L_PREFERENCES' => $lang['Preferences'], - 'L_PUBLIC_VIEW_EMAIL' => $lang['Public_view_email'], - 'L_ITEMS_REQUIRED' => $lang['Items_required'], - 'L_REGISTRATION_INFO' => $lang['Registration_info'], - 'L_PROFILE_INFO' => $lang['Profile_info'], - 'L_PROFILE_INFO_NOTICE' => $lang['Profile_info_warn'], - 'L_EMAIL_ADDRESS' => $lang['Email_address'], - - 'L_CONFIRM_CODE_IMPAIRED' => sprintf($lang['Confirm_code_impaired'], '', ''), - 'L_CONFIRM_CODE' => $lang['Confirm_code'], - 'L_CONFIRM_CODE_EXPLAIN' => $lang['Confirm_code_explain'], - - 'S_ALLOW_AVATAR_UPLOAD' => $board_config['allow_avatar_upload'], - 'S_ALLOW_AVATAR_LOCAL' => $board_config['allow_avatar_local'], - 'S_ALLOW_AVATAR_REMOTE' => $board_config['allow_avatar_remote'], - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_FORM_ENCTYPE' => $form_enctype, - 'S_PROFILE_ACTION' => append_sid("profile.$phpEx")) - ); - - // - // This is another cheat using the block_var capability - // of the templates to 'fake' an IF...ELSE...ENDIF solution - // it works well :) - // - if ( $mode != 'register' ) - { - if ( $userdata['user_allowavatar'] && ( $board_config['allow_avatar_upload'] || $board_config['allow_avatar_local'] || $board_config['allow_avatar_remote'] ) ) - { - $template->assign_block_vars('switch_avatar_block', array() ); - - if ( $board_config['allow_avatar_upload'] && file_exists(@phpbb_realpath('./' . $board_config['avatar_path'])) ) - { - if ( $form_enctype != '' ) - { - $template->assign_block_vars('switch_avatar_block.switch_avatar_local_upload', array() ); - } - $template->assign_block_vars('switch_avatar_block.switch_avatar_remote_upload', array() ); - } - - if ( $board_config['allow_avatar_remote'] ) - { - $template->assign_block_vars('switch_avatar_block.switch_avatar_remote_link', array() ); - } - - if ( $board_config['allow_avatar_local'] && file_exists(@phpbb_realpath('./' . $board_config['avatar_gallery_path'])) ) - { - $template->assign_block_vars('switch_avatar_block.switch_avatar_local_gallery', array() ); - } - } - } -} - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/usercp_sendpasswd.php b/phpBB2_old/includes/usercp_sendpasswd.php deleted file mode 100644 index 6e2a7e8..0000000 --- a/phpBB2_old/includes/usercp_sendpasswd.php +++ /dev/null @@ -1,138 +0,0 @@ -sql_query($sql) ) - { - if ( $row = $db->sql_fetchrow($result) ) - { - if ( !$row['user_active'] ) - { - message_die(GENERAL_MESSAGE, $lang['No_send_account_inactive']); - } - - $username = $row['username']; - $user_id = $row['user_id']; - - $user_actkey = gen_rand_string(true); - $key_len = 54 - strlen($server_url); - $key_len = ( $str_len > 6 ) ? $key_len : 6; - $user_actkey = substr($user_actkey, 0, $key_len); - $user_password = gen_rand_string(false); - - $sql = "UPDATE " . USERS_TABLE . " - SET user_newpasswd = '" . md5($user_password) . "', user_actkey = '$user_actkey' - WHERE user_id = " . $row['user_id']; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update new password information', '', __LINE__, __FILE__, $sql); - } - - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->use_template('user_activate_passwd', $row['user_lang']); - $emailer->email_address($row['user_email']); - $emailer->set_subject($lang['New_password_activation']); - - $emailer->assign_vars(array( - 'SITENAME' => $board_config['sitename'], - 'USERNAME' => $username, - 'PASSWORD' => $user_password, - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
    ', "\n", "-- \n" . $board_config['board_email_sig']) : '', - - 'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' . $user_actkey) - ); - $emailer->send(); - $emailer->reset(); - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Password_updated'] . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_email_match']); - } - } - else - { - message_die(GENERAL_ERROR, 'Could not obtain user information for sendpassword', '', __LINE__, __FILE__, $sql); - } -} -else -{ - $username = ''; - $email = ''; -} - -// -// Output basic page -// -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -$template->set_filenames(array( - 'body' => 'profile_send_pass.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$template->assign_vars(array( - 'USERNAME' => $username, - 'EMAIL' => $email, - - 'L_SEND_PASSWORD' => $lang['Send_password'], - 'L_ITEMS_REQUIRED' => $lang['Items_required'], - 'L_EMAIL_ADDRESS' => $lang['Email_address'], - 'L_SUBMIT' => $lang['Submit'], - 'L_RESET' => $lang['Reset'], - - 'S_HIDDEN_FIELDS' => '', - 'S_PROFILE_ACTION' => append_sid("profile.$phpEx?mode=sendpassword")) -); - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/includes/usercp_viewprofile.php b/phpBB2_old/includes/usercp_viewprofile.php deleted file mode 100644 index b4f1c01..0000000 --- a/phpBB2_old/includes/usercp_viewprofile.php +++ /dev/null @@ -1,244 +0,0 @@ -sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not obtain ranks information', '', __LINE__, __FILE__, $sql); -} - -$ranksrow = array(); -while ( $row = $db->sql_fetchrow($result) ) -{ - $ranksrow[] = $row; -} -$db->sql_freeresult($result); - -// -// Output page header and profile_view template -// -$template->set_filenames(array( - 'body' => 'profile_view_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -// -// Calculate the number of days this user has been a member ($memberdays) -// Then calculate their posts per day -// -$regdate = $profiledata['user_regdate']; -$memberdays = max(1, round( ( time() - $regdate ) / 86400 )); -$posts_per_day = $profiledata['user_posts'] / $memberdays; - -// Get the users percentage of total posts -if ( $profiledata['user_posts'] != 0 ) -{ - $total_posts = get_db_stat('postcount'); - $percentage = ( $total_posts ) ? min(100, ($profiledata['user_posts'] / $total_posts) * 100) : 0; -} -else -{ - $percentage = 0; -} - -$avatar_img = ''; -if ( $profiledata['user_avatar_type'] && $profiledata['user_allowavatar'] ) -{ - switch( $profiledata['user_avatar_type'] ) - { - case USER_AVATAR_UPLOAD: - $avatar_img = ( $board_config['allow_avatar_upload'] ) ? '' : ''; - break; - case USER_AVATAR_REMOTE: - $avatar_img = ( $board_config['allow_avatar_remote'] ) ? '' : ''; - break; - case USER_AVATAR_GALLERY: - $avatar_img = ( $board_config['allow_avatar_local'] ) ? '' : ''; - break; - } -} - -$poster_rank = ''; -$rank_image = ''; -if ( $profiledata['user_rank'] ) -{ - for($i = 0; $i < count($ranksrow); $i++) - { - if ( $profiledata['user_rank'] == $ranksrow[$i]['rank_id'] && $ranksrow[$i]['rank_special'] ) - { - $poster_rank = $ranksrow[$i]['rank_title']; - $rank_image = ( $ranksrow[$i]['rank_image'] ) ? '' . $poster_rank . '
    ' : ''; - } - } -} -else -{ - for($i = 0; $i < count($ranksrow); $i++) - { - if ( $profiledata['user_posts'] >= $ranksrow[$i]['rank_min'] && !$ranksrow[$i]['rank_special'] ) - { - $poster_rank = $ranksrow[$i]['rank_title']; - $rank_image = ( $ranksrow[$i]['rank_image'] ) ? '' . $poster_rank . '
    ' : ''; - } - } -} - -$temp_url = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=" . $profiledata['user_id']); -$pm_img = '' . $lang['Send_private_message'] . ''; -$pm = '' . $lang['Send_private_message'] . ''; - -if ( !empty($profiledata['user_viewemail']) || $userdata['user_level'] == ADMIN ) -{ - $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $profiledata['user_id']) : 'mailto:' . $profiledata['user_email']; - - $email_img = '' . $lang['Send_email'] . ''; - $email = '' . $lang['Send_email'] . ''; -} -else -{ - $email_img = ' '; - $email = ' '; -} - -$www_img = ( $profiledata['user_website'] ) ? '' . $lang['Visit_website'] . '' : ' '; -$www = ( $profiledata['user_website'] ) ? '' . $profiledata['user_website'] . '' : ' '; - -if ( !empty($profiledata['user_icq']) ) -{ - $icq_status_img = ''; - $icq_img = '' . $lang['ICQ'] . ''; - $icq = '' . $lang['ICQ'] . ''; -} -else -{ - $icq_status_img = ' '; - $icq_img = ' '; - $icq = ' '; -} - -$aim_img = ( $profiledata['user_aim'] ) ? '' . $lang['AIM'] . '' : ' '; -$aim = ( $profiledata['user_aim'] ) ? '' . $lang['AIM'] . '' : ' '; - -$msn_img = ( $profiledata['user_msnm'] ) ? $profiledata['user_msnm'] : ' '; -$msn = $msn_img; - -$yim_img = ( $profiledata['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; -$yim = ( $profiledata['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - -$temp_url = append_sid("search.$phpEx?search_author=" . urlencode($profiledata['username']) . "&showresults=posts"); -$search_img = '' . $lang['Search_user_posts'] . ''; -$search = '' . $lang['Search_user_posts'] . ''; - -// -// Generate page -// -$page_title = $lang['Viewing_profile']; -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -if (function_exists('get_html_translation_table')) -{ - $u_search_author = urlencode(strtr($profiledata['username'], array_flip(get_html_translation_table(HTML_ENTITIES)))); -} -else -{ - $u_search_author = urlencode(str_replace(array('&', ''', '"', '<', '>'), array('&', "'", '"', '<', '>'), $profiledata['username'])); -} - -$template->assign_vars(array( - 'USERNAME' => $profiledata['username'], - 'JOINED' => create_date($lang['DATE_FORMAT'], $profiledata['user_regdate'], $board_config['board_timezone']), - 'POSTER_RANK' => $poster_rank, - 'RANK_IMAGE' => $rank_image, - 'POSTS_PER_DAY' => $posts_per_day, - 'POSTS' => $profiledata['user_posts'], - 'PERCENTAGE' => $percentage . '%', - 'POST_DAY_STATS' => sprintf($lang['User_post_day_stats'], $posts_per_day), - 'POST_PERCENT_STATS' => sprintf($lang['User_post_pct_stats'], $percentage), - - 'SEARCH_IMG' => $search_img, - 'SEARCH' => $search, - 'PM_IMG' => $pm_img, - 'PM' => $pm, - 'EMAIL_IMG' => $email_img, - 'EMAIL' => $email, - 'WWW_IMG' => $www_img, - 'WWW' => $www, - 'ICQ_STATUS_IMG' => $icq_status_img, - 'ICQ_IMG' => $icq_img, - 'ICQ' => $icq, - 'AIM_IMG' => $aim_img, - 'AIM' => $aim, - 'MSN_IMG' => $msn_img, - 'MSN' => $msn, - 'YIM_IMG' => $yim_img, - 'YIM' => $yim, - - 'LOCATION' => ( $profiledata['user_from'] ) ? $profiledata['user_from'] : ' ', - 'OCCUPATION' => ( $profiledata['user_occ'] ) ? $profiledata['user_occ'] : ' ', - 'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ', - 'AVATAR_IMG' => $avatar_img, - - 'L_VIEWING_PROFILE' => sprintf($lang['Viewing_user_profile'], $profiledata['username']), - 'L_ABOUT_USER' => sprintf($lang['About_user'], $profiledata['username']), - 'L_AVATAR' => $lang['Avatar'], - 'L_POSTER_RANK' => $lang['Poster_rank'], - 'L_JOINED' => $lang['Joined'], - 'L_TOTAL_POSTS' => $lang['Total_posts'], - 'L_SEARCH_USER_POSTS' => sprintf($lang['Search_user_posts'], $profiledata['username']), - 'L_CONTACT' => $lang['Contact'], - 'L_EMAIL_ADDRESS' => $lang['Email_address'], - 'L_EMAIL' => $lang['Email'], - 'L_PM' => $lang['Private_Message'], - 'L_ICQ_NUMBER' => $lang['ICQ'], - 'L_YAHOO' => $lang['YIM'], - 'L_AIM' => $lang['AIM'], - 'L_MESSENGER' => $lang['MSNM'], - 'L_WEBSITE' => $lang['Website'], - 'L_LOCATION' => $lang['Location'], - 'L_OCCUPATION' => $lang['Occupation'], - 'L_INTERESTS' => $lang['Interests'], - - 'U_SEARCH_USER' => append_sid("search.$phpEx?search_author=" . $u_search_author), - - 'S_PROFILE_ACTION' => append_sid("profile.$phpEx")) -); - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/index.php b/phpBB2_old/index.php deleted file mode 100644 index 650ea43..0000000 --- a/phpBB2_old/index.php +++ /dev/null @@ -1,460 +0,0 @@ -assign_vars(array( - "META" => '') - ); - - $message = $lang['Forums_marked_read'] . '

    ' . sprintf($lang['Click_return_index'], '', ' '); - - message_die(GENERAL_MESSAGE, $message); -} -// -// End handle marking posts -// - -$tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . "_t"]) : array(); -$tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . "_f"]) : array(); - -// -// If you don't use these stats on your index you may want to consider -// removing them -// -$total_posts = get_db_stat('postcount'); -$total_users = get_db_stat('usercount'); -$newest_userdata = get_db_stat('newestuser'); -$newest_user = $newest_userdata['username']; -$newest_uid = $newest_userdata['user_id']; - -if( $total_posts == 0 ) -{ - $l_total_post_s = $lang['Posted_articles_zero_total']; -} -else if( $total_posts == 1 ) -{ - $l_total_post_s = $lang['Posted_article_total']; -} -else -{ - $l_total_post_s = $lang['Posted_articles_total']; -} - -if( $total_users == 0 ) -{ - $l_total_user_s = $lang['Registered_users_zero_total']; -} -else if( $total_users == 1 ) -{ - $l_total_user_s = $lang['Registered_user_total']; -} -else -{ - $l_total_user_s = $lang['Registered_users_total']; -} - - -// -// Start page proper -// -$sql = "SELECT c.cat_id, c.cat_title, c.cat_order - FROM " . CATEGORIES_TABLE . " c - ORDER BY c.cat_order"; -if( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql); -} - -$category_rows = array(); -while( $category_rows[] = $db->sql_fetchrow($result) ); -$db->sql_freeresult($result); - -if( ( $total_categories = count($category_rows) ) ) -{ - // - // Define appropriate SQL - // - switch(SQL_LAYER) - { - case 'postgresql': - $sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id - FROM " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . USERS_TABLE . " u - WHERE p.post_id = f.forum_last_post_id - AND u.user_id = p.poster_id - UNION ( - SELECT f.*, NULL, NULL, NULL, NULL - FROM " . FORUMS_TABLE . " f - WHERE NOT EXISTS ( - SELECT p.post_time - FROM " . POSTS_TABLE . " p - WHERE p.post_id = f.forum_last_post_id - ) - ) - ORDER BY cat_id, forum_order"; - break; - - case 'oracle': - $sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id - FROM " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p, " . USERS_TABLE . " u - WHERE p.post_id = f.forum_last_post_id(+) - AND u.user_id = p.poster_id(+) - ORDER BY f.cat_id, f.forum_order"; - break; - - default: - $sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id - FROM (( " . FORUMS_TABLE . " f - LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id ) - LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id ) - ORDER BY f.cat_id, f.forum_order"; - break; - } - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql); - } - - $forum_data = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $forum_data[] = $row; - } - $db->sql_freeresult($result); - - if ( !($total_forums = count($forum_data)) ) - { - message_die(GENERAL_MESSAGE, $lang['No_forums']); - } - - // - // Obtain a list of topic ids which contain - // posts made since user last visited - // - if ( $userdata['session_logged_in'] ) - { - $sql = "SELECT t.forum_id, t.topic_id, p.post_time - FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p - WHERE p.post_id = t.topic_last_post_id - AND p.post_time > " . $userdata['user_lastvisit'] . " - AND t.topic_moved_id = 0"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not query new topic information', '', __LINE__, __FILE__, $sql); - } - - $new_topic_data = array(); - while( $topic_data = $db->sql_fetchrow($result) ) - { - $new_topic_data[$topic_data['forum_id']][$topic_data['topic_id']] = $topic_data['post_time']; - } - $db->sql_freeresult($result); - } - - // - // Obtain list of moderators of each forum - // First users, then groups ... broken into two queries - // - $sql = "SELECT aa.forum_id, u.user_id, u.username - FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g, " . USERS_TABLE . " u - WHERE aa.auth_mod = " . TRUE . " - AND g.group_single_user = 1 - AND ug.group_id = aa.group_id - AND g.group_id = aa.group_id - AND u.user_id = ug.user_id - GROUP BY u.user_id, u.username, aa.forum_id - ORDER BY aa.forum_id, u.user_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql); - } - - $forum_moderators = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $forum_moderators[$row['forum_id']][] = '' . $row['username'] . ''; - } - $db->sql_freeresult($result); - - $sql = "SELECT aa.forum_id, g.group_id, g.group_name - FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g - WHERE aa.auth_mod = " . TRUE . " - AND g.group_single_user = 0 - AND g.group_type <> " . GROUP_HIDDEN . " - AND ug.group_id = aa.group_id - AND g.group_id = aa.group_id - GROUP BY g.group_id, g.group_name, aa.forum_id - ORDER BY aa.forum_id, g.group_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql); - } - - while( $row = $db->sql_fetchrow($result) ) - { - $forum_moderators[$row['forum_id']][] = '' . $row['group_name'] . ''; - } - $db->sql_freeresult($result); - - // - // Find which forums are visible for this user - // - $is_auth_ary = array(); - $is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_data); - - // - // Start output of page - // - define('SHOW_ONLINE', true); - $page_title = $lang['Index']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'body' => 'index_body.tpl') - ); - - $template->assign_vars(array( - 'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts), - 'TOTAL_USERS' => sprintf($l_total_user_s, $total_users), - 'NEWEST_USER' => sprintf($lang['Newest_user'], '', $newest_user, ''), - - 'FORUM_IMG' => $images['forum'], - 'FORUM_NEW_IMG' => $images['forum_new'], - 'FORUM_LOCKED_IMG' => $images['forum_locked'], - - 'L_FORUM' => $lang['Forum'], - 'L_TOPICS' => $lang['Topics'], - 'L_REPLIES' => $lang['Replies'], - 'L_VIEWS' => $lang['Views'], - 'L_POSTS' => $lang['Posts'], - 'L_LASTPOST' => $lang['Last_Post'], - 'L_NO_NEW_POSTS' => $lang['No_new_posts'], - 'L_NEW_POSTS' => $lang['New_posts'], - 'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'], - 'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'], - 'L_ONLINE_EXPLAIN' => $lang['Online_explain'], - - 'L_MODERATOR' => $lang['Moderators'], - 'L_FORUM_LOCKED' => $lang['Forum_is_locked'], - 'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'], - - 'U_MARK_READ' => append_sid("index.$phpEx?mark=forums")) - ); - - // - // Okay, let's build the index - // - for($i = 0; $i < $total_categories; $i++) - { - $cat_id = $category_rows[$i]['cat_id']; - - // - // Should we display this category/forum set? - // - $display_forums = false; - for($j = 0; $j < $total_forums; $j++) - { - if ( $is_auth_ary[$forum_data[$j]['forum_id']]['auth_view'] && $forum_data[$j]['cat_id'] == $cat_id ) - { - $display_forums = true; - } - } - - // - // Yes, we should, so first dump out the category - // title, then, if appropriate the forum list - // - if ( $display_forums ) - { - $template->assign_block_vars('catrow', array( - 'CAT_ID' => $cat_id, - 'CAT_DESC' => $category_rows[$i]['cat_title'], - 'U_VIEWCAT' => append_sid("index.$phpEx?" . POST_CAT_URL . "=$cat_id")) - ); - - if ( $viewcat == $cat_id || $viewcat == -1 ) - { - for($j = 0; $j < $total_forums; $j++) - { - if ( $forum_data[$j]['cat_id'] == $cat_id ) - { - $forum_id = $forum_data[$j]['forum_id']; - - if ( $is_auth_ary[$forum_id]['auth_view'] ) - { - if ( $forum_data[$j]['forum_status'] == FORUM_LOCKED ) - { - $folder_image = $images['forum_locked']; - $folder_alt = $lang['Forum_locked']; - } - else - { - $unread_topics = false; - if ( $userdata['session_logged_in'] ) - { - if ( !empty($new_topic_data[$forum_id]) ) - { - $forum_last_post_time = 0; - - while( list($check_topic_id, $check_post_time) = @each($new_topic_data[$forum_id]) ) - { - if ( empty($tracking_topics[$check_topic_id]) ) - { - $unread_topics = true; - $forum_last_post_time = max($check_post_time, $forum_last_post_time); - - } - else - { - if ( $tracking_topics[$check_topic_id] < $check_post_time ) - { - $unread_topics = true; - $forum_last_post_time = max($check_post_time, $forum_last_post_time); - } - } - } - - if ( !empty($tracking_forums[$forum_id]) ) - { - if ( $tracking_forums[$forum_id] > $forum_last_post_time ) - { - $unread_topics = false; - } - } - - if ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) - { - if ( $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all'] > $forum_last_post_time ) - { - $unread_topics = false; - } - } - - } - } - - $folder_image = ( $unread_topics ) ? $images['forum_new'] : $images['forum']; - $folder_alt = ( $unread_topics ) ? $lang['New_posts'] : $lang['No_new_posts']; - } - - $posts = $forum_data[$j]['forum_posts']; - $topics = $forum_data[$j]['forum_topics']; - - if ( $forum_data[$j]['forum_last_post_id'] ) - { - $last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']); - - $last_post = $last_post_time . '
    '; - - $last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '' . $forum_data[$j]['username'] . ' '; - - $last_post .= '' . $lang['View_latest_post'] . ''; - } - else - { - $last_post = $lang['No_Posts']; - } - - if ( count($forum_moderators[$forum_id]) > 0 ) - { - $l_moderators = ( count($forum_moderators[$forum_id]) == 1 ) ? $lang['Moderator'] : $lang['Moderators']; - $moderator_list = implode(', ', $forum_moderators[$forum_id]); - } - else - { - $l_moderators = ' '; - $moderator_list = ' '; - } - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('catrow.forumrow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'FORUM_FOLDER_IMG' => $folder_image, - 'FORUM_NAME' => $forum_data[$j]['forum_name'], - 'FORUM_DESC' => $forum_data[$j]['forum_desc'], - 'POSTS' => $forum_data[$j]['forum_posts'], - 'TOPICS' => $forum_data[$j]['forum_topics'], - 'LAST_POST' => $last_post, - 'MODERATORS' => $moderator_list, - - 'L_MODERATOR' => $l_moderators, - 'L_FORUM_FOLDER_ALT' => $folder_alt, - - 'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id")) - ); - } - } - } - } - } - } // for ... categories - -}// if ... total_categories -else -{ - message_die(GENERAL_MESSAGE, $lang['No_forums']); -} - -// -// Generate the page -// -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/language/index.htm b/phpBB2_old/language/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2_old/language/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2_old/language/lang_english/email/admin_activate.tpl b/phpBB2_old/language/lang_english/email/admin_activate.tpl deleted file mode 100644 index ea0af53..0000000 --- a/phpBB2_old/language/lang_english/email/admin_activate.tpl +++ /dev/null @@ -1,10 +0,0 @@ -Subject: New user account -Charset: iso-8859-1 - -Hello, - -The account owned by "{USERNAME}" has been deactivated or newly created, you should check the details of this user (if required) and activate it using the following link: - -{U_ACTIVATE} - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2_old/language/lang_english/email/admin_send_email.tpl b/phpBB2_old/language/lang_english/email/admin_send_email.tpl deleted file mode 100644 index 234f61d..0000000 --- a/phpBB2_old/language/lang_english/email/admin_send_email.tpl +++ /dev/null @@ -1,12 +0,0 @@ -Charset: iso-8859-1 - -The following is an email sent to you by an administrator of "{SITENAME}". If this message is spam, contains abusive or other comments you find offensive please contact the webmaster of the board at the following address: - -{BOARD_EMAIL} - -Include this full email (particularly the headers). - -Message sent to you follows: -~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -{MESSAGE} diff --git a/phpBB2_old/language/lang_english/email/admin_welcome_activated.tpl b/phpBB2_old/language/lang_english/email/admin_welcome_activated.tpl deleted file mode 100644 index 3b7aa48..0000000 --- a/phpBB2_old/language/lang_english/email/admin_welcome_activated.tpl +++ /dev/null @@ -1,8 +0,0 @@ -Subject: Account Activated -Charset: iso-8859-1 - -Hello {USERNAME}, - -Your account on "{SITENAME}" has now been activated, you may login using the username and password you received in a previous email. - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2_old/language/lang_english/email/admin_welcome_inactive.tpl b/phpBB2_old/language/lang_english/email/admin_welcome_inactive.tpl deleted file mode 100644 index 905e716..0000000 --- a/phpBB2_old/language/lang_english/email/admin_welcome_inactive.tpl +++ /dev/null @@ -1,19 +0,0 @@ -Subject: Welcome to {SITENAME} Forums -Charset: iso-8859-1 - -{WELCOME_MSG} - -Please keep this email for your records. Your account information is as follows: - ----------------------------- -Username: {USERNAME} -Password: {PASSWORD} ----------------------------- - -Your account is currently inactive, the administrator of the board will need to activate it before you can log in. You will receive another email when this has occured. - -Please do not forget your password as it has been encrypted in our database and we cannot retrieve it for you. However, should you forget your password you can request a new one which will be activated in the same way as this account. - -Thank you for registering. - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2_old/language/lang_english/email/coppa_welcome_inactive.tpl b/phpBB2_old/language/lang_english/email/coppa_welcome_inactive.tpl deleted file mode 100644 index 5d9b250..0000000 --- a/phpBB2_old/language/lang_english/email/coppa_welcome_inactive.tpl +++ /dev/null @@ -1,53 +0,0 @@ -Subject: Welcome to {SITENAME} Forums -Charset: iso-8859-1 - -{WELCOME_MSG} - -In compliance with the COPPA act your account is currently inactive. - -Please print this message out and have your parent or guardian sign and date it. Then fax it to: - -{FAX_INFO} - -OR mail it to: - -{MAIL_INFO} - ------------------------------- CUT HERE ------------------------------ -Permission to Participate at {SITENAME} - -Username: {USERNAME} -Password: {PASSWORD} -Email: {EMAIL_ADDRESS} - -ICQ Number: {ICQ} -AIM Address: {AIM} -MSN Messenger: {MSN} -Yahoo Messenger: {YIM} -Web Site: {WEB_SITE} -From: {FROM} -Occupation: {OCC} -Interests: {INTERESTS} - -I HAVE REVIEWED THE INFORMATION PROVIDED BY MY CHILD AND HEREBY GRANT PERMISSION TO {SITENAME} TO STORE THIS INFORMATION. -I UNDERSTAND THIS INFORMATION CAN BE CHANGED AT ANY TIME BY ENTERING A PASSWORD. -I UNDERSTAND THAT I MAY REQUEST FOR THIS INFORMATION TO BE REMOVED FROM {SITENAME} AT ANY TIME. - - -Parent or Guardian -(print your name here): _____________________ - -(sign here): __________________ - -Date: _______________ - ------------------------------- CUT HERE ------------------------------ - - -Once the administrator has received the above form via fax or regular mail your account will be activated. - -Please do not forget your password as it has been encrypted in our database and we cannot retrieve it for you. However, should you forget your password you can request a new one which will be activated in the same way as this account. - -Thank you for registering. - -{EMAIL_SIG} diff --git a/phpBB2_old/language/lang_english/email/group_added.tpl b/phpBB2_old/language/lang_english/email/group_added.tpl deleted file mode 100644 index 5707da9..0000000 --- a/phpBB2_old/language/lang_english/email/group_added.tpl +++ /dev/null @@ -1,12 +0,0 @@ -Subject: You have been added to this usergroup -Charset: iso-8859-1 - -Congratulations, - -You have been added to the "{GROUP_NAME}" group on {SITENAME}. -This action was done by the group moderator or the site administrator, contact them for more information. - -You can view your groups information here: -{U_GROUPCP} - -{EMAIL_SIG} diff --git a/phpBB2_old/language/lang_english/email/group_approved.tpl b/phpBB2_old/language/lang_english/email/group_approved.tpl deleted file mode 100644 index 38773c5..0000000 --- a/phpBB2_old/language/lang_english/email/group_approved.tpl +++ /dev/null @@ -1,11 +0,0 @@ -Subject: Your request has been approved -Charset: iso-8859-1 - -Congratulations, - -Your request to join the "{GROUP_NAME}" group on {SITENAME} has been approved. -Click on the following link to see your group membership. - -{U_GROUPCP} - -{EMAIL_SIG} diff --git a/phpBB2_old/language/lang_english/email/group_request.tpl b/phpBB2_old/language/lang_english/email/group_request.tpl deleted file mode 100644 index 8da7fa9..0000000 --- a/phpBB2_old/language/lang_english/email/group_request.tpl +++ /dev/null @@ -1,11 +0,0 @@ -Subject: A request to join your group has been made -Charset: iso-8859-1 - -Dear {GROUP_MODERATOR}, - -A user has requested to join a group you moderator on {SITENAME}. -To approve or deny this request for group membership please visit the following link: - -{U_GROUPCP} - -{EMAIL_SIG} diff --git a/phpBB2_old/language/lang_english/email/index.htm b/phpBB2_old/language/lang_english/email/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2_old/language/lang_english/email/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2_old/language/lang_english/email/privmsg_notify.tpl b/phpBB2_old/language/lang_english/email/privmsg_notify.tpl deleted file mode 100644 index 2a96ee8..0000000 --- a/phpBB2_old/language/lang_english/email/privmsg_notify.tpl +++ /dev/null @@ -1,12 +0,0 @@ -Subject: New Private Message has arrived -Charset: iso-8859-1 - -Hello {USERNAME}, - -You have received a new private message to your account on "{SITENAME}" and you have requested that you be notified on this event. You can view your new message by clicking on the following link: - -{U_INBOX} - -Remember that you can always choose not to be notified of new messages by changing the appropriate setting in your profile. - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2_old/language/lang_english/email/profile_send_email.tpl b/phpBB2_old/language/lang_english/email/profile_send_email.tpl deleted file mode 100644 index 00dcde1..0000000 --- a/phpBB2_old/language/lang_english/email/profile_send_email.tpl +++ /dev/null @@ -1,14 +0,0 @@ -Charset: iso-8859-1 - -Hello {TO_USERNAME}, - -The following is an email sent to you by {FROM_USERNAME} via your account on {SITENAME}. If this message is spam, contains abusive or other comments you find offensive please contact the webmaster of the board at the following address: - -{BOARD_EMAIL} - -Include this full email (particularly the headers). Please note that the reply address to this email has been set to that of {FROM_USERNAME}. - -Message sent to you follows -~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -{MESSAGE} diff --git a/phpBB2_old/language/lang_english/email/topic_notify.tpl b/phpBB2_old/language/lang_english/email/topic_notify.tpl deleted file mode 100644 index 9682ebb..0000000 --- a/phpBB2_old/language/lang_english/email/topic_notify.tpl +++ /dev/null @@ -1,14 +0,0 @@ -Subject: Topic Reply Notification - {TOPIC_TITLE} -Charset: iso-8859-1 - -Hello {USERNAME}, - -You are receiving this email because you are watching the topic, "{TOPIC_TITLE}" at {SITENAME}. This topic has received a reply since your last visit. You can use the following link to view the replies made, no more notifications will be sent until you visit the topic. - -{U_TOPIC} - -If you no longer wish to watch this topic you can either click the "Stop watching this topic link" found at the bottom of the topic above, or by clicking the following link: - -{U_STOP_WATCHING_TOPIC} - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2_old/language/lang_english/email/user_activate.tpl b/phpBB2_old/language/lang_english/email/user_activate.tpl deleted file mode 100644 index 0adeb5b..0000000 --- a/phpBB2_old/language/lang_english/email/user_activate.tpl +++ /dev/null @@ -1,10 +0,0 @@ -Subject: Reactivate your account -Charset: iso-8859-1 - -Hello {USERNAME}, - -Your account on "{SITENAME}" has been deactivated, most likely due to changes made to your profile. In order to reactivate your account you must click on the link below: - -{U_ACTIVATE} - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2_old/language/lang_english/email/user_activate_passwd.tpl b/phpBB2_old/language/lang_english/email/user_activate_passwd.tpl deleted file mode 100644 index 8c45d03..0000000 --- a/phpBB2_old/language/lang_english/email/user_activate_passwd.tpl +++ /dev/null @@ -1,18 +0,0 @@ -Subject: New password activation -Charset: iso-8859-1 - -Hello {USERNAME} - -You are receiving this email because you have (or someone pretending to be you has) requested a new password be sent for your account on {SITENAME}. If you did not request this email then please ignore it, if you keep receiving it please contact the board administrator. - -To use the new password you need to activate it. To do this click the link provided below. - -{U_ACTIVATE} - -If sucessful you will be able to login using the following password: - -Password: {PASSWORD} - -You can of course change this password yourself via the profile page. If you have any difficulties please contact the board administrator. - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2_old/language/lang_english/email/user_welcome.tpl b/phpBB2_old/language/lang_english/email/user_welcome.tpl deleted file mode 100644 index 42dc56d..0000000 --- a/phpBB2_old/language/lang_english/email/user_welcome.tpl +++ /dev/null @@ -1,17 +0,0 @@ -Subject: Welcome to {SITENAME} Forums -Charset: iso-8859-1 - -{WELCOME_MSG} - -Please keep this email for your records. Your account information is as follows: - ----------------------------- -Username: {USERNAME} -Password: {PASSWORD} ----------------------------- - -Please do not forget your password as it has been encrypted in our database and we cannot retrieve it for you. However, should you forget your password you can request a new one which will be activated in the same way as this account. - -Thank you for registering. - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2_old/language/lang_english/email/user_welcome_inactive.tpl b/phpBB2_old/language/lang_english/email/user_welcome_inactive.tpl deleted file mode 100644 index 6ece2d4..0000000 --- a/phpBB2_old/language/lang_english/email/user_welcome_inactive.tpl +++ /dev/null @@ -1,21 +0,0 @@ -Subject: Welcome to {SITENAME} Forums -Charset: iso-8859-1 - -{WELCOME_MSG} - -Please keep this email for your records. Your account information is as follows: - ----------------------------- -Username: {USERNAME} -Password: {PASSWORD} ----------------------------- - -Your account is currently inactive. You cannot use it until you visit the following link: - -{U_ACTIVATE} - -Please do not forget your password as it has been encrypted in our database and we cannot retrieve it for you. However, should you forget your password you can request a new one which will be activated in the same way as this account. - -Thank you for registering. - -{EMAIL_SIG} \ No newline at end of file diff --git a/phpBB2_old/language/lang_english/index.htm b/phpBB2_old/language/lang_english/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2_old/language/lang_english/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2_old/language/lang_english/lang_admin.php b/phpBB2_old/language/lang_english/lang_admin.php deleted file mode 100644 index 06eca30..0000000 --- a/phpBB2_old/language/lang_english/lang_admin.php +++ /dev/null @@ -1,731 +0,0 @@ -Admin Index link in the left pane. To return to the index of your board, click the phpBB logo also in the left pane. The other links on the left hand side of this screen will allow you to control every aspect of your forum experience. Each screen will have instructions on how to use the tools.'; -$lang['Main_index'] = 'Forum Index'; -$lang['Forum_stats'] = 'Forum Statistics'; -$lang['Admin_Index'] = 'Admin Index'; -$lang['Preview_forum'] = 'Preview Forum'; - -$lang['Click_return_admin_index'] = 'Click %sHere%s to return to the Admin Index'; - -$lang['Statistic'] = 'Statistic'; -$lang['Value'] = 'Value'; -$lang['Number_posts'] = 'Number of posts'; -$lang['Posts_per_day'] = 'Posts per day'; -$lang['Number_topics'] = 'Number of topics'; -$lang['Topics_per_day'] = 'Topics per day'; -$lang['Number_users'] = 'Number of users'; -$lang['Users_per_day'] = 'Users per day'; -$lang['Board_started'] = 'Board started'; -$lang['Avatar_dir_size'] = 'Avatar directory size'; -$lang['Database_size'] = 'Database size'; -$lang['Gzip_compression'] ='Gzip compression'; -$lang['Not_available'] = 'Not available'; - -$lang['ON'] = 'ON'; // This is for GZip compression -$lang['OFF'] = 'OFF'; - - -// -// DB Utils -// -$lang['Database_Utilities'] = 'Database Utilities'; - -$lang['Restore'] = 'Restore'; -$lang['Backup'] = 'Backup'; -$lang['Restore_explain'] = 'This will perform a full restore of all phpBB tables from a saved file. If your server supports it, you may upload a gzip-compressed text file and it will automatically be decompressed. WARNING: This will overwrite any existing data. The restore may take a long time to process, so please do not move from this page until it is complete.'; -$lang['Backup_explain'] = 'Here you can back up all your phpBB-related data. If you have any additional custom tables in the same database with phpBB that you would like to back up as well, please enter their names, separated by commas, in the Additional Tables textbox below. If your server supports it you may also gzip-compress the file to reduce its size before download.'; - -$lang['Backup_options'] = 'Backup options'; -$lang['Start_backup'] = 'Start Backup'; -$lang['Full_backup'] = 'Full backup'; -$lang['Structure_backup'] = 'Structure-Only backup'; -$lang['Data_backup'] = 'Data only backup'; -$lang['Additional_tables'] = 'Additional tables'; -$lang['Gzip_compress'] = 'Gzip compress file'; -$lang['Select_file'] = 'Select a file'; -$lang['Start_Restore'] = 'Start Restore'; - -$lang['Restore_success'] = 'The Database has been successfully restored.

    Your board should be back to the state it was when the backup was made.'; -$lang['Backup_download'] = 'Your download will start shortly; please wait until it begins.'; -$lang['Backups_not_supported'] = 'Sorry, but database backups are not currently supported for your database system.'; - -$lang['Restore_Error_uploading'] = 'Error in uploading the backup file'; -$lang['Restore_Error_filename'] = 'Filename problem; please try an alternative file'; -$lang['Restore_Error_decompress'] = 'Cannot decompress a gzip file; please upload a plain text version'; -$lang['Restore_Error_no_file'] = 'No file was uploaded'; - - -// -// Auth pages -// -$lang['Select_a_User'] = 'Select a User'; -$lang['Select_a_Group'] = 'Select a Group'; -$lang['Select_a_Forum'] = 'Select a Forum'; -$lang['Auth_Control_User'] = 'User Permissions Control'; -$lang['Auth_Control_Group'] = 'Group Permissions Control'; -$lang['Auth_Control_Forum'] = 'Forum Permissions Control'; -$lang['Look_up_User'] = 'Look up User'; -$lang['Look_up_Group'] = 'Look up Group'; -$lang['Look_up_Forum'] = 'Look up Forum'; - -$lang['Group_auth_explain'] = 'Here you can alter the permissions and moderator status assigned to each user group. Do not forget when changing group permissions that individual user permissions may still allow the user entry to forums, etc. You will be warned if this is the case.'; -$lang['User_auth_explain'] = 'Here you can alter the permissions and moderator status assigned to each individual user. Do not forget when changing user permissions that group permissions may still allow the user entry to forums, etc. You will be warned if this is the case.'; -$lang['Forum_auth_explain'] = 'Here you can alter the authorisation levels of each forum. You will have both a simple and advanced method for doing this, where advanced offers greater control of each forum operation. Remember that changing the permission level of forums will affect which users can carry out the various operations within them.'; - -$lang['Simple_mode'] = 'Simple Mode'; -$lang['Advanced_mode'] = 'Advanced Mode'; -$lang['Moderator_status'] = 'Moderator status'; - -$lang['Allowed_Access'] = 'Allowed Access'; -$lang['Disallowed_Access'] = 'Disallowed Access'; -$lang['Is_Moderator'] = 'Is Moderator'; -$lang['Not_Moderator'] = 'Not Moderator'; - -$lang['Conflict_warning'] = 'Authorisation Conflict Warning'; -$lang['Conflict_access_userauth'] = 'This user still has access rights to this forum via group membership. You may want to alter the group permissions or remove this user the group to fully prevent them having access rights. The groups granting rights (and the forums involved) are noted below.'; -$lang['Conflict_mod_userauth'] = 'This user still has moderator rights to this forum via group membership. You may want to alter the group permissions or remove this user the group to fully prevent them having moderator rights. The groups granting rights (and the forums involved) are noted below.'; - -$lang['Conflict_access_groupauth'] = 'The following user (or users) still have access rights to this forum via their user permission settings. You may want to alter the user permissions to fully prevent them having access rights. The users granted rights (and the forums involved) are noted below.'; -$lang['Conflict_mod_groupauth'] = 'The following user (or users) still have moderator rights to this forum via their user permissions settings. You may want to alter the user permissions to fully prevent them having moderator rights. The users granted rights (and the forums involved) are noted below.'; - -$lang['Public'] = 'Public'; -$lang['Private'] = 'Private'; -$lang['Registered'] = 'Registered'; -$lang['Administrators'] = 'Administrators'; -$lang['Hidden'] = 'Hidden'; - -// These are displayed in the drop down boxes for advanced -// mode forum auth, try and keep them short! -$lang['Forum_ALL'] = 'ALL'; -$lang['Forum_REG'] = 'REG'; -$lang['Forum_PRIVATE'] = 'PRIVATE'; -$lang['Forum_MOD'] = 'MOD'; -$lang['Forum_ADMIN'] = 'ADMIN'; - -$lang['View'] = 'View'; -$lang['Read'] = 'Read'; -$lang['Post'] = 'Post'; -$lang['Reply'] = 'Reply'; -$lang['Edit'] = 'Edit'; -$lang['Delete'] = 'Delete'; -$lang['Sticky'] = 'Sticky'; -$lang['Announce'] = 'Announce'; -$lang['Vote'] = 'Vote'; -$lang['Pollcreate'] = 'Poll create'; - -$lang['Permissions'] = 'Permissions'; -$lang['Simple_Permission'] = 'Simple Permissions'; - -$lang['User_Level'] = 'User Level'; -$lang['Auth_User'] = 'User'; -$lang['Auth_Admin'] = 'Administrator'; -$lang['Group_memberships'] = 'Usergroup memberships'; -$lang['Usergroup_members'] = 'This group has the following members'; - -$lang['Forum_auth_updated'] = 'Forum permissions updated'; -$lang['User_auth_updated'] = 'User permissions updated'; -$lang['Group_auth_updated'] = 'Group permissions updated'; - -$lang['Auth_updated'] = 'Permissions have been updated'; -$lang['Click_return_userauth'] = 'Click %sHere%s to return to User Permissions'; -$lang['Click_return_groupauth'] = 'Click %sHere%s to return to Group Permissions'; -$lang['Click_return_forumauth'] = 'Click %sHere%s to return to Forum Permissions'; - - -// -// Banning -// -$lang['Ban_control'] = 'Ban Control'; -$lang['Ban_explain'] = 'Here you can control the banning of users. You can achieve this by banning either or both of a specific user or an individual or range of IP addresses or hostnames. These methods prevent a user from even reaching the index page of your board. To prevent a user from registering under a different username you can also specify a banned email address. Please note that banning an email address alone will not prevent that user from being able to log on or post to your board. You should use one of the first two methods to achieve this.'; -$lang['Ban_explain_warn'] = 'Please note that entering a range of IP addresses results in all the addresses between the start and end being added to the banlist. Attempts will be made to minimise the number of addresses added to the database by introducing wildcards automatically where appropriate. If you really must enter a range, try to keep it small or better yet state specific addresses.'; - -$lang['Select_username'] = 'Select a Username'; -$lang['Select_ip'] = 'Select an IP address'; -$lang['Select_email'] = 'Select an Email address'; - -$lang['Ban_username'] = 'Ban one or more specific users'; -$lang['Ban_username_explain'] = 'You can ban multiple users in one go using the appropriate combination of mouse and keyboard for your computer and browser'; - -$lang['Ban_IP'] = 'Ban one or more IP addresses or hostnames'; -$lang['IP_hostname'] = 'IP addresses or hostnames'; -$lang['Ban_IP_explain'] = 'To specify several different IP addresses or hostnames separate them with commas. To specify a range of IP addresses, separate the start and end with a hyphen (-); to specify a wildcard, use an asterisk (*).'; - -$lang['Ban_email'] = 'Ban one or more email addresses'; -$lang['Ban_email_explain'] = 'To specify more than one email address, separate them with commas. To specify a wildcard username, use * like *@hotmail.com'; - -$lang['Unban_username'] = 'Un-ban one more specific users'; -$lang['Unban_username_explain'] = 'You can unban multiple users in one go using the appropriate combination of mouse and keyboard for your computer and browser'; - -$lang['Unban_IP'] = 'Un-ban one or more IP addresses'; -$lang['Unban_IP_explain'] = 'You can unban multiple IP addresses in one go using the appropriate combination of mouse and keyboard for your computer and browser'; - -$lang['Unban_email'] = 'Un-ban one or more email addresses'; -$lang['Unban_email_explain'] = 'You can unban multiple email addresses in one go using the appropriate combination of mouse and keyboard for your computer and browser'; - -$lang['No_banned_users'] = 'No banned usernames'; -$lang['No_banned_ip'] = 'No banned IP addresses'; -$lang['No_banned_email'] = 'No banned email addresses'; - -$lang['Ban_update_sucessful'] = 'The banlist has been updated successfully'; -$lang['Click_return_banadmin'] = 'Click %sHere%s to return to Ban Control'; - - -// -// Configuration -// -$lang['General_Config'] = 'General Configuration'; -$lang['Config_explain'] = 'The form below will allow you to customize all the general board options. For User and Forum configurations use the related links on the left hand side.'; - -$lang['Click_return_config'] = 'Click %sHere%s to return to General Configuration'; - -$lang['General_settings'] = 'General Board Settings'; -$lang['Server_name'] = 'Domain Name'; -$lang['Server_name_explain'] = 'The domain name from which this board runs'; -$lang['Script_path'] = 'Script path'; -$lang['Script_path_explain'] = 'The path where phpBB2 is located relative to the domain name'; -$lang['Server_port'] = 'Server Port'; -$lang['Server_port_explain'] = 'The port your server is running on, usually 80. Only change if different'; -$lang['Site_name'] = 'Site name'; -$lang['Site_desc'] = 'Site description'; -$lang['Board_disable'] = 'Disable board'; -$lang['Board_disable_explain'] = 'This will make the board unavailable to users. Administrators are able to access the Administration Panel while the board is disabled.'; -$lang['Acct_activation'] = 'Enable account activation'; -$lang['Acc_None'] = 'None'; // These three entries are the type of activation -$lang['Acc_User'] = 'User'; -$lang['Acc_Admin'] = 'Admin'; - -$lang['Abilities_settings'] = 'User and Forum Basic Settings'; -$lang['Max_poll_options'] = 'Max number of poll options'; -$lang['Flood_Interval'] = 'Flood Interval'; -$lang['Flood_Interval_explain'] = 'Number of seconds a user must wait between posts'; -$lang['Board_email_form'] = 'User email via board'; -$lang['Board_email_form_explain'] = 'Users send email to each other via this board'; -$lang['Topics_per_page'] = 'Topics Per Page'; -$lang['Posts_per_page'] = 'Posts Per Page'; -$lang['Hot_threshold'] = 'Posts for Popular Threshold'; -$lang['Default_style'] = 'Default Style'; -$lang['Override_style'] = 'Override user style'; -$lang['Override_style_explain'] = 'Replaces users style with the default'; -$lang['Default_language'] = 'Default Language'; -$lang['Date_format'] = 'Date Format'; -$lang['System_timezone'] = 'System Timezone'; -$lang['Enable_gzip'] = 'Enable GZip Compression'; -$lang['Enable_prune'] = 'Enable Forum Pruning'; -$lang['Allow_HTML'] = 'Allow HTML'; -$lang['Allow_BBCode'] = 'Allow BBCode'; -$lang['Allowed_tags'] = 'Allowed HTML tags'; -$lang['Allowed_tags_explain'] = 'Separate tags with commas'; -$lang['Allow_smilies'] = 'Allow Smilies'; -$lang['Smilies_path'] = 'Smilies Storage Path'; -$lang['Smilies_path_explain'] = 'Path under your phpBB root dir, e.g. images/smiles'; -$lang['Allow_sig'] = 'Allow Signatures'; -$lang['Max_sig_length'] = 'Maximum signature length'; -$lang['Max_sig_length_explain'] = 'Maximum number of characters in user signatures'; -$lang['Allow_name_change'] = 'Allow Username changes'; - -$lang['Avatar_settings'] = 'Avatar Settings'; -$lang['Allow_local'] = 'Enable gallery avatars'; -$lang['Allow_remote'] = 'Enable remote avatars'; -$lang['Allow_remote_explain'] = 'Avatars linked to from another website'; -$lang['Allow_upload'] = 'Enable avatar uploading'; -$lang['Max_filesize'] = 'Maximum Avatar File Size'; -$lang['Max_filesize_explain'] = 'For uploaded avatar files'; -$lang['Max_avatar_size'] = 'Maximum Avatar Dimensions'; -$lang['Max_avatar_size_explain'] = '(Height x Width in pixels)'; -$lang['Avatar_storage_path'] = 'Avatar Storage Path'; -$lang['Avatar_storage_path_explain'] = 'Path under your phpBB root dir, e.g. images/avatars'; -$lang['Avatar_gallery_path'] = 'Avatar Gallery Path'; -$lang['Avatar_gallery_path_explain'] = 'Path under your phpBB root dir for pre-loaded images, e.g. images/avatars/gallery'; - -$lang['COPPA_settings'] = 'COPPA Settings'; -$lang['COPPA_fax'] = 'COPPA Fax Number'; -$lang['COPPA_mail'] = 'COPPA Mailing Address'; -$lang['COPPA_mail_explain'] = 'This is the mailing address to which parents will send COPPA registration forms'; - -$lang['Email_settings'] = 'Email Settings'; -$lang['Admin_email'] = 'Admin Email Address'; -$lang['Email_sig'] = 'Email Signature'; -$lang['Email_sig_explain'] = 'This text will be attached to all emails the board sends'; -$lang['Use_SMTP'] = 'Use SMTP Server for email'; -$lang['Use_SMTP_explain'] = 'Say yes if you want or have to send email via a named server instead of the local mail function'; -$lang['SMTP_server'] = 'SMTP Server Address'; -$lang['SMTP_username'] = 'SMTP Username'; -$lang['SMTP_username_explain'] = 'Only enter a username if your SMTP server requires it'; -$lang['SMTP_password'] = 'SMTP Password'; -$lang['SMTP_password_explain'] = 'Only enter a password if your SMTP server requires it'; - -$lang['Disable_privmsg'] = 'Private Messaging'; -$lang['Inbox_limits'] = 'Max posts in Inbox'; -$lang['Sentbox_limits'] = 'Max posts in Sentbox'; -$lang['Savebox_limits'] = 'Max posts in Savebox'; - -$lang['Cookie_settings'] = 'Cookie settings'; -$lang['Cookie_settings_explain'] = 'These details define how cookies are sent to your users\' browsers. In most cases the default values for the cookie settings should be sufficient, but if you need to change them do so with care -- incorrect settings can prevent users from logging in'; -$lang['Cookie_domain'] = 'Cookie domain'; -$lang['Cookie_name'] = 'Cookie name'; -$lang['Cookie_path'] = 'Cookie path'; -$lang['Cookie_secure'] = 'Cookie secure'; -$lang['Cookie_secure_explain'] = 'If your server is running via SSL, set this to enabled, else leave as disabled'; -$lang['Session_length'] = 'Session length [ seconds ]'; - -// Visual Confirmation -$lang['Visual_confirm'] = 'Enable Visual Confirmation'; -$lang['Visual_confirm_explain'] = 'Requires users enter a code defined by an image when registering.'; - -// -// Forum Management -// -$lang['Forum_admin'] = 'Forum Administration'; -$lang['Forum_admin_explain'] = 'From this panel you can add, delete, edit, re-order and re-synchronise categories and forums'; -$lang['Edit_forum'] = 'Edit forum'; -$lang['Create_forum'] = 'Create new forum'; -$lang['Create_category'] = 'Create new category'; -$lang['Remove'] = 'Remove'; -$lang['Action'] = 'Action'; -$lang['Update_order'] = 'Update Order'; -$lang['Config_updated'] = 'Forum Configuration Updated Successfully'; -$lang['Edit'] = 'Edit'; -$lang['Delete'] = 'Delete'; -$lang['Move_up'] = 'Move up'; -$lang['Move_down'] = 'Move down'; -$lang['Resync'] = 'Resync'; -$lang['No_mode'] = 'No mode was set'; -$lang['Forum_edit_delete_explain'] = 'The form below will allow you to customize all the general board options. For User and Forum configurations use the related links on the left hand side'; - -$lang['Move_contents'] = 'Move all contents'; -$lang['Forum_delete'] = 'Delete Forum'; -$lang['Forum_delete_explain'] = 'The form below will allow you to delete a forum (or category) and decide where you want to put all topics (or forums) it contained.'; - -$lang['Status_locked'] = 'Locked'; -$lang['Status_unlocked'] = 'Unlocked'; -$lang['Forum_settings'] = 'General Forum Settings'; -$lang['Forum_name'] = 'Forum name'; -$lang['Forum_desc'] = 'Description'; -$lang['Forum_status'] = 'Forum status'; -$lang['Forum_pruning'] = 'Auto-pruning'; - -$lang['prune_freq'] = 'Check for topic age every'; -$lang['prune_days'] = 'Remove topics that have not been posted to in'; -$lang['Set_prune_data'] = 'You have turned on auto-prune for this forum but did not set a frequency or number of days to prune. Please go back and do so.'; - -$lang['Move_and_Delete'] = 'Move and Delete'; - -$lang['Delete_all_posts'] = 'Delete all posts'; -$lang['Nowhere_to_move'] = 'Nowhere to move to'; - -$lang['Edit_Category'] = 'Edit Category'; -$lang['Edit_Category_explain'] = 'Use this form to modify a category\'s name.'; - -$lang['Forums_updated'] = 'Forum and Category information updated successfully'; - -$lang['Must_delete_forums'] = 'You need to delete all forums before you can delete this category'; - -$lang['Click_return_forumadmin'] = 'Click %sHere%s to return to Forum Administration'; - - -// -// Smiley Management -// -$lang['smiley_title'] = 'Smiles Editing Utility'; -$lang['smile_desc'] = 'From this page you can add, remove and edit the emoticons or smileys that your users can use in their posts and private messages.'; - -$lang['smiley_config'] = 'Smiley Configuration'; -$lang['smiley_code'] = 'Smiley Code'; -$lang['smiley_url'] = 'Smiley Image File'; -$lang['smiley_emot'] = 'Smiley Emotion'; -$lang['smile_add'] = 'Add a new Smiley'; -$lang['Smile'] = 'Smile'; -$lang['Emotion'] = 'Emotion'; - -$lang['Select_pak'] = 'Select Pack (.pak) File'; -$lang['replace_existing'] = 'Replace Existing Smiley'; -$lang['keep_existing'] = 'Keep Existing Smiley'; -$lang['smiley_import_inst'] = 'You should unzip the smiley package and upload all files to the appropriate Smiley directory for your installation. Then select the correct information in this form to import the smiley pack.'; -$lang['smiley_import'] = 'Smiley Pack Import'; -$lang['choose_smile_pak'] = 'Choose a Smile Pack .pak file'; -$lang['import'] = 'Import Smileys'; -$lang['smile_conflicts'] = 'What should be done in case of conflicts'; -$lang['del_existing_smileys'] = 'Delete existing smileys before import'; -$lang['import_smile_pack'] = 'Import Smiley Pack'; -$lang['export_smile_pack'] = 'Create Smiley Pack'; -$lang['export_smiles'] = 'To create a smiley pack from your currently installed smileys, click %sHere%s to download the smiles.pak file. Name this file appropriately making sure to keep the .pak file extension. Then create a zip file containing all of your smiley images plus this .pak configuration file.'; - -$lang['smiley_add_success'] = 'The Smiley was successfully added'; -$lang['smiley_edit_success'] = 'The Smiley was successfully updated'; -$lang['smiley_import_success'] = 'The Smiley Pack was imported successfully!'; -$lang['smiley_del_success'] = 'The Smiley was successfully removed'; -$lang['Click_return_smileadmin'] = 'Click %sHere%s to return to Smiley Administration'; - - -// -// User Management -// -$lang['User_admin'] = 'User Administration'; -$lang['User_admin_explain'] = 'Here you can change your users\' information and certain options. To modify the users\' permissions, please use the user and group permissions system.'; - -$lang['Look_up_user'] = 'Look up user'; - -$lang['Admin_user_fail'] = 'Couldn\'t update the user\'s profile.'; -$lang['Admin_user_updated'] = 'The user\'s profile was successfully updated.'; -$lang['Click_return_useradmin'] = 'Click %sHere%s to return to User Administration'; - -$lang['User_delete'] = 'Delete this user'; -$lang['User_delete_explain'] = 'Click here to delete this user; this cannot be undone.'; -$lang['User_deleted'] = 'User was successfully deleted.'; - -$lang['User_status'] = 'User is active'; -$lang['User_allowpm'] = 'Can send Private Messages'; -$lang['User_allowavatar'] = 'Can display avatar'; - -$lang['Admin_avatar_explain'] = 'Here you can see and delete the user\'s current avatar.'; - -$lang['User_special'] = 'Special admin-only fields'; -$lang['User_special_explain'] = 'These fields are not able to be modified by the users. Here you can set their status and other options that are not given to users.'; - - -// -// Group Management -// -$lang['Group_administration'] = 'Group Administration'; -$lang['Group_admin_explain'] = 'From this panel you can administer all your usergroups. You can delete, create and edit existing groups. You may choose moderators, toggle open/closed group status and set the group name and description'; -$lang['Error_updating_groups'] = 'There was an error while updating the groups'; -$lang['Updated_group'] = 'The group was successfully updated'; -$lang['Added_new_group'] = 'The new group was successfully created'; -$lang['Deleted_group'] = 'The group was successfully deleted'; -$lang['New_group'] = 'Create new group'; -$lang['Edit_group'] = 'Edit group'; -$lang['group_name'] = 'Group name'; -$lang['group_description'] = 'Group description'; -$lang['group_moderator'] = 'Group moderator'; -$lang['group_status'] = 'Group status'; -$lang['group_open'] = 'Open group'; -$lang['group_closed'] = 'Closed group'; -$lang['group_hidden'] = 'Hidden group'; -$lang['group_delete'] = 'Delete group'; -$lang['group_delete_check'] = 'Delete this group'; -$lang['submit_group_changes'] = 'Submit Changes'; -$lang['reset_group_changes'] = 'Reset Changes'; -$lang['No_group_name'] = 'You must specify a name for this group'; -$lang['No_group_moderator'] = 'You must specify a moderator for this group'; -$lang['No_group_mode'] = 'You must specify a mode for this group, open or closed'; -$lang['No_group_action'] = 'No action was specified'; -$lang['delete_group_moderator'] = 'Delete the old group moderator?'; -$lang['delete_moderator_explain'] = 'If you\'re changing the group moderator, check this box to remove the old moderator from the group. Otherwise, do not check it, and the user will become a regular member of the group.'; -$lang['Click_return_groupsadmin'] = 'Click %sHere%s to return to Group Administration.'; -$lang['Select_group'] = 'Select a group'; -$lang['Look_up_group'] = 'Look up group'; - - -// -// Prune Administration -// -$lang['Forum_Prune'] = 'Forum Prune'; -$lang['Forum_Prune_explain'] = 'This will delete any topic which has not been posted to within the number of days you select. If you do not enter a number then all topics will be deleted. It will not remove topics in which polls are still running nor will it remove announcements. You will need to remove those topics manually.'; -$lang['Do_Prune'] = 'Do Prune'; -$lang['All_Forums'] = 'All Forums'; -$lang['Prune_topics_not_posted'] = 'Prune topics with no replies in this many days'; -$lang['Topics_pruned'] = 'Topics pruned'; -$lang['Posts_pruned'] = 'Posts pruned'; -$lang['Prune_success'] = 'Pruning of forums was successful'; - - -// -// Word censor -// -$lang['Words_title'] = 'Word Censoring'; -$lang['Words_explain'] = 'From this control panel you can add, edit, and remove words that will be automatically censored on your forums. In addition people will not be allowed to register with usernames containing these words. Wildcards (*) are accepted in the word field. For example, *test* will match detestable, test* would match testing, *test would match detest.'; -$lang['Word'] = 'Word'; -$lang['Edit_word_censor'] = 'Edit word censor'; -$lang['Replacement'] = 'Replacement'; -$lang['Add_new_word'] = 'Add new word'; -$lang['Update_word'] = 'Update word censor'; - -$lang['Must_enter_word'] = 'You must enter a word and its replacement'; -$lang['No_word_selected'] = 'No word selected for editing'; - -$lang['Word_updated'] = 'The selected word censor has been successfully updated'; -$lang['Word_added'] = 'The word censor has been successfully added'; -$lang['Word_removed'] = 'The selected word censor has been successfully removed'; - -$lang['Click_return_wordadmin'] = 'Click %sHere%s to return to Word Censor Administration'; - - -// -// Mass Email -// -$lang['Mass_email_explain'] = 'Here you can email a message to either all of your users or all users of a specific group. To do this, an email will be sent out to the administrative email address supplied, with a blind carbon copy sent to all recipients. If you are emailing a large group of people please be patient after submitting and do not stop the page halfway through. It is normal for a mass emailing to take a long time and you will be notified when the script has completed'; -$lang['Compose'] = 'Compose'; - -$lang['Recipients'] = 'Recipients'; -$lang['All_users'] = 'All Users'; - -$lang['Email_successfull'] = 'Your message has been sent'; -$lang['Click_return_massemail'] = 'Click %sHere%s to return to the Mass Email form'; - - -// -// Ranks admin -// -$lang['Ranks_title'] = 'Rank Administration'; -$lang['Ranks_explain'] = 'Using this form you can add, edit, view and delete ranks. You can also create custom ranks which can be applied to a user via the user management facility'; - -$lang['Add_new_rank'] = 'Add new rank'; - -$lang['Rank_title'] = 'Rank Title'; -$lang['Rank_special'] = 'Set as Special Rank'; -$lang['Rank_minimum'] = 'Minimum Posts'; -$lang['Rank_maximum'] = 'Maximum Posts'; -$lang['Rank_image'] = 'Rank Image (Relative to phpBB2 root path)'; -$lang['Rank_image_explain'] = 'Use this to define a small image associated with the rank'; - -$lang['Must_select_rank'] = 'You must select a rank'; -$lang['No_assigned_rank'] = 'No special rank assigned'; - -$lang['Rank_updated'] = 'The rank was successfully updated'; -$lang['Rank_added'] = 'The rank was successfully added'; -$lang['Rank_removed'] = 'The rank was successfully deleted'; -$lang['No_update_ranks'] = 'The rank was successfully deleted. However, user accounts using this rank were not updated. You will need to manually reset the rank on these accounts'; - -$lang['Click_return_rankadmin'] = 'Click %sHere%s to return to Rank Administration'; - - -// -// Disallow Username Admin -// -$lang['Disallow_control'] = 'Username Disallow Control'; -$lang['Disallow_explain'] = 'Here you can control usernames which will not be allowed to be used. Disallowed usernames are allowed to contain a wildcard character of *. Please note that you will not be allowed to specify any username that has already been registered. You must first delete that name then disallow it.'; - -$lang['Delete_disallow'] = 'Delete'; -$lang['Delete_disallow_title'] = 'Remove a Disallowed Username'; -$lang['Delete_disallow_explain'] = 'You can remove a disallowed username by selecting the username from this list and clicking submit'; - -$lang['Add_disallow'] = 'Add'; -$lang['Add_disallow_title'] = 'Add a disallowed username'; -$lang['Add_disallow_explain'] = 'You can disallow a username using the wildcard character * to match any character'; - -$lang['No_disallowed'] = 'No Disallowed Usernames'; - -$lang['Disallowed_deleted'] = 'The disallowed username has been successfully removed'; -$lang['Disallow_successful'] = 'The disallowed username has been successfully added'; -$lang['Disallowed_already'] = 'The name you entered could not be disallowed. It either already exists in the list, exists in the word censor list, or a matching username is present.'; - -$lang['Click_return_disallowadmin'] = 'Click %sHere%s to return to Disallow Username Administration'; - - -// -// Styles Admin -// -$lang['Styles_admin'] = 'Styles Administration'; -$lang['Styles_explain'] = 'Using this facility you can add, remove and manage styles (templates and themes) available to your users'; -$lang['Styles_addnew_explain'] = 'The following list contains all the themes that are available for the templates you currently have. The items on this list have not yet been installed into the phpBB database. To install a theme, simply click the install link beside an entry.'; - -$lang['Select_template'] = 'Select a Template'; - -$lang['Style'] = 'Style'; -$lang['Template'] = 'Template'; -$lang['Install'] = 'Install'; -$lang['Download'] = 'Download'; - -$lang['Edit_theme'] = 'Edit Theme'; -$lang['Edit_theme_explain'] = 'In the form below you can edit the settings for the selected theme'; - -$lang['Create_theme'] = 'Create Theme'; -$lang['Create_theme_explain'] = 'Use the form below to create a new theme for a selected template. When entering colours (for which you should use hexadecimal notation) you must not include the initial #, i.e.. CCCCCC is valid, #CCCCCC is not'; - -$lang['Export_themes'] = 'Export Themes'; -$lang['Export_explain'] = 'In this panel you will be able to export the theme data for a selected template. Select the template from the list below and the script will create the theme configuration file and attempt to save it to the selected template directory. If it cannot save the file itself it will give you the option to download it. In order for the script to save the file you must give write access to the webserver for the selected template dir. For more information on this see the phpBB 2 users guide.'; - -$lang['Theme_installed'] = 'The selected theme has been installed successfully'; -$lang['Style_removed'] = 'The selected style has been removed from the database. To fully remove this style from your system you must delete the appropriate style from your templates directory.'; -$lang['Theme_info_saved'] = 'The theme information for the selected template has been saved. You should now return the permissions on the theme_info.cfg (and if applicable the selected template directory) to read-only'; -$lang['Theme_updated'] = 'The selected theme has been updated. You should now export the new theme settings'; -$lang['Theme_created'] = 'Theme created. You should now export the theme to the theme configuration file for safe keeping or use elsewhere'; - -$lang['Confirm_delete_style'] = 'Are you sure you want to delete this style?'; - -$lang['Download_theme_cfg'] = 'The exporter could not write the theme information file. Click the button below to download this file with your browser. Once you have downloaded it you can transfer it to the directory containing the template files. You can then package the files for distribution or use elsewhere if you desire'; -$lang['No_themes'] = 'The template you selected has no themes attached to it. To create a new theme click the Create New link on the left hand panel'; -$lang['No_template_dir'] = 'Could not open the template directory. It may be unreadable by the webserver or may not exist'; -$lang['Cannot_remove_style'] = 'You cannot remove the style selected since it is currently the forum default. Please change the default style and try again.'; -$lang['Style_exists'] = 'The style name to selected already exists, please go back and choose a different name.'; - -$lang['Click_return_styleadmin'] = 'Click %sHere%s to return to Style Administration'; - -$lang['Theme_settings'] = 'Theme Settings'; -$lang['Theme_element'] = 'Theme Element'; -$lang['Simple_name'] = 'Simple Name'; -$lang['Value'] = 'Value'; -$lang['Save_Settings'] = 'Save Settings'; - -$lang['Stylesheet'] = 'CSS Stylesheet'; -$lang['Background_image'] = 'Background Image'; -$lang['Background_color'] = 'Background Colour'; -$lang['Theme_name'] = 'Theme Name'; -$lang['Link_color'] = 'Link Colour'; -$lang['Text_color'] = 'Text Colour'; -$lang['VLink_color'] = 'Visited Link Colour'; -$lang['ALink_color'] = 'Active Link Colour'; -$lang['HLink_color'] = 'Hover Link Colour'; -$lang['Tr_color1'] = 'Table Row Colour 1'; -$lang['Tr_color2'] = 'Table Row Colour 2'; -$lang['Tr_color3'] = 'Table Row Colour 3'; -$lang['Tr_class1'] = 'Table Row Class 1'; -$lang['Tr_class2'] = 'Table Row Class 2'; -$lang['Tr_class3'] = 'Table Row Class 3'; -$lang['Th_color1'] = 'Table Header Colour 1'; -$lang['Th_color2'] = 'Table Header Colour 2'; -$lang['Th_color3'] = 'Table Header Colour 3'; -$lang['Th_class1'] = 'Table Header Class 1'; -$lang['Th_class2'] = 'Table Header Class 2'; -$lang['Th_class3'] = 'Table Header Class 3'; -$lang['Td_color1'] = 'Table Cell Colour 1'; -$lang['Td_color2'] = 'Table Cell Colour 2'; -$lang['Td_color3'] = 'Table Cell Colour 3'; -$lang['Td_class1'] = 'Table Cell Class 1'; -$lang['Td_class2'] = 'Table Cell Class 2'; -$lang['Td_class3'] = 'Table Cell Class 3'; -$lang['fontface1'] = 'Font Face 1'; -$lang['fontface2'] = 'Font Face 2'; -$lang['fontface3'] = 'Font Face 3'; -$lang['fontsize1'] = 'Font Size 1'; -$lang['fontsize2'] = 'Font Size 2'; -$lang['fontsize3'] = 'Font Size 3'; -$lang['fontcolor1'] = 'Font Colour 1'; -$lang['fontcolor2'] = 'Font Colour 2'; -$lang['fontcolor3'] = 'Font Colour 3'; -$lang['span_class1'] = 'Span Class 1'; -$lang['span_class2'] = 'Span Class 2'; -$lang['span_class3'] = 'Span Class 3'; -$lang['img_poll_size'] = 'Polling Image Size [px]'; -$lang['img_pm_size'] = 'Private Message Status size [px]'; - - -// -// Install Process -// -$lang['Welcome_install'] = 'Welcome to phpBB 2 Installation'; -$lang['Initial_config'] = 'Basic Configuration'; -$lang['DB_config'] = 'Database Configuration'; -$lang['Admin_config'] = 'Admin Configuration'; -$lang['continue_upgrade'] = 'Once you have downloaded your config file to your local machine you may\'Continue Upgrade\' button below to move forward with the upgrade process. Please wait to upload the config file until the upgrade process is complete.'; -$lang['upgrade_submit'] = 'Continue Upgrade'; - -$lang['Installer_Error'] = 'An error has occurred during installation'; -$lang['Previous_Install'] = 'A previous installation has been detected'; -$lang['Install_db_error'] = 'An error occurred trying to update the database'; - -$lang['Re_install'] = 'Your previous installation is still active.

    If you would like to re-install phpBB 2 you should click the Yes button below. Please be aware that doing so will destroy all existing data and no backups will be made! The administrator username and password you have used to login in to the board will be re-created after the re-installation and no other settings will be retained.

    Think carefully before pressing Yes!'; - -$lang['Inst_Step_0'] = 'Thank you for choosing phpBB 2. In order to complete this install please fill out the details requested below. Please note that the database you install into should already exist. If you are installing to a database that uses ODBC, e.g. MS Access you should first create a DSN for it before proceeding.'; - -$lang['Start_Install'] = 'Start Install'; -$lang['Finish_Install'] = 'Finish Installation'; - -$lang['Default_lang'] = 'Default board language'; -$lang['DB_Host'] = 'Database Server Hostname / DSN'; -$lang['DB_Name'] = 'Your Database Name'; -$lang['DB_Username'] = 'Database Username'; -$lang['DB_Password'] = 'Database Password'; -$lang['Database'] = 'Your Database'; -$lang['Install_lang'] = 'Choose Language for Installation'; -$lang['dbms'] = 'Database Type'; -$lang['Table_Prefix'] = 'Prefix for tables in database'; -$lang['Admin_Username'] = 'Administrator Username'; -$lang['Admin_Password'] = 'Administrator Password'; -$lang['Admin_Password_confirm'] = 'Administrator Password [ Confirm ]'; - -$lang['Inst_Step_2'] = 'Your admin username has been created. At this point your basic installation is complete. You will now be taken to a screen which will allow you to administer your new installation. Please be sure to check the General Configuration details and make any required changes. Thank you for choosing phpBB 2.'; - -$lang['Unwriteable_config'] = 'Your config file is un-writeable at present. A copy of the config file will be downloaded to your computer when you click the button below. You should upload this file to the same directory as phpBB 2. Once this is done you should log in using the administrator name and password you provided on the previous form and visit the admin control center (a link will appear at the bottom of each screen once logged in) to check the general configuration. Thank you for choosing phpBB 2.'; -$lang['Download_config'] = 'Download Config'; - -$lang['ftp_choose'] = 'Choose Download Method'; -$lang['ftp_option'] = '
    Since FTP extensions are enabled in this version of PHP you may also be given the option of first trying to automatically FTP the config file into place.'; -$lang['ftp_instructs'] = 'You have chosen to FTP the file to the account containing phpBB 2 automatically. Please enter the information below to facilitate this process. Note that the FTP path should be the exact path via FTP to your phpBB2 installation as if you were FTPing to it using any normal client.'; -$lang['ftp_info'] = 'Enter Your FTP Information'; -$lang['Attempt_ftp'] = 'Attempt to FTP config file into place'; -$lang['Send_file'] = 'Just send the file to me and I\'ll FTP it manually'; -$lang['ftp_path'] = 'FTP path to phpBB 2'; -$lang['ftp_username'] = 'Your FTP Username'; -$lang['ftp_password'] = 'Your FTP Password'; -$lang['Transfer_config'] = 'Start Transfer'; -$lang['NoFTP_config'] = 'The attempt to FTP the config file into place failed. Please download the config file and FTP it into place manually.'; - -$lang['Install'] = 'Install'; -$lang['Upgrade'] = 'Upgrade'; - - -$lang['Install_Method'] = 'Choose your installation method'; - -$lang['Install_No_Ext'] = 'The PHP configuration on your server doesn\'t support the database type that you chose'; - -$lang['Install_No_PCRE'] = 'phpBB2 Requires the Perl-Compatible Regular Expressions Module for PHP which your PHP configuration doesn\'t appear to support!'; - -// -// That's all Folks! -// ------------------------------------------------- - -?> \ No newline at end of file diff --git a/phpBB2_old/language/lang_english/lang_bbcode.php b/phpBB2_old/language/lang_english/lang_bbcode.php deleted file mode 100644 index 8ee19b0..0000000 --- a/phpBB2_old/language/lang_english/lang_bbcode.php +++ /dev/null @@ -1,75 +0,0 @@ -
  • To make a piece of text bold enclose it in [b][/b], eg.

    [b]Hello[/b]

    will become Hello
  • For underlining use [u][/u], for example:

    [u]Good Morning[/u]

    becomes Good Morning
  • To italicise text use [i][/i], eg.

    This is [i]Great![/i]

    would give This is Great!
  • "); -$faq[] = array("How to change the text colour or size", "To alter the color or size of your text the following tags can be used. Keep in mind that how the output appears will depend on the viewers browser and system:
    • Changing the colour of text is achieved by wrapping it in [color=][/color]. You can specify either a recognised colour name (eg. red, blue, yellow, etc.) or the hexadecimal triplet alternative, eg. #FFFFFF, #000000. For example, to create red text you could use:

      [color=red]Hello![/color]

      or

      [color=#FF0000]Hello![/color]

      will both output Hello!
    • Changing the text size is achieved in a similar way using [size=][/size]. This tag is dependent on the template you are using but the recommended format is a numerical value representing the text size in pixels, starting at 1 (so tiny you will not see it) through to 29 (very large). For example:

      [size=9]SMALL[/size]

      will generally be SMALL

      whereas:

      [size=24]HUGE![/size]

      will be HUGE!
    "); -$faq[] = array("Can I combine formatting tags?", "Yes, of course you can; for example to get someones attention you may write:

    [size=18][color=red][b]LOOK AT ME![/b][/color][/size]

    this would output LOOK AT ME!

    We don't recommend you output lots of text that looks like this, though! Remember that it is up to you, the poster, to ensure that tags are closed correctly. For example, the following is incorrect:

    [b][u]This is wrong[/b][/u]"); - -$faq[] = array("--","Quoting and outputting fixed-width text"); -$faq[] = array("Quoting text in replies", "There are two ways you can quote text: with a reference or without.
    • When you utilise the Quote function to reply to a post on the board you should notice that the post text is added to the message window enclosed in a [quote=\"\"][/quote] block. This method allows you to quote with a reference to a person or whatever else you choose to put. For example, to quote a piece of text Mr. Blobby wrote, you would enter:

      [quote=\"Mr. Blobby\"]The text Mr. Blobby wrote would go here[/quote]

      The resulting output will automatically add: Mr. Blobby wrote: before the actual text. Remember that you must include the quotation marks \"\" around the name you are quoting -- they are not optional.
    • The second method allows you to blindly quote something. To utilise this enclose the text in [quote][/quote] tags. When you view the message it will simply show: Quote: before the text itself.
    "); -$faq[] = array("Outputting code or fixed width data", "If you want to output a piece of code or in fact anything that requires a fixed width with a Courier-type font, you should enclose the text in [code][/code] tags, eg.

    [code]echo \"This is some code\";[/code]

    All formatting used within [code][/code] tags is retained when you later view it."); - -$faq[] = array("--","Generating lists"); -$faq[] = array("Creating an Un-ordered list", "BBCode supports two types of lists, unordered and ordered. They are essentially the same as their HTML equivalents. An unordered list ouputs each item in your list sequentially one after the other indenting each with a bullet character. To create an unordered list you use [list][/list] and define each item within the list using [*]. For example, to list your favorite colours you could use:

    [list]
    [*]Red
    [*]Blue
    [*]Yellow
    [/list]

    This would generate the following list:
    • Red
    • Blue
    • Yellow
    "); -$faq[] = array("Creating an Ordered list", "The second type of list, an ordered list gives you control over what is output before each item. To create an ordered list you use [list=1][/list] to create a numbered list or alternatively [list=a][/list] for an alphabetical list. As with the unordered list items are specified using [*]. For example:

    [list=1]
    [*]Go to the shops
    [*]Buy a new computer
    [*]Swear at computer when it crashes
    [/list]

    will generate the following:
    1. Go to the shops
    2. Buy a new computer
    3. Swear at computer when it crashes
    Whereas for an alphabetical list you would use:

    [list=a]
    [*]The first possible answer
    [*]The second possible answer
    [*]The third possible answer
    [/list]

    giving
    1. The first possible answer
    2. The second possible answer
    3. The third possible answer
    "); - -$faq[] = array("--", "Creating Links"); -$faq[] = array("Linking to another site", "phpBB BBCode supports a number of ways of creating URIs, Uniform Resource Indicators better known as URLs.
    • The first of these uses the [url=][/url] tag; whatever you type after the = sign will cause the contents of that tag to act as a URL. For example, to link to phpBB.com you could use:

      [url=http://www.phpbb.com/]Visit phpBB![/url]

      This would generate the following link, Visit phpBB! You will notice the link opens in a new window so the user can continue browsing the forums if they wish.
    • If you want the URL itself displayed as the link you can do this by simply using:

      [url]http://www.phpbb.com/[/url]

      This would generate the following link: http://www.phpbb.com/
    • Additionally phpBB features something called Magic Linkswhich will turn any syntatically correct URL into a link without you needing to specify any tags or even the leading http://. For example typing www.phpbb.com into your message will automatically lead to www.phpbb.com being output when you view the message.
    • The same thing applies equally to email addresses; you can either specify an address explicitly, like:

      [email]no.one@domain.adr[/email]

      which will output no.one@domain.adr or you can just type no.one@domain.adr into your message and it will be automatically converted when you view.
    As with all the BBCode tags you can wrap URLs around any of the other tags such as [img][/img] (see next entry), [b][/b], etc. As with the formatting tags it is up to you to ensure the correct open and close order is following. For example:

    [url=http://www.phpbb.com/][img]http://www.phpbb.com/images/phplogo.gif[/url][/img]

    is not correct which may lead to your post being deleted so take care."); - -$faq[] = array("--", "Showing images in posts"); -$faq[] = array("Adding an image to a post", "phpBB BBCode incorporates a tag for including images in your posts. Two very important things to remember when using this tag are: many users do not appreciate lots of images being shown in posts and second, the image you display must already be available on the Internet (it cannot exist only on your computer, for example, unless you run a webserver!). There is currently no way of storing images locally with phpBB (all these issues are expected to be addressed in the next release of phpBB). To display an image, you must surround the URL pointing to the image with [img][/img] tags. For example:

    [img]http://www.phpbb.com/images/phplogo.gif[/img]

    As noted in the URL section above you can wrap an image in a [url][/url] tag if you wish, eg.

    [url=http://www.phpbb.com/][img]http://www.phpbb.com/images/phplogo.gif[/img][/url]

    would generate:

    \"\"
    "); - -$faq[] = array("--", "Other matters"); -$faq[] = array("Can I add my own tags?", "No, I am afraid not directly in phpBB 2.0. We are looking at offering customisable BBCode tags for the next major version."); - -// -// This ends the BBCode guide entries -// - -?> \ No newline at end of file diff --git a/phpBB2_old/language/lang_english/lang_faq.php b/phpBB2_old/language/lang_english/lang_faq.php deleted file mode 100644 index 608d3f7..0000000 --- a/phpBB2_old/language/lang_english/lang_faq.php +++ /dev/null @@ -1,106 +0,0 @@ -Log me in automatically box when you log in, the board will only keep you logged in for a preset time. This prevents misuse of your account by anyone else. To stay logged in, check the box during login. This is not recommended if you access the board from a shared computer, e.g. library, internet cafe, university cluster, etc."); -$faq[] = array("How do I prevent my username from appearing in the online user listings?", "In your profile you will find an option Hide your online status; if you switch this on you'll only appear to board administrators or to yourself. You will be counted as a hidden user."); -$faq[] = array("I've lost my password!", "Don't panic! While your password cannot be retrieved it can be reset. To do this go to the login page and click I've forgotten my password. Follow the instructions and you should be back online in no time."); -$faq[] = array("I registered but cannot log in!", "First check that you are entering the correct username and password. If they are okay then one of two things may have happened: if COPPA support is enabled and you clicked the I am under 13 years old link while registering then you will have to follow the instructions you received. If this is not the case then maybe your account need activating. Some boards will require all new registrations be activated, either by yourself or by the administrator before you can log on. When you registered it would have told you whether activation was required. If you were sent an email then follow the instructions; if you did not receive the email then check that your email address is valid. One reason activation is used is to reduce the possibility of rogue users abusing the board anonymously. If you are sure the email address you used is valid then try contacting the board administrator."); -$faq[] = array("I registered in the past but cannot log in anymore!", "The most likely reasons for this are: you entered an incorrect username or password (check the email you were sent when you first registered) or the administrator has deleted your account for some reason. If it is the latter case then perhaps you did not post anything? It is usual for boards to periodically remove users who have not posted anything so as to reduce the size of the database. Try registering again and get involved in discussions."); - - -$faq[] = array("--","User Preferences and settings"); -$faq[] = array("How do I change my settings?", "All your settings (if you are registered) are stored in the database. To alter them click the Profile link (generally shown at the top of pages but this may not be the case). This will allow you to change all your settings."); -$faq[] = array("The times are not correct!", "The times are almost certainly correct; however, what you may be seeing are times displayed in a timezone different from the one you are in. If this is the case, you should change your profile setting for the timezone to match your particular area, e.g. London, Paris, New York, Sydney, etc. Please note that changing the timezone, like most settings, can only be done by registered users. So if you are not registered, this is a good time to do so, if you pardon the pun!"); -$faq[] = array("I changed the timezone and the time is still wrong!", "If you are sure you have set the timezone correctly and the time is still different, the most likely answer is daylight savings time (or summer time as it is known in the UK and other places). The board is not designed to handle the changeovers between standard and daylight time so during summer months the time may be an hour different from the real local time."); -$faq[] = array("My language is not in the list!", "The most likely reasons for this are either the administrator did not install your language or someone has not translated this board into your language. Try asking the board administrator if they can install the language pack you need or if it does not exist, please feel free to create a new translation. More information can be found at the phpBB Group website (see link at bottom of pages)"); -$faq[] = array("How do I show an image below my username?", "There may be two images below a username when viewing posts. The first is an image associated with your rank; generally these take the form of stars or blocks indicating how many posts you have made or your status on the forums. Below this may be a larger image known as an avatar; this is generally unique or personal to each user. It is up to the board administrator to enable avatars and they have a choice over the way in which avatars can be made available. If you are unable to use avatars then this is the decision of the board admin and you should ask them their reasons (we're sure they'll be good!)"); -$faq[] = array("How do I change my rank?", "In general you cannot directly change the wording of any rank (ranks appear below your username in topics and on your profile depending on the style used). Most boards use ranks to indicate the number of posts you have made and to identify certain users. For example, moderators and administrators may have a special rank. Please do not abuse the board by posting unnecessarily just to increase your rank -- you will probably find the moderator or administrator will simply lower your post count."); -$faq[] = array("When I click the email link for a user it asks me to log in.", "Sorry, but only registered users can send email to people via the built-in email form (if the admin has enabled this feature). This is to prevent malicious use of the email system by anonymous users."); - - -$faq[] = array("--","Posting Issues"); -$faq[] = array("How do I post a topic in a forum?", "Easy -- click the relevant button on either the forum or topic screens. You may need to register before you can post a message. The facilities available to you are listed at the bottom of the forum and topic screens (the You can post new topics, You can vote in polls, etc. list)"); -$faq[] = array("How do I edit or delete a post?", "Unless you are the board admin or forum moderator you can only edit or delete your own posts. You can edit a post (sometimes for only a limited time after it was made) by clicking the edit button for the relevant post. If someone has already replied to the post, you will find a small piece of text output below the post when you return to the topic that lists the number of times you edited it. This will only appear if no one has replied; it also will not appear if moderators or administrators edit the post (they should leave a message saying what they altered and why). Please note that normal users cannot delete a post once someone has replied."); -$faq[] = array("How do I add a signature to my post?", "To add a signature to a post you must first create one; this is done via your profile. Once created you can check the Add Signature box on the posting form to add your signature. You can also add a signature by default to all your posts by checking the appropriate radio box in your profile. You can still prevent a signature being added to individual posts by un-checking the add signature box on the posting form."); -$faq[] = array("How do I create a poll?", "Creating a poll is easy -- when you post a new topic (or edit the first post of a topic, if you have permission) you should see a Add Poll form below the main posting box. If you cannot see this then you probably do not have rights to create polls. You should enter a title for the poll and then at least two options -- to set an option type in the poll question and click the Add option button. You can also set a time limit for the poll, 0 being an infinite amount. There will be a limit to the number of options you can list, which is set by the board administrator"); -$faq[] = array("How do I edit or delete a poll?", "As with posts, polls can only be edited by the original poster, a moderator, or board administrator. To edit a poll, click the first post in the topic, which always has the poll associated with it. If no one has cast a vote then users can delete the poll or edit any poll option. However, if people have already placed votes only moderators or administrators can edit or delete it; this is to prevent people rigging polls by changing options mid-way through a poll"); -$faq[] = array("Why can't I access a forum?", "Some forums may be limited to certain users or groups. To view, read, post, etc. you may need special authorization which only the forum moderator and board administrator can grant, so you should contact them."); -$faq[] = array("Why can't I vote in polls?", "Only registered users can vote in polls so as to prevent spoofing of results. If you have registered and still cannot vote then you probably do not have appropriate access rights."); - - -$faq[] = array("--","Formatting and Topic Types"); -$faq[] = array("What is BBCode?", "BBCode is a special implementation of HTML. Whether you can use BBCode is determined by the administrator. You can also disable it on a per post basis from the posting form. BBCode itself is similar in style to HTML: tags are enclosed in square braces [ and ] rather than < and > and it offers greater control over what and how something is displayed. For more information on BBCode see the guide which can be accessed from the posting page."); -$faq[] = array("Can I use HTML?", "That depends on whether the administrator allows you to; they have complete control over it. If you are allowed to use it, you will probably find only certain tags work. This is a safety feature to prevent people from abusing the board by using tags which may destroy the layout or cause other problems. If HTML is enabled you can disable it on a per post basis from the posting form."); -$faq[] = array("What are Smileys?", "Smileys, or Emoticons, are small graphical images which can be used to express some feeling using a short code, e.g. :) means happy, :( means sad. The full list of emoticons can be seen via the posting form. Try not to overuse smileys, though, as they can quickly render a post unreadable and a moderator may decide to edit them out or remove the post altogether."); -$faq[] = array("Can I post Images?", "Images can indeed be shown in your posts. However, there is no facility at present for uploading images directly to this board. Therefore you must link to an image stored on a publicly accessible web server, e.g. http://www.some-unknown-place.net/my-picture.gif. You cannot link to pictures stored on your own PC (unless it is a publicly accessible server) nor to images stored behind authentication mechanisms such as Hotmail or Yahoo mailboxes, password-protected sites, etc. To display the image use either the BBCode [img] tag or appropriate HTML (if allowed)."); -$faq[] = array("What are Announcements?", "Announcements often contain important information and you should read them as soon as possible. Announcements appear at the top of every page in the forum to which they are posted. Whether or not you can post an announcement depends on the permissions required, which are set by the administrator."); -$faq[] = array("What are Sticky topics?", "Sticky topics appear below any announcements in viewforum and only on the first page. They are often quite important so you should read them where possible. As with announcements the board administrator determines what permissions are required to post sticky topics in each forum."); -$faq[] = array("What are Locked topics?", "Locked topics are set this way by either the forum moderator or board administrator. You cannot reply to locked topics and any poll contained inside is automatically ended. Topics may be locked for many reasons."); - - -$faq[] = array("--","User Levels and Groups"); -$faq[] = array("What are Administrators?", "Administrators are people assigned the highest level of control over the entire board. These people can control all facets of board operation which include setting permissions, banning users, creating usergroups or moderators, etc. They also have full moderator capabilities in all the forums."); -$faq[] = array("What are Moderators?", "Moderators are individuals (or groups of individuals) whose job it is to look after the running of the forums from day to day. They have the power to edit or delete posts and lock, unlock, move, delete and split topics in the forum they moderate. Generally moderators are there to prevent people going off-topic or posting abusive or offensive material."); -$faq[] = array("What are Usergroups?", "Usergroups are a way in which board administrators can group users. Each user can belong to several groups (this differs from most other boards) and each group can be assigned individual access rights. This makes it easy for administrators to set up several users as moderators of a forum, or to give them access to a private forum, etc."); -$faq[] = array("How do I join a Usergroup?", "To join a usergroup click the usergroup link on the page header (dependent on template design) and you can then view all usergroups. Not all groups are open access -- some are closed and some may even have hidden memberships. If the board is open then you can request to join it by clicking the appropriate button. The user group moderator will need to approve your request; they may ask why you want to join the group. Please do not pester a group moderator if they turn your request down -- they will have their reasons."); -$faq[] = array("How do I become a Usergroup Moderator?", "Usergroups are initially created by the board administrator who also assigns a board moderator. If you are interested in creating a usergroup then your first point of contact should be the administrator, so try dropping them a private message."); - - -$faq[] = array("--","Private Messaging"); -$faq[] = array("I cannot send private messages!", "There are three reasons for this; you are not registered and/or not logged on, the board administrator has disabled private messaging for the entire board, or the board administrator has prevented you individually from sending messages. If it is the latter case you should try asking the administrator why."); -$faq[] = array("I keep getting unwanted private messages!", "In the future we will be adding an ignore list to the private messaging system. For now, though, if you keep receiving unwanted private messages from someone, inform the board administrator -- they have the power to prevent a user from sending private messages at all."); -$faq[] = array("I have received a spamming or abusive email from someone on this board!", "We are sorry to hear that. The email form feature of this board includes safeguards to try to track users who send such posts. You should email the board administrator with a full copy of the email you received and it is very important this include the headers (these list details of the user that sent the email). They can then take action."); - -// -// These entries should remain in all languages and for all modifications -// -$faq[] = array("--","phpBB 2 Issues"); -$faq[] = array("Who wrote this bulletin board?", "This software (in its unmodified form) is produced, released and is copyrighted phpBB Group. It is made available under the GNU General Public License and may be freely distributed; see link for more details"); -$faq[] = array("Why isn't X feature available?", "This software was written by and licensed through phpBB Group. If you believe a feature needs to be added then please visit the phpbb.com website and see what the phpBB Group has to say. Please do not post feature requests to the board at phpbb.com, as the Group uses sourceforge to handle tasking of new features. Please read through the forums and see what, if any, our position may already be for features and then follow the procedure given there."); -$faq[] = array("Whom do I contact about abusive and/or legal matters related to this board?", "You should contact the administrator of this board. If you cannot find who that is, you should first contact one of the forum moderators and ask them who you should in turn contact. If still get no response you should contact the owner of the domain (do a whois lookup) or, if this is running on a free service (e.g. yahoo, free.fr, f2s.com, etc.), the management or abuse department of that service. Please note that phpBB Group has absolutely no control and cannot in any way be held liable over how, where or by whom this board is used. It is absolutely pointless contacting phpBB Group in relation to any legal (cease and desist, liable, defamatory comment, etc.) matter not directly related to the phpbb.com website or the discrete software of phpBB itself. If you do email phpBB Group about any third party use of this software then you should expect a terse response or no response at all."); - -// -// This ends the FAQ entries -// - -?> \ No newline at end of file diff --git a/phpBB2_old/language/lang_english/lang_main.php b/phpBB2_old/language/lang_english/lang_main.php deleted file mode 100644 index 01239f8..0000000 --- a/phpBB2_old/language/lang_english/lang_main.php +++ /dev/null @@ -1,1025 +0,0 @@ - $lang['message'] = 'text'; -// -// You should also try to set a locale and a character encoding (plus direction). The encoding and direction -// will be sent to the template. The locale may or may not work, it's dependent on OS support and the syntax -// varies ... give it your best guess! -// - -$lang['ENCODING'] = 'iso-8859-1'; -$lang['DIRECTION'] = 'ltr'; -$lang['LEFT'] = 'left'; -$lang['RIGHT'] = 'right'; -$lang['DATE_FORMAT'] = 'd M Y'; // This should be changed to the default date format for your language, php date() format - -// This is optional, if you would like a _SHORT_ message output -// along with our copyright message indicating you are the translator -// please add it here. -// $lang['TRANSLATION'] = ''; - -// -// Common, these terms are used -// extensively on several pages -// -$lang['Forum'] = 'Forum'; -$lang['Category'] = 'Category'; -$lang['Topic'] = 'Topic'; -$lang['Topics'] = 'Topics'; -$lang['Replies'] = 'Replies'; -$lang['Views'] = 'Views'; -$lang['Post'] = 'Post'; -$lang['Posts'] = 'Posts'; -$lang['Posted'] = 'Posted'; -$lang['Username'] = 'Username'; -$lang['Password'] = 'Password'; -$lang['Email'] = 'Email'; -$lang['Poster'] = 'Poster'; -$lang['Author'] = 'Author'; -$lang['Time'] = 'Time'; -$lang['Hours'] = 'Hours'; -$lang['Message'] = 'Message'; - -$lang['1_Day'] = '1 Day'; -$lang['7_Days'] = '7 Days'; -$lang['2_Weeks'] = '2 Weeks'; -$lang['1_Month'] = '1 Month'; -$lang['3_Months'] = '3 Months'; -$lang['6_Months'] = '6 Months'; -$lang['1_Year'] = '1 Year'; - -$lang['Go'] = 'Go'; -$lang['Jump_to'] = 'Jump to'; -$lang['Submit'] = 'Submit'; -$lang['Reset'] = 'Reset'; -$lang['Cancel'] = 'Cancel'; -$lang['Preview'] = 'Preview'; -$lang['Confirm'] = 'Confirm'; -$lang['Spellcheck'] = 'Spellcheck'; -$lang['Yes'] = 'Yes'; -$lang['No'] = 'No'; -$lang['Enabled'] = 'Enabled'; -$lang['Disabled'] = 'Disabled'; -$lang['Error'] = 'Error'; - -$lang['Next'] = 'Next'; -$lang['Previous'] = 'Previous'; -$lang['Goto_page'] = 'Goto page'; -$lang['Joined'] = 'Joined'; -$lang['IP_Address'] = 'IP Address'; - -$lang['Select_forum'] = 'Select a forum'; -$lang['View_latest_post'] = 'View latest post'; -$lang['View_newest_post'] = 'View newest post'; -$lang['Page_of'] = 'Page %d of %d'; // Replaces with: Page 1 of 2 for example - -$lang['ICQ'] = 'ICQ Number'; -$lang['AIM'] = 'AIM Address'; -$lang['MSNM'] = 'MSN Messenger'; -$lang['YIM'] = 'Yahoo Messenger'; - -$lang['Forum_Index'] = '%s Forum Index'; // eg. sitename Forum Index, %s can be removed if you prefer - -$lang['Post_new_topic'] = 'Post new topic'; -$lang['Reply_to_topic'] = 'Reply to topic'; -$lang['Reply_with_quote'] = 'Reply with quote'; - -$lang['Click_return_topic'] = 'Click %sHere%s to return to the topic'; // %s's here are for uris, do not remove! -$lang['Click_return_login'] = 'Click %sHere%s to try again'; -$lang['Click_return_forum'] = 'Click %sHere%s to return to the forum'; -$lang['Click_view_message'] = 'Click %sHere%s to view your message'; -$lang['Click_return_modcp'] = 'Click %sHere%s to return to the Moderator Control Panel'; -$lang['Click_return_group'] = 'Click %sHere%s to return to group information'; - -$lang['Admin_panel'] = 'Go to Administration Panel'; - -$lang['Board_disable'] = 'Sorry, but this board is currently unavailable. Please try again later.'; - - -// -// Global Header strings -// -$lang['Registered_users'] = 'Registered Users:'; -$lang['Browsing_forum'] = 'Users browsing this forum:'; -$lang['Online_users_zero_total'] = 'In total there are 0 users online :: '; -$lang['Online_users_total'] = 'In total there are %d users online :: '; -$lang['Online_user_total'] = 'In total there is %d user online :: '; -$lang['Reg_users_zero_total'] = '0 Registered, '; -$lang['Reg_users_total'] = '%d Registered, '; -$lang['Reg_user_total'] = '%d Registered, '; -$lang['Hidden_users_zero_total'] = '0 Hidden and '; -$lang['Hidden_user_total'] = '%d Hidden and '; -$lang['Hidden_users_total'] = '%d Hidden and '; -$lang['Guest_users_zero_total'] = '0 Guests'; -$lang['Guest_users_total'] = '%d Guests'; -$lang['Guest_user_total'] = '%d Guest'; -$lang['Record_online_users'] = 'Most users ever online was %s on %s'; // first %s = number of users, second %s is the date. - -$lang['Admin_online_color'] = '%sAdministrator%s'; -$lang['Mod_online_color'] = '%sModerator%s'; - -$lang['You_last_visit'] = 'You last visited on %s'; // %s replaced by date/time -$lang['Current_time'] = 'The time now is %s'; // %s replaced by time - -$lang['Search_new'] = 'View posts since last visit'; -$lang['Search_your_posts'] = 'View your posts'; -$lang['Search_unanswered'] = 'View unanswered posts'; - -$lang['Register'] = 'Register'; -$lang['Profile'] = 'Profile'; -$lang['Edit_profile'] = 'Edit your profile'; -$lang['Search'] = 'Search'; -$lang['Memberlist'] = 'Memberlist'; -$lang['FAQ'] = 'FAQ'; -$lang['BBCode_guide'] = 'BBCode Guide'; -$lang['Usergroups'] = 'Usergroups'; -$lang['Last_Post'] = 'Last Post'; -$lang['Moderator'] = 'Moderator'; -$lang['Moderators'] = 'Moderators'; - - -// -// Stats block text -// -$lang['Posted_articles_zero_total'] = 'Our users have posted a total of 0 articles'; // Number of posts -$lang['Posted_articles_total'] = 'Our users have posted a total of %d articles'; // Number of posts -$lang['Posted_article_total'] = 'Our users have posted a total of %d article'; // Number of posts -$lang['Registered_users_zero_total'] = 'We have 0 registered users'; // # registered users -$lang['Registered_users_total'] = 'We have %d registered users'; // # registered users -$lang['Registered_user_total'] = 'We have %d registered user'; // # registered users -$lang['Newest_user'] = 'The newest registered user is %s%s%s'; // a href, username, /a - -$lang['No_new_posts_last_visit'] = 'No new posts since your last visit'; -$lang['No_new_posts'] = 'No new posts'; -$lang['New_posts'] = 'New posts'; -$lang['New_post'] = 'New post'; -$lang['No_new_posts_hot'] = 'No new posts [ Popular ]'; -$lang['New_posts_hot'] = 'New posts [ Popular ]'; -$lang['No_new_posts_locked'] = 'No new posts [ Locked ]'; -$lang['New_posts_locked'] = 'New posts [ Locked ]'; -$lang['Forum_is_locked'] = 'Forum is locked'; - - -// -// Login -// -$lang['Enter_password'] = 'Please enter your username and password to log in.'; -$lang['Login'] = 'Log in'; -$lang['Logout'] = 'Log out'; - -$lang['Forgotten_password'] = 'I forgot my password'; - -$lang['Log_me_in'] = 'Log me on automatically each visit'; - -$lang['Error_login'] = 'You have specified an incorrect or inactive username, or an invalid password.'; - - -// -// Index page -// -$lang['Index'] = 'Index'; -$lang['No_Posts'] = 'No Posts'; -$lang['No_forums'] = 'This board has no forums'; - -$lang['Private_Message'] = 'Private Message'; -$lang['Private_Messages'] = 'Private Messages'; -$lang['Who_is_Online'] = 'Who is Online'; - -$lang['Mark_all_forums'] = 'Mark all forums read'; -$lang['Forums_marked_read'] = 'All forums have been marked read'; - - -// -// Viewforum -// -$lang['View_forum'] = 'View Forum'; - -$lang['Forum_not_exist'] = 'The forum you selected does not exist.'; -$lang['Reached_on_error'] = 'You have reached this page in error.'; - -$lang['Display_topics'] = 'Display topics from previous'; -$lang['All_Topics'] = 'All Topics'; - -$lang['Topic_Announcement'] = 'Announcement:'; -$lang['Topic_Sticky'] = 'Sticky:'; -$lang['Topic_Moved'] = 'Moved:'; -$lang['Topic_Poll'] = '[ Poll ]'; - -$lang['Mark_all_topics'] = 'Mark all topics read'; -$lang['Topics_marked_read'] = 'The topics for this forum have now been marked read'; - -$lang['Rules_post_can'] = 'You can post new topics in this forum'; -$lang['Rules_post_cannot'] = 'You cannot post new topics in this forum'; -$lang['Rules_reply_can'] = 'You can reply to topics in this forum'; -$lang['Rules_reply_cannot'] = 'You cannot reply to topics in this forum'; -$lang['Rules_edit_can'] = 'You can edit your posts in this forum'; -$lang['Rules_edit_cannot'] = 'You cannot edit your posts in this forum'; -$lang['Rules_delete_can'] = 'You can delete your posts in this forum'; -$lang['Rules_delete_cannot'] = 'You cannot delete your posts in this forum'; -$lang['Rules_vote_can'] = 'You can vote in polls in this forum'; -$lang['Rules_vote_cannot'] = 'You cannot vote in polls in this forum'; -$lang['Rules_moderate'] = 'You can %smoderate this forum%s'; // %s replaced by a href links, do not remove! - -$lang['No_topics_post_one'] = 'There are no posts in this forum.
    Click on the Post New Topic link on this page to post one.'; - - -// -// Viewtopic -// -$lang['View_topic'] = 'View topic'; - -$lang['Guest'] = 'Guest'; -$lang['Post_subject'] = 'Post subject'; -$lang['View_next_topic'] = 'View next topic'; -$lang['View_previous_topic'] = 'View previous topic'; -$lang['Submit_vote'] = 'Submit Vote'; -$lang['View_results'] = 'View Results'; - -$lang['No_newer_topics'] = 'There are no newer topics in this forum'; -$lang['No_older_topics'] = 'There are no older topics in this forum'; -$lang['Topic_post_not_exist'] = 'The topic or post you requested does not exist'; -$lang['No_posts_topic'] = 'No posts exist for this topic'; - -$lang['Display_posts'] = 'Display posts from previous'; -$lang['All_Posts'] = 'All Posts'; -$lang['Newest_First'] = 'Newest First'; -$lang['Oldest_First'] = 'Oldest First'; - -$lang['Back_to_top'] = 'Back to top'; - -$lang['Read_profile'] = 'View user\'s profile'; -$lang['Send_email'] = 'Send e-mail to user'; -$lang['Visit_website'] = 'Visit poster\'s website'; -$lang['ICQ_status'] = 'ICQ Status'; -$lang['Edit_delete_post'] = 'Edit/Delete this post'; -$lang['View_IP'] = 'View IP address of poster'; -$lang['Delete_post'] = 'Delete this post'; - -$lang['wrote'] = 'wrote'; // proceeds the username and is followed by the quoted text -$lang['Quote'] = 'Quote'; // comes before bbcode quote output. -$lang['Code'] = 'Code'; // comes before bbcode code output. - -$lang['Edited_time_total'] = 'Last edited by %s on %s; edited %d time in total'; // Last edited by me on 12 Oct 2001; edited 1 time in total -$lang['Edited_times_total'] = 'Last edited by %s on %s; edited %d times in total'; // Last edited by me on 12 Oct 2001; edited 2 times in total - -$lang['Lock_topic'] = 'Lock this topic'; -$lang['Unlock_topic'] = 'Unlock this topic'; -$lang['Move_topic'] = 'Move this topic'; -$lang['Delete_topic'] = 'Delete this topic'; -$lang['Split_topic'] = 'Split this topic'; - -$lang['Stop_watching_topic'] = 'Stop watching this topic'; -$lang['Start_watching_topic'] = 'Watch this topic for replies'; -$lang['No_longer_watching'] = 'You are no longer watching this topic'; -$lang['You_are_watching'] = 'You are now watching this topic'; - -$lang['Total_votes'] = 'Total Votes'; - -// -// Posting/Replying (Not private messaging!) -// -$lang['Message_body'] = 'Message body'; -$lang['Topic_review'] = 'Topic review'; - -$lang['No_post_mode'] = 'No post mode specified'; // If posting.php is called without a mode (newtopic/reply/delete/etc, shouldn't be shown normaly) - -$lang['Post_a_new_topic'] = 'Post a new topic'; -$lang['Post_a_reply'] = 'Post a reply'; -$lang['Post_topic_as'] = 'Post topic as'; -$lang['Edit_Post'] = 'Edit post'; -$lang['Options'] = 'Options'; - -$lang['Post_Announcement'] = 'Announcement'; -$lang['Post_Sticky'] = 'Sticky'; -$lang['Post_Normal'] = 'Normal'; - -$lang['Confirm_delete'] = 'Are you sure you want to delete this post?'; -$lang['Confirm_delete_poll'] = 'Are you sure you want to delete this poll?'; - -$lang['Flood_Error'] = 'You cannot make another post so soon after your last; please try again in a short while.'; -$lang['Empty_subject'] = 'You must specify a subject when posting a new topic.'; -$lang['Empty_message'] = 'You must enter a message when posting.'; -$lang['Forum_locked'] = 'This forum is locked: you cannot post, reply to, or edit topics.'; -$lang['Topic_locked'] = 'This topic is locked: you cannot edit posts or make replies.'; -$lang['No_post_id'] = 'You must select a post to edit'; -$lang['No_topic_id'] = 'You must select a topic to reply to'; -$lang['No_valid_mode'] = 'You can only post, reply, edit, or quote messages. Please return and try again.'; -$lang['No_such_post'] = 'There is no such post. Please return and try again.'; -$lang['Edit_own_posts'] = 'Sorry, but you can only edit your own posts.'; -$lang['Delete_own_posts'] = 'Sorry, but you can only delete your own posts.'; -$lang['Cannot_delete_replied'] = 'Sorry, but you may not delete posts that have been replied to.'; -$lang['Cannot_delete_poll'] = 'Sorry, but you cannot delete an active poll.'; -$lang['Empty_poll_title'] = 'You must enter a title for your poll.'; -$lang['To_few_poll_options'] = 'You must enter at least two poll options.'; -$lang['To_many_poll_options'] = 'You have tried to enter too many poll options.'; -$lang['Post_has_no_poll'] = 'This post has no poll.'; -$lang['Already_voted'] = 'You have already voted in this poll.'; -$lang['No_vote_option'] = 'You must specify an option when voting.'; - -$lang['Add_poll'] = 'Add a Poll'; -$lang['Add_poll_explain'] = 'If you do not want to add a poll to your topic, leave the fields blank.'; -$lang['Poll_question'] = 'Poll question'; -$lang['Poll_option'] = 'Poll option'; -$lang['Add_option'] = 'Add option'; -$lang['Update'] = 'Update'; -$lang['Delete'] = 'Delete'; -$lang['Poll_for'] = 'Run poll for'; -$lang['Days'] = 'Days'; // This is used for the Run poll for ... Days + in admin_forums for pruning -$lang['Poll_for_explain'] = '[ Enter 0 or leave blank for a never-ending poll ]'; -$lang['Delete_poll'] = 'Delete Poll'; - -$lang['Disable_HTML_post'] = 'Disable HTML in this post'; -$lang['Disable_BBCode_post'] = 'Disable BBCode in this post'; -$lang['Disable_Smilies_post'] = 'Disable Smilies in this post'; - -$lang['HTML_is_ON'] = 'HTML is ON'; -$lang['HTML_is_OFF'] = 'HTML is OFF'; -$lang['BBCode_is_ON'] = '%sBBCode%s is ON'; // %s are replaced with URI pointing to FAQ -$lang['BBCode_is_OFF'] = '%sBBCode%s is OFF'; -$lang['Smilies_are_ON'] = 'Smilies are ON'; -$lang['Smilies_are_OFF'] = 'Smilies are OFF'; - -$lang['Attach_signature'] = 'Attach signature (signatures can be changed in profile)'; -$lang['Notify'] = 'Notify me when a reply is posted'; -$lang['Delete_post'] = 'Delete this post'; - -$lang['Stored'] = 'Your message has been entered successfully.'; -$lang['Deleted'] = 'Your message has been deleted successfully.'; -$lang['Poll_delete'] = 'Your poll has been deleted successfully.'; -$lang['Vote_cast'] = 'Your vote has been cast.'; - -$lang['Topic_reply_notification'] = 'Topic Reply Notification'; - -$lang['bbcode_b_help'] = 'Bold text: [b]text[/b] (alt+b)'; -$lang['bbcode_i_help'] = 'Italic text: [i]text[/i] (alt+i)'; -$lang['bbcode_u_help'] = 'Underline text: [u]text[/u] (alt+u)'; -$lang['bbcode_q_help'] = 'Quote text: [quote]text[/quote] (alt+q)'; -$lang['bbcode_c_help'] = 'Code display: [code]code[/code] (alt+c)'; -$lang['bbcode_l_help'] = 'List: [list]text[/list] (alt+l)'; -$lang['bbcode_o_help'] = 'Ordered list: [list=]text[/list] (alt+o)'; -$lang['bbcode_p_help'] = 'Insert image: [img]http://image_url[/img] (alt+p)'; -$lang['bbcode_w_help'] = 'Insert URL: [url]http://url[/url] or [url=http://url]URL text[/url] (alt+w)'; -$lang['bbcode_a_help'] = 'Close all open bbCode tags'; -$lang['bbcode_s_help'] = 'Font color: [color=red]text[/color] Tip: you can also use color=#FF0000'; -$lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]'; - -$lang['Emoticons'] = 'Emoticons'; -$lang['More_emoticons'] = 'View more Emoticons'; - -$lang['Font_color'] = 'Font colour'; -$lang['color_default'] = 'Default'; -$lang['color_dark_red'] = 'Dark Red'; -$lang['color_red'] = 'Red'; -$lang['color_orange'] = 'Orange'; -$lang['color_brown'] = 'Brown'; -$lang['color_yellow'] = 'Yellow'; -$lang['color_green'] = 'Green'; -$lang['color_olive'] = 'Olive'; -$lang['color_cyan'] = 'Cyan'; -$lang['color_blue'] = 'Blue'; -$lang['color_dark_blue'] = 'Dark Blue'; -$lang['color_indigo'] = 'Indigo'; -$lang['color_violet'] = 'Violet'; -$lang['color_white'] = 'White'; -$lang['color_black'] = 'Black'; - -$lang['Font_size'] = 'Font size'; -$lang['font_tiny'] = 'Tiny'; -$lang['font_small'] = 'Small'; -$lang['font_normal'] = 'Normal'; -$lang['font_large'] = 'Large'; -$lang['font_huge'] = 'Huge'; - -$lang['Close_Tags'] = 'Close Tags'; -$lang['Styles_tip'] = 'Tip: Styles can be applied quickly to selected text.'; - - -// -// Private Messaging -// -$lang['Private_Messaging'] = 'Private Messaging'; - -$lang['Login_check_pm'] = 'Log in to check your private messages'; -$lang['New_pms'] = 'You have %d new messages'; // You have 2 new messages -$lang['New_pm'] = 'You have %d new message'; // You have 1 new message -$lang['No_new_pm'] = 'You have no new messages'; -$lang['Unread_pms'] = 'You have %d unread messages'; -$lang['Unread_pm'] = 'You have %d unread message'; -$lang['No_unread_pm'] = 'You have no unread messages'; -$lang['You_new_pm'] = 'A new private message is waiting for you in your Inbox'; -$lang['You_new_pms'] = 'New private messages are waiting for you in your Inbox'; -$lang['You_no_new_pm'] = 'No new private messages are waiting for you'; - -$lang['Unread_message'] = 'Unread message'; -$lang['Read_message'] = 'Read message'; - -$lang['Read_pm'] = 'Read message'; -$lang['Post_new_pm'] = 'Post message'; -$lang['Post_reply_pm'] = 'Reply to message'; -$lang['Post_quote_pm'] = 'Quote message'; -$lang['Edit_pm'] = 'Edit message'; - -$lang['Inbox'] = 'Inbox'; -$lang['Outbox'] = 'Outbox'; -$lang['Savebox'] = 'Savebox'; -$lang['Sentbox'] = 'Sentbox'; -$lang['Flag'] = 'Flag'; -$lang['Subject'] = 'Subject'; -$lang['From'] = 'From'; -$lang['To'] = 'To'; -$lang['Date'] = 'Date'; -$lang['Mark'] = 'Mark'; -$lang['Sent'] = 'Sent'; -$lang['Saved'] = 'Saved'; -$lang['Delete_marked'] = 'Delete Marked'; -$lang['Delete_all'] = 'Delete All'; -$lang['Save_marked'] = 'Save Marked'; -$lang['Save_message'] = 'Save Message'; -$lang['Delete_message'] = 'Delete Message'; - -$lang['Display_messages'] = 'Display messages from previous'; // Followed by number of days/weeks/months -$lang['All_Messages'] = 'All Messages'; - -$lang['No_messages_folder'] = 'You have no messages in this folder'; - -$lang['PM_disabled'] = 'Private messaging has been disabled on this board.'; -$lang['Cannot_send_privmsg'] = 'Sorry, but the administrator has prevented you from sending private messages.'; -$lang['No_to_user'] = 'You must specify a username to whom to send this message.'; -$lang['No_such_user'] = 'Sorry, but no such user exists.'; - -$lang['Disable_HTML_pm'] = 'Disable HTML in this message'; -$lang['Disable_BBCode_pm'] = 'Disable BBCode in this message'; -$lang['Disable_Smilies_pm'] = 'Disable Smilies in this message'; - -$lang['Message_sent'] = 'Your message has been sent.'; - -$lang['Click_return_inbox'] = 'Click %sHere%s to return to your Inbox'; -$lang['Click_return_index'] = 'Click %sHere%s to return to the Index'; - -$lang['Send_a_new_message'] = 'Send a new private message'; -$lang['Send_a_reply'] = 'Reply to a private message'; -$lang['Edit_message'] = 'Edit private message'; - -$lang['Notification_subject'] = 'New Private Message has arrived!'; - -$lang['Find_username'] = 'Find a username'; -$lang['Find'] = 'Find'; -$lang['No_match'] = 'No matches found.'; - -$lang['No_post_id'] = 'No post ID was specified'; -$lang['No_such_folder'] = 'No such folder exists'; -$lang['No_folder'] = 'No folder specified'; - -$lang['Mark_all'] = 'Mark all'; -$lang['Unmark_all'] = 'Unmark all'; - -$lang['Confirm_delete_pm'] = 'Are you sure you want to delete this message?'; -$lang['Confirm_delete_pms'] = 'Are you sure you want to delete these messages?'; - -$lang['Inbox_size'] = 'Your Inbox is %d%% full'; // eg. Your Inbox is 50% full -$lang['Sentbox_size'] = 'Your Sentbox is %d%% full'; -$lang['Savebox_size'] = 'Your Savebox is %d%% full'; - -$lang['Click_view_privmsg'] = 'Click %sHere%s to visit your Inbox'; - - -// -// Profiles/Registration -// -$lang['Viewing_user_profile'] = 'Viewing profile :: %s'; // %s is username -$lang['About_user'] = 'All about %s'; // %s is username - -$lang['Preferences'] = 'Preferences'; -$lang['Items_required'] = 'Items marked with a * are required unless stated otherwise.'; -$lang['Registration_info'] = 'Registration Information'; -$lang['Profile_info'] = 'Profile Information'; -$lang['Profile_info_warn'] = 'This information will be publicly viewable'; -$lang['Avatar_panel'] = 'Avatar control panel'; -$lang['Avatar_gallery'] = 'Avatar gallery'; - -$lang['Website'] = 'Website'; -$lang['Location'] = 'Location'; -$lang['Contact'] = 'Contact'; -$lang['Email_address'] = 'E-mail address'; -$lang['Email'] = 'E-mail'; -$lang['Send_private_message'] = 'Send private message'; -$lang['Hidden_email'] = '[ Hidden ]'; -$lang['Search_user_posts'] = 'Search for posts by this user'; -$lang['Interests'] = 'Interests'; -$lang['Occupation'] = 'Occupation'; -$lang['Poster_rank'] = 'Poster rank'; - -$lang['Total_posts'] = 'Total posts'; -$lang['User_post_pct_stats'] = '%.2f%% of total'; // 1.25% of total -$lang['User_post_day_stats'] = '%.2f posts per day'; // 1.5 posts per day -$lang['Search_user_posts'] = 'Find all posts by %s'; // Find all posts by username - -$lang['No_user_id_specified'] = 'Sorry, but that user does not exist.'; -$lang['Wrong_Profile'] = 'You cannot modify a profile that is not your own.'; - -$lang['Only_one_avatar'] = 'Only one type of avatar can be specified'; -$lang['File_no_data'] = 'The file at the URL you gave contains no data'; -$lang['No_connection_URL'] = 'A connection could not be made to the URL you gave'; -$lang['Incomplete_URL'] = 'The URL you entered is incomplete'; -$lang['Wrong_remote_avatar_format'] = 'The URL of the remote avatar is not valid'; -$lang['No_send_account_inactive'] = 'Sorry, but your password cannot be retrieved because your account is currently inactive. Please contact the forum administrator for more information.'; - -$lang['Always_smile'] = 'Always enable Smilies'; -$lang['Always_html'] = 'Always allow HTML'; -$lang['Always_bbcode'] = 'Always allow BBCode'; -$lang['Always_add_sig'] = 'Always attach my signature'; -$lang['Always_notify'] = 'Always notify me of replies'; -$lang['Always_notify_explain'] = 'Sends an e-mail when someone replies to a topic you have posted in. This can be changed whenever you post.'; - -$lang['Board_style'] = 'Board Style'; -$lang['Board_lang'] = 'Board Language'; -$lang['No_themes'] = 'No Themes In database'; -$lang['Timezone'] = 'Timezone'; -$lang['Date_format'] = 'Date format'; -$lang['Date_format_explain'] = 'The syntax used is identical to the PHP date() function.'; -$lang['Signature'] = 'Signature'; -$lang['Signature_explain'] = 'This is a block of text that can be added to posts you make. There is a %d character limit'; -$lang['Public_view_email'] = 'Always show my e-mail address'; - -$lang['Current_password'] = 'Current password'; -$lang['New_password'] = 'New password'; -$lang['Confirm_password'] = 'Confirm password'; -$lang['Confirm_password_explain'] = 'You must confirm your current password if you wish to change it or alter your e-mail address'; -$lang['password_if_changed'] = 'You only need to supply a password if you want to change it'; -$lang['password_confirm_if_changed'] = 'You only need to confirm your password if you changed it above'; - -$lang['Avatar'] = 'Avatar'; -$lang['Avatar_explain'] = 'Displays a small graphic image below your details in posts. Only one image can be displayed at a time, its width can be no greater than %d pixels, the height no greater than %d pixels, and the file size no more than %d KB.'; -$lang['Upload_Avatar_file'] = 'Upload Avatar from your machine'; -$lang['Upload_Avatar_URL'] = 'Upload Avatar from a URL'; -$lang['Upload_Avatar_URL_explain'] = 'Enter the URL of the location containing the Avatar image, it will be copied to this site.'; -$lang['Pick_local_Avatar'] = 'Select Avatar from the gallery'; -$lang['Link_remote_Avatar'] = 'Link to off-site Avatar'; -$lang['Link_remote_Avatar_explain'] = 'Enter the URL of the location containing the Avatar image you wish to link to.'; -$lang['Avatar_URL'] = 'URL of Avatar Image'; -$lang['Select_from_gallery'] = 'Select Avatar from gallery'; -$lang['View_avatar_gallery'] = 'Show gallery'; - -$lang['Select_avatar'] = 'Select avatar'; -$lang['Return_profile'] = 'Cancel avatar'; -$lang['Select_category'] = 'Select category'; - -$lang['Delete_Image'] = 'Delete Image'; -$lang['Current_Image'] = 'Current Image'; - -$lang['Notify_on_privmsg'] = 'Notify on new Private Message'; -$lang['Popup_on_privmsg'] = 'Pop up window on new Private Message'; -$lang['Popup_on_privmsg_explain'] = 'Some templates may open a new window to inform you when new private messages arrive.'; -$lang['Hide_user'] = 'Hide your online status'; - -$lang['Profile_updated'] = 'Your profile has been updated'; -$lang['Profile_updated_inactive'] = 'Your profile has been updated. However, you have changed vital details, thus your account is now inactive. Check your e-mail to find out how to reactivate your account, or if admin activation is required, wait for the administrator to reactivate it.'; - -$lang['Password_mismatch'] = 'The passwords you entered did not match.'; -$lang['Current_password_mismatch'] = 'The current password you supplied does not match that stored in the database.'; -$lang['Password_long'] = 'Your password must be no more than 32 characters.'; -$lang['Too_many_registers'] = 'You have made too many registration attempts. Please try again later.'; -$lang['Username_taken'] = 'Sorry, but this username has already been taken.'; -$lang['Username_invalid'] = 'Sorry, but this username contains an invalid character such as \'.'; -$lang['Username_disallowed'] = 'Sorry, but this username has been disallowed.'; -$lang['Email_taken'] = 'Sorry, but that e-mail address is already registered to a user.'; -$lang['Email_banned'] = 'Sorry, but this e-mail address has been banned.'; -$lang['Email_invalid'] = 'Sorry, but this e-mail address is invalid.'; -$lang['Signature_too_long'] = 'Your signature is too long.'; -$lang['Fields_empty'] = 'You must fill in the required fields.'; -$lang['Avatar_filetype'] = 'The avatar filetype must be .jpg, .gif or .png'; -$lang['Avatar_filesize'] = 'The avatar image file size must be less than %d KB'; // The avatar image file size must be less than 6 KB -$lang['Avatar_imagesize'] = 'The avatar must be less than %d pixels wide and %d pixels high'; - -$lang['Welcome_subject'] = 'Welcome to %s Forums'; // Welcome to my.com forums -$lang['New_account_subject'] = 'New user account'; -$lang['Account_activated_subject'] = 'Account Activated'; - -$lang['Account_added'] = 'Thank you for registering. Your account has been created. You may now log in with your username and password'; -$lang['Account_inactive'] = 'Your account has been created. However, this forum requires account activation. An activation key has been sent to the e-mail address you provided. Please check your e-mail for further information'; -$lang['Account_inactive_admin'] = 'Your account has been created. However, this forum requires account activation by the administrator. An e-mail has been sent to them and you will be informed when your account has been activated'; -$lang['Account_active'] = 'Your account has now been activated. Thank you for registering'; -$lang['Account_active_admin'] = 'The account has now been activated'; -$lang['Reactivate'] = 'Reactivate your account!'; -$lang['Already_activated'] = 'You have already activated your account'; -$lang['COPPA'] = 'Your account has been created but has to be approved. Please check your e-mail for details.'; - -$lang['Registration'] = 'Registration Agreement Terms'; -$lang['Reg_agreement'] = 'While the administrators and moderators of this forum will attempt to remove or edit any generally objectionable material as quickly as possible, it is impossible to review every message. Therefore you acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators or webmaster (except for posts by these people) and hence will not be held liable.

    You agree not to post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-oriented or any other material that may violate any applicable laws. Doing so may lead to you being immediately and permanently banned (and your service provider being informed). The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator and moderators of this forum have the right to remove, edit, move or close any topic at any time should they see fit. As a user you agree to any information you have entered above being stored in a database. While this information will not be disclosed to any third party without your consent the webmaster, administrator and moderators cannot be held responsible for any hacking attempt that may lead to the data being compromised.

    This forum system uses cookies to store information on your local computer. These cookies do not contain any of the information you have entered above; they serve only to improve your viewing pleasure. The e-mail address is used only for confirming your registration details and password (and for sending new passwords should you forget your current one).

    By clicking Register below you agree to be bound by these conditions.'; - -$lang['Agree_under_13'] = 'I Agree to these terms and am under 13 years of age'; -$lang['Agree_over_13'] = 'I Agree to these terms and am over or exactly 13 years of age'; -$lang['Agree_not'] = 'I do not agree to these terms'; - -$lang['Wrong_activation'] = 'The activation key you supplied does not match any in the database.'; -$lang['Send_password'] = 'Send me a new password'; -$lang['Password_updated'] = 'A new password has been created; please check your e-mail for details on how to activate it.'; -$lang['No_email_match'] = 'The e-mail address you supplied does not match the one listed for that username.'; -$lang['New_password_activation'] = 'New password activation'; -$lang['Password_activated'] = 'Your account has been re-activated. To log in, please use the password supplied in the e-mail you received.'; - -$lang['Send_email_msg'] = 'Send an e-mail message'; -$lang['No_user_specified'] = 'No user was specified'; -$lang['User_prevent_email'] = 'This user does not wish to receive e-mail. Try sending them a private message.'; -$lang['User_not_exist'] = 'That user does not exist'; -$lang['CC_email'] = 'Send a copy of this e-mail to yourself'; -$lang['Email_message_desc'] = 'This message will be sent as plain text, so do not include any HTML or BBCode. The return address for this message will be set to your e-mail address.'; -$lang['Flood_email_limit'] = 'You cannot send another e-mail at this time. Try again later.'; -$lang['Recipient'] = 'Recipient'; -$lang['Email_sent'] = 'The e-mail has been sent.'; -$lang['Send_email'] = 'Send e-mail'; -$lang['Empty_subject_email'] = 'You must specify a subject for the e-mail.'; -$lang['Empty_message_email'] = 'You must enter a message to be e-mailed.'; - - -// -// Visual confirmation system strings -// -$lang['Confirm_code_wrong'] = 'The confirmation code you entered was incorrect'; -$lang['Too_many_registers'] = 'You have exceeded the number of registration attempts for this session. Please try again later.'; -$lang['Confirm_code_impaired'] = 'If you are visually impaired or cannot otherwise read this code please contact the %sAdministrator%s for help.'; -$lang['Confirm_code'] = 'Confirmation code'; -$lang['Confirm_code_explain'] = 'Enter the code exactly as you see it. The code is case sensitive and zero has a diagonal line through it.'; - - - -// -// Memberslist -// -$lang['Select_sort_method'] = 'Select sort method'; -$lang['Sort'] = 'Sort'; -$lang['Sort_Top_Ten'] = 'Top Ten Posters'; -$lang['Sort_Joined'] = 'Joined Date'; -$lang['Sort_Username'] = 'Username'; -$lang['Sort_Location'] = 'Location'; -$lang['Sort_Posts'] = 'Total posts'; -$lang['Sort_Email'] = 'Email'; -$lang['Sort_Website'] = 'Website'; -$lang['Sort_Ascending'] = 'Ascending'; -$lang['Sort_Descending'] = 'Descending'; -$lang['Order'] = 'Order'; - - -// -// Group control panel -// -$lang['Group_Control_Panel'] = 'Group Control Panel'; -$lang['Group_member_details'] = 'Group Membership Details'; -$lang['Group_member_join'] = 'Join a Group'; - -$lang['Group_Information'] = 'Group Information'; -$lang['Group_name'] = 'Group name'; -$lang['Group_description'] = 'Group description'; -$lang['Group_membership'] = 'Group membership'; -$lang['Group_Members'] = 'Group Members'; -$lang['Group_Moderator'] = 'Group Moderator'; -$lang['Pending_members'] = 'Pending Members'; - -$lang['Group_type'] = 'Group type'; -$lang['Group_open'] = 'Open group'; -$lang['Group_closed'] = 'Closed group'; -$lang['Group_hidden'] = 'Hidden group'; - -$lang['Current_memberships'] = 'Current memberships'; -$lang['Non_member_groups'] = 'Non-member groups'; -$lang['Memberships_pending'] = 'Memberships pending'; - -$lang['No_groups_exist'] = 'No Groups Exist'; -$lang['Group_not_exist'] = 'That user group does not exist'; - -$lang['Join_group'] = 'Join Group'; -$lang['No_group_members'] = 'This group has no members'; -$lang['Group_hidden_members'] = 'This group is hidden; you cannot view its membership'; -$lang['No_pending_group_members'] = 'This group has no pending members'; -$lang['Group_joined'] = 'You have successfully subscribed to this group.
    You will be notified when your subscription is approved by the group moderator.'; -$lang['Group_request'] = 'A request to join your group has been made.'; -$lang['Group_approved'] = 'Your request has been approved.'; -$lang['Group_added'] = 'You have been added to this usergroup.'; -$lang['Already_member_group'] = 'You are already a member of this group'; -$lang['User_is_member_group'] = 'User is already a member of this group'; -$lang['Group_type_updated'] = 'Successfully updated group type.'; - -$lang['Could_not_add_user'] = 'The user you selected does not exist.'; -$lang['Could_not_anon_user'] = 'You cannot make Anonymous a group member.'; - -$lang['Confirm_unsub'] = 'Are you sure you want to unsubscribe from this group?'; -$lang['Confirm_unsub_pending'] = 'Your subscription to this group has not yet been approved; are you sure you want to unsubscribe?'; - -$lang['Unsub_success'] = 'You have been un-subscribed from this group.'; - -$lang['Approve_selected'] = 'Approve Selected'; -$lang['Deny_selected'] = 'Deny Selected'; -$lang['Not_logged_in'] = 'You must be logged in to join a group.'; -$lang['Remove_selected'] = 'Remove Selected'; -$lang['Add_member'] = 'Add Member'; -$lang['Not_group_moderator'] = 'You are not this group\'s moderator, therefore you cannot perform that action.'; - -$lang['Login_to_join'] = 'Log in to join or manage group memberships'; -$lang['This_open_group'] = 'This is an open group: click to request membership'; -$lang['This_closed_group'] = 'This is a closed group: no more users accepted'; -$lang['This_hidden_group'] = 'This is a hidden group: automatic user addition is not allowed'; -$lang['Member_this_group'] = 'You are a member of this group'; -$lang['Pending_this_group'] = 'Your membership of this group is pending'; -$lang['Are_group_moderator'] = 'You are the group moderator'; -$lang['None'] = 'None'; - -$lang['Subscribe'] = 'Subscribe'; -$lang['Unsubscribe'] = 'Unsubscribe'; -$lang['View_Information'] = 'View Information'; - - -// -// Search -// -$lang['Search_query'] = 'Search Query'; -$lang['Search_options'] = 'Search Options'; - -$lang['Search_keywords'] = 'Search for Keywords'; -$lang['Search_keywords_explain'] = 'You can use AND to define words which must be in the results, OR to define words which may be in the result and NOT to define words which should not be in the result. Use * as a wildcard for partial matches'; -$lang['Search_author'] = 'Search for Author'; -$lang['Search_author_explain'] = 'Use * as a wildcard for partial matches'; - -$lang['Search_for_any'] = 'Search for any terms or use query as entered'; -$lang['Search_for_all'] = 'Search for all terms'; -$lang['Search_title_msg'] = 'Search topic title and message text'; -$lang['Search_msg_only'] = 'Search message text only'; - -$lang['Return_first'] = 'Return first'; // followed by xxx characters in a select box -$lang['characters_posts'] = 'characters of posts'; - -$lang['Search_previous'] = 'Search previous'; // followed by days, weeks, months, year, all in a select box - -$lang['Sort_by'] = 'Sort by'; -$lang['Sort_Time'] = 'Post Time'; -$lang['Sort_Post_Subject'] = 'Post Subject'; -$lang['Sort_Topic_Title'] = 'Topic Title'; -$lang['Sort_Author'] = 'Author'; -$lang['Sort_Forum'] = 'Forum'; - -$lang['Display_results'] = 'Display results as'; -$lang['All_available'] = 'All available'; -$lang['No_searchable_forums'] = 'You do not have permissions to search any forum on this site.'; - -$lang['No_search_match'] = 'No topics or posts met your search criteria'; -$lang['Found_search_match'] = 'Search found %d match'; // eg. Search found 1 match -$lang['Found_search_matches'] = 'Search found %d matches'; // eg. Search found 24 matches - -$lang['Close_window'] = 'Close Window'; - - -// -// Auth related entries -// -// Note the %s will be replaced with one of the following 'user' arrays -$lang['Sorry_auth_announce'] = 'Sorry, but only %s can post announcements in this forum.'; -$lang['Sorry_auth_sticky'] = 'Sorry, but only %s can post sticky messages in this forum.'; -$lang['Sorry_auth_read'] = 'Sorry, but only %s can read topics in this forum.'; -$lang['Sorry_auth_post'] = 'Sorry, but only %s can post topics in this forum.'; -$lang['Sorry_auth_reply'] = 'Sorry, but only %s can reply to posts in this forum.'; -$lang['Sorry_auth_edit'] = 'Sorry, but only %s can edit posts in this forum.'; -$lang['Sorry_auth_delete'] = 'Sorry, but only %s can delete posts in this forum.'; -$lang['Sorry_auth_vote'] = 'Sorry, but only %s can vote in polls in this forum.'; - -// These replace the %s in the above strings -$lang['Auth_Anonymous_Users'] = 'anonymous users'; -$lang['Auth_Registered_Users'] = 'registered users'; -$lang['Auth_Users_granted_access'] = 'users granted special access'; -$lang['Auth_Moderators'] = 'moderators'; -$lang['Auth_Administrators'] = 'administrators'; - -$lang['Not_Moderator'] = 'You are not a moderator of this forum.'; -$lang['Not_Authorised'] = 'Not Authorised'; - -$lang['You_been_banned'] = 'You have been banned from this forum.
    Please contact the webmaster or board administrator for more information.'; - - -// -// Viewonline -// -$lang['Reg_users_zero_online'] = 'There are 0 Registered users and '; // There are 5 Registered and -$lang['Reg_users_online'] = 'There are %d Registered users and '; // There are 5 Registered and -$lang['Reg_user_online'] = 'There is %d Registered user and '; // There is 1 Registered and -$lang['Hidden_users_zero_online'] = '0 Hidden users online'; // 6 Hidden users online -$lang['Hidden_users_online'] = '%d Hidden users online'; // 6 Hidden users online -$lang['Hidden_user_online'] = '%d Hidden user online'; // 6 Hidden users online -$lang['Guest_users_online'] = 'There are %d Guest users online'; // There are 10 Guest users online -$lang['Guest_users_zero_online'] = 'There are 0 Guest users online'; // There are 10 Guest users online -$lang['Guest_user_online'] = 'There is %d Guest user online'; // There is 1 Guest user online -$lang['No_users_browsing'] = 'There are no users currently browsing this forum'; - -$lang['Online_explain'] = 'This data is based on users active over the past five minutes'; - -$lang['Forum_Location'] = 'Forum Location'; -$lang['Last_updated'] = 'Last Updated'; - -$lang['Forum_index'] = 'Forum index'; -$lang['Logging_on'] = 'Logging on'; -$lang['Posting_message'] = 'Posting a message'; -$lang['Searching_forums'] = 'Searching forums'; -$lang['Viewing_profile'] = 'Viewing profile'; -$lang['Viewing_online'] = 'Viewing who is online'; -$lang['Viewing_member_list'] = 'Viewing member list'; -$lang['Viewing_priv_msgs'] = 'Viewing Private Messages'; -$lang['Viewing_FAQ'] = 'Viewing FAQ'; - - -// -// Moderator Control Panel -// -$lang['Mod_CP'] = 'Moderator Control Panel'; -$lang['Mod_CP_explain'] = 'Using the form below you can perform mass moderation operations on this forum. You can lock, unlock, move or delete any number of topics.'; - -$lang['Select'] = 'Select'; -$lang['Delete'] = 'Delete'; -$lang['Move'] = 'Move'; -$lang['Lock'] = 'Lock'; -$lang['Unlock'] = 'Unlock'; - -$lang['Topics_Removed'] = 'The selected topics have been successfully removed from the database.'; -$lang['Topics_Locked'] = 'The selected topics have been locked.'; -$lang['Topics_Moved'] = 'The selected topics have been moved.'; -$lang['Topics_Unlocked'] = 'The selected topics have been unlocked.'; -$lang['No_Topics_Moved'] = 'No topics were moved.'; - -$lang['Confirm_delete_topic'] = 'Are you sure you want to remove the selected topic/s?'; -$lang['Confirm_lock_topic'] = 'Are you sure you want to lock the selected topic/s?'; -$lang['Confirm_unlock_topic'] = 'Are you sure you want to unlock the selected topic/s?'; -$lang['Confirm_move_topic'] = 'Are you sure you want to move the selected topic/s?'; - -$lang['Move_to_forum'] = 'Move to forum'; -$lang['Leave_shadow_topic'] = 'Leave shadow topic in old forum.'; - -$lang['Split_Topic'] = 'Split Topic Control Panel'; -$lang['Split_Topic_explain'] = 'Using the form below you can split a topic in two, either by selecting the posts individually or by splitting at a selected post'; -$lang['Split_title'] = 'New topic title'; -$lang['Split_forum'] = 'Forum for new topic'; -$lang['Split_posts'] = 'Split selected posts'; -$lang['Split_after'] = 'Split from selected post'; -$lang['Topic_split'] = 'The selected topic has been split successfully'; - -$lang['Too_many_error'] = 'You have selected too many posts. You can only select one post to split a topic after!'; - -$lang['None_selected'] = 'You have not selected any topics to perform this operation on. Please go back and select at least one.'; -$lang['New_forum'] = 'New forum'; - -$lang['This_posts_IP'] = 'IP address for this post'; -$lang['Other_IP_this_user'] = 'Other IP addresses this user has posted from'; -$lang['Users_this_IP'] = 'Users posting from this IP address'; -$lang['IP_info'] = 'IP Information'; -$lang['Lookup_IP'] = 'Look up IP address'; - - -// -// Timezones ... for display on each page -// -$lang['All_times'] = 'All times are %s'; // eg. All times are GMT - 12 Hours (times from next block) - -$lang['-12'] = 'GMT - 12 Hours'; -$lang['-11'] = 'GMT - 11 Hours'; -$lang['-10'] = 'GMT - 10 Hours'; -$lang['-9'] = 'GMT - 9 Hours'; -$lang['-8'] = 'GMT - 8 Hours'; -$lang['-7'] = 'GMT - 7 Hours'; -$lang['-6'] = 'GMT - 6 Hours'; -$lang['-5'] = 'GMT - 5 Hours'; -$lang['-4'] = 'GMT - 4 Hours'; -$lang['-3.5'] = 'GMT - 3.5 Hours'; -$lang['-3'] = 'GMT - 3 Hours'; -$lang['-2'] = 'GMT - 2 Hours'; -$lang['-1'] = 'GMT - 1 Hours'; -$lang['0'] = 'GMT'; -$lang['1'] = 'GMT + 1 Hour'; -$lang['2'] = 'GMT + 2 Hours'; -$lang['3'] = 'GMT + 3 Hours'; -$lang['3.5'] = 'GMT + 3.5 Hours'; -$lang['4'] = 'GMT + 4 Hours'; -$lang['4.5'] = 'GMT + 4.5 Hours'; -$lang['5'] = 'GMT + 5 Hours'; -$lang['5.5'] = 'GMT + 5.5 Hours'; -$lang['6'] = 'GMT + 6 Hours'; -$lang['6.5'] = 'GMT + 6.5 Hours'; -$lang['7'] = 'GMT + 7 Hours'; -$lang['8'] = 'GMT + 8 Hours'; -$lang['9'] = 'GMT + 9 Hours'; -$lang['9.5'] = 'GMT + 9.5 Hours'; -$lang['10'] = 'GMT + 10 Hours'; -$lang['11'] = 'GMT + 11 Hours'; -$lang['12'] = 'GMT + 12 Hours'; -$lang['13'] = 'GMT + 13 Hours'; - -// These are displayed in the timezone select box -$lang['tz']['-12'] = 'GMT - 12 Hours'; -$lang['tz']['-11'] = 'GMT - 11 Hours'; -$lang['tz']['-10'] = 'GMT - 10 Hours'; -$lang['tz']['-9'] = 'GMT - 9 Hours'; -$lang['tz']['-8'] = 'GMT - 8 Hours'; -$lang['tz']['-7'] = 'GMT - 7 Hours'; -$lang['tz']['-6'] = 'GMT - 6 Hours'; -$lang['tz']['-5'] = 'GMT - 5 Hours'; -$lang['tz']['-4'] = 'GMT - 4 Hours'; -$lang['tz']['-3.5'] = 'GMT - 3.5 Hours'; -$lang['tz']['-3'] = 'GMT - 3 Hours'; -$lang['tz']['-2'] = 'GMT - 2 Hours'; -$lang['tz']['-1'] = 'GMT - 1 Hours'; -$lang['tz']['0'] = 'GMT'; -$lang['tz']['1'] = 'GMT + 1 Hour'; -$lang['tz']['2'] = 'GMT + 2 Hours'; -$lang['tz']['3'] = 'GMT + 3 Hours'; -$lang['tz']['3.5'] = 'GMT + 3.5 Hours'; -$lang['tz']['4'] = 'GMT + 4 Hours'; -$lang['tz']['4.5'] = 'GMT + 4.5 Hours'; -$lang['tz']['5'] = 'GMT + 5 Hours'; -$lang['tz']['5.5'] = 'GMT + 5.5 Hours'; -$lang['tz']['6'] = 'GMT + 6 Hours'; -$lang['tz']['6.5'] = 'GMT + 6.5 Hours'; -$lang['tz']['7'] = 'GMT + 7 Hours'; -$lang['tz']['8'] = 'GMT + 8 Hours'; -$lang['tz']['9'] = 'GMT + 9 Hours'; -$lang['tz']['9.5'] = 'GMT + 9.5 Hours'; -$lang['tz']['10'] = 'GMT + 10 Hours'; -$lang['tz']['11'] = 'GMT + 11 Hours'; -$lang['tz']['12'] = 'GMT + 12 Hours'; -$lang['tz']['13'] = 'GMT + 13 Hours'; - -$lang['datetime']['Sunday'] = 'Sunday'; -$lang['datetime']['Monday'] = 'Monday'; -$lang['datetime']['Tuesday'] = 'Tuesday'; -$lang['datetime']['Wednesday'] = 'Wednesday'; -$lang['datetime']['Thursday'] = 'Thursday'; -$lang['datetime']['Friday'] = 'Friday'; -$lang['datetime']['Saturday'] = 'Saturday'; -$lang['datetime']['Sun'] = 'Sun'; -$lang['datetime']['Mon'] = 'Mon'; -$lang['datetime']['Tue'] = 'Tue'; -$lang['datetime']['Wed'] = 'Wed'; -$lang['datetime']['Thu'] = 'Thu'; -$lang['datetime']['Fri'] = 'Fri'; -$lang['datetime']['Sat'] = 'Sat'; -$lang['datetime']['January'] = 'January'; -$lang['datetime']['February'] = 'February'; -$lang['datetime']['March'] = 'March'; -$lang['datetime']['April'] = 'April'; -$lang['datetime']['May'] = 'May'; -$lang['datetime']['June'] = 'June'; -$lang['datetime']['July'] = 'July'; -$lang['datetime']['August'] = 'August'; -$lang['datetime']['September'] = 'September'; -$lang['datetime']['October'] = 'October'; -$lang['datetime']['November'] = 'November'; -$lang['datetime']['December'] = 'December'; -$lang['datetime']['Jan'] = 'Jan'; -$lang['datetime']['Feb'] = 'Feb'; -$lang['datetime']['Mar'] = 'Mar'; -$lang['datetime']['Apr'] = 'Apr'; -$lang['datetime']['May'] = 'May'; -$lang['datetime']['Jun'] = 'Jun'; -$lang['datetime']['Jul'] = 'Jul'; -$lang['datetime']['Aug'] = 'Aug'; -$lang['datetime']['Sep'] = 'Sep'; -$lang['datetime']['Oct'] = 'Oct'; -$lang['datetime']['Nov'] = 'Nov'; -$lang['datetime']['Dec'] = 'Dec'; - -// -// Errors (not related to a -// specific failure on a page) -// -$lang['Information'] = 'Information'; -$lang['Critical_Information'] = 'Critical Information'; - -$lang['General_Error'] = 'General Error'; -$lang['Critical_Error'] = 'Critical Error'; -$lang['An_error_occured'] = 'An Error Occurred'; -$lang['A_critical_error'] = 'A Critical Error Occurred'; - -// -// That's all, Folks! -// ------------------------------------------------- - -?> \ No newline at end of file diff --git a/phpBB2_old/language/lang_english/lang_xs.php b/phpBB2_old/language/lang_english/lang_xs.php deleted file mode 100644 index 516880e..0000000 --- a/phpBB2_old/language/lang_english/lang_xs.php +++ /dev/null @@ -1,606 +0,0 @@ -
    Note: This mod replaces the phpBB styles management. You will find the default phpBB functions in this list, but these functions are now optimized and have extra features.

    If you have any questions please visit support forum where you can get assistance for this mod.'; -$lang['xs_main_comment2'] = 'The eXtreme Styles mod allows an admin to store entire styles in .style files. Styles are stored in a small compressed file and by doing so this saves the trouble of downloading/uploading many files. Style files are compressed so download/upload is much more efficient than downloading/uploading usual style files.'; -$lang['xs_main_comment3'] = 'All functions of phpBB styles management are replaced with eXtreme Styles mod.

    Click here to see menu.'; -$lang['xs_main_title'] = 'eXtreme Styles Navigation Menu'; -$lang['xs_menu'] = 'eXtreme Styles Menu'; - -$lang['xs_manage_styles'] = 'Manage Styles'; -$lang['xs_import_export_styles'] = 'Import/Export Styles'; -$lang['xs_install_uninstall_styles'] = 'Install/Uninstall Styles'; -$lang['xs_edit_templates'] = 'Edit Templates'; -$lang['xs_other_functions'] = 'Other Functions'; - -$lang['xs_configuration'] = 'Configuration'; -$lang['xs_configuration_explain'] = 'This feature allows you to change the eXtreme Styles configuration.'; -$lang['xs_default_style'] = 'Default Style'; -$lang['xs_default_style_explain'] = 'This feature allows you to change the default forum style and switch users from one style to another.'; -$lang['xs_manage_cache'] = 'Manage Cache'; -$lang['xs_manage_cache_explain'] = 'This feature allows you to manage cached files.'; -$lang['xs_import_styles'] = 'Import Styles'; -$lang['xs_import_styles_explain'] = 'This feature allows you to download and install .style files.'; -$lang['xs_export_styles'] = 'Export Styles'; -$lang['xs_export_styles_explain'] = 'This feature allows you to save a style from your forum as a .style file and then easily transfer it to another forum or another website.'; -$lang['xs_clone_styles'] = 'Clone Styles'; -$lang['xs_clone_styles_explain'] = 'This feature allows you to quickly clone styles or a whole template.'; -$lang['xs_download_styles'] = 'Download Styles'; -$lang['xs_download_styles_explain'] = 'This feature allows you to quickly download and install styles from websites. You can configure a list of websites yourself.'; -$lang['xs_install_styles'] = 'Install Styles'; -$lang['xs_install_styles_explain'] = 'This feature allows you to install styles that are already uploaded to your forum.'; -$lang['xs_uninstall_styles'] = 'Uninstall Styles'; -$lang['xs_uninstall_styles_explain'] = 'This feature allows you to remove styles from your forum.'; -$lang['xs_edit_templates_explain'] = 'This feature allows you to edit tpl files online.'; -$lang['xs_edit_styles_data'] = 'Edit Styles Data'; -$lang['xs_edit_styles_data_explain'] = 'This feature allows you to edit style variables. It is used by some styles, but most styles don\'t use it and use a css file instead.'; -$lang['xs_export_styles_data'] = 'Export Styles Data'; -$lang['xs_export_styles_data_explain'] = 'This feature allows you to save style variables to theme_info.cfg.'; -$lang['xs_check_for_updates'] = 'Check for Updates'; -$lang['xs_check_for_updates_explain'] = 'This feature allows you to check for updated versions of styles and mods installed on your forum.'; - -$lang['xs_set_configuration_lc'] = 'set configuration'; -$lang['xs_set_default_style_lc'] = 'set default style'; -$lang['xs_manage_cache_lc'] = 'manage cache'; -$lang['xs_import_styles_lc'] = 'import styles'; -$lang['xs_export_styles_lc'] = 'export styles'; -$lang['xs_clone_styles_lc'] = 'clone styles'; -$lang['xs_uninstall_styles_lc'] = 'uninstall styles'; -$lang['xs_edit_templates_lc'] = 'edit templates'; -$lang['xs_edit_styles_data_lc'] = 'edit styles data'; -$lang['xs_export_styles_data_lc'] = 'export styles data'; -$lang['xs_check_for_updates_lc'] = 'check for updates'; - -/* -* ftp.tpl, ftp functions -*/ - -$lang['xs_ftp_comment1'] = 'To use this feature you must select the file upload method. If you select FTP, then a password will not be stored and eXtreme Styles will ask you for a password every time you select functions that requires FTP access. If you select local file system then make sure all required directories are writeable.'; -$lang['xs_ftp_comment2'] = 'To use this feature you must set FTP settings. A password will not be stored and eXtreme Styles will ask you for a password every time you select functions that requires FTP access.'; -$lang['xs_ftp_comment3'] = 'Warning: FTP functions are disabled on this server. You will not be able to use eXtreme Styles functionality that require FTP access.'; - -$lang['xs_ftp_title'] = 'FTP Configuration'; - -$lang['xs_ftp_explain'] = 'FTP is used to upload new styles. If you want to use the import styles feature then you should configure FTP settings accordingly. eXtreme Styles tries to auto-detect settings if and when possible.'; - -$lang['xs_ftp_error_fatal'] = 'FTP functions are disabled on this server. Cannot continue.'; -$lang['xs_ftp_error_connect'] = 'FTP error: cannot connect to {HOST}'; -$lang['xs_ftp_error_login'] = 'FTP error: cannot login'; -$lang['xs_ftp_error_chdir'] = 'FTP error: cannot change directory to {DIR}'; -$lang['xs_ftp_error_nonphpbbdir'] = 'FTP error: you have set invalid directory. There are no phpBB files in that directory'; -$lang['xs_ftp_error_noconnect'] = 'Cannot connect to ftp server'; -$lang['xs_ftp_error_login2'] = 'Invalid ftp login or password'; - -$lang['xs_ftp_log_disabled'] = 'ftp functions are disabled on this server. script cannot continue.'; -$lang['xs_ftp_log_connecting'] = 'connecting to {HOST}'; -$lang['xs_ftp_log_noconnect'] = 'cannot connect to {HOST}'; -$lang['xs_ftp_log_connected'] = 'connected. loggin in...'; -$lang['xs_ftp_log_nologin'] = 'cannot login as {USER}'; -$lang['xs_ftp_log_loggedin'] = 'logged in'; -$lang['xs_ftp_log_end'] = 'finished executing script'; -$lang['xs_ftp_log_nopwd'] = 'error: cannot retrieve current directory'; -$lang['xs_ftp_log_nomkdir'] = 'error: cannot create directory {DIR}'; -$lang['xs_ftp_log_mkdir'] = 'created directory {DIR}'; -$lang['xs_ftp_log_nochdir'] = 'error: cannot change directory to {DIR}'; -$lang['xs_ftp_log_normdir'] = 'error: cannot remove directory {DIR}'; -$lang['xs_ftp_log_rmdir'] = 'removed directory {DIR}'; -$lang['xs_ftp_log_chdir'] = 'changed directory to {DIR}'; -$lang['xs_ftp_log_noupload'] = 'error: cannot upload file {FILE}'; -$lang['xs_ftp_log_upload'] = 'uploaded file {FILE}'; -$lang['xs_ftp_log_nochmod'] = 'warning: cannot chmod file {FILE}'; -$lang['xs_ftp_log_chmod'] = 'chmod file {FILE} to {MODE}'; -$lang['xs_ftp_log_invalidcommand'] = 'error: unknown command: {COMMAND}'; -$lang['xs_ftp_log_chdir2'] = 'changing current directory back to {DIR}'; -$lang['xs_ftp_log_nochdir2'] = 'cannot change directory to {DIR}'; - -$lang['xs_ftp_config'] = 'FTP Configuration'; -$lang['xs_ftp_select_method'] = 'Select upload method'; -$lang['xs_ftp_select_local'] = 'Use local file system (no configuration required)'; -$lang['xs_ftp_select_ftp'] = 'Use FTP (set ftp settings below)'; - -$lang['xs_ftp_settings'] = 'FTP Settings'; -$lang['xs_ftp_host'] = 'FTP Host'; -$lang['xs_ftp_login'] = 'FTP Login'; -$lang['xs_ftp_path'] = 'FTP Path to phpBB'; -$lang['xs_ftp_pass'] = 'FTP Password'; -$lang['xs_ftp_remotedir'] = 'Remote Directory'; - -$lang['xs_ftp_host_guess'] = ' (probably "{HOST}" [set host])'; -$lang['xs_ftp_login_guess'] = ' (probably "{LOGIN}" [set host])'; -$lang['xs_ftp_path_guess'] = ' (probably "{PATH}" [set path])'; - - -/* -* config.tpl -*/ - -$lang['xs_config_updated'] = 'Configuration updated.'; -$lang['xs_config_updated_explain'] = 'You need to refresh this page before the new configuration can take effect. Click here to refresh page.'; -$lang['xs_config_warning'] = 'Warning: cache cannot be written.'; -$lang['xs_config_warning_explain'] = 'Cache directory is not writeable. eXtreme Styles can attempt to fix this problem.
    Click here to try to change access mode to cache directory.

    If cache doesn\'t work on your server for some reason don\'t worry - eXtreme Styles
    increases forum speed many times even without cache.'; - -$lang['xs_config_maintitle'] = 'eXtreme Styles mod Configuration'; -$lang['xs_config_subtitle'] = 'This is the configuration for eXtreme Styles. If you don\'t understand what certain variables do then don\'t change it.'; -$lang['xs_config_title'] = 'eXtreme Styles mod v{VERSION} settings'; -$lang['xs_config_cache'] = 'Cache configuration'; - -$lang['xs_config_navbar'] = 'Show on left frame:'; -$lang['xs_config_navbar_explain'] = 'You can select what items to show on left frame in admin control panel.'; - -$lang['xs_config_def_template'] = 'Default template directory'; -$lang['xs_config_def_template_explain'] = 'If a required tpl file is not found in current template directory (that might happen if you modded phpBB incorrectly) then template system will look for same file in a related directory (like if current template is "myTemplate" and script requires file "myTemplate/myfile.tpl" and that file isn\'t there template system will look for that file as "subSilver/myfile.tpl"). Set to empty to disable this feature.'; - -$lang['xs_config_check_switches'] = 'Check switches while compiling'; -$lang['xs_config_check_switches_explain'] = 'This feature checks for errors in templates. Turning it off will speed up compilation, but the compiler might skip some errors in templates if it contains errors.

    Smart check will check templates for errors and automatically fix all known errors (there are few known typos in different mods). Works little bit slower than simple check.

    But sometimes template looks proper only when error check is disabled; this happens because of bad html coding - contact whoever wrote the tpl file if you want to fix errors.

    If cache feature is disabled, then turn this off for faster compilation.'; -$lang['xs_config_check_switches_0'] = 'Off'; -$lang['xs_config_check_switches_1'] = 'Smart check'; -$lang['xs_config_check_switches_2'] = 'Simple check'; - -$lang['xs_config_show_errors'] = 'Shows errors when files are incorrectly included in tpl files'; -$lang['xs_config_show_error_explain'] = 'This feature enables/disables errors in tpl files that the user used incorrectly <!-- INCLUDE filename -->'; - -$lang['xs_config_tpl_comments'] = 'Add tpl filenames in html'; -$lang['xs_config_tpl_comments_explain'] = 'This feature adds comments to html code that allow style designers to detect which tpl file is displayed.'; - -$lang['xs_config_use_cache'] = 'Use cache'; -$lang['xs_config_use_cache_explain'] = 'Cache is saved to disk and it will accelerate templates system because there would be no need to compile template every time it is shown.'; - -$lang['xs_config_auto_compile'] = 'Automatically save cache'; -$lang['xs_config_auto_compile_explain'] = 'This will automatically compile templates that are not cached and save to cache directory.'; - -$lang['xs_config_auto_recompile'] = 'Automatically re-compile cache'; -$lang['xs_config_auto_recompile_explain'] = 'This will automatically re-compile templates if a template was changed.'; - -$lang['xs_config_php'] = 'Extension of cache filenames'; -$lang['xs_config_php_explain'] = 'This is extension of cached files. Files are stored in php format so default extension is "php". Do not include dot'; - -$lang['xs_config_back'] = 'Click here to return to configuration.'; -$lang['xs_config_sql_error'] = 'Failed to update general configuration for {VAR}'; - -// Debug info -$lang['xs_debug_header'] = 'Debug info'; -$lang['xs_debug_explain'] = 'This is debug info. Used to find/fix problems when configuring cache.'; -$lang['xs_debug_vars'] = 'Template variables'; -$lang['xs_debug_tpl_name'] = 'Template filename:'; -$lang['xs_debug_cache_filename'] = 'Cache filename:'; -$lang['xs_debug_data'] = 'Debug data:'; - -$lang['xs_check_hdr'] = 'Checking cache for %s'; -$lang['xs_check_filename'] = 'Error: invalid filename'; -$lang['xs_check_openfile1'] = 'Error: cannot open file "%s". Will try to create directories...'; -$lang['xs_check_openfile2'] = 'Error: cannot open file "%s" for the second time. Giving up...'; -$lang['xs_check_nodir'] = 'Checking "%s" - no such directory.'; -$lang['xs_check_nodir2'] = 'Error: cannot create directory "%s" - you might need to check permissions.'; -$lang['xs_check_createddir'] = 'Created directory "%s"'; -$lang['xs_check_dir'] = 'Checking "%s" - directory exists.'; -$lang['xs_check_ok'] = 'Opened file "%s" for writing. Everything seems to be ok.'; - - -/* -* chmod -*/ - -$lang['xs_chmod'] = 'CHMOD'; -$lang['xs_chmod_return'] = '

    Click here to return to configuration.'; -$lang['xs_chmod_message1'] = 'Configuration changed.'; -$lang['xs_chmod_error1'] = 'Cannot change access mode to cache directory'; - - -/* -* default style -*/ - -$lang['xs_def_title'] = 'Set Default Style'; -$lang['xs_def_explain'] = 'This feature allows you to quickly change default forum style and also switch users from one style to another.'; - -$lang['xs_styles_set_default'] = 'set default'; -$lang['xs_styles_no_override'] = 'do not override user settings'; -$lang['xs_styles_do_override'] = 'override user settings'; -$lang['xs_styles_switch_all'] = 'switch all users to this style'; -$lang['xs_styles_switch_all2'] = 'switch all users to:'; -$lang['xs_styles_defstyle'] = 'default style'; -$lang['xs_styles_available'] = 'Available styles'; -$lang['xs_styles_make_public'] = 'make style public'; -$lang['xs_styles_make_admin'] = 'make style admin-only'; -$lang['xs_styles_users'] = 'Users List'; - - -/* -* cache management -*/ - -$lang['xs_manage_cache_explain2'] = 'This feature allows you to compile or remove cached files for styles.'; -$lang['xs_clear_all_lc'] = 'clear all'; -$lang['xs_compile_all_lc'] = 'compile all'; -$lang['xs_clear_cache_lc'] = 'clear cache'; -$lang['xs_compile_cache_lc'] = 'compile cache'; -$lang['xs_cache_confirm'] = 'If you have many styles it might cause huge server load. Are you sure you want to continue?'; - -$lang['xs_cache_nowrite'] = 'Error: cannot access cache directory'; -$lang['xs_cache_log_deleted'] = 'Deleted {FILE}'; -$lang['xs_cache_log_nodelete'] = 'Error: cannot delete file {FILE}'; -$lang['xs_cache_log_nothing'] = 'Nothing to delete for template {TPL}'; -$lang['xs_cache_log_nothing2'] = 'Nothing to delete in cache directory'; -$lang['xs_cache_log_count'] = 'Successfully deleted {NUM} files'; -$lang['xs_cache_log_count2'] = 'Error deleting {NUM} files'; -$lang['xs_cache_log_compiled'] = 'Compiled: {NUM} files'; -$lang['xs_cache_log_errors'] = 'Errors: {NUM}'; -$lang['xs_cache_log_noaccess'] = 'Error: cannot access directory {DIR}'; -$lang['xs_cache_log_compiled2'] = 'Compiled: {FILE}'; -$lang['xs_cache_log_nocompile'] = 'Error compiling: {FILE}'; - -/* -* export/import/download/clone -*/ - -$lang['xs_import_explain'] = 'This feature allows you to import styles. It can also automatically install and update styles.

    Note: If you have added any mods (except for eXtreme Styles mod) on this forum then you should be careful when importing styles because styles might not be compatible with your forum. You can only install styles that have the same modifications as the other styles that you\'ve configured on your forums.'; - -$lang['xs_import_lc'] = 'import'; -$lang['xs_list_files_lc'] = 'list files'; -$lang['xs_delete_file_lc'] = 'delete file'; -$lang['xs_export_style_lc'] = 'export style'; - -$lang['xs_import_no_cached'] = 'There are no cached styles to import'; -$lang['xs_add_styles'] = 'Add Styles'; -$lang['xs_add_styles_web'] = 'Download from web'; -$lang['xs_add_styles_web_get'] = 'Get it'; -$lang['xs_add_styles_copy'] = 'Copy from local file'; -$lang['xs_add_styles_copy_get'] = 'Copy'; -$lang['xs_add_styles_upload'] = 'Upload from computer'; -$lang['xs_add_styles_upload_get'] = 'Upload'; - -$lang['xs_export_style'] = 'Export Style'; -$lang['xs_export_style_explain'] = 'This feature allows you to export a style as a single file. This single file is very small - smaller than a .zip file (because it is compressed with gzip, which works better than zip) and all styles inside is a single file. In turn, it is very easy to transfer styles from one forum to another.

    This feature also allows you to upload exported styles using ftp to a server. This system allows you to transfer a style to another forum quickly without manually copying it.'; - -$lang['xs_export_style_title'] = 'Export Template "{TPL}"'; -$lang['xs_export_tpl_name'] = 'Export as (template name)'; -$lang['xs_export_style_names'] = 'Select style(s) to export'; -$lang['xs_export_style_name'] = 'Style to export (style name)'; -$lang['xs_export_style_comment'] = 'Comment'; -$lang['xs_export_where'] = 'Where to export'; -$lang['xs_export_where_download'] = 'Download as file'; -$lang['xs_export_where_store'] = 'Store as file on server'; -$lang['xs_export_where_store_dir'] = 'Directory'; -$lang['xs_export_where_ftp'] = 'Upload via FTP'; -$lang['xs_export_filename'] = 'Export filename'; - -$lang['xs_download_explain2'] = 'This feature allows you to quickly download and install styles directly from different websites. Click on the link near the website name and you will be redirected to a style downloads page.

    You can also manage the list of websites.'; - -$lang['xs_download_locations'] = 'Download Locations'; -$lang['xs_edit_link'] = 'Edit Link'; -$lang['xs_add_link'] = 'Add Link'; -$lang['xs_link_title'] = 'Link Title'; -$lang['xs_link_url'] = 'Link URL'; -$lang['xs_delete'] = 'Delete'; - -$lang['xs_style_header_error_file'] = 'Cannot open local file'; -$lang['xs_style_header_error_server'] = 'Error on server: '; -$lang['xs_style_header_error_invalid'] = 'Invalid file header'; -$lang['xs_style_header_error_reason'] = 'Error reading file header: '; -$lang['xs_style_header_error_incomplete'] = 'File is incomplete'; -$lang['xs_style_header_error_incomplete2'] = 'Invalid file size. Probably file is incomplete.'; -$lang['xs_style_header_error_invalid2'] = 'Invalid file. Presumeably, the file is not an eXtreme Styles mod-compatible style or invalid version.'; -$lang['xs_error_cannot_open'] = 'Cannot open file.'; -$lang['xs_error_decompress_style'] = 'Error decompressing file. Probably file is corrupted.'; -$lang['xs_error_cannot_create_file'] = 'Cannot create file "{FILE}"'; -$lang['xs_error_cannot_create_tmp'] = 'Cannot create temporary file "{FILE}"'; -$lang['xs_import_invalid_file'] = 'Invalid file'; -$lang['xs_import_incomplete_file'] = 'Incomplete file'; -$lang['xs_import_uploaded'] = 'Style uploaded.'; -$lang['xs_import_installed'] = 'Style uploaded and installed.'; -$lang['xs_import_notinstall'] = 'Style uploaded, but error installing style (sql error).'; -$lang['xs_import_notinstall2'] = 'Style uploaded, but error installing style: no styles found in theme_info.cfg'; -$lang['xs_import_notinstall3'] = 'Style uploaded, but error installing style: no entry for "{STYLE}" found in theme_info.cfg'; -$lang['xs_import_notinstall4'] = 'Style uploaded, but error installing style: could not obtain next themes_id information'; -$lang['xs_import_notinstall5'] = 'Style uploaded, but error installing style: could not update styles table'; -$lang['xs_import_nodownload'] = 'Cannot download style from {URL}'; -$lang['xs_import_nodownload2'] = 'Cannot copy style from {URL}'; -$lang['xs_import_nodownload3'] = 'File not uploaded.'; -$lang['xs_import_uploaded2'] = 'Style downloaded. You can now import it.

    Click here to import style.'; -$lang['xs_import_uploaded3'] = 'Style copied. You can now import it.

    Click here to import style.'; -$lang['xs_import_uploaded4'] = 'Style uploaded. You can now import it.

    Click here to import style.'; -$lang['xs_export_no_open_dir'] = 'Cannot open directory {DIR}'; -$lang['xs_export_no_open_file'] = 'Cannot open file {FILE}'; -$lang['xs_export_no_read_file'] = 'Error reading file {FILE}'; -$lang['xs_no_theme_data'] = 'Could not get style data for selected template'; -$lang['xs_no_style_info'] = 'Could not get style information'; -$lang['xs_export_noselect_themes'] = 'You should select at least one style'; -$lang['xs_export_error'] = 'Cannot export template "{TPL}": '; -$lang['xs_export_error2'] = 'Cannot export template "{TPL}": style is empty'; -$lang['xs_export_saved'] = 'Style is saved as "{FILE}"'; -$lang['xs_export_error_uploading'] = 'Error uploading file'; -$lang['xs_export_uploaded'] = 'File uploaded.'; -$lang['xs_clone_taken'] = 'This style name is already used.'; -$lang['xs_error_new_row'] = 'Could not insert new row in table.'; -$lang['xs_theme_cloned'] = 'Style cloned.'; -$lang['xs_invalid_style_name'] = 'Invalid style name.'; -$lang['xs_clone_style_exists'] = 'That template already exists'; -$lang['xs_clone_no_select'] = 'You should select at least one style to clone.'; -$lang['xs_no_themes'] = 'Style not found in database.'; - -$lang['xs_import_back'] = 'Click here to return to import styles page.'; -$lang['xs_import_back_download'] = 'Click here to return to downloads.'; -$lang['xs_export_back'] = 'Click here to return to export styles page.'; -$lang['xs_clone_back'] = 'Click here to return to clone styles page.'; -$lang['xs_download_back'] = 'Click here to return to downloads page.'; - -$lang['xs_import_tpl'] = 'Import Template "{TPL}"'; -$lang['xs_import_tpl_comment'] = 'This feature will upload template to your forum. If template with this name already exists on your forum this feature will automatically overwrite old files so it can also be used to update styles.

    This feature can also automatically install styles. If you want to install style after importing it then select one or more styles below.'; -$lang['xs_import_tpl_filename'] = 'Filename:'; -$lang['xs_import_tpl_tplname'] = 'Template name:'; -$lang['xs_import_tpl_comment2'] = 'Comment:'; -$lang['xs_import_select_styles'] = 'Select style(s) to install:'; -$lang['xs_import_install_def_lc'] = 'make default forum style'; -$lang['xs_import_install_style'] = 'Install style:'; -$lang['xs_import'] = 'Import'; - -$lang['xs_import_list_contents'] = 'Contents of file: '; -$lang['xs_import_list_filename'] = 'Filename: '; -$lang['xs_import_list_template'] = 'Template: '; -$lang['xs_import_list_comment'] = 'Comment: '; -$lang['xs_import_list_styles'] = 'Style(s): '; -$lang['xs_import_list_files'] = 'Files ({NUM}):'; -$lang['xs_import_download_lc'] = 'download file'; -$lang['xs_import_view_lc'] = 'view file'; -$lang['xs_import_file_size'] = '({NUM} bytes)'; - -$lang['xs_import_nogzip'] = 'This function requires gz compression, and apparently that isn\'t supported on this server.'; -$lang['xs_import_nowrite_cache'] = 'Cannot write to cache. This function requires cache to be writable. Check mod configuration.

    Click here to make cache writable.

    Click here to return to import page.'; - -$lang['xs_import_download_warning'] = 'This will take you to an external website where you can quickly download styles with a few simple clicks using the eXtreme Styles import feature.'; - -$lang['xs_clone_style'] = 'Clone Style'; -$lang['xs_clone_style_explain'] = 'This feature allows you to quickly clone style or whole template.

    Warninig: If you are copying template make sure author of original template allows you to do this (unless it is subSilver - you can do whatever you want with subSilver). Usually authors allow to modify their styles, but modified style should not be distributed.'; -$lang['xs_clone_style_explain2'] = 'This feature allows you to create new style for a template. This feature will not copy any files - it will add entry in database for your new style. Both old and new style will share same templates.'; -$lang['xs_clone_style_explain3'] = 'Enter name for new style that you are going to create and click "clone" button.'; -$lang['xs_clone_style_explain4'] = 'This feature allows you to clone template. You can also copy all styles associated with that template. Later you can safely edit tpl files for new template and old template will not be affected.'; - -$lang['xs_clone_style_lc'] = 'clone style'; -$lang['xs_clone_style2'] = 'Clone style "{STYLE}":'; -$lang['xs_clone_style3'] = 'Clone Template "{STYLE}"'; -$lang['xs_clone_newdir_name'] = 'New template (directory) name:'; -$lang['xs_clone_select'] = 'Select style(s) to clone:'; -$lang['xs_clone_select_explain'] = 'You should select at least one style.'; -$lang['xs_clone_newname'] = 'New style name:'; - - -/* -* install/uninstall -*/ -$lang['xs_install_styles_explain2'] = 'This is a list of styles that are uploaded on your forum, but aren\'t installed. Click on the "install" link for the style that you want to install, or select several styles and click submit button.'; -$lang['xs_uninstall_styles_explain2'] = 'This is a list of styles that are installed on your forum. Click on the "uninstall" link to remove some styles from the forum. Uninstalling is safe - all users who employ the style that is being uninstalled will be switched to the default forum style. Also, uninstalling will automatically delete cache for that style.'; - -$lang['xs_install'] = 'Install'; -$lang['xs_install_lc'] = 'install'; -$lang['xs_uninstall'] = 'Uninstall'; -$lang['xs_remove_files'] = 'Remove Files'; -$lang['xs_style_removed'] = 'Style removed.'; -$lang['xs_uninstall_lc'] = 'uninstall'; -$lang['xs_uninstall2_lc'] = 'uninstall and delete files'; - -$lang['xs_install_back'] = 'Click here to return to styles installation.'; -$lang['xs_uninstall_back'] = 'Click here to return to styles uninstallation.'; -$lang['xs_goto_default'] = 'Click here to change default style.'; - -$lang['xs_install_installed'] = 'Style(s) installed.'; -$lang['xs_install_error'] = 'Error installing style.'; -$lang['xs_install_none'] = 'There are no new styles to install. All available styles are already installed.'; - -$lang['xs_uninstall_default'] = 'You cannot remove default style. To change default style click here.'; - -/* -* export theme_info.cfg -*/ -$lang['xs_export_styles_data_explain2'] = 'This feature saves style data in theme_info.cfg. It can be used to save database information before transferring styles from one forum to another.

    Note: If you are using the eXtreme Styles export feature to move a style to another forum you don\'t need to save theme_info.cfg - it is done automatically by the style export feature.'; -$lang['xs_export_styles_data_explain3'] = 'Select styles that you want to export.'; - -$lang['xs_export_data_back'] = 'Click here to return to export style data page.'; -$lang['xs_export_style_data_lc'] = 'export style data'; - -$lang['xs_export_data_saved'] = 'Data exported.'; - -/* -* edit templates (file manager) -*/ -$lang['xs_edit_template_comment1'] = 'This feature allows you to edit templates. File browser shows only editable files.'; -$lang['xs_edit_template_comment2'] = 'This feature allows you to edit templates.'; -$lang['xs_edit_file_saved'] = 'File is saved.'; -$lang['xs_edit_not_found'] = 'File not found.'; -$lang['xs_edittpl_back_dir'] = 'Click here to return to file manager.'; - -$lang['xs_fileman_browser'] = 'File Browser'; -$lang['xs_fileman_directory'] = 'Directory:'; -$lang['xs_fileman_dircount'] = 'Directories ({COUNT}):'; -$lang['xs_fileman_filter'] = 'Filter'; -$lang['xs_fileman_filter_ext'] = 'Show only files with extension:'; -$lang['xs_fileman_filter_content'] = 'Show only files that contain:'; -$lang['xs_fileman_filter_clear'] = 'Clear Filter'; -$lang['xs_fileman_filename'] = 'Filename'; -$lang['xs_fileman_filesize'] = 'Size'; -$lang['xs_fileman_filetime'] = 'Modification'; -$lang['xs_fileman_options'] = 'Options'; -$lang['xs_fileman_time_today'] = '(today)'; -$lang['xs_fileman_edit_lc'] = 'edit'; - -$lang['xs_fileedit_search_nomatch'] = 'Match not found'; -$lang['xs_fileedit_search_match1'] = 'Replaced 1 match'; -$lang['xs_fileedit_search_matches'] = "Replaced ' + count + ' matches"; -$lang['xs_fileedit_noundo'] = 'There is nothing to undo'; -$lang['xs_fileedit_undo_complete'] = 'Old content restored'; -$lang['xs_fileedit_edit_name'] = 'Edit file:'; -$lang['xs_fileedit_location'] = 'Location:'; -$lang['xs_fileedit_reload_lc'] = 'reload file'; -$lang['xs_fileedit_download_lc'] = 'download file'; -$lang['xs_fileedit_trim'] = 'Automatically trim spaces at beginning and end of file.'; -$lang['xs_fileedit_functions'] = 'Edit Functions'; -$lang['xs_fileedit_replace1'] = 'Replace '; -$lang['xs_fileedit_replace2'] = ' with '; -$lang['xs_fileedit_replace_first_lc'] = 'replace first match'; -$lang['xs_fileedit_replace_all_lc'] = 'replace all matches'; -$lang['xs_fileedit_replace_undo_lc'] = 'undo replacement'; -$lang['xs_fileedit_backups'] = 'Backups'; -$lang['xs_fileedit_backups_save_lc'] = 'save backup'; -$lang['xs_fileedit_backups_show_lc'] = 'show contents'; -$lang['xs_fileedit_backups_restore_lc'] = 'restore'; -$lang['xs_fileedit_backups_download_lc'] = 'download'; -$lang['xs_fileedit_backups_delete_lc'] = 'delete'; -$lang['xs_fileedit_upload'] = 'Upload'; -$lang['xs_fileedit_upload_file'] = 'Upload file:'; - -/* -* edit styles data (theme_info) -*/ -$lang['xs_data_head_stylesheet'] = 'CSS Stylesheet'; -$lang['xs_data_body_background'] = 'Background Image'; -$lang['xs_data_body_bgcolor'] = 'Background Colour'; -$lang['xs_data_style_name'] = 'Style Name'; -$lang['xs_data_body_link'] = 'Link Colour'; -$lang['xs_data_body_text'] = 'Text Colour'; -$lang['xs_data_body_vlink'] = 'Visited Link Colour'; -$lang['xs_data_body_alink'] = 'Active Link Colour'; -$lang['xs_data_body_hlink'] = 'Hover Link Colour'; -$lang['xs_data_tr_color'] = 'Table Row Colour %s'; -$lang['xs_data_tr_class'] = 'Table Row Class %s'; -$lang['xs_data_th_color'] = 'Table Header Colour %s'; -$lang['xs_data_th_class'] = 'Table Header Class %s'; -$lang['xs_data_td_color'] = 'Table Cell Colour %s'; -$lang['xs_data_td_class'] = 'Table Cell Class %s'; -$lang['xs_data_fontface'] = 'Font Face %s'; -$lang['xs_data_fontsize'] = 'Font Size %s'; -$lang['xs_data_fontcolor'] = 'Font Colour %s'; -$lang['xs_data_span_class'] = 'Span Class %s'; -$lang['xs_data_img_size_poll'] = 'Polling Image Size [px]'; -$lang['xs_data_img_size_privmsg'] = 'Private Message Status size [px]'; -$lang['xs_data_theme_public'] = 'Public Style (1 or 0)'; -$lang['xs_data_unknown'] = 'Description is not available (%s)'; - -$lang['xs_edittpl_error_updating'] = 'Error updating style.'; -$lang['xs_edittpl_style_updated'] = 'Style updated.'; -$lang['xs_invalid_style_id'] = 'Invalid style id.'; - -$lang['xs_edittpl_back_edit'] = 'Click here to return to editing.'; -$lang['xs_edittpl_back_list'] = 'Click here to return to styles list.'; - -$lang['xs_editdata_explain'] = 'This feature allows you to edit database data for installed styles. Some styles ignore database values and use css files instead, and some styles use only some of database values.'; -$lang['xs_editdata_var'] = 'Variable'; -$lang['xs_editdata_value'] = 'Value'; -$lang['xs_editdata_comment'] = 'Comment'; - -/* -* updates -*/ - -$lang['xs_updates'] = 'Updates'; -$lang['xs_updates_comment'] = 'This feature checks for updates of some styles and mods. It works only with items that have relevant update information.'; -$lang['xs_updates_comment2'] = 'This is result of version check.'; -$lang['xs_update_total1'] = 'Total: {NUM} items'; -$lang['xs_update_info1'] = 'This administrator feature will check for available updates of phpBB, certain mods, and some styles installed on your forum. When it finds available updates it shows you the link where you can download the updated file.

    This function requires sockets to be enabled. Most free web hosts do not have this feature so if this forum is on free host (like lycos) then you cannot use update feature, but if this forum is on normal server then everything should be okay.

    When you click "continue", the script will check all software installed on forum. If your website is slow it might take some time. Be patient and don\'t click "stop" in your browser if process is delayed. If this server is slow or update website is slow then script might timeout - if this happens you should increase timeout value.'; -$lang['xs_update_name'] = 'Name'; -$lang['xs_update_type'] = 'Type'; -$lang['xs_update_current_version'] = 'Your version'; -$lang['xs_update_latest_version'] = 'Latest version'; -$lang['xs_update_downloadinfo'] = 'Download URL'; -$lang['xs_update_timeout'] = 'Update script timeout (seconds):'; -$lang['xs_update_continue'] = 'Continue'; - - -$lang['xs_update_total2'] = 'Errors: {NUM}'; -$lang['xs_update_total3'] = 'Updates available: {NUM} items'; -$lang['xs_update_select1'] = 'Select items to update'; -$lang['xs_update_types'] = array( - 0 => 'Unknown', - 1 => 'Style', - 2 => 'Mod', - 3 => 'phpBB' - ); -$lang['xs_update_fileinfo'] = 'More info'; -$lang['xs_update_nothing'] = 'There is nothing to update.'; -$lang['xs_update_noupdate'] = 'You are using the latest version.'; - -$lang['xs_update_error_url'] = 'Error: cannot retrieve url %s'; -$lang['xs_update_error_noitem'] = 'Error: No update information available'; -$lang['xs_update_error_noconnect'] = 'Error: Cannot connect to update server'; - -$lang['xs_update_download'] = 'download'; -$lang['xs_update_downloadinfo2'] = 'download/info'; -$lang['xs_update_info'] = 'website'; - -$lang['xs_permission_denied'] = 'Permission Denied'; - -$lang['xs_download_lc'] = 'download'; -$lang['xs_info_lc'] = 'info'; - -?> \ No newline at end of file diff --git a/phpBB2_old/language/lang_english/search_stopwords.txt b/phpBB2_old/language/lang_english/search_stopwords.txt deleted file mode 100644 index 5629d9a..0000000 --- a/phpBB2_old/language/lang_english/search_stopwords.txt +++ /dev/null @@ -1,251 +0,0 @@ -a -about -after -ago -all -almost -along -alot -also -am -an -and -answer -any -anybody -anybodys -anywhere -are -arent -around -as -ask -askd -at -bad -be -because -been -before -being -best -better -between -big -btw -but -by -can -cant -come -could -couldnt -day -days -days -did -didnt -do -does -doesnt -dont -down -each -etc -either -else -even -ever -every -everybody -everybodys -everyone -far -find -for -found -from -get -go -going -gone -good -got -gotten -had -has -have -havent -having -her -here -hers -him -his -home -how -hows -href -I -Ive -if -in -ini -into -is -isnt -it -its -its -just -know -large -less -like -liked -little -looking -look -looked -looking -lot -maybe -many -me -more -most -much -must -mustnt -my -near -need -never -new -news -no -none -not -nothing -now -of -off -often -old -on -once -only -oops -or -other -our -ours -out -over -page -please -put -question -questions -questioned -quote -rather -really -recent -said -saw -say -says -she -see -sees -should -sites -small -so -some -something -sometime -somewhere -soon -take -than -true -thank -that -thatd -thats -the -their -theirs -theres -theirs -them -then -there -these -they -theyll -theyd -theyre -this -those -though -through -thus -time -times -to -too -under -until -untrue -up -upon -use -users -version -very -via -want -was -way -we -well -went -were -werent -what -when -where -which -who -whom -whose -why -wide -will -with -within -without -wont -world -worse -worst -would -wrote -www -yes -yet -you -youd -youll -your -youre -yours -AFAIK -IIRC -LOL -ROTF -ROTFLMAO -YMMV diff --git a/phpBB2_old/language/lang_english/search_synonyms.txt b/phpBB2_old/language/lang_english/search_synonyms.txt deleted file mode 100644 index 0359039..0000000 --- a/phpBB2_old/language/lang_english/search_synonyms.txt +++ /dev/null @@ -1,149 +0,0 @@ -abcense absence -abridgement abridgment -accomodate accommodate -acknowledgment acknowledgement -airplane aeroplane -allright alright -andy andrew -anemia anaemia -anemic anaemic -anesthesia anaesthesia -appologize appologise -archean archaean -archeology archaeology -archeozoic archaeozoic -armor armour -artic arctic -attachment attachement -attendence attendance -barbecue barbeque -behavior behaviour -biassed biased -biol biology -buletin bulletin -calender calendar -canceled cancelled -car automobile -catalog catalogue -cenozoic caenozoic -center centre -check cheque -color colour -comission commission -comittee committee -commitee committee -conceed concede -creating createing -curiculum curriculum -defense defence -develope develop -discription description -dulness dullness -encyclopedia encyclopaedia -enroll enrol -esthetic aesthetic -etiology aetiology -exhorbitant exorbitant -exhuberant exuberant -existance existence -favorite favourite -fetus foetus -ficticious fictitious -flavor flavour -flourescent fluorescent -foriegn foreign -fourty forty -gage guage -geneology genealogy -grammer grammar -gray grey -guerilla guerrilla -gynecology gynaecology -harbor harbour -heighth height -hemaglobin haemaglobin -hematin haematin -hematite haematite -hematology haematology -honor honour -innoculate inoculate -installment instalment -irrelevent irrelevant -irrevelant irrelevant -jeweler jeweller -judgement judgment -labeled labelled -labor labour -laborer labourer -laborers labourers -laboring labouring -licence license -liesure leisure -liquify liquefy -maintainance maintenance -maintenence maintenance -medieval mediaeval -meter metre -milage mileage -millipede millepede -miscelaneous miscellaneous -morgage mortgage -noticable noticeable -occurence occurrence -offense offence -ommision omission -ommission omission -optimize optimize -organise organize -pajamas pyjamas -paleography palaeography -paleolithic palaeolithic -paleontological palaeontological -paleontologist palaeontologist -paleontology palaeontology -paleozoic palaeozoic -pamplet pamphlet -paralell parallel -parl parliament -parlt parliament -pediatric paediatric -pediatrician paediatrician -pediatrics paediatrics -pedodontia paedodontia -pedodontics paedodontics -personel personnel -practise practice -program programme -psych psychology -questionaire questionnaire -rarify rarefy -reccomend recommend -recieve receive -resistence resistance -restaraunt restaurant -savior saviour -sep september -seperate separate -sept september -sieze seize -summarize summarise -summerize summarise -superceed supercede -superintendant superintendent -supersede supercede -suprise surprise -surprize surprise -synchronise synchronize -temperary temporary -theater theatre -threshhold threshold -transfered transferred -truely truly -truley truly -useable usable -valor valour -vigor vigour -vol volume -whack wack -withold withhold -yeild yield diff --git a/phpBB2_old/login.php b/phpBB2_old/login.php deleted file mode 100644 index cb679bd..0000000 --- a/phpBB2_old/login.php +++ /dev/null @@ -1,234 +0,0 @@ -sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error in obtaining userdata', '', __LINE__, __FILE__, $sql); - } - - if( $row = $db->sql_fetchrow($result) ) - { - if( $row['user_level'] != ADMIN && $board_config['board_disable'] ) - { - redirect(append_sid("index.$phpEx", true)); - } - else - { - if( md5($password) == $row['user_password'] && $row['user_active'] ) - { - $autologin = ( isset($HTTP_POST_VARS['autologin']) ) ? TRUE : 0; - - $session_id = session_begin($row['user_id'], $user_ip, PAGE_INDEX, FALSE, $autologin); - - if( $session_id ) - { - $url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx"; - redirect(append_sid($url, true)); - } - else - { - message_die(CRITICAL_ERROR, "Couldn't start session : login", "", __LINE__, __FILE__); - } - } - else - { - $redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : ''; - $redirect = str_replace('?', '&', $redirect); - - if (strstr(urldecode($redirect), "\n") || strstr(urldecode($redirect), "\r")) - { - message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.'); - } - - $template->assign_vars(array( - 'META' => "") - ); - - $message = $lang['Error_login'] . '

    ' . sprintf($lang['Click_return_login'], "", '') . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - } - } - else - { - $redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : ""; - $redirect = str_replace("?", "&", $redirect); - - if (strstr(urldecode($redirect), "\n") || strstr(urldecode($redirect), "\r")) - { - message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.'); - } - - $template->assign_vars(array( - 'META' => "") - ); - - $message = $lang['Error_login'] . '

    ' . sprintf($lang['Click_return_login'], "", '') . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - } - else if( ( isset($HTTP_GET_VARS['logout']) || isset($HTTP_POST_VARS['logout']) ) && $userdata['session_logged_in'] ) - { - if( $userdata['session_logged_in'] ) - { - session_end($userdata['session_id'], $userdata['user_id']); - } - - if (!empty($HTTP_POST_VARS['redirect']) || !empty($HTTP_GET_VARS['redirect'])) - { - $url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']); - $url = str_replace('&', '&', $url); - redirect(append_sid($url, true)); - } - else - { - redirect(append_sid("index.$phpEx", true)); - } - } - else - { - $url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx"; - redirect(append_sid($url, true)); - } -} -else -{ - // - // Do a full login page dohickey if - // user not already logged in - // - if( !$userdata['session_logged_in'] ) - { - $page_title = $lang['Login']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'body' => 'login_body.tpl') - ); - - if( isset($HTTP_POST_VARS['redirect']) || isset($HTTP_GET_VARS['redirect']) ) - { - $forward_to = $HTTP_SERVER_VARS['QUERY_STRING']; - - if( preg_match("/^redirect=([a-z0-9\.#\/\?&=\+\-_]+)/si", $forward_to, $forward_matches) ) - { - $forward_to = ( !empty($forward_matches[3]) ) ? $forward_matches[3] : $forward_matches[1]; - $forward_match = explode('&', $forward_to); - - if(count($forward_match) > 1) - { - $forward_page = ''; - - for($i = 1; $i < count($forward_match); $i++) - { - if( !ereg("sid=", $forward_match[$i]) ) - { - if( $forward_page != '' ) - { - $forward_page .= '&'; - } - $forward_page .= $forward_match[$i]; - } - } - $forward_page = $forward_match[0] . '?' . $forward_page; - } - else - { - $forward_page = $forward_match[0]; - } - } - } - else - { - $forward_page = ''; - } - - $username = ( $userdata['user_id'] != ANONYMOUS ) ? $userdata['username'] : ''; - - $s_hidden_fields = ''; - - make_jumpbox('viewforum.'.$phpEx, $forum_id); - $template->assign_vars(array( - 'USERNAME' => $username, - - 'L_ENTER_PASSWORD' => $lang['Enter_password'], - 'L_SEND_PASSWORD' => $lang['Forgotten_password'], - - 'U_SEND_PASSWORD' => append_sid("profile.$phpEx?mode=sendpassword"), - - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); - - $template->pparse('body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } - else - { - redirect(append_sid("index.$phpEx", true)); - } - -} - -?> \ No newline at end of file diff --git a/phpBB2_old/memberlist.php b/phpBB2_old/memberlist.php deleted file mode 100644 index 7a3a5de..0000000 --- a/phpBB2_old/memberlist.php +++ /dev/null @@ -1,311 +0,0 @@ -'; -for($i = 0; $i < count($mode_types_text); $i++) -{ - $selected = ( $mode == $mode_types[$i] ) ? ' selected="selected"' : ''; - $select_sort_mode .= ''; -} -$select_sort_mode .= ''; - -$select_sort_order = ''; - -// -// Generate page -// -$page_title = $lang['Memberlist']; -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -$template->set_filenames(array( - 'body' => 'memberlist_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$template->assign_vars(array( - 'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'], - 'L_EMAIL' => $lang['Email'], - 'L_WEBSITE' => $lang['Website'], - 'L_FROM' => $lang['Location'], - 'L_ORDER' => $lang['Order'], - 'L_SORT' => $lang['Sort'], - 'L_SUBMIT' => $lang['Sort'], - 'L_AIM' => $lang['AIM'], - 'L_YIM' => $lang['YIM'], - 'L_MSNM' => $lang['MSNM'], - 'L_ICQ' => $lang['ICQ'], - 'L_JOINED' => $lang['Joined'], - 'L_POSTS' => $lang['Posts'], - 'L_PM' => $lang['Private_Message'], - - 'S_MODE_SELECT' => $select_sort_mode, - 'S_ORDER_SELECT' => $select_sort_order, - 'S_MODE_ACTION' => append_sid("memberlist.$phpEx")) -); - -switch( $mode ) -{ - case 'joined': - $order_by = "user_regdate $sort_order LIMIT $start, " . $board_config['topics_per_page']; - break; - case 'username': - $order_by = "username $sort_order LIMIT $start, " . $board_config['topics_per_page']; - break; - case 'location': - $order_by = "user_from $sort_order LIMIT $start, " . $board_config['topics_per_page']; - break; - case 'posts': - $order_by = "user_posts $sort_order LIMIT $start, " . $board_config['topics_per_page']; - break; - case 'email': - $order_by = "user_email $sort_order LIMIT $start, " . $board_config['topics_per_page']; - break; - case 'website': - $order_by = "user_website $sort_order LIMIT $start, " . $board_config['topics_per_page']; - break; - case 'topten': - $order_by = "user_posts $sort_order LIMIT 10"; - break; - default: - $order_by = "user_regdate $sort_order LIMIT $start, " . $board_config['topics_per_page']; - break; -} - -$sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar - FROM " . USERS_TABLE . " - WHERE user_id <> " . ANONYMOUS . " - ORDER BY $order_by"; -if( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not query users', '', __LINE__, __FILE__, $sql); -} - -if ( $row = $db->sql_fetchrow($result) ) -{ - $i = 0; - do - { - $username = $row['username']; - $user_id = $row['user_id']; - - $from = ( !empty($row['user_from']) ) ? $row['user_from'] : ' '; - $joined = create_date($lang['DATE_FORMAT'], $row['user_regdate'], $board_config['board_timezone']); - $posts = ( $row['user_posts'] ) ? $row['user_posts'] : 0; - - $poster_avatar = ''; - if ( $row['user_avatar_type'] && $user_id != ANONYMOUS && $row['user_allowavatar'] ) - { - switch( $row['user_avatar_type'] ) - { - case USER_AVATAR_UPLOAD: - $poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '' : ''; - break; - case USER_AVATAR_REMOTE: - $poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '' : ''; - break; - case USER_AVATAR_GALLERY: - $poster_avatar = ( $board_config['allow_avatar_local'] ) ? '' : ''; - break; - } - } - - if ( !empty($row['user_viewemail']) || $userdata['user_level'] == ADMIN ) - { - $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $user_id) : 'mailto:' . $row['user_email']; - - $email_img = '' . $lang['Send_email'] . ''; - $email = '' . $lang['Send_email'] . ''; - } - else - { - $email_img = ' '; - $email = ' '; - } - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"); - $profile_img = '' . $lang['Read_profile'] . ''; - $profile = '' . $lang['Read_profile'] . ''; - - $temp_url = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$user_id"); - $pm_img = '' . $lang['Send_private_message'] . ''; - $pm = '' . $lang['Send_private_message'] . ''; - - $www_img = ( $row['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - $www = ( $row['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - - if ( !empty($row['user_icq']) ) - { - $icq_status_img = ''; - $icq_img = '' . $lang['ICQ'] . ''; - $icq = '' . $lang['ICQ'] . ''; - } - else - { - $icq_status_img = ''; - $icq_img = ''; - $icq = ''; - } - - $aim_img = ( $row['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - $aim = ( $row['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id"); - $msn_img = ( $row['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - $msn = ( $row['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - - $yim_img = ( $row['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - $yim = ( $row['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - - $temp_url = append_sid("search.$phpEx?search_author=" . urlencode($username) . "&showresults=posts"); - $search_img = '' . $lang['Search_user_posts'] . ''; - $search = '' . $lang['Search_user_posts'] . ''; - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('memberrow', array( - 'ROW_NUMBER' => $i + ( $start + 1 ), - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'USERNAME' => $username, - 'FROM' => $from, - 'JOINED' => $joined, - 'POSTS' => $posts, - 'AVATAR_IMG' => $poster_avatar, - 'PROFILE_IMG' => $profile_img, - 'PROFILE' => $profile, - 'SEARCH_IMG' => $search_img, - 'SEARCH' => $search, - 'PM_IMG' => $pm_img, - 'PM' => $pm, - 'EMAIL_IMG' => $email_img, - 'EMAIL' => $email, - 'WWW_IMG' => $www_img, - 'WWW' => $www, - 'ICQ_STATUS_IMG' => $icq_status_img, - 'ICQ_IMG' => $icq_img, - 'ICQ' => $icq, - 'AIM_IMG' => $aim_img, - 'AIM' => $aim, - 'MSN_IMG' => $msn_img, - 'MSN' => $msn, - 'YIM_IMG' => $yim_img, - 'YIM' => $yim, - - 'U_VIEWPROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id")) - ); - - $i++; - } - while ( $row = $db->sql_fetchrow($result) ); - $db->sql_freeresult($result); -} - -if ( $mode != 'topten' || $board_config['topics_per_page'] < 10 ) -{ - $sql = "SELECT count(*) AS total - FROM " . USERS_TABLE . " - WHERE user_id <> " . ANONYMOUS; - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Error getting total users', '', __LINE__, __FILE__, $sql); - } - - if ( $total = $db->sql_fetchrow($result) ) - { - $total_members = $total['total']; - - $pagination = generate_pagination("memberlist.$phpEx?mode=$mode&order=$sort_order", $total_members, $board_config['topics_per_page'], $start). ' '; - } - $db->sql_freeresult($result); -} -else -{ - $pagination = ' '; - $total_members = 10; -} - -$template->assign_vars(array( - 'PAGINATION' => $pagination, - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( $total_members / $board_config['topics_per_page'] )), - - 'L_GOTO_PAGE' => $lang['Goto_page']) -); - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/modcp.php b/phpBB2_old/modcp.php deleted file mode 100644 index 46fceb2..0000000 --- a/phpBB2_old/modcp.php +++ /dev/null @@ -1,1202 +0,0 @@ -sql_query($sql)) ) - { - message_die(GENERAL_MESSAGE, 'Topic_post_not_exist'); - } - $topic_row = $db->sql_fetchrow($result); - - $forum_topics = ( $topic_row['forum_topics'] == 0 ) ? 1 : $topic_row['forum_topics']; - $forum_id = $topic_row['forum_id']; - $forum_name = $topic_row['forum_name']; -} -else if ( !empty($forum_id) ) -{ - $sql = "SELECT forum_name, forum_topics - FROM " . FORUMS_TABLE . " - WHERE forum_id = " . $forum_id; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_MESSAGE, 'Forum_not_exist'); - } - $topic_row = $db->sql_fetchrow($result); - - $forum_topics = ( $topic_row['forum_topics'] == 0 ) ? 1 : $topic_row['forum_topics']; - $forum_name = $topic_row['forum_name']; -} -else -{ - message_die(GENERAL_MESSAGE, 'Forum_not_exist'); -} - -// -// Start session management -// -$userdata = session_pagestart($user_ip, $forum_id); -init_userprefs($userdata); -// -// End session management -// - -// session id check -if ($sid == '' || $sid != $userdata['session_id']) -{ - message_die(GENERAL_ERROR, 'Invalid_session'); -} - -// -// Check if user did or did not confirm -// If they did not, forward them to the last page they were on -// -if ( isset($HTTP_POST_VARS['cancel']) ) -{ - if ( $topic_id ) - { - $redirect = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id"; - } - else if ( $forum_id ) - { - $redirect = "viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"; - } - else - { - $redirect = "index.$phpEx"; - } - - redirect(append_sid($redirect, true)); -} - -// -// Start auth check -// -$is_auth = auth(AUTH_ALL, $forum_id, $userdata); - -if ( !$is_auth['auth_mod'] ) -{ - message_die(GENERAL_MESSAGE, $lang['Not_Moderator'], $lang['Not_Authorised']); -} -// -// End Auth Check -// - -// -// Do major work ... -// -switch( $mode ) -{ - case 'delete': - if (!$is_auth['auth_delete']) - { - message_die(MESSAGE, sprintf($lang['Sorry_auth_delete'], $is_auth['auth_delete_type'])); - } - - $page_title = $lang['Mod_CP']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - if ( $confirm ) - { - include($phpbb_root_path . 'includes/functions_search.'.$phpEx); - - $topics = ( isset($HTTP_POST_VARS['topic_id_list']) ) ? $HTTP_POST_VARS['topic_id_list'] : array($topic_id); - - $topic_id_sql = ''; - for($i = 0; $i < count($topics); $i++) - { - $topic_id_sql .= ( ( $topic_id_sql != '' ) ? ', ' : '' ) . intval($topics[$i]); - } - - $sql = "SELECT topic_id - FROM " . TOPICS_TABLE . " - WHERE topic_id IN ($topic_id_sql) - AND forum_id = $forum_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get topic id information', '', __LINE__, __FILE__, $sql); - } - - $topic_id_sql = ''; - while ($row = $db->sql_fetchrow($result)) - { - $topic_id_sql .= (($topic_id_sql != '') ? ', ' : '') . intval($row['topic_id']); - } - $db->sql_freeresult($result); - - $sql = "SELECT poster_id, COUNT(post_id) AS posts - FROM " . POSTS_TABLE . " - WHERE topic_id IN ($topic_id_sql) - GROUP BY poster_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get poster id information', '', __LINE__, __FILE__, $sql); - } - - $count_sql = array(); - while ( $row = $db->sql_fetchrow($result) ) - { - $count_sql[] = "UPDATE " . USERS_TABLE . " - SET user_posts = user_posts - " . $row['posts'] . " - WHERE user_id = " . $row['poster_id']; - } - $db->sql_freeresult($result); - - if ( sizeof($count_sql) ) - { - for($i = 0; $i < sizeof($count_sql); $i++) - { - if ( !$db->sql_query($count_sql[$i]) ) - { - message_die(GENERAL_ERROR, 'Could not update user post count information', '', __LINE__, __FILE__, $sql); - } - } - } - - $sql = "SELECT post_id - FROM " . POSTS_TABLE . " - WHERE topic_id IN ($topic_id_sql)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get post id information', '', __LINE__, __FILE__, $sql); - } - - $post_id_sql = ''; - while ( $row = $db->sql_fetchrow($result) ) - { - $post_id_sql .= ( ( $post_id_sql != '' ) ? ', ' : '' ) . intval($row['post_id']); - } - $db->sql_freeresult($result); - - $sql = "SELECT vote_id - FROM " . VOTE_DESC_TABLE . " - WHERE topic_id IN ($topic_id_sql)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get vote id information', '', __LINE__, __FILE__, $sql); - } - - $vote_id_sql = ''; - while ( $row = $db->sql_fetchrow($result) ) - { - $vote_id_sql .= ( ( $vote_id_sql != '' ) ? ', ' : '' ) . $row['vote_id']; - } - $db->sql_freeresult($result); - - // - // Got all required info so go ahead and start deleting everything - // - $sql = "DELETE - FROM " . TOPICS_TABLE . " - WHERE topic_id IN ($topic_id_sql) - OR topic_moved_id IN ($topic_id_sql)"; - if ( !$db->sql_query($sql, BEGIN_TRANSACTION) ) - { - message_die(GENERAL_ERROR, 'Could not delete topics', '', __LINE__, __FILE__, $sql); - } - - if ( $post_id_sql != '' ) - { - $sql = "DELETE - FROM " . POSTS_TABLE . " - WHERE post_id IN ($post_id_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete posts', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE - FROM " . POSTS_TEXT_TABLE . " - WHERE post_id IN ($post_id_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete posts text', '', __LINE__, __FILE__, $sql); - } - - remove_search_post($post_id_sql); - } - - if ( $vote_id_sql != '' ) - { - $sql = "DELETE - FROM " . VOTE_DESC_TABLE . " - WHERE vote_id IN ($vote_id_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete vote descriptions', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE - FROM " . VOTE_RESULTS_TABLE . " - WHERE vote_id IN ($vote_id_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete vote results', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE - FROM " . VOTE_USERS_TABLE . " - WHERE vote_id IN ($vote_id_sql)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete vote users', '', __LINE__, __FILE__, $sql); - } - } - - $sql = "DELETE - FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id IN ($topic_id_sql)"; - if ( !$db->sql_query($sql, END_TRANSACTION) ) - { - message_die(GENERAL_ERROR, 'Could not delete watched post list', '', __LINE__, __FILE__, $sql); - } - - sync('forum', $forum_id); - - if ( !empty($topic_id) ) - { - $redirect_page = "viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id&sid=" . $userdata['session_id']; - $l_redirect = sprintf($lang['Click_return_forum'], '', ''); - } - else - { - $redirect_page = "modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id&sid=" . $userdata['session_id']; - $l_redirect = sprintf($lang['Click_return_modcp'], '', ''); - } - - $template->assign_vars(array( - 'META' => '') - ); - - message_die(GENERAL_MESSAGE, $lang['Topics_Removed'] . '

    ' . $l_redirect); - } - else - { - // Not confirmed, show confirmation message - if ( empty($HTTP_POST_VARS['topic_id_list']) && empty($topic_id) ) - { - message_die(GENERAL_MESSAGE, $lang['None_selected']); - } - - $hidden_fields = ''; - - if ( isset($HTTP_POST_VARS['topic_id_list']) ) - { - $topics = $HTTP_POST_VARS['topic_id_list']; - for($i = 0; $i < count($topics); $i++) - { - $hidden_fields .= ''; - } - } - else - { - $hidden_fields .= ''; - } - - // - // Set template files - // - $template->set_filenames(array( - 'confirm' => 'confirm_body.tpl') - ); - - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Confirm'], - 'MESSAGE_TEXT' => $lang['Confirm_delete_topic'], - - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - - 'S_CONFIRM_ACTION' => append_sid("modcp.$phpEx"), - 'S_HIDDEN_FIELDS' => $hidden_fields) - ); - - $template->pparse('confirm'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } - break; - - case 'move': - $page_title = $lang['Mod_CP']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - if ( $confirm ) - { - if ( empty($HTTP_POST_VARS['topic_id_list']) && empty($topic_id) ) - { - message_die(GENERAL_MESSAGE, $lang['None_selected']); - } - - $new_forum_id = intval($HTTP_POST_VARS['new_forum']); - $old_forum_id = $forum_id; - - if ( $new_forum_id != $old_forum_id ) - { - $topics = ( isset($HTTP_POST_VARS['topic_id_list']) ) ? $HTTP_POST_VARS['topic_id_list'] : array($topic_id); - - $topic_list = ''; - for($i = 0; $i < count($topics); $i++) - { - $topic_list .= ( ( $topic_list != '' ) ? ', ' : '' ) . intval($topics[$i]); - } - - $sql = "SELECT * - FROM " . TOPICS_TABLE . " - WHERE topic_id IN ($topic_list) - AND forum_id = $old_forum_id - AND topic_status <> " . TOPIC_MOVED; - if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) ) - { - message_die(GENERAL_ERROR, 'Could not select from topic table', '', __LINE__, __FILE__, $sql); - } - - $row = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); - - for($i = 0; $i < count($row); $i++) - { - $topic_id = $row[$i]['topic_id']; - - if ( isset($HTTP_POST_VARS['move_leave_shadow']) ) - { - // Insert topic in the old forum that indicates that the forum has moved. - $sql = "INSERT INTO " . TOPICS_TABLE . " (forum_id, topic_title, topic_poster, topic_time, topic_status, topic_type, topic_vote, topic_views, topic_replies, topic_first_post_id, topic_last_post_id, topic_moved_id) - VALUES ($old_forum_id, '" . addslashes(str_replace("\'", "''", $row[$i]['topic_title'])) . "', '" . str_replace("\'", "''", $row[$i]['topic_poster']) . "', " . $row[$i]['topic_time'] . ", " . TOPIC_MOVED . ", " . POST_NORMAL . ", " . $row[$i]['topic_vote'] . ", " . $row[$i]['topic_views'] . ", " . $row[$i]['topic_replies'] . ", " . $row[$i]['topic_first_post_id'] . ", " . $row[$i]['topic_last_post_id'] . ", $topic_id)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert shadow topic', '', __LINE__, __FILE__, $sql); - } - } - - $sql = "UPDATE " . TOPICS_TABLE . " - SET forum_id = $new_forum_id - WHERE topic_id = $topic_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update old topic', '', __LINE__, __FILE__, $sql); - } - - $sql = "UPDATE " . POSTS_TABLE . " - SET forum_id = $new_forum_id - WHERE topic_id = $topic_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update post topic ids', '', __LINE__, __FILE__, $sql); - } - } - - // Sync the forum indexes - sync('forum', $new_forum_id); - sync('forum', $old_forum_id); - - $message = $lang['Topics_Moved'] . '

    '; - - } - else - { - $message = $lang['No_Topics_Moved'] . '

    '; - } - - if ( !empty($topic_id) ) - { - $redirect_page = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&sid=" . $userdata['session_id']; - $message .= sprintf($lang['Click_return_topic'], '', ''); - } - else - { - $redirect_page = "modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id&sid=" . $userdata['session_id']; - $message .= sprintf($lang['Click_return_modcp'], '', ''); - } - - $message = $message . '

    ' . sprintf($lang['Click_return_forum'], '', ''); - - $template->assign_vars(array( - 'META' => '') - ); - - message_die(GENERAL_MESSAGE, $message); - } - else - { - if ( empty($HTTP_POST_VARS['topic_id_list']) && empty($topic_id) ) - { - message_die(GENERAL_MESSAGE, $lang['None_selected']); - } - - $hidden_fields = ''; - - if ( isset($HTTP_POST_VARS['topic_id_list']) ) - { - $topics = $HTTP_POST_VARS['topic_id_list']; - - for($i = 0; $i < count($topics); $i++) - { - $hidden_fields .= ''; - } - } - else - { - $hidden_fields .= ''; - } - - // - // Set template files - // - $template->set_filenames(array( - 'movetopic' => 'modcp_move.tpl') - ); - - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Confirm'], - 'MESSAGE_TEXT' => $lang['Confirm_move_topic'], - - 'L_MOVE_TO_FORUM' => $lang['Move_to_forum'], - 'L_LEAVESHADOW' => $lang['Leave_shadow_topic'], - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - - 'S_FORUM_SELECT' => make_forum_select('new_forum', $forum_id), - 'S_MODCP_ACTION' => append_sid("modcp.$phpEx"), - 'S_HIDDEN_FIELDS' => $hidden_fields) - ); - - $template->pparse('movetopic'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } - break; - - case 'lock': - if ( empty($HTTP_POST_VARS['topic_id_list']) && empty($topic_id) ) - { - message_die(GENERAL_MESSAGE, $lang['None_selected']); - } - - $topics = ( isset($HTTP_POST_VARS['topic_id_list']) ) ? $HTTP_POST_VARS['topic_id_list'] : array($topic_id); - - $topic_id_sql = ''; - for($i = 0; $i < count($topics); $i++) - { - $topic_id_sql .= ( ( $topic_id_sql != '' ) ? ', ' : '' ) . intval($topics[$i]); - } - - $sql = "UPDATE " . TOPICS_TABLE . " - SET topic_status = " . TOPIC_LOCKED . " - WHERE topic_id IN ($topic_id_sql) - AND forum_id = $forum_id - AND topic_moved_id = 0"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update topics table', '', __LINE__, __FILE__, $sql); - } - - if ( !empty($topic_id) ) - { - $redirect_page = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&sid=" . $userdata['session_id']; - $message = sprintf($lang['Click_return_topic'], '', ''); - } - else - { - $redirect_page = "modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id&sid=" . $userdata['session_id']; - $message = sprintf($lang['Click_return_modcp'], '', ''); - } - - $message = $message . '

    ' . sprintf($lang['Click_return_forum'], '', ''); - - $template->assign_vars(array( - 'META' => '') - ); - - message_die(GENERAL_MESSAGE, $lang['Topics_Locked'] . '

    ' . $message); - - break; - - case 'unlock': - if ( empty($HTTP_POST_VARS['topic_id_list']) && empty($topic_id) ) - { - message_die(GENERAL_MESSAGE, $lang['None_selected']); - } - - $topics = ( isset($HTTP_POST_VARS['topic_id_list']) ) ? $HTTP_POST_VARS['topic_id_list'] : array($topic_id); - - $topic_id_sql = ''; - for($i = 0; $i < count($topics); $i++) - { - $topic_id_sql .= ( ( $topic_id_sql != "") ? ', ' : '' ) . intval($topics[$i]); - } - - $sql = "UPDATE " . TOPICS_TABLE . " - SET topic_status = " . TOPIC_UNLOCKED . " - WHERE topic_id IN ($topic_id_sql) - AND forum_id = $forum_id - AND topic_moved_id = 0"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not update topics table', '', __LINE__, __FILE__, $sql); - } - - if ( !empty($topic_id) ) - { - $redirect_page = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&sid=" . $userdata['session_id']; - $message = sprintf($lang['Click_return_topic'], '', ''); - } - else - { - $redirect_page = "modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id&sid=" . $userdata['session_id']; - $message = sprintf($lang['Click_return_modcp'], '', ''); - } - - $message = $message . '

    ' . sprintf($lang['Click_return_forum'], '', ''); - - $template->assign_vars(array( - 'META' => '') - ); - - message_die(GENERAL_MESSAGE, $lang['Topics_Unlocked'] . '

    ' . $message); - - break; - - case 'split': - $page_title = $lang['Mod_CP']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $post_id_sql = ''; - - if (isset($HTTP_POST_VARS['split_type_all']) || isset($HTTP_POST_VARS['split_type_beyond'])) - { - $posts = $HTTP_POST_VARS['post_id_list']; - - for ($i = 0; $i < count($posts); $i++) - { - $post_id_sql .= (($post_id_sql != '') ? ', ' : '') . intval($posts[$i]); - } - } - - if ($post_id_sql != '') - { - $sql = "SELECT post_id - FROM " . POSTS_TABLE . " - WHERE post_id IN ($post_id_sql) - AND forum_id = $forum_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get post id information', '', __LINE__, __FILE__, $sql); - } - - $post_id_sql = ''; - while ($row = $db->sql_fetchrow($result)) - { - $post_id_sql .= (($post_id_sql != '') ? ', ' : '') . intval($row['post_id']); - } - $db->sql_freeresult($result); - - $sql = "SELECT post_id, poster_id, topic_id, post_time - FROM " . POSTS_TABLE . " - WHERE post_id IN ($post_id_sql) - ORDER BY post_time ASC"; - if (!($result = $db->sql_query($sql))) - { - message_die(GENERAL_ERROR, 'Could not get post information', '', __LINE__, __FILE__, $sql); - } - - if ($row = $db->sql_fetchrow($result)) - { - $first_poster = $row['poster_id']; - $topic_id = $row['topic_id']; - $post_time = $row['post_time']; - - $user_id_sql = ''; - $post_id_sql = ''; - do - { - $user_id_sql .= (($user_id_sql != '') ? ', ' : '') . intval($row['poster_id']); - $post_id_sql .= (($post_id_sql != '') ? ', ' : '') . intval($row['post_id']);; - } - while ($row = $db->sql_fetchrow($result)); - - $post_subject = trim(htmlspecialchars($HTTP_POST_VARS['subject'])); - if (empty($post_subject)) - { - message_die(GENERAL_MESSAGE, $lang['Empty_subject']); - } - - $new_forum_id = intval($HTTP_POST_VARS['new_forum_id']); - $topic_time = time(); - - $sql = "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type) - VALUES ('" . str_replace("\'", "''", $post_subject) . "', $first_poster, " . $topic_time . ", $new_forum_id, " . TOPIC_UNLOCKED . ", " . POST_NORMAL . ")"; - if (!($db->sql_query($sql, BEGIN_TRANSACTION))) - { - message_die(GENERAL_ERROR, 'Could not insert new topic', '', __LINE__, __FILE__, $sql); - } - - $new_topic_id = $db->sql_nextid(); - - // Update topic watch table, switch users whose posts - // have moved, over to watching the new topic - $sql = "UPDATE " . TOPICS_WATCH_TABLE . " - SET topic_id = $new_topic_id - WHERE topic_id = $topic_id - AND user_id IN ($user_id_sql)"; - if (!$db->sql_query($sql)) - { - message_die(GENERAL_ERROR, 'Could not update topics watch table', '', __LINE__, __FILE__, $sql); - } - - $sql_where = (!empty($HTTP_POST_VARS['split_type_beyond'])) ? " post_time >= $post_time AND topic_id = $topic_id" : "post_id IN ($post_id_sql)"; - - $sql = "UPDATE " . POSTS_TABLE . " - SET topic_id = $new_topic_id, forum_id = $new_forum_id - WHERE $sql_where"; - if (!$db->sql_query($sql, END_TRANSACTION)) - { - message_die(GENERAL_ERROR, 'Could not update posts table', '', __LINE__, __FILE__, $sql); - } - - sync('topic', $new_topic_id); - sync('topic', $topic_id); - sync('forum', $new_forum_id); - sync('forum', $forum_id); - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['Topic_split'] . '

    ' . sprintf($lang['Click_return_topic'], '', ''); - message_die(GENERAL_MESSAGE, $message); - } - } - else - { - // - // Set template files - // - $template->set_filenames(array( - 'split_body' => 'modcp_split.tpl') - ); - - $sql = "SELECT u.username, p.*, pt.post_text, pt.bbcode_uid, pt.post_subject, p.post_username - FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt - WHERE p.topic_id = $topic_id - AND p.poster_id = u.user_id - AND p.post_id = pt.post_id - ORDER BY p.post_time ASC"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get topic/post information', '', __LINE__, __FILE__, $sql); - } - - $s_hidden_fields = ''; - - if( ( $total_posts = $db->sql_numrows($result) ) > 0 ) - { - $postrow = $db->sql_fetchrowset($result); - - $template->assign_vars(array( - 'L_SPLIT_TOPIC' => $lang['Split_Topic'], - 'L_SPLIT_TOPIC_EXPLAIN' => $lang['Split_Topic_explain'], - 'L_AUTHOR' => $lang['Author'], - 'L_MESSAGE' => $lang['Message'], - 'L_SELECT' => $lang['Select'], - 'L_SPLIT_SUBJECT' => $lang['Split_title'], - 'L_SPLIT_FORUM' => $lang['Split_forum'], - 'L_POSTED' => $lang['Posted'], - 'L_SPLIT_POSTS' => $lang['Split_posts'], - 'L_SUBMIT' => $lang['Submit'], - 'L_SPLIT_AFTER' => $lang['Split_after'], - 'L_POST_SUBJECT' => $lang['Post_subject'], - 'L_MARK_ALL' => $lang['Mark_all'], - 'L_UNMARK_ALL' => $lang['Unmark_all'], - 'L_POST' => $lang['Post'], - - 'FORUM_NAME' => $forum_name, - - 'U_VIEW_FORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"), - - 'S_SPLIT_ACTION' => append_sid("modcp.$phpEx"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_FORUM_SELECT' => make_forum_select("new_forum_id", false, $forum_id)) - ); - - // - // Define censored word matches - // - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); - - for($i = 0; $i < $total_posts; $i++) - { - $post_id = $postrow[$i]['post_id']; - $poster_id = $postrow[$i]['poster_id']; - $poster = $postrow[$i]['username']; - - $post_date = create_date($board_config['default_dateformat'], $postrow[$i]['post_time'], $board_config['board_timezone']); - - $bbcode_uid = $postrow[$i]['bbcode_uid']; - $message = $postrow[$i]['post_text']; - $post_subject = ( $postrow[$i]['post_subject'] != '' ) ? $postrow[$i]['post_subject'] : $topic_title; - - // - // If the board has HTML off but the post has HTML - // on then we process it, else leave it alone - // - if ( !$board_config['allow_html'] ) - { - if ( $postrow[$i]['enable_html'] ) - { - $message = preg_replace('#(<)([\/]?.*?)(>)#is', '<\\2>', $message); - } - } - - if ( $bbcode_uid != '' ) - { - $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message); - } - - if ( count($orig_word) ) - { - $post_subject = preg_replace($orig_word, $replacement_word, $post_subject); - $message = preg_replace($orig_word, $replacement_word, $message); - } - - $message = make_clickable($message); - - if ( $board_config['allow_smilies'] && $postrow[$i]['enable_smilies'] ) - { - $message = smilies_pass($message); - } - - $message = str_replace("\n", '
    ', $message); - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $checkbox = ( $i > 0 ) ? '' : ' '; - - $template->assign_block_vars('postrow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'POSTER_NAME' => $poster, - 'POST_DATE' => $post_date, - 'POST_SUBJECT' => $post_subject, - 'MESSAGE' => $message, - 'POST_ID' => $post_id, - - 'S_SPLIT_CHECKBOX' => $checkbox) - ); - } - - $template->pparse('split_body'); - } - } - break; - - case 'ip': - $page_title = $lang['Mod_CP']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $rdns_ip_num = ( isset($HTTP_GET_VARS['rdns']) ) ? $HTTP_GET_VARS['rdns'] : ""; - - if ( !$post_id ) - { - message_die(GENERAL_MESSAGE, $lang['No_such_post']); - } - - // - // Set template files - // - $template->set_filenames(array( - 'viewip' => 'modcp_viewip.tpl') - ); - - // Look up relevent data for this post - $sql = "SELECT poster_ip, poster_id - FROM " . POSTS_TABLE . " - WHERE post_id = $post_id - AND forum_id = $forum_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get poster IP information', '', __LINE__, __FILE__, $sql); - } - - if ( !($post_row = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_MESSAGE, $lang['No_such_post']); - } - - $ip_this_post = decode_ip($post_row['poster_ip']); - $ip_this_post = ( $rdns_ip_num == $ip_this_post ) ? gethostbyaddr($ip_this_post) : $ip_this_post; - - $poster_id = $post_row['poster_id']; - - $template->assign_vars(array( - 'L_IP_INFO' => $lang['IP_info'], - 'L_THIS_POST_IP' => $lang['This_posts_IP'], - 'L_OTHER_IPS' => $lang['Other_IP_this_user'], - 'L_OTHER_USERS' => $lang['Users_this_IP'], - 'L_LOOKUP_IP' => $lang['Lookup_IP'], - 'L_SEARCH' => $lang['Search'], - - 'SEARCH_IMG' => $images['icon_search'], - - 'IP' => $ip_this_post, - - 'U_LOOKUP_IP' => "modcp.$phpEx?mode=ip&" . POST_POST_URL . "=$post_id&" . POST_TOPIC_URL . "=$topic_id&rdns=$ip_this_post&sid=" . $userdata['session_id']) - ); - - // - // Get other IP's this user has posted under - // - $sql = "SELECT poster_ip, COUNT(*) AS postings - FROM " . POSTS_TABLE . " - WHERE poster_id = $poster_id - GROUP BY poster_ip - ORDER BY " . (( SQL_LAYER == 'msaccess' ) ? 'COUNT(*)' : 'postings' ) . " DESC"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get IP information for this user', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $i = 0; - do - { - if ( $row['poster_ip'] == $post_row['poster_ip'] ) - { - $template->assign_vars(array( - 'POSTS' => $row['postings'] . ' ' . ( ( $row['postings'] == 1 ) ? $lang['Post'] : $lang['Posts'] )) - ); - continue; - } - - $ip = decode_ip($row['poster_ip']); - $ip = ( $rdns_ip_num == $row['poster_ip'] || $rdns_ip_num == 'all') ? gethostbyaddr($ip) : $ip; - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('iprow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'IP' => $ip, - 'POSTS' => $row['postings'] . ' ' . ( ( $row['postings'] == 1 ) ? $lang['Post'] : $lang['Posts'] ), - - 'U_LOOKUP_IP' => "modcp.$phpEx?mode=ip&" . POST_POST_URL . "=$post_id&" . POST_TOPIC_URL . "=$topic_id&rdns=" . $row['poster_ip'] . "&sid=" . $userdata['session_id']) - ); - - $i++; - } - while ( $row = $db->sql_fetchrow($result) ); - } - - // - // Get other users who've posted under this IP - // - $sql = "SELECT u.user_id, u.username, COUNT(*) as postings - FROM " . USERS_TABLE ." u, " . POSTS_TABLE . " p - WHERE p.poster_id = u.user_id - AND p.poster_ip = '" . $post_row['poster_ip'] . "' - GROUP BY u.user_id, u.username - ORDER BY " . (( SQL_LAYER == 'msaccess' ) ? 'COUNT(*)' : 'postings' ) . " DESC"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not get posters information based on IP', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $i = 0; - do - { - $id = $row['user_id']; - $username = ( $id == ANONYMOUS ) ? $lang['Guest'] : $row['username']; - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('userrow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'USERNAME' => $username, - 'POSTS' => $row['postings'] . ' ' . ( ( $row['postings'] == 1 ) ? $lang['Post'] : $lang['Posts'] ), - 'L_SEARCH_POSTS' => sprintf($lang['Search_user_posts'], $username), - - 'U_PROFILE' => ($id == ANONYMOUS) ? "modcp.$phpEx?mode=ip&" . POST_POST_URL . "=" . $post_id . "&" . POST_TOPIC_URL . "=" . $topic_id . "&sid=" . $userdata['session_id'] : append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$id"), - 'U_SEARCHPOSTS' => append_sid("search.$phpEx?search_author=" . urlencode($username) . "&showresults=topics")) - ); - - $i++; - } - while ( $row = $db->sql_fetchrow($result) ); - } - - $template->pparse('viewip'); - - break; - - default: - $page_title = $lang['Mod_CP']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->assign_vars(array( - 'FORUM_NAME' => $forum_name, - - 'L_MOD_CP' => $lang['Mod_CP'], - 'L_MOD_CP_EXPLAIN' => $lang['Mod_CP_explain'], - 'L_SELECT' => $lang['Select'], - 'L_DELETE' => $lang['Delete'], - 'L_MOVE' => $lang['Move'], - 'L_LOCK' => $lang['Lock'], - 'L_UNLOCK' => $lang['Unlock'], - 'L_TOPICS' => $lang['Topics'], - 'L_REPLIES' => $lang['Replies'], - 'L_LASTPOST' => $lang['Last_Post'], - 'L_SELECT' => $lang['Select'], - - 'U_VIEW_FORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"), - 'S_HIDDEN_FIELDS' => '', - 'S_MODCP_ACTION' => append_sid("modcp.$phpEx")) - ); - - $template->set_filenames(array( - 'body' => 'modcp_body.tpl') - ); - make_jumpbox('modcp.'.$phpEx); - - // - // Define censored word matches - // - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); - - $sql = "SELECT t.*, u.username, u.user_id, p.post_time - FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p - WHERE t.forum_id = $forum_id - AND t.topic_poster = u.user_id - AND p.post_id = t.topic_last_post_id - ORDER BY t.topic_type DESC, p.post_time DESC - LIMIT $start, " . $board_config['topics_per_page']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql); - } - - while ( $row = $db->sql_fetchrow($result) ) - { - $topic_title = ''; - - if ( $row['topic_status'] == TOPIC_LOCKED ) - { - $folder_img = $images['folder_locked']; - $folder_alt = $lang['Topic_locked']; - } - else - { - if ( $row['topic_type'] == POST_ANNOUNCE ) - { - $folder_img = $images['folder_announce']; - $folder_alt = $lang['Topic_Announcement']; - } - else if ( $row['topic_type'] == POST_STICKY ) - { - $folder_img = $images['folder_sticky']; - $folder_alt = $lang['Topic_Sticky']; - } - else - { - $folder_img = $images['folder']; - $folder_alt = $lang['No_new_posts']; - } - } - - $topic_id = $row['topic_id']; - $topic_type = $row['topic_type']; - $topic_status = $row['topic_status']; - - if ( $topic_type == POST_ANNOUNCE ) - { - $topic_type = $lang['Topic_Announcement'] . ' '; - } - else if ( $topic_type == POST_STICKY ) - { - $topic_type = $lang['Topic_Sticky'] . ' '; - } - else if ( $topic_status == TOPIC_MOVED ) - { - $topic_type = $lang['Topic_Moved'] . ' '; - } - else - { - $topic_type = ''; - } - - if ( $row['topic_vote'] ) - { - $topic_type .= $lang['Topic_Poll'] . ' '; - } - - $topic_title = $row['topic_title']; - if ( count($orig_word) ) - { - $topic_title = preg_replace($orig_word, $replacement_word, $topic_title); - } - - $u_view_topic = "modcp.$phpEx?mode=split&" . POST_TOPIC_URL . "=$topic_id&sid=" . $userdata['session_id']; - $topic_replies = $row['topic_replies']; - - $last_post_time = create_date($board_config['default_dateformat'], $row['post_time'], $board_config['board_timezone']); - - $template->assign_block_vars('topicrow', array( - 'U_VIEW_TOPIC' => $u_view_topic, - - 'TOPIC_FOLDER_IMG' => $folder_img, - 'TOPIC_TYPE' => $topic_type, - 'TOPIC_TITLE' => $topic_title, - 'REPLIES' => $topic_replies, - 'LAST_POST_TIME' => $last_post_time, - 'TOPIC_ID' => $topic_id, - - 'L_TOPIC_FOLDER_ALT' => $folder_alt) - ); - } - - $template->assign_vars(array( - 'PAGINATION' => generate_pagination("modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id&sid=" . $userdata['session_id'], $forum_topics, $board_config['topics_per_page'], $start), - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( $forum_topics / $board_config['topics_per_page'] )), - 'L_GOTO_PAGE' => $lang['Goto_page']) - ); - - $template->pparse('body'); - - break; -} - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/posting.php b/phpBB2_old/posting.php deleted file mode 100644 index 60995c3..0000000 --- a/phpBB2_old/posting.php +++ /dev/null @@ -1,1108 +0,0 @@ - 'post', 'preview' => 'preview', 'delete' => 'delete', 'poll_delete' => 'poll_delete', 'poll_add' => 'add_poll_option', 'poll_edit' => 'edit_poll_option', 'mode' => 'mode'); -while( list($var, $param) = @each($params) ) -{ - if ( !empty($HTTP_POST_VARS[$param]) || !empty($HTTP_GET_VARS[$param]) ) - { - $$var = ( !empty($HTTP_POST_VARS[$param]) ) ? htmlspecialchars($HTTP_POST_VARS[$param]) : htmlspecialchars($HTTP_GET_VARS[$param]); - } - else - { - $$var = ''; - } -} - -$confirm = isset($HTTP_POST_VARS['confirm']) ? true : false; - -$params = array('forum_id' => POST_FORUM_URL, 'topic_id' => POST_TOPIC_URL, 'post_id' => POST_POST_URL); -while( list($var, $param) = @each($params) ) -{ - if ( !empty($HTTP_POST_VARS[$param]) || !empty($HTTP_GET_VARS[$param]) ) - { - $$var = ( !empty($HTTP_POST_VARS[$param]) ) ? intval($HTTP_POST_VARS[$param]) : intval($HTTP_GET_VARS[$param]); - } - else - { - $$var = ''; - } -} - -$refresh = $preview || $poll_add || $poll_edit || $poll_delete; - -// -// Set topic type -// -$topic_type = ( !empty($HTTP_POST_VARS['topictype']) ) ? intval($HTTP_POST_VARS['topictype']) : POST_NORMAL; - -// -// If the mode is set to topic review then output -// that review ... -// -if ( $mode == 'topicreview' ) -{ - require($phpbb_root_path . 'includes/topic_review.'.$phpEx); - - topic_review($topic_id, false); - exit; -} -else if ( $mode == 'smilies' ) -{ - generate_smilies('window', PAGE_POSTING); - exit; -} - -// -// Start session management -// -$userdata = session_pagestart($user_ip, PAGE_POSTING); -init_userprefs($userdata); -// -// End session management -// - -// -// Was cancel pressed? If so then redirect to the appropriate -// page, no point in continuing with any further checks -// -if ( isset($HTTP_POST_VARS['cancel']) ) -{ - if ( $post_id ) - { - $redirect = "viewtopic.$phpEx?" . POST_POST_URL . "=$post_id"; - $post_append = "#$post_id"; - } - else if ( $topic_id ) - { - $redirect = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id"; - $post_append = ''; - } - else if ( $forum_id ) - { - $redirect = "viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"; - $post_append = ''; - } - else - { - $redirect = "index.$phpEx"; - $post_append = ''; - } - - redirect(append_sid($redirect, true) . $post_append); -} - -// -// What auth type do we need to check? -// -$is_auth = array(); -switch( $mode ) -{ - case 'newtopic': - if ( $topic_type == POST_ANNOUNCE ) - { - $is_auth_type = 'auth_announce'; - } - else if ( $topic_type == POST_STICKY ) - { - $is_auth_type = 'auth_sticky'; - } - else - { - $is_auth_type = 'auth_post'; - } - break; - case 'reply': - case 'quote': - $is_auth_type = 'auth_reply'; - break; - case 'editpost': - $is_auth_type = 'auth_edit'; - break; - case 'delete': - case 'poll_delete': - $is_auth_type = 'auth_delete'; - break; - case 'vote': - $is_auth_type = 'auth_vote'; - break; - case 'topicreview': - $is_auth_type = 'auth_read'; - break; - default: - message_die(GENERAL_MESSAGE, $lang['No_post_mode']); - break; -} - -// -// Here we do various lookups to find topic_id, forum_id, post_id etc. -// Doing it here prevents spoofing (eg. faking forum_id, topic_id or post_id -// -$error_msg = ''; -$post_data = array(); -switch ( $mode ) -{ - case 'newtopic': - if ( empty($forum_id) ) - { - message_die(GENERAL_MESSAGE, $lang['Forum_not_exist']); - } - - $sql = "SELECT * - FROM " . FORUMS_TABLE . " - WHERE forum_id = $forum_id"; - break; - - case 'reply': - case 'vote': - if ( empty( $topic_id) ) - { - message_die(GENERAL_MESSAGE, $lang['No_topic_id']); - } - - $sql = "SELECT f.*, t.topic_status, t.topic_title - FROM " . FORUMS_TABLE . " f, " . TOPICS_TABLE . " t - WHERE t.topic_id = $topic_id - AND f.forum_id = t.forum_id"; - break; - - case 'quote': - case 'editpost': - case 'delete': - case 'poll_delete': - if ( empty($post_id) ) - { - message_die(GENERAL_MESSAGE, $lang['No_post_id']); - } - - $select_sql = ( !$submit ) ? ", t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig" : ''; - $from_sql = ( !$submit ) ? ", " . POSTS_TEXT_TABLE . " pt, " . USERS_TABLE . " u" : ''; - $where_sql = ( !$submit ) ? "AND pt.post_id = p.post_id AND u.user_id = p.poster_id" : ''; - - $sql = "SELECT f.*, t.topic_id, t.topic_status, t.topic_type, t.topic_first_post_id, t.topic_last_post_id, t.topic_vote, p.post_id, p.poster_id" . $select_sql . " - FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $from_sql . " - WHERE p.post_id = $post_id - AND t.topic_id = p.topic_id - AND f.forum_id = p.forum_id - $where_sql"; - break; - - default: - message_die(GENERAL_MESSAGE, $lang['No_valid_mode']); -} - -if ( $result = $db->sql_query($sql) ) -{ - $post_info = $db->sql_fetchrow($result); - $db->sql_freeresult($result); - - $forum_id = $post_info['forum_id']; - $forum_name = $post_info['forum_name']; - - $is_auth = auth(AUTH_ALL, $forum_id, $userdata, $post_info); - - if ( $post_info['forum_status'] == FORUM_LOCKED && !$is_auth['auth_mod']) - { - message_die(GENERAL_MESSAGE, $lang['Forum_locked']); - } - else if ( $mode != 'newtopic' && $post_info['topic_status'] == TOPIC_LOCKED && !$is_auth['auth_mod']) - { - message_die(GENERAL_MESSAGE, $lang['Topic_locked']); - } - - if ( $mode == 'editpost' || $mode == 'delete' || $mode == 'poll_delete' ) - { - $topic_id = $post_info['topic_id']; - - $post_data['poster_post'] = ( $post_info['poster_id'] == $userdata['user_id'] ) ? true : false; - $post_data['first_post'] = ( $post_info['topic_first_post_id'] == $post_id ) ? true : false; - $post_data['last_post'] = ( $post_info['topic_last_post_id'] == $post_id ) ? true : false; - $post_data['last_topic'] = ( $post_info['forum_last_post_id'] == $post_id ) ? true : false; - $post_data['has_poll'] = ( $post_info['topic_vote'] ) ? true : false; - $post_data['topic_type'] = $post_info['topic_type']; - $post_data['poster_id'] = $post_info['poster_id']; - - if ( $post_data['first_post'] && $post_data['has_poll'] ) - { - $sql = "SELECT * - FROM " . VOTE_DESC_TABLE . " vd, " . VOTE_RESULTS_TABLE . " vr - WHERE vd.topic_id = $topic_id - AND vr.vote_id = vd.vote_id - ORDER BY vr.vote_option_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain vote data for this topic', '', __LINE__, __FILE__, $sql); - } - - $poll_options = array(); - $poll_results_sum = 0; - if ( $row = $db->sql_fetchrow($result) ) - { - $poll_title = $row['vote_text']; - $poll_id = $row['vote_id']; - $poll_length = $row['vote_length'] / 86400; - - do - { - $poll_options[$row['vote_option_id']] = $row['vote_option_text']; - $poll_results_sum += $row['vote_result']; - } - while ( $row = $db->sql_fetchrow($result) ); - } - $db->sql_freeresult($result); - - $post_data['edit_poll'] = ( ( !$poll_results_sum || $is_auth['auth_mod'] ) && $post_data['first_post'] ) ? true : 0; - } - else - { - $post_data['edit_poll'] = ($post_data['first_post'] && $is_auth['auth_pollcreate']) ? true : false; - } - - // - // Can this user edit/delete the post/poll? - // - if ( $post_info['poster_id'] != $userdata['user_id'] && !$is_auth['auth_mod'] ) - { - $message = ( $delete || $mode == 'delete' ) ? $lang['Delete_own_posts'] : $lang['Edit_own_posts']; - $message .= '

    ' . sprintf($lang['Click_return_topic'], '', ''); - - message_die(GENERAL_MESSAGE, $message); - } - else if ( !$post_data['last_post'] && !$is_auth['auth_mod'] && ( $mode == 'delete' || $delete ) ) - { - message_die(GENERAL_MESSAGE, $lang['Cannot_delete_replied']); - } - else if ( !$post_data['edit_poll'] && !$is_auth['auth_mod'] && ( $mode == 'poll_delete' || $poll_delete ) ) - { - message_die(GENERAL_MESSAGE, $lang['Cannot_delete_poll']); - } - } - else - { - if ( $mode == 'quote' ) - { - $topic_id = $post_info['topic_id']; - } - - $post_data['first_post'] = ( $mode == 'newtopic' ) ? true : 0; - $post_data['last_post'] = false; - $post_data['has_poll'] = false; - $post_data['edit_poll'] = false; - } -} -else -{ - message_die(GENERAL_MESSAGE, $lang['No_such_post']); -} - -// -// The user is not authed, if they're not logged in then redirect -// them, else show them an error message -// -if ( !$is_auth[$is_auth_type] ) -{ - if ( $userdata['session_logged_in'] ) - { - message_die(GENERAL_MESSAGE, sprintf($lang['Sorry_' . $is_auth_type], $is_auth[$is_auth_type . "_type"])); - } - - switch( $mode ) - { - case 'newtopic': - $redirect = "mode=newtopic&" . POST_FORUM_URL . "=" . $forum_id; - break; - case 'reply': - case 'topicreview': - $redirect = "mode=reply&" . POST_TOPIC_URL . "=" . $topic_id; - break; - case 'quote': - case 'editpost': - $redirect = "mode=quote&" . POST_POST_URL ."=" . $post_id; - break; - } - - redirect(append_sid("login.$phpEx?redirect=posting.$phpEx&" . $redirect, true)); -} - -// -// Set toggles for various options -// -if ( !$board_config['allow_html'] ) -{ - $html_on = 0; -} -else -{ - $html_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_html']) ) ? 0 : TRUE ) : ( ( $userdata['user_id'] == ANONYMOUS ) ? $board_config['allow_html'] : $userdata['user_allowhtml'] ); -} - -if ( !$board_config['allow_bbcode'] ) -{ - $bbcode_on = 0; -} -else -{ - $bbcode_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_bbcode']) ) ? 0 : TRUE ) : ( ( $userdata['user_id'] == ANONYMOUS ) ? $board_config['allow_bbcode'] : $userdata['user_allowbbcode'] ); -} - -if ( !$board_config['allow_smilies'] ) -{ - $smilies_on = 0; -} -else -{ - $smilies_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_smilies']) ) ? 0 : TRUE ) : ( ( $userdata['user_id'] == ANONYMOUS ) ? $board_config['allow_smilies'] : $userdata['user_allowsmile'] ); -} - -if ( ($submit || $refresh) && $is_auth['auth_read']) -{ - $notify_user = ( !empty($HTTP_POST_VARS['notify']) ) ? TRUE : 0; -} -else -{ - if ( $mode != 'newtopic' && $userdata['session_logged_in'] && $is_auth['auth_read'] ) - { - $sql = "SELECT topic_id - FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain topic watch information', '', __LINE__, __FILE__, $sql); - } - - $notify_user = ( $db->sql_fetchrow($result) ) ? TRUE : $userdata['user_notify']; - $db->sql_freeresult($result); - } - else - { - $notify_user = ( $userdata['session_logged_in'] && $is_auth['auth_read'] ) ? $userdata['user_notify'] : 0; - } -} - -$attach_sig = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['attach_sig']) ) ? TRUE : 0 ) : ( ( $userdata['user_id'] == ANONYMOUS ) ? 0 : $userdata['user_attachsig'] ); - -// -------------------- -// What shall we do? -// -if ( ( $delete || $poll_delete || $mode == 'delete' ) && !$confirm ) -{ - // - // Confirm deletion - // - $s_hidden_fields = ''; - $s_hidden_fields .= ( $delete || $mode == "delete" ) ? '' : ''; - - $l_confirm = ( $delete || $mode == 'delete' ) ? $lang['Confirm_delete'] : $lang['Confirm_delete_poll']; - - // - // Output confirmation page - // - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'confirm_body' => 'confirm_body.tpl') - ); - - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Information'], - 'MESSAGE_TEXT' => $l_confirm, - - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - - 'S_CONFIRM_ACTION' => append_sid("posting.$phpEx"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); - - $template->pparse('confirm_body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); -} -else if ( $mode == 'vote' ) -{ - // - // Vote in a poll - // - if ( !empty($HTTP_POST_VARS['vote_id']) ) - { - $vote_option_id = intval($HTTP_POST_VARS['vote_id']); - - $sql = "SELECT vd.vote_id - FROM " . VOTE_DESC_TABLE . " vd, " . VOTE_RESULTS_TABLE . " vr - WHERE vd.topic_id = $topic_id - AND vr.vote_id = vd.vote_id - AND vr.vote_option_id = $vote_option_id - GROUP BY vd.vote_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain vote data for this topic', '', __LINE__, __FILE__, $sql); - } - - if ( $vote_info = $db->sql_fetchrow($result) ) - { - $vote_id = $vote_info['vote_id']; - - $sql = "SELECT * - FROM " . VOTE_USERS_TABLE . " - WHERE vote_id = $vote_id - AND vote_user_id = " . $userdata['user_id']; - if ( !($result2 = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user vote data for this topic', '', __LINE__, __FILE__, $sql); - } - - if ( !($row = $db->sql_fetchrow($result2)) ) - { - $sql = "UPDATE " . VOTE_RESULTS_TABLE . " - SET vote_result = vote_result + 1 - WHERE vote_id = $vote_id - AND vote_option_id = $vote_option_id"; - if ( !$db->sql_query($sql, BEGIN_TRANSACTION) ) - { - message_die(GENERAL_ERROR, 'Could not update poll result', '', __LINE__, __FILE__, $sql); - } - - $sql = "INSERT INTO " . VOTE_USERS_TABLE . " (vote_id, vote_user_id, vote_user_ip) - VALUES ($vote_id, " . $userdata['user_id'] . ", '$user_ip')"; - if ( !$db->sql_query($sql, END_TRANSACTION) ) - { - message_die(GENERAL_ERROR, "Could not insert user_id for poll", "", __LINE__, __FILE__, $sql); - } - - $message = $lang['Vote_cast']; - } - else - { - $message = $lang['Already_voted']; - } - $db->sql_freeresult($result2); - } - else - { - $message = $lang['No_vote_option']; - } - $db->sql_freeresult($result); - - $template->assign_vars(array( - 'META' => '') - ); - $message .= '

    ' . sprintf($lang['Click_view_message'], '', ''); - message_die(GENERAL_MESSAGE, $message); - } - else - { - redirect(append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id", true)); - } -} -else if ( $submit || $confirm ) -{ - // - // Submit post/vote (newtopic, edit, reply, etc.) - // - $return_message = ''; - $return_meta = ''; - - switch ( $mode ) - { - case 'editpost': - case 'newtopic': - case 'reply': - $username = ( !empty($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : ''; - $subject = ( !empty($HTTP_POST_VARS['subject']) ) ? trim($HTTP_POST_VARS['subject']) : ''; - $message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : ''; - $poll_title = ( isset($HTTP_POST_VARS['poll_title']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_title'] : ''; - $poll_options = ( isset($HTTP_POST_VARS['poll_option_text']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_option_text'] : ''; - $poll_length = ( isset($HTTP_POST_VARS['poll_length']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_length'] : ''; - $bbcode_uid = ''; - - prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length); - - if ( $error_msg == '' ) - { - $topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type; - - submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length); - } - break; - - case 'delete': - case 'poll_delete': - delete_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id); - break; - } - - if ( $error_msg == '' ) - { - if ( $mode != 'editpost' ) - { - $user_id = ( $mode == 'reply' || $mode == 'newtopic' ) ? $userdata['user_id'] : $post_data['poster_id']; - update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id); - } - - if ($error_msg == '' && $mode != 'poll_delete') - { - user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user); - } - - if ( $mode == 'newtopic' || $mode == 'reply' ) - { - $tracking_topics = ( !empty($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array(); - $tracking_forums = ( !empty($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array(); - - if ( count($tracking_topics) + count($tracking_forums) == 100 && empty($tracking_topics[$topic_id]) ) - { - asort($tracking_topics); - unset($tracking_topics[key($tracking_topics)]); - } - - $tracking_topics[$topic_id] = time(); - - setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']); - } - - $template->assign_vars(array( - 'META' => $return_meta) - ); - message_die(GENERAL_MESSAGE, $return_message); - } -} - -if( $refresh || isset($HTTP_POST_VARS['del_poll_option']) || $error_msg != '' ) -{ - $username = ( !empty($HTTP_POST_VARS['username']) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['username']))) : ''; - $subject = ( !empty($HTTP_POST_VARS['subject']) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['subject']))) : ''; - $message = ( !empty($HTTP_POST_VARS['message']) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['message']))) : ''; - - $poll_title = ( !empty($HTTP_POST_VARS['poll_title']) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['poll_title']))) : ''; - $poll_length = ( isset($HTTP_POST_VARS['poll_length']) ) ? max(0, intval($HTTP_POST_VARS['poll_length'])) : 0; - - $poll_options = array(); - if ( !empty($HTTP_POST_VARS['poll_option_text']) ) - { - while( list($option_id, $option_text) = @each($HTTP_POST_VARS['poll_option_text']) ) - { - if( isset($HTTP_POST_VARS['del_poll_option'][$option_id]) ) - { - unset($poll_options[$option_id]); - } - else if ( !empty($option_text) ) - { - $poll_options[$option_id] = htmlspecialchars(trim(stripslashes($option_text))); - } - } - } - - if ( isset($poll_add) && !empty($HTTP_POST_VARS['add_poll_option_text']) ) - { - $poll_options[] = htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['add_poll_option_text']))); - } - - if ( $mode == 'newtopic' || $mode == 'reply') - { - $user_sig = ( $userdata['user_sig'] != '' && $board_config['allow_sig'] ) ? $userdata['user_sig'] : ''; - } - else if ( $mode == 'editpost' ) - { - $user_sig = ( $post_info['user_sig'] != '' && $board_config['allow_sig'] ) ? $post_info['user_sig'] : ''; - } - - if( $preview ) - { - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); - - $bbcode_uid = ( $bbcode_on ) ? make_bbcode_uid() : ''; - $preview_message = stripslashes(prepare_message(addslashes(unprepare_message($message)), $html_on, $bbcode_on, $smilies_on, $bbcode_uid)); - $preview_subject = $subject; - $preview_username = $username; - - // - // Finalise processing as per viewtopic - // - if( !$html_on ) - { - if( $user_sig != '' || !$userdata['user_allowhtml'] ) - { - $user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', '<\2>', $user_sig); - } - } - - if( $attach_sig && $user_sig != '' && $userdata['user_sig_bbcode_uid'] ) - { - $user_sig = bbencode_second_pass($user_sig, $userdata['user_sig_bbcode_uid']); - } - - if( $bbcode_on ) - { - $preview_message = bbencode_second_pass($preview_message, $bbcode_uid); - } - - if( !empty($orig_word) ) - { - $preview_username = ( !empty($username) ) ? preg_replace($orig_word, $replacement_word, $preview_username) : ''; - $preview_subject = ( !empty($subject) ) ? preg_replace($orig_word, $replacement_word, $preview_subject) : ''; - $preview_message = ( !empty($preview_message) ) ? preg_replace($orig_word, $replacement_word, $preview_message) : ''; - } - - if( $user_sig != '' ) - { - $user_sig = make_clickable($user_sig); - } - $preview_message = make_clickable($preview_message); - - if( $smilies_on ) - { - if( $userdata['user_allowsmile'] && $user_sig != '' ) - { - $user_sig = smilies_pass($user_sig); - } - - $preview_message = smilies_pass($preview_message); - } - - if( $attach_sig && $user_sig != '' ) - { - $preview_message = $preview_message . '

    _________________
    ' . $user_sig; - } - - $preview_message = str_replace("\n", '
    ', $preview_message); - - $template->set_filenames(array( - 'preview' => 'posting_preview.tpl') - ); - - $template->assign_vars(array( - 'TOPIC_TITLE' => $preview_subject, - 'POST_SUBJECT' => $preview_subject, - 'POSTER_NAME' => $preview_username, - 'POST_DATE' => create_date($board_config['default_dateformat'], time(), $board_config['board_timezone']), - 'MESSAGE' => $preview_message, - - 'L_POST_SUBJECT' => $lang['Post_subject'], - 'L_PREVIEW' => $lang['Preview'], - 'L_POSTED' => $lang['Posted'], - 'L_POST' => $lang['Post']) - ); - $template->assign_var_from_handle('POST_PREVIEW_BOX', 'preview'); - } - else if( $error_msg != '' ) - { - $template->set_filenames(array( - 'reg_header' => 'error_body.tpl') - ); - $template->assign_vars(array( - 'ERROR_MESSAGE' => $error_msg) - ); - $template->assign_var_from_handle('ERROR_BOX', 'reg_header'); - } -} -else -{ - // - // User default entry point - // - if ( $mode == 'newtopic' ) - { - $user_sig = ( $userdata['user_sig'] != '' ) ? $userdata['user_sig'] : ''; - - $username = ($userdata['session_logged_in']) ? $userdata['username'] : ''; - $poll_title = ''; - $poll_length = ''; - $subject = ''; - $message = ''; - } - else if ( $mode == 'reply' ) - { - $user_sig = ( $userdata['user_sig'] != '' ) ? $userdata['user_sig'] : ''; - - $username = ( $userdata['session_logged_in'] ) ? $userdata['username'] : ''; - $subject = ''; - $message = ''; - - } - else if ( $mode == 'quote' || $mode == 'editpost' ) - { - $subject = ( $post_data['first_post'] ) ? $post_info['topic_title'] : $post_info['post_subject']; - $message = $post_info['post_text']; - - if ( $mode == 'editpost' ) - { - $attach_sig = ( $post_info['enable_sig'] && $post_info['user_sig'] != '' ) ? TRUE : 0; - $user_sig = $post_info['user_sig']; - - $html_on = ( $post_info['enable_html'] ) ? true : false; - $bbcode_on = ( $post_info['enable_bbcode'] ) ? true : false; - $smilies_on = ( $post_info['enable_smilies'] ) ? true : false; - } - else - { - $attach_sig = ( $userdata['user_attachsig'] ) ? TRUE : 0; - $user_sig = $userdata['user_sig']; - } - - if ( $post_info['bbcode_uid'] != '' ) - { - $message = preg_replace('/\:(([a-z0-9]:)?)' . $post_info['bbcode_uid'] . '/s', '', $message); - } - - $message = str_replace('<', '<', $message); - $message = str_replace('>', '>', $message); - $message = str_replace('
    ', "\n", $message); - - if ( $mode == 'quote' ) - { - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replace_word); - - $msg_date = create_date($board_config['default_dateformat'], $postrow['post_time'], $board_config['board_timezone']); - - // Use trim to get rid of spaces placed there by MS-SQL 2000 - $quote_username = ( trim($post_info['post_username']) != '' ) ? $post_info['post_username'] : $post_info['username']; - $message = '[quote="' . $quote_username . '"]' . $message . '[/quote]'; - - if ( !empty($orig_word) ) - { - $subject = ( !empty($subject) ) ? preg_replace($orig_word, $replace_word, $subject) : ''; - $message = ( !empty($message) ) ? preg_replace($orig_word, $replace_word, $message) : ''; - } - - if ( !preg_match('/^Re:/', $subject) && strlen($subject) > 0 ) - { - $subject = 'Re: ' . $subject; - } - - $mode = 'reply'; - } - else - { - $username = ( $post_info['user_id'] == ANONYMOUS && !empty($post_info['post_username']) ) ? $post_info['post_username'] : ''; - } - } -} - -// -// Signature toggle selection -// -if( $user_sig != '' ) -{ - $template->assign_block_vars('switch_signature_checkbox', array()); -} - -// -// HTML toggle selection -// -if ( $board_config['allow_html'] ) -{ - $html_status = $lang['HTML_is_ON']; - $template->assign_block_vars('switch_html_checkbox', array()); -} -else -{ - $html_status = $lang['HTML_is_OFF']; -} - -// -// BBCode toggle selection -// -if ( $board_config['allow_bbcode'] ) -{ - $bbcode_status = $lang['BBCode_is_ON']; - $template->assign_block_vars('switch_bbcode_checkbox', array()); -} -else -{ - $bbcode_status = $lang['BBCode_is_OFF']; -} - -// -// Smilies toggle selection -// -if ( $board_config['allow_smilies'] ) -{ - $smilies_status = $lang['Smilies_are_ON']; - $template->assign_block_vars('switch_smilies_checkbox', array()); -} -else -{ - $smilies_status = $lang['Smilies_are_OFF']; -} - -if( !$userdata['session_logged_in'] || ( $mode == 'editpost' && $post_info['poster_id'] == ANONYMOUS ) ) -{ - $template->assign_block_vars('switch_username_select', array()); -} - -// -// Notify checkbox - only show if user is logged in -// -if ( $userdata['session_logged_in'] && $is_auth['auth_read'] ) -{ - if ( $mode != 'editpost' || ( $mode == 'editpost' && $post_info['poster_id'] != ANONYMOUS ) ) - { - $template->assign_block_vars('switch_notify_checkbox', array()); - } -} - -// -// Delete selection -// -if ( $mode == 'editpost' && ( ( $is_auth['auth_delete'] && $post_data['last_post'] && ( !$post_data['has_poll'] || $post_data['edit_poll'] ) ) || $is_auth['auth_mod'] ) ) -{ - $template->assign_block_vars('switch_delete_checkbox', array()); -} - -// -// Topic type selection -// -$topic_type_toggle = ''; -if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) ) -{ - $template->assign_block_vars('switch_type_toggle', array()); - - if( $is_auth['auth_sticky'] ) - { - $topic_type_toggle .= ' ' . $lang['Post_Normal'] . '  ' . $topic_type_toggle; - } -} - -$hidden_form_fields = ''; - -switch( $mode ) -{ - case 'newtopic': - $page_title = $lang['Post_a_new_topic']; - $hidden_form_fields .= ''; - break; - - case 'reply': - $page_title = $lang['Post_a_reply']; - $hidden_form_fields .= ''; - break; - - case 'editpost': - $page_title = $lang['Edit_Post']; - $hidden_form_fields .= ''; - break; -} - -// Generate smilies listing for page output -generate_smilies('inline', PAGE_POSTING); - -// -// Include page header -// -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -$template->set_filenames(array( - 'body' => 'posting_body.tpl', - 'pollbody' => 'posting_poll_body.tpl', - 'reviewbody' => 'posting_topic_review.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$template->assign_vars(array( - 'FORUM_NAME' => $forum_name, - 'L_POST_A' => $page_title, - 'L_POST_SUBJECT' => $lang['Post_subject'], - - 'U_VIEW_FORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id")) -); - -// -// This enables the forum/topic title to be output for posting -// but not for privmsg (where it makes no sense) -// -$template->assign_block_vars('switch_not_privmsg', array()); - -// -// Output the data to the template -// -$template->assign_vars(array( - 'USERNAME' => $username, - 'SUBJECT' => $subject, - 'MESSAGE' => $message, - 'HTML_STATUS' => $html_status, - 'BBCODE_STATUS' => sprintf($bbcode_status, '', ''), - 'SMILIES_STATUS' => $smilies_status, - - 'L_SUBJECT' => $lang['Subject'], - 'L_MESSAGE_BODY' => $lang['Message_body'], - 'L_OPTIONS' => $lang['Options'], - 'L_PREVIEW' => $lang['Preview'], - 'L_SPELLCHECK' => $lang['Spellcheck'], - 'L_SUBMIT' => $lang['Submit'], - 'L_CANCEL' => $lang['Cancel'], - 'L_CONFIRM_DELETE' => $lang['Confirm_delete'], - 'L_DISABLE_HTML' => $lang['Disable_HTML_post'], - 'L_DISABLE_BBCODE' => $lang['Disable_BBCode_post'], - 'L_DISABLE_SMILIES' => $lang['Disable_Smilies_post'], - 'L_ATTACH_SIGNATURE' => $lang['Attach_signature'], - 'L_NOTIFY_ON_REPLY' => $lang['Notify'], - 'L_DELETE_POST' => $lang['Delete_post'], - - 'L_BBCODE_B_HELP' => $lang['bbcode_b_help'], - 'L_BBCODE_I_HELP' => $lang['bbcode_i_help'], - 'L_BBCODE_U_HELP' => $lang['bbcode_u_help'], - 'L_BBCODE_Q_HELP' => $lang['bbcode_q_help'], - 'L_BBCODE_C_HELP' => $lang['bbcode_c_help'], - 'L_BBCODE_L_HELP' => $lang['bbcode_l_help'], - 'L_BBCODE_O_HELP' => $lang['bbcode_o_help'], - 'L_BBCODE_P_HELP' => $lang['bbcode_p_help'], - 'L_BBCODE_W_HELP' => $lang['bbcode_w_help'], - 'L_BBCODE_A_HELP' => $lang['bbcode_a_help'], - 'L_BBCODE_S_HELP' => $lang['bbcode_s_help'], - 'L_BBCODE_F_HELP' => $lang['bbcode_f_help'], - 'L_EMPTY_MESSAGE' => $lang['Empty_message'], - - 'L_FONT_COLOR' => $lang['Font_color'], - 'L_COLOR_DEFAULT' => $lang['color_default'], - 'L_COLOR_DARK_RED' => $lang['color_dark_red'], - 'L_COLOR_RED' => $lang['color_red'], - 'L_COLOR_ORANGE' => $lang['color_orange'], - 'L_COLOR_BROWN' => $lang['color_brown'], - 'L_COLOR_YELLOW' => $lang['color_yellow'], - 'L_COLOR_GREEN' => $lang['color_green'], - 'L_COLOR_OLIVE' => $lang['color_olive'], - 'L_COLOR_CYAN' => $lang['color_cyan'], - 'L_COLOR_BLUE' => $lang['color_blue'], - 'L_COLOR_DARK_BLUE' => $lang['color_dark_blue'], - 'L_COLOR_INDIGO' => $lang['color_indigo'], - 'L_COLOR_VIOLET' => $lang['color_violet'], - 'L_COLOR_WHITE' => $lang['color_white'], - 'L_COLOR_BLACK' => $lang['color_black'], - - 'L_FONT_SIZE' => $lang['Font_size'], - 'L_FONT_TINY' => $lang['font_tiny'], - 'L_FONT_SMALL' => $lang['font_small'], - 'L_FONT_NORMAL' => $lang['font_normal'], - 'L_FONT_LARGE' => $lang['font_large'], - 'L_FONT_HUGE' => $lang['font_huge'], - - 'L_BBCODE_CLOSE_TAGS' => $lang['Close_Tags'], - 'L_STYLES_TIP' => $lang['Styles_tip'], - - 'U_VIEWTOPIC' => ( $mode == 'reply' ) ? append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postorder=desc") : '', - 'U_REVIEW_TOPIC' => ( $mode == 'reply' ) ? append_sid("posting.$phpEx?mode=topicreview&" . POST_TOPIC_URL . "=$topic_id") : '', - - 'S_HTML_CHECKED' => ( !$html_on ) ? 'checked="checked"' : '', - 'S_BBCODE_CHECKED' => ( !$bbcode_on ) ? 'checked="checked"' : '', - 'S_SMILIES_CHECKED' => ( !$smilies_on ) ? 'checked="checked"' : '', - 'S_SIGNATURE_CHECKED' => ( $attach_sig ) ? 'checked="checked"' : '', - 'S_NOTIFY_CHECKED' => ( $notify_user ) ? 'checked="checked"' : '', - 'S_TYPE_TOGGLE' => $topic_type_toggle, - 'S_TOPIC_ID' => $topic_id, - 'S_POST_ACTION' => append_sid("posting.$phpEx"), - 'S_HIDDEN_FORM_FIELDS' => $hidden_form_fields) -); - -// -// Poll entry switch/output -// -if( ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['edit_poll']) ) && $is_auth['auth_pollcreate'] ) -{ - $template->assign_vars(array( - 'L_ADD_A_POLL' => $lang['Add_poll'], - 'L_ADD_POLL_EXPLAIN' => $lang['Add_poll_explain'], - 'L_POLL_QUESTION' => $lang['Poll_question'], - 'L_POLL_OPTION' => $lang['Poll_option'], - 'L_ADD_OPTION' => $lang['Add_option'], - 'L_UPDATE_OPTION' => $lang['Update'], - 'L_DELETE_OPTION' => $lang['Delete'], - 'L_POLL_LENGTH' => $lang['Poll_for'], - 'L_DAYS' => $lang['Days'], - 'L_POLL_LENGTH_EXPLAIN' => $lang['Poll_for_explain'], - 'L_POLL_DELETE' => $lang['Delete_poll'], - - 'POLL_TITLE' => $poll_title, - 'POLL_LENGTH' => $poll_length) - ); - - if( $mode == 'editpost' && $post_data['edit_poll'] && $post_data['has_poll']) - { - $template->assign_block_vars('switch_poll_delete_toggle', array()); - } - - if( !empty($poll_options) ) - { - while( list($option_id, $option_text) = each($poll_options) ) - { - $template->assign_block_vars('poll_option_rows', array( - 'POLL_OPTION' => str_replace('"', '"', $option_text), - - 'S_POLL_OPTION_NUM' => $option_id) - ); - } - } - - $template->assign_var_from_handle('POLLBOX', 'pollbody'); -} - -// -// Topic review -// -if( $mode == 'reply' && $is_auth['auth_read'] ) -{ - require($phpbb_root_path . 'includes/topic_review.'.$phpEx); - topic_review($topic_id, true); - - $template->assign_block_vars('switch_inline_mode', array()); - $template->assign_var_from_handle('TOPIC_REVIEW_BOX', 'reviewbody'); -} - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> diff --git a/phpBB2_old/privmsg.php b/phpBB2_old/privmsg.php deleted file mode 100644 index ac08049..0000000 --- a/phpBB2_old/privmsg.php +++ /dev/null @@ -1,2156 +0,0 @@ -#'); -$html_entities_replace = array('&', '<', '>'); - -// -// Parameters -// -$submit = ( isset($HTTP_POST_VARS['post']) ) ? TRUE : 0; -$submit_search = ( isset($HTTP_POST_VARS['usersubmit']) ) ? TRUE : 0; -$submit_msgdays = ( isset($HTTP_POST_VARS['submit_msgdays']) ) ? TRUE : 0; -$cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? TRUE : 0; -$preview = ( isset($HTTP_POST_VARS['preview']) ) ? TRUE : 0; -$confirm = ( isset($HTTP_POST_VARS['confirm']) ) ? TRUE : 0; -$delete = ( isset($HTTP_POST_VARS['delete']) ) ? TRUE : 0; -$delete_all = ( isset($HTTP_POST_VARS['deleteall']) ) ? TRUE : 0; -$save = ( isset($HTTP_POST_VARS['save']) ) ? TRUE : 0; - -$refresh = $preview || $submit_search; - -$mark_list = ( !empty($HTTP_POST_VARS['mark']) ) ? $HTTP_POST_VARS['mark'] : 0; - -if ( isset($HTTP_POST_VARS['folder']) || isset($HTTP_GET_VARS['folder']) ) -{ - $folder = ( isset($HTTP_POST_VARS['folder']) ) ? $HTTP_POST_VARS['folder'] : $HTTP_GET_VARS['folder']; - $folder = htmlspecialchars($folder); - - if ( $folder != 'inbox' && $folder != 'outbox' && $folder != 'sentbox' && $folder != 'savebox' ) - { - $folder = 'inbox'; - } -} -else -{ - $folder = 'inbox'; -} - -// -// Start session management -// -$userdata = session_pagestart($user_ip, PAGE_PRIVMSGS); -init_userprefs($userdata); -// -// End session management -// - -// -// Cancel -// -if ( $cancel ) -{ - redirect(append_sid("privmsg.$phpEx?folder=$folder", true)); -} - -// -// Var definitions -// -if ( !empty($HTTP_POST_VARS['mode']) || !empty($HTTP_GET_VARS['mode']) ) -{ - $mode = ( !empty($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; - $mode = htmlspecialchars($mode); -} -else -{ - $mode = ''; -} - -$start = ( !empty($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0; - -if ( isset($HTTP_POST_VARS[POST_POST_URL]) || isset($HTTP_GET_VARS[POST_POST_URL]) ) -{ - $privmsg_id = ( isset($HTTP_POST_VARS[POST_POST_URL]) ) ? intval($HTTP_POST_VARS[POST_POST_URL]) : intval($HTTP_GET_VARS[POST_POST_URL]); -} -else -{ - $privmsg_id = ''; -} - -$error = FALSE; - -// -// Define the box image links -// -$inbox_img = ( $folder != 'inbox' || $mode != '' ) ? '' . $lang['Inbox'] . '' : '' . $lang['Inbox'] . ''; -$inbox_url = ( $folder != 'inbox' || $mode != '' ) ? '' . $lang['Inbox'] . '' : $lang['Inbox']; - -$outbox_img = ( $folder != 'outbox' || $mode != '' ) ? '' . $lang['Outbox'] . '' : '' . $lang['Outbox'] . ''; -$outbox_url = ( $folder != 'outbox' || $mode != '' ) ? '' . $lang['Outbox'] . '' : $lang['Outbox']; - -$sentbox_img = ( $folder != 'sentbox' || $mode != '' ) ? '' . $lang['Sentbox'] . '' : '' . $lang['Sentbox'] . ''; -$sentbox_url = ( $folder != 'sentbox' || $mode != '' ) ? '' . $lang['Sentbox'] . '' : $lang['Sentbox']; - -$savebox_img = ( $folder != 'savebox' || $mode != '' ) ? '' . $lang['Savebox'] . '' : '' . $lang['Savebox'] . ''; -$savebox_url = ( $folder != 'savebox' || $mode != '' ) ? '' . $lang['Savebox'] . '' : $lang['Savebox']; - -// ---------- -// Start main -// -if ( $mode == 'newpm' ) -{ - $gen_simple_header = TRUE; - - $page_title = $lang['Private_Messaging']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'body' => 'privmsgs_popup.tpl') - ); - - if ( $userdata['session_logged_in'] ) - { - if ( $userdata['user_new_privmsg'] ) - { - $l_new_message = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['You_new_pm'] : $lang['You_new_pms']; - } - else - { - $l_new_message = $lang['You_no_new_pm']; - } - - $l_new_message .= '

    ' . sprintf($lang['Click_view_privmsg'], '', ''); - } - else - { - $l_new_message = $lang['Login_check_pm']; - } - - $template->assign_vars(array( - 'L_CLOSE_WINDOW' => $lang['Close_window'], - 'L_MESSAGE' => $l_new_message) - ); - - $template->pparse('body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -} -else if ( $mode == 'read' ) -{ - if ( !empty($HTTP_GET_VARS[POST_POST_URL]) ) - { - $privmsgs_id = intval($HTTP_GET_VARS[POST_POST_URL]); - } - else - { - message_die(GENERAL_ERROR, $lang['No_post_id']); - } - - if ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=privmsg.$phpEx&folder=$folder&mode=$mode&" . POST_POST_URL . "=$privmsgs_id", true)); - } - - // - // SQL to pull appropriate message, prevents nosey people - // reading other peoples messages ... hopefully! - // - switch( $folder ) - { - case 'inbox': - $l_box_name = $lang['Inbox']; - $pm_sql_user = "AND pm.privmsgs_to_userid = " . $userdata['user_id'] . " - AND ( pm.privmsgs_type = " . PRIVMSGS_READ_MAIL . " - OR pm.privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR pm.privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - break; - case 'outbox': - $l_box_name = $lang['Outbox']; - $pm_sql_user = "AND pm.privmsgs_from_userid = " . $userdata['user_id'] . " - AND ( pm.privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR pm.privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " ) "; - break; - case 'sentbox': - $l_box_name = $lang['Sentbox']; - $pm_sql_user = "AND pm.privmsgs_from_userid = " . $userdata['user_id'] . " - AND pm.privmsgs_type = " . PRIVMSGS_SENT_MAIL; - break; - case 'savebox': - $l_box_name = $lang['Savebox']; - $pm_sql_user = "AND ( ( pm.privmsgs_to_userid = " . $userdata['user_id'] . " - AND pm.privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) - OR ( pm.privmsgs_from_userid = " . $userdata['user_id'] . " - AND pm.privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . " ) - )"; - break; - default: - message_die(GENERAL_ERROR, $lang['No_such_folder']); - break; - } - - // - // Major query obtains the message ... - // - $sql = "SELECT u.username AS username_1, u.user_id AS user_id_1, u2.username AS username_2, u2.user_id AS user_id_2, u.user_sig_bbcode_uid, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_avatar, pm.*, pmt.privmsgs_bbcode_uid, pmt.privmsgs_text - FROM " . PRIVMSGS_TABLE . " pm, " . PRIVMSGS_TEXT_TABLE . " pmt, " . USERS_TABLE . " u, " . USERS_TABLE . " u2 - WHERE pm.privmsgs_id = $privmsgs_id - AND pmt.privmsgs_text_id = pm.privmsgs_id - $pm_sql_user - AND u.user_id = pm.privmsgs_from_userid - AND u2.user_id = pm.privmsgs_to_userid"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not query private message post information', '', __LINE__, __FILE__, $sql); - } - - // - // Did the query return any data? - // - if ( !($privmsg = $db->sql_fetchrow($result)) ) - { - redirect(append_sid("privmsg.$phpEx?folder=$folder", true)); - } - - $privmsg_id = $privmsg['privmsgs_id']; - - // - // Is this a new message in the inbox? If it is then save - // a copy in the posters sent box - // - if (($privmsg['privmsgs_type'] == PRIVMSGS_NEW_MAIL || $privmsg['privmsgs_type'] == PRIVMSGS_UNREAD_MAIL) && $folder == 'inbox') - { - // Update appropriate counter - switch ($privmsg['privmsgs_type']) - { - case PRIVMSGS_NEW_MAIL: - $sql = "user_new_privmsg = user_new_privmsg - 1"; - break; - case PRIVMSGS_UNREAD_MAIL: - $sql = "user_unread_privmsg = user_unread_privmsg - 1"; - break; - } - - $sql = "UPDATE " . USERS_TABLE . " - SET $sql - WHERE user_id = " . $userdata['user_id']; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update private message read status for user', '', __LINE__, __FILE__, $sql); - } - - $sql = "UPDATE " . PRIVMSGS_TABLE . " - SET privmsgs_type = " . PRIVMSGS_READ_MAIL . " - WHERE privmsgs_id = " . $privmsg['privmsgs_id']; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update private message read status', '', __LINE__, __FILE__, $sql); - } - - // Check to see if the poster has a 'full' sent box - $sql = "SELECT COUNT(privmsgs_id) AS sent_items, MIN(privmsgs_date) AS oldest_post_time - FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_type = " . PRIVMSGS_SENT_MAIL . " - AND privmsgs_from_userid = " . $privmsg['privmsgs_from_userid']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain sent message info for sendee', '', __LINE__, __FILE__, $sql); - } - - $sql_priority = ( SQL_LAYER == 'mysql' ) ? 'LOW_PRIORITY' : ''; - - if ( $sent_info = $db->sql_fetchrow($result) ) - { - if ( $sent_info['sent_items'] >= $board_config['max_sentbox_privmsgs'] ) - { - $sql = "SELECT privmsgs_id FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_type = " . PRIVMSGS_SENT_MAIL . " - AND privmsgs_date = " . $sent_info['oldest_post_time'] . " - AND privmsgs_from_userid = " . $privmsg['privmsgs_from_userid']; - if ( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not find oldest privmsgs', '', __LINE__, __FILE__, $sql); - } - $old_privmsgs_id = $db->sql_fetchrow($result); - $old_privmsgs_id = $old_privmsgs_id['privmsgs_id']; - - $sql = "DELETE $sql_priority FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_id = $old_privmsgs_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete oldest privmsgs (sent)', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE $sql_priority FROM " . PRIVMSGS_TEXT_TABLE . " - WHERE privmsgs_text_id = $old_privmsgs_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete oldest privmsgs text (sent)', '', __LINE__, __FILE__, $sql); - } - } - } - - // - // This makes a copy of the post and stores it as a SENT message from the sendee. Perhaps - // not the most DB friendly way but a lot easier to manage, besides the admin will be able to - // set limits on numbers of storable posts for users ... hopefully! - // - $sql = "INSERT $sql_priority INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) - VALUES (" . PRIVMSGS_SENT_MAIL . ", '" . str_replace("\'", "''", addslashes($privmsg['privmsgs_subject'])) . "', " . $privmsg['privmsgs_from_userid'] . ", " . $privmsg['privmsgs_to_userid'] . ", " . $privmsg['privmsgs_date'] . ", '" . $privmsg['privmsgs_ip'] . "', " . $privmsg['privmsgs_enable_html'] . ", " . $privmsg['privmsgs_enable_bbcode'] . ", " . $privmsg['privmsgs_enable_smilies'] . ", " . $privmsg['privmsgs_attach_sig'] . ")"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert private message sent info', '', __LINE__, __FILE__, $sql); - } - - $privmsg_sent_id = $db->sql_nextid(); - - $sql = "INSERT $sql_priority INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_bbcode_uid, privmsgs_text) - VALUES ($privmsg_sent_id, '" . $privmsg['privmsgs_bbcode_uid'] . "', '" . str_replace("\'", "''", addslashes($privmsg['privmsgs_text'])) . "')"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not insert private message sent text', '', __LINE__, __FILE__, $sql); - } - } - - // - // Pick a folder, any folder, so long as it's one below ... - // - $post_urls = array( - 'post' => append_sid("privmsg.$phpEx?mode=post"), - 'reply' => append_sid("privmsg.$phpEx?mode=reply&" . POST_POST_URL . "=$privmsg_id"), - 'quote' => append_sid("privmsg.$phpEx?mode=quote&" . POST_POST_URL . "=$privmsg_id"), - 'edit' => append_sid("privmsg.$phpEx?mode=edit&" . POST_POST_URL . "=$privmsg_id") - ); - $post_icons = array( - 'post_img' => '' . $lang['Post_new_pm'] . '', - 'post' => '' . $lang['Post_new_pm'] . '', - 'reply_img' => '' . $lang['Post_reply_pm'] . '', - 'reply' => '' . $lang['Post_reply_pm'] . '', - 'quote_img' => '' . $lang['Post_quote_pm'] . '', - 'quote' => '' . $lang['Post_quote_pm'] . '', - 'edit_img' => '' . $lang['Edit_pm'] . '', - 'edit' => '' . $lang['Edit_pm'] . '' - ); - - if ( $folder == 'inbox' ) - { - $post_img = $post_icons['post_img']; - $reply_img = $post_icons['reply_img']; - $quote_img = $post_icons['quote_img']; - $edit_img = ''; - $post = $post_icons['post']; - $reply = $post_icons['reply']; - $quote = $post_icons['quote']; - $edit = ''; - $l_box_name = $lang['Inbox']; - } - else if ( $folder == 'outbox' ) - { - $post_img = $post_icons['post_img']; - $reply_img = ''; - $quote_img = ''; - $edit_img = $post_icons['edit_img']; - $post = $post_icons['post']; - $reply = ''; - $quote = ''; - $edit = $post_icons['edit']; - $l_box_name = $lang['Outbox']; - } - else if ( $folder == 'savebox' ) - { - if ( $privmsg['privmsgs_type'] == PRIVMSGS_SAVED_IN_MAIL ) - { - $post_img = $post_icons['post_img']; - $reply_img = $post_icons['reply_img']; - $quote_img = $post_icons['quote_img']; - $edit_img = ''; - $post = $post_icons['post']; - $reply = $post_icons['reply']; - $quote = $post_icons['quote']; - $edit = ''; - } - else - { - $post_img = $post_icons['post_img']; - $reply_img = ''; - $quote_img = ''; - $edit_img = ''; - $post = $post_icons['post']; - $reply = ''; - $quote = ''; - $edit = ''; - } - $l_box_name = $lang['Saved']; - } - else if ( $folder == 'sentbox' ) - { - $post_img = $post_icons['post_img']; - $reply_img = ''; - $quote_img = ''; - $edit_img = ''; - $post = $post_icons['post']; - $reply = ''; - $quote = ''; - $edit = ''; - $l_box_name = $lang['Sent']; - } - - $s_hidden_fields = ''; - - $page_title = $lang['Read_pm']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - // - // Load templates - // - $template->set_filenames(array( - 'body' => 'privmsgs_read_body.tpl') - ); - make_jumpbox('viewforum.'.$phpEx); - - $template->assign_vars(array( - 'INBOX_IMG' => $inbox_img, - 'SENTBOX_IMG' => $sentbox_img, - 'OUTBOX_IMG' => $outbox_img, - 'SAVEBOX_IMG' => $savebox_img, - 'INBOX' => $inbox_url, - - 'POST_PM_IMG' => $post_img, - 'REPLY_PM_IMG' => $reply_img, - 'EDIT_PM_IMG' => $edit_img, - 'QUOTE_PM_IMG' => $quote_img, - 'POST_PM' => $post, - 'REPLY_PM' => $reply, - 'EDIT_PM' => $edit, - 'QUOTE_PM' => $quote, - - 'SENTBOX' => $sentbox_url, - 'OUTBOX' => $outbox_url, - 'SAVEBOX' => $savebox_url, - - 'BOX_NAME' => $l_box_name, - - 'L_MESSAGE' => $lang['Message'], - 'L_INBOX' => $lang['Inbox'], - 'L_OUTBOX' => $lang['Outbox'], - 'L_SENTBOX' => $lang['Sent'], - 'L_SAVEBOX' => $lang['Saved'], - 'L_FLAG' => $lang['Flag'], - 'L_SUBJECT' => $lang['Subject'], - 'L_POSTED' => $lang['Posted'], - 'L_DATE' => $lang['Date'], - 'L_FROM' => $lang['From'], - 'L_TO' => $lang['To'], - 'L_SAVE_MSG' => $lang['Save_message'], - 'L_DELETE_MSG' => $lang['Delete_message'], - - 'S_PRIVMSGS_ACTION' => append_sid("privmsg.$phpEx?folder=$folder"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); - - $username_from = $privmsg['username_1']; - $user_id_from = $privmsg['user_id_1']; - $username_to = $privmsg['username_2']; - $user_id_to = $privmsg['user_id_2']; - - $post_date = create_date($board_config['default_dateformat'], $privmsg['privmsgs_date'], $board_config['board_timezone']); - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $user_id_from); - $profile_img = '' . $lang['Read_profile'] . ''; - $profile = '' . $lang['Read_profile'] . ''; - - $temp_url = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$user_id_from"); - $pm_img = '' . $lang['Send_private_message'] . ''; - $pm = '' . $lang['Send_private_message'] . ''; - - if ( !empty($privmsg['user_viewemail']) || $userdata['user_level'] == ADMIN ) - { - $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $user_id_from) : 'mailto:' . $privmsg['user_email']; - - $email_img = '' . $lang['Send_email'] . ''; - $email = '' . $lang['Send_email'] . ''; - } - else - { - $email_img = ''; - $email = ''; - } - - $www_img = ( $privmsg['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - $www = ( $privmsg['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - - if ( !empty($privmsg['user_icq']) ) - { - $icq_status_img = ''; - $icq_img = '' . $lang['ICQ'] . ''; - $icq = '' . $lang['ICQ'] . ''; - } - else - { - $icq_status_img = ''; - $icq_img = ''; - $icq = ''; - } - - $aim_img = ( $privmsg['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - $aim = ( $privmsg['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$user_id_from"); - $msn_img = ( $privmsg['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - $msn = ( $privmsg['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - - $yim_img = ( $privmsg['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - $yim = ( $privmsg['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - - $temp_url = append_sid("search.$phpEx?search_author=" . urlencode($username_from) . "&showresults=posts"); - $search_img = '' . $lang['Search_user_posts'] . ''; - $search = '' . $lang['Search_user_posts'] . ''; - - // - // Processing of post - // - $post_subject = $privmsg['privmsgs_subject']; - - $private_message = $privmsg['privmsgs_text']; - $bbcode_uid = $privmsg['privmsgs_bbcode_uid']; - - if ( $board_config['allow_sig'] ) - { - $user_sig = ( $privmsg['privmsgs_from_userid'] == $userdata['user_id'] ) ? $userdata['user_sig'] : $privmsg['user_sig']; - } - else - { - $user_sig = ''; - } - - $user_sig_bbcode_uid = ( $privmsg['privmsgs_from_userid'] == $userdata['user_id'] ) ? $userdata['user_sig_bbcode_uid'] : $privmsg['user_sig_bbcode_uid']; - - // - // If the board has HTML off but the post has HTML - // on then we process it, else leave it alone - // - if ( !$board_config['allow_html'] ) - { - if ( $user_sig != '' && $privmsg['privmsgs_enable_sig'] && $userdata['user_allowhtml'] ) - { - $user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $user_sig); - } - - if ( $privmsg['privmsgs_enable_html'] ) - { - $private_message = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $private_message); - } - } - - if ( $user_sig != '' && $privmsg['privmsgs_attach_sig'] && $user_sig_bbcode_uid != '' ) - { - $user_sig = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $user_sig); - } - - if ( $bbcode_uid != '' ) - { - $private_message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($private_message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $private_message); - } - - $private_message = make_clickable($private_message); - - if ( $privmsg['privmsgs_attach_sig'] && $user_sig != '' ) - { - $private_message .= '

    _________________
    ' . make_clickable($user_sig); - } - - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); - - if ( count($orig_word) ) - { - $post_subject = preg_replace($orig_word, $replacement_word, $post_subject); - $private_message = preg_replace($orig_word, $replacement_word, $private_message); - } - - if ( $board_config['allow_smilies'] && $privmsg['privmsgs_enable_smilies'] ) - { - $private_message = smilies_pass($private_message); - } - - $private_message = str_replace("\n", '
    ', $private_message); - - // - // Dump it to the templating engine - // - $template->assign_vars(array( - 'MESSAGE_TO' => $username_to, - 'MESSAGE_FROM' => $username_from, - 'RANK_IMAGE' => $rank_image, - 'POSTER_JOINED' => $poster_joined, - 'POSTER_POSTS' => $poster_posts, - 'POSTER_FROM' => $poster_from, - 'POSTER_AVATAR' => $poster_avatar, - 'POST_SUBJECT' => $post_subject, - 'POST_DATE' => $post_date, - 'MESSAGE' => $private_message, - - 'PROFILE_IMG' => $profile_img, - 'PROFILE' => $profile, - 'SEARCH_IMG' => $search_img, - 'SEARCH' => $search, - 'EMAIL_IMG' => $email_img, - 'EMAIL' => $email, - 'WWW_IMG' => $www_img, - 'WWW' => $www, - 'ICQ_STATUS_IMG' => $icq_status_img, - 'ICQ_IMG' => $icq_img, - 'ICQ' => $icq, - 'AIM_IMG' => $aim_img, - 'AIM' => $aim, - 'MSN_IMG' => $msn_img, - 'MSN' => $msn, - 'YIM_IMG' => $yim_img, - 'YIM' => $yim) - ); - - $template->pparse('body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -} -else if ( ( $delete && $mark_list ) || $delete_all ) -{ - if ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=privmsg.$phpEx&folder=inbox", true)); - } - - if ( isset($mark_list) && !is_array($mark_list) ) - { - // Set to empty array instead of '0' if nothing is selected. - $mark_list = array(); - } - - if ( !$confirm ) - { - $s_hidden_fields = ''; - $s_hidden_fields .= ( isset($HTTP_POST_VARS['delete']) ) ? '' : ''; - - for($i = 0; $i < count($mark_list); $i++) - { - $s_hidden_fields .= ''; - } - - // - // Output confirmation page - // - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - $template->set_filenames(array( - 'confirm_body' => 'confirm_body.tpl') - ); - $template->assign_vars(array( - 'MESSAGE_TITLE' => $lang['Information'], - 'MESSAGE_TEXT' => ( count($mark_list) == 1 ) ? $lang['Confirm_delete_pm'] : $lang['Confirm_delete_pms'], - - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - - 'S_CONFIRM_ACTION' => append_sid("privmsg.$phpEx?folder=$folder"), - 'S_HIDDEN_FIELDS' => $s_hidden_fields) - ); - - $template->pparse('confirm_body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - - } - else if ( $confirm ) - { - if ( $delete_all ) - { - switch($folder) - { - case 'inbox': - $delete_type = "privmsgs_to_userid = " . $userdata['user_id'] . " AND ( - privmsgs_type = " . PRIVMSGS_READ_MAIL . " OR privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - break; - - case 'outbox': - $delete_type = "privmsgs_from_userid = " . $userdata['user_id'] . " AND ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - break; - - case 'sentbox': - $delete_type = "privmsgs_from_userid = " . $userdata['user_id'] . " AND privmsgs_type = " . PRIVMSGS_SENT_MAIL; - break; - - case 'savebox': - $delete_type = "( ( privmsgs_from_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . " ) - OR ( privmsgs_to_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) )"; - break; - } - - $sql = "SELECT privmsgs_id - FROM " . PRIVMSGS_TABLE . " - WHERE $delete_type"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain id list to delete all messages', '', __LINE__, __FILE__, $sql); - } - - while ( $row = $db->sql_fetchrow($result) ) - { - $mark_list[] = $row['privmsgs_id']; - } - - unset($delete_type); - } - - if ( count($mark_list) ) - { - $delete_sql_id = ''; - for ($i = 0; $i < sizeof($mark_list); $i++) - { - $delete_sql_id .= (($delete_sql_id != '') ? ', ' : '') . intval($mark_list[$i]); - } - - if ($folder == 'inbox' || $folder == 'outbox') - { - switch ($folder) - { - case 'inbox': - $sql = "privmsgs_to_userid = " . $userdata['user_id']; - break; - case 'outbox': - $sql = "privmsgs_from_userid = " . $userdata['user_id']; - break; - } - - // Get information relevant to new or unread mail - // so we can adjust users counters appropriately - $sql = "SELECT privmsgs_to_userid, privmsgs_type - FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_id IN ($delete_sql_id) - AND $sql - AND privmsgs_type IN (" . PRIVMSGS_NEW_MAIL . ", " . PRIVMSGS_UNREAD_MAIL . ")"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user id list for outbox messages', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result)) - { - $update_users = $update_list = array(); - - do - { - switch ($row['privmsgs_type']) - { - case PRIVMSGS_NEW_MAIL: - $update_users['new'][$row['privmsgs_to_userid']]++; - break; - - case PRIVMSGS_UNREAD_MAIL: - $update_users['unread'][$row['privmsgs_to_userid']]++; - break; - } - } - while ($row = $db->sql_fetchrow($result)); - - if (sizeof($update_users)) - { - while (list($type, $users) = each($update_users)) - { - while (list($user_id, $dec) = each($users)) - { - $update_list[$type][$dec][] = $user_id; - } - } - unset($update_users); - - while (list($type, $dec_ary) = each($update_list)) - { - switch ($type) - { - case 'new': - $type = "user_new_privmsg"; - break; - - case 'unread': - $type = "user_unread_privmsg"; - break; - } - - while (list($dec, $user_ary) = each($dec_ary)) - { - $user_ids = implode(', ', $user_ary); - - $sql = "UPDATE " . USERS_TABLE . " - SET $type = $type - $dec - WHERE user_id IN ($user_ids)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update user pm counters', '', __LINE__, __FILE__, $sql); - } - } - } - unset($update_list); - } - } - $db->sql_freeresult($result); - } - - // Delete the messages - $delete_text_sql = "DELETE FROM " . PRIVMSGS_TEXT_TABLE . " - WHERE privmsgs_text_id IN ($delete_sql_id)"; - $delete_sql = "DELETE FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_id IN ($delete_sql_id) - AND "; - - switch( $folder ) - { - case 'inbox': - $delete_sql .= "privmsgs_to_userid = " . $userdata['user_id'] . " AND ( - privmsgs_type = " . PRIVMSGS_READ_MAIL . " OR privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - break; - - case 'outbox': - $delete_sql .= "privmsgs_from_userid = " . $userdata['user_id'] . " AND ( - privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - break; - - case 'sentbox': - $delete_sql .= "privmsgs_from_userid = " . $userdata['user_id'] . " AND privmsgs_type = " . PRIVMSGS_SENT_MAIL; - break; - - case 'savebox': - $delete_sql .= "( ( privmsgs_from_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . " ) - OR ( privmsgs_to_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) )"; - break; - } - - if ( !$db->sql_query($delete_sql, BEGIN_TRANSACTION) ) - { - message_die(GENERAL_ERROR, 'Could not delete private message info', '', __LINE__, __FILE__, $delete_sql); - } - - if ( !$db->sql_query($delete_text_sql, END_TRANSACTION) ) - { - message_die(GENERAL_ERROR, 'Could not delete private message text', '', __LINE__, __FILE__, $delete_text_sql); - } - } - } -} -else if ( $save && $mark_list && $folder != 'savebox' && $folder != 'outbox' ) -{ - if ( !$userdata['session_logged_in'] ) - { - redirect(append_sid("login.$phpEx?redirect=privmsg.$phpEx&folder=inbox", true)); - } - - if (sizeof($mark_list)) - { - // See if recipient is at their savebox limit - $sql = "SELECT COUNT(privmsgs_id) AS savebox_items, MIN(privmsgs_date) AS oldest_post_time - FROM " . PRIVMSGS_TABLE . " - WHERE ( ( privmsgs_to_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) - OR ( privmsgs_from_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . ") )"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain sent message info for sendee', '', __LINE__, __FILE__, $sql); - } - - $sql_priority = ( SQL_LAYER == 'mysql' ) ? 'LOW_PRIORITY' : ''; - - if ( $saved_info = $db->sql_fetchrow($result) ) - { - if ( $saved_info['savebox_items'] >= $board_config['max_savebox_privmsgs'] ) - { - $sql = "SELECT privmsgs_id FROM " . PRIVMSGS_TABLE . " - WHERE ( ( privmsgs_to_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) - OR ( privmsgs_from_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . ") ) - AND privmsgs_date = " . $saved_info['oldest_post_time']; - if ( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not find oldest privmsgs (save)', '', __LINE__, __FILE__, $sql); - } - $old_privmsgs_id = $db->sql_fetchrow($result); - $old_privmsgs_id = $old_privmsgs_id['privmsgs_id']; - - $sql = "DELETE $sql_priority FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_id = $old_privmsgs_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete oldest privmsgs (save)', '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE $sql_priority FROM " . PRIVMSGS_TEXT_TABLE . " - WHERE privmsgs_text_id = $old_privmsgs_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete oldest privmsgs text (save)', '', __LINE__, __FILE__, $sql); - } - } - } - - $saved_sql_id = ''; - for ($i = 0; $i < sizeof($mark_list); $i++) - { - $saved_sql_id .= (($saved_sql_id != '') ? ', ' : '') . intval($mark_list[$i]); - } - - // Process request - $saved_sql = "UPDATE " . PRIVMSGS_TABLE; - - // Decrement read/new counters if appropriate - if ($folder == 'inbox' || $folder == 'outbox') - { - switch ($folder) - { - case 'inbox': - $sql = "privmsgs_to_userid = " . $userdata['user_id']; - break; - case 'outbox': - $sql = "privmsgs_from_userid = " . $userdata['user_id']; - break; - } - - // Get information relevant to new or unread mail - // so we can adjust users counters appropriately - $sql = "SELECT privmsgs_to_userid, privmsgs_type - FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_id IN ($saved_sql_id) - AND $sql - AND privmsgs_type IN (" . PRIVMSGS_NEW_MAIL . ", " . PRIVMSGS_UNREAD_MAIL . ")"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain user id list for outbox messages', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result)) - { - $update_users = $update_list = array(); - - do - { - switch ($row['privmsgs_type']) - { - case PRIVMSGS_NEW_MAIL: - $update_users['new'][$row['privmsgs_to_userid']]++; - break; - - case PRIVMSGS_UNREAD_MAIL: - $update_users['unread'][$row['privmsgs_to_userid']]++; - break; - } - } - while ($row = $db->sql_fetchrow($result)); - - if (sizeof($update_users)) - { - while (list($type, $users) = each($update_users)) - { - while (list($user_id, $dec) = each($users)) - { - $update_list[$type][$dec][] = $user_id; - } - } - unset($update_users); - - while (list($type, $dec_ary) = each($update_list)) - { - switch ($type) - { - case 'new': - $type = "user_new_privmsg"; - break; - - case 'unread': - $type = "user_unread_privmsg"; - break; - } - - while (list($dec, $user_ary) = each($dec_ary)) - { - $user_ids = implode(', ', $user_ary); - - $sql = "UPDATE " . USERS_TABLE . " - SET $type = $type - $dec - WHERE user_id IN ($user_ids)"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update user pm counters', '', __LINE__, __FILE__, $sql); - } - } - } - unset($update_list); - } - } - $db->sql_freeresult($result); - } - - switch ($folder) - { - case 'inbox': - $saved_sql .= " SET privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " - WHERE privmsgs_to_userid = " . $userdata['user_id'] . " - AND ( privmsgs_type = " . PRIVMSGS_READ_MAIL . " - OR privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . ")"; - break; - - case 'outbox': - $saved_sql .= " SET privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . " - WHERE privmsgs_from_userid = " . $userdata['user_id'] . " - AND ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " ) "; - break; - - case 'sentbox': - $saved_sql .= " SET privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . " - WHERE privmsgs_from_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SENT_MAIL; - break; - } - - $saved_sql .= " AND privmsgs_id IN ($saved_sql_id)"; - - if ( !$db->sql_query($saved_sql) ) - { - message_die(GENERAL_ERROR, 'Could not save private messages', '', __LINE__, __FILE__, $saved_sql); - } - - redirect(append_sid("privmsg.$phpEx?folder=savebox", true)); - } -} -else if ( $submit || $refresh || $mode != '' ) -{ - if ( !$userdata['session_logged_in'] ) - { - $user_id = ( isset($HTTP_GET_VARS[POST_USERS_URL]) ) ? '&' . POST_USERS_URL . '=' . intval($HTTP_GET_VARS[POST_USERS_URL]) : ''; - redirect(append_sid("login.$phpEx?redirect=privmsg.$phpEx&folder=$folder&mode=$mode" . $user_id, true)); - } - - // - // Toggles - // - if ( !$board_config['allow_html'] ) - { - $html_on = 0; - } - else - { - $html_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_html']) ) ? 0 : TRUE ) : $userdata['user_allowhtml']; - } - - if ( !$board_config['allow_bbcode'] ) - { - $bbcode_on = 0; - } - else - { - $bbcode_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_bbcode']) ) ? 0 : TRUE ) : $userdata['user_allowbbcode']; - } - - if ( !$board_config['allow_smilies'] ) - { - $smilies_on = 0; - } - else - { - $smilies_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_smilies']) ) ? 0 : TRUE ) : $userdata['user_allowsmile']; - } - - $attach_sig = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['attach_sig']) ) ? TRUE : 0 ) : $userdata['user_attachsig']; - $user_sig = ( $userdata['user_sig'] != '' && $board_config['allow_sig'] ) ? $userdata['user_sig'] : ""; - - if ( $submit && $mode != 'edit' ) - { - // - // Flood control - // - $sql = "SELECT MAX(privmsgs_date) AS last_post_time - FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_from_userid = " . $userdata['user_id']; - if ( $result = $db->sql_query($sql) ) - { - $db_row = $db->sql_fetchrow($result); - - $last_post_time = $db_row['last_post_time']; - $current_time = time(); - - if ( ( $current_time - $last_post_time ) < $board_config['flood_interval']) - { - message_die(GENERAL_MESSAGE, $lang['Flood_Error']); - } - } - // - // End Flood control - // - } - - if ( $submit ) - { - if ( !empty($HTTP_POST_VARS['username']) ) - { - $to_username = phpbb_clean_username($HTTP_POST_VARS['username']); - - $sql = "SELECT user_id, user_notify_pm, user_email, user_lang, user_active - FROM " . USERS_TABLE . " - WHERE username = '" . str_replace("\'", "''", $to_username) . "' - AND user_id <> " . ANONYMOUS; - if ( !($result = $db->sql_query($sql)) ) - { - $error = TRUE; - $error_msg = $lang['No_such_user']; - } - - $to_userdata = $db->sql_fetchrow($result); - } - else - { - $error = TRUE; - $error_msg .= ( ( !empty($error_msg) ) ? '
    ' : '' ) . $lang['No_to_user']; - } - - $privmsg_subject = trim(strip_tags($HTTP_POST_VARS['subject'])); - if ( empty($privmsg_subject) ) - { - $error = TRUE; - $error_msg .= ( ( !empty($error_msg) ) ? '
    ' : '' ) . $lang['Empty_subject']; - } - - if ( !empty($HTTP_POST_VARS['message']) ) - { - if ( !$error ) - { - if ( $bbcode_on ) - { - $bbcode_uid = make_bbcode_uid(); - } - - $privmsg_message = prepare_message($HTTP_POST_VARS['message'], $html_on, $bbcode_on, $smilies_on, $bbcode_uid); - - } - } - else - { - $error = TRUE; - $error_msg .= ( ( !empty($error_msg) ) ? '
    ' : '' ) . $lang['Empty_message']; - } - } - - if ( $submit && !$error ) - { - // - // Has admin prevented user from sending PM's? - // - if ( !$userdata['user_allow_pm'] ) - { - $message = $lang['Cannot_send_privmsg']; - message_die(GENERAL_MESSAGE, $message); - } - - $msg_time = time(); - - if ( $mode != 'edit' ) - { - // - // See if recipient is at their inbox limit - // - $sql = "SELECT COUNT(privmsgs_id) AS inbox_items, MIN(privmsgs_date) AS oldest_post_time - FROM " . PRIVMSGS_TABLE . " - WHERE ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR privmsgs_type = " . PRIVMSGS_READ_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " ) - AND privmsgs_to_userid = " . $to_userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_MESSAGE, $lang['No_such_user']); - } - - $sql_priority = ( SQL_LAYER == 'mysql' ) ? 'LOW_PRIORITY' : ''; - - if ( $inbox_info = $db->sql_fetchrow($result) ) - { - if ( $inbox_info['inbox_items'] >= $board_config['max_inbox_privmsgs'] ) - { - $sql = "SELECT privmsgs_id FROM " . PRIVMSGS_TABLE . " - WHERE ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR privmsgs_type = " . PRIVMSGS_READ_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " ) - AND privmsgs_date = " . $inbox_info['oldest_post_time'] . " - AND privmsgs_to_userid = " . $to_userdata['user_id']; - if ( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not find oldest privmsgs (inbox)', '', __LINE__, __FILE__, $sql); - } - $old_privmsgs_id = $db->sql_fetchrow($result); - $old_privmsgs_id = $old_privmsgs_id['privmsgs_id']; - - $sql = "DELETE $sql_priority FROM " . PRIVMSGS_TABLE . " - WHERE privmsgs_id = $old_privmsgs_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete oldest privmsgs (inbox)'.$sql, '', __LINE__, __FILE__, $sql); - } - - $sql = "DELETE $sql_priority FROM " . PRIVMSGS_TEXT_TABLE . " - WHERE privmsgs_text_id = $old_privmsgs_id"; - if ( !$db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete oldest privmsgs text (inbox)', '', __LINE__, __FILE__, $sql); - } - } - } - - $sql_info = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type, privmsgs_subject, privmsgs_from_userid, privmsgs_to_userid, privmsgs_date, privmsgs_ip, privmsgs_enable_html, privmsgs_enable_bbcode, privmsgs_enable_smilies, privmsgs_attach_sig) - VALUES (" . PRIVMSGS_NEW_MAIL . ", '" . str_replace("\'", "''", $privmsg_subject) . "', " . $userdata['user_id'] . ", " . $to_userdata['user_id'] . ", $msg_time, '$user_ip', $html_on, $bbcode_on, $smilies_on, $attach_sig)"; - } - else - { - $sql_info = "UPDATE " . PRIVMSGS_TABLE . " - SET privmsgs_type = " . PRIVMSGS_NEW_MAIL . ", privmsgs_subject = '" . str_replace("\'", "''", $privmsg_subject) . "', privmsgs_from_userid = " . $userdata['user_id'] . ", privmsgs_to_userid = " . $to_userdata['user_id'] . ", privmsgs_date = $msg_time, privmsgs_ip = '$user_ip', privmsgs_enable_html = $html_on, privmsgs_enable_bbcode = $bbcode_on, privmsgs_enable_smilies = $smilies_on, privmsgs_attach_sig = $attach_sig - WHERE privmsgs_id = $privmsg_id"; - } - - if ( !($result = $db->sql_query($sql_info, BEGIN_TRANSACTION)) ) - { - message_die(GENERAL_ERROR, "Could not insert/update private message sent info.", "", __LINE__, __FILE__, $sql_info); - } - - if ( $mode != 'edit' ) - { - $privmsg_sent_id = $db->sql_nextid(); - - $sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_bbcode_uid, privmsgs_text) - VALUES ($privmsg_sent_id, '" . $bbcode_uid . "', '" . str_replace("\'", "''", $privmsg_message) . "')"; - } - else - { - $sql = "UPDATE " . PRIVMSGS_TEXT_TABLE . " - SET privmsgs_text = '" . str_replace("\'", "''", $privmsg_message) . "', privmsgs_bbcode_uid = '$bbcode_uid' - WHERE privmsgs_text_id = $privmsg_id"; - } - - if ( !$db->sql_query($sql, END_TRANSACTION) ) - { - message_die(GENERAL_ERROR, "Could not insert/update private message sent text.", "", __LINE__, __FILE__, $sql_info); - } - - if ( $mode != 'edit' ) - { - // - // Add to the users new pm counter - // - $sql = "UPDATE " . USERS_TABLE . " - SET user_new_privmsg = user_new_privmsg + 1, user_last_privmsg = " . time() . " - WHERE user_id = " . $to_userdata['user_id']; - if ( !$status = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not update private message new/read status for user', '', __LINE__, __FILE__, $sql); - } - - if ( $to_userdata['user_notify_pm'] && !empty($to_userdata['user_email']) && $to_userdata['user_active'] ) - { - $script_name = preg_replace('/^\/?(.*?)\/?$/', "\\1", trim($board_config['script_path'])); - $script_name = ( $script_name != '' ) ? $script_name . '/privmsg.'.$phpEx : 'privmsg.'.$phpEx; - $server_name = trim($board_config['server_name']); - $server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://'; - $server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/'; - - include($phpbb_root_path . 'includes/emailer.'.$phpEx); - $emailer = new emailer($board_config['smtp_delivery']); - - $emailer->from($board_config['board_email']); - $emailer->replyto($board_config['board_email']); - - $emailer->use_template('privmsg_notify', $to_userdata['user_lang']); - $emailer->email_address($to_userdata['user_email']); - $emailer->set_subject($lang['Notification_subject']); - - $emailer->assign_vars(array( - 'USERNAME' => $to_username, - 'SITENAME' => $board_config['sitename'], - 'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('
    ', "\n", "-- \n" . $board_config['board_email_sig']) : '', - - 'U_INBOX' => $server_protocol . $server_name . $server_port . $script_name . '?folder=inbox') - ); - - $emailer->send(); - $emailer->reset(); - } - } - - $template->assign_vars(array( - 'META' => '') - ); - - $msg = $lang['Message_sent'] . '

    ' . sprintf($lang['Click_return_inbox'], '', ' ') . '

    ' . sprintf($lang['Click_return_index'], '', ''); - - message_die(GENERAL_MESSAGE, $msg); - } - else if ( $preview || $refresh || $error ) - { - - // - // If we're previewing or refreshing then obtain the data - // passed to the script, process it a little, do some checks - // where neccessary, etc. - // - $to_username = (isset($HTTP_POST_VARS['username']) ) ? trim(htmlspecialchars(stripslashes($HTTP_POST_VARS['username']))) : ''; - - $privmsg_subject = ( isset($HTTP_POST_VARS['subject']) ) ? trim(strip_tags(stripslashes($HTTP_POST_VARS['subject']))) : ''; - $privmsg_message = ( isset($HTTP_POST_VARS['message']) ) ? trim($HTTP_POST_VARS['message']) : ''; - $privmsg_message = preg_replace('##si', '</textarea>', $privmsg_message); - - $user_sig = ( $board_config['allow_sig'] ) ? (($privmsg['privmsgs_type'] == PRIVMSGS_NEW_MAIL) ? $user_sig : $privmsg['user_sig']) : ''; - - $to_username = $privmsg['username']; - $to_userid = $privmsg['user_id']; - - } - else if ( $mode == 'reply' || $mode == 'quote' ) - { - - $sql = "SELECT pm.privmsgs_subject, pm.privmsgs_date, pmt.privmsgs_bbcode_uid, pmt.privmsgs_text, u.username, u.user_id - FROM " . PRIVMSGS_TABLE . " pm, " . PRIVMSGS_TEXT_TABLE . " pmt, " . USERS_TABLE . " u - WHERE pm.privmsgs_id = $privmsg_id - AND pmt.privmsgs_text_id = pm.privmsgs_id - AND pm.privmsgs_to_userid = " . $userdata['user_id'] . " - AND u.user_id = pm.privmsgs_from_userid"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain private message for editing', '', __LINE__, __FILE__, $sql); - } - - if ( !($privmsg = $db->sql_fetchrow($result)) ) - { - redirect(append_sid("privmsg.$phpEx?folder=$folder", true)); - } - - $privmsg_subject = ( ( !preg_match('/^Re:/', $privmsg['privmsgs_subject']) ) ? 'Re: ' : '' ) . $privmsg['privmsgs_subject']; - - $to_username = $privmsg['username']; - $to_userid = $privmsg['user_id']; - - if ( $mode == 'quote' ) - { - $privmsg_message = $privmsg['privmsgs_text']; - $privmsg_bbcode_uid = $privmsg['privmsgs_bbcode_uid']; - - $privmsg_message = preg_replace("/\:(([a-z0-9]:)?)$privmsg_bbcode_uid/si", '', $privmsg_message); - $privmsg_message = str_replace('
    ', "\n", $privmsg_message); - $privmsg_message = preg_replace('##si', '</textarea>', $privmsg_message); - - $msg_date = create_date($board_config['default_dateformat'], $privmsg['privmsgs_date'], $board_config['board_timezone']); - - $privmsg_message = '[quote="' . $to_username . '"]' . $privmsg_message . '[/quote]'; - - $mode = 'reply'; - } - } - } - - // - // Has admin prevented user from sending PM's? - // - if ( !$userdata['user_allow_pm'] && $mode != 'edit' ) - { - $message = $lang['Cannot_send_privmsg']; - message_die(GENERAL_MESSAGE, $message); - } - - // - // Start output, first preview, then errors then post form - // - $page_title = $lang['Send_private_message']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - if ( $preview && !$error ) - { - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); - - if ( $bbcode_on ) - { - $bbcode_uid = make_bbcode_uid(); - } - - $preview_message = stripslashes(prepare_message($privmsg_message, $html_on, $bbcode_on, $smilies_on, $bbcode_uid)); - $privmsg_message = stripslashes(preg_replace($html_entities_match, $html_entities_replace, $privmsg_message)); - - // - // Finalise processing as per viewtopic - // - if ( !$html_on ) - { - if ( $user_sig != '' || !$userdata['user_allowhtml'] ) - { - $user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $user_sig); - } - } - - if ( $attach_sig && $user_sig != '' && $userdata['user_sig_bbcode_uid'] ) - { - $user_sig = bbencode_second_pass($user_sig, $userdata['user_sig_bbcode_uid']); - } - - if ( $bbcode_on ) - { - $preview_message = bbencode_second_pass($preview_message, $bbcode_uid); - } - - if ( $attach_sig && $user_sig != '' ) - { - $preview_message = $preview_message . '

    _________________
    ' . $user_sig; - } - - if ( count($orig_word) ) - { - $preview_subject = preg_replace($orig_word, $replacement_word, $privmsg_subject); - $preview_message = preg_replace($orig_word, $replacement_word, $preview_message); - } - else - { - $preview_subject = $privmsg_subject; - } - - if ( $smilies_on ) - { - $preview_message = smilies_pass($preview_message); - } - - $preview_message = make_clickable($preview_message); - $preview_message = str_replace("\n", '
    ', $preview_message); - - $s_hidden_fields = ''; - $s_hidden_fields .= ''; - - if ( isset($privmsg_id) ) - { - $s_hidden_fields .= ''; - } - - $template->set_filenames(array( - "preview" => 'privmsgs_preview.tpl') - ); - - $template->assign_vars(array( - 'TOPIC_TITLE' => $preview_subject, - 'POST_SUBJECT' => $preview_subject, - 'MESSAGE_TO' => $to_username, - 'MESSAGE_FROM' => $userdata['username'], - 'POST_DATE' => create_date($board_config['default_dateformat'], time(), $board_config['board_timezone']), - 'MESSAGE' => $preview_message, - - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - - 'L_SUBJECT' => $lang['Subject'], - 'L_DATE' => $lang['Date'], - 'L_FROM' => $lang['From'], - 'L_TO' => $lang['To'], - 'L_PREVIEW' => $lang['Preview'], - 'L_POSTED' => $lang['Posted']) - ); - - $template->assign_var_from_handle('POST_PREVIEW_BOX', 'preview'); - } - - // - // Start error handling - // - if ($error) - { - $template->set_filenames(array( - 'reg_header' => 'error_body.tpl') - ); - $template->assign_vars(array( - 'ERROR_MESSAGE' => $error_msg) - ); - $template->assign_var_from_handle('ERROR_BOX', 'reg_header'); - } - - // - // Load templates - // - $template->set_filenames(array( - 'body' => 'posting_body.tpl') - ); - make_jumpbox('viewforum.'.$phpEx); - - // - // Enable extensions in posting_body - // - $template->assign_block_vars('switch_privmsg', array()); - - // - // HTML toggle selection - // - if ( $board_config['allow_html'] ) - { - $html_status = $lang['HTML_is_ON']; - $template->assign_block_vars('switch_html_checkbox', array()); - } - else - { - $html_status = $lang['HTML_is_OFF']; - } - - // - // BBCode toggle selection - // - if ( $board_config['allow_bbcode'] ) - { - $bbcode_status = $lang['BBCode_is_ON']; - $template->assign_block_vars('switch_bbcode_checkbox', array()); - } - else - { - $bbcode_status = $lang['BBCode_is_OFF']; - } - - // - // Smilies toggle selection - // - if ( $board_config['allow_smilies'] ) - { - $smilies_status = $lang['Smilies_are_ON']; - $template->assign_block_vars('switch_smilies_checkbox', array()); - } - else - { - $smilies_status = $lang['Smilies_are_OFF']; - } - - // - // Signature toggle selection - only show if - // the user has a signature - // - if ( $user_sig != '' ) - { - $template->assign_block_vars('switch_signature_checkbox', array()); - } - - if ( $mode == 'post' ) - { - $post_a = $lang['Send_a_new_message']; - } - else if ( $mode == 'reply' ) - { - $post_a = $lang['Send_a_reply']; - $mode = 'post'; - } - else if ( $mode == 'edit' ) - { - $post_a = $lang['Edit_message']; - } - - $s_hidden_fields = ''; - $s_hidden_fields .= ''; - if ( $mode == 'edit' ) - { - $s_hidden_fields .= ''; - } - - // - // Send smilies to template - // - generate_smilies('inline', PAGE_PRIVMSGS); - - $privmsg_subject = preg_replace($html_entities_match, $html_entities_replace, $privmsg_subject); - $privmsg_subject = str_replace('"', '"', $privmsg_subject); - - $template->assign_vars(array( - 'SUBJECT' => $privmsg_subject, - 'USERNAME' => $to_username, - 'MESSAGE' => $privmsg_message, - 'HTML_STATUS' => $html_status, - 'SMILIES_STATUS' => $smilies_status, - 'BBCODE_STATUS' => sprintf($bbcode_status, '', ''), - 'FORUM_NAME' => $lang['Private_Message'], - - 'BOX_NAME' => $l_box_name, - 'INBOX_IMG' => $inbox_img, - 'SENTBOX_IMG' => $sentbox_img, - 'OUTBOX_IMG' => $outbox_img, - 'SAVEBOX_IMG' => $savebox_img, - 'INBOX' => $inbox_url, - 'SENTBOX' => $sentbox_url, - 'OUTBOX' => $outbox_url, - 'SAVEBOX' => $savebox_url, - - 'L_SUBJECT' => $lang['Subject'], - 'L_MESSAGE_BODY' => $lang['Message_body'], - 'L_OPTIONS' => $lang['Options'], - 'L_SPELLCHECK' => $lang['Spellcheck'], - 'L_PREVIEW' => $lang['Preview'], - 'L_SUBMIT' => $lang['Submit'], - 'L_CANCEL' => $lang['Cancel'], - 'L_POST_A' => $post_a, - 'L_FIND_USERNAME' => $lang['Find_username'], - 'L_FIND' => $lang['Find'], - 'L_DISABLE_HTML' => $lang['Disable_HTML_pm'], - 'L_DISABLE_BBCODE' => $lang['Disable_BBCode_pm'], - 'L_DISABLE_SMILIES' => $lang['Disable_Smilies_pm'], - 'L_ATTACH_SIGNATURE' => $lang['Attach_signature'], - - 'L_BBCODE_B_HELP' => $lang['bbcode_b_help'], - 'L_BBCODE_I_HELP' => $lang['bbcode_i_help'], - 'L_BBCODE_U_HELP' => $lang['bbcode_u_help'], - 'L_BBCODE_Q_HELP' => $lang['bbcode_q_help'], - 'L_BBCODE_C_HELP' => $lang['bbcode_c_help'], - 'L_BBCODE_L_HELP' => $lang['bbcode_l_help'], - 'L_BBCODE_O_HELP' => $lang['bbcode_o_help'], - 'L_BBCODE_P_HELP' => $lang['bbcode_p_help'], - 'L_BBCODE_W_HELP' => $lang['bbcode_w_help'], - 'L_BBCODE_A_HELP' => $lang['bbcode_a_help'], - 'L_BBCODE_S_HELP' => $lang['bbcode_s_help'], - 'L_BBCODE_F_HELP' => $lang['bbcode_f_help'], - 'L_EMPTY_MESSAGE' => $lang['Empty_message'], - - 'L_FONT_COLOR' => $lang['Font_color'], - 'L_COLOR_DEFAULT' => $lang['color_default'], - 'L_COLOR_DARK_RED' => $lang['color_dark_red'], - 'L_COLOR_RED' => $lang['color_red'], - 'L_COLOR_ORANGE' => $lang['color_orange'], - 'L_COLOR_BROWN' => $lang['color_brown'], - 'L_COLOR_YELLOW' => $lang['color_yellow'], - 'L_COLOR_GREEN' => $lang['color_green'], - 'L_COLOR_OLIVE' => $lang['color_olive'], - 'L_COLOR_CYAN' => $lang['color_cyan'], - 'L_COLOR_BLUE' => $lang['color_blue'], - 'L_COLOR_DARK_BLUE' => $lang['color_dark_blue'], - 'L_COLOR_INDIGO' => $lang['color_indigo'], - 'L_COLOR_VIOLET' => $lang['color_violet'], - 'L_COLOR_WHITE' => $lang['color_white'], - 'L_COLOR_BLACK' => $lang['color_black'], - - 'L_FONT_SIZE' => $lang['Font_size'], - 'L_FONT_TINY' => $lang['font_tiny'], - 'L_FONT_SMALL' => $lang['font_small'], - 'L_FONT_NORMAL' => $lang['font_normal'], - 'L_FONT_LARGE' => $lang['font_large'], - 'L_FONT_HUGE' => $lang['font_huge'], - - 'L_BBCODE_CLOSE_TAGS' => $lang['Close_Tags'], - 'L_STYLES_TIP' => $lang['Styles_tip'], - - 'S_HTML_CHECKED' => ( !$html_on ) ? ' checked="checked"' : '', - 'S_BBCODE_CHECKED' => ( !$bbcode_on ) ? ' checked="checked"' : '', - 'S_SMILIES_CHECKED' => ( !$smilies_on ) ? ' checked="checked"' : '', - 'S_SIGNATURE_CHECKED' => ( $attach_sig ) ? ' checked="checked"' : '', - 'S_NAMES_SELECT' => $user_names_select, - 'S_HIDDEN_FORM_FIELDS' => $s_hidden_fields, - 'S_POST_ACTION' => append_sid("privmsg.$phpEx"), - - 'U_SEARCH_USER' => append_sid("search.$phpEx?mode=searchuser"), - 'U_VIEW_FORUM' => append_sid("privmsg.$phpEx")) - ); - - $template->pparse('body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); -} - -// -// Default page -// -if ( !$userdata['session_logged_in'] ) -{ - redirect(append_sid("login.$phpEx?redirect=privmsg.$phpEx&folder=inbox", true)); -} - -// -// Update unread status -// -$sql = "UPDATE " . USERS_TABLE . " - SET user_unread_privmsg = user_unread_privmsg + user_new_privmsg, user_new_privmsg = 0, user_last_privmsg = " . $userdata['session_start'] . " - WHERE user_id = " . $userdata['user_id']; -if ( !$db->sql_query($sql) ) -{ - message_die(GENERAL_ERROR, 'Could not update private message new/read status for user', '', __LINE__, __FILE__, $sql); -} - -$sql = "UPDATE " . PRIVMSGS_TABLE . " - SET privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " - WHERE privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - AND privmsgs_to_userid = " . $userdata['user_id']; -if ( !$db->sql_query($sql) ) -{ - message_die(GENERAL_ERROR, 'Could not update private message new/read status (2) for user', '', __LINE__, __FILE__, $sql); -} - -// -// Reset PM counters -// -$userdata['user_new_privmsg'] = 0; -$userdata['user_unread_privmsg'] = ( $userdata['user_new_privmsg'] + $userdata['user_unread_privmsg'] ); - -// -// Generate page -// -$page_title = $lang['Private_Messaging']; -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -// -// Load templates -// -$template->set_filenames(array( - 'body' => 'privmsgs_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$orig_word = array(); -$replacement_word = array(); -obtain_word_list($orig_word, $replacement_word); - -// -// New message -// -$post_new_mesg_url = '' . $lang['Send_a_new_message'] . ''; - -// -// General SQL to obtain messages -// -$sql_tot = "SELECT COUNT(privmsgs_id) AS total - FROM " . PRIVMSGS_TABLE . " "; -$sql = "SELECT pm.privmsgs_type, pm.privmsgs_id, pm.privmsgs_date, pm.privmsgs_subject, u.user_id, u.username - FROM " . PRIVMSGS_TABLE . " pm, " . USERS_TABLE . " u "; -switch( $folder ) -{ - case 'inbox': - $sql_tot .= "WHERE privmsgs_to_userid = " . $userdata['user_id'] . " - AND ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR privmsgs_type = " . PRIVMSGS_READ_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - - $sql .= "WHERE pm.privmsgs_to_userid = " . $userdata['user_id'] . " - AND u.user_id = pm.privmsgs_from_userid - AND ( pm.privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR pm.privmsgs_type = " . PRIVMSGS_READ_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - break; - - case 'outbox': - $sql_tot .= "WHERE privmsgs_from_userid = " . $userdata['user_id'] . " - AND ( privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - - $sql .= "WHERE pm.privmsgs_from_userid = " . $userdata['user_id'] . " - AND u.user_id = pm.privmsgs_to_userid - AND ( pm.privmsgs_type = " . PRIVMSGS_NEW_MAIL . " - OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )"; - break; - - case 'sentbox': - $sql_tot .= "WHERE privmsgs_from_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SENT_MAIL; - - $sql .= "WHERE pm.privmsgs_from_userid = " . $userdata['user_id'] . " - AND u.user_id = pm.privmsgs_to_userid - AND pm.privmsgs_type = " . PRIVMSGS_SENT_MAIL; - break; - - case 'savebox': - $sql_tot .= "WHERE ( ( privmsgs_to_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) - OR ( privmsgs_from_userid = " . $userdata['user_id'] . " - AND privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . ") )"; - - $sql .= "WHERE u.user_id = pm.privmsgs_from_userid - AND ( ( pm.privmsgs_to_userid = " . $userdata['user_id'] . " - AND pm.privmsgs_type = " . PRIVMSGS_SAVED_IN_MAIL . " ) - OR ( pm.privmsgs_from_userid = " . $userdata['user_id'] . " - AND pm.privmsgs_type = " . PRIVMSGS_SAVED_OUT_MAIL . " ) )"; - break; - - default: - message_die(GENERAL_MESSAGE, $lang['No_such_folder']); - break; -} - -// -// Show messages over previous x days/months -// -if ( $submit_msgdays && ( !empty($HTTP_POST_VARS['msgdays']) || !empty($HTTP_GET_VARS['msgdays']) ) ) -{ - $msg_days = ( !empty($HTTP_POST_VARS['msgdays']) ) ? intval($HTTP_POST_VARS['msgdays']) : intval($HTTP_GET_VARS['msgdays']); - $min_msg_time = time() - ($msg_days * 86400); - - $limit_msg_time_total = " AND privmsgs_date > $min_msg_time"; - $limit_msg_time = " AND pm.privmsgs_date > $min_msg_time "; - - if ( !empty($HTTP_POST_VARS['msgdays']) ) - { - $start = 0; - } -} -else -{ - $limit_msg_time = $limit_msg_time_total = ''; - $msg_days = 0; -} - -$sql .= $limit_msg_time . " ORDER BY pm.privmsgs_date DESC LIMIT $start, " . $board_config['topics_per_page']; -$sql_all_tot = $sql_tot; -$sql_tot .= $limit_msg_time_total; - -// -// Get messages -// -if ( !($result = $db->sql_query($sql_tot)) ) -{ - message_die(GENERAL_ERROR, 'Could not query private message information', '', __LINE__, __FILE__, $sql_tot); -} - -$pm_total = ( $row = $db->sql_fetchrow($result) ) ? $row['total'] : 0; - -if ( !($result = $db->sql_query($sql_all_tot)) ) -{ - message_die(GENERAL_ERROR, 'Could not query private message information', '', __LINE__, __FILE__, $sql_tot); -} - -$pm_all_total = ( $row = $db->sql_fetchrow($result) ) ? $row['total'] : 0; - -// -// Build select box -// -$previous_days = array(0, 1, 7, 14, 30, 90, 180, 364); -$previous_days_text = array($lang['All_Posts'], $lang['1_Day'], $lang['7_Days'], $lang['2_Weeks'], $lang['1_Month'], $lang['3_Months'], $lang['6_Months'], $lang['1_Year']); - -$select_msg_days = ''; -for($i = 0; $i < count($previous_days); $i++) -{ - $selected = ( $msg_days == $previous_days[$i] ) ? ' selected="selected"' : ''; - $select_msg_days .= ''; -} - -// -// Define correct icons -// -switch ( $folder ) -{ - case 'inbox': - $l_box_name = $lang['Inbox']; - break; - case 'outbox': - $l_box_name = $lang['Outbox']; - break; - case 'savebox': - $l_box_name = $lang['Savebox']; - break; - case 'sentbox': - $l_box_name = $lang['Sentbox']; - break; -} -$post_pm = append_sid("privmsg.$phpEx?mode=post"); -$post_pm_img = '' . $lang['Post_new_pm'] . ''; -$post_pm = '' . $lang['Post_new_pm'] . ''; - -// -// Output data for inbox status -// -if ( $folder != 'outbox' ) -{ - $inbox_limit_pct = ( $board_config['max_' . $folder . '_privmsgs'] > 0 ) ? round(( $pm_all_total / $board_config['max_' . $folder . '_privmsgs'] ) * 100) : 100; - $inbox_limit_img_length = ( $board_config['max_' . $folder . '_privmsgs'] > 0 ) ? round(( $pm_all_total / $board_config['max_' . $folder . '_privmsgs'] ) * $board_config['privmsg_graphic_length']) : $board_config['privmsg_graphic_length']; - $inbox_limit_remain = ( $board_config['max_' . $folder . '_privmsgs'] > 0 ) ? $board_config['max_' . $folder . '_privmsgs'] - $pm_all_total : 0; - - $template->assign_block_vars('switch_box_size_notice', array()); - - switch( $folder ) - { - case 'inbox': - $l_box_size_status = sprintf($lang['Inbox_size'], $inbox_limit_pct); - break; - case 'sentbox': - $l_box_size_status = sprintf($lang['Sentbox_size'], $inbox_limit_pct); - break; - case 'savebox': - $l_box_size_status = sprintf($lang['Savebox_size'], $inbox_limit_pct); - break; - default: - $l_box_size_status = ''; - break; - } -} - -// -// Dump vars to template -// -$template->assign_vars(array( - 'BOX_NAME' => $l_box_name, - 'INBOX_IMG' => $inbox_img, - 'SENTBOX_IMG' => $sentbox_img, - 'OUTBOX_IMG' => $outbox_img, - 'SAVEBOX_IMG' => $savebox_img, - 'INBOX' => $inbox_url, - 'SENTBOX' => $sentbox_url, - 'OUTBOX' => $outbox_url, - 'SAVEBOX' => $savebox_url, - - 'POST_PM_IMG' => $post_pm_img, - 'POST_PM' => $post_pm, - - 'INBOX_LIMIT_IMG_WIDTH' => $inbox_limit_img_length, - 'INBOX_LIMIT_PERCENT' => $inbox_limit_pct, - - 'BOX_SIZE_STATUS' => $l_box_size_status, - - 'L_INBOX' => $lang['Inbox'], - 'L_OUTBOX' => $lang['Outbox'], - 'L_SENTBOX' => $lang['Sent'], - 'L_SAVEBOX' => $lang['Saved'], - 'L_MARK' => $lang['Mark'], - 'L_FLAG' => $lang['Flag'], - 'L_SUBJECT' => $lang['Subject'], - 'L_DATE' => $lang['Date'], - 'L_DISPLAY_MESSAGES' => $lang['Display_messages'], - 'L_FROM_OR_TO' => ( $folder == 'inbox' || $folder == 'savebox' ) ? $lang['From'] : $lang['To'], - 'L_MARK_ALL' => $lang['Mark_all'], - 'L_UNMARK_ALL' => $lang['Unmark_all'], - 'L_DELETE_MARKED' => $lang['Delete_marked'], - 'L_DELETE_ALL' => $lang['Delete_all'], - 'L_SAVE_MARKED' => $lang['Save_marked'], - - 'S_PRIVMSGS_ACTION' => append_sid("privmsg.$phpEx?folder=$folder"), - 'S_HIDDEN_FIELDS' => '', - 'S_POST_NEW_MSG' => $post_new_mesg_url, - 'S_SELECT_MSG_DAYS' => $select_msg_days, - - 'U_POST_NEW_TOPIC' => append_sid("privmsg.$phpEx?mode=post")) -); - -// -// Okay, let's build the correct folder -// -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not query private messages', '', __LINE__, __FILE__, $sql); -} - -if ( $row = $db->sql_fetchrow($result) ) -{ - $i = 0; - do - { - $privmsg_id = $row['privmsgs_id']; - - $flag = $row['privmsgs_type']; - - $icon_flag = ( $flag == PRIVMSGS_NEW_MAIL || $flag == PRIVMSGS_UNREAD_MAIL ) ? $images['pm_unreadmsg'] : $images['pm_readmsg']; - $icon_flag_alt = ( $flag == PRIVMSGS_NEW_MAIL || $flag == PRIVMSGS_UNREAD_MAIL ) ? $lang['Unread_message'] : $lang['Read_message']; - - $msg_userid = $row['user_id']; - $msg_username = $row['username']; - - $u_from_user_profile = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$msg_userid"); - - $msg_subject = $row['privmsgs_subject']; - - if ( count($orig_word) ) - { - $msg_subject = preg_replace($orig_word, $replacement_word, $msg_subject); - } - - $u_subject = append_sid("privmsg.$phpEx?folder=$folder&mode=read&" . POST_POST_URL . "=$privmsg_id"); - - $msg_date = create_date($board_config['default_dateformat'], $row['privmsgs_date'], $board_config['board_timezone']); - - if ( $flag == PRIVMSGS_NEW_MAIL && $folder == 'inbox' ) - { - $msg_subject = '' . $msg_subject . ''; - $msg_date = '' . $msg_date . ''; - $msg_username = '' . $msg_username . ''; - } - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - $i++; - - $template->assign_block_vars('listrow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'FROM' => $msg_username, - 'SUBJECT' => $msg_subject, - 'DATE' => $msg_date, - 'PRIVMSG_FOLDER_IMG' => $icon_flag, - - 'L_PRIVMSG_FOLDER_ALT' => $icon_flag_alt, - - 'S_MARK_ID' => $privmsg_id, - - 'U_READ' => $u_subject, - 'U_FROM_USER_PROFILE' => $u_from_user_profile) - ); - } - while( $row = $db->sql_fetchrow($result) ); - - $template->assign_vars(array( - 'PAGINATION' => generate_pagination("privmsg.$phpEx?folder=$folder", $pm_total, $board_config['topics_per_page'], $start), - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( $pm_total / $board_config['topics_per_page'] )), - - 'L_GOTO_PAGE' => $lang['Goto_page']) - ); - -} -else -{ - $template->assign_vars(array( - 'L_NO_MESSAGES' => $lang['No_messages_folder']) - ); - - $template->assign_block_vars("switch_no_messages", array() ); -} - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> diff --git a/phpBB2_old/profile.php b/phpBB2_old/profile.php deleted file mode 100644 index 275dd7e..0000000 --- a/phpBB2_old/profile.php +++ /dev/null @@ -1,133 +0,0 @@ - 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/'; - -$server_url = $server_protocol . $server_name . $server_port . $script_name; - -// ----------------------- -// Page specific functions -// -function gen_rand_string($hash) -{ - $chars = array( 'a', 'A', 'b', 'B', 'c', 'C', 'd', 'D', 'e', 'E', 'f', 'F', 'g', 'G', 'h', 'H', 'i', 'I', 'j', 'J', 'k', 'K', 'l', 'L', 'm', 'M', 'n', 'N', 'o', 'O', 'p', 'P', 'q', 'Q', 'r', 'R', 's', 'S', 't', 'T', 'u', 'U', 'v', 'V', 'w', 'W', 'x', 'X', 'y', 'Y', 'z', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0'); - - $max_chars = count($chars) - 1; - srand( (double) microtime()*1000000); - - $rand_str = ''; - for($i = 0; $i < 8; $i++) - { - $rand_str = ( $i == 0 ) ? $chars[rand(0, $max_chars)] : $rand_str . $chars[rand(0, $max_chars)]; - } - - return ( $hash ) ? md5($rand_str) : $rand_str; -} -// -// End page specific functions -// --------------------------- - -// -// Start of program proper -// -if ( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) -{ - $mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode']; - $mode = htmlspecialchars($mode); - - if ( $mode == 'viewprofile' ) - { - include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx); - exit; - } - else if ( $mode == 'editprofile' || $mode == 'register' ) - { - if ( !$userdata['session_logged_in'] && $mode == 'editprofile' ) - { - redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editprofile", true)); - } - - include($phpbb_root_path . 'includes/usercp_register.'.$phpEx); - exit; - } - else if ( $mode == 'confirm' ) - { - // Visual Confirmation - if ( $userdata['session_logged_in'] ) - { - exit; - } - - include($phpbb_root_path . 'includes/usercp_confirm.'.$phpEx); - exit; - } - else if ( $mode == 'sendpassword' ) - { - include($phpbb_root_path . 'includes/usercp_sendpasswd.'.$phpEx); - exit; - } - else if ( $mode == 'activate' ) - { - include($phpbb_root_path . 'includes/usercp_activate.'.$phpEx); - exit; - } - else if ( $mode == 'email' ) - { - include($phpbb_root_path . 'includes/usercp_email.'.$phpEx); - exit; - } -} - -redirect(append_sid("index.$phpEx", true)); - -?> \ No newline at end of file diff --git a/phpBB2_old/search.php b/phpBB2_old/search.php deleted file mode 100644 index 4f80665..0000000 --- a/phpBB2_old/search.php +++ /dev/null @@ -1,1411 +0,0 @@ -= " . $userdata['user_lastvisit']; - } - else - { - redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=newposts", true)); - } - - $show_results = 'topics'; - $sort_by = 0; - $sort_dir = 'DESC'; - } - else if ( $search_id == 'egosearch' ) - { - if ( $userdata['session_logged_in'] ) - { - $sql = "SELECT post_id - FROM " . POSTS_TABLE . " - WHERE poster_id = " . $userdata['user_id']; - } - else - { - redirect(append_sid("login.$phpEx?redirect=search.$phpEx&search_id=egosearch", true)); - } - - $show_results = 'topics'; - $sort_by = 0; - $sort_dir = 'DESC'; - } - else - { - $search_author = str_replace('*', '%', trim($search_author)); - - $sql = "SELECT user_id - FROM " . USERS_TABLE . " - WHERE username LIKE '" . str_replace("\'", "''", $search_author) . "'"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Couldn't obtain list of matching users (searching for: $search_author)", "", __LINE__, __FILE__, $sql); - } - - $matching_userids = ''; - if ( $row = $db->sql_fetchrow($result) ) - { - do - { - $matching_userids .= ( ( $matching_userids != '' ) ? ', ' : '' ) . $row['user_id']; - } - while( $row = $db->sql_fetchrow($result) ); - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_search_match']); - } - - $sql = "SELECT post_id - FROM " . POSTS_TABLE . " - WHERE poster_id IN ($matching_userids)"; - - if ($search_time) - { - $sql .= " AND post_time >= " . $search_time; - } - } - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain matched posts list', '', __LINE__, __FILE__, $sql); - } - - $search_ids = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $search_ids[] = $row['post_id']; - } - $db->sql_freeresult($result); - - $total_match_count = count($search_ids); - - } - else if ( $search_keywords != '' ) - { - $stopword_array = @file($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/search_stopwords.txt'); - $synonym_array = @file($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/search_synonyms.txt'); - - $split_search = array(); - $split_search = ( !strstr($multibyte_charset, $lang['ENCODING']) ) ? split_words(clean_words('search', stripslashes($search_keywords), $stopword_array, $synonym_array), 'search') : split(' ', $search_keywords); - - $search_msg_only = ( !$search_fields ) ? "AND m.title_match = 0" : ( ( strstr($multibyte_charset, $lang['ENCODING']) ) ? '' : '' ); - - $word_count = 0; - $current_match_type = 'or'; - - $word_match = array(); - $result_list = array(); - - for($i = 0; $i < count($split_search); $i++) - { - switch ( $split_search[$i] ) - { - case 'and': - $current_match_type = 'and'; - break; - - case 'or': - $current_match_type = 'or'; - break; - - case 'not': - $current_match_type = 'not'; - break; - - default: - if ( !empty($search_terms) ) - { - $current_match_type = 'and'; - } - - if ( !strstr($multibyte_charset, $lang['ENCODING']) ) - { - $match_word = str_replace('*', '%', $split_search[$i]); - $sql = "SELECT m.post_id - FROM " . SEARCH_WORD_TABLE . " w, " . SEARCH_MATCH_TABLE . " m - WHERE w.word_text LIKE '$match_word' - AND m.word_id = w.word_id - AND w.word_common <> 1 - $search_msg_only"; - } - else - { - $match_word = addslashes('%' . str_replace('*', '', $split_search[$i]) . '%'); - $search_msg_only = ( $search_fields ) ? "OR post_subject LIKE '$match_word'" : ''; - $sql = "SELECT post_id - FROM " . POSTS_TEXT_TABLE . " - WHERE post_text LIKE '$match_word' - $search_msg_only"; - } - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain matched posts list', '', __LINE__, __FILE__, $sql); - } - - $row = array(); - while( $temp_row = $db->sql_fetchrow($result) ) - { - $row[$temp_row['post_id']] = 1; - - if ( !$word_count ) - { - $result_list[$temp_row['post_id']] = 1; - } - else if ( $current_match_type == 'or' ) - { - $result_list[$temp_row['post_id']] = 1; - } - else if ( $current_match_type == 'not' ) - { - $result_list[$temp_row['post_id']] = 0; - } - } - - if ( $current_match_type == 'and' && $word_count ) - { - @reset($result_list); - while( list($post_id, $match_count) = @each($result_list) ) - { - if ( !$row[$post_id] ) - { - $result_list[$post_id] = 0; - } - } - } - - $word_count++; - - $db->sql_freeresult($result); - } - } - - @reset($result_list); - - $search_ids = array(); - while( list($post_id, $matches) = each($result_list) ) - { - if ( $matches ) - { - $search_ids[] = $post_id; - } - } - - unset($result_list); - $total_match_count = count($search_ids); - } - - // - // If user is logged in then we'll check to see which (if any) private - // forums they are allowed to view and include them in the search. - // - // If not logged in we explicitly prevent searching of private forums - // - $auth_sql = ''; - if ( $search_forum != -1 ) - { - $is_auth = auth(AUTH_READ, $search_forum, $userdata); - - if ( !$is_auth['auth_read'] ) - { - message_die(GENERAL_MESSAGE, $lang['No_searchable_forums']); - } - - $auth_sql = "f.forum_id = $search_forum"; - } - else - { - $is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata); - - if ( $search_cat != -1 ) - { - $auth_sql = "f.cat_id = $search_cat"; - } - - $ignore_forum_sql = ''; - while( list($key, $value) = each($is_auth_ary) ) - { - if ( !$value['auth_read'] ) - { - $ignore_forum_sql .= ( ( $ignore_forum_sql != '' ) ? ', ' : '' ) . $key; - } - } - - if ( $ignore_forum_sql != '' ) - { - $auth_sql .= ( $auth_sql != '' ) ? " AND f.forum_id NOT IN ($ignore_forum_sql) " : "f.forum_id NOT IN ($ignore_forum_sql) "; - } - } - - // - // Author name search - // - if ( $search_author != '' ) - { - $search_author = str_replace('*', '%', trim(str_replace("\'", "''", $search_author))); - } - - if ( $total_match_count ) - { - if ( $show_results == 'topics' ) - { - // - // This one is a beast, try to seperate it a bit (workaround for connection timeouts) - // - $search_id_chunks = array(); - $count = 0; - $chunk = 0; - - if (count($search_ids) > $limiter) - { - for ($i = 0; $i < count($search_ids); $i++) - { - if ($count == $limiter) - { - $chunk++; - $count = 0; - } - - $search_id_chunks[$chunk][$count] = $search_ids[$i]; - $count++; - } - } - else - { - $search_id_chunks[0] = $search_ids; - } - - $search_ids = array(); - - for ($i = 0; $i < count($search_id_chunks); $i++) - { - $where_sql = ''; - - if ( $search_time ) - { - $where_sql .= ( $search_author == '' && $auth_sql == '' ) ? " AND post_time >= $search_time " : " AND p.post_time >= $search_time "; - } - - if ( $search_author == '' && $auth_sql == '' ) - { - $sql = "SELECT topic_id - FROM " . POSTS_TABLE . " - WHERE post_id IN (" . implode(", ", $search_id_chunks[$i]) . ") - $where_sql - GROUP BY topic_id"; - } - else - { - $from_sql = POSTS_TABLE . " p"; - - if ( $search_author != '' ) - { - $from_sql .= ", " . USERS_TABLE . " u"; - $where_sql .= " AND u.user_id = p.poster_id AND u.username LIKE '$search_author' "; - } - - if ( $auth_sql != '' ) - { - $from_sql .= ", " . FORUMS_TABLE . " f"; - $where_sql .= " AND f.forum_id = p.forum_id AND $auth_sql"; - } - - $sql = "SELECT p.topic_id - FROM $from_sql - WHERE p.post_id IN (" . implode(", ", $search_id_chunks[$i]) . ") - $where_sql - GROUP BY p.topic_id"; - } - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain topic ids', '', __LINE__, __FILE__, $sql); - } - - while ($row = $db->sql_fetchrow($result)) - { - $search_ids[] = $row['topic_id']; - } - $db->sql_freeresult($result); - } - - $total_match_count = sizeof($search_ids); - - } - else if ( $search_author != '' || $search_time || $auth_sql != '' ) - { - $search_id_chunks = array(); - $count = 0; - $chunk = 0; - - if (count($search_ids) > $limiter) - { - for ($i = 0; $i < count($search_ids); $i++) - { - if ($count == $limiter) - { - $chunk++; - $count = 0; - } - - $search_id_chunks[$chunk][$count] = $search_ids[$i]; - $count++; - } - } - else - { - $search_id_chunks[0] = $search_ids; - } - - $search_ids = array(); - - for ($i = 0; $i < count($search_id_chunks); $i++) - { - $where_sql = ( $search_author == '' && $auth_sql == '' ) ? 'post_id IN (' . implode(', ', $search_id_chunks[$i]) . ')' : 'p.post_id IN (' . implode(', ', $search_id_chunks[$i]) . ')'; - $select_sql = ( $search_author == '' && $auth_sql == '' ) ? 'post_id' : 'p.post_id'; - $from_sql = ( $search_author == '' && $auth_sql == '' ) ? POSTS_TABLE : POSTS_TABLE . ' p'; - - if ( $search_time ) - { - $where_sql .= ( $search_author == '' && $auth_sql == '' ) ? " AND post_time >= $search_time " : " AND p.post_time >= $search_time"; - } - - if ( $auth_sql != '' ) - { - $from_sql .= ", " . FORUMS_TABLE . " f"; - $where_sql .= " AND f.forum_id = p.forum_id AND $auth_sql"; - } - - if ( $search_author != '' ) - { - $from_sql .= ", " . USERS_TABLE . " u"; - $where_sql .= " AND u.user_id = p.poster_id AND u.username LIKE '$search_author'"; - } - - $sql = "SELECT " . $select_sql . " - FROM $from_sql - WHERE $where_sql"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain post ids', '', __LINE__, __FILE__, $sql); - } - - while( $row = $db->sql_fetchrow($result) ) - { - $search_ids[] = $row['post_id']; - } - $db->sql_freeresult($result); - } - - $total_match_count = count($search_ids); - } - } - else if ( $search_id == 'unanswered' ) - { - if ( $auth_sql != '' ) - { - $sql = "SELECT t.topic_id, f.forum_id - FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f - WHERE t.topic_replies = 0 - AND t.forum_id = f.forum_id - AND t.topic_moved_id = 0 - AND $auth_sql"; - } - else - { - $sql = "SELECT topic_id - FROM " . TOPICS_TABLE . " - WHERE topic_replies = 0 - AND topic_moved_id = 0"; - } - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain post ids', '', __LINE__, __FILE__, $sql); - } - - $search_ids = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $search_ids[] = $row['topic_id']; - } - $db->sql_freeresult($result); - - $total_match_count = count($search_ids); - - // - // Basic requirements - // - $show_results = 'topics'; - $sort_by = 0; - $sort_dir = 'DESC'; - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_search_match']); - } - - // - // Finish building query (for all combinations) - // and run it ... - // - $sql = "SELECT session_id - FROM " . SESSIONS_TABLE; - if ( $result = $db->sql_query($sql) ) - { - $delete_search_ids = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $delete_search_ids[] = "'" . $row['session_id'] . "'"; - } - - if ( count($delete_search_ids) ) - { - $sql = "DELETE FROM " . SEARCH_TABLE . " - WHERE session_id NOT IN (" . implode(", ", $delete_search_ids) . ")"; - if ( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not delete old search id sessions', '', __LINE__, __FILE__, $sql); - } - } - } - - // - // Store new result data - // - $search_results = implode(', ', $search_ids); - $per_page = ( $show_results == 'posts' ) ? $board_config['posts_per_page'] : $board_config['topics_per_page']; - - // - // Combine both results and search data (apart from original query) - // so we can serialize it and place it in the DB - // - $store_search_data = array(); - - // - // Limit the character length (and with this the results displayed at all following pages) to prevent - // truncated result arrays. Normally, search results above 12000 are affected. - // - to include or not to include - /* - $max_result_length = 60000; - if (strlen($search_results) > $max_result_length) - { - $search_results = substr($search_results, 0, $max_result_length); - $search_results = substr($search_results, 0, strrpos($search_results, ',')); - $total_match_count = count(explode(', ', $search_results)); - } - */ - - for($i = 0; $i < count($store_vars); $i++) - { - $store_search_data[$store_vars[$i]] = $$store_vars[$i]; - } - - $result_array = serialize($store_search_data); - unset($store_search_data); - - mt_srand ((double) microtime() * 1000000); - $search_id = mt_rand(); - - $sql = "UPDATE " . SEARCH_TABLE . " - SET search_id = $search_id, search_array = '" . str_replace("\'", "''", $result_array) . "' - WHERE session_id = '" . $userdata['session_id'] . "'"; - if ( !($result = $db->sql_query($sql)) || !$db->sql_affectedrows() ) - { - $sql = "INSERT INTO " . SEARCH_TABLE . " (search_id, session_id, search_array) - VALUES($search_id, '" . $userdata['session_id'] . "', '" . str_replace("\'", "''", $result_array) . "')"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not insert search results', '', __LINE__, __FILE__, $sql); - } - } - } - else - { - $search_id = intval($search_id); - if ( $search_id ) - { - $sql = "SELECT search_array - FROM " . SEARCH_TABLE . " - WHERE search_id = $search_id - AND session_id = '". $userdata['session_id'] . "'"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain search results', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $search_data = unserialize($row['search_array']); - for($i = 0; $i < count($store_vars); $i++) - { - $$store_vars[$i] = $search_data[$store_vars[$i]]; - } - } - } - } - - // - // Look up data ... - // - if ( $search_results != '' ) - { - if ( $show_results == 'posts' ) - { - $sql = "SELECT pt.post_text, pt.bbcode_uid, pt.post_subject, p.*, f.forum_id, f.forum_name, t.*, u.username, u.user_id, u.user_sig, u.user_sig_bbcode_uid - FROM " . FORUMS_TABLE . " f, " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . POSTS_TEXT_TABLE . " pt - WHERE p.post_id IN ($search_results) - AND pt.post_id = p.post_id - AND f.forum_id = p.forum_id - AND p.topic_id = t.topic_id - AND p.poster_id = u.user_id"; - } - else - { - $sql = "SELECT t.*, f.forum_id, f.forum_name, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time - FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u2 - WHERE t.topic_id IN ($search_results) - AND t.topic_poster = u.user_id - AND f.forum_id = t.forum_id - AND p.post_id = t.topic_first_post_id - AND p2.post_id = t.topic_last_post_id - AND u2.user_id = p2.poster_id"; - } - - $per_page = ( $show_results == 'posts' ) ? $board_config['posts_per_page'] : $board_config['topics_per_page']; - - $sql .= " ORDER BY "; - switch ( $sort_by ) - { - case 1: - $sql .= ( $show_results == 'posts' ) ? 'pt.post_subject' : 't.topic_title'; - break; - case 2: - $sql .= 't.topic_title'; - break; - case 3: - $sql .= 'u.username'; - break; - case 4: - $sql .= 'f.forum_id'; - break; - default: - $sql .= ( $show_results == 'posts' ) ? 'p.post_time' : 'p2.post_time'; - break; - } - $sql .= " $sort_dir LIMIT $start, " . $per_page; - - if ( !$result = $db->sql_query($sql) ) - { - message_die(GENERAL_ERROR, 'Could not obtain search results', '', __LINE__, __FILE__, $sql); - } - - $searchset = array(); - while( $row = $db->sql_fetchrow($result) ) - { - $searchset[] = $row; - } - - $db->sql_freeresult($result); - - // - // Define censored word matches - // - $orig_word = array(); - $replacement_word = array(); - obtain_word_list($orig_word, $replacement_word); - - // - // Output header - // - $page_title = $lang['Search']; - include($phpbb_root_path . 'includes/page_header.'.$phpEx); - - if ( $show_results == 'posts' ) - { - $template->set_filenames(array( - 'body' => 'search_results_posts.tpl') - ); - } - else - { - $template->set_filenames(array( - 'body' => 'search_results_topics.tpl') - ); - } - make_jumpbox('viewforum.'.$phpEx); - - $l_search_matches = ( $total_match_count == 1 ) ? sprintf($lang['Found_search_match'], $total_match_count) : sprintf($lang['Found_search_matches'], $total_match_count); - - $template->assign_vars(array( - 'L_SEARCH_MATCHES' => $l_search_matches, - 'L_TOPIC' => $lang['Topic']) - ); - - $highlight_active = ''; - $highlight_match = array(); - for($j = 0; $j < count($split_search); $j++ ) - { - $split_word = $split_search[$j]; - - if ( $split_word != 'and' && $split_word != 'or' && $split_word != 'not' ) - { - $highlight_match[] = '#\b(' . str_replace("*", "([\w]+)?", $split_word) . ')\b#is'; - $highlight_active .= " " . $split_word; - - for ($k = 0; $k < count($synonym_array); $k++) - { - list($replace_synonym, $match_synonym) = split(' ', trim(strtolower($synonym_array[$k]))); - - if ( $replace_synonym == $split_word ) - { - $highlight_match[] = '#\b(' . str_replace("*", "([\w]+)?", $replace_synonym) . ')\b#is'; - $highlight_active .= ' ' . $match_synonym; - } - } - } - } - - $highlight_active = urlencode(trim($highlight_active)); - - $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array(); - $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array(); - - for($i = 0; $i < count($searchset); $i++) - { - $forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $searchset[$i]['forum_id']); - $topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $searchset[$i]['topic_id'] . "&highlight=$highlight_active"); - $post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['post_id'] . "&highlight=$highlight_active") . '#' . $searchset[$i]['post_id']; - - $post_date = create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); - - $message = $searchset[$i]['post_text']; - $topic_title = $searchset[$i]['topic_title']; - - $forum_id = $searchset[$i]['forum_id']; - $topic_id = $searchset[$i]['topic_id']; - - if ( $show_results == 'posts' ) - { - if ( isset($return_chars) ) - { - $bbcode_uid = $searchset[$i]['bbcode_uid']; - - // - // If the board has HTML off but the post has HTML - // on then we process it, else leave it alone - // - if ( $return_chars != -1 ) - { - $message = strip_tags($message); - $message = preg_replace("/\[.*?:$bbcode_uid:?.*?\]/si", '', $message); - $message = preg_replace('/\[url\]|\[\/url\]/si', '', $message); - $message = ( strlen($message) > $return_chars ) ? substr($message, 0, $return_chars) . ' ...' : $message; - } - else - { - if ( !$board_config['allow_html'] ) - { - if ( $postrow[$i]['enable_html'] ) - { - $message = preg_replace('#(<)([\/]?.*?)(>)#is', '<\\2>', $message); - } - } - - if ( $bbcode_uid != '' ) - { - $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message); - } - - $message = make_clickable($message); - - if ( $highlight_active ) - { - if ( preg_match('/<.*>/', $message) ) - { - $message = preg_replace($highlight_match, '\1', $message); - - $end_html = 0; - $start_html = 1; - $temp_message = ''; - $message = ' ' . $message . ' '; - - while( $start_html = strpos($message, '<', $start_html) ) - { - $grab_length = $start_html - $end_html - 1; - $temp_message .= substr($message, $end_html + 1, $grab_length); - - if ( $end_html = strpos($message, '>', $start_html) ) - { - $length = $end_html - $start_html + 1; - $hold_string = substr($message, $start_html, $length); - - if ( strrpos(' ' . $hold_string, '<') != 1 ) - { - $end_html = $start_html + 1; - $end_counter = 1; - - while ( $end_counter && $end_html < strlen($message) ) - { - if ( substr($message, $end_html, 1) == '>' ) - { - $end_counter--; - } - else if ( substr($message, $end_html, 1) == '<' ) - { - $end_counter++; - } - - $end_html++; - } - - $length = $end_html - $start_html + 1; - $hold_string = substr($message, $start_html, $length); - $hold_string = str_replace('', '', $hold_string); - $hold_string = str_replace('', '', $hold_string); - } - else if ( $hold_string == '' ) - { - $hold_string = str_replace('', '', $hold_string); - } - else if ( $hold_string == '' ) - { - $hold_string = str_replace('', '', $hold_string); - } - - $temp_message .= $hold_string; - - $start_html += $length; - } - else - { - $start_html = strlen($message); - } - } - - $grab_length = strlen($message) - $end_html - 1; - $temp_message .= substr($message, $end_html + 1, $grab_length); - - $message = trim($temp_message); - } - else - { - $message = preg_replace($highlight_match, '\1', $message); - } - } - } - - if ( count($orig_word) ) - { - $topic_title = preg_replace($orig_word, $replacement_word, $topic_title); - $post_subject = ( $searchset[$i]['post_subject'] != "" ) ? preg_replace($orig_word, $replacement_word, $searchset[$i]['post_subject']) : $topic_title; - - $message = preg_replace($orig_word, $replacement_word, $message); - } - else - { - $post_subject = ( $searchset[$i]['post_subject'] != '' ) ? $searchset[$i]['post_subject'] : $topic_title; - } - - if ($board_config['allow_smilies'] && $searchset[$i]['enable_smilies']) - { - $message = smilies_pass($message); - } - - $message = str_replace("\n", '
    ', $message); - - } - - $poster = ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '' : ''; - $poster .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? $searchset[$i]['username'] : ( ( $searchset[$i]['post_username'] != "" ) ? $searchset[$i]['post_username'] : $lang['Guest'] ); - $poster .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '' : ''; - - if ( $userdata['session_logged_in'] && $searchset[$i]['post_time'] > $userdata['user_lastvisit'] ) - { - if ( !empty($tracking_topics[$topic_id]) && !empty($tracking_forums[$forum_id]) ) - { - $topic_last_read = ( $tracking_topics[$topic_id] > $tracking_forums[$forum_id] ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id]; - } - else if ( !empty($tracking_topics[$topic_id]) || !empty($tracking_forums[$forum_id]) ) - { - $topic_last_read = ( !empty($tracking_topics[$topic_id]) ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id]; - } - - if ( $searchset[$i]['post_time'] > $topic_last_read ) - { - $mini_post_img = $images['icon_minipost_new']; - $mini_post_alt = $lang['New_post']; - } - else - { - $mini_post_img = $images['icon_minipost']; - $mini_post_alt = $lang['Post']; - } - } - else - { - $mini_post_img = $images['icon_minipost']; - $mini_post_alt = $lang['Post']; - } - - $template->assign_block_vars("searchresults", array( - 'TOPIC_TITLE' => $topic_title, - 'FORUM_NAME' => $searchset[$i]['forum_name'], - 'POST_SUBJECT' => $post_subject, - 'POST_DATE' => $post_date, - 'POSTER_NAME' => $poster, - 'TOPIC_REPLIES' => $searchset[$i]['topic_replies'], - 'TOPIC_VIEWS' => $searchset[$i]['topic_views'], - 'MESSAGE' => $message, - 'MINI_POST_IMG' => $mini_post_img, - - 'L_MINI_POST_ALT' => $mini_post_alt, - - 'U_POST' => $post_url, - 'U_TOPIC' => $topic_url, - 'U_FORUM' => $forum_url) - ); - } - else - { - $message = ''; - - if ( count($orig_word) ) - { - $topic_title = preg_replace($orig_word, $replacement_word, $searchset[$i]['topic_title']); - } - - $topic_type = $searchset[$i]['topic_type']; - - if ($topic_type == POST_ANNOUNCE) - { - $topic_type = $lang['Topic_Announcement'] . ' '; - } - else if ($topic_type == POST_STICKY) - { - $topic_type = $lang['Topic_Sticky'] . ' '; - } - else - { - $topic_type = ''; - } - - if ( $searchset[$i]['topic_vote'] ) - { - $topic_type .= $lang['Topic_Poll'] . ' '; - } - - $views = $searchset[$i]['topic_views']; - $replies = $searchset[$i]['topic_replies']; - - if ( ( $replies + 1 ) > $board_config['posts_per_page'] ) - { - $total_pages = ceil( ( $replies + 1 ) / $board_config['posts_per_page'] ); - $goto_page = ' [ ' . $lang['Goto_page'] . '' . $lang['Goto_page'] . ': '; - - $times = 1; - for($j = 0; $j < $replies + 1; $j += $board_config['posts_per_page']) - { - $goto_page .= '' . $times . ''; - if ( $times == 1 && $total_pages > 4 ) - { - $goto_page .= ' ... '; - $times = $total_pages - 3; - $j += ( $total_pages - 4 ) * $board_config['posts_per_page']; - } - else if ( $times < $total_pages ) - { - $goto_page .= ', '; - } - $times++; - } - $goto_page .= ' ] '; - } - else - { - $goto_page = ''; - } - - if ( $searchset[$i]['topic_status'] == TOPIC_MOVED ) - { - $topic_type = $lang['Topic_Moved'] . ' '; - $topic_id = $searchset[$i]['topic_moved_id']; - - $folder_image = '' . $lang['No_new_posts'] . ''; - $newest_post_img = ''; - } - else - { - if ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) - { - $folder = $images['folder_locked']; - $folder_new = $images['folder_locked_new']; - } - else if ( $searchset[$i]['topic_type'] == POST_ANNOUNCE ) - { - $folder = $images['folder_announce']; - $folder_new = $images['folder_announce_new']; - } - else if ( $searchset[$i]['topic_type'] == POST_STICKY ) - { - $folder = $images['folder_sticky']; - $folder_new = $images['folder_sticky_new']; - } - else - { - if ( $replies >= $board_config['hot_threshold'] ) - { - $folder = $images['folder_hot']; - $folder_new = $images['folder_hot_new']; - } - else - { - $folder = $images['folder']; - $folder_new = $images['folder_new']; - } - } - - if ( $userdata['session_logged_in'] ) - { - if ( $searchset[$i]['post_time'] > $userdata['user_lastvisit'] ) - { - if ( !empty($tracking_topics) || !empty($tracking_forums) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) - { - - $unread_topics = true; - - if ( !empty($tracking_topics[$topic_id]) ) - { - if ( $tracking_topics[$topic_id] > $searchset[$i]['post_time'] ) - { - $unread_topics = false; - } - } - - if ( !empty($tracking_forums[$forum_id]) ) - { - if ( $tracking_forums[$forum_id] > $searchset[$i]['post_time'] ) - { - $unread_topics = false; - } - } - - if ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) - { - if ( $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all'] > $searchset[$i]['post_time'] ) - { - $unread_topics = false; - } - } - - if ( $unread_topics ) - { - $folder_image = $folder_new; - $folder_alt = $lang['New_posts']; - - $newest_post_img = '' . $lang['View_newest_post'] . ' '; - } - else - { - $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; - - $folder_image = $folder; - $folder_alt = $folder_alt; - $newest_post_img = ''; - } - - } - else if ( $searchset[$i]['post_time'] > $userdata['user_lastvisit'] ) - { - $folder_image = $folder_new; - $folder_alt = $lang['New_posts']; - - $newest_post_img = '' . $lang['View_newest_post'] . ' '; - } - else - { - $folder_image = $folder; - $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; - $newest_post_img = ''; - } - } - else - { - $folder_image = $folder; - $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; - $newest_post_img = ''; - } - } - else - { - $folder_image = $folder; - $folder_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; - $newest_post_img = ''; - } - } - - - $topic_author = ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '' : ''; - $topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? $searchset[$i]['username'] : ( ( $searchset[$i]['post_username'] != '' ) ? $searchset[$i]['post_username'] : $lang['Guest'] ); - - $topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '' : ''; - - $first_post_time = create_date($board_config['default_dateformat'], $searchset[$i]['topic_time'], $board_config['board_timezone']); - - $last_post_time = create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); - - $last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '' . $searchset[$i]['user2'] . ''; - - $last_post_url = '' . $lang['View_latest_post'] . ''; - - $template->assign_block_vars('searchresults', array( - 'FORUM_NAME' => $searchset[$i]['forum_name'], - 'FORUM_ID' => $forum_id, - 'TOPIC_ID' => $topic_id, - 'FOLDER' => $folder_image, - 'NEWEST_POST_IMG' => $newest_post_img, - 'TOPIC_FOLDER_IMG' => $folder_image, - 'GOTO_PAGE' => $goto_page, - 'REPLIES' => $replies, - 'TOPIC_TITLE' => $topic_title, - 'TOPIC_TYPE' => $topic_type, - 'VIEWS' => $views, - 'TOPIC_AUTHOR' => $topic_author, - 'FIRST_POST_TIME' => $first_post_time, - 'LAST_POST_TIME' => $last_post_time, - 'LAST_POST_AUTHOR' => $last_post_author, - 'LAST_POST_IMG' => $last_post_url, - - 'L_TOPIC_FOLDER_ALT' => $folder_alt, - - 'U_VIEW_FORUM' => $forum_url, - 'U_VIEW_TOPIC' => $topic_url) - ); - } - } - - $base_url = "search.$phpEx?search_id=$search_id"; - - $template->assign_vars(array( - 'PAGINATION' => generate_pagination($base_url, $total_match_count, $per_page, $start), - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $per_page ) + 1 ), ceil( $total_match_count / $per_page )), - - 'L_AUTHOR' => $lang['Author'], - 'L_MESSAGE' => $lang['Message'], - 'L_FORUM' => $lang['Forum'], - 'L_TOPICS' => $lang['Topics'], - 'L_REPLIES' => $lang['Replies'], - 'L_VIEWS' => $lang['Views'], - 'L_POSTS' => $lang['Posts'], - 'L_LASTPOST' => $lang['Last_Post'], - 'L_POSTED' => $lang['Posted'], - 'L_SUBJECT' => $lang['Subject'], - - 'L_GOTO_PAGE' => $lang['Goto_page']) - ); - - $template->pparse('body'); - - include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - } - else - { - message_die(GENERAL_MESSAGE, $lang['No_search_match']); - } -} - -// -// Search forum -// -$sql = "SELECT c.cat_title, c.cat_id, f.forum_name, f.forum_id - FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f - WHERE f.cat_id = c.cat_id - ORDER BY c.cat_id, f.forum_order"; -$result = $db->sql_query($sql); -if ( !$result ) -{ - message_die(GENERAL_ERROR, 'Could not obtain forum_name/forum_id', '', __LINE__, __FILE__, $sql); -} - -$is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata); - -$s_forums = ''; -while( $row = $db->sql_fetchrow($result) ) -{ - if ( $is_auth_ary[$row['forum_id']]['auth_read'] ) - { - $s_forums .= ''; - if ( empty($list_cat[$row['cat_id']]) ) - { - $list_cat[$row['cat_id']] = $row['cat_title']; - } - } -} - -if ( $s_forums != '' ) -{ - $s_forums = '' . $s_forums; - - // - // Category to search - // - $s_categories = ''; - while( list($cat_id, $cat_title) = @each($list_cat)) - { - $s_categories .= ''; - } -} -else -{ - message_die(GENERAL_MESSAGE, $lang['No_searchable_forums']); -} - -// -// Number of chars returned -// -$s_characters = ''; -$s_characters .= ''; -$s_characters .= ''; -$s_characters .= ''; - -for($i = 100; $i < 1100 ; $i += 100) -{ - $selected = ( $i == 200 ) ? ' selected="selected"' : ''; - $s_characters .= ''; -} - -// -// Sorting -// -$s_sort_by = ""; -for($i = 0; $i < count($sort_by_types); $i++) -{ - $s_sort_by .= ''; -} - -// -// Search time -// -$previous_days = array(0, 1, 7, 14, 30, 90, 180, 364); -$previous_days_text = array($lang['All_Posts'], $lang['1_Day'], $lang['7_Days'], $lang['2_Weeks'], $lang['1_Month'], $lang['3_Months'], $lang['6_Months'], $lang['1_Year']); - -$s_time = ''; -for($i = 0; $i < count($previous_days); $i++) -{ - $selected = ( $topic_days == $previous_days[$i] ) ? ' selected="selected"' : ''; - $s_time .= ''; -} - -// -// Output the basic page -// -$page_title = $lang['Search']; -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -$template->set_filenames(array( - 'body' => 'search_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$template->assign_vars(array( - 'L_SEARCH_QUERY' => $lang['Search_query'], - 'L_SEARCH_OPTIONS' => $lang['Search_options'], - 'L_SEARCH_KEYWORDS' => $lang['Search_keywords'], - 'L_SEARCH_KEYWORDS_EXPLAIN' => $lang['Search_keywords_explain'], - 'L_SEARCH_AUTHOR' => $lang['Search_author'], - 'L_SEARCH_AUTHOR_EXPLAIN' => $lang['Search_author_explain'], - 'L_SEARCH_ANY_TERMS' => $lang['Search_for_any'], - 'L_SEARCH_ALL_TERMS' => $lang['Search_for_all'], - 'L_SEARCH_MESSAGE_ONLY' => $lang['Search_msg_only'], - 'L_SEARCH_MESSAGE_TITLE' => $lang['Search_title_msg'], - 'L_CATEGORY' => $lang['Category'], - 'L_RETURN_FIRST' => $lang['Return_first'], - 'L_CHARACTERS' => $lang['characters_posts'], - 'L_SORT_BY' => $lang['Sort_by'], - 'L_SORT_ASCENDING' => $lang['Sort_Ascending'], - 'L_SORT_DESCENDING' => $lang['Sort_Descending'], - 'L_SEARCH_PREVIOUS' => $lang['Search_previous'], - 'L_DISPLAY_RESULTS' => $lang['Display_results'], - 'L_FORUM' => $lang['Forum'], - 'L_TOPICS' => $lang['Topics'], - 'L_POSTS' => $lang['Posts'], - - 'S_SEARCH_ACTION' => append_sid("search.$phpEx?mode=results"), - 'S_CHARACTER_OPTIONS' => $s_characters, - 'S_FORUM_OPTIONS' => $s_forums, - 'S_CATEGORY_OPTIONS' => $s_categories, - 'S_TIME_OPTIONS' => $s_time, - 'S_SORT_OPTIONS' => $s_sort_by, - 'S_HIDDEN_FIELDS' => '') -); - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/Helius.cfg b/phpBB2_old/templates/Helius/Helius.cfg deleted file mode 100644 index 8c6dbcb..0000000 --- a/phpBB2_old/templates/Helius/Helius.cfg +++ /dev/null @@ -1,137 +0,0 @@ - 0) && (substr($template_dir, 0, strlen($phpbb_root_path)) !== $phpbb_root_path)) -{ - $template_dir = $phpbb_root_path . $template_dir; -} - -// -// testing if image exists -// -$test_file = $template_dir . '/images/lang_{LANG}/btn_login.gif'; -$lang = 'english'; -if(@file_exists(str_replace('{LANG}', $board_config['default_lang'], $test_file))) -{ - // image exists, setting language variable to correct url - $lang = $board_config['default_lang']; -} -elseif($board_config['default_lang'] !== 'english') -{ - // image doesn't exist, testing if there is english version - if(!@file_exists(str_replace('{LANG}', 'english', $test_file))) - { - // nothing found. setting to default language - $lang = $board_config['default_lang']; - } -} - -// -// adding custom template variables -// -$template->assign_vars(array( - 'LANG' => $lang, - 'T_TEMPLATE_PATH' => $template_dir, - 'C_ROW1' => '#EDEFF2', - 'C_ROW1_OVER' => '#F8F9FA', - 'C_ROW2' => '#DDE2EC', - 'C_ROW2_OVER' => '#EBEEF3', - 'C_ROW3' => '#E2E6EE', - 'C_ROW3_OVER' => '#ECEFF4', - 'C_VERSION' => '1.91', - 'TPL_FORUM_URL' => urlencode($board_config['server_name'] . $board_config['script_path']), - 'TPL_HDR1' => '
    ', - 'TPL_HDR2' => '
    ', - 'TPL_FTR' => '
    ' - )); - -$images['icon_quote'] = "$current_template_images/{LANG}/icon_quote.gif"; -$images['icon_edit'] = "$current_template_images/{LANG}/icon_edit.gif"; -$images['icon_search'] = "$current_template_images/{LANG}/icon_search.gif"; -$images['icon_profile'] = "$current_template_images/{LANG}/icon_profile.gif"; -$images['icon_pm'] = "$current_template_images/{LANG}/icon_pm.gif"; -$images['icon_email'] = "$current_template_images/{LANG}/icon_email.gif"; -$images['icon_delpost'] = "$current_template_images/icon_delete.gif"; -$images['icon_ip'] = "$current_template_images/icon_ip.gif"; -$images['icon_www'] = "$current_template_images/{LANG}/icon_www.gif"; -$images['icon_icq'] = "$current_template_images/icon_icq_add.gif"; -$images['icon_aim'] = "$current_template_images/icon_aim.gif"; -$images['icon_yim'] = "$current_template_images/icon_yim.gif"; -$images['icon_msnm'] = "$current_template_images/icon_msnm.gif"; -$images['icon_minipost'] = "$current_template_images/icon_minipost.gif"; -$images['icon_gotopost'] = "$current_template_images/icon_minipost.gif"; -$images['icon_minipost_new'] = "$current_template_images/icon_minipost_new.gif"; -$images['icon_latest_reply'] = "$current_template_images/icon_latest_reply.gif"; -$images['icon_newest_reply'] = "$current_template_images/icon_newest_reply.gif"; - -$images['forum'] = "$current_template_images/folder_big.gif"; -$images['forum_new'] = "$current_template_images/folder_new_big.gif"; -$images['forum_locked'] = "$current_template_images/folder_locked_big.gif"; - -$images['folder'] = "$current_template_images/folder.gif"; -$images['folder_new'] = "$current_template_images/folder_new.gif"; -$images['folder_hot'] = "$current_template_images/folder_hot.gif"; -$images['folder_hot_new'] = "$current_template_images/folder_new_hot.gif"; -$images['folder_locked'] = "$current_template_images/folder_lock.gif"; -$images['folder_locked_new'] = "$current_template_images/folder_lock_new.gif"; -$images['folder_sticky'] = "$current_template_images/folder_sticky.gif"; -$images['folder_sticky_new'] = "$current_template_images/folder_sticky_new.gif"; -$images['folder_announce'] = "$current_template_images/folder_announce.gif"; -$images['folder_announce_new'] = "$current_template_images/folder_announce_new.gif"; - -$images['post_new'] = "$current_template_images/{LANG}/post.gif"; -$images['post_locked'] = "$current_template_images/{LANG}/reply-locked.gif"; -$images['reply_new'] = "$current_template_images/{LANG}/reply.gif"; -$images['reply_locked'] = "$current_template_images/{LANG}/reply-locked.gif"; - -$images['pm_inbox'] = "$current_template_images/msg_inbox.gif"; -$images['pm_outbox'] = "$current_template_images/msg_outbox.gif"; -$images['pm_savebox'] = "$current_template_images/msg_savebox.gif"; -$images['pm_sentbox'] = "$current_template_images/msg_sentbox.gif"; -$images['pm_readmsg'] = "$current_template_images/folder.gif"; -$images['pm_unreadmsg'] = "$current_template_images/folder_new.gif"; -$images['pm_replymsg'] = "$current_template_images/{LANG}/reply.gif"; -$images['pm_postmsg'] = "$current_template_images/{LANG}/msg_newpost.gif"; -$images['pm_quotemsg'] = "$current_template_images/{LANG}/icon_quote.gif"; -$images['pm_editmsg'] = "$current_template_images/{LANG}/icon_edit.gif"; -$images['pm_new_msg'] = ""; -$images['pm_no_new_msg'] = ""; - -$images['topic_watch'] = ""; -$images['topic_un_watch'] = ""; -$images['topic_mod_lock'] = "$current_template_images/topic_lock.gif"; -$images['topic_mod_unlock'] = "$current_template_images/topic_unlock.gif"; -$images['topic_mod_split'] = "$current_template_images/topic_split.gif"; -$images['topic_mod_move'] = "$current_template_images/topic_move.gif"; -$images['topic_mod_delete'] = "$current_template_images/topic_delete.gif"; - -$images['voting_graphic'][0] = "$current_template_images/voting_bar.gif"; -$images['voting_graphic'][1] = "$current_template_images/voting_bar.gif"; -$images['voting_graphic'][2] = "$current_template_images/voting_bar.gif"; -$images['voting_graphic'][3] = "$current_template_images/voting_bar.gif"; -$images['voting_graphic'][4] = "$current_template_images/voting_bar.gif"; - -// -// Vote graphic length defines the maximum length of a vote result -// graphic, ie. 100% = this length -// -$board_config['vote_graphic_length'] = 300; -$board_config['privmsg_graphic_length'] = 175; - -?> \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/Helius.css b/phpBB2_old/templates/Helius/Helius.css deleted file mode 100644 index 6c6646d..0000000 --- a/phpBB2_old/templates/Helius/Helius.css +++ /dev/null @@ -1,211 +0,0 @@ -/* - Helius Theme for phpBB version 2+ - Created by Vjacheslav Trushkin - http://www.trushkin.net -*/ - - - /* General page style. The scroll bar colours only visible in IE5.5+ */ -body { - background-color: #FFFFFF /* #E5E8EE*/; - scrollbar-arrow-color: #1D2938; - scrollbar-face-color: #9DB3CC; - scrollbar-track-color: #D6DEE9; - scrollbar-highlight-color: #C8D3E1; - scrollbar-3dlight-color: #EAEFF4; - scrollbar-shadow-color: #7492B6; - scrollbar-darkshadow-color: #3A5370; -} - -/* General font families for common tags */ -font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } -a { text-decoration: underline; color: #364D67; } -a:visited { text-decoration: underline; color: #2C3E52; } -a:hover { text-decoration: underline; color: #FF6600; } -a:active { text-decoration: underline; color: #FF0000; } -hr { height: 0px; border: solid #364D67 0px; border-top-width: 1px;} - - -/* This is the outline round the main forum tables */ -.forumline { background-color: #525E6E; } - - -/* Main table cell colours and backgrounds */ -td.row1 { background-color: #EDEFF2; } -td.row1_over { background-color: #F8F9FA; } -td.row2 { background-color: #DDE2EC; } -td.row2_over { background-color: #EBEEF3; } -td.row3, td.row3Right { background-color: #E2E6EE; } -td.row3_over { background-color: #ECEFF4; } -td.row4 { background-color: #CED5E2; } - - -/* - This is for the table cell above the Topics, Post & Last posts on the index.php page - By default this is the fading out gradiated silver background. - However, you could replace this with a bitmap specific for each forum -*/ -td.rowpic { - background-color: #FFFFFF; -} - -/* Header cells - the blue and silver gradient backgrounds */ -th, td.th { - /* modification by Frederik - original was: color: #3A5370;*/ - color: #FFFFFF; - font-size: 12px; font-weight: bold; - background-color: #FFCC00; height: 26px; -} - -td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { - background-color:#D1D7DC; height: 28px; -} - -td.th2 {background-color:#D1D7DC; height: 20px; color: #FFFFFF; } - -td.spaceRow { - background-color: #D1D7DC; } - - -/* - Setting additional nice inner borders for the main table cells. - The names indicate which sides the border will be on. - Don't worry if you don't understand this, just ignore it :-) -*/ - -/* The largest text used in the index page title and toptic title etc. */ -h1,h2 { - font-weight: bold; font-size: 18px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; - text-decoration: none; line-height : 120%; color: #000000; -} -.maintitle { - font-weight: bold; font-size: 18px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; - text-decoration: none; line-height : 120%; color: #364D67; -} -.subtitle { - font-size: 16px; font-family: Arial, Helvetica, sans-serif; - text-decoration: none; font-weight: bold; color: #000000; -} - - -/* General text */ -.gen { font-size : 12px; } -.genmed { font-size : 11px; } -.gensmall, .gensmall2 { font-size : 10px; } -.gen,.genmed,.gensmall { color : #000000; } -a.gen,a.genmed,a.gensmall { color: #364D67; text-decoration: underline; } -a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #FF6600; text-decoration: underline; } - - -/* The register, login, search etc links at the top of the page */ -.mainmenu { font-size: 11px; color: #000000 } -a.mainmenu { text-decoration: underline; color: #364D67; } -a.mainmenu:hover{ text-decoration: underline; color: #FF6600; } - - -/* Forum category titles */ -.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color: #364D67} -a.cattitle, .cattitle a { text-decoration: underline; color: #364D67; } -a.cattitle:visited, .cattitle a:visited { text-decoration: underline; color: #2C3E52; } -a.cattitle:hover, .cattitle a:hover { text-decoration: underline; color: #FF6600; } -a.cattitle:active, .cattitle a:active { text-decoration: underline; color: #FF0000; } - - -/* Forum title: Text and link to the forums used in: index.php */ -.forumlink { font-weight: bold; font-size: 12px; color: #364D67; } -a.forumlink { text-decoration: underline; color: #364D67; } -a.forumlink:hover{ text-decoration: underline; color: #FF6600; } - - -/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ -.nav { font-weight: bold; font-size: 11px; color : #000000;} -a.nav { text-decoration: underline; color: #364D67; } -a.nav:hover { text-decoration: underline; color: #FF6600; } - - -/* titles for the topics: could specify viewed link colour too */ -.topictitle { font-weight: bold; font-size: 11px; color : #000000; } -a.topictitle:link { text-decoration: underline; color: #364D67; } -a.topictitle:visited { text-decoration: underline; color: #2C3E52; } -a.topictitle:hover { text-decoration: underline; color: #FF6600; } -a.topictitle:active { text-decoration: underline; color: #FF0000; } - - -/* Name of poster in viewmsg.php and viewtopic.php and other places */ -.name { font-size: 11px; color: #000000;} -a.name:link { text-decoration: underline; color: #364D67; } -a.name:visited { text-decoration: underline; color: #2C3E52; } -a.name:hover { text-decoration: underline; color: #FF6600; } -a.name:active { text-decoration: underline; color: #FF0000; } - -/* Location, number of posts, post date etc */ -.postdetails { font-size: 10px; color: #000000; } - - -/* The content of the posts (body of text) */ -.postbody { font-size: 12px;} -a.postlink:link { text-decoration: underline; color: #364D67; } -a.postlink:visited { text-decoration: underline; color: #2C3E52; } -a.postlink:hover { text-decoration: underline; color: #FF6600; } -a.postlink:active { text-decoration: underline; color: #FF0000; } - - -/* Quote & Code blocks */ -.code { - font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; - background-color: #F1F4F8; border: #525E6E; border-style: dashed; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - -.quote { - font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #3A5370; line-height: 125%; - background-color: #F1F4F8; border: #525E6E; border-style: dotted; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - - -/* Copyright and bottom info */ -.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} -a.copyright, a.copyright:visited, .copyright a, .copyright a:visited { color: #444444; text-decoration: none;} -a.copyright:hover, a.copyright:active, .copyright a:hover, .copyright a:active { color: #000000; text-decoration: underline;} - - -/* Form elements */ -input,textarea, select { - color : #000000; - font: normal 11px Verdana, Arial, Helvetica, sans-serif; -} - -form { display: inline; } - -/* The text input fields background colour */ -input.post, textarea.post, select { - background-color : #FFFFFF; -} - -input { text-indent : 2px; } - -/* The buttons used for bbCode styling in message post */ -input.button { - background-color: #EAEFF4; - color: #000000; - font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; -} - -/* The main submit button option */ -input.mainoption { - background-color : #FAFAFA; - font-weight : bold; -} - -/* None-bold submit button */ -input.liteoption { - background-color : #FAFAFA; - font-weight : normal; -} - -/* This is the line in the posting page which shows the rollover - help line. This is actually a text box, but if set to be the same - colour as the background no one will know ;) -*/ -input.helpline { background-color: #DDE2EC; border: solid 1px #DDE2EC; } diff --git a/phpBB2_old/templates/Helius/_extra/btn_about.gif b/phpBB2_old/templates/Helius/_extra/btn_about.gif deleted file mode 100644 index 4abe1da..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_about.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_about_on.gif b/phpBB2_old/templates/Helius/_extra/btn_about_on.gif deleted file mode 100644 index 28effad..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_about_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_album.gif b/phpBB2_old/templates/Helius/_extra/btn_album.gif deleted file mode 100644 index 3d39890..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_album.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_album_on.gif b/phpBB2_old/templates/Helius/_extra/btn_album_on.gif deleted file mode 100644 index 3a174f9..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_album_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_boardrules.gif b/phpBB2_old/templates/Helius/_extra/btn_boardrules.gif deleted file mode 100644 index 79e6897..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_boardrules.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_boardrules_on.gif b/phpBB2_old/templates/Helius/_extra/btn_boardrules_on.gif deleted file mode 100644 index e1a8718..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_boardrules_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_calendar.gif b/phpBB2_old/templates/Helius/_extra/btn_calendar.gif deleted file mode 100644 index 806c194..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_calendar.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_calendar_on.gif b/phpBB2_old/templates/Helius/_extra/btn_calendar_on.gif deleted file mode 100644 index 72e8f63..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_calendar_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_calender.gif b/phpBB2_old/templates/Helius/_extra/btn_calender.gif deleted file mode 100644 index 5fcbce1..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_calender.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_calender_on.gif b/phpBB2_old/templates/Helius/_extra/btn_calender_on.gif deleted file mode 100644 index 06db81a..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_calender_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_chat.gif b/phpBB2_old/templates/Helius/_extra/btn_chat.gif deleted file mode 100644 index 933dd91..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_chat.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_chat_on.gif b/phpBB2_old/templates/Helius/_extra/btn_chat_on.gif deleted file mode 100644 index 07637c3..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_chat_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_chatbox.gif b/phpBB2_old/templates/Helius/_extra/btn_chatbox.gif deleted file mode 100644 index ff2eaf1..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_chatbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_chatbox_on.gif b/phpBB2_old/templates/Helius/_extra/btn_chatbox_on.gif deleted file mode 100644 index ac6c3b6..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_chatbox_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_contact.gif b/phpBB2_old/templates/Helius/_extra/btn_contact.gif deleted file mode 100644 index 795b4b0..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_contact.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_contact_on.gif b/phpBB2_old/templates/Helius/_extra/btn_contact_on.gif deleted file mode 100644 index 9b07824..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_contact_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_download.gif b/phpBB2_old/templates/Helius/_extra/btn_download.gif deleted file mode 100644 index a6f2568..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_download.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_download_on.gif b/phpBB2_old/templates/Helius/_extra/btn_download_on.gif deleted file mode 100644 index 25a22fd..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_download_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_downloads.gif b/phpBB2_old/templates/Helius/_extra/btn_downloads.gif deleted file mode 100644 index 85e6aa6..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_downloads.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_downloads_on.gif b/phpBB2_old/templates/Helius/_extra/btn_downloads_on.gif deleted file mode 100644 index 5710a1d..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_downloads_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_favorieten.gif b/phpBB2_old/templates/Helius/_extra/btn_favorieten.gif deleted file mode 100644 index 02e2d14..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_favorieten.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_favorieten_on.gif b/phpBB2_old/templates/Helius/_extra/btn_favorieten_on.gif deleted file mode 100644 index 289e5f3..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_favorieten_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_favorites.gif b/phpBB2_old/templates/Helius/_extra/btn_favorites.gif deleted file mode 100644 index 17d46de..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_favorites.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_favorites_on.gif b/phpBB2_old/templates/Helius/_extra/btn_favorites_on.gif deleted file mode 100644 index bdbd1d8..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_favorites_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_files.gif b/phpBB2_old/templates/Helius/_extra/btn_files.gif deleted file mode 100644 index f56ca9a..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_files.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_files_on.gif b/phpBB2_old/templates/Helius/_extra/btn_files_on.gif deleted file mode 100644 index 4369cea..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_files_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_forum.gif b/phpBB2_old/templates/Helius/_extra/btn_forum.gif deleted file mode 100644 index 3fdcbbb..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_forum.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_forum_on.gif b/phpBB2_old/templates/Helius/_extra/btn_forum_on.gif deleted file mode 100644 index fae29c0..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_forum_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_forumrules.gif b/phpBB2_old/templates/Helius/_extra/btn_forumrules.gif deleted file mode 100644 index 5f259e7..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_forumrules.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_forumrules_on.gif b/phpBB2_old/templates/Helius/_extra/btn_forumrules_on.gif deleted file mode 100644 index e4a3dab..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_forumrules_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_gallery.gif b/phpBB2_old/templates/Helius/_extra/btn_gallery.gif deleted file mode 100644 index c576fbb..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_gallery.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_gallery_on.gif b/phpBB2_old/templates/Helius/_extra/btn_gallery_on.gif deleted file mode 100644 index c7d0a7b..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_gallery_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_home.gif b/phpBB2_old/templates/Helius/_extra/btn_home.gif deleted file mode 100644 index a72dfd3..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_home.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_home_on.gif b/phpBB2_old/templates/Helius/_extra/btn_home_on.gif deleted file mode 100644 index e39084a..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_home_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_info.gif b/phpBB2_old/templates/Helius/_extra/btn_info.gif deleted file mode 100644 index 1883f67..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_info.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_info_on.gif b/phpBB2_old/templates/Helius/_extra/btn_info_on.gif deleted file mode 100644 index e79f097..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_info_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_kalender.gif b/phpBB2_old/templates/Helius/_extra/btn_kalender.gif deleted file mode 100644 index 80b756c..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_kalender.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_kalender_on.gif b/phpBB2_old/templates/Helius/_extra/btn_kalender_on.gif deleted file mode 100644 index 0fa70ed..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_kalender_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_links.gif b/phpBB2_old/templates/Helius/_extra/btn_links.gif deleted file mode 100644 index e265a1f..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_links.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_links_on.gif b/phpBB2_old/templates/Helius/_extra/btn_links_on.gif deleted file mode 100644 index 79472f8..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_links_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_main.gif b/phpBB2_old/templates/Helius/_extra/btn_main.gif deleted file mode 100644 index d18ff19..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_main.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_main_on.gif b/phpBB2_old/templates/Helius/_extra/btn_main_on.gif deleted file mode 100644 index d6b7a52..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_main_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_mainpage.gif b/phpBB2_old/templates/Helius/_extra/btn_mainpage.gif deleted file mode 100644 index b879a28..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_mainpage.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_mainpage_on.gif b/phpBB2_old/templates/Helius/_extra/btn_mainpage_on.gif deleted file mode 100644 index 405bcec..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_mainpage_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_news.gif b/phpBB2_old/templates/Helius/_extra/btn_news.gif deleted file mode 100644 index 8ce2dd0..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_news.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_news_on.gif b/phpBB2_old/templates/Helius/_extra/btn_news_on.gif deleted file mode 100644 index 1c39a03..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_news_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_portal.gif b/phpBB2_old/templates/Helius/_extra/btn_portal.gif deleted file mode 100644 index bf59649..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_portal.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_portal_on.gif b/phpBB2_old/templates/Helius/_extra/btn_portal_on.gif deleted file mode 100644 index 597a036..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_portal_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_profiel.gif b/phpBB2_old/templates/Helius/_extra/btn_profiel.gif deleted file mode 100644 index e0da00e..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_profiel.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_profiel_on.gif b/phpBB2_old/templates/Helius/_extra/btn_profiel_on.gif deleted file mode 100644 index e391e59..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_profiel_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_statistic.gif b/phpBB2_old/templates/Helius/_extra/btn_statistic.gif deleted file mode 100644 index 94ccd6d..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_statistic.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_statistic_on.gif b/phpBB2_old/templates/Helius/_extra/btn_statistic_on.gif deleted file mode 100644 index 461ab88..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_statistic_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_statistics.gif b/phpBB2_old/templates/Helius/_extra/btn_statistics.gif deleted file mode 100644 index 2296f2a..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_statistics.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_statistics_on.gif b/phpBB2_old/templates/Helius/_extra/btn_statistics_on.gif deleted file mode 100644 index bb536e4..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_statistics_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_statistik.gif b/phpBB2_old/templates/Helius/_extra/btn_statistik.gif deleted file mode 100644 index 5dcf587..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_statistik.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_statistik_on.gif b/phpBB2_old/templates/Helius/_extra/btn_statistik_on.gif deleted file mode 100644 index 7d04245..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_statistik_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_stats.gif b/phpBB2_old/templates/Helius/_extra/btn_stats.gif deleted file mode 100644 index 145c63e..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_stats.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_stats_on.gif b/phpBB2_old/templates/Helius/_extra/btn_stats_on.gif deleted file mode 100644 index ccb8e92..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_stats_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_store.gif b/phpBB2_old/templates/Helius/_extra/btn_store.gif deleted file mode 100644 index dcf7715..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_store.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_store_on.gif b/phpBB2_old/templates/Helius/_extra/btn_store_on.gif deleted file mode 100644 index e6c9056..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_store_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_website.gif b/phpBB2_old/templates/Helius/_extra/btn_website.gif deleted file mode 100644 index 75978e3..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_website.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_extra/btn_website_on.gif b/phpBB2_old/templates/Helius/_extra/btn_website_on.gif deleted file mode 100644 index 4026ccd..0000000 Binary files a/phpBB2_old/templates/Helius/_extra/btn_website_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_logo_src/logo_bg.bmp b/phpBB2_old/templates/Helius/_logo_src/logo_bg.bmp deleted file mode 100644 index bae060b..0000000 Binary files a/phpBB2_old/templates/Helius/_logo_src/logo_bg.bmp and /dev/null differ diff --git a/phpBB2_old/templates/Helius/_logo_src/readme.txt b/phpBB2_old/templates/Helius/_logo_src/readme.txt deleted file mode 100644 index 60ce29e..0000000 --- a/phpBB2_old/templates/Helius/_logo_src/readme.txt +++ /dev/null @@ -1,15 +0,0 @@ -Theme is created with Macromedia Fireworks MX, but almost noone has it so -i exported logo background to bmp file that can be used with any editor. - -After you create logo it should be splitted in 2 images: -logo1.gif and logo2.gif - -width of logo1.gif should be the same as width of logo2.gif -height of logo1.gif is 23px -height of logo2.gif is 30px - -if width of image will be different from "130" then open overall_header.tpl -with notepad (or any other text editor) and replace all "130" width width of -your logo. - -html code for header is in overall_header.tpl file (tpl files are usual html files) diff --git a/phpBB2_old/templates/Helius/admin/admin_message_body.tpl b/phpBB2_old/templates/Helius/admin/admin_message_body.tpl deleted file mode 100644 index 68e69ca..0000000 --- a/phpBB2_old/templates/Helius/admin/admin_message_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    - - - - - - - - -
    {MESSAGE_TITLE}
    {MESSAGE_TEXT}
    - -
    diff --git a/phpBB2_old/templates/Helius/admin/auth_forum_body.tpl b/phpBB2_old/templates/Helius/admin/auth_forum_body.tpl deleted file mode 100644 index 7e58992..0000000 --- a/phpBB2_old/templates/Helius/admin/auth_forum_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - - - - - - - - -
    {forum_auth_titles.CELL_TITLE}
    {forum_auth_data.S_AUTH_LEVELS_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/Helius/admin/auth_select_body.tpl b/phpBB2_old/templates/Helius/admin/auth_select_body.tpl deleted file mode 100644 index b1fdd98..0000000 --- a/phpBB2_old/templates/Helius/admin/auth_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -
    - - - - - - -
    {L_AUTH_SELECT}
    {S_HIDDEN_FIELDS}{S_AUTH_SELECT}   
    diff --git a/phpBB2_old/templates/Helius/admin/auth_ug_body.tpl b/phpBB2_old/templates/Helius/admin/auth_ug_body.tpl deleted file mode 100644 index 78c8e60..0000000 --- a/phpBB2_old/templates/Helius/admin/auth_ug_body.tpl +++ /dev/null @@ -1,49 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_USER_OR_GROUPNAME}: {USERNAME}

    - -
    - - -

    {USER_LEVEL}

    -

    {USER_GROUP_MEMBERSHIPS}

    - - - -

    {GROUP_MEMBERSHIP}

    - - -

    {L_PERMISSIONS}

    - -

    {L_AUTH_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM}{acltype.L_UG_ACL_TYPE}{L_MODERATOR_STATUS}
    {forums.FORUM_NAME}{forums.aclvalues.S_ACL_SELECT}{forums.S_MOD_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/Helius/admin/board_config_body.tpl b/phpBB2_old/templates/Helius/admin/board_config_body.tpl deleted file mode 100644 index d82a0b0..0000000 --- a/phpBB2_old/templates/Helius/admin/board_config_body.tpl +++ /dev/null @@ -1,252 +0,0 @@ - -

    {L_CONFIGURATION_TITLE}

    - -

    {L_CONFIGURATION_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GENERAL_SETTINGS}
    {L_SERVER_NAME}
    {L_SERVER_PORT}
    {L_SERVER_PORT_EXPLAIN}
    {L_SCRIPT_PATH}
    {L_SCRIPT_PATH_EXPLAIN}
    {L_SITE_NAME}
    {L_SITE_NAME_EXPLAIN}
    {L_SITE_DESCRIPTION}
    {L_DISABLE_BOARD}
    {L_DISABLE_BOARD_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ACCT_ACTIVATION}{L_NONE}   {L_USER}   {L_ADMIN}
    {L_VISUAL_CONFIRM}
    {L_VISUAL_CONFIRM_EXPLAIN}
    {L_YES}   {L_NO}
    {L_BOARD_EMAIL_FORM}
    {L_BOARD_EMAIL_FORM_EXPLAIN}
    {L_ENABLED}   {L_DISABLED}
    {L_FLOOD_INTERVAL}
    {L_FLOOD_INTERVAL_EXPLAIN}
    {L_TOPICS_PER_PAGE}
    {L_POSTS_PER_PAGE}
    {L_HOT_THRESHOLD}
    {L_DEFAULT_STYLE}{STYLE_SELECT}
    {L_OVERRIDE_STYLE}
    {L_OVERRIDE_STYLE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_DEFAULT_LANGUAGE}{LANG_SELECT}
    {L_DATE_FORMAT}
    {L_DATE_FORMAT_EXPLAIN}
    {L_SYSTEM_TIMEZONE}{TIMEZONE_SELECT}
    {L_ENABLE_GZIP} {L_YES}   {L_NO}
    {L_ENABLE_PRUNE} {L_YES}   {L_NO}
    {L_COOKIE_SETTINGS}
    {L_COOKIE_SETTINGS_EXPLAIN}
    {L_COOKIE_DOMAIN}
    {L_COOKIE_NAME}
    {L_COOKIE_PATH}
    {L_COOKIE_SECURE}
    {L_COOKIE_SECURE_EXPLAIN}
    {L_DISABLED}   {L_ENABLED}
    {L_SESSION_LENGTH}
    {L_PRIVATE_MESSAGING}
    {L_DISABLE_PRIVATE_MESSAGING}{L_ENABLED}   {L_DISABLED}
    {L_INBOX_LIMIT}
    {L_SENTBOX_LIMIT}
    {L_SAVEBOX_LIMIT}
    {L_ABILITIES_SETTINGS}
    {L_MAX_POLL_OPTIONS}
    {L_ALLOW_HTML} {L_YES}   {L_NO}
    {L_ALLOWED_TAGS}
    {L_ALLOWED_TAGS_EXPLAIN}
    {L_ALLOW_BBCODE} {L_YES}   {L_NO}
    {L_ALLOW_SMILIES} {L_YES}   {L_NO}
    {L_SMILIES_PATH}
    {L_SMILIES_PATH_EXPLAIN}
    {L_ALLOW_SIG} {L_YES}   {L_NO}
    {L_MAX_SIG_LENGTH}
    {L_MAX_SIG_LENGTH_EXPLAIN}
    {L_ALLOW_NAME_CHANGE} {L_YES}   {L_NO}
    {L_AVATAR_SETTINGS}
    {L_ALLOW_LOCAL} {L_YES}   {L_NO}
    {L_ALLOW_REMOTE}
    {L_ALLOW_REMOTE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ALLOW_UPLOAD} {L_YES}   {L_NO}
    {L_MAX_FILESIZE}
    {L_MAX_FILESIZE_EXPLAIN}
    Bytes
    {L_MAX_AVATAR_SIZE}
    - {L_MAX_AVATAR_SIZE_EXPLAIN} -
    x
    {L_AVATAR_STORAGE_PATH}
    {L_AVATAR_STORAGE_PATH_EXPLAIN}
    {L_AVATAR_GALLERY_PATH}
    {L_AVATAR_GALLERY_PATH_EXPLAIN}
    {L_COPPA_SETTINGS}
    {L_COPPA_FAX}
    {L_COPPA_MAIL}
    {L_COPPA_MAIL_EXPLAIN}
    {L_EMAIL_SETTINGS}
    {L_ADMIN_EMAIL}
    {L_EMAIL_SIG}
    {L_EMAIL_SIG_EXPLAIN}
    {L_USE_SMTP}
    {L_USE_SMTP_EXPLAIN}
    {L_YES}   {L_NO}
    {L_SMTP_SERVER}
    {L_SMTP_USERNAME}
    {L_SMTP_USERNAME_EXPLAIN}
    {L_SMTP_PASSWORD}
    {L_SMTP_PASSWORD_EXPLAIN}
    {S_HIDDEN_FIELDS}   -
    - -
    diff --git a/phpBB2_old/templates/Helius/admin/category_edit_body.tpl b/phpBB2_old/templates/Helius/admin/category_edit_body.tpl deleted file mode 100644 index 8fed1c9..0000000 --- a/phpBB2_old/templates/Helius/admin/category_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_EDIT_CATEGORY}

    - -

    {L_EDIT_CATEGORY_EXPLAIN}

    - -
    - - - - - - - - - - - -
    {L_EDIT_CATEGORY}
    {L_CATEGORY}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2_old/templates/Helius/admin/db_utils_backup_body.tpl b/phpBB2_old/templates/Helius/admin/db_utils_backup_body.tpl deleted file mode 100644 index 8ee6ab9..0000000 --- a/phpBB2_old/templates/Helius/admin/db_utils_backup_body.tpl +++ /dev/null @@ -1,33 +0,0 @@ - -

    {L_DATABASE_BACKUP}

    - -

    {L_BACKUP_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BACKUP_OPTIONS}
    {L_FULL_BACKUP}
    {L_STRUCTURE_BACKUP}
    {L_DATA_BACKUP}
    {L_ADDITIONAL_TABLES}
    {L_GZIP_COMPRESS}{L_NO}  {L_YES}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/Helius/admin/db_utils_restore_body.tpl b/phpBB2_old/templates/Helius/admin/db_utils_restore_body.tpl deleted file mode 100644 index 13a74dd..0000000 --- a/phpBB2_old/templates/Helius/admin/db_utils_restore_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_DATABASE_RESTORE}

    - -

    {L_RESTORE_EXPLAIN}

    - -
    - - - - - - -
    {L_SELECT_FILE}
       {S_HIDDEN_FIELDS} 
    diff --git a/phpBB2_old/templates/Helius/admin/disallow_body.tpl b/phpBB2_old/templates/Helius/admin/disallow_body.tpl deleted file mode 100644 index ea269f6..0000000 --- a/phpBB2_old/templates/Helius/admin/disallow_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_DISALLOW_TITLE}

    - -

    {L_DISALLOW_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_ADD_DISALLOW}
    {L_USERNAME}
    {L_ADD_EXPLAIN}
     
    {L_DELETE_DISALLOW}
    {L_USERNAME}
    {L_DELETE_EXPLAIN}
    {S_DISALLOW_SELECT} 
     
    diff --git a/phpBB2_old/templates/Helius/admin/forum_admin_body.tpl b/phpBB2_old/templates/Helius/admin/forum_admin_body.tpl deleted file mode 100644 index 3af4cfd..0000000 --- a/phpBB2_old/templates/Helius/admin/forum_admin_body.tpl +++ /dev/null @@ -1,39 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_TITLE}
    {catrow.CAT_DESC}{L_EDIT}{L_DELETE}{L_MOVE_UP} {L_MOVE_DOWN} 
    {catrow.forumrow.FORUM_NAME}
    {catrow.forumrow.FORUM_DESC}
    {catrow.forumrow.NUM_TOPICS}{catrow.forumrow.NUM_POSTS}{L_EDIT}{L_DELETE}{L_MOVE_UP}
    {L_MOVE_DOWN}
    {L_RESYNC}
    diff --git a/phpBB2_old/templates/Helius/admin/forum_delete_body.tpl b/phpBB2_old/templates/Helius/admin/forum_delete_body.tpl deleted file mode 100644 index 4a26710..0000000 --- a/phpBB2_old/templates/Helius/admin/forum_delete_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_FORUM_DELETE}

    - -

    {L_FORUM_DELETE_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - -
    {L_FORUM_DELETE}
    {L_FORUM_NAME}{NAME}
    {L_MOVE_CONTENTS}{S_SELECT_TO}
    {S_HIDDEN_FIELDS}
    -
    diff --git a/phpBB2_old/templates/Helius/admin/forum_edit_body.tpl b/phpBB2_old/templates/Helius/admin/forum_edit_body.tpl deleted file mode 100644 index 7f56bbe..0000000 --- a/phpBB2_old/templates/Helius/admin/forum_edit_body.tpl +++ /dev/null @@ -1,50 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_SETTINGS}
    {L_FORUM_NAME}
    {L_FORUM_DESCRIPTION}
    {L_CATEGORY}
    {L_FORUM_STATUS}
    {L_AUTO_PRUNE} - - - - - - - - - - - - -
    {L_ENABLED}
    {L_PRUNE_DAYS}  {L_DAYS}
    {L_PRUNE_FREQ}  {L_DAYS}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2_old/templates/Helius/admin/forum_prune_body.tpl b/phpBB2_old/templates/Helius/admin/forum_prune_body.tpl deleted file mode 100644 index 56a2e02..0000000 --- a/phpBB2_old/templates/Helius/admin/forum_prune_body.tpl +++ /dev/null @@ -1,22 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_FORUM_PRUNE_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - -
    {L_FORUM_PRUNE}
    {S_PRUNE_DATA}
    {S_HIDDEN_VARS} - -
    -
    diff --git a/phpBB2_old/templates/Helius/admin/forum_prune_result_body.tpl b/phpBB2_old/templates/Helius/admin/forum_prune_result_body.tpl deleted file mode 100644 index 10e6d06..0000000 --- a/phpBB2_old/templates/Helius/admin/forum_prune_result_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_PRUNE_RESULT}

    - - - - - - - - - - - - - - -
    {L_FORUM}{L_TOPICS_PRUNED}{L_POSTS_PRUNED}
    {prune_results.FORUM_NAME}{prune_results.FORUM_TOPICS}{prune_results.FORUM_POSTS}
    - -
    diff --git a/phpBB2_old/templates/Helius/admin/forum_prune_select_body.tpl b/phpBB2_old/templates/Helius/admin/forum_prune_select_body.tpl deleted file mode 100644 index d59e7f7..0000000 --- a/phpBB2_old/templates/Helius/admin/forum_prune_select_body.tpl +++ /dev/null @@ -1,12 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -
    - - - - - - - -
    {L_SELECT_FORUM}
    {S_FORUMS_SELECT}   
    diff --git a/phpBB2_old/templates/Helius/admin/group_edit_body.tpl b/phpBB2_old/templates/Helius/admin/group_edit_body.tpl deleted file mode 100644 index ed96b17..0000000 --- a/phpBB2_old/templates/Helius/admin/group_edit_body.tpl +++ /dev/null @@ -1,56 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_EDIT_DELETE}
    {L_ITEMS_REQUIRED}
    {L_GROUP_NAME}: - -
    {L_GROUP_DESCRIPTION}: - -
    {L_GROUP_MODERATOR}:  
    {L_GROUP_STATUS}: - {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}
    {L_DELETE_MODERATOR} -
    - {L_DELETE_MODERATOR_EXPLAIN}
    - - {L_YES}
    {L_GROUP_DELETE}: - - {L_GROUP_DELETE_CHECK}
    - -    - -
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/Helius/admin/group_select_body.tpl b/phpBB2_old/templates/Helius/admin/group_select_body.tpl deleted file mode 100644 index 7428918..0000000 --- a/phpBB2_old/templates/Helius/admin/group_select_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -

    {L_GROUP_EXPLAIN}

    - -
    - - - - - - - - - - - - -
    {L_GROUP_SELECT}
    {S_GROUP_SELECT}   
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/Helius/admin/index.htm b/phpBB2_old/templates/Helius/admin/index.htm deleted file mode 100644 index 587bc60..0000000 --- a/phpBB2_old/templates/Helius/admin/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -Created by Vjacheslav Trushkin - - - - - - - - - -
    Created by Vjacheslav Trushkin
    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/admin/index_body.tpl b/phpBB2_old/templates/Helius/admin/index_body.tpl deleted file mode 100644 index b3de2e3..0000000 --- a/phpBB2_old/templates/Helius/admin/index_body.tpl +++ /dev/null @@ -1,94 +0,0 @@ - -

    {L_WELCOME}

    - -

    {L_ADMIN_INTRO}

    - -

    Helius phpBB Style Notes

    -

    -You are allowed to use this phpBB style only if you agree to the following conditions:
    -- You cannot remove my copyright notice from style without my permission.
    -- You cannot use images from this style anywhere else without my permission.
    -- You can convert this style to another software, but converted style must have my copyright.
    -- If you want to create new phpBB style based on this style you must ask my permission.
    -- If you modify this style it still should contain my copyright because it is based on my work. Modified style should not be available for download without my permission.
    -
    -For support visit: http://www.phpbbstyles.com
    -
    -Sincerely,
    -Vjacheslav Trushkin. -

    - -

    {L_FORUM_STATS}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_STATISTIC}{L_VALUE}{L_STATISTIC}{L_VALUE}
    {L_NUMBER_POSTS}:{NUMBER_OF_POSTS}{L_POSTS_PER_DAY}:{POSTS_PER_DAY}
    {L_NUMBER_TOPICS}:{NUMBER_OF_TOPICS}{L_TOPICS_PER_DAY}:{TOPICS_PER_DAY}
    {L_NUMBER_USERS}:{NUMBER_OF_USERS}{L_USERS_PER_DAY}:{USERS_PER_DAY}
    {L_BOARD_STARTED}:{START_DATE}{L_AVATAR_DIR_SIZE}:{AVATAR_DIR_SIZE}
    {L_DB_SIZE}:{DB_SIZE}{L_GZIP_COMPRESSION}:{GZIP_COMPRESSION}
    -

    {L_WHO_IS_ONLINE}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_STARTED}  {L_LAST_UPDATE}  {L_FORUM_LOCATION}  {L_IP_ADDRESS} 
     {reg_user_row.USERNAME}  {reg_user_row.STARTED}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION}  {reg_user_row.IP_ADDRESS} 
    .
     {guest_user_row.USERNAME}  {guest_user_row.STARTED}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION}  {guest_user_row.IP_ADDRESS} 
    - -
    diff --git a/phpBB2_old/templates/Helius/admin/index_frameset.tpl b/phpBB2_old/templates/Helius/admin/index_frameset.tpl deleted file mode 100644 index fef79af..0000000 --- a/phpBB2_old/templates/Helius/admin/index_frameset.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - -phpBB Administration - - - - - - - - - - <body bgcolor="#FFFFFF" text="#000000"> - <p>Sorry, your browser doesn't seem to support frames</p> - </body> - - \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/admin/index_navigate.tpl b/phpBB2_old/templates/Helius/admin/index_navigate.tpl deleted file mode 100644 index 6d964ce..0000000 --- a/phpBB2_old/templates/Helius/admin/index_navigate.tpl +++ /dev/null @@ -1,34 +0,0 @@ - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_ADMIN}
    {L_ADMIN_INDEX}
    {L_FORUM_INDEX}
    {L_PREVIEW_FORUM}
    {catrow.ADMIN_CATEGORY}
    {catrow.modulerow.ADMIN_MODULE} -
    -
    - -
    diff --git a/phpBB2_old/templates/Helius/admin/page_footer.tpl b/phpBB2_old/templates/Helius/admin/page_footer.tpl deleted file mode 100644 index bc8db70..0000000 --- a/phpBB2_old/templates/Helius/admin/page_footer.tpl +++ /dev/null @@ -1,35 +0,0 @@ - - - -
    Powered by phpBB {PHPBB_VERSION} © 2001-2004 phpBB Group
    Theme created by Vjacheslav Trushkin
    {TRANSLATION_INFO}
    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/admin/page_header.tpl b/phpBB2_old/templates/Helius/admin/page_header.tpl deleted file mode 100644 index 865f442..0000000 --- a/phpBB2_old/templates/Helius/admin/page_header.tpl +++ /dev/null @@ -1,21 +0,0 @@ - - - -{META} - - - -{SITENAME} - {L_PHPBB_ADMIN} - - - -
    For support for this phpBB Style visit phpBBStyles.com

    diff --git a/phpBB2_old/templates/Helius/admin/ranks_edit_body.tpl b/phpBB2_old/templates/Helius/admin/ranks_edit_body.tpl deleted file mode 100644 index b3974ea..0000000 --- a/phpBB2_old/templates/Helius/admin/ranks_edit_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - - - - -
    {L_RANKS_TITLE}
    {L_RANK_TITLE}:
    {L_RANK_SPECIAL}{L_YES}    {L_NO}
    {L_RANK_MINIMUM}:
    {L_RANK_IMAGE}:
    - {L_RANK_IMAGE_EXPLAIN}

    {IMAGE_DISPLAY}
      
    -{S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/Helius/admin/ranks_list_body.tpl b/phpBB2_old/templates/Helius/admin/ranks_list_body.tpl deleted file mode 100644 index 368326f..0000000 --- a/phpBB2_old/templates/Helius/admin/ranks_list_body.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - -
    {L_RANK}{L_RANK_MINIMUM}{L_SPECIAL_RANK}{L_EDIT}{L_DELETE}
    {ranks.RANK}{ranks.RANK_MIN}{ranks.SPECIAL_RANK}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2_old/templates/Helius/admin/smile_edit_body.tpl b/phpBB2_old/templates/Helius/admin/smile_edit_body.tpl deleted file mode 100644 index b453afc..0000000 --- a/phpBB2_old/templates/Helius/admin/smile_edit_body.tpl +++ /dev/null @@ -1,34 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - - - -
    - - - - - - - - - - - - - - - - - - -
    {L_SMILEY_CONFIG}
    {L_SMILEY_CODE}
    {L_SMILEY_URL}    
    {L_SMILEY_EMOTION}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/Helius/admin/smile_import_body.tpl b/phpBB2_old/templates/Helius/admin/smile_import_body.tpl deleted file mode 100644 index 9881cb1..0000000 --- a/phpBB2_old/templates/Helius/admin/smile_import_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_SMILEY_IMPORT}
    {L_SELECT_LBL}{S_SMILE_SELECT}
    {L_DEL_EXISTING}
    {L_CONFLICTS}
    {L_REPLACE_EXISTING}   {L_KEEP_EXISTING}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/Helius/admin/smile_list_body.tpl b/phpBB2_old/templates/Helius/admin/smile_list_body.tpl deleted file mode 100644 index ae85ad9..0000000 --- a/phpBB2_old/templates/Helius/admin/smile_list_body.tpl +++ /dev/null @@ -1,25 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - -
    {L_CODE}{L_SMILE}{L_EMOT}{L_ACTION}
    {smiles.CODE}{smiles.CODE}{smiles.EMOT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}    
    diff --git a/phpBB2_old/templates/Helius/admin/styles_addnew_body.tpl b/phpBB2_old/templates/Helius/admin/styles_addnew_body.tpl deleted file mode 100644 index 6240a79..0000000 --- a/phpBB2_old/templates/Helius/admin/styles_addnew_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_ADD_TEXT}

    - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_ACTION}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_INSTALL}
    diff --git a/phpBB2_old/templates/Helius/admin/styles_edit_body.tpl b/phpBB2_old/templates/Helius/admin/styles_edit_body.tpl deleted file mode 100644 index 08cf721..0000000 --- a/phpBB2_old/templates/Helius/admin/styles_edit_body.tpl +++ /dev/null @@ -1,246 +0,0 @@ - -

    {L_THEMES_TITLE}

    - -

    {L_THEMES_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_THEME_SETTINGS}
    {L_THEME_NAME}:
    {L_TEMPLATE}:{S_TEMPLATE_SELECT}
    {L_THEME_ELEMENT}{L_VALUE}{L_SIMPLE_NAME}
    {L_STYLESHEET}:
    Filename for CSS stylesheet to use for this theme.
     
    {L_BACKGROUND_IMAGE}: 
    {L_BACKGROUND_COLOR}: 
    {L_BODY_TEXT_COLOR}: 
    {L_BODY_LINK_COLOR}: 
    {L_BODY_VLINK_COLOR}: 
    {L_BODY_ALINK_COLOR}: 
    {L_BODY_HLINK_COLOR}: 
    {L_TR_COLOR1}: -
    {L_TR_COLOR2}: -
    {L_TR_COLOR3}: -
    {L_TR_CLASS1}: -
    {L_TR_CLASS2}: -
    {L_TR_CLASS3}: -
    {L_TH_COLOR1}: -
    {L_TH_COLOR2}: -
    {L_TH_COLOR3}: -
    {L_TH_CLASS1}: -
    {L_TH_CLASS2}: -
    {L_TH_CLASS3}: -
    {L_TD_COLOR1}: -
    {L_TD_COLOR2}: -
    {L_TD_COLOR3}: -
    {L_TD_CLASS1}: -
    {L_TD_CLASS2}: -
    {L_TD_CLASS3}: -
    {L_FONTFACE_1}: -
    {L_FONTFACE_2}: -
    {L_FONTFACE_3}: -
    {L_FONTSIZE_1}: -
    {L_FONTSIZE_2}: -
    {L_FONTSIZE_3}: -
    {L_FONTCOLOR_1}: -
    {L_FONTCOLOR_2}: -
    {L_FONTCOLOR_3}: -
    {L_SPAN_CLASS_1}: -
    {L_SPAN_CLASS_2}: -
    {L_SPAN_CLASS_3}: -
    {S_HIDDEN_FIELDS} -
    - -
    diff --git a/phpBB2_old/templates/Helius/admin/styles_exporter.tpl b/phpBB2_old/templates/Helius/admin/styles_exporter.tpl deleted file mode 100644 index 2056260..0000000 --- a/phpBB2_old/templates/Helius/admin/styles_exporter.tpl +++ /dev/null @@ -1,14 +0,0 @@ - -

    {L_STYLE_EXPORTER}

    - -

    {L_EXPORTER_EXPLAIN}

    - -
    - - - - - - - -
    {L_TEMPLATE_SELECT}
    {S_TEMPLATE_SELECT}   
    diff --git a/phpBB2_old/templates/Helius/admin/styles_list_body.tpl b/phpBB2_old/templates/Helius/admin/styles_list_body.tpl deleted file mode 100644 index 915fe49..0000000 --- a/phpBB2_old/templates/Helius/admin/styles_list_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_TEXT}

    - - - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_EDIT}{L_DELETE}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2_old/templates/Helius/admin/user_avatar_gallery.tpl b/phpBB2_old/templates/Helius/admin/user_avatar_gallery.tpl deleted file mode 100644 index db861ee..0000000 --- a/phpBB2_old/templates/Helius/admin/user_avatar_gallery.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}:  
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/Helius/admin/user_ban_body.tpl b/phpBB2_old/templates/Helius/admin/user_ban_body.tpl deleted file mode 100644 index c805f7b..0000000 --- a/phpBB2_old/templates/Helius/admin/user_ban_body.tpl +++ /dev/null @@ -1,54 +0,0 @@ - -

    {L_BAN_TITLE}

    - -

    {L_BAN_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BAN_USER}
    {L_USERNAME}: {S_HIDDEN_FIELDS}
    {L_UNBAN_USER}
    {L_USERNAME}:
    {L_UNBAN_USER_EXPLAIN}
    {S_UNBAN_USERLIST_SELECT}
    {L_BAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_BAN_IP_EXPLAIN}
    {L_UNBAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_UNBAN_IP_EXPLAIN}
    {S_UNBAN_IPLIST_SELECT}
    {L_BAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_BAN_EMAIL_EXPLAIN}
    {L_UNBAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_UNBAN_EMAIL_EXPLAIN}
    {S_UNBAN_EMAILLIST_SELECT}
      
    - -

    {L_BAN_EXPLAIN_WARN}

    diff --git a/phpBB2_old/templates/Helius/admin/user_edit_body.tpl b/phpBB2_old/templates/Helius/admin/user_edit_body.tpl deleted file mode 100644 index 359bdeb..0000000 --- a/phpBB2_old/templates/Helius/admin/user_edit_body.tpl +++ /dev/null @@ -1,310 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -{ERROR_BOX} - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER} - -
    {L_AIM} - -
    {L_MESSENGER} - -
    {L_YAHOO} - -
    {L_WEBSITE} - -
    {L_LOCATION} - -
    {L_OCCUPATION} - -
    {L_INTERESTS} - -
    {L_SIGNATURE}
    - {L_SIGNATURE_EXPLAIN}
    -
    - {HTML_STATUS}
    - {BBCODE_STATUS}
    - {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL} - - {L_YES}   - - {L_NO}
    {L_HIDE_USER} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES} - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}{LANGUAGE_SELECT}
    {L_BOARD_STYLE}{STYLE_SELECT}
    {L_TIMEZONE}{TIMEZONE_SELECT}
    {L_DATE_FORMAT}
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    - {AVATAR}
    - -  {L_DELETE_AVATAR}
    -
    {L_UPLOAD_AVATAR_FILE} - - -
    {L_UPLOAD_AVATAR_URL} - -
    {L_LINK_REMOTE_AVATAR} - -
    {L_AVATAR_GALLERY} - -
     
    {L_SPECIAL}
    {L_SPECIAL_EXPLAIN}
    {L_USER_ACTIVE} - - {L_YES}   - - {L_NO}
    {L_ALLOW_PM} - - {L_YES}   - - {L_NO}
    {L_ALLOW_AVATAR} - - {L_YES}   - - {L_NO}
    {L_SELECT_RANK}
    {L_DELETE_USER}? - - {L_DELETE_USER_EXPLAIN}
    {S_HIDDEN_FIELDS} - -    - -
    diff --git a/phpBB2_old/templates/Helius/admin/user_email_body.tpl b/phpBB2_old/templates/Helius/admin/user_email_body.tpl deleted file mode 100644 index 5f52658..0000000 --- a/phpBB2_old/templates/Helius/admin/user_email_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_EMAIL_TITLE}

    - -

    {L_EMAIL_EXPLAIN}

    - -
    - -{ERROR_BOX} - - - - - - - - - - - - - - - - - - -
    {L_COMPOSE}
    {L_RECIPIENTS}{S_GROUP_SELECT}
    {L_EMAIL_SUBJECT}
    {L_EMAIL_MSG} - -
    - -
    diff --git a/phpBB2_old/templates/Helius/admin/user_select_body.tpl b/phpBB2_old/templates/Helius/admin/user_select_body.tpl deleted file mode 100644 index 5d7a31b..0000000 --- a/phpBB2_old/templates/Helius/admin/user_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - -
    {L_USER_SELECT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/Helius/admin/words_edit_body.tpl b/phpBB2_old/templates/Helius/admin/words_edit_body.tpl deleted file mode 100644 index 569a94f..0000000 --- a/phpBB2_old/templates/Helius/admin/words_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - -
    {L_WORD_CENSOR}
    {L_WORD}
    {L_REPLACEMENT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/Helius/admin/words_list_body.tpl b/phpBB2_old/templates/Helius/admin/words_list_body.tpl deleted file mode 100644 index 40acf81..0000000 --- a/phpBB2_old/templates/Helius/admin/words_list_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - - - -
    {L_WORD}{L_REPLACEMENT}{L_ACTION}
    {words.WORD}{words.REPLACEMENT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/Helius/agreement.tpl b/phpBB2_old/templates/Helius/agreement.tpl deleted file mode 100644 index a8d7c1a..0000000 --- a/phpBB2_old/templates/Helius/agreement.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - -
    {L_INDEX}
    - - -{TPL_HDR1}{SITENAME} - {REGISTRATION}{TPL_HDR2} - - - -
    - - - -

    {AGREEMENT}



    {TPL_FTR} \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/bbcode.tpl b/phpBB2_old/templates/Helius/bbcode.tpl deleted file mode 100644 index caef76b..0000000 --- a/phpBB2_old/templates/Helius/bbcode.tpl +++ /dev/null @@ -1,60 +0,0 @@ -
      -
    - -
      -
    - -
  • - - - - - - - - - -
    {USERNAME} {L_WROTE}:
    - - - - - - - - -
    {L_QUOTE}:
    -
    - - - - - - - - - - -
    {L_CODE}:
    -
    - - - - - - - - - - - - - - - - - - - - -{DESCRIPTION} - -{EMAIL} diff --git a/phpBB2_old/templates/Helius/confirm_body.tpl b/phpBB2_old/templates/Helius/confirm_body.tpl deleted file mode 100644 index a0fe52e..0000000 --- a/phpBB2_old/templates/Helius/confirm_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - - - - - -
    - -{TPL_HDR1}{MESSAGE_TITLE}{TPL_HDR2} - - - -

    {MESSAGE_TEXT}

    {S_HIDDEN_FIELDS}  
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/error_body.tpl b/phpBB2_old/templates/Helius/error_body.tpl deleted file mode 100644 index ef3cc3a..0000000 --- a/phpBB2_old/templates/Helius/error_body.tpl +++ /dev/null @@ -1,17 +0,0 @@ - -{TPL_HDR1} {TPL_HDR2} - - - -
    - - - - - - - - - -
     
    {ERROR_MESSAGE}
     
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/faq_body.tpl b/phpBB2_old/templates/Helius/faq_body.tpl deleted file mode 100644 index 87d7319..0000000 --- a/phpBB2_old/templates/Helius/faq_body.tpl +++ /dev/null @@ -1,41 +0,0 @@ - - - - - -
    - -{TPL_HDR1}{L_FAQ_TITLE}{TPL_HDR2} - - - -
    - - {faq_block_link.BLOCK_TITLE}
    - - {faq_block_link.faq_row_link.FAQ_LINK}
    - -
    - -
    {TPL_FTR} -
    - - -{TPL_HDR1}{faq_block.BLOCK_TITLE}{TPL_HDR2} - - - - - - - - -
    {faq_block.faq_row.FAQ_QUESTION}
    {faq_block.faq_row.FAQ_ANSWER}
    {L_BACK_TO_TOP}
    -
    - - - - - - -
    {S_TIMEZONE}

    {JUMPBOX}
    diff --git a/phpBB2_old/templates/Helius/formIE.css b/phpBB2_old/templates/Helius/formIE.css deleted file mode 100644 index fde54cb..0000000 --- a/phpBB2_old/templates/Helius/formIE.css +++ /dev/null @@ -1,19 +0,0 @@ -/* Fancy form styles for IE */ - -input, textarea, select { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -input { text-indent : 2px; } - -input.button { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -.postbody { line-height: 18px} diff --git a/phpBB2_old/templates/Helius/groupcp_info_body.tpl b/phpBB2_old/templates/Helius/groupcp_info_body.tpl deleted file mode 100644 index 1130a2e..0000000 --- a/phpBB2_old/templates/Helius/groupcp_info_body.tpl +++ /dev/null @@ -1,128 +0,0 @@ - -
    - - - - - -
    - -{TPL_HDR1}{L_GROUP_INFORMATION}{TPL_HDR2} - - - - - - - - - - - - - - - - - - -
    {L_GROUP_NAME}:{GROUP_NAME}
    {L_GROUP_DESC}:{GROUP_DESC}
    {L_GROUP_MEMBERSHIP}:{GROUP_DETAILS}    - - - - - - -
    {L_GROUP_TYPE}: {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}   
    {TPL_FTR} -
    -{S_HIDDEN_FIELDS} -
    - - -
    -{TPL_HDR1}{L_GROUP_MODERATOR}{TPL_HDR2} - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {MOD_PM_IMG} {MOD_USERNAME}{MOD_POSTS}{MOD_FROM}{MOD_EMAIL_IMG}{MOD_WWW_IMG}  
    {TPL_FTR} -
    - -{TPL_HDR1}{L_GROUP_MEMBERS}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {member_row.PM_IMG} {member_row.USERNAME}{member_row.POSTS} {member_row.FROM}{member_row.EMAIL_IMG} {member_row.WWW_IMG} - - - -
    {L_NO_MEMBERS}
    {L_HIDDEN_MEMBERS}
    - -
    {TPL_FTR} - - - - - - -
    - -

    - - {PAGE_NUMBER}
    {S_TIMEZONE}
    {PAGINATION}
    - -{PENDING_USER_BOX} - -{S_HIDDEN_FIELDS}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/Helius/groupcp_pending_info.tpl b/phpBB2_old/templates/Helius/groupcp_pending_info.tpl deleted file mode 100644 index 0ef48f1..0000000 --- a/phpBB2_old/templates/Helius/groupcp_pending_info.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -{TPL_HDR1}{L_PENDING_MEMBERS}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {pending_members_row.PM_IMG} {pending_members_row.USERNAME}{pending_members_row.POSTS}{pending_members_row.FROM}{pending_members_row.EMAIL_IMG}{pending_members_row.WWW_IMG}
    - -   - -
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/groupcp_user_body.tpl b/phpBB2_old/templates/Helius/groupcp_user_body.tpl deleted file mode 100644 index 5bc9dff..0000000 --- a/phpBB2_old/templates/Helius/groupcp_user_body.tpl +++ /dev/null @@ -1,73 +0,0 @@ - - - - - -
    {L_INDEX}
    - - -{TPL_HDR1}{L_GROUP_MEMBERSHIP_DETAILS}{TPL_HDR2} - - - - - - - - - - - - -
    {L_YOU_BELONG_GROUPS} - - - - -
    {GROUP_MEMBER_SELECT} - {S_HIDDEN_FIELDS} -
    {L_PENDING_GROUPS} - - - - - -
    {GROUP_PENDING_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {TPL_FTR} -
    - - - -{TPL_HDR1}{L_JOIN_A_GROUP}{TPL_HDR2} - - - - -
    {L_SELECT_A_GROUP} - - - - - -
    {GROUP_LIST_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {TPL_FTR} -
    - - - - - - -
    {S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/Helius/images/bg_cat.gif b/phpBB2_old/templates/Helius/images/bg_cat.gif deleted file mode 100644 index 86c9f7f..0000000 Binary files a/phpBB2_old/templates/Helius/images/bg_cat.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/bg_cat.gif.backup b/phpBB2_old/templates/Helius/images/bg_cat.gif.backup deleted file mode 100644 index ffdc0ee..0000000 Binary files a/phpBB2_old/templates/Helius/images/bg_cat.gif.backup and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/bg_cat2.gif b/phpBB2_old/templates/Helius/images/bg_cat2.gif deleted file mode 100644 index d142e2d..0000000 Binary files a/phpBB2_old/templates/Helius/images/bg_cat2.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/bg_cat4.gif b/phpBB2_old/templates/Helius/images/bg_cat4.gif deleted file mode 100644 index 7034856..0000000 Binary files a/phpBB2_old/templates/Helius/images/bg_cat4.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/bg_main.gif b/phpBB2_old/templates/Helius/images/bg_main.gif deleted file mode 100644 index 3f65ef4..0000000 Binary files a/phpBB2_old/templates/Helius/images/bg_main.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/bottom_center.gif b/phpBB2_old/templates/Helius/images/bottom_center.gif deleted file mode 100644 index db623cc..0000000 Binary files a/phpBB2_old/templates/Helius/images/bottom_center.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/bottom_left.gif b/phpBB2_old/templates/Helius/images/bottom_left.gif deleted file mode 100644 index 72708e6..0000000 Binary files a/phpBB2_old/templates/Helius/images/bottom_left.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/bottom_right.gif b/phpBB2_old/templates/Helius/images/bottom_right.gif deleted file mode 100644 index bb20603..0000000 Binary files a/phpBB2_old/templates/Helius/images/bottom_right.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/btn_bg.gif b/phpBB2_old/templates/Helius/images/btn_bg.gif deleted file mode 100644 index f8e2ee2..0000000 Binary files a/phpBB2_old/templates/Helius/images/btn_bg.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/btn_left.gif b/phpBB2_old/templates/Helius/images/btn_left.gif deleted file mode 100644 index c7ec2a1..0000000 Binary files a/phpBB2_old/templates/Helius/images/btn_left.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/btn_right.gif b/phpBB2_old/templates/Helius/images/btn_right.gif deleted file mode 100644 index d3202c5..0000000 Binary files a/phpBB2_old/templates/Helius/images/btn_right.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/cellpic.gif b/phpBB2_old/templates/Helius/images/cellpic.gif deleted file mode 100644 index 47457ef..0000000 Binary files a/phpBB2_old/templates/Helius/images/cellpic.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/cellpic1.gif b/phpBB2_old/templates/Helius/images/cellpic1.gif deleted file mode 100644 index 715b8d4..0000000 Binary files a/phpBB2_old/templates/Helius/images/cellpic1.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/cellpic2.jpg b/phpBB2_old/templates/Helius/images/cellpic2.jpg deleted file mode 100644 index a0ca7e8..0000000 Binary files a/phpBB2_old/templates/Helius/images/cellpic2.jpg and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/cellpic3.gif b/phpBB2_old/templates/Helius/images/cellpic3.gif deleted file mode 100644 index ecf70e1..0000000 Binary files a/phpBB2_old/templates/Helius/images/cellpic3.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/created_by.jpg b/phpBB2_old/templates/Helius/images/created_by.jpg deleted file mode 100644 index 1f8e8b9..0000000 Binary files a/phpBB2_old/templates/Helius/images/created_by.jpg and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/folder.gif b/phpBB2_old/templates/Helius/images/folder.gif deleted file mode 100644 index ad8af67..0000000 Binary files a/phpBB2_old/templates/Helius/images/folder.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/folder_announce.gif b/phpBB2_old/templates/Helius/images/folder_announce.gif deleted file mode 100644 index ad8af67..0000000 Binary files a/phpBB2_old/templates/Helius/images/folder_announce.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/folder_announce_new.gif b/phpBB2_old/templates/Helius/images/folder_announce_new.gif deleted file mode 100644 index 6276c26..0000000 Binary files a/phpBB2_old/templates/Helius/images/folder_announce_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/folder_big.gif b/phpBB2_old/templates/Helius/images/folder_big.gif deleted file mode 100644 index 2946e65..0000000 Binary files a/phpBB2_old/templates/Helius/images/folder_big.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/folder_hot.gif b/phpBB2_old/templates/Helius/images/folder_hot.gif deleted file mode 100644 index 7d307f1..0000000 Binary files a/phpBB2_old/templates/Helius/images/folder_hot.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/folder_lock.gif b/phpBB2_old/templates/Helius/images/folder_lock.gif deleted file mode 100644 index 1b477ce..0000000 Binary files a/phpBB2_old/templates/Helius/images/folder_lock.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/folder_lock_new.gif b/phpBB2_old/templates/Helius/images/folder_lock_new.gif deleted file mode 100644 index b03adc4..0000000 Binary files a/phpBB2_old/templates/Helius/images/folder_lock_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/folder_locked_big.gif b/phpBB2_old/templates/Helius/images/folder_locked_big.gif deleted file mode 100644 index 187e4a4..0000000 Binary files a/phpBB2_old/templates/Helius/images/folder_locked_big.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/folder_new.gif b/phpBB2_old/templates/Helius/images/folder_new.gif deleted file mode 100644 index 6276c26..0000000 Binary files a/phpBB2_old/templates/Helius/images/folder_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/folder_new_big.gif b/phpBB2_old/templates/Helius/images/folder_new_big.gif deleted file mode 100644 index 4e9c91f..0000000 Binary files a/phpBB2_old/templates/Helius/images/folder_new_big.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/folder_new_hot.gif b/phpBB2_old/templates/Helius/images/folder_new_hot.gif deleted file mode 100644 index 4c4036a..0000000 Binary files a/phpBB2_old/templates/Helius/images/folder_new_hot.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/folder_sticky.gif b/phpBB2_old/templates/Helius/images/folder_sticky.gif deleted file mode 100644 index ad8af67..0000000 Binary files a/phpBB2_old/templates/Helius/images/folder_sticky.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/folder_sticky_new.gif b/phpBB2_old/templates/Helius/images/folder_sticky_new.gif deleted file mode 100644 index 6276c26..0000000 Binary files a/phpBB2_old/templates/Helius/images/folder_sticky_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/icon_aim.gif b/phpBB2_old/templates/Helius/images/icon_aim.gif deleted file mode 100644 index cc381d2..0000000 Binary files a/phpBB2_old/templates/Helius/images/icon_aim.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/icon_delete.gif b/phpBB2_old/templates/Helius/images/icon_delete.gif deleted file mode 100644 index 98dd64e..0000000 Binary files a/phpBB2_old/templates/Helius/images/icon_delete.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/icon_icq_add.gif b/phpBB2_old/templates/Helius/images/icon_icq_add.gif deleted file mode 100644 index 3ef1fe2..0000000 Binary files a/phpBB2_old/templates/Helius/images/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/icon_ip.gif b/phpBB2_old/templates/Helius/images/icon_ip.gif deleted file mode 100644 index f777926..0000000 Binary files a/phpBB2_old/templates/Helius/images/icon_ip.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/icon_latest_reply.gif b/phpBB2_old/templates/Helius/images/icon_latest_reply.gif deleted file mode 100644 index fa04fb2..0000000 Binary files a/phpBB2_old/templates/Helius/images/icon_latest_reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/icon_minipost.gif b/phpBB2_old/templates/Helius/images/icon_minipost.gif deleted file mode 100644 index e68e0fa..0000000 Binary files a/phpBB2_old/templates/Helius/images/icon_minipost.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/icon_minipost_new.gif b/phpBB2_old/templates/Helius/images/icon_minipost_new.gif deleted file mode 100644 index e8e1df0..0000000 Binary files a/phpBB2_old/templates/Helius/images/icon_minipost_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/icon_msnm.gif b/phpBB2_old/templates/Helius/images/icon_msnm.gif deleted file mode 100644 index ce1a938..0000000 Binary files a/phpBB2_old/templates/Helius/images/icon_msnm.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/icon_newest_reply.gif b/phpBB2_old/templates/Helius/images/icon_newest_reply.gif deleted file mode 100644 index 24f8a27..0000000 Binary files a/phpBB2_old/templates/Helius/images/icon_newest_reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/icon_yim.gif b/phpBB2_old/templates/Helius/images/icon_yim.gif deleted file mode 100644 index 379b3b6..0000000 Binary files a/phpBB2_old/templates/Helius/images/icon_yim.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/index.htm b/phpBB2_old/templates/Helius/images/index.htm deleted file mode 100644 index 58ffcd2..0000000 --- a/phpBB2_old/templates/Helius/images/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -Created by Vjacheslav Trushkin - - - - - - - - - -
    Created by Vjacheslav Trushkin
    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_faq.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_faq.gif deleted file mode 100644 index 62e17cc..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_faq.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_faq_on.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_faq_on.gif deleted file mode 100644 index d0bb3d8..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_faq_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_groups.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_groups.gif deleted file mode 100644 index 4a82b8f..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_groups.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_groups_on.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_groups_on.gif deleted file mode 100644 index 089a3b9..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_groups_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_index.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_index.gif deleted file mode 100644 index c47adbb..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_index.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_index_on.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_index_on.gif deleted file mode 100644 index af0d2e2..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_index_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_login.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_login.gif deleted file mode 100644 index cffd402..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_login.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_login_on.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_login_on.gif deleted file mode 100644 index df4a302..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_login_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_logout.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_logout.gif deleted file mode 100644 index 9babd64..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_logout.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_logout_on.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_logout_on.gif deleted file mode 100644 index 68b8289..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_logout_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_pm.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_pm.gif deleted file mode 100644 index a1f23fd..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_pm.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_pm_on.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_pm_on.gif deleted file mode 100644 index 99e8ee1..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_pm_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_profile.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_profile.gif deleted file mode 100644 index 7906a8d..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_profile.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_profile_on.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_profile_on.gif deleted file mode 100644 index 649293b..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_profile_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_register.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_register.gif deleted file mode 100644 index 59e8057..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_register.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_register_on.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_register_on.gif deleted file mode 100644 index 6f74375..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_register_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_search.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_search.gif deleted file mode 100644 index 14b9b4c..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_search.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_search_on.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_search_on.gif deleted file mode 100644 index 27bb422..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_search_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_users.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_users.gif deleted file mode 100644 index 69c4e13..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_users.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/btn_users_on.gif b/phpBB2_old/templates/Helius/images/lang_english/btn_users_on.gif deleted file mode 100644 index 424e06f..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/btn_users_on.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/icon_edit.gif b/phpBB2_old/templates/Helius/images/lang_english/icon_edit.gif deleted file mode 100644 index d47c75d..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/icon_edit.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/icon_email.gif b/phpBB2_old/templates/Helius/images/lang_english/icon_email.gif deleted file mode 100644 index 4fb9360..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/icon_email.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/icon_pm.gif b/phpBB2_old/templates/Helius/images/lang_english/icon_pm.gif deleted file mode 100644 index 62e0ba8..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/icon_pm.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/icon_profile.gif b/phpBB2_old/templates/Helius/images/lang_english/icon_profile.gif deleted file mode 100644 index 558cfcb..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/icon_profile.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/icon_quote.gif b/phpBB2_old/templates/Helius/images/lang_english/icon_quote.gif deleted file mode 100644 index 938a134..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/icon_quote.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/icon_search.gif b/phpBB2_old/templates/Helius/images/lang_english/icon_search.gif deleted file mode 100644 index 80d551a..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/icon_search.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/icon_www.gif b/phpBB2_old/templates/Helius/images/lang_english/icon_www.gif deleted file mode 100644 index 699f632..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/icon_www.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/msg_newpost.gif b/phpBB2_old/templates/Helius/images/lang_english/msg_newpost.gif deleted file mode 100644 index 23dba89..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/msg_newpost.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/post.gif b/phpBB2_old/templates/Helius/images/lang_english/post.gif deleted file mode 100644 index cc0b645..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/post.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/reply-locked.gif b/phpBB2_old/templates/Helius/images/lang_english/reply-locked.gif deleted file mode 100644 index 2b1c365..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/reply-locked.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/lang_english/reply.gif b/phpBB2_old/templates/Helius/images/lang_english/reply.gif deleted file mode 100644 index ce20aa7..0000000 Binary files a/phpBB2_old/templates/Helius/images/lang_english/reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/logo1.gif b/phpBB2_old/templates/Helius/images/logo1.gif deleted file mode 100644 index a0c5843..0000000 Binary files a/phpBB2_old/templates/Helius/images/logo1.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/logo2.gif b/phpBB2_old/templates/Helius/images/logo2.gif deleted file mode 100644 index bd6b494..0000000 Binary files a/phpBB2_old/templates/Helius/images/logo2.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/logo_bg.gif b/phpBB2_old/templates/Helius/images/logo_bg.gif deleted file mode 100644 index 8225bbd..0000000 Binary files a/phpBB2_old/templates/Helius/images/logo_bg.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/logo_phpBB_med.gif b/phpBB2_old/templates/Helius/images/logo_phpBB_med.gif deleted file mode 100644 index 3d84f94..0000000 Binary files a/phpBB2_old/templates/Helius/images/logo_phpBB_med.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/msg_inbox.gif b/phpBB2_old/templates/Helius/images/msg_inbox.gif deleted file mode 100644 index a6ad3d5..0000000 Binary files a/phpBB2_old/templates/Helius/images/msg_inbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/msg_outbox.gif b/phpBB2_old/templates/Helius/images/msg_outbox.gif deleted file mode 100644 index 14f7469..0000000 Binary files a/phpBB2_old/templates/Helius/images/msg_outbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/msg_savebox.gif b/phpBB2_old/templates/Helius/images/msg_savebox.gif deleted file mode 100644 index 2a8d080..0000000 Binary files a/phpBB2_old/templates/Helius/images/msg_savebox.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/msg_sentbox.gif b/phpBB2_old/templates/Helius/images/msg_sentbox.gif deleted file mode 100644 index fc8746a..0000000 Binary files a/phpBB2_old/templates/Helius/images/msg_sentbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/post_bg.gif b/phpBB2_old/templates/Helius/images/post_bg.gif deleted file mode 100644 index ae88cf1..0000000 Binary files a/phpBB2_old/templates/Helius/images/post_bg.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/post_bottom.gif b/phpBB2_old/templates/Helius/images/post_bottom.gif deleted file mode 100644 index 36e5571..0000000 Binary files a/phpBB2_old/templates/Helius/images/post_bottom.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/post_corner.gif b/phpBB2_old/templates/Helius/images/post_corner.gif deleted file mode 100644 index 1e21447..0000000 Binary files a/phpBB2_old/templates/Helius/images/post_corner.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/post_right.gif b/phpBB2_old/templates/Helius/images/post_right.gif deleted file mode 100644 index 5bc1e43..0000000 Binary files a/phpBB2_old/templates/Helius/images/post_right.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/spacer.gif b/phpBB2_old/templates/Helius/images/spacer.gif deleted file mode 100644 index 5bfd67a..0000000 Binary files a/phpBB2_old/templates/Helius/images/spacer.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/top_center.gif b/phpBB2_old/templates/Helius/images/top_center.gif deleted file mode 100644 index 62dd737..0000000 Binary files a/phpBB2_old/templates/Helius/images/top_center.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/top_left.gif b/phpBB2_old/templates/Helius/images/top_left.gif deleted file mode 100644 index 50cf243..0000000 Binary files a/phpBB2_old/templates/Helius/images/top_left.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/top_right.gif b/phpBB2_old/templates/Helius/images/top_right.gif deleted file mode 100644 index 104c47a..0000000 Binary files a/phpBB2_old/templates/Helius/images/top_right.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/topic_delete.gif b/phpBB2_old/templates/Helius/images/topic_delete.gif deleted file mode 100644 index 2d504d9..0000000 Binary files a/phpBB2_old/templates/Helius/images/topic_delete.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/topic_lock.gif b/phpBB2_old/templates/Helius/images/topic_lock.gif deleted file mode 100644 index 9e65621..0000000 Binary files a/phpBB2_old/templates/Helius/images/topic_lock.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/topic_move.gif b/phpBB2_old/templates/Helius/images/topic_move.gif deleted file mode 100644 index eb0037b..0000000 Binary files a/phpBB2_old/templates/Helius/images/topic_move.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/topic_split.gif b/phpBB2_old/templates/Helius/images/topic_split.gif deleted file mode 100644 index 11d11ec..0000000 Binary files a/phpBB2_old/templates/Helius/images/topic_split.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/topic_unlock.gif b/phpBB2_old/templates/Helius/images/topic_unlock.gif deleted file mode 100644 index d86ada2..0000000 Binary files a/phpBB2_old/templates/Helius/images/topic_unlock.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/vote_lcap.gif b/phpBB2_old/templates/Helius/images/vote_lcap.gif deleted file mode 100644 index a19fce1..0000000 Binary files a/phpBB2_old/templates/Helius/images/vote_lcap.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/vote_rcap.gif b/phpBB2_old/templates/Helius/images/vote_rcap.gif deleted file mode 100644 index 1e9755b..0000000 Binary files a/phpBB2_old/templates/Helius/images/vote_rcap.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/voting_bar.gif b/phpBB2_old/templates/Helius/images/voting_bar.gif deleted file mode 100644 index 5148b3c..0000000 Binary files a/phpBB2_old/templates/Helius/images/voting_bar.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/images/whosonline.gif b/phpBB2_old/templates/Helius/images/whosonline.gif deleted file mode 100644 index d55f4f2..0000000 Binary files a/phpBB2_old/templates/Helius/images/whosonline.gif and /dev/null differ diff --git a/phpBB2_old/templates/Helius/index.htm b/phpBB2_old/templates/Helius/index.htm deleted file mode 100644 index f0035dc..0000000 --- a/phpBB2_old/templates/Helius/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -Created by Vjacheslav Trushkin - - - - - - - - - -
    Created by Vjacheslav Trushkin
    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/index_body.original.tpl b/phpBB2_old/templates/Helius/index_body.original.tpl deleted file mode 100644 index 3c03fec..0000000 --- a/phpBB2_old/templates/Helius/index_body.original.tpl +++ /dev/null @@ -1,108 +0,0 @@ - -vars['PRIVATE_MESSAGE_INFO'])) -{ - $this->vars['PRIVATE_MESSAGE_INFO'] = '' . $this->vars['PRIVATE_MESSAGE_INFO'] . ''; -} - -?> - - - - - - -
    - - {PRIVATE_MESSAGE_INFO}
    - {LAST_VISIT_DATE}
    - - {CURRENT_TIME}
    - {S_TIMEZONE}
    -
    {L_INDEX}
    - - {L_SEARCH_NEW}
    {L_SEARCH_SELF}
    - - {L_SEARCH_UNANSWERED}
    - {L_MARK_FORUMS_READ}
    - - -{TPL_HDR1} {catrow.CAT_DESC} {TPL_HDR2}
    - - - - - - - - - - - - - - - -
     {L_FORUM}  {L_TOPICS}  {L_POSTS}  {L_LASTPOST} 
    {catrow.forumrow.L_FORUM_FOLDER_ALT} {catrow.forumrow.FORUM_NAME}
    -
    {catrow.forumrow.FORUM_DESC}
    -
    {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
    {catrow.forumrow.TOPICS}{catrow.forumrow.POSTS} {catrow.forumrow.LAST_POST}
    {TPL_FTR} - -
    - - -{TPL_HDR1} {L_WHO_IS_ONLINE} {TPL_HDR2} - - - - - - - -
    {L_WHO_IS_ONLINE}{TOTAL_POSTS}
    {TOTAL_USERS}
    {NEWEST_USER}
    -
    {TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
    {RECORD_USERS}
    {LOGGED_IN_USER_LIST}
    {L_ONLINE_EXPLAIN}
    {TPL_FTR} -
    - - -
    -{TPL_HDR1}{L_LOGIN_LOGOUT}{TPL_HDR2} - - - -
    {L_USERNAME}: - -    {L_PASSWORD}: - -      {L_AUTO_LOGIN} - -     - -
    {TPL_FTR} -
    -
    - - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_FORUM_LOCKED}{L_FORUM_LOCKED}
    diff --git a/phpBB2_old/templates/Helius/index_body.tpl b/phpBB2_old/templates/Helius/index_body.tpl deleted file mode 100644 index 1706e4e..0000000 --- a/phpBB2_old/templates/Helius/index_body.tpl +++ /dev/null @@ -1,125 +0,0 @@ - -vars['PRIVATE_MESSAGE_INFO'])) -{ - $this->vars['PRIVATE_MESSAGE_INFO'] = '' . $this->vars['PRIVATE_MESSAGE_INFO'] . ''; -} - -?> - - - - - - -
    - - {PRIVATE_MESSAGE_INFO}
    - {LAST_VISIT_DATE}
    - - {CURRENT_TIME}
    - {S_TIMEZONE}
    -
    - - {L_SEARCH_NEW}
    {L_SEARCH_SELF}
    - - {L_SEARCH_UNANSWERED}
    - {L_MARK_FORUMS_READ}
    - - -{TPL_HDR1} {catrow.CAT_DESC} {TPL_HDR2}
    - - - - - - - - - - - - - - - -
     {L_FORUM}  {L_TOPICS}  {L_POSTS}  {L_LASTPOST} 
    {catrow.forumrow.L_FORUM_FOLDER_ALT} {catrow.forumrow.FORUM_NAME}
    -
    {catrow.forumrow.FORUM_DESC}
    -
    {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
    {catrow.forumrow.TOPICS}{catrow.forumrow.POSTS} {catrow.forumrow.LAST_POST}
    {TPL_FTR} - -
    - - -{TPL_HDR1} {L_WHO_IS_ONLINE} {TPL_HDR2} - - - - - - - -
    {L_WHO_IS_ONLINE}{TOTAL_POSTS}
    {TOTAL_USERS}
    {NEWEST_USER}
    -
    {TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
    {RECORD_USERS}
    {LOGGED_IN_USER_LIST}
    {L_ONLINE_EXPLAIN}
    {TPL_FTR} -
    - - -
    -{TPL_HDR1}{L_LOGIN_LOGOUT}{TPL_HDR2} - - - -
    {L_USERNAME}: - -    {L_PASSWORD}: - -      {L_AUTO_LOGIN} - -     - -
    {TPL_FTR} -
    -
    - - -{L_LOGIN_LOGOUT} -{L_REGISTER} - - -{L_PROFILE} -{PRIVATE_MESSAGE_INFO} - -{L_FAQ} -{L_MEMBERLIST} -{L_SEARCH} - -{L_USERGROUPS} -{L_LOGIN_LOGOUT} - -
    -
    - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_FORUM_LOCKED}{L_FORUM_LOCKED}
    diff --git a/phpBB2_old/templates/Helius/jumpbox.tpl b/phpBB2_old/templates/Helius/jumpbox.tpl deleted file mode 100644 index 208fc9a..0000000 --- a/phpBB2_old/templates/Helius/jumpbox.tpl +++ /dev/null @@ -1,127 +0,0 @@ - - tags. -// - -$str = $this->vars['S_JUMPBOX_SELECT']; -$options = array(); -// getting header -$pos = strpos($str, ' 0) -{ - $start = substr($str, 0, $pos); - $str = substr($str, $pos, strlen($str)); -} -else -{ - $start = 0; -} -// getting footer -$str = strrev($str); -$pos = strpos($str, strrev('')); -if($pos > 0) -{ - $end = strrev(substr($str, 0, $pos)); - $str = substr($str, $pos, strlen($str)); -} -else -{ - $end = ''; -} -$str = trim(strrev($str)); -// getting all options -while(strlen($str) > 0) -{ - $pos = strpos($str, ''); - if($pos > 0) - { - $pos += 9; - $item = trim(substr($str, 0, $pos)); - $str = trim(substr($str, $pos, strlen($str))); - } - else - { - $item = $str; - $str = ''; - } - $value = ''; - $text = ''; - $selected = false; - $pos = strpos($item, '>') + 1; - // getting text - $text = substr($item, $pos, strlen($item)); - $item = substr($item, 0, $pos); - $pos = strpos($text, '<'); - if($pos) - { - $text = substr($text, 0, $pos); - } - // checking if item is selected - if(strpos($str1, ' selected')) - { - $selected = true; - } - // getting value - $pos = strpos($item, 'value="'); - if($pos) - { - $pos += 7; - $str1 = substr($item, $pos, strlen($item)); - $pos = strpos($str1, '"'); - $value = substr($str1, 0, $pos); - } - $options[] = array( - 'text' => $text, - 'value' => $value, - 'selected' => $selected - ); -} - -$text = $start; -$group = 0; -for($i=0; $i= 2) - { - $item = $options[$i+1]; - $i+=2; - $group = true; - $text .= ''; - } - } - else - { - $text .= ''; -} -$text .= $end; -$this->vars['S_JUMPBOX_SELECT'] = $text; - -?> - - - - - - - -
    {S_JUMPBOX_SELECT}  
    \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/login_body.tpl b/phpBB2_old/templates/Helius/login_body.tpl deleted file mode 100644 index d0adda0..0000000 --- a/phpBB2_old/templates/Helius/login_body.tpl +++ /dev/null @@ -1,40 +0,0 @@ - - - - - -
    - - -
    -{TPL_HDR1}{L_ENTER_PASSWORD}{TPL_HDR2} - - - -
    - - - - - - - - - - - - - - - - - - - - -
     
    {L_USERNAME}: - -
    {L_PASSWORD}: - -
    {L_AUTO_LOGIN}:
    {S_HIDDEN_FIELDS}
    {L_SEND_PASSWORD}
    {TPL_FTR} -
    diff --git a/phpBB2_old/templates/Helius/memberlist_body.tpl b/phpBB2_old/templates/Helius/memberlist_body.tpl deleted file mode 100644 index 5053a54..0000000 --- a/phpBB2_old/templates/Helius/memberlist_body.tpl +++ /dev/null @@ -1,48 +0,0 @@ - -
    - - - - - -
    {L_INDEX}{L_SELECT_SORT_METHOD}: {S_MODE_SELECT}  {L_ORDER} {S_ORDER_SELECT}   - -
    - -{TPL_HDR1} {TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - -
    # {L_USERNAME}{L_EMAIL}{L_FROM}{L_JOINED}{L_POSTS}{L_WEBSITE}
     {memberrow.ROW_NUMBER}  {memberrow.PM_IMG} {memberrow.USERNAME} {memberrow.EMAIL_IMG} {memberrow.FROM}{memberrow.JOINED}{memberrow.POSTS} {memberrow.WWW_IMG} 
    {TPL_FTR} - - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/Helius/message_body.tpl b/phpBB2_old/templates/Helius/message_body.tpl deleted file mode 100644 index 702e8bf..0000000 --- a/phpBB2_old/templates/Helius/message_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - - - - - -
    - -{TPL_HDR1}{MESSAGE_TITLE}{TPL_HDR2} - - - -
    - - - - - - - - - -
     
    {MESSAGE_TEXT}
     
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/modcp_body.tpl b/phpBB2_old/templates/Helius/modcp_body.tpl deleted file mode 100644 index dd227e9..0000000 --- a/phpBB2_old/templates/Helius/modcp_body.tpl +++ /dev/null @@ -1,56 +0,0 @@ - -
    - - - - -
    {L_INDEX} » {FORUM_NAME}
    - - -{TPL_HDR1}{L_MOD_CP}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - -
    {L_MOD_CP_EXPLAIN}
      {L_TOPICS}  {L_REPLIES}  {L_LASTPOST}  {L_SELECT} 
    {topicrow.L_TOPIC_FOLDER_ALT} {topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}{topicrow.REPLIES}{topicrow.LAST_POST_TIME} - -
    {S_HIDDEN_FIELDS} - -   - -   - -   - -
    {TPL_FTR} - - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    -
    - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/Helius/modcp_move.tpl b/phpBB2_old/templates/Helius/modcp_move.tpl deleted file mode 100644 index d0eb17c..0000000 --- a/phpBB2_old/templates/Helius/modcp_move.tpl +++ /dev/null @@ -1,36 +0,0 @@ - - - - - -
    - - -
    -{TPL_HDR1}{MESSAGE_TITLE}{TPL_HDR2} - - - -
    - - - - - - - - - - -
     
    {L_MOVE_TO_FORUM}   {S_FORUM_SELECT}

    - {L_LEAVESHADOW}
    -
    - {MESSAGE_TEXT}

    -
    - {S_HIDDEN_FIELDS} - -    - -
     
    -
    {TPL_FTR} -
    diff --git a/phpBB2_old/templates/Helius/modcp_split.tpl b/phpBB2_old/templates/Helius/modcp_split.tpl deleted file mode 100644 index 65acb40..0000000 --- a/phpBB2_old/templates/Helius/modcp_split.tpl +++ /dev/null @@ -1,81 +0,0 @@ - - - - - -
    - -
    -{TPL_HDR1}{L_SPLIT_TOPIC}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SPLIT_TOPIC_EXPLAIN} -
    {L_SPLIT_SUBJECT}
    {L_SPLIT_FORUM}{S_FORUM_SELECT}
    - - - - - -
    - - - -
    -
    {L_AUTHOR}{L_MESSAGE}{L_SELECT}
    {postrow.POSTER_NAME} - - - - - - - -
    {L_POST}{L_POSTED}: - {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}
    -
    - {postrow.MESSAGE}
    -
    {postrow.S_SPLIT_CHECKBOX}
    - - - - - -
    - - - - {S_HIDDEN_FIELDS}
    -
    {TPL_FTR} - - - - - -
    {S_TIMEZONE}
    -
    diff --git a/phpBB2_old/templates/Helius/modcp_viewip.tpl b/phpBB2_old/templates/Helius/modcp_viewip.tpl deleted file mode 100644 index aa56043..0000000 --- a/phpBB2_old/templates/Helius/modcp_viewip.tpl +++ /dev/null @@ -1,53 +0,0 @@ - - - - - -
    {L_INDEX}
    - -{TPL_HDR1}{L_IP_INFO}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - -
    {L_THIS_POST_IP}
    - - - - - -
     {IP} [ {POSTS} ][ {L_LOOKUP_IP} - ] 
    -
    {L_OTHER_USERS}
    - - - - - -
     {userrow.USERNAME} [ {userrow.POSTS} ]{L_SEARCH} -  
    -
    {L_OTHER_IPS}
    - - - - -
     {iprow.IP} [ {iprow.POSTS} ][ {L_LOOKUP_IP} - ] 
    {TPL_FTR} \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/overall_footer.tpl b/phpBB2_old/templates/Helius/overall_footer.tpl deleted file mode 100644 index 09aa337..0000000 --- a/phpBB2_old/templates/Helius/overall_footer.tpl +++ /dev/null @@ -1,7 +0,0 @@ -

    {ADMIN_LINK}
    -Powered by phpBB {PHPBB_VERSION} © 2001-2004 phpBB Group
    -
    - - diff --git a/phpBB2_old/templates/Helius/overall_header.original.tpl b/phpBB2_old/templates/Helius/overall_header.original.tpl deleted file mode 100644 index b9c8c00..0000000 --- a/phpBB2_old/templates/Helius/overall_header.original.tpl +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - -{META} -{NAV_LINKS} -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - -
    - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - -
    {L_LOGIN_LOGOUT}{L_REGISTER}{L_PROFILE}{PRIVATE_MESSAGE_INFO}{L_FAQ}{L_MEMBERLIST}{L_SEARCH}{L_USERGROUPS}{L_LOGIN_LOGOUT}{L_INDEX}
    {SITE_DESCRIPTION}
    -
    - -
    - - - - - -
    diff --git a/phpBB2_old/templates/Helius/overall_header.tpl b/phpBB2_old/templates/Helius/overall_header.tpl deleted file mode 100644 index ad997bd..0000000 --- a/phpBB2_old/templates/Helius/overall_header.tpl +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - -{META} -{NAV_LINKS} -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - - - - - - - - -{SITE_DESCRIPTION} -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/phpBB2_old/templates/Helius/posting_preview.tpl b/phpBB2_old/templates/Helius/posting_preview.tpl deleted file mode 100644 index f7e046f..0000000 --- a/phpBB2_old/templates/Helius/posting_preview.tpl +++ /dev/null @@ -1,34 +0,0 @@ -{TPL_HDR1}{L_PREVIEW}{TPL_HDR2}
    diff --git a/phpBB2_old/templates/Helius/posting_body.tpl b/phpBB2_old/templates/Helius/posting_body.tpl deleted file mode 100644 index f31f8f6..0000000 --- a/phpBB2_old/templates/Helius/posting_body.tpl +++ /dev/null @@ -1,510 +0,0 @@ - -vars['USERNAME'])) -{ - global $HTTP_COOKIE_VARS; - if(isset($HTTP_COOKIE_VARS['guest_name'])) - { - $this->vars['USERNAME'] = htmlspecialchars(stripslashes($HTTP_COOKIE_VARS['guest_name'])); - } -} -?> - - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}  
    -
    - -
    - - -
    - -{POST_PREVIEW_BOX} -{ERROR_BOX} - - - - - - -
    {L_INDEX} - - » {FORUM_NAME}
    - -{TPL_HDR1}{L_POST_A}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - -{POLLBOX} - - - -
    {L_USERNAME}
    {L_USERNAME} 
    {L_SUBJECT} - -
    - - - - - - - -
    {L_MESSAGE_BODY}

    - - - - - - - - - - - - - - - - -
    {L_EMOTICONS}
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}
    -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - - - -
    - - - - - -
     {L_FONT_COLOR}: -  {L_FONT_SIZE}: - {L_BBCODE_CLOSE_TAGS}
    -
    - -
    - -
    -
    {L_OPTIONS}
    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - {L_DISABLE_HTML}
    - - {L_DISABLE_BBCODE}
    - - {L_DISABLE_SMILIES}
    - - {L_ATTACH_SIGNATURE}
    - - {L_NOTIFY_ON_REPLY}
    - - {L_DELETE_POST}
    {S_TYPE_TOGGLE}
    -
    {S_HIDDEN_FORM_FIELDS} 
    {TPL_FTR} - - - - - -
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    - -{TOPIC_REVIEW_BOX} diff --git a/phpBB2_old/templates/Helius/posting_poll_body.tpl b/phpBB2_old/templates/Helius/posting_poll_body.tpl deleted file mode 100644 index 4391393..0000000 --- a/phpBB2_old/templates/Helius/posting_poll_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -
    {L_ADD_A_POLL}
    {L_ADD_POLL_EXPLAIN}
    {L_POLL_QUESTION}
    {L_POLL_OPTION}  
    {L_POLL_OPTION}  
    {L_POLL_LENGTH} {L_DAYS}   {L_POLL_LENGTH_EXPLAIN}
    {L_POLL_DELETE}
    - - - - - - -
    - - -
    {L_POST}{L_POSTED}: {POST_DATE}
    - - - - -
    - - - - - - - - -
    - - - -




    - - - -
    {MESSAGE}
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/posting_smilies.tpl b/phpBB2_old/templates/Helius/posting_smilies.tpl deleted file mode 100644 index aafb4b2..0000000 --- a/phpBB2_old/templates/Helius/posting_smilies.tpl +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - -
    - -{TPL_HDR1}{L_EMOTICONS}{TPL_HDR2} - - - - - - -
    - - - - - - - - - - - - -
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}
    {L_CLOSE_WINDOW}
    {TPL_FTR} -
    diff --git a/phpBB2_old/templates/Helius/posting_topic_review.tpl b/phpBB2_old/templates/Helius/posting_topic_review.tpl deleted file mode 100644 index fbe200f..0000000 --- a/phpBB2_old/templates/Helius/posting_topic_review.tpl +++ /dev/null @@ -1,36 +0,0 @@ - - -{TPL_HDR1}{L_TOPIC_REVIEW}{TPL_HDR2} - - - -
    {TPL_FTR} - diff --git a/phpBB2_old/templates/Helius/privmsgs_body.tpl b/phpBB2_old/templates/Helius/privmsgs_body.tpl deleted file mode 100644 index 23b2251..0000000 --- a/phpBB2_old/templates/Helius/privmsgs_body.tpl +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}  
    -
    - - - - - - - - - - - - - -
    {BOX_SIZE_STATUS}
    {INBOX_LIMIT_PERCENT}
    0%50%100%
    - -
    - -
    - -
    - - - - - - -
    {POST_PM_IMG} {L_INDEX}{L_DISPLAY_MESSAGES}: - - -
    - -{TPL_HDR1}{BOX_NAME}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FLAG}  {L_SUBJECT}  {L_FROM_OR_TO}  {L_DATE}  {L_MARK} 
    {listrow.L_PRIVMSG_FOLDER_ALT} {listrow.SUBJECT} {listrow.FROM}{listrow.DATE} - -
    {L_NO_MESSAGES}
    {S_HIDDEN_FIELDS} - -   - -   - -
    {TPL_FTR} - - - - - - - -
    {POST_PM_IMG}{PAGE_NUMBER}{L_MARK_ALL} :: {L_UNMARK_ALL}
    {PAGINATION}
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/Helius/privmsgs_popup.tpl b/phpBB2_old/templates/Helius/privmsgs_popup.tpl deleted file mode 100644 index 96566a3..0000000 --- a/phpBB2_old/templates/Helius/privmsgs_popup.tpl +++ /dev/null @@ -1,18 +0,0 @@ - - - -
    -{TPL_HDR1} {TPL_HDR2} - - - -

    {L_MESSAGE}

    {L_CLOSE_WINDOW}

    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/privmsgs_preview.tpl b/phpBB2_old/templates/Helius/privmsgs_preview.tpl deleted file mode 100644 index eec52ef..0000000 --- a/phpBB2_old/templates/Helius/privmsgs_preview.tpl +++ /dev/null @@ -1,45 +0,0 @@ - -{TPL_HDR1}{L_PREVIEW}{TPL_HDR2} - - - - - - -
    {POST_SUBJECT}
    - - - - -
    - - - - - - - - -
    - - - - - - - - - - - - - - - - -
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT}




    - - - -
    {MESSAGE}
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/privmsgs_read_body.tpl b/phpBB2_old/templates/Helius/privmsgs_read_body.tpl deleted file mode 100644 index df8331a..0000000 --- a/phpBB2_old/templates/Helius/privmsgs_read_body.tpl +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}
    - -
    - -
    -{S_HIDDEN_FIELDS} - - - - - -
    {REPLY_PM_IMG} {L_INDEX}
    - -{TPL_HDR1}{POST_SUBJECT}{TPL_HDR2} - - - - - - - - - -
    - - - -
    {QUOTE_PM_IMG} {EDIT_PM_IMG}
    - - - - - - - -
    - - - - - - - - -
    - - - - - - - - - - - - - - - - -
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT}




    - - - -
    {MESSAGE}
    - -
    - - - -
    {PROFILE_IMG} {PM_IMG} {EMAIL_IMG} {WWW_IMG} {AIM_IMG} {YIM_IMG} {MSN_IMG} {ICQ_IMG}
    {TPL_FTR} - - - - - - -
    {REPLY_PM_IMG}{S_TIMEZONE}
    -
    - - - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/Helius/profile_add_body.tpl b/phpBB2_old/templates/Helius/profile_add_body.tpl deleted file mode 100644 index 72588e3..0000000 --- a/phpBB2_old/templates/Helius/profile_add_body.tpl +++ /dev/null @@ -1,264 +0,0 @@ - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - -{TPL_HDR1}{L_REGISTRATION_INFO}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: *{USERNAME}
    {L_USERNAME}: *
    {L_EMAIL_ADDRESS}: *
    {L_CURRENT_PASSWORD}: *
    - {L_CONFIRM_PASSWORD_EXPLAIN}
    - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
    {L_CONFIRM_CODE_IMPAIRED}

    {CONFIRM_IMG}

    {L_CONFIRM_CODE}: *
    {L_CONFIRM_CODE_EXPLAIN}
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER}: - -
    {L_AIM}: - -
    {L_MESSENGER}: - -
    {L_YAHOO}: - -
    {L_WEBSITE}: - -
    {L_LOCATION}: - -
    {L_OCCUPATION}: - -
    {L_INTERESTS}: - -
    {L_SIGNATURE}:
    {L_SIGNATURE_EXPLAIN}

    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - -
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL}: - - {L_YES}   - - {L_NO}
    {L_HIDE_USER}: - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY}:
    - {L_NOTIFY_ON_REPLY_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG}: - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG}:
    {L_POPUP_ON_PRIVMSG_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES}: - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}:{LANGUAGE_SELECT}
    {L_BOARD_STYLE}:{STYLE_SELECT}
    {L_TIMEZONE}:{TIMEZONE_SELECT}
    {L_DATE_FORMAT}:
    - {L_DATE_FORMAT_EXPLAIN}
    - -
    {L_AVATAR_PANEL}
    - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    {AVATAR}
     {L_DELETE_AVATAR}
    {L_UPLOAD_AVATAR_FILE}:
    {L_UPLOAD_AVATAR_URL}:
    {L_UPLOAD_AVATAR_URL_EXPLAIN}
    {L_LINK_REMOTE_AVATAR}:
    {L_LINK_REMOTE_AVATAR_EXPLAIN}
    {L_AVATAR_GALLERY}:
    {S_HIDDEN_FIELDS}  
    {TPL_FTR} - - -
    diff --git a/phpBB2_old/templates/Helius/profile_avatar_gallery.tpl b/phpBB2_old/templates/Helius/profile_avatar_gallery.tpl deleted file mode 100644 index 1ebd91f..0000000 --- a/phpBB2_old/templates/Helius/profile_avatar_gallery.tpl +++ /dev/null @@ -1,34 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - -{TPL_HDR1}{L_AVATAR_GALLERY}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - -
    {L_CATEGORY}: {S_CATEGORY_SELECT} 
    {avatar_row.avatar_column.AVATAR_NAME}
    {S_HIDDEN_FIELDS} - -    - -
    {TPL_FTR} -
    diff --git a/phpBB2_old/templates/Helius/profile_send_email.tpl b/phpBB2_old/templates/Helius/profile_send_email.tpl deleted file mode 100644 index dbd6f71..0000000 --- a/phpBB2_old/templates/Helius/profile_send_email.tpl +++ /dev/null @@ -1,71 +0,0 @@ - - - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - -{TPL_HDR1}{L_SEND_EMAIL_MSG}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - -
    {L_RECIPIENT}{USERNAME}
    {L_SUBJECT}
    {L_MESSAGE_BODY}
    {L_MESSAGE_BODY_DESC}
    {L_OPTIONS} - - - - -
    {L_CC_EMAIL}
    {S_HIDDEN_FIELDS}
    {TPL_FTR} - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/Helius/profile_send_pass.tpl b/phpBB2_old/templates/Helius/profile_send_pass.tpl deleted file mode 100644 index 1bc556c..0000000 --- a/phpBB2_old/templates/Helius/profile_send_pass.tpl +++ /dev/null @@ -1,32 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    -{TPL_HDR1}{L_SEND_PASSWORD}{TPL_HDR2} - - - - - - - - - - - - - - -
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {S_HIDDEN_FIELDS} - -    - -
    {TPL_FTR} -
    diff --git a/phpBB2_old/templates/Helius/profile_view_body.tpl b/phpBB2_old/templates/Helius/profile_view_body.tpl deleted file mode 100644 index 6f5bc13..0000000 --- a/phpBB2_old/templates/Helius/profile_view_body.tpl +++ /dev/null @@ -1,81 +0,0 @@ - - - - - -
    {L_INDEX}
    - -{TPL_HDR1}{L_VIEWING_PROFILE}{TPL_HDR2} - - - - - - - - - - - - - -
    {L_AVATAR}{L_ABOUT_USER} -
    {AVATAR_IMG}
    {POSTER_RANK}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_JOINED}: {JOINED}
    {L_TOTAL_POSTS}: {POSTS}
    [{POST_PERCENT_STATS} / {POST_DAY_STATS}]
    {L_SEARCH_USER_POSTS}
    {L_LOCATION}: {LOCATION}
    {L_WEBSITE}: {WWW}
    {L_OCCUPATION}: {OCCUPATION}
    {L_INTERESTS}: {INTERESTS}
    -
    {L_CONTACT} {USERNAME}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_EMAIL_ADDRESS}:{EMAIL_IMG}
    {L_PM}:{PM_IMG}
    {L_MESSENGER}:{MSN}
    {L_YAHOO}:{YIM_IMG}
    {L_AIM}:{AIM_IMG}
    {L_ICQ_NUMBER}:{ICQ_IMG}
    -
    {TPL_FTR} - - - - - -

    {JUMPBOX}
    diff --git a/phpBB2_old/templates/Helius/search_body.tpl b/phpBB2_old/templates/Helius/search_body.tpl deleted file mode 100644 index 4aa3db7..0000000 --- a/phpBB2_old/templates/Helius/search_body.tpl +++ /dev/null @@ -1,54 +0,0 @@ - -
    - - - -
    {L_INDEX}
    - -{TPL_HDR1}{L_SEARCH_QUERY}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEARCH_KEYWORDS}:
    {L_SEARCH_KEYWORDS_EXPLAIN}

    {L_SEARCH_ANY_TERMS}
    {L_SEARCH_ALL_TERMS}
    {L_SEARCH_AUTHOR}:
    {L_SEARCH_AUTHOR_EXPLAIN}
    {L_SEARCH_OPTIONS}
    {L_FORUM}: {L_SEARCH_PREVIOUS}: 
    {L_SEARCH_MESSAGE_TITLE}
    {L_SEARCH_MESSAGE_ONLY}
    {L_CATEGORY}: {L_SORT_BY}: 
    {L_SORT_ASCENDING}
    {L_SORT_DESCENDING}
     
    {L_DISPLAY_RESULTS}: {L_POSTS}{L_TOPICS}{L_RETURN_FIRST} {L_CHARACTERS}
    {S_HIDDEN_FIELDS}
    {TPL_FTR} - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/Helius/search_results_posts.tpl b/phpBB2_old/templates/Helius/search_results_posts.tpl deleted file mode 100644 index 5b8d3cf..0000000 --- a/phpBB2_old/templates/Helius/search_results_posts.tpl +++ /dev/null @@ -1,68 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - -
    {L_SEARCH_MATCHES}
    - - -
    -{TPL_HDR1}{searchresults.TOPIC_TITLE}{TPL_HDR2} - - - - - - -
    - - - -
    {searchresults.L_MINI_POST_ALT}{L_FORUM}: {searchresults.FORUM_NAME}   {L_POSTED}: {searchresults.POST_DATE}   {L_SUBJECT}: {searchresults.POST_SUBJECT}
    - - - - -
    - - - - - - - - -
    - - - -
    - - - - -
    {searchresults.POSTER_NAME}
     
    {L_REPLIES}: {searchresults.TOPIC_REPLIES}
    {L_VIEWS}: {searchresults.TOPIC_VIEWS}




    - - - -
    {searchresults.MESSAGE}
    {TPL_FTR} - - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/Helius/search_results_topics.tpl b/phpBB2_old/templates/Helius/search_results_topics.tpl deleted file mode 100644 index 7cf804b..0000000 --- a/phpBB2_old/templates/Helius/search_results_topics.tpl +++ /dev/null @@ -1,42 +0,0 @@ - - - - - -
    {L_INDEX}
    - -{TPL_HDR1}{L_SEARCH_MATCHES}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - -
      {L_FORUM}  {L_TOPICS}  {L_AUTHOR}  {L_REPLIES}  {L_VIEWS}  {L_LASTPOST} 
    {searchresults.L_TOPIC_FOLDER_ALT}{searchresults.FORUM_NAME}{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}{searchresults.TOPIC_TITLE}
    {searchresults.GOTO_PAGE}
    {searchresults.TOPIC_AUTHOR}{searchresults.REPLIES}{searchresults.VIEWS}{searchresults.LAST_POST_TIME}
    {searchresults.LAST_POST_AUTHOR} {searchresults.LAST_POST_IMG}
    {TPL_FTR} - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/Helius/search_username.tpl b/phpBB2_old/templates/Helius/search_username.tpl deleted file mode 100644 index 189c0de..0000000 --- a/phpBB2_old/templates/Helius/search_username.tpl +++ /dev/null @@ -1,29 +0,0 @@ - - - -
    - - - - -
    -{TPL_HDR1}{L_SEARCH_USERNAME}{TPL_HDR2} - - - -

     

    {L_SEARCH_EXPLAIN}
    - - {L_UPDATE_USERNAME}
     

    - -
    {L_CLOSE_WINDOW}
    {TPL_FTR} -
    -
    diff --git a/phpBB2_old/templates/Helius/simple_footer.tpl b/phpBB2_old/templates/Helius/simple_footer.tpl deleted file mode 100644 index 7b83429..0000000 --- a/phpBB2_old/templates/Helius/simple_footer.tpl +++ /dev/null @@ -1,6 +0,0 @@ - -

    -Powered by phpBB {PHPBB_VERSION} © 2001-2004 phpBB Group
    - - - diff --git a/phpBB2_old/templates/Helius/simple_header.original.tpl b/phpBB2_old/templates/Helius/simple_header.original.tpl deleted file mode 100644 index 79133c4..0000000 --- a/phpBB2_old/templates/Helius/simple_header.original.tpl +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - -{META} -{SITENAME} :: {PAGE_TITLE} - - - - - - diff --git a/phpBB2_old/templates/Helius/simple_header.tpl b/phpBB2_old/templates/Helius/simple_header.tpl deleted file mode 100644 index a064781..0000000 --- a/phpBB2_old/templates/Helius/simple_header.tpl +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - -{META} -{SITENAME} :: {PAGE_TITLE} - - - - - - - diff --git a/phpBB2_old/templates/Helius/theme_info.cfg b/phpBB2_old/templates/Helius/theme_info.cfg deleted file mode 100644 index 0e3eaf1..0000000 --- a/phpBB2_old/templates/Helius/theme_info.cfg +++ /dev/null @@ -1,51 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/viewforum_body.tpl b/phpBB2_old/templates/Helius/viewforum_body.tpl deleted file mode 100644 index 657887d..0000000 --- a/phpBB2_old/templates/Helius/viewforum_body.tpl +++ /dev/null @@ -1,92 +0,0 @@ - -
    - - - - - - - - - - -
    {L_MODERATOR}: {MODERATORS}
    {LOGGED_IN_USER_LIST}
    {PAGINATION}
    {L_POST_NEW_TOPIC}
    - -{TPL_HDR1}{FORUM_NAME}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_TOPICS}  {L_REPLIES}  {L_AUTHOR}  {L_VIEWS}  {L_LASTPOST} 
    {topicrow.L_TOPIC_FOLDER_ALT}{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}
    - {topicrow.GOTO_PAGE}
    {topicrow.REPLIES}{topicrow.TOPIC_AUTHOR}{topicrow.VIEWS}{topicrow.LAST_POST_TIME}
    {topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}
    {L_NO_TOPICS}
    {L_DISPLAY_TOPICS}: {S_SELECT_TOPIC_DAYS}  - -
    {TPL_FTR} - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_INDEX} » {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    -
    - - - - - -
    {JUMPBOX}
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}
    {L_NEW_POSTS_HOT}{L_NEW_POSTS_HOT}  {L_NO_NEW_POSTS_HOT}{L_NO_NEW_POSTS_HOT}
    {L_NEW_POSTS_TOPIC_LOCKED}{L_NEW_POSTS_LOCKED}  {L_NO_NEW_POSTS_TOPIC_LOCKED}{L_NO_NEW_POSTS_LOCKED}
    {S_AUTH_LIST}
    diff --git a/phpBB2_old/templates/Helius/viewonline_body.tpl b/phpBB2_old/templates/Helius/viewonline_body.tpl deleted file mode 100644 index 0c2c200..0000000 --- a/phpBB2_old/templates/Helius/viewonline_body.tpl +++ /dev/null @@ -1,53 +0,0 @@ - - - - - -
    {L_INDEX}
    - -{TPL_HDR1}{L_WHOSONLINE}{TPL_HDR2} - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_LAST_UPDATE}  {L_FORUM_LOCATION} 
    {TOTAL_REGISTERED_USERS_ONLINE}
     {reg_user_row.USERNAME}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION} 
    .
    {TOTAL_GUEST_USERS_ONLINE}
     {guest_user_row.USERNAME}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION} 
    {TPL_FTR} - - - - - - -
    {L_ONLINE_EXPLAIN}{S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    - diff --git a/phpBB2_old/templates/Helius/viewtopic_body.tpl b/phpBB2_old/templates/Helius/viewtopic_body.tpl deleted file mode 100644 index 351a643..0000000 --- a/phpBB2_old/templates/Helius/viewtopic_body.tpl +++ /dev/null @@ -1,136 +0,0 @@ - -_tpldata['postrow.']) ) ? sizeof($this->_tpldata['postrow.']) : 0; -for ($postrow_i = 0; $postrow_i < $postrow_count; $postrow_i++) -{ - $postrow_item = &$this->_tpldata['postrow.'][$postrow_i]; - // replace username with link to user profile - if(!empty($postrow_item['PROFILE'])) - { - $postrow_item['SEARCH_IMG2'] = $postrow_item['SEARCH_IMG']; - $search = array($lang['Read_profile'], ' - - - - - - - - - - -
    - {L_INDEX} - » {FORUM_NAME} - » {TOPIC_TITLE}{PAGINATION}
    {L_POST_NEW_TOPIC}  {L_POST_REPLY_TOPIC} - {L_VIEW_PREVIOUS_TOPIC} :: {L_VIEW_NEXT_TOPIC}  -
    - -{POLL_DISPLAY} - - -
    -{TPL_HDR1}{postrow.POST_SUBJECT}{TPL_HDR2} - - - - - - - - - -
    - - - -
    {postrow.L_MINI_POST_ALT}{L_POSTED}: {postrow.POST_DATE}{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}
    - - - - - - - -
    - - - - - - - - -
    - - - -
    - - - - - - - -
    {postrow.POSTER_NAME}
    {postrow.POSTER_RANK}
    {postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}
    {postrow.POSTER_JOINED}
    {postrow.POSTER_POSTS}
    {postrow.POSTER_FROM}




    - - - -
    {postrow.MESSAGE}
    - - - -
    {postrow.EDITED_MESSAGE}{postrow.SIGNATURE}
    - - - -
    {postrow.PROFILE_IMG} {postrow.SEARCH_IMG2} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.ICQ_IMG}
    {TPL_FTR} -
    - - -{TPL_HDR1}{TOPIC_TITLE}{TPL_HDR2} - - - - - - -
    -   {L_INDEX} » {FORUM_NAME}
    - - - - - -
    - {S_AUTH_LIST} - - {S_TIMEZONE}  
    - {PAGE_NUMBER}  
    - {PAGINATION}
    - {S_WATCH_TOPIC} -
    -
    - - - - -
    {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} {JUMPBOX}
    -
    {TPL_FTR} - - - - - - -
     {L_POST_NEW_TOPIC}  {L_POST_REPLY_TOPIC}{S_TOPIC_ADMIN} 
    diff --git a/phpBB2_old/templates/Helius/viewtopic_poll_ballot.tpl b/phpBB2_old/templates/Helius/viewtopic_poll_ballot.tpl deleted file mode 100644 index 3c19b4a..0000000 --- a/phpBB2_old/templates/Helius/viewtopic_poll_ballot.tpl +++ /dev/null @@ -1,29 +0,0 @@ -{TPL_HDR1}{MESSAGE_TITLE}{TPL_HDR2} - - - -

    - - - - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - -
     {poll_option.POLL_OPTION_CAPTION}
    - -
    {L_VIEW_RESULTS}
    {S_HIDDEN_FIELDS}
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/viewtopic_poll_result.tpl b/phpBB2_old/templates/Helius/viewtopic_poll_result.tpl deleted file mode 100644 index 211ea66..0000000 --- a/phpBB2_old/templates/Helius/viewtopic_poll_result.tpl +++ /dev/null @@ -1,38 +0,0 @@ -{TPL_HDR1}{MESSAGE_TITLE}{TPL_HDR2} - - - -

    - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - - - - -
    {poll_option.POLL_OPTION_CAPTION} - - - - - - -
    {poll_option.POLL_OPTION_PERCENT}
    -
     {poll_option.POLL_OPTION_PERCENT} [ {poll_option.POLL_OPTION_RESULT} ]
    -
    {L_TOTAL_VOTES} : {TOTAL_VOTES}
    -
    -
    {TPL_FTR} -
    \ No newline at end of file diff --git a/phpBB2_old/templates/Helius/xs.cfg b/phpBB2_old/templates/Helius/xs.cfg deleted file mode 100644 index 2e5c826..0000000 --- a/phpBB2_old/templates/Helius/xs.cfg +++ /dev/null @@ -1,13 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas/admin/admin_message_body.tpl b/phpBB2_old/templates/christmas/admin/admin_message_body.tpl deleted file mode 100644 index 7431f09..0000000 --- a/phpBB2_old/templates/christmas/admin/admin_message_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    - - - - - - - - -
    {MESSAGE_TITLE}
    {MESSAGE_TEXT}
    - -
    diff --git a/phpBB2_old/templates/christmas/admin/auth_forum_body.tpl b/phpBB2_old/templates/christmas/admin/auth_forum_body.tpl deleted file mode 100644 index c013a2a..0000000 --- a/phpBB2_old/templates/christmas/admin/auth_forum_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - - - - - - - - -
    {forum_auth_titles.CELL_TITLE}
    {forum_auth_data.S_AUTH_LEVELS_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/christmas/admin/auth_select_body.tpl b/phpBB2_old/templates/christmas/admin/auth_select_body.tpl deleted file mode 100644 index 80ebd36..0000000 --- a/phpBB2_old/templates/christmas/admin/auth_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -
    - - - - - - -
    {L_AUTH_SELECT}
    {S_HIDDEN_FIELDS}{S_AUTH_SELECT}   
    diff --git a/phpBB2_old/templates/christmas/admin/auth_ug_body.tpl b/phpBB2_old/templates/christmas/admin/auth_ug_body.tpl deleted file mode 100644 index 69e4bab..0000000 --- a/phpBB2_old/templates/christmas/admin/auth_ug_body.tpl +++ /dev/null @@ -1,49 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_USER_OR_GROUPNAME}: {USERNAME}

    - -
    - - -

    {USER_LEVEL}

    -

    {USER_GROUP_MEMBERSHIPS}

    - - - -

    {GROUP_MEMBERSHIP}

    - - -

    {L_PERMISSIONS}

    - -

    {L_AUTH_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM}{acltype.L_UG_ACL_TYPE}{L_MODERATOR_STATUS}
    {forums.FORUM_NAME}{forums.aclvalues.S_ACL_SELECT}{forums.S_MOD_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/christmas/admin/board_config_body.tpl b/phpBB2_old/templates/christmas/admin/board_config_body.tpl deleted file mode 100644 index 5647487..0000000 --- a/phpBB2_old/templates/christmas/admin/board_config_body.tpl +++ /dev/null @@ -1,248 +0,0 @@ - -

    {L_CONFIGURATION_TITLE}

    - -

    {L_CONFIGURATION_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GENERAL_SETTINGS}
    {L_SERVER_NAME}
    {L_SERVER_PORT}
    {L_SERVER_PORT_EXPLAIN}
    {L_SCRIPT_PATH}
    {L_SCRIPT_PATH_EXPLAIN}
    {L_SITE_NAME}
    {L_SITE_NAME_EXPLAIN}
    {L_SITE_DESCRIPTION}
    {L_DISABLE_BOARD}
    {L_DISABLE_BOARD_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ACCT_ACTIVATION}{L_NONE}   {L_USER}   {L_ADMIN}
    {L_BOARD_EMAIL_FORM}
    {L_BOARD_EMAIL_FORM_EXPLAIN}
    {L_ENABLED}   {L_DISABLED}
    {L_FLOOD_INTERVAL}
    {L_FLOOD_INTERVAL_EXPLAIN}
    {L_TOPICS_PER_PAGE}
    {L_POSTS_PER_PAGE}
    {L_HOT_THRESHOLD}
    {L_DEFAULT_STYLE}{STYLE_SELECT}
    {L_OVERRIDE_STYLE}
    {L_OVERRIDE_STYLE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_DEFAULT_LANGUAGE}{LANG_SELECT}
    {L_DATE_FORMAT}
    {L_DATE_FORMAT_EXPLAIN}
    {L_SYSTEM_TIMEZONE}{TIMEZONE_SELECT}
    {L_ENABLE_GZIP} {L_YES}   {L_NO}
    {L_ENABLE_PRUNE} {L_YES}   {L_NO}
    {L_COOKIE_SETTINGS}
    {L_COOKIE_SETTINGS_EXPLAIN}
    {L_COOKIE_DOMAIN}
    {L_COOKIE_NAME}
    {L_COOKIE_PATH}
    {L_COOKIE_SECURE}
    {L_COOKIE_SECURE_EXPLAIN}
    {L_DISABLED}   {L_ENABLED}
    {L_SESSION_LENGTH}
    {L_PRIVATE_MESSAGING}
    {L_DISABLE_PRIVATE_MESSAGING}{L_ENABLED}   {L_DISABLED}
    {L_INBOX_LIMIT}
    {L_SENTBOX_LIMIT}
    {L_SAVEBOX_LIMIT}
    {L_ABILITIES_SETTINGS}
    {L_MAX_POLL_OPTIONS}
    {L_ALLOW_HTML} {L_YES}   {L_NO}
    {L_ALLOWED_TAGS}
    {L_ALLOWED_TAGS_EXPLAIN}
    {L_ALLOW_BBCODE} {L_YES}   {L_NO}
    {L_ALLOW_SMILIES} {L_YES}   {L_NO}
    {L_SMILIES_PATH}
    {L_SMILIES_PATH_EXPLAIN}
    {L_ALLOW_SIG} {L_YES}   {L_NO}
    {L_MAX_SIG_LENGTH}
    {L_MAX_SIG_LENGTH_EXPLAIN}
    {L_ALLOW_NAME_CHANGE} {L_YES}   {L_NO}
    {L_AVATAR_SETTINGS}
    {L_ALLOW_LOCAL} {L_YES}   {L_NO}
    {L_ALLOW_REMOTE}
    {L_ALLOW_REMOTE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ALLOW_UPLOAD} {L_YES}   {L_NO}
    {L_MAX_FILESIZE}
    {L_MAX_FILESIZE_EXPLAIN}
    Bytes
    {L_MAX_AVATAR_SIZE}
    - {L_MAX_AVATAR_SIZE_EXPLAIN} -
    x
    {L_AVATAR_STORAGE_PATH}
    {L_AVATAR_STORAGE_PATH_EXPLAIN}
    {L_AVATAR_GALLERY_PATH}
    {L_AVATAR_GALLERY_PATH_EXPLAIN}
    {L_COPPA_SETTINGS}
    {L_COPPA_FAX}
    {L_COPPA_MAIL}
    {L_COPPA_MAIL_EXPLAIN}
    {L_EMAIL_SETTINGS}
    {L_ADMIN_EMAIL}
    {L_EMAIL_SIG}
    {L_EMAIL_SIG_EXPLAIN}
    {L_USE_SMTP}
    {L_USE_SMTP_EXPLAIN}
    {L_YES}   {L_NO}
    {L_SMTP_SERVER}
    {L_SMTP_USERNAME}
    {L_SMTP_USERNAME_EXPLAIN}
    {L_SMTP_PASSWORD}
    {L_SMTP_PASSWORD_EXPLAIN}
    {S_HIDDEN_FIELDS}   -
    - -
    diff --git a/phpBB2_old/templates/christmas/admin/category_edit_body.tpl b/phpBB2_old/templates/christmas/admin/category_edit_body.tpl deleted file mode 100644 index 07de378..0000000 --- a/phpBB2_old/templates/christmas/admin/category_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_EDIT_CATEGORY}

    - -

    {L_EDIT_CATEGORY_EXPLAIN}

    - -
    - - - - - - - - - - - -
    {L_EDIT_CATEGORY}
    {L_CATEGORY}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2_old/templates/christmas/admin/db_utils_backup_body.tpl b/phpBB2_old/templates/christmas/admin/db_utils_backup_body.tpl deleted file mode 100644 index 7a96953..0000000 --- a/phpBB2_old/templates/christmas/admin/db_utils_backup_body.tpl +++ /dev/null @@ -1,33 +0,0 @@ - -

    {L_DATABASE_BACKUP}

    - -

    {L_BACKUP_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BACKUP_OPTIONS}
    {L_FULL_BACKUP}
    {L_STRUCTURE_BACKUP}
    {L_DATA_BACKUP}
    {L_ADDITIONAL_TABLES}
    {L_GZIP_COMPRESS}{L_NO}  {L_YES}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas/admin/db_utils_restore_body.tpl b/phpBB2_old/templates/christmas/admin/db_utils_restore_body.tpl deleted file mode 100644 index 6c87461..0000000 --- a/phpBB2_old/templates/christmas/admin/db_utils_restore_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_DATABASE_RESTORE}

    - -

    {L_RESTORE_EXPLAIN}

    - -
    - - - - - - -
    {L_SELECT_FILE}
       {S_HIDDEN_FIELDS} 
    diff --git a/phpBB2_old/templates/christmas/admin/disallow_body.tpl b/phpBB2_old/templates/christmas/admin/disallow_body.tpl deleted file mode 100644 index 37caa6b..0000000 --- a/phpBB2_old/templates/christmas/admin/disallow_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_DISALLOW_TITLE}

    - -

    {L_DISALLOW_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_ADD_DISALLOW}
    {L_USERNAME}
    {L_ADD_EXPLAIN}
     
    {L_DELETE_DISALLOW}
    {L_USERNAME}
    {L_DELETE_EXPLAIN}
    {S_DISALLOW_SELECT} 
     
    diff --git a/phpBB2_old/templates/christmas/admin/forum_admin_body.tpl b/phpBB2_old/templates/christmas/admin/forum_admin_body.tpl deleted file mode 100644 index 0d301c4..0000000 --- a/phpBB2_old/templates/christmas/admin/forum_admin_body.tpl +++ /dev/null @@ -1,39 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_TITLE}
    {catrow.CAT_DESC}{L_EDIT}{L_DELETE}{L_MOVE_UP} {L_MOVE_DOWN} 
    {catrow.forumrow.FORUM_NAME}
    {catrow.forumrow.FORUM_DESC}
    {catrow.forumrow.NUM_TOPICS}{catrow.forumrow.NUM_POSTS}{L_EDIT}{L_DELETE}{L_MOVE_UP}
    {L_MOVE_DOWN}
    {L_RESYNC}
    diff --git a/phpBB2_old/templates/christmas/admin/forum_delete_body.tpl b/phpBB2_old/templates/christmas/admin/forum_delete_body.tpl deleted file mode 100644 index 8151718..0000000 --- a/phpBB2_old/templates/christmas/admin/forum_delete_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_FORUM_DELETE}

    - -

    {L_FORUM_DELETE_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - -
    {L_FORUM_DELETE}
    {L_FORUM_NAME}{NAME}
    {L_MOVE_CONTENTS}{S_SELECT_TO}
    {S_HIDDEN_FIELDS}
    -
    diff --git a/phpBB2_old/templates/christmas/admin/forum_edit_body.tpl b/phpBB2_old/templates/christmas/admin/forum_edit_body.tpl deleted file mode 100644 index 0fca787..0000000 --- a/phpBB2_old/templates/christmas/admin/forum_edit_body.tpl +++ /dev/null @@ -1,50 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_SETTINGS}
    {L_FORUM_NAME}
    {L_FORUM_DESCRIPTION}
    {L_CATEGORY}
    {L_FORUM_STATUS}
    {L_AUTO_PRUNE} - - - - - - - - - - - - -
    {L_ENABLED}
    {L_PRUNE_DAYS}  {L_DAYS}
    {L_PRUNE_FREQ}  {L_DAYS}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2_old/templates/christmas/admin/forum_prune_body.tpl b/phpBB2_old/templates/christmas/admin/forum_prune_body.tpl deleted file mode 100644 index fcd5fe7..0000000 --- a/phpBB2_old/templates/christmas/admin/forum_prune_body.tpl +++ /dev/null @@ -1,22 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_FORUM_PRUNE_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - -
    {L_FORUM_PRUNE}
    {S_PRUNE_DATA}
    {S_HIDDEN_VARS} - -
    -
    diff --git a/phpBB2_old/templates/christmas/admin/forum_prune_result_body.tpl b/phpBB2_old/templates/christmas/admin/forum_prune_result_body.tpl deleted file mode 100644 index 42fc100..0000000 --- a/phpBB2_old/templates/christmas/admin/forum_prune_result_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_PRUNE_RESULT}

    - - - - - - - - - - - - - - -
    {L_FORUM}{L_TOPICS_PRUNED}{L_POSTS_PRUNED}
    {prune_results.FORUM_NAME}{prune_results.FORUM_TOPICS}{prune_results.FORUM_POSTS}
    - -
    diff --git a/phpBB2_old/templates/christmas/admin/forum_prune_select_body.tpl b/phpBB2_old/templates/christmas/admin/forum_prune_select_body.tpl deleted file mode 100644 index 95787d8..0000000 --- a/phpBB2_old/templates/christmas/admin/forum_prune_select_body.tpl +++ /dev/null @@ -1,12 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -
    - - - - - - - -
    {L_SELECT_FORUM}
    {S_FORUMS_SELECT}   
    diff --git a/phpBB2_old/templates/christmas/admin/group_edit_body.tpl b/phpBB2_old/templates/christmas/admin/group_edit_body.tpl deleted file mode 100644 index 3fd89c7..0000000 --- a/phpBB2_old/templates/christmas/admin/group_edit_body.tpl +++ /dev/null @@ -1,56 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_EDIT_DELETE}
    {L_ITEMS_REQUIRED}
    {L_GROUP_NAME}: - -
    {L_GROUP_DESCRIPTION}: - -
    {L_GROUP_MODERATOR}:  
    {L_GROUP_STATUS}: - {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}
    {L_DELETE_MODERATOR} -
    - {L_DELETE_MODERATOR_EXPLAIN}
    - - {L_YES}
    {L_GROUP_DELETE}: - - {L_GROUP_DELETE_CHECK}
    - -    - -
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas/admin/group_select_body.tpl b/phpBB2_old/templates/christmas/admin/group_select_body.tpl deleted file mode 100644 index 62e5139..0000000 --- a/phpBB2_old/templates/christmas/admin/group_select_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -

    {L_GROUP_EXPLAIN}

    - -
    - - - - - - - - - - - - -
    {L_GROUP_SELECT}
    {S_GROUP_SELECT}   
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas/admin/index.htm b/phpBB2_old/templates/christmas/admin/index.htm deleted file mode 100644 index e0cc5f3..0000000 --- a/phpBB2_old/templates/christmas/admin/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2_old/templates/christmas/admin/index_body.tpl b/phpBB2_old/templates/christmas/admin/index_body.tpl deleted file mode 100644 index e715dda..0000000 --- a/phpBB2_old/templates/christmas/admin/index_body.tpl +++ /dev/null @@ -1,79 +0,0 @@ - -

    {L_WELCOME}

    - -

    {L_ADMIN_INTRO}

    - -

    {L_FORUM_STATS}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_STATISTIC}{L_VALUE}{L_STATISTIC}{L_VALUE}
    {L_NUMBER_POSTS}:{NUMBER_OF_POSTS}{L_POSTS_PER_DAY}:{POSTS_PER_DAY}
    {L_NUMBER_TOPICS}:{NUMBER_OF_TOPICS}{L_TOPICS_PER_DAY}:{TOPICS_PER_DAY}
    {L_NUMBER_USERS}:{NUMBER_OF_USERS}{L_USERS_PER_DAY}:{USERS_PER_DAY}
    {L_BOARD_STARTED}:{START_DATE}{L_AVATAR_DIR_SIZE}:{AVATAR_DIR_SIZE}
    {L_DB_SIZE}:{DB_SIZE}{L_GZIP_COMPRESSION}:{GZIP_COMPRESSION}
    -

    {L_WHO_IS_ONLINE}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_STARTED}  {L_LAST_UPDATE}  {L_FORUM_LOCATION}  {L_IP_ADDRESS} 
     {reg_user_row.USERNAME}  {reg_user_row.STARTED}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION}  {reg_user_row.IP_ADDRESS} 
    .
     {guest_user_row.USERNAME}  {guest_user_row.STARTED}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION}  {guest_user_row.IP_ADDRESS} 
    - -
    diff --git a/phpBB2_old/templates/christmas/admin/index_frameset.tpl b/phpBB2_old/templates/christmas/admin/index_frameset.tpl deleted file mode 100644 index d3f3f31..0000000 --- a/phpBB2_old/templates/christmas/admin/index_frameset.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - -phpBB Administration - - - - - - - - - - <body bgcolor="#FFFFFF" text="#000000"> - <p>Sorry, your browser doesn't seem to support frames</p> - </body> - - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas/admin/index_navigate.tpl b/phpBB2_old/templates/christmas/admin/index_navigate.tpl deleted file mode 100644 index 784f838..0000000 --- a/phpBB2_old/templates/christmas/admin/index_navigate.tpl +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_ADMIN}
    {L_ADMIN_INDEX}
    {L_FORUM_INDEX}
    {L_PREVIEW_FORUM}
    {catrow.ADMIN_CATEGORY}
    {catrow.modulerow.ADMIN_MODULE} -
    -
    - -
    diff --git a/phpBB2_old/templates/christmas/admin/page_footer.tpl b/phpBB2_old/templates/christmas/admin/page_footer.tpl deleted file mode 100644 index 4b45f2d..0000000 --- a/phpBB2_old/templates/christmas/admin/page_footer.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - -
    Powered by phpBB {PHPBB_VERSION} © 2001 phpBB Group
    {TRANSLATION_INFO}
    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas/admin/page_header.tpl b/phpBB2_old/templates/christmas/admin/page_header.tpl deleted file mode 100644 index 8fa72f1..0000000 --- a/phpBB2_old/templates/christmas/admin/page_header.tpl +++ /dev/null @@ -1,226 +0,0 @@ - - - -{META} - - - -{SITENAME} - {L_PHPBB_ADMIN} - - - - diff --git a/phpBB2_old/templates/christmas/admin/ranks_edit_body.tpl b/phpBB2_old/templates/christmas/admin/ranks_edit_body.tpl deleted file mode 100644 index cca80cb..0000000 --- a/phpBB2_old/templates/christmas/admin/ranks_edit_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - - - - -
    {L_RANKS_TITLE}
    {L_RANK_TITLE}:
    {L_RANK_SPECIAL}{L_YES}    {L_NO}
    {L_RANK_MINIMUM}:
    {L_RANK_IMAGE}:
    - {L_RANK_IMAGE_EXPLAIN}

    {IMAGE_DISPLAY}
      
    -{S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas/admin/ranks_list_body.tpl b/phpBB2_old/templates/christmas/admin/ranks_list_body.tpl deleted file mode 100644 index 3444a24..0000000 --- a/phpBB2_old/templates/christmas/admin/ranks_list_body.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - -
    {L_RANK}{L_RANK_MINIMUM}{L_SPECIAL_RANK}{L_EDIT}{L_DELETE}
    {ranks.RANK}{ranks.RANK_MIN}{ranks.SPECIAL_RANK}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2_old/templates/christmas/admin/smile_edit_body.tpl b/phpBB2_old/templates/christmas/admin/smile_edit_body.tpl deleted file mode 100644 index db6a6ec..0000000 --- a/phpBB2_old/templates/christmas/admin/smile_edit_body.tpl +++ /dev/null @@ -1,34 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - - - -
    - - - - - - - - - - - - - - - - - - -
    {L_SMILEY_CONFIG}
    {L_SMILEY_CODE}
    {L_SMILEY_URL}    
    {L_SMILEY_EMOTION}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas/admin/smile_import_body.tpl b/phpBB2_old/templates/christmas/admin/smile_import_body.tpl deleted file mode 100644 index dcea5dc..0000000 --- a/phpBB2_old/templates/christmas/admin/smile_import_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_SMILEY_IMPORT}
    {L_SELECT_LBL}{S_SMILE_SELECT}
    {L_DEL_EXISTING}
    {L_CONFLICTS}
    {L_REPLACE_EXISTING}   {L_KEEP_EXISTING}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas/admin/smile_list_body.tpl b/phpBB2_old/templates/christmas/admin/smile_list_body.tpl deleted file mode 100644 index 4f644df..0000000 --- a/phpBB2_old/templates/christmas/admin/smile_list_body.tpl +++ /dev/null @@ -1,25 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - -
    {L_CODE}{L_SMILE}{L_EMOT}{L_ACTION}
    {smiles.CODE}{smiles.CODE}{smiles.EMOT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}    
    diff --git a/phpBB2_old/templates/christmas/admin/styles_addnew_body.tpl b/phpBB2_old/templates/christmas/admin/styles_addnew_body.tpl deleted file mode 100644 index b564656..0000000 --- a/phpBB2_old/templates/christmas/admin/styles_addnew_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_ADD_TEXT}

    - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_ACTION}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_INSTALL}
    diff --git a/phpBB2_old/templates/christmas/admin/styles_edit_body.tpl b/phpBB2_old/templates/christmas/admin/styles_edit_body.tpl deleted file mode 100644 index e8e0f15..0000000 --- a/phpBB2_old/templates/christmas/admin/styles_edit_body.tpl +++ /dev/null @@ -1,246 +0,0 @@ - -

    {L_THEMES_TITLE}

    - -

    {L_THEMES_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_THEME_SETTINGS}
    {L_THEME_NAME}:
    {L_TEMPLATE}:{S_TEMPLATE_SELECT}
    {L_THEME_ELEMENT}{L_VALUE}{L_SIMPLE_NAME}
    {L_STYLESHEET}:
    Filename for CSS stylesheet to use for this theme.
     
    {L_BACKGROUND_IMAGE}: 
    {L_BACKGROUND_COLOR}: 
    {L_BODY_TEXT_COLOR}: 
    {L_BODY_LINK_COLOR}: 
    {L_BODY_VLINK_COLOR}: 
    {L_BODY_ALINK_COLOR}: 
    {L_BODY_HLINK_COLOR}: 
    {L_TR_COLOR1}: -
    {L_TR_COLOR2}: -
    {L_TR_COLOR3}: -
    {L_TR_CLASS1}: -
    {L_TR_CLASS2}: -
    {L_TR_CLASS3}: -
    {L_TH_COLOR1}: -
    {L_TH_COLOR2}: -
    {L_TH_COLOR3}: -
    {L_TH_CLASS1}: -
    {L_TH_CLASS2}: -
    {L_TH_CLASS3}: -
    {L_TD_COLOR1}: -
    {L_TD_COLOR2}: -
    {L_TD_COLOR3}: -
    {L_TD_CLASS1}: -
    {L_TD_CLASS2}: -
    {L_TD_CLASS3}: -
    {L_FONTFACE_1}: -
    {L_FONTFACE_2}: -
    {L_FONTFACE_3}: -
    {L_FONTSIZE_1}: -
    {L_FONTSIZE_2}: -
    {L_FONTSIZE_3}: -
    {L_FONTCOLOR_1}: -
    {L_FONTCOLOR_2}: -
    {L_FONTCOLOR_3}: -
    {L_SPAN_CLASS_1}: -
    {L_SPAN_CLASS_2}: -
    {L_SPAN_CLASS_3}: -
    {S_HIDDEN_FIELDS} -
    - -
    diff --git a/phpBB2_old/templates/christmas/admin/styles_exporter.tpl b/phpBB2_old/templates/christmas/admin/styles_exporter.tpl deleted file mode 100644 index 1a34342..0000000 --- a/phpBB2_old/templates/christmas/admin/styles_exporter.tpl +++ /dev/null @@ -1,14 +0,0 @@ - -

    {L_STYLE_EXPORTER}

    - -

    {L_EXPORTER_EXPLAIN}

    - -
    - - - - - - - -
    {L_TEMPLATE_SELECT}
    {S_TEMPLATE_SELECT}   
    diff --git a/phpBB2_old/templates/christmas/admin/styles_list_body.tpl b/phpBB2_old/templates/christmas/admin/styles_list_body.tpl deleted file mode 100644 index 52c7519..0000000 --- a/phpBB2_old/templates/christmas/admin/styles_list_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_TEXT}

    - - - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_EDIT}{L_DELETE}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2_old/templates/christmas/admin/user_avatar_gallery.tpl b/phpBB2_old/templates/christmas/admin/user_avatar_gallery.tpl deleted file mode 100644 index e68c795..0000000 --- a/phpBB2_old/templates/christmas/admin/user_avatar_gallery.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}:  
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/christmas/admin/user_ban_body.tpl b/phpBB2_old/templates/christmas/admin/user_ban_body.tpl deleted file mode 100644 index 7486e90..0000000 --- a/phpBB2_old/templates/christmas/admin/user_ban_body.tpl +++ /dev/null @@ -1,54 +0,0 @@ - -

    {L_BAN_TITLE}

    - -

    {L_BAN_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BAN_USER}
    {L_USERNAME}: {S_HIDDEN_FIELDS}
    {L_UNBAN_USER}
    {L_USERNAME}:
    {L_UNBAN_USER_EXPLAIN}
    {S_UNBAN_USERLIST_SELECT}
    {L_BAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_BAN_IP_EXPLAIN}
    {L_UNBAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_UNBAN_IP_EXPLAIN}
    {S_UNBAN_IPLIST_SELECT}
    {L_BAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_BAN_EMAIL_EXPLAIN}
    {L_UNBAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_UNBAN_EMAIL_EXPLAIN}
    {S_UNBAN_EMAILLIST_SELECT}
      
    - -

    {L_BAN_EXPLAIN_WARN}

    diff --git a/phpBB2_old/templates/christmas/admin/user_edit_body.tpl b/phpBB2_old/templates/christmas/admin/user_edit_body.tpl deleted file mode 100644 index e43a307..0000000 --- a/phpBB2_old/templates/christmas/admin/user_edit_body.tpl +++ /dev/null @@ -1,310 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -{ERROR_BOX} - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER} - -
    {L_AIM} - -
    {L_MESSENGER} - -
    {L_YAHOO} - -
    {L_WEBSITE} - -
    {L_LOCATION} - -
    {L_OCCUPATION} - -
    {L_INTERESTS} - -
    {L_SIGNATURE}
    - {L_SIGNATURE_EXPLAIN}
    -
    - {HTML_STATUS}
    - {BBCODE_STATUS}
    - {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL} - - {L_YES}   - - {L_NO}
    {L_HIDE_USER} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES} - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}{LANGUAGE_SELECT}
    {L_BOARD_STYLE}{STYLE_SELECT}
    {L_TIMEZONE}{TIMEZONE_SELECT}
    {L_DATE_FORMAT}
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    - {AVATAR}
    - -  {L_DELETE_AVATAR}
    -
    {L_UPLOAD_AVATAR_FILE} - - -
    {L_UPLOAD_AVATAR_URL} - -
    {L_LINK_REMOTE_AVATAR} - -
    {L_AVATAR_GALLERY} - -
     
    {L_SPECIAL}
    {L_SPECIAL_EXPLAIN}
    {L_USER_ACTIVE} - - {L_YES}   - - {L_NO}
    {L_ALLOW_PM} - - {L_YES}   - - {L_NO}
    {L_ALLOW_AVATAR} - - {L_YES}   - - {L_NO}
    {L_SELECT_RANK}
    {L_DELETE_USER}? - - {L_DELETE_USER_EXPLAIN}
    {S_HIDDEN_FIELDS} - -    - -
    diff --git a/phpBB2_old/templates/christmas/admin/user_email_body.tpl b/phpBB2_old/templates/christmas/admin/user_email_body.tpl deleted file mode 100644 index 88bac1e..0000000 --- a/phpBB2_old/templates/christmas/admin/user_email_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_EMAIL_TITLE}

    - -

    {L_EMAIL_EXPLAIN}

    - -
    - -{ERROR_BOX} - - - - - - - - - - - - - - - - - - -
    {L_COMPOSE}
    {L_RECIPIENTS}{S_GROUP_SELECT}
    {L_EMAIL_SUBJECT}
    {L_EMAIL_MSG} - -
    - -
    diff --git a/phpBB2_old/templates/christmas/admin/user_select_body.tpl b/phpBB2_old/templates/christmas/admin/user_select_body.tpl deleted file mode 100644 index d19cec5..0000000 --- a/phpBB2_old/templates/christmas/admin/user_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - -
    {L_USER_SELECT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas/admin/words_edit_body.tpl b/phpBB2_old/templates/christmas/admin/words_edit_body.tpl deleted file mode 100644 index 0364237..0000000 --- a/phpBB2_old/templates/christmas/admin/words_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - -
    {L_WORD_CENSOR}
    {L_WORD}
    {L_REPLACEMENT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas/admin/words_list_body.tpl b/phpBB2_old/templates/christmas/admin/words_list_body.tpl deleted file mode 100644 index 710bd04..0000000 --- a/phpBB2_old/templates/christmas/admin/words_list_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - - - -
    {L_WORD}{L_REPLACEMENT}{L_ACTION}
    {words.WORD}{words.REPLACEMENT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas/agreement.tpl b/phpBB2_old/templates/christmas/agreement.tpl deleted file mode 100644 index 4f4fd7b..0000000 --- a/phpBB2_old/templates/christmas/agreement.tpl +++ /dev/null @@ -1,19 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - -
    {SITENAME} - {REGISTRATION}
    - - - -

    {AGREEMENT}



    diff --git a/phpBB2_old/templates/christmas/bbcode.tpl b/phpBB2_old/templates/christmas/bbcode.tpl deleted file mode 100644 index 1e3f650..0000000 --- a/phpBB2_old/templates/christmas/bbcode.tpl +++ /dev/null @@ -1,60 +0,0 @@ -
      -
    - -
      -
    - -
  • - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/phpBB2_old/templates/christmas/posting_preview.tpl b/phpBB2_old/templates/christmas/posting_preview.tpl deleted file mode 100644 index 572ebf4..0000000 --- a/phpBB2_old/templates/christmas/posting_preview.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -
    {USERNAME} {L_WROTE}:
    - - - - - - - - -
    {L_QUOTE}:
    -
    - - - - - - - - - - -
    {L_CODE}:
    -
    - - - - - - - - - - - - - - - - - - - - -{DESCRIPTION} - -{EMAIL} diff --git a/phpBB2_old/templates/christmas/christmas.cfg b/phpBB2_old/templates/christmas/christmas.cfg deleted file mode 100644 index 6f8ea81..0000000 --- a/phpBB2_old/templates/christmas/christmas.cfg +++ /dev/null @@ -1,101 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas/christmas.css b/phpBB2_old/templates/christmas/christmas.css deleted file mode 100644 index d856484..0000000 --- a/phpBB2_old/templates/christmas/christmas.css +++ /dev/null @@ -1,210 +0,0 @@ -/* - The orightinal christmas Theme for phpBB version 2+ - Created by subBlue design - http://www.subBlue.com -*/ - - - /* General page style. The scroll bar colours only visible in IE5.5+ */ -body { - background-color: #E5E5E5; - scrollbar-face-color: #DEE3E7; - scrollbar-highlight-color: #FFFFFF; - scrollbar-shadow-color: #DEE3E7; - scrollbar-3dlight-color: #D1D7DC; - scrollbar-arrow-color: #006699; - scrollbar-track-color: #EFEFEF; - scrollbar-darkshadow-color: #98AAB1; -} - -/* General font families for common tags */ -font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } -a:link,a:active,a:visited { color : #006699; } -a:hover { text-decoration: underline; color : #DD6900; } -hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} - - -/* This is the border line & background colour round the entire page */ -.bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } - -/* This is the outline round the main forum tables */ -.forumline { background-color: #FFFFFF; border: 2px #006699 solid; } - - -/* Main table cell colours and backgrounds */ -td.row1 { background-color: #EFEFEF; } -td.row2 { background-color: #DEE3E7; } -td.row3 { background-color: #D1D7DC; } - - -/* - This is for the table cell above the Topics, Post & Last posts on the index.php page - By default this is the fading out gradiated silver background. - However, you could replace this with a bitmap specific for each forum -*/ -td.rowpic { - background-color: #FFFFFF; - background-image: url(images/cellpic2.jpg); - background-repeat: repeat-y; -} - -/* Header cells - the blue and silver gradient backgrounds */ -th { - color: #FFA34F; font-size: 11px; font-weight : bold; - background-color: #006699; height: 25px; - background-image: url(images/cellpic3.gif); -} - -td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { - background-image: url(images/cellpic1.gif); - background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; -} - - -/* - Setting additional nice inner borders for the main table cells. - The names indicate which sides the border will be on. - Don't worry if you don't understand this, just ignore it :-) -*/ -td.cat,td.catHead,td.catBottom { - height: 29px; - border-width: 0px 0px 0px 0px; -} -th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { - font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } -td.row3Right,td.spaceRow { - background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } - -th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } -th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } -th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } -th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } -th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } -th.thTop { border-width: 1px 0px 0px 0px; } -th.thCornerL { border-width: 1px 0px 0px 1px; } -th.thCornerR { border-width: 1px 1px 0px 0px; } - - -/* The largest text used in the index page title and toptic title etc. */ -.maintitle,h1,h2 { - font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; - text-decoration: none; line-height : 120%; color : #000000; -} - - -/* General text */ -.gen { font-size : 12px; } -.genmed { font-size : 11px; } -.gensmall { font-size : 10px; } -.gen,.genmed,.gensmall { color : #000000; } -a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } -a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } - - -/* The register, login, search etc links at the top of the page */ -.mainmenu { font-size : 11px; color : #000000 } -a.mainmenu { text-decoration: none; color : #006699; } -a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } - - -/* Forum category titles */ -.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} -a.cattitle { text-decoration: none; color : #006699; } -a.cattitle:hover{ text-decoration: underline; } - - -/* Forum title: Text and link to the forums used in: index.php */ -.forumlink { font-weight: bold; font-size: 12px; color : #006699; } -a.forumlink { text-decoration: none; color : #006699; } -a.forumlink:hover{ text-decoration: underline; color : #DD6900; } - - -/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ -.nav { font-weight: bold; font-size: 11px; color : #000000;} -a.nav { text-decoration: none; color : #006699; } -a.nav:hover { text-decoration: underline; } - - -/* titles for the topics: could specify viewed link colour too */ -.topictitle { font-weight: bold; font-size: 11px; color : #000000; } -a.topictitle:link { text-decoration: none; color : #006699; } -a.topictitle:visited { text-decoration: none; color : #5493B4; } -a.topictitle:hover { text-decoration: underline; color : #DD6900; } - - -/* Name of poster in viewmsg.php and viewtopic.php and other places */ -.name { font-size : 11px; color : #000000;} - -/* Location, number of posts, post date etc */ -.postdetails { font-size : 10px; color : #000000; } - - -/* The content of the posts (body of text) */ -.postbody { font-size : 12px;} -a.postlink:link { text-decoration: none; color : #006699 } -a.postlink:visited { text-decoration: none; color : #5493B4; } -a.postlink:hover { text-decoration: underline; color : #DD6900} - - -/* Quote & Code blocks */ -.code { - font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; - background-color: #FAFAFA; border: #D1D7DC; border-style: solid; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - -.quote { - font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; - background-color: #FAFAFA; border: #D1D7DC; border-style: solid; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - - -/* Copyright and bottom info */ -.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} -a.copyright { color: #444444; text-decoration: none;} -a.copyright:hover { color: #000000; text-decoration: underline;} - - -/* Form elements */ -input,textarea, select { - color : #000000; - font: normal 11px Verdana, Arial, Helvetica, sans-serif; - border-color : #000000; -} - -/* The text input fields background colour */ -input.post, textarea.post, select { - background-color : #FFFFFF; -} - -input { text-indent : 2px; } - -/* The buttons used for bbCode styling in message post */ -input.button { - background-color : #EFEFEF; - color : #000000; - font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; -} - -/* The main submit button option */ -input.mainoption { - background-color : #FAFAFA; - font-weight : bold; -} - -/* None-bold submit button */ -input.liteoption { - background-color : #FAFAFA; - font-weight : normal; -} - -/* This is the line in the posting page which shows the rollover - help line. This is actually a text box, but if set to be the same - colour as the background no one will know ;) -*/ -.helpline { background-color: #DEE3E7; border-style: none; } - - -/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ -@import url("formIE.css"); diff --git a/phpBB2_old/templates/christmas/confirm_body.tpl b/phpBB2_old/templates/christmas/confirm_body.tpl deleted file mode 100644 index 318ac5a..0000000 --- a/phpBB2_old/templates/christmas/confirm_body.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}

    {MESSAGE_TEXT}

    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2_old/templates/christmas/error_body.tpl b/phpBB2_old/templates/christmas/error_body.tpl deleted file mode 100644 index bd7bc8d..0000000 --- a/phpBB2_old/templates/christmas/error_body.tpl +++ /dev/null @@ -1,18 +0,0 @@ - - - - - -
    - - - - - - - - - -
     
    {ERROR_MESSAGE}
     
    - -
    diff --git a/phpBB2_old/templates/christmas/faq_body.tpl b/phpBB2_old/templates/christmas/faq_body.tpl deleted file mode 100644 index 68bafb5..0000000 --- a/phpBB2_old/templates/christmas/faq_body.tpl +++ /dev/null @@ -1,52 +0,0 @@ - - - - - -
    - - - - - - - - - - - -
    {L_FAQ_TITLE}
    - - {faq_block_link.BLOCK_TITLE}
    - - {faq_block_link.faq_row_link.FAQ_LINK}
    - -
    - -
     
    - -
    - - - - - - - - - - - - - - -
    {faq_block.BLOCK_TITLE}
    {faq_block.faq_row.FAQ_QUESTION}
    {faq_block.faq_row.FAQ_ANSWER}
    {L_BACK_TO_TOP}
    - -
    - - - - - - -
    {S_TIMEZONE}

    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas/formIE.css b/phpBB2_old/templates/christmas/formIE.css deleted file mode 100644 index b76fd40..0000000 --- a/phpBB2_old/templates/christmas/formIE.css +++ /dev/null @@ -1,19 +0,0 @@ -/* Fancy form styles for IE */ - -input, textarea, select { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -input { text-indent : 2px; } - -input.button { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -.postbody { line-height: 18px} diff --git a/phpBB2_old/templates/christmas/groupcp_info_body.tpl b/phpBB2_old/templates/christmas/groupcp_info_body.tpl deleted file mode 100644 index 776eb3a..0000000 --- a/phpBB2_old/templates/christmas/groupcp_info_body.tpl +++ /dev/null @@ -1,128 +0,0 @@ - -
    - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_INFORMATION}
    {L_GROUP_NAME}:{GROUP_NAME}
    {L_GROUP_DESC}:{GROUP_DESC}
    {L_GROUP_MEMBERSHIP}:{GROUP_DETAILS}    - - - - - - -
    {L_GROUP_TYPE}: {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}   
    - -{S_HIDDEN_FIELDS} - -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_GROUP_MODERATOR}
    {MOD_PM_IMG} {MOD_USERNAME}{MOD_POSTS}{MOD_FROM}{MOD_EMAIL_IMG}{MOD_WWW_IMG}  
    {L_GROUP_MEMBERS}
    {member_row.PM_IMG} {member_row.USERNAME}{member_row.POSTS} {member_row.FROM} - {member_row.EMAIL_IMG} {member_row.WWW_IMG} - - - -
    {L_NO_MEMBERS}
    {L_HIDDEN_MEMBERS}
    - -
    - - - - - - -
    - -

    - - {PAGE_NUMBER}
    {S_TIMEZONE}
    {PAGINATION}
    - -{PENDING_USER_BOX} - -{S_HIDDEN_FIELDS}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas/groupcp_pending_info.tpl b/phpBB2_old/templates/christmas/groupcp_pending_info.tpl deleted file mode 100644 index 5b00be4..0000000 --- a/phpBB2_old/templates/christmas/groupcp_pending_info.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_PENDING_MEMBERS}
    {pending_members_row.PM_IMG} - {pending_members_row.USERNAME}{pending_members_row.POSTS}{pending_members_row.FROM}{pending_members_row.EMAIL_IMG}{pending_members_row.WWW_IMG}
    - -   - -
    diff --git a/phpBB2_old/templates/christmas/groupcp_user_body.tpl b/phpBB2_old/templates/christmas/groupcp_user_body.tpl deleted file mode 100644 index 906611a..0000000 --- a/phpBB2_old/templates/christmas/groupcp_user_body.tpl +++ /dev/null @@ -1,76 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_MEMBERSHIP_DETAILS}
    {L_YOU_BELONG_GROUPS} - - - - - -
    {GROUP_MEMBER_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_PENDING_GROUPS} - - - - - -
    {GROUP_PENDING_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_JOIN_A_GROUP}
    {L_SELECT_A_GROUP} - - - - - -
    {GROUP_LIST_SELECT} - {S_HIDDEN_FIELDS} -
    -
    - - - - - -
    {S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas/images/barre3.gif b/phpBB2_old/templates/christmas/images/barre3.gif deleted file mode 100644 index f9ad7e0..0000000 Binary files a/phpBB2_old/templates/christmas/images/barre3.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/cellpic.gif b/phpBB2_old/templates/christmas/images/cellpic.gif deleted file mode 100644 index 58846d0..0000000 Binary files a/phpBB2_old/templates/christmas/images/cellpic.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/cellpic1.gif b/phpBB2_old/templates/christmas/images/cellpic1.gif deleted file mode 100644 index 44b3430..0000000 Binary files a/phpBB2_old/templates/christmas/images/cellpic1.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/cellpic2.jpg b/phpBB2_old/templates/christmas/images/cellpic2.jpg deleted file mode 100644 index 764c0e5..0000000 Binary files a/phpBB2_old/templates/christmas/images/cellpic2.jpg and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/cellpic3.gif b/phpBB2_old/templates/christmas/images/cellpic3.gif deleted file mode 100644 index e27cdfd..0000000 Binary files a/phpBB2_old/templates/christmas/images/cellpic3.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/cellpic_bkg.gif b/phpBB2_old/templates/christmas/images/cellpic_bkg.gif deleted file mode 100644 index c806b23..0000000 Binary files a/phpBB2_old/templates/christmas/images/cellpic_bkg.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/created_by.jpg b/phpBB2_old/templates/christmas/images/created_by.jpg deleted file mode 100644 index 35f141b..0000000 Binary files a/phpBB2_old/templates/christmas/images/created_by.jpg and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/folder.gif b/phpBB2_old/templates/christmas/images/folder.gif deleted file mode 100644 index c2e74f5..0000000 Binary files a/phpBB2_old/templates/christmas/images/folder.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/folder_announce.gif b/phpBB2_old/templates/christmas/images/folder_announce.gif deleted file mode 100644 index b290827..0000000 Binary files a/phpBB2_old/templates/christmas/images/folder_announce.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/folder_announce_new.gif b/phpBB2_old/templates/christmas/images/folder_announce_new.gif deleted file mode 100644 index b290827..0000000 Binary files a/phpBB2_old/templates/christmas/images/folder_announce_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/folder_big.gif b/phpBB2_old/templates/christmas/images/folder_big.gif deleted file mode 100644 index c2e74f5..0000000 Binary files a/phpBB2_old/templates/christmas/images/folder_big.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/folder_hot.gif b/phpBB2_old/templates/christmas/images/folder_hot.gif deleted file mode 100644 index 30ed45d..0000000 Binary files a/phpBB2_old/templates/christmas/images/folder_hot.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/folder_lock.gif b/phpBB2_old/templates/christmas/images/folder_lock.gif deleted file mode 100644 index f782f79..0000000 Binary files a/phpBB2_old/templates/christmas/images/folder_lock.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/folder_lock_new.gif b/phpBB2_old/templates/christmas/images/folder_lock_new.gif deleted file mode 100644 index c1eb69c..0000000 Binary files a/phpBB2_old/templates/christmas/images/folder_lock_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/folder_locked_big.gif b/phpBB2_old/templates/christmas/images/folder_locked_big.gif deleted file mode 100644 index f782f79..0000000 Binary files a/phpBB2_old/templates/christmas/images/folder_locked_big.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/folder_new.gif b/phpBB2_old/templates/christmas/images/folder_new.gif deleted file mode 100644 index aea561b..0000000 Binary files a/phpBB2_old/templates/christmas/images/folder_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/folder_new_big.gif b/phpBB2_old/templates/christmas/images/folder_new_big.gif deleted file mode 100644 index aea561b..0000000 Binary files a/phpBB2_old/templates/christmas/images/folder_new_big.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/folder_new_hot.gif b/phpBB2_old/templates/christmas/images/folder_new_hot.gif deleted file mode 100644 index d326aef..0000000 Binary files a/phpBB2_old/templates/christmas/images/folder_new_hot.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/folder_sticky.gif b/phpBB2_old/templates/christmas/images/folder_sticky.gif deleted file mode 100644 index a5fadc9..0000000 Binary files a/phpBB2_old/templates/christmas/images/folder_sticky.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/folder_sticky_new.gif b/phpBB2_old/templates/christmas/images/folder_sticky_new.gif deleted file mode 100644 index a5fadc9..0000000 Binary files a/phpBB2_old/templates/christmas/images/folder_sticky_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/icon_delete.gif b/phpBB2_old/templates/christmas/images/icon_delete.gif deleted file mode 100644 index 4dd7962..0000000 Binary files a/phpBB2_old/templates/christmas/images/icon_delete.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/icon_latest_reply.gif b/phpBB2_old/templates/christmas/images/icon_latest_reply.gif deleted file mode 100644 index b45e57a..0000000 Binary files a/phpBB2_old/templates/christmas/images/icon_latest_reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/icon_login.gif b/phpBB2_old/templates/christmas/images/icon_login.gif deleted file mode 100644 index 1a77964..0000000 Binary files a/phpBB2_old/templates/christmas/images/icon_login.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/icon_logout.gif b/phpBB2_old/templates/christmas/images/icon_logout.gif deleted file mode 100644 index 94df93c..0000000 Binary files a/phpBB2_old/templates/christmas/images/icon_logout.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/icon_mini_faq.gif b/phpBB2_old/templates/christmas/images/icon_mini_faq.gif deleted file mode 100644 index 26f7a57..0000000 Binary files a/phpBB2_old/templates/christmas/images/icon_mini_faq.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/icon_mini_groups.gif b/phpBB2_old/templates/christmas/images/icon_mini_groups.gif deleted file mode 100644 index 8fe8d48..0000000 Binary files a/phpBB2_old/templates/christmas/images/icon_mini_groups.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/icon_mini_login.gif b/phpBB2_old/templates/christmas/images/icon_mini_login.gif deleted file mode 100644 index 30b309b..0000000 Binary files a/phpBB2_old/templates/christmas/images/icon_mini_login.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/icon_mini_members.gif b/phpBB2_old/templates/christmas/images/icon_mini_members.gif deleted file mode 100644 index 3a64e10..0000000 Binary files a/phpBB2_old/templates/christmas/images/icon_mini_members.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/icon_mini_message.gif b/phpBB2_old/templates/christmas/images/icon_mini_message.gif deleted file mode 100644 index a8c7ddf..0000000 Binary files a/phpBB2_old/templates/christmas/images/icon_mini_message.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/icon_mini_profile.gif b/phpBB2_old/templates/christmas/images/icon_mini_profile.gif deleted file mode 100644 index 8b10145..0000000 Binary files a/phpBB2_old/templates/christmas/images/icon_mini_profile.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/icon_mini_register.gif b/phpBB2_old/templates/christmas/images/icon_mini_register.gif deleted file mode 100644 index 4ac3b77..0000000 Binary files a/phpBB2_old/templates/christmas/images/icon_mini_register.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/icon_mini_search.gif b/phpBB2_old/templates/christmas/images/icon_mini_search.gif deleted file mode 100644 index b1eb8c9..0000000 Binary files a/phpBB2_old/templates/christmas/images/icon_mini_search.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/icon_minipost.gif b/phpBB2_old/templates/christmas/images/icon_minipost.gif deleted file mode 100644 index d172abb..0000000 Binary files a/phpBB2_old/templates/christmas/images/icon_minipost.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/icon_minipost_new.gif b/phpBB2_old/templates/christmas/images/icon_minipost_new.gif deleted file mode 100644 index 8ec44a1..0000000 Binary files a/phpBB2_old/templates/christmas/images/icon_minipost_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/icon_newest_reply.gif b/phpBB2_old/templates/christmas/images/icon_newest_reply.gif deleted file mode 100644 index eca2861..0000000 Binary files a/phpBB2_old/templates/christmas/images/icon_newest_reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/index.htm b/phpBB2_old/templates/christmas/images/index.htm deleted file mode 100644 index 73b375a..0000000 --- a/phpBB2_old/templates/christmas/images/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -christmas created by subBlue Design - - - - - - - - - -
    Created by subBlue Design
    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas/images/lang_english/icon_aim.gif b/phpBB2_old/templates/christmas/images/lang_english/icon_aim.gif deleted file mode 100644 index 3014853..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/icon_aim.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_english/icon_edit.gif b/phpBB2_old/templates/christmas/images/lang_english/icon_edit.gif deleted file mode 100644 index 11668a5..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/icon_edit.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_english/icon_email.gif b/phpBB2_old/templates/christmas/images/lang_english/icon_email.gif deleted file mode 100644 index 5f194b0..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/icon_email.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_english/icon_icq_add.gif b/phpBB2_old/templates/christmas/images/lang_english/icon_icq_add.gif deleted file mode 100644 index c8d2830..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_english/icon_ip.gif b/phpBB2_old/templates/christmas/images/lang_english/icon_ip.gif deleted file mode 100644 index 1c9923a..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/icon_ip.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_english/icon_msnm.gif b/phpBB2_old/templates/christmas/images/lang_english/icon_msnm.gif deleted file mode 100644 index d5507e2..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/icon_msnm.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_english/icon_pm.gif b/phpBB2_old/templates/christmas/images/lang_english/icon_pm.gif deleted file mode 100644 index 270e39a..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/icon_pm.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_english/icon_profile.gif b/phpBB2_old/templates/christmas/images/lang_english/icon_profile.gif deleted file mode 100644 index 20f1d93..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/icon_profile.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_english/icon_quote.gif b/phpBB2_old/templates/christmas/images/lang_english/icon_quote.gif deleted file mode 100644 index a7a9984..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/icon_quote.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_english/icon_search.gif b/phpBB2_old/templates/christmas/images/lang_english/icon_search.gif deleted file mode 100644 index c4df944..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/icon_search.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_english/icon_www.gif b/phpBB2_old/templates/christmas/images/lang_english/icon_www.gif deleted file mode 100644 index de76a44..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/icon_www.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_english/icon_yim.gif b/phpBB2_old/templates/christmas/images/lang_english/icon_yim.gif deleted file mode 100644 index da307c9..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/icon_yim.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_english/msg_newpost.gif b/phpBB2_old/templates/christmas/images/lang_english/msg_newpost.gif deleted file mode 100644 index 6fcf81c..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/msg_newpost.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_english/post.gif b/phpBB2_old/templates/christmas/images/lang_english/post.gif deleted file mode 100644 index d427967..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/post.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_english/reply-locked.gif b/phpBB2_old/templates/christmas/images/lang_english/reply-locked.gif deleted file mode 100644 index 175dae0..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/reply-locked.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_english/reply.gif b/phpBB2_old/templates/christmas/images/lang_english/reply.gif deleted file mode 100644 index 6c24898..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_english/reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/Thumbs.db b/phpBB2_old/templates/christmas/images/lang_french/Thumbs.db deleted file mode 100644 index ac35725..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/Thumbs.db and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/icon_aim.gif b/phpBB2_old/templates/christmas/images/lang_french/icon_aim.gif deleted file mode 100644 index 3014853..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/icon_aim.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/icon_edit.gif b/phpBB2_old/templates/christmas/images/lang_french/icon_edit.gif deleted file mode 100644 index 3d7f78c..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/icon_edit.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/icon_email.gif b/phpBB2_old/templates/christmas/images/lang_french/icon_email.gif deleted file mode 100644 index 5e3647c..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/icon_email.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/icon_icq_add.gif b/phpBB2_old/templates/christmas/images/lang_french/icon_icq_add.gif deleted file mode 100644 index 2b1361d..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/icon_ip.gif b/phpBB2_old/templates/christmas/images/lang_french/icon_ip.gif deleted file mode 100644 index 79b59fe..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/icon_ip.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/icon_msnm.gif b/phpBB2_old/templates/christmas/images/lang_french/icon_msnm.gif deleted file mode 100644 index 4288be0..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/icon_msnm.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/icon_pm.gif b/phpBB2_old/templates/christmas/images/lang_french/icon_pm.gif deleted file mode 100644 index 02375cb..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/icon_pm.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/icon_profile.gif b/phpBB2_old/templates/christmas/images/lang_french/icon_profile.gif deleted file mode 100644 index 777f844..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/icon_profile.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/icon_quote.gif b/phpBB2_old/templates/christmas/images/lang_french/icon_quote.gif deleted file mode 100644 index f67d2d6..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/icon_quote.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/icon_search.gif b/phpBB2_old/templates/christmas/images/lang_french/icon_search.gif deleted file mode 100644 index c4df944..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/icon_search.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/icon_www.gif b/phpBB2_old/templates/christmas/images/lang_french/icon_www.gif deleted file mode 100644 index de76a44..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/icon_www.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/icon_yim.gif b/phpBB2_old/templates/christmas/images/lang_french/icon_yim.gif deleted file mode 100644 index da307c9..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/icon_yim.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/msg_newpost.gif b/phpBB2_old/templates/christmas/images/lang_french/msg_newpost.gif deleted file mode 100644 index 8eaeb9c..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/msg_newpost.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/post.gif b/phpBB2_old/templates/christmas/images/lang_french/post.gif deleted file mode 100644 index 8eaeb9c..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/post.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/reply-locked.gif b/phpBB2_old/templates/christmas/images/lang_french/reply-locked.gif deleted file mode 100644 index aa12418..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/reply-locked.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/lang_french/reply.gif b/phpBB2_old/templates/christmas/images/lang_french/reply.gif deleted file mode 100644 index f8d596f..0000000 Binary files a/phpBB2_old/templates/christmas/images/lang_french/reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/logo_phpBB.gif b/phpBB2_old/templates/christmas/images/logo_phpBB.gif deleted file mode 100644 index d7b3166..0000000 Binary files a/phpBB2_old/templates/christmas/images/logo_phpBB.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/logo_phpBB2.gif b/phpBB2_old/templates/christmas/images/logo_phpBB2.gif deleted file mode 100644 index 3bd7a8e..0000000 Binary files a/phpBB2_old/templates/christmas/images/logo_phpBB2.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/logo_phpBB_med.gif b/phpBB2_old/templates/christmas/images/logo_phpBB_med.gif deleted file mode 100644 index dbda1ae..0000000 Binary files a/phpBB2_old/templates/christmas/images/logo_phpBB_med.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/msg_inbox.gif b/phpBB2_old/templates/christmas/images/msg_inbox.gif deleted file mode 100644 index 1647465..0000000 Binary files a/phpBB2_old/templates/christmas/images/msg_inbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/msg_outbox.gif b/phpBB2_old/templates/christmas/images/msg_outbox.gif deleted file mode 100644 index 9a7262e..0000000 Binary files a/phpBB2_old/templates/christmas/images/msg_outbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/msg_savebox.gif b/phpBB2_old/templates/christmas/images/msg_savebox.gif deleted file mode 100644 index 072f628..0000000 Binary files a/phpBB2_old/templates/christmas/images/msg_savebox.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/msg_sentbox.gif b/phpBB2_old/templates/christmas/images/msg_sentbox.gif deleted file mode 100644 index 5cde5b0..0000000 Binary files a/phpBB2_old/templates/christmas/images/msg_sentbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/phpbb-design.gif b/phpBB2_old/templates/christmas/images/phpbb-design.gif deleted file mode 100644 index a389dff..0000000 Binary files a/phpBB2_old/templates/christmas/images/phpbb-design.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/spacer.gif b/phpBB2_old/templates/christmas/images/spacer.gif deleted file mode 100644 index 5bfd67a..0000000 Binary files a/phpBB2_old/templates/christmas/images/spacer.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/topic_delete.gif b/phpBB2_old/templates/christmas/images/topic_delete.gif deleted file mode 100644 index ecff1e5..0000000 Binary files a/phpBB2_old/templates/christmas/images/topic_delete.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/topic_lock.gif b/phpBB2_old/templates/christmas/images/topic_lock.gif deleted file mode 100644 index e4d37a7..0000000 Binary files a/phpBB2_old/templates/christmas/images/topic_lock.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/topic_move.gif b/phpBB2_old/templates/christmas/images/topic_move.gif deleted file mode 100644 index 138646f..0000000 Binary files a/phpBB2_old/templates/christmas/images/topic_move.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/topic_split.gif b/phpBB2_old/templates/christmas/images/topic_split.gif deleted file mode 100644 index 9d9d893..0000000 Binary files a/phpBB2_old/templates/christmas/images/topic_split.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/topic_unlock.gif b/phpBB2_old/templates/christmas/images/topic_unlock.gif deleted file mode 100644 index 36f3d68..0000000 Binary files a/phpBB2_old/templates/christmas/images/topic_unlock.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/vote_lcap.gif b/phpBB2_old/templates/christmas/images/vote_lcap.gif deleted file mode 100644 index 22e1080..0000000 Binary files a/phpBB2_old/templates/christmas/images/vote_lcap.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/vote_rcap.gif b/phpBB2_old/templates/christmas/images/vote_rcap.gif deleted file mode 100644 index 28da06f..0000000 Binary files a/phpBB2_old/templates/christmas/images/vote_rcap.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/voting_bar.gif b/phpBB2_old/templates/christmas/images/voting_bar.gif deleted file mode 100644 index ced112d..0000000 Binary files a/phpBB2_old/templates/christmas/images/voting_bar.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/images/whosonline.gif b/phpBB2_old/templates/christmas/images/whosonline.gif deleted file mode 100644 index 3bea906..0000000 Binary files a/phpBB2_old/templates/christmas/images/whosonline.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas/index.htm b/phpBB2_old/templates/christmas/index.htm deleted file mode 100644 index 6031d56..0000000 --- a/phpBB2_old/templates/christmas/index.htm +++ /dev/null @@ -1,20 +0,0 @@ - - -christmas created by subBlue Design - - - - - - - - - - - - -
    Created by subBlue Design

     

    -

    phpBB-design.com

    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas/index_body.tpl b/phpBB2_old/templates/christmas/index_body.tpl deleted file mode 100644 index 4daa0e0..0000000 --- a/phpBB2_old/templates/christmas/index_body.tpl +++ /dev/null @@ -1,104 +0,0 @@ - -
    - - - - - - - -
    {L_LOGIN_LOGOUT}
    {L_USERNAME}: - -    {L_PASSWORD}: - -      {L_AUTO_LOGIN} - -     - -
    -
    - - - - - - - -
    - - {LAST_VISIT_DATE}
    - - {CURRENT_TIME}
    {L_INDEX}
    - - {L_SEARCH_NEW}
    {L_SEARCH_SELF}
    - - {L_SEARCH_UNANSWERED}
    - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FORUM}  {L_TOPICS}  {L_POSTS}  {L_LASTPOST} 
    {catrow.CAT_DESC} 
    {catrow.forumrow.L_FORUM_FOLDER_ALT} {catrow.forumrow.FORUM_NAME}
    -
    {catrow.forumrow.FORUM_DESC}
    -
    {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
    {catrow.forumrow.TOPICS}{catrow.forumrow.POSTS} {catrow.forumrow.LAST_POST}
    - - - - - - -
    {L_MARK_FORUMS_READ}{S_TIMEZONE}
    - - - - - - - - - - - - -
    {L_WHO_IS_ONLINE}
    {L_WHO_IS_ONLINE}{TOTAL_POSTS}
    {TOTAL_USERS}
    {NEWEST_USER}
    -
    {TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
    {RECORD_USERS}
    {LOGGED_IN_USER_LIST}
    - - - - - -
    {L_ONLINE_EXPLAIN}
    - - -
    - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_FORUM_LOCKED}{L_FORUM_LOCKED}
    diff --git a/phpBB2_old/templates/christmas/install.tpl b/phpBB2_old/templates/christmas/install.tpl deleted file mode 100644 index 292d18b..0000000 --- a/phpBB2_old/templates/christmas/install.tpl +++ /dev/null @@ -1,183 +0,0 @@ - - - - - -{L_INSTALLATION} - - - - - - - - - -
    - - - - - - - - - - - - - - - -
    - - - - -
    Forum Home{L_INSTALLATION}


    - - - -
    {L_INSTRUCTION_TEXT}


    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_INITIAL_CONFIGURATION}
    {L_LANGUAGE}: {S_LANG_SELECT}
    {L_DBMS}: {S_DBMS_SELECT}
    {L_UPGRADE}:{S_UPGRADE_SELECT}
    {L_DATABASE_CONFIGURATION}
    {L_DB_HOST}:
    {L_DB_NAME}:
    {L_DB_USER}:
    {L_DB_PASSWORD}:
    {L_DB_PREFIX}:
    {L_ADMIN_CONFIGURATION}
    {L_ADMIN_EMAIL}:
    {L_SERVER_NAME}:
    {L_SERVER_PORT}:
    {L_SCRIPT_PATH}:
    {L_ADMIN_USERNAME}:
    {L_ADMIN_PASSWORD}:
    {L_ADMIN_CONFIRM_PASSWORD}:
    {L_ERROR_TITLE}
    {L_ERROR}
    {L_FTP_INFO}
    {L_FTP_PATH}
    {L_FTP_USER}
    {L_FTP_PASS}
    {L_CHOOSE_FTP}
    {L_ATTEMPT_FTP}
    {L_SEND_FILE}
    {S_HIDDEN_FIELDS}
    {L_UPGRADE_INST}
    - - -
    diff --git a/phpBB2_old/templates/christmas/jumpbox.tpl b/phpBB2_old/templates/christmas/jumpbox.tpl deleted file mode 100644 index 5cddb06..0000000 --- a/phpBB2_old/templates/christmas/jumpbox.tpl +++ /dev/null @@ -1,6 +0,0 @@ - -
    - - - -
    {L_JUMP_TO}: {S_JUMPBOX_SELECT} 
    diff --git a/phpBB2_old/templates/christmas/login_body.tpl b/phpBB2_old/templates/christmas/login_body.tpl deleted file mode 100644 index 7fe86be..0000000 --- a/phpBB2_old/templates/christmas/login_body.tpl +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - -
    - - - - - - - - -
    {L_ENTER_PASSWORD}
    - - - - - - - - - - - - - - - - - - - - -
     
    {L_USERNAME}: - -
    {L_PASSWORD}: - -
    {L_AUTO_LOGIN}:
    {S_HIDDEN_FIELDS}
    {L_SEND_PASSWORD}
    - -
    diff --git a/phpBB2_old/templates/christmas/memberlist_body.tpl b/phpBB2_old/templates/christmas/memberlist_body.tpl deleted file mode 100644 index bc27389..0000000 --- a/phpBB2_old/templates/christmas/memberlist_body.tpl +++ /dev/null @@ -1,55 +0,0 @@ - -
    - - - - - -
    {L_INDEX}{L_SELECT_SORT_METHOD}: {S_MODE_SELECT}  {L_ORDER} {S_ORDER_SELECT}   - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # {L_USERNAME}{L_EMAIL}{L_FROM}{L_JOINED}{L_POSTS}{L_WEBSITE}
     {memberrow.ROW_NUMBER}  {memberrow.PM_IMG} {memberrow.USERNAME} {memberrow.EMAIL_IMG} {memberrow.FROM}{memberrow.JOINED}{memberrow.POSTS} {memberrow.WWW_IMG} 
     
    - - - - -
    - - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas/message_body.tpl b/phpBB2_old/templates/christmas/message_body.tpl deleted file mode 100644 index 95a510e..0000000 --- a/phpBB2_old/templates/christmas/message_body.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - -
     
    {MESSAGE_TEXT}
     
    - -
    diff --git a/phpBB2_old/templates/christmas/modcp_body.tpl b/phpBB2_old/templates/christmas/modcp_body.tpl deleted file mode 100644 index 0d3d1f7..0000000 --- a/phpBB2_old/templates/christmas/modcp_body.tpl +++ /dev/null @@ -1,58 +0,0 @@ - -
    - - - - -
    {L_INDEX} -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_MOD_CP} -
    {L_MOD_CP_EXPLAIN}
      {L_TOPICS}  {L_REPLIES}  {L_LASTPOST}  {L_SELECT} 
    {topicrow.L_TOPIC_FOLDER_ALT} {topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}{topicrow.REPLIES}{topicrow.LAST_POST_TIME} - -
    {S_HIDDEN_FIELDS} - -   - -   - -   - -
    - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    -
    - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas/modcp_move.tpl b/phpBB2_old/templates/christmas/modcp_move.tpl deleted file mode 100644 index 38bbe35..0000000 --- a/phpBB2_old/templates/christmas/modcp_move.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - - -
     
    {L_MOVE_TO_FORUM}   {S_FORUM_SELECT}

    - {L_LEAVESHADOW}
    -
    - {MESSAGE_TEXT}

    -
    - {S_HIDDEN_FIELDS} - -    - -
     
    -
    -
    diff --git a/phpBB2_old/templates/christmas/modcp_split.tpl b/phpBB2_old/templates/christmas/modcp_split.tpl deleted file mode 100644 index c343a9c..0000000 --- a/phpBB2_old/templates/christmas/modcp_split.tpl +++ /dev/null @@ -1,87 +0,0 @@ - -
    - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SPLIT_TOPIC}
    {L_SPLIT_TOPIC_EXPLAIN}
    {L_SPLIT_SUBJECT} - -
    {L_SPLIT_FORUM}{S_FORUM_SELECT}
    - - - - - -
    - - - -
    -
    {L_AUTHOR}{L_MESSAGE}{L_SELECT}
    {postrow.POSTER_NAME} - - - - - - - -
    {L_POST}{L_POSTED}: - {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}
    -
    - {postrow.MESSAGE}
    -
    {postrow.S_SPLIT_CHECKBOX}
    .
    - - - - - -
    - - - - {S_HIDDEN_FIELDS}
    -
    - - - - -
    {S_TIMEZONE}
    -
    diff --git a/phpBB2_old/templates/christmas/modcp_viewip.tpl b/phpBB2_old/templates/christmas/modcp_viewip.tpl deleted file mode 100644 index a28deb8..0000000 --- a/phpBB2_old/templates/christmas/modcp_viewip.tpl +++ /dev/null @@ -1,58 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_IP_INFO}
    {L_THIS_POST_IP}
    - - - - - -
     {IP} [ {POSTS} ][ {L_LOOKUP_IP} - ] 
    -
    {L_OTHER_USERS}
    - - - - - -
     {userrow.USERNAME} [ {userrow.POSTS} ]{L_SEARCH} -  
    -
    {L_OTHER_IPS}
    - - - - -
     {iprow.IP} [ {iprow.POSTS} ][ {L_LOOKUP_IP} - ] 
    - -
    diff --git a/phpBB2_old/templates/christmas/overall_footer.tpl b/phpBB2_old/templates/christmas/overall_footer.tpl deleted file mode 100644 index 8c590c1..0000000 --- a/phpBB2_old/templates/christmas/overall_footer.tpl +++ /dev/null @@ -1,15 +0,0 @@ - -


    {ADMIN_LINK}
    - -Powered by phpBB - {PHPBB_VERSION} © 2001, 2002 phpBB Group
    Thème Designed by The SoSophpBB Team © 2002
    {TRANSLATION_INFO}
    -
    \ No newline at end of file diff --git a/phpBB2_old/templates/christmas/overall_header.tpl b/phpBB2_old/templates/christmas/overall_header.tpl deleted file mode 100644 index 3460a3b..0000000 --- a/phpBB2_old/templates/christmas/overall_header.tpl +++ /dev/null @@ -1,379 +0,0 @@ - - - - - -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - - -{META} -{NAV_LINKS} - - - - - -
    - - - -
    {L_INDEX}

    {SITE_DESCRIPTION}
      - - -
    - -
    {L_FAQ} {L_SEARCH} {L_MEMBERLIST} {L_USERGROUPS} - - {L_REGISTER} - -
    {L_PROFILE} {PRIVATE_MESSAGE_INFO} - - {L_LOGIN_LOGOUT} - - - {L_LOGIN_LOGOUT} - -
    - -
    -

    -

    diff --git a/phpBB2_old/templates/christmas/posting_body.tpl b/phpBB2_old/templates/christmas/posting_body.tpl deleted file mode 100644 index 7657e7c..0000000 --- a/phpBB2_old/templates/christmas/posting_body.tpl +++ /dev/null @@ -1,448 +0,0 @@ - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX_LINK}  {SENTBOX_IMG}{SENTBOX_LINK}  {OUTBOX_IMG}{OUTBOX_LINK}  {SAVEBOX_IMG}{SAVEBOX_LINK}  
    -
    - -
    - - -
    - -{POST_PREVIEW_BOX} -{ERROR_BOX} - - - - - - -
    {L_INDEX} - - -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {POLLBOX} - - - -
    {L_POST_A}
    {L_USERNAME}
    {L_USERNAME} 
    {L_SUBJECT} - -
    - - - - - - - -
    {L_MESSAGE_BODY}

    - - - - - - - - - - - - - - - - -
    {L_EMOTICONS}
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}
    -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - - - -
    - - - - - -
     {L_FONT_COLOR}: -  {L_FONT_SIZE}: - {L_BBCODE_CLOSE_TAGS}
    -
    - -
    - -
    -
    {L_OPTIONS}
    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - {L_DISABLE_HTML}
    - - {L_DISABLE_BBCODE}
    - - {L_DISABLE_SMILIES}
    - - {L_ATTACH_SIGNATURE}
    - - {L_NOTIFY_ON_REPLY}
    - - {L_DELETE_POST}
    {S_TYPE_TOGGLE}
    -
    {S_HIDDEN_FORM_FIELDS} 
    - - - - - -
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    - -{TOPIC_REVIEW_BOX} diff --git a/phpBB2_old/templates/christmas/posting_poll_body.tpl b/phpBB2_old/templates/christmas/posting_poll_body.tpl deleted file mode 100644 index 68ce567..0000000 --- a/phpBB2_old/templates/christmas/posting_poll_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -
    {L_ADD_A_POLL}
    {L_ADD_POLL_EXPLAIN}
    {L_POLL_QUESTION}
    {L_POLL_OPTION}  
    {L_POLL_OPTION}  
    {L_POLL_LENGTH} {L_DAYS}   {L_POLL_LENGTH_EXPLAIN}
    {L_POLL_DELETE}
    - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_POST}{L_POSTED}: {POST_DATE}     {L_POST_SUBJECT}: {POST_SUBJECT}
    - - - -
    - {MESSAGE} -
    - -
    diff --git a/phpBB2_old/templates/christmas/posting_smilies.tpl b/phpBB2_old/templates/christmas/posting_smilies.tpl deleted file mode 100644 index 72ac84c..0000000 --- a/phpBB2_old/templates/christmas/posting_smilies.tpl +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - -
    - - - - - - - - - -
    {L_EMOTICONS}
    - - - - - - - - - - - - -
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}

    {L_CLOSE_WINDOW}
    diff --git a/phpBB2_old/templates/christmas/posting_topic_review.tpl b/phpBB2_old/templates/christmas/posting_topic_review.tpl deleted file mode 100644 index ac77328..0000000 --- a/phpBB2_old/templates/christmas/posting_topic_review.tpl +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - -
    {L_TOPIC_REVIEW}
    - diff --git a/phpBB2_old/templates/christmas/privmsgs_body.tpl b/phpBB2_old/templates/christmas/privmsgs_body.tpl deleted file mode 100644 index 4a40dda..0000000 --- a/phpBB2_old/templates/christmas/privmsgs_body.tpl +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}  
    -
    - - - - - - - - - - - - - -
    {BOX_SIZE_STATUS}
    - - - - -
    {INBOX_LIMIT_PERCENT}
    -
    0%50%100%
    - -
    - -
    - -
    - - - - - - -
    {POST_PM_IMG} {L_INDEX}{L_DISPLAY_MESSAGES}: - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FLAG}  {L_SUBJECT}  {L_FROM_OR_TO}  {L_DATE}  {L_MARK} 
    {listrow.L_PRIVMSG_FOLDER_ALT} {listrow.SUBJECT} {listrow.FROM}{listrow.DATE} - -
    {L_NO_MESSAGES}
    {S_HIDDEN_FIELDS} - -   - -   - -
    - - - - - - - -
    {POST_PM_IMG}{PAGE_NUMBER}{L_MARK_ALL} :: {L_UNMARK_ALL}
    {PAGINATION}
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas/privmsgs_popup.tpl b/phpBB2_old/templates/christmas/privmsgs_popup.tpl deleted file mode 100644 index 8f1213f..0000000 --- a/phpBB2_old/templates/christmas/privmsgs_popup.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - -
    - - - - -

    {L_MESSAGE}

    {L_CLOSE_WINDOW}

    -
    diff --git a/phpBB2_old/templates/christmas/privmsgs_preview.tpl b/phpBB2_old/templates/christmas/privmsgs_preview.tpl deleted file mode 100644 index 84fd116..0000000 --- a/phpBB2_old/templates/christmas/privmsgs_preview.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT}
    {MESSAGE}
    - -
    diff --git a/phpBB2_old/templates/christmas/privmsgs_read_body.tpl b/phpBB2_old/templates/christmas/privmsgs_read_body.tpl deleted file mode 100644 index 19cb9f4..0000000 --- a/phpBB2_old/templates/christmas/privmsgs_read_body.tpl +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}
    - -
    - -
    - - - - - -
    {REPLY_PM_IMG} {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {BOX_NAME} :: {L_MESSAGE}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT} {QUOTE_PM_IMG} {EDIT_PM_IMG}
    {MESSAGE}
    - - - - -
    {PROFILE_IMG} {PM_IMG} {EMAIL_IMG} - {WWW_IMG} {AIM_IMG} {YIM_IMG} {MSN_IMG} 
    -
    {S_HIDDEN_FIELDS} - -   - -
    - - - - - -
    {REPLY_PM_IMG}{S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas/profile_add_body.tpl b/phpBB2_old/templates/christmas/profile_add_body.tpl deleted file mode 100644 index 4bca8b8..0000000 --- a/phpBB2_old/templates/christmas/profile_add_body.tpl +++ /dev/null @@ -1,264 +0,0 @@ - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: *{USERNAME}
    {L_USERNAME}: *
    {L_EMAIL_ADDRESS}: *
    {L_CURRENT_PASSWORD}: *
    - {L_CONFIRM_PASSWORD_EXPLAIN}
    - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER}: - -
    {L_AIM}: - -
    {L_MESSENGER}: - -
    {L_YAHOO}: - -
    {L_WEBSITE}: - -
    {L_LOCATION}: - -
    {L_OCCUPATION}: - -
    {L_INTERESTS}: - -
    {L_SIGNATURE}:
    {L_SIGNATURE_EXPLAIN}

    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL}: - - {L_YES}   - - {L_NO}
    {L_HIDE_USER}: - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY}:
    - {L_NOTIFY_ON_REPLY_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG}: - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG}:
    {L_POPUP_ON_PRIVMSG_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES}: - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}:{LANGUAGE_SELECT}
    {L_BOARD_STYLE}:{STYLE_SELECT}
    {L_TIMEZONE}:{TIMEZONE_SELECT}
    {L_DATE_FORMAT}:
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    {AVATAR}
     {L_DELETE_AVATAR}
    {L_UPLOAD_AVATAR_FILE}:
    {L_UPLOAD_AVATAR_URL}:
    {L_UPLOAD_AVATAR_URL_EXPLAIN}
    {L_LINK_REMOTE_AVATAR}:
    {L_LINK_REMOTE_AVATAR_EXPLAIN}
    {L_AVATAR_GALLERY}:
    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2_old/templates/christmas/profile_avatar_gallery.tpl b/phpBB2_old/templates/christmas/profile_avatar_gallery.tpl deleted file mode 100644 index a04eafe..0000000 --- a/phpBB2_old/templates/christmas/profile_avatar_gallery.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}: {S_CATEGORY_SELECT} 
    {avatar_row.avatar_column.AVATAR_NAME}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/christmas/profile_send_email.tpl b/phpBB2_old/templates/christmas/profile_send_email.tpl deleted file mode 100644 index 7b85aab..0000000 --- a/phpBB2_old/templates/christmas/profile_send_email.tpl +++ /dev/null @@ -1,74 +0,0 @@ - - - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEND_EMAIL_MSG}
    {L_RECIPIENT}{USERNAME}
    {L_SUBJECT}
    {L_MESSAGE_BODY}
    {L_MESSAGE_BODY_DESC}
    {L_OPTIONS} - - - - -
    {L_CC_EMAIL}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas/profile_send_pass.tpl b/phpBB2_old/templates/christmas/profile_send_pass.tpl deleted file mode 100644 index dd6f039..0000000 --- a/phpBB2_old/templates/christmas/profile_send_pass.tpl +++ /dev/null @@ -1,35 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - -
    {L_SEND_PASSWORD}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/christmas/profile_view_body.tpl b/phpBB2_old/templates/christmas/profile_view_body.tpl deleted file mode 100644 index 32eda1b..0000000 --- a/phpBB2_old/templates/christmas/profile_view_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - -
    {L_VIEWING_PROFILE}
    {L_AVATAR}{L_ABOUT_USER}
    {AVATAR_IMG}
    {POSTER_RANK}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_JOINED}: {JOINED}
    {L_TOTAL_POSTS}: {POSTS}
    [{POST_PERCENT_STATS} / {POST_DAY_STATS}]
    {L_SEARCH_USER_POSTS}
    {L_LOCATION}: {LOCATION}
    {L_WEBSITE}: {WWW}
    {L_OCCUPATION}: {OCCUPATION}
    {L_INTERESTS}: {INTERESTS}
    -
    {L_CONTACT} {USERNAME}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_EMAIL_ADDRESS}:{EMAIL_IMG}
    {L_PM}:{PM_IMG}
    {L_MESSENGER}:{MSN}
    {L_YAHOO}:{YIM_IMG}
    {L_AIM}:{AIM_IMG}
    {L_ICQ_NUMBER}:
    -
    - - - - - -

    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas/rainbow.js b/phpBB2_old/templates/christmas/rainbow.js deleted file mode 100644 index b583e06..0000000 --- a/phpBB2_old/templates/christmas/rainbow.js +++ /dev/null @@ -1,121 +0,0 @@ -var rate = 20; -var obj; -var act = 0; -var elmH = 0; -var elmS = 128; -var elmV = 255; -var clrOrg; -var TimerID; - -if (navigator.appName.indexOf("Microsoft",0) != -1 && parseInt(navigator.appVersion) >= 4) { -Browser = true; -} else { -Browser = false; -} - -if (Browser) { -document.onmouseover = doRainbowAnchor; -document.onmouseout = stopRainbowAnchor; -} - -function doRainbow() -{ -if (Browser && act != 1) { -act = 1; -obj = event.srcElement; -clrOrg = obj.style.color; -TimerID = setInterval("ChangeColor()",100); -} -} - -function stopRainbow() -{ -if (Browser && act != 0) { -obj.style.color = clrOrg; -clearInterval(TimerID); -act = 0; -} -} - -function doRainbowAnchor() -{ -if (Browser && act != 1) { -obj = event.srcElement; - -while (obj.tagName != 'A' && obj.tagName != 'BODY') { -obj = obj.parentElement; -if (obj.tagName == 'A' || obj.tagName == 'BODY') -break; -} - -if (obj.tagName == 'A' && obj.href != '') { -act = 1; -clrOrg = obj.style.color; -TimerID = setInterval("ChangeColor()",100); -} -} -} - -function stopRainbowAnchor() -{ -if (Browser && act != 0) { -if (obj.tagName == 'A') { -obj.style.color = clrOrg; -clearInterval(TimerID); -act = 0; -} -} -} - -function ChangeColor() -{ -obj.style.color = makeColor(); -} - -function makeColor() -{ - -if (elmS == 0) { -elmR = elmV; elmG = elmV; elmB = elmV; -} -else { -t1 = elmV; -t2 = (255 - elmS) * elmV / 255; -t3 = elmH % 60; -t3 = (t1 - t2) * t3 / 60; - -if (elmH < 60) { -elmR = t1; elmB = t2; elmG = t2 + t3; -} -else if (elmH < 120) { -elmG = t1; elmB = t2; elmR = t1 - t3; -} -else if (elmH < 180) { -elmG = t1; elmR = t2; elmB = t2 + t3; -} -else if (elmH < 240) { -elmB = t1; elmR = t2; elmG = t1 - t3; -} -else if (elmH < 300) { -elmB = t1; elmG = t2; elmR = t2 + t3; -} -else if (elmH < 360) { -elmR = t1; elmG = t2; elmB = t1 - t3; -} -else { -elmR = 0; elmG = 0; elmB = 0; -} -} - -elmR = Math.floor(elmR); -elmG = Math.floor(elmG); -elmB = Math.floor(elmB); - -clrRGB = '#' + elmR.toString(16) + elmG.toString(16) + elmB.toString(16); - -elmH = elmH + rate; -if (elmH >= 360) -elmH = 0; - -return clrRGB; -} diff --git a/phpBB2_old/templates/christmas/readme.txt b/phpBB2_old/templates/christmas/readme.txt deleted file mode 100644 index 1154bbf..0000000 --- a/phpBB2_old/templates/christmas/readme.txt +++ /dev/null @@ -1,24 +0,0 @@ - - ############################################################################################### - ############################################################################################### - ############################################################################################### - # # - # Vous venez de télécharger ce template via le site : # - # # - # http://www.phpbb-design.com # - # # - ############################################################################################### - # # - # Nous vous conseillons de nous visiter régulièrement afin de vous tenir au courant # - # des mises à jours nécessaires au bon fonctionnement de votre forum phpBB. # - # # - ############################################################################################### - # # - # Ce thème à été trouvé en libre distribution sur le net. Nous ne faisons que # - # relayer sa diffusion, le tout gratuitement. Si vous êtes le créateur de ce template et # - # que vous souhaitez garder l'entière exclusivité de sa distribution, contactez nous par mail # - # à cette adresse : webmaster@phpbb-design.com # - # # - ############################################################################################### - #######################################################################################02#2004# - ############################################################################################### \ No newline at end of file diff --git a/phpBB2_old/templates/christmas/search_body.tpl b/phpBB2_old/templates/christmas/search_body.tpl deleted file mode 100644 index 6621c41..0000000 --- a/phpBB2_old/templates/christmas/search_body.tpl +++ /dev/null @@ -1,57 +0,0 @@ - -
    - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEARCH_QUERY}
    {L_SEARCH_KEYWORDS}:
    {L_SEARCH_KEYWORDS_EXPLAIN}

    {L_SEARCH_ANY_TERMS}
    {L_SEARCH_ALL_TERMS}
    {L_SEARCH_AUTHOR}:
    {L_SEARCH_AUTHOR_EXPLAIN}
    {L_SEARCH_OPTIONS}
    {L_FORUM}: {L_SEARCH_PREVIOUS}: 
    {L_SEARCH_MESSAGE_TITLE}
    {L_SEARCH_MESSAGE_ONLY}
    {L_CATEGORY}: {L_SORT_BY}: 
    {L_SORT_ASCENDING}
    {L_SORT_DESCENDING}
     
    {L_DISPLAY_RESULTS}: {L_POSTS}{L_TOPICS}{L_RETURN_FIRST} {L_CHARACTERS}
    {S_HIDDEN_FIELDS}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas/search_results_posts.tpl b/phpBB2_old/templates/christmas/search_results_posts.tpl deleted file mode 100644 index 912c501..0000000 --- a/phpBB2_old/templates/christmas/search_results_posts.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - -
    {L_AUTHOR}{L_MESSAGE}
      {L_TOPIC}: {searchresults.TOPIC_TITLE}
    {searchresults.POSTER_NAME}
    -
    - {L_REPLIES}: {searchresults.TOPIC_REPLIES}
    - {L_VIEWS}: {searchresults.TOPIC_VIEWS}

    -
    {searchresults.L_MINI_POST_ALT}{L_FORUM}: {searchresults.FORUM_NAME}   {L_POSTED}: {searchresults.POST_DATE}   {L_SUBJECT}: {searchresults.POST_SUBJECT}
    {searchresults.MESSAGE}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas/search_results_topics.tpl b/phpBB2_old/templates/christmas/search_results_topics.tpl deleted file mode 100644 index 22175ea..0000000 --- a/phpBB2_old/templates/christmas/search_results_topics.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - -
      {L_FORUM}  {L_TOPICS}  {L_AUTHOR}  {L_REPLIES}  {L_VIEWS}  {L_LASTPOST} 
    {searchresults.L_TOPIC_FOLDER_ALT}{searchresults.FORUM_NAME}{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}{searchresults.TOPIC_TITLE}
    {searchresults.GOTO_PAGE}
    {searchresults.TOPIC_AUTHOR}{searchresults.REPLIES}{searchresults.VIEWS}{searchresults.LAST_POST_TIME}
    {searchresults.LAST_POST_AUTHOR} {searchresults.LAST_POST_IMG}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas/search_username.tpl b/phpBB2_old/templates/christmas/search_username.tpl deleted file mode 100644 index a2dace6..0000000 --- a/phpBB2_old/templates/christmas/search_username.tpl +++ /dev/null @@ -1,30 +0,0 @@ - - - -
    - - - - -
    - - - - - - -
    {L_SEARCH_USERNAME}

     

    {L_SEARCH_EXPLAIN}
    - - {L_UPDATE_USERNAME}
     

    - -
    {L_CLOSE_WINDOW}
    -
    diff --git a/phpBB2_old/templates/christmas/simple_footer.tpl b/phpBB2_old/templates/christmas/simple_footer.tpl deleted file mode 100644 index 880aa47..0000000 --- a/phpBB2_old/templates/christmas/simple_footer.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    - -Powered by phpBB {PHPBB_VERSION} © 2001,2002 phpBB Group
    -
  • - - - diff --git a/phpBB2_old/templates/christmas/simple_header.tpl b/phpBB2_old/templates/christmas/simple_header.tpl deleted file mode 100644 index f232c43..0000000 --- a/phpBB2_old/templates/christmas/simple_header.tpl +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - - - -{META} -{SITENAME} :: {PAGE_TITLE} - - - - - - diff --git a/phpBB2_old/templates/christmas/theme_info.cfg b/phpBB2_old/templates/christmas/theme_info.cfg deleted file mode 100644 index fcb70c9..0000000 --- a/phpBB2_old/templates/christmas/theme_info.cfg +++ /dev/null @@ -1,51 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas/viewforum_body.tpl b/phpBB2_old/templates/christmas/viewforum_body.tpl deleted file mode 100644 index c87f57e..0000000 --- a/phpBB2_old/templates/christmas/viewforum_body.tpl +++ /dev/null @@ -1,93 +0,0 @@ - -
    - - - - - - - - - - -
    {FORUM_NAME}
    {L_MODERATOR}: {MODERATORS}

    {LOGGED_IN_USER_LIST}
    {PAGINATION}
    {L_POST_NEW_TOPIC}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_TOPICS}  {L_REPLIES}  {L_AUTHOR}  {L_VIEWS}  {L_LASTPOST} 
    {topicrow.L_TOPIC_FOLDER_ALT}{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}
    - {topicrow.GOTO_PAGE}
    {topicrow.REPLIES}{topicrow.TOPIC_AUTHOR}{topicrow.VIEWS}{topicrow.LAST_POST_TIME}
    {topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}
    {L_NO_TOPICS}
    {L_DISPLAY_TOPICS}: {S_SELECT_TOPIC_DAYS}  - -
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_INDEX} -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    -
    -
    - - - - - - -
    {JUMPBOX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_ANNOUNCEMENT}{L_ANNOUNCEMENT}
    {L_NEW_POSTS_HOT}{L_NEW_POSTS_HOT}  {L_NO_NEW_POSTS_HOT}{L_NO_NEW_POSTS_HOT}  {L_STICKY}{L_STICKY}
    {L_NEW_POSTS_TOPIC_LOCKED}{L_NEW_POSTS_LOCKED}  {L_NO_NEW_POSTS_TOPIC_LOCKED}{L_NO_NEW_POSTS_LOCKED}
    {S_AUTH_LIST}
    \ No newline at end of file diff --git a/phpBB2_old/templates/christmas/viewonline_body.tpl b/phpBB2_old/templates/christmas/viewonline_body.tpl deleted file mode 100644 index 12568bb..0000000 --- a/phpBB2_old/templates/christmas/viewonline_body.tpl +++ /dev/null @@ -1,53 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_LAST_UPDATE}  {L_FORUM_LOCATION} 
    {TOTAL_REGISTERED_USERS_ONLINE}
     {reg_user_row.USERNAME}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION} 
    .
    {TOTAL_GUEST_USERS_ONLINE}
     {guest_user_row.USERNAME}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION} 
    - - - - - - -
    {L_ONLINE_EXPLAIN}{S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    - diff --git a/phpBB2_old/templates/christmas/viewtopic_body.tpl b/phpBB2_old/templates/christmas/viewtopic_body.tpl deleted file mode 100644 index cff5e6b..0000000 --- a/phpBB2_old/templates/christmas/viewtopic_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {TOPIC_TITLE}
    - {PAGINATION}
    -  
    - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}
    - - - - - - {POLL_DISPLAY} - - - - - - - - - - - - - - - - - - - - -
    {L_VIEW_PREVIOUS_TOPIC} :: {L_VIEW_NEXT_TOPIC}  
    {L_AUTHOR}{L_MESSAGE}
    {postrow.POSTER_NAME}
    {postrow.POSTER_RANK}
    {postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}

    {postrow.POSTER_JOINED}
    {postrow.POSTER_POSTS}
    {postrow.POSTER_FROM}

    - - - - - - - - - - -
    {postrow.L_MINI_POST_ALT}{L_POSTED}: {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}

    {postrow.MESSAGE}{postrow.SIGNATURE}{postrow.EDITED_MESSAGE}
    {L_BACK_TO_TOP} - - - -
    {postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}
    - - - -
    {L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} 
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    - - - - - - -
    {S_WATCH_TOPIC}
    -  
    - {S_TOPIC_ADMIN}
    {JUMPBOX}{S_AUTH_LIST}
    diff --git a/phpBB2_old/templates/christmas/viewtopic_poll_ballot.tpl b/phpBB2_old/templates/christmas/viewtopic_poll_ballot.tpl deleted file mode 100644 index a9daffa..0000000 --- a/phpBB2_old/templates/christmas/viewtopic_poll_ballot.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -
    - - - - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - -
     {poll_option.POLL_OPTION_CAPTION}
    - -
    {L_VIEW_RESULTS}
    {S_HIDDEN_FIELDS}
    - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas/viewtopic_poll_result.tpl b/phpBB2_old/templates/christmas/viewtopic_poll_result.tpl deleted file mode 100644 index 18eaa89..0000000 --- a/phpBB2_old/templates/christmas/viewtopic_poll_result.tpl +++ /dev/null @@ -1,36 +0,0 @@ - - -
    - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - - - - -
    {poll_option.POLL_OPTION_CAPTION} - - - - - - -
    {poll_option.POLL_OPTION_PERCENT}
    -
     {poll_option.POLL_OPTION_PERCENT} [ {poll_option.POLL_OPTION_RESULT} ]
    -
    {L_TOTAL_VOTES} : {TOTAL_VOTES}
    -
    - - diff --git a/phpBB2_old/templates/christmas2/admin/admin_message_body.tpl b/phpBB2_old/templates/christmas2/admin/admin_message_body.tpl deleted file mode 100644 index 68e69ca..0000000 --- a/phpBB2_old/templates/christmas2/admin/admin_message_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    - - - - - - - - -
    {MESSAGE_TITLE}
    {MESSAGE_TEXT}
    - -
    diff --git a/phpBB2_old/templates/christmas2/admin/auth_forum_body.tpl b/phpBB2_old/templates/christmas2/admin/auth_forum_body.tpl deleted file mode 100644 index 7e58992..0000000 --- a/phpBB2_old/templates/christmas2/admin/auth_forum_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - - - - - - - - -
    {forum_auth_titles.CELL_TITLE}
    {forum_auth_data.S_AUTH_LEVELS_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/christmas2/admin/auth_select_body.tpl b/phpBB2_old/templates/christmas2/admin/auth_select_body.tpl deleted file mode 100644 index b1fdd98..0000000 --- a/phpBB2_old/templates/christmas2/admin/auth_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -
    - - - - - - -
    {L_AUTH_SELECT}
    {S_HIDDEN_FIELDS}{S_AUTH_SELECT}   
    diff --git a/phpBB2_old/templates/christmas2/admin/auth_ug_body.tpl b/phpBB2_old/templates/christmas2/admin/auth_ug_body.tpl deleted file mode 100644 index 78c8e60..0000000 --- a/phpBB2_old/templates/christmas2/admin/auth_ug_body.tpl +++ /dev/null @@ -1,49 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_USER_OR_GROUPNAME}: {USERNAME}

    - -
    - - -

    {USER_LEVEL}

    -

    {USER_GROUP_MEMBERSHIPS}

    - - - -

    {GROUP_MEMBERSHIP}

    - - -

    {L_PERMISSIONS}

    - -

    {L_AUTH_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM}{acltype.L_UG_ACL_TYPE}{L_MODERATOR_STATUS}
    {forums.FORUM_NAME}{forums.aclvalues.S_ACL_SELECT}{forums.S_MOD_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/christmas2/admin/board_config_body.tpl b/phpBB2_old/templates/christmas2/admin/board_config_body.tpl deleted file mode 100644 index 26515ed..0000000 --- a/phpBB2_old/templates/christmas2/admin/board_config_body.tpl +++ /dev/null @@ -1,248 +0,0 @@ - -

    {L_CONFIGURATION_TITLE}

    - -

    {L_CONFIGURATION_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GENERAL_SETTINGS}
    {L_SERVER_NAME}
    {L_SERVER_PORT}
    {L_SERVER_PORT_EXPLAIN}
    {L_SCRIPT_PATH}
    {L_SCRIPT_PATH_EXPLAIN}
    {L_SITE_NAME}
    {L_SITE_NAME_EXPLAIN}
    {L_SITE_DESCRIPTION}
    {L_DISABLE_BOARD}
    {L_DISABLE_BOARD_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ACCT_ACTIVATION}{L_NONE}   {L_USER}   {L_ADMIN}
    {L_BOARD_EMAIL_FORM}
    {L_BOARD_EMAIL_FORM_EXPLAIN}
    {L_ENABLED}   {L_DISABLED}
    {L_FLOOD_INTERVAL}
    {L_FLOOD_INTERVAL_EXPLAIN}
    {L_TOPICS_PER_PAGE}
    {L_POSTS_PER_PAGE}
    {L_HOT_THRESHOLD}
    {L_DEFAULT_STYLE}{STYLE_SELECT}
    {L_OVERRIDE_STYLE}
    {L_OVERRIDE_STYLE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_DEFAULT_LANGUAGE}{LANG_SELECT}
    {L_DATE_FORMAT}
    {L_DATE_FORMAT_EXPLAIN}
    {L_SYSTEM_TIMEZONE}{TIMEZONE_SELECT}
    {L_ENABLE_GZIP} {L_YES}   {L_NO}
    {L_ENABLE_PRUNE} {L_YES}   {L_NO}
    {L_COOKIE_SETTINGS}
    {L_COOKIE_SETTINGS_EXPLAIN}
    {L_COOKIE_DOMAIN}
    {L_COOKIE_NAME}
    {L_COOKIE_PATH}
    {L_COOKIE_SECURE}
    {L_COOKIE_SECURE_EXPLAIN}
    {L_DISABLED}   {L_ENABLED}
    {L_SESSION_LENGTH}
    {L_PRIVATE_MESSAGING}
    {L_DISABLE_PRIVATE_MESSAGING}{L_ENABLED}   {L_DISABLED}
    {L_INBOX_LIMIT}
    {L_SENTBOX_LIMIT}
    {L_SAVEBOX_LIMIT}
    {L_ABILITIES_SETTINGS}
    {L_MAX_POLL_OPTIONS}
    {L_ALLOW_HTML} {L_YES}   {L_NO}
    {L_ALLOWED_TAGS}
    {L_ALLOWED_TAGS_EXPLAIN}
    {L_ALLOW_BBCODE} {L_YES}   {L_NO}
    {L_ALLOW_SMILIES} {L_YES}   {L_NO}
    {L_SMILIES_PATH}
    {L_SMILIES_PATH_EXPLAIN}
    {L_ALLOW_SIG} {L_YES}   {L_NO}
    {L_MAX_SIG_LENGTH}
    {L_MAX_SIG_LENGTH_EXPLAIN}
    {L_ALLOW_NAME_CHANGE} {L_YES}   {L_NO}
    {L_AVATAR_SETTINGS}
    {L_ALLOW_LOCAL} {L_YES}   {L_NO}
    {L_ALLOW_REMOTE}
    {L_ALLOW_REMOTE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ALLOW_UPLOAD} {L_YES}   {L_NO}
    {L_MAX_FILESIZE}
    {L_MAX_FILESIZE_EXPLAIN}
    Bytes
    {L_MAX_AVATAR_SIZE}
    - {L_MAX_AVATAR_SIZE_EXPLAIN} -
    x
    {L_AVATAR_STORAGE_PATH}
    {L_AVATAR_STORAGE_PATH_EXPLAIN}
    {L_AVATAR_GALLERY_PATH}
    {L_AVATAR_GALLERY_PATH_EXPLAIN}
    {L_COPPA_SETTINGS}
    {L_COPPA_FAX}
    {L_COPPA_MAIL}
    {L_COPPA_MAIL_EXPLAIN}
    {L_EMAIL_SETTINGS}
    {L_ADMIN_EMAIL}
    {L_EMAIL_SIG}
    {L_EMAIL_SIG_EXPLAIN}
    {L_USE_SMTP}
    {L_USE_SMTP_EXPLAIN}
    {L_YES}   {L_NO}
    {L_SMTP_SERVER}
    {L_SMTP_USERNAME}
    {L_SMTP_USERNAME_EXPLAIN}
    {L_SMTP_PASSWORD}
    {L_SMTP_PASSWORD_EXPLAIN}
    {S_HIDDEN_FIELDS}   -
    - -
    diff --git a/phpBB2_old/templates/christmas2/admin/category_edit_body.tpl b/phpBB2_old/templates/christmas2/admin/category_edit_body.tpl deleted file mode 100644 index 8fed1c9..0000000 --- a/phpBB2_old/templates/christmas2/admin/category_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_EDIT_CATEGORY}

    - -

    {L_EDIT_CATEGORY_EXPLAIN}

    - -
    - - - - - - - - - - - -
    {L_EDIT_CATEGORY}
    {L_CATEGORY}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2_old/templates/christmas2/admin/db_utils_backup_body.tpl b/phpBB2_old/templates/christmas2/admin/db_utils_backup_body.tpl deleted file mode 100644 index 8ee6ab9..0000000 --- a/phpBB2_old/templates/christmas2/admin/db_utils_backup_body.tpl +++ /dev/null @@ -1,33 +0,0 @@ - -

    {L_DATABASE_BACKUP}

    - -

    {L_BACKUP_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BACKUP_OPTIONS}
    {L_FULL_BACKUP}
    {L_STRUCTURE_BACKUP}
    {L_DATA_BACKUP}
    {L_ADDITIONAL_TABLES}
    {L_GZIP_COMPRESS}{L_NO}  {L_YES}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas2/admin/db_utils_restore_body.tpl b/phpBB2_old/templates/christmas2/admin/db_utils_restore_body.tpl deleted file mode 100644 index 13a74dd..0000000 --- a/phpBB2_old/templates/christmas2/admin/db_utils_restore_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_DATABASE_RESTORE}

    - -

    {L_RESTORE_EXPLAIN}

    - -
    - - - - - - -
    {L_SELECT_FILE}
       {S_HIDDEN_FIELDS} 
    diff --git a/phpBB2_old/templates/christmas2/admin/disallow_body.tpl b/phpBB2_old/templates/christmas2/admin/disallow_body.tpl deleted file mode 100644 index ea269f6..0000000 --- a/phpBB2_old/templates/christmas2/admin/disallow_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_DISALLOW_TITLE}

    - -

    {L_DISALLOW_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_ADD_DISALLOW}
    {L_USERNAME}
    {L_ADD_EXPLAIN}
     
    {L_DELETE_DISALLOW}
    {L_USERNAME}
    {L_DELETE_EXPLAIN}
    {S_DISALLOW_SELECT} 
     
    diff --git a/phpBB2_old/templates/christmas2/admin/forum_admin_body.tpl b/phpBB2_old/templates/christmas2/admin/forum_admin_body.tpl deleted file mode 100644 index ca64c2d..0000000 --- a/phpBB2_old/templates/christmas2/admin/forum_admin_body.tpl +++ /dev/null @@ -1,39 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_TITLE}
    {catrow.CAT_DESC}{L_EDIT}{L_DELETE}{L_MOVE_UP} {L_MOVE_DOWN} 
    {catrow.forumrow.FORUM_NAME}
    {catrow.forumrow.FORUM_DESC}
    {catrow.forumrow.NUM_TOPICS}{catrow.forumrow.NUM_POSTS}{L_EDIT}{L_DELETE}{L_MOVE_UP}
    {L_MOVE_DOWN}
    {L_RESYNC}
    diff --git a/phpBB2_old/templates/christmas2/admin/forum_delete_body.tpl b/phpBB2_old/templates/christmas2/admin/forum_delete_body.tpl deleted file mode 100644 index 4a26710..0000000 --- a/phpBB2_old/templates/christmas2/admin/forum_delete_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_FORUM_DELETE}

    - -

    {L_FORUM_DELETE_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - -
    {L_FORUM_DELETE}
    {L_FORUM_NAME}{NAME}
    {L_MOVE_CONTENTS}{S_SELECT_TO}
    {S_HIDDEN_FIELDS}
    -
    diff --git a/phpBB2_old/templates/christmas2/admin/forum_edit_body.tpl b/phpBB2_old/templates/christmas2/admin/forum_edit_body.tpl deleted file mode 100644 index 7f56bbe..0000000 --- a/phpBB2_old/templates/christmas2/admin/forum_edit_body.tpl +++ /dev/null @@ -1,50 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_SETTINGS}
    {L_FORUM_NAME}
    {L_FORUM_DESCRIPTION}
    {L_CATEGORY}
    {L_FORUM_STATUS}
    {L_AUTO_PRUNE} - - - - - - - - - - - - -
    {L_ENABLED}
    {L_PRUNE_DAYS}  {L_DAYS}
    {L_PRUNE_FREQ}  {L_DAYS}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2_old/templates/christmas2/admin/forum_prune_body.tpl b/phpBB2_old/templates/christmas2/admin/forum_prune_body.tpl deleted file mode 100644 index 56a2e02..0000000 --- a/phpBB2_old/templates/christmas2/admin/forum_prune_body.tpl +++ /dev/null @@ -1,22 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_FORUM_PRUNE_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - -
    {L_FORUM_PRUNE}
    {S_PRUNE_DATA}
    {S_HIDDEN_VARS} - -
    -
    diff --git a/phpBB2_old/templates/christmas2/admin/forum_prune_result_body.tpl b/phpBB2_old/templates/christmas2/admin/forum_prune_result_body.tpl deleted file mode 100644 index 10e6d06..0000000 --- a/phpBB2_old/templates/christmas2/admin/forum_prune_result_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_PRUNE_RESULT}

    - - - - - - - - - - - - - - -
    {L_FORUM}{L_TOPICS_PRUNED}{L_POSTS_PRUNED}
    {prune_results.FORUM_NAME}{prune_results.FORUM_TOPICS}{prune_results.FORUM_POSTS}
    - -
    diff --git a/phpBB2_old/templates/christmas2/admin/forum_prune_select_body.tpl b/phpBB2_old/templates/christmas2/admin/forum_prune_select_body.tpl deleted file mode 100644 index d59e7f7..0000000 --- a/phpBB2_old/templates/christmas2/admin/forum_prune_select_body.tpl +++ /dev/null @@ -1,12 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -
    - - - - - - - -
    {L_SELECT_FORUM}
    {S_FORUMS_SELECT}   
    diff --git a/phpBB2_old/templates/christmas2/admin/group_edit_body.tpl b/phpBB2_old/templates/christmas2/admin/group_edit_body.tpl deleted file mode 100644 index ed96b17..0000000 --- a/phpBB2_old/templates/christmas2/admin/group_edit_body.tpl +++ /dev/null @@ -1,56 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_EDIT_DELETE}
    {L_ITEMS_REQUIRED}
    {L_GROUP_NAME}: - -
    {L_GROUP_DESCRIPTION}: - -
    {L_GROUP_MODERATOR}:  
    {L_GROUP_STATUS}: - {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}
    {L_DELETE_MODERATOR} -
    - {L_DELETE_MODERATOR_EXPLAIN}
    - - {L_YES}
    {L_GROUP_DELETE}: - - {L_GROUP_DELETE_CHECK}
    - -    - -
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas2/admin/group_select_body.tpl b/phpBB2_old/templates/christmas2/admin/group_select_body.tpl deleted file mode 100644 index 7428918..0000000 --- a/phpBB2_old/templates/christmas2/admin/group_select_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -

    {L_GROUP_EXPLAIN}

    - -
    - - - - - - - - - - - - -
    {L_GROUP_SELECT}
    {S_GROUP_SELECT}   
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas2/admin/index.htm b/phpBB2_old/templates/christmas2/admin/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2_old/templates/christmas2/admin/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2_old/templates/christmas2/admin/index_body.tpl b/phpBB2_old/templates/christmas2/admin/index_body.tpl deleted file mode 100644 index 1f40246..0000000 --- a/phpBB2_old/templates/christmas2/admin/index_body.tpl +++ /dev/null @@ -1,79 +0,0 @@ - -

    {L_WELCOME}

    - -

    {L_ADMIN_INTRO}

    - -

    {L_FORUM_STATS}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_STATISTIC}dddddd{L_VALUE}{L_STATISTIC}{L_VALUE}
    {L_NUMBER_POSTS}:{NUMBER_OF_POSTS}{L_POSTS_PER_DAY}:{POSTS_PER_DAY}
    {L_NUMBER_TOPICS}:{NUMBER_OF_TOPICS}{L_TOPICS_PER_DAY}:{TOPICS_PER_DAY}
    {L_NUMBER_USERS}:{NUMBER_OF_USERS}{L_USERS_PER_DAY}:{USERS_PER_DAY}
    {L_BOARD_STARTED}:{START_DATE}{L_AVATAR_DIR_SIZE}:{AVATAR_DIR_SIZE}
    {L_DB_SIZE}:{DB_SIZE}{L_GZIP_COMPRESSION}:{GZIP_COMPRESSION}
    -

    {L_WHO_IS_ONLINE}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_STARTED}  {L_LAST_UPDATE}  {L_FORUM_LOCATION}  {L_IP_ADDRESS} 
     {reg_user_row.USERNAME}  {reg_user_row.STARTED}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION}  {reg_user_row.IP_ADDRESS} 
    .
     {guest_user_row.USERNAME}  {guest_user_row.STARTED}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION}  {guest_user_row.IP_ADDRESS} 
    - -
    diff --git a/phpBB2_old/templates/christmas2/admin/index_frameset.tpl b/phpBB2_old/templates/christmas2/admin/index_frameset.tpl deleted file mode 100644 index fef79af..0000000 --- a/phpBB2_old/templates/christmas2/admin/index_frameset.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - -phpBB Administration - - - - - - - - - - <body bgcolor="#FFFFFF" text="#000000"> - <p>Sorry, your browser doesn't seem to support frames</p> - </body> - - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas2/admin/index_navigate.tpl b/phpBB2_old/templates/christmas2/admin/index_navigate.tpl deleted file mode 100644 index ec9f212..0000000 --- a/phpBB2_old/templates/christmas2/admin/index_navigate.tpl +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_ADMIN}
    {L_ADMIN_INDEX}
    {L_FORUM_INDEX}
    {L_PREVIEW_FORUM}
    {catrow.ADMIN_CATEGORY}
    {catrow.modulerow.ADMIN_MODULE} -
    -
    - -
    diff --git a/phpBB2_old/templates/christmas2/admin/page_footer.tpl b/phpBB2_old/templates/christmas2/admin/page_footer.tpl deleted file mode 100644 index 278b360..0000000 --- a/phpBB2_old/templates/christmas2/admin/page_footer.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - -
    Powered by phpBB {PHPBB_VERSION} © 2001 phpBB Group
    {TRANSLATION_INFO}
    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas2/admin/page_header.tpl b/phpBB2_old/templates/christmas2/admin/page_header.tpl deleted file mode 100644 index cc690a8..0000000 --- a/phpBB2_old/templates/christmas2/admin/page_header.tpl +++ /dev/null @@ -1,10 +0,0 @@ - - - -{META} - - -{SITENAME} - {L_PHPBB_ADMIN} - - - diff --git a/phpBB2_old/templates/christmas2/admin/ranks_edit_body.tpl b/phpBB2_old/templates/christmas2/admin/ranks_edit_body.tpl deleted file mode 100644 index b3974ea..0000000 --- a/phpBB2_old/templates/christmas2/admin/ranks_edit_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - - - - -
    {L_RANKS_TITLE}
    {L_RANK_TITLE}:
    {L_RANK_SPECIAL}{L_YES}    {L_NO}
    {L_RANK_MINIMUM}:
    {L_RANK_IMAGE}:
    - {L_RANK_IMAGE_EXPLAIN}

    {IMAGE_DISPLAY}
      
    -{S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas2/admin/ranks_list_body.tpl b/phpBB2_old/templates/christmas2/admin/ranks_list_body.tpl deleted file mode 100644 index 368326f..0000000 --- a/phpBB2_old/templates/christmas2/admin/ranks_list_body.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - -
    {L_RANK}{L_RANK_MINIMUM}{L_SPECIAL_RANK}{L_EDIT}{L_DELETE}
    {ranks.RANK}{ranks.RANK_MIN}{ranks.SPECIAL_RANK}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2_old/templates/christmas2/admin/smile_edit_body.tpl b/phpBB2_old/templates/christmas2/admin/smile_edit_body.tpl deleted file mode 100644 index b453afc..0000000 --- a/phpBB2_old/templates/christmas2/admin/smile_edit_body.tpl +++ /dev/null @@ -1,34 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - - - -
    - - - - - - - - - - - - - - - - - - -
    {L_SMILEY_CONFIG}
    {L_SMILEY_CODE}
    {L_SMILEY_URL}    
    {L_SMILEY_EMOTION}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas2/admin/smile_import_body.tpl b/phpBB2_old/templates/christmas2/admin/smile_import_body.tpl deleted file mode 100644 index 9881cb1..0000000 --- a/phpBB2_old/templates/christmas2/admin/smile_import_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_SMILEY_IMPORT}
    {L_SELECT_LBL}{S_SMILE_SELECT}
    {L_DEL_EXISTING}
    {L_CONFLICTS}
    {L_REPLACE_EXISTING}   {L_KEEP_EXISTING}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas2/admin/smile_list_body.tpl b/phpBB2_old/templates/christmas2/admin/smile_list_body.tpl deleted file mode 100644 index ae85ad9..0000000 --- a/phpBB2_old/templates/christmas2/admin/smile_list_body.tpl +++ /dev/null @@ -1,25 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - -
    {L_CODE}{L_SMILE}{L_EMOT}{L_ACTION}
    {smiles.CODE}{smiles.CODE}{smiles.EMOT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}    
    diff --git a/phpBB2_old/templates/christmas2/admin/styles_addnew_body.tpl b/phpBB2_old/templates/christmas2/admin/styles_addnew_body.tpl deleted file mode 100644 index 6240a79..0000000 --- a/phpBB2_old/templates/christmas2/admin/styles_addnew_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_ADD_TEXT}

    - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_ACTION}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_INSTALL}
    diff --git a/phpBB2_old/templates/christmas2/admin/styles_edit_body.tpl b/phpBB2_old/templates/christmas2/admin/styles_edit_body.tpl deleted file mode 100644 index 08cf721..0000000 --- a/phpBB2_old/templates/christmas2/admin/styles_edit_body.tpl +++ /dev/null @@ -1,246 +0,0 @@ - -

    {L_THEMES_TITLE}

    - -

    {L_THEMES_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_THEME_SETTINGS}
    {L_THEME_NAME}:
    {L_TEMPLATE}:{S_TEMPLATE_SELECT}
    {L_THEME_ELEMENT}{L_VALUE}{L_SIMPLE_NAME}
    {L_STYLESHEET}:
    Filename for CSS stylesheet to use for this theme.
     
    {L_BACKGROUND_IMAGE}: 
    {L_BACKGROUND_COLOR}: 
    {L_BODY_TEXT_COLOR}: 
    {L_BODY_LINK_COLOR}: 
    {L_BODY_VLINK_COLOR}: 
    {L_BODY_ALINK_COLOR}: 
    {L_BODY_HLINK_COLOR}: 
    {L_TR_COLOR1}: -
    {L_TR_COLOR2}: -
    {L_TR_COLOR3}: -
    {L_TR_CLASS1}: -
    {L_TR_CLASS2}: -
    {L_TR_CLASS3}: -
    {L_TH_COLOR1}: -
    {L_TH_COLOR2}: -
    {L_TH_COLOR3}: -
    {L_TH_CLASS1}: -
    {L_TH_CLASS2}: -
    {L_TH_CLASS3}: -
    {L_TD_COLOR1}: -
    {L_TD_COLOR2}: -
    {L_TD_COLOR3}: -
    {L_TD_CLASS1}: -
    {L_TD_CLASS2}: -
    {L_TD_CLASS3}: -
    {L_FONTFACE_1}: -
    {L_FONTFACE_2}: -
    {L_FONTFACE_3}: -
    {L_FONTSIZE_1}: -
    {L_FONTSIZE_2}: -
    {L_FONTSIZE_3}: -
    {L_FONTCOLOR_1}: -
    {L_FONTCOLOR_2}: -
    {L_FONTCOLOR_3}: -
    {L_SPAN_CLASS_1}: -
    {L_SPAN_CLASS_2}: -
    {L_SPAN_CLASS_3}: -
    {S_HIDDEN_FIELDS} -
    - -
    diff --git a/phpBB2_old/templates/christmas2/admin/styles_exporter.tpl b/phpBB2_old/templates/christmas2/admin/styles_exporter.tpl deleted file mode 100644 index 2056260..0000000 --- a/phpBB2_old/templates/christmas2/admin/styles_exporter.tpl +++ /dev/null @@ -1,14 +0,0 @@ - -

    {L_STYLE_EXPORTER}

    - -

    {L_EXPORTER_EXPLAIN}

    - -
    - - - - - - - -
    {L_TEMPLATE_SELECT}
    {S_TEMPLATE_SELECT}   
    diff --git a/phpBB2_old/templates/christmas2/admin/styles_list_body.tpl b/phpBB2_old/templates/christmas2/admin/styles_list_body.tpl deleted file mode 100644 index 915fe49..0000000 --- a/phpBB2_old/templates/christmas2/admin/styles_list_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_TEXT}

    - - - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_EDIT}{L_DELETE}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2_old/templates/christmas2/admin/user_avatar_gallery.tpl b/phpBB2_old/templates/christmas2/admin/user_avatar_gallery.tpl deleted file mode 100644 index db861ee..0000000 --- a/phpBB2_old/templates/christmas2/admin/user_avatar_gallery.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}:  
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/christmas2/admin/user_ban_body.tpl b/phpBB2_old/templates/christmas2/admin/user_ban_body.tpl deleted file mode 100644 index c805f7b..0000000 --- a/phpBB2_old/templates/christmas2/admin/user_ban_body.tpl +++ /dev/null @@ -1,54 +0,0 @@ - -

    {L_BAN_TITLE}

    - -

    {L_BAN_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BAN_USER}
    {L_USERNAME}: {S_HIDDEN_FIELDS}
    {L_UNBAN_USER}
    {L_USERNAME}:
    {L_UNBAN_USER_EXPLAIN}
    {S_UNBAN_USERLIST_SELECT}
    {L_BAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_BAN_IP_EXPLAIN}
    {L_UNBAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_UNBAN_IP_EXPLAIN}
    {S_UNBAN_IPLIST_SELECT}
    {L_BAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_BAN_EMAIL_EXPLAIN}
    {L_UNBAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_UNBAN_EMAIL_EXPLAIN}
    {S_UNBAN_EMAILLIST_SELECT}
      
    - -

    {L_BAN_EXPLAIN_WARN}

    diff --git a/phpBB2_old/templates/christmas2/admin/user_edit_body.tpl b/phpBB2_old/templates/christmas2/admin/user_edit_body.tpl deleted file mode 100644 index 359bdeb..0000000 --- a/phpBB2_old/templates/christmas2/admin/user_edit_body.tpl +++ /dev/null @@ -1,310 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -{ERROR_BOX} - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER} - -
    {L_AIM} - -
    {L_MESSENGER} - -
    {L_YAHOO} - -
    {L_WEBSITE} - -
    {L_LOCATION} - -
    {L_OCCUPATION} - -
    {L_INTERESTS} - -
    {L_SIGNATURE}
    - {L_SIGNATURE_EXPLAIN}
    -
    - {HTML_STATUS}
    - {BBCODE_STATUS}
    - {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL} - - {L_YES}   - - {L_NO}
    {L_HIDE_USER} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES} - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}{LANGUAGE_SELECT}
    {L_BOARD_STYLE}{STYLE_SELECT}
    {L_TIMEZONE}{TIMEZONE_SELECT}
    {L_DATE_FORMAT}
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    - {AVATAR}
    - -  {L_DELETE_AVATAR}
    -
    {L_UPLOAD_AVATAR_FILE} - - -
    {L_UPLOAD_AVATAR_URL} - -
    {L_LINK_REMOTE_AVATAR} - -
    {L_AVATAR_GALLERY} - -
     
    {L_SPECIAL}
    {L_SPECIAL_EXPLAIN}
    {L_USER_ACTIVE} - - {L_YES}   - - {L_NO}
    {L_ALLOW_PM} - - {L_YES}   - - {L_NO}
    {L_ALLOW_AVATAR} - - {L_YES}   - - {L_NO}
    {L_SELECT_RANK}
    {L_DELETE_USER}? - - {L_DELETE_USER_EXPLAIN}
    {S_HIDDEN_FIELDS} - -    - -
    diff --git a/phpBB2_old/templates/christmas2/admin/user_email_body.tpl b/phpBB2_old/templates/christmas2/admin/user_email_body.tpl deleted file mode 100644 index 5f52658..0000000 --- a/phpBB2_old/templates/christmas2/admin/user_email_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_EMAIL_TITLE}

    - -

    {L_EMAIL_EXPLAIN}

    - -
    - -{ERROR_BOX} - - - - - - - - - - - - - - - - - - -
    {L_COMPOSE}
    {L_RECIPIENTS}{S_GROUP_SELECT}
    {L_EMAIL_SUBJECT}
    {L_EMAIL_MSG} - -
    - -
    diff --git a/phpBB2_old/templates/christmas2/admin/user_select_body.tpl b/phpBB2_old/templates/christmas2/admin/user_select_body.tpl deleted file mode 100644 index 5d7a31b..0000000 --- a/phpBB2_old/templates/christmas2/admin/user_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - -
    {L_USER_SELECT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas2/admin/words_edit_body.tpl b/phpBB2_old/templates/christmas2/admin/words_edit_body.tpl deleted file mode 100644 index 569a94f..0000000 --- a/phpBB2_old/templates/christmas2/admin/words_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - -
    {L_WORD_CENSOR}
    {L_WORD}
    {L_REPLACEMENT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas2/admin/words_list_body.tpl b/phpBB2_old/templates/christmas2/admin/words_list_body.tpl deleted file mode 100644 index 40acf81..0000000 --- a/phpBB2_old/templates/christmas2/admin/words_list_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - - - -
    {L_WORD}{L_REPLACEMENT}{L_ACTION}
    {words.WORD}{words.REPLACEMENT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmas2/agreement.tpl b/phpBB2_old/templates/christmas2/agreement.tpl deleted file mode 100644 index 5635a35..0000000 --- a/phpBB2_old/templates/christmas2/agreement.tpl +++ /dev/null @@ -1,19 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - -
    {SITENAME} - {REGISTRATION}
    - - - -

    {AGREEMENT}



    diff --git a/phpBB2_old/templates/christmas2/bbcode.tpl b/phpBB2_old/templates/christmas2/bbcode.tpl deleted file mode 100644 index caef76b..0000000 --- a/phpBB2_old/templates/christmas2/bbcode.tpl +++ /dev/null @@ -1,60 +0,0 @@ -
      -
    - -
      -
    - -
  • - - - - - - - - - -
    {USERNAME} {L_WROTE}:
    - - - - - - - - -
    {L_QUOTE}:
    -
    - - - - - - - - - - -
    {L_CODE}:
    -
    - - - - - - - - - - - - - - - - - - - - -{DESCRIPTION} - -{EMAIL} diff --git a/phpBB2_old/templates/christmas2/christmas2.cfg b/phpBB2_old/templates/christmas2/christmas2.cfg deleted file mode 100644 index 51fa5e4..0000000 --- a/phpBB2_old/templates/christmas2/christmas2.cfg +++ /dev/null @@ -1,101 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas2/christmas2.css b/phpBB2_old/templates/christmas2/christmas2.css deleted file mode 100644 index 6015a8c..0000000 --- a/phpBB2_old/templates/christmas2/christmas2.css +++ /dev/null @@ -1,196 +0,0 @@ -/* - The original subSilver Theme for phpBB version 2+ - Created by subBlue design - http://www.subBlue.com -*/ - - - /* General page style. The scroll bar colours only visible in IE5.5+ */ -body { - background-color: #800000; -scrollbar-3dlight-color:#006600; -scrollbar-arrow-color:#FFFF80; -scrollbar-darkshadow-color:#066000; -scrollbar-face-color:#066000; -scrollbar-highlight-color:#008000; -scrollbar-shadow-color:##008000; -scrollbar-track-color:#008000} -} - -/* General font families for common tags */ -font,th,td,p { font:11px;font-family: Verdana, Arial, Helvetica, sans-serif } -a:link,a:active,a:visited { color : #FFFFFF; text-decoration: none; font-weight: bold; } -a:hover { text-decoration: underline; color : #C0FFC0; } -hr { height: 0px; border: solid #FFFFFF 0px; border-top-width: 1px;} - - -/* This is the border line & background colour round the entire page */ -.bodyline{background:#066000;color:#008000;border:8px ridge #C0FFC0} - -/* This is the outline round the main forum tables */ -.forumline{background:#33CC00;color:#008000;border:3px ridge #C0FFC0} - - -/* Main table cell colours and backgrounds */ -td.row1{background:#008000; color:#ffffff} -td.row2{background:#066000; color:#ffffff} -td.row3{background:#008000; color:#ffffff} - - -/* - This is for the table cell above the Topics, Post & Last posts on the index.php page - By default this is the fading out gradiated silver background. - However, you could replace this with a bitmap specific for each forum -*/ -td.rowpic{background:#008000 repeat-y} - -/* Header cells - the blue and silver gradient backgrounds */ -th{background:url(images/cellpic3.gif) #066000;color:#FFFFFF;font-size:12px; -font-weight:bold;height:20px;white-space:nowrap} - -td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { - background-image: url(images/cellpic1.gif); background-color:#066000; - color:#FFFFFF; height: 25px; -} - - -/* - Setting additional nice inner borders for the main table cells. - The names indicate which sides the border will be on. - Don't worry if you don't understand this, just ignore it :-) -*/ -td.cat,td.catHead,td.catBottom { - height: 29px; - border-width: 0px 0px 0px 0px; -} -th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { - font-weight: bold; border: #FFFFFF; height: 28px; } -td.row3Right,td.spaceRow { - background-color: #008000; border: #008000; border-style: solid; } - -th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } -th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } -th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } -th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } -th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } -th.thTop { border-width: 1px 0px 0px 0px; } -th.thCornerL { border-width: 1px 0px 0px 1px; } -th.thCornerR { border-width: 1px 1px 0px 0px; } - - -/* The largest text used in the index page title and toptic title etc. */ -.maintitle,h1,h2 { - font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, - sans-serif;text-decoration: none; line-height : 120%; color : #FFFFFF; -} - - -/* General text */ -.gen { font-size : 11px; } -.genmed { font-size : 11px; } -.gensmall { font-size : 10px; } -.gen,.genmed,.gensmall { color : #FFFFFF; } -a.gen,a.genmed,a.gensmall { color: #FFFFFF; text-decoration: none; } -a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #C0FFC0; text-decoration: underline; } - - -/* The register, login, search etc links at the top of the page */ -.mainmenu { font-size : 11px; color : #FFFFFF } -a.mainmenu { text-decoration: none; color : #FFFFFF; } -a.mainmenu:hover{ text-decoration: none; color : #C0FFC0; } - - -/* Forum category titles */ -.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #FFFFFF} -a.cattitle { text-decoration: none; color : #FFFFFF; } -a.cattitle:hover{ text-decoration: none; color : #C0FFC0; } - - -/* Forum title: Text and link to the forums used in: index.php */ -.forumlink { font-weight: bold; font-size: 12px; color : #FFFFFF; } -a.forumlink { text-decoration: none; color : #FFFFFF; } -a.forumlink:hover{ text-decoration: none; color : #C0FFC0; } - - -/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ -.nav { font-weight: bold; font-size: 11px; color : #FFFFFF;} -a.nav { text-decoration: none; color : #FFFFFF; } -a.nav:hover { text-decoration: none; color : #C0FFC0; } - -.topnav{font-size:10px;background: #e5ebf3 url(images/cellpic1.gif) repeat-x;color:#dd6900; - -/* titles for the topics: could specify viewed link colour too */ -.topictitle { font-weight: bold; font-size: 11px; color : #FFFFFF; } -a.topictitle:link { text-decoration: none; color : #FFFFFF; } -a.topictitle:visited { text-decoration: none; color : #FFFFFF; } -a.topictitle:hover { text-decoration: none; color : #C0FFC0; } - - -/* Name of poster in viewmsg.php and viewtopic.php and other places */ -.name { font-size : 11px; color : #FFFFFF;} - -/* Location, number of posts, post date etc */ -.postdetails { font-size : 10px; color : #FFFFFF; } - - -/* The content of the posts (body of text) */ -.postbody { font-size : 12px;color : #FFFFFF} -a.postlink:link { text-decoration: none; color : #FFFFFF } -a.postlink:visited { text-decoration: none; color : #FFFFFF; } -a.postlink:hover { text-decoration: none; color : #C0FFC0} - - -/* Quote & Code blocks */ -.code{background:#C0FFC0;border:1px dashed #FFFFFF;color:#000000; -font:11px Courier,"Courier New",sans-serif;padding:5px} - -.quote{background:#C0FFC0;border:1px dashed #FFFFFF;color:#000000; -font:bold 11px/125% Verdana,Arial,Helvetica,sans-serif} - - -/* Copyright and bottom info */ -.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; letter-spacing: -1px;} -a.copyright { color: #FFFFFF; text-decoration: none;} -a.copyright:hover { color: #FFFFFF; text-decoration: none;} - - -/* Form elements */ -input,textarea, select { - color : #FFFFFF; - font: normal 11px Verdana, Arial, Helvetica, sans-serif; - border-color : #008000; -} - -/* The text input fields background colour */ -input.post, textarea.post, select {background-color : #066000;} - -input { text-indent : 2px; } - -/* The buttons used for bbCode styling in message post */ -input.button { - background-color : #008000; - color : #FFFFFF; - font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; -} - -/* The main submit button option */ -input.mainoption { - background-color : #008000; - font-weight : bold; -} - -/* None-bold submit button */ -input.liteoption { - background-color : #008000;border-color : #ffffff; - font-weight : normal; -} - -/* This is the line in the posting page which shows the rollover - help line. This is actually a text box, but if set to be the same - colour as the background no one will know ;) -*/ -.helpline { background-color: #008000; border-style: none; } - - -/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ -@import url("formIE.css"); diff --git a/phpBB2_old/templates/christmas2/confirm_body.tpl b/phpBB2_old/templates/christmas2/confirm_body.tpl deleted file mode 100644 index f79a643..0000000 --- a/phpBB2_old/templates/christmas2/confirm_body.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}

    {MESSAGE_TEXT}

    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2_old/templates/christmas2/error_body.tpl b/phpBB2_old/templates/christmas2/error_body.tpl deleted file mode 100644 index f211ad0..0000000 --- a/phpBB2_old/templates/christmas2/error_body.tpl +++ /dev/null @@ -1,18 +0,0 @@ - - - - - -
    - - - - - - - - - -
     
    {ERROR_MESSAGE}
     
    - -
    diff --git a/phpBB2_old/templates/christmas2/faq_body.tpl b/phpBB2_old/templates/christmas2/faq_body.tpl deleted file mode 100644 index 9b11149..0000000 --- a/phpBB2_old/templates/christmas2/faq_body.tpl +++ /dev/null @@ -1,52 +0,0 @@ - - - - - -
    - - - - - - - - - - - -
    {L_FAQ_TITLE}
    - - {faq_block_link.BLOCK_TITLE}
    - - {faq_block_link.faq_row_link.FAQ_LINK}
    - -
    - -
     
    - -
    - - - - - - - - - - - - - - -
    {faq_block.BLOCK_TITLE}
    {faq_block.faq_row.FAQ_QUESTION}
    {faq_block.faq_row.FAQ_ANSWER}
    {L_BACK_TO_TOP}
    - -
    - - - - - - -
    {S_TIMEZONE}

    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas2/formIE.css b/phpBB2_old/templates/christmas2/formIE.css deleted file mode 100644 index fde54cb..0000000 --- a/phpBB2_old/templates/christmas2/formIE.css +++ /dev/null @@ -1,19 +0,0 @@ -/* Fancy form styles for IE */ - -input, textarea, select { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -input { text-indent : 2px; } - -input.button { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -.postbody { line-height: 18px} diff --git a/phpBB2_old/templates/christmas2/groupcp_info_body.tpl b/phpBB2_old/templates/christmas2/groupcp_info_body.tpl deleted file mode 100644 index 93875fa..0000000 --- a/phpBB2_old/templates/christmas2/groupcp_info_body.tpl +++ /dev/null @@ -1,128 +0,0 @@ - -
    - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_INFORMATION}
    {L_GROUP_NAME}:{GROUP_NAME}
    {L_GROUP_DESC}:{GROUP_DESC}
    {L_GROUP_MEMBERSHIP}:{GROUP_DETAILS}    - - - - - - -
    {L_GROUP_TYPE}: {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}   
    - -{S_HIDDEN_FIELDS} - -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_GROUP_MODERATOR}
    {MOD_PM_IMG} {MOD_USERNAME}{MOD_POSTS}{MOD_FROM}{MOD_EMAIL_IMG}{MOD_WWW_IMG}  
    {L_GROUP_MEMBERS}
    {member_row.PM_IMG} {member_row.USERNAME}{member_row.POSTS} {member_row.FROM} - {member_row.EMAIL_IMG} {member_row.WWW_IMG} - - - -
    {L_NO_MEMBERS}
    {L_HIDDEN_MEMBERS}
    - -
    - - - - - - -
    - -

    - - {PAGE_NUMBER}
    {S_TIMEZONE}
    {PAGINATION}
    - -{PENDING_USER_BOX} - -{S_HIDDEN_FIELDS}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas2/groupcp_pending_info.tpl b/phpBB2_old/templates/christmas2/groupcp_pending_info.tpl deleted file mode 100644 index 68f618c..0000000 --- a/phpBB2_old/templates/christmas2/groupcp_pending_info.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_PENDING_MEMBERS}
    {pending_members_row.PM_IMG} - {pending_members_row.USERNAME}{pending_members_row.POSTS}{pending_members_row.FROM}{pending_members_row.EMAIL_IMG}{pending_members_row.WWW_IMG}
    - -   - -
    diff --git a/phpBB2_old/templates/christmas2/groupcp_user_body.tpl b/phpBB2_old/templates/christmas2/groupcp_user_body.tpl deleted file mode 100644 index 8be36f6..0000000 --- a/phpBB2_old/templates/christmas2/groupcp_user_body.tpl +++ /dev/null @@ -1,76 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_MEMBERSHIP_DETAILS}
    {L_YOU_BELONG_GROUPS} - - - - - -
    {GROUP_MEMBER_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_PENDING_GROUPS} - - - - - -
    {GROUP_PENDING_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_JOIN_A_GROUP}
    {L_SELECT_A_GROUP} - - - - - -
    {GROUP_LIST_SELECT} - {S_HIDDEN_FIELDS} -
    -
    - - - - - -
    {S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas2/images/Thumbs.db b/phpBB2_old/templates/christmas2/images/Thumbs.db deleted file mode 100644 index 0b8d72c..0000000 Binary files a/phpBB2_old/templates/christmas2/images/Thumbs.db and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/banner.gif b/phpBB2_old/templates/christmas2/images/banner.gif deleted file mode 100644 index 9b3ab93..0000000 Binary files a/phpBB2_old/templates/christmas2/images/banner.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/cellpic.gif b/phpBB2_old/templates/christmas2/images/cellpic.gif deleted file mode 100644 index 58846d0..0000000 Binary files a/phpBB2_old/templates/christmas2/images/cellpic.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/cellpic1.gif b/phpBB2_old/templates/christmas2/images/cellpic1.gif deleted file mode 100644 index 44b3430..0000000 Binary files a/phpBB2_old/templates/christmas2/images/cellpic1.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/cellpic2.jpg b/phpBB2_old/templates/christmas2/images/cellpic2.jpg deleted file mode 100644 index 764c0e5..0000000 Binary files a/phpBB2_old/templates/christmas2/images/cellpic2.jpg and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/cellpic3.gif b/phpBB2_old/templates/christmas2/images/cellpic3.gif deleted file mode 100644 index e27cdfd..0000000 Binary files a/phpBB2_old/templates/christmas2/images/cellpic3.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/cellpic_bkg.gif b/phpBB2_old/templates/christmas2/images/cellpic_bkg.gif deleted file mode 100644 index c806b23..0000000 Binary files a/phpBB2_old/templates/christmas2/images/cellpic_bkg.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/folder.gif b/phpBB2_old/templates/christmas2/images/folder.gif deleted file mode 100644 index c2e74f5..0000000 Binary files a/phpBB2_old/templates/christmas2/images/folder.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/folder_announce.gif b/phpBB2_old/templates/christmas2/images/folder_announce.gif deleted file mode 100644 index b290827..0000000 Binary files a/phpBB2_old/templates/christmas2/images/folder_announce.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/folder_announce_new.gif b/phpBB2_old/templates/christmas2/images/folder_announce_new.gif deleted file mode 100644 index b290827..0000000 Binary files a/phpBB2_old/templates/christmas2/images/folder_announce_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/folder_big.gif b/phpBB2_old/templates/christmas2/images/folder_big.gif deleted file mode 100644 index c2e74f5..0000000 Binary files a/phpBB2_old/templates/christmas2/images/folder_big.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/folder_hot.gif b/phpBB2_old/templates/christmas2/images/folder_hot.gif deleted file mode 100644 index 30ed45d..0000000 Binary files a/phpBB2_old/templates/christmas2/images/folder_hot.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/folder_lock.gif b/phpBB2_old/templates/christmas2/images/folder_lock.gif deleted file mode 100644 index f782f79..0000000 Binary files a/phpBB2_old/templates/christmas2/images/folder_lock.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/folder_lock_new.gif b/phpBB2_old/templates/christmas2/images/folder_lock_new.gif deleted file mode 100644 index c1eb69c..0000000 Binary files a/phpBB2_old/templates/christmas2/images/folder_lock_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/folder_locked_big.gif b/phpBB2_old/templates/christmas2/images/folder_locked_big.gif deleted file mode 100644 index f782f79..0000000 Binary files a/phpBB2_old/templates/christmas2/images/folder_locked_big.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/folder_new.gif b/phpBB2_old/templates/christmas2/images/folder_new.gif deleted file mode 100644 index aea561b..0000000 Binary files a/phpBB2_old/templates/christmas2/images/folder_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/folder_new_big.gif b/phpBB2_old/templates/christmas2/images/folder_new_big.gif deleted file mode 100644 index aea561b..0000000 Binary files a/phpBB2_old/templates/christmas2/images/folder_new_big.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/folder_new_hot.gif b/phpBB2_old/templates/christmas2/images/folder_new_hot.gif deleted file mode 100644 index d326aef..0000000 Binary files a/phpBB2_old/templates/christmas2/images/folder_new_hot.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/folder_sticky.gif b/phpBB2_old/templates/christmas2/images/folder_sticky.gif deleted file mode 100644 index a5fadc9..0000000 Binary files a/phpBB2_old/templates/christmas2/images/folder_sticky.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/folder_sticky_new.gif b/phpBB2_old/templates/christmas2/images/folder_sticky_new.gif deleted file mode 100644 index a5fadc9..0000000 Binary files a/phpBB2_old/templates/christmas2/images/folder_sticky_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/icon_delete.gif b/phpBB2_old/templates/christmas2/images/icon_delete.gif deleted file mode 100644 index 4e3fc6c..0000000 Binary files a/phpBB2_old/templates/christmas2/images/icon_delete.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/icon_latest_reply.gif b/phpBB2_old/templates/christmas2/images/icon_latest_reply.gif deleted file mode 100644 index b45e57a..0000000 Binary files a/phpBB2_old/templates/christmas2/images/icon_latest_reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/icon_mini.gif b/phpBB2_old/templates/christmas2/images/icon_mini.gif deleted file mode 100644 index 0108cd3..0000000 Binary files a/phpBB2_old/templates/christmas2/images/icon_mini.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/icon_minipost.gif b/phpBB2_old/templates/christmas2/images/icon_minipost.gif deleted file mode 100644 index d172abb..0000000 Binary files a/phpBB2_old/templates/christmas2/images/icon_minipost.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/icon_minipost_new.gif b/phpBB2_old/templates/christmas2/images/icon_minipost_new.gif deleted file mode 100644 index 8ec44a1..0000000 Binary files a/phpBB2_old/templates/christmas2/images/icon_minipost_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/icon_newest_reply.gif b/phpBB2_old/templates/christmas2/images/icon_newest_reply.gif deleted file mode 100644 index eca2861..0000000 Binary files a/phpBB2_old/templates/christmas2/images/icon_newest_reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/index.htm b/phpBB2_old/templates/christmas2/images/index.htm deleted file mode 100644 index 73b375a..0000000 --- a/phpBB2_old/templates/christmas2/images/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -christmas created by subBlue Design - - - - - - - - - -
    Created by subBlue Design
    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas2/images/lang_english/icon_aim.gif b/phpBB2_old/templates/christmas2/images/lang_english/icon_aim.gif deleted file mode 100644 index a4a0dc5..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/icon_aim.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/icon_delete.gif b/phpBB2_old/templates/christmas2/images/lang_english/icon_delete.gif deleted file mode 100644 index 4e3fc6c..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/icon_delete.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/icon_edit.gif b/phpBB2_old/templates/christmas2/images/lang_english/icon_edit.gif deleted file mode 100644 index 813d24d..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/icon_edit.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/icon_email.gif b/phpBB2_old/templates/christmas2/images/lang_english/icon_email.gif deleted file mode 100644 index 37dbdeb..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/icon_email.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/icon_icq_add.gif b/phpBB2_old/templates/christmas2/images/lang_english/icon_icq_add.gif deleted file mode 100644 index b306aea..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/icon_ip.gif b/phpBB2_old/templates/christmas2/images/lang_english/icon_ip.gif deleted file mode 100644 index 2645d3e..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/icon_ip.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/icon_msnm.gif b/phpBB2_old/templates/christmas2/images/lang_english/icon_msnm.gif deleted file mode 100644 index b6591f6..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/icon_msnm.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/icon_pm.gif b/phpBB2_old/templates/christmas2/images/lang_english/icon_pm.gif deleted file mode 100644 index ce2db4e..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/icon_pm.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/icon_profile.gif b/phpBB2_old/templates/christmas2/images/lang_english/icon_profile.gif deleted file mode 100644 index 769e6da..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/icon_profile.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/icon_quote.gif b/phpBB2_old/templates/christmas2/images/lang_english/icon_quote.gif deleted file mode 100644 index 0f8d473..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/icon_quote.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/icon_search.gif b/phpBB2_old/templates/christmas2/images/lang_english/icon_search.gif deleted file mode 100644 index 205c02b..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/icon_search.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/icon_www.gif b/phpBB2_old/templates/christmas2/images/lang_english/icon_www.gif deleted file mode 100644 index 6d94cc1..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/icon_www.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/icon_yim.gif b/phpBB2_old/templates/christmas2/images/lang_english/icon_yim.gif deleted file mode 100644 index 15d0702..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/icon_yim.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/msg_newpost.gif b/phpBB2_old/templates/christmas2/images/lang_english/msg_newpost.gif deleted file mode 100644 index 30d5067..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/msg_newpost.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/post.gif b/phpBB2_old/templates/christmas2/images/lang_english/post.gif deleted file mode 100644 index 5f60b0e..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/post.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/reply-locked.gif b/phpBB2_old/templates/christmas2/images/lang_english/reply-locked.gif deleted file mode 100644 index 88bf4a5..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/reply-locked.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_english/reply.gif b/phpBB2_old/templates/christmas2/images/lang_english/reply.gif deleted file mode 100644 index 226021e..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_english/reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/icon_aim.gif b/phpBB2_old/templates/christmas2/images/lang_german/icon_aim.gif deleted file mode 100644 index a4a0dc5..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/icon_aim.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/icon_delete.gif b/phpBB2_old/templates/christmas2/images/lang_german/icon_delete.gif deleted file mode 100644 index 4e3fc6c..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/icon_delete.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/icon_edit.gif b/phpBB2_old/templates/christmas2/images/lang_german/icon_edit.gif deleted file mode 100644 index 813d24d..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/icon_edit.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/icon_email.gif b/phpBB2_old/templates/christmas2/images/lang_german/icon_email.gif deleted file mode 100644 index 37dbdeb..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/icon_email.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/icon_icq_add.gif b/phpBB2_old/templates/christmas2/images/lang_german/icon_icq_add.gif deleted file mode 100644 index b306aea..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/icon_ip.gif b/phpBB2_old/templates/christmas2/images/lang_german/icon_ip.gif deleted file mode 100644 index 2645d3e..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/icon_ip.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/icon_msnm.gif b/phpBB2_old/templates/christmas2/images/lang_german/icon_msnm.gif deleted file mode 100644 index b6591f6..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/icon_msnm.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/icon_pm.gif b/phpBB2_old/templates/christmas2/images/lang_german/icon_pm.gif deleted file mode 100644 index ce2db4e..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/icon_pm.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/icon_profile.gif b/phpBB2_old/templates/christmas2/images/lang_german/icon_profile.gif deleted file mode 100644 index 769e6da..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/icon_profile.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/icon_quote.gif b/phpBB2_old/templates/christmas2/images/lang_german/icon_quote.gif deleted file mode 100644 index d86b74e..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/icon_quote.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/icon_search.gif b/phpBB2_old/templates/christmas2/images/lang_german/icon_search.gif deleted file mode 100644 index 1de9f57..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/icon_search.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/icon_www.gif b/phpBB2_old/templates/christmas2/images/lang_german/icon_www.gif deleted file mode 100644 index 6d94cc1..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/icon_www.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/icon_yim.gif b/phpBB2_old/templates/christmas2/images/lang_german/icon_yim.gif deleted file mode 100644 index 15d0702..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/icon_yim.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/index.html b/phpBB2_old/templates/christmas2/images/lang_german/index.html deleted file mode 100644 index ab14856..0000000 --- a/phpBB2_old/templates/christmas2/images/lang_german/index.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - -Forum Images :: FI Subsilver Images - German - - - - - - - - - - - - - - -
    FI Subsilver Images - German

     

    - - - - - - - -
    icon_aim.gificon_edit.gificon_email.gificon_icq_add.gificon_msnm.gificon_pm.gificon_profile.gificon_quote.gificon_search.gificon_www.gificon_yim.gificon_ip.gif
    msg_newpost.gifpost.gifreply.gifreply-locked.gif
    -

     

    -

    Close - Window

    -
    - - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas2/images/lang_german/msg_newpost.gif b/phpBB2_old/templates/christmas2/images/lang_german/msg_newpost.gif deleted file mode 100644 index a620bdf..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/msg_newpost.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/post.gif b/phpBB2_old/templates/christmas2/images/lang_german/post.gif deleted file mode 100644 index b4f86bc..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/post.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/reply-locked.gif b/phpBB2_old/templates/christmas2/images/lang_german/reply-locked.gif deleted file mode 100644 index d23d849..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/reply-locked.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/lang_german/reply.gif b/phpBB2_old/templates/christmas2/images/lang_german/reply.gif deleted file mode 100644 index f1c8edd..0000000 Binary files a/phpBB2_old/templates/christmas2/images/lang_german/reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/logo_phpBB.gif b/phpBB2_old/templates/christmas2/images/logo_phpBB.gif deleted file mode 100644 index f6d87ac..0000000 Binary files a/phpBB2_old/templates/christmas2/images/logo_phpBB.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/logo_phpBB2.gif b/phpBB2_old/templates/christmas2/images/logo_phpBB2.gif deleted file mode 100644 index 221b50d..0000000 Binary files a/phpBB2_old/templates/christmas2/images/logo_phpBB2.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/logo_phpBB_med.gif b/phpBB2_old/templates/christmas2/images/logo_phpBB_med.gif deleted file mode 100644 index 5b4e6b3..0000000 Binary files a/phpBB2_old/templates/christmas2/images/logo_phpBB_med.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/msg_inbox.gif b/phpBB2_old/templates/christmas2/images/msg_inbox.gif deleted file mode 100644 index dc455b6..0000000 Binary files a/phpBB2_old/templates/christmas2/images/msg_inbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/msg_outbox.gif b/phpBB2_old/templates/christmas2/images/msg_outbox.gif deleted file mode 100644 index a7b19b8..0000000 Binary files a/phpBB2_old/templates/christmas2/images/msg_outbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/msg_savebox.gif b/phpBB2_old/templates/christmas2/images/msg_savebox.gif deleted file mode 100644 index 8a5d7d2..0000000 Binary files a/phpBB2_old/templates/christmas2/images/msg_savebox.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/msg_sentbox.gif b/phpBB2_old/templates/christmas2/images/msg_sentbox.gif deleted file mode 100644 index b157808..0000000 Binary files a/phpBB2_old/templates/christmas2/images/msg_sentbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/snow.gif b/phpBB2_old/templates/christmas2/images/snow.gif deleted file mode 100644 index c29c435..0000000 Binary files a/phpBB2_old/templates/christmas2/images/snow.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/spacer.gif b/phpBB2_old/templates/christmas2/images/spacer.gif deleted file mode 100644 index 5bfd67a..0000000 Binary files a/phpBB2_old/templates/christmas2/images/spacer.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/topic_delete.gif b/phpBB2_old/templates/christmas2/images/topic_delete.gif deleted file mode 100644 index d1d3a62..0000000 Binary files a/phpBB2_old/templates/christmas2/images/topic_delete.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/topic_lock.gif b/phpBB2_old/templates/christmas2/images/topic_lock.gif deleted file mode 100644 index 3aadda3..0000000 Binary files a/phpBB2_old/templates/christmas2/images/topic_lock.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/topic_move.gif b/phpBB2_old/templates/christmas2/images/topic_move.gif deleted file mode 100644 index af8b3c7..0000000 Binary files a/phpBB2_old/templates/christmas2/images/topic_move.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/topic_split.gif b/phpBB2_old/templates/christmas2/images/topic_split.gif deleted file mode 100644 index 977dedb..0000000 Binary files a/phpBB2_old/templates/christmas2/images/topic_split.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/topic_unlock.gif b/phpBB2_old/templates/christmas2/images/topic_unlock.gif deleted file mode 100644 index a088619..0000000 Binary files a/phpBB2_old/templates/christmas2/images/topic_unlock.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/vote_lcap.gif b/phpBB2_old/templates/christmas2/images/vote_lcap.gif deleted file mode 100644 index 22e1080..0000000 Binary files a/phpBB2_old/templates/christmas2/images/vote_lcap.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/vote_rcap.gif b/phpBB2_old/templates/christmas2/images/vote_rcap.gif deleted file mode 100644 index 28da06f..0000000 Binary files a/phpBB2_old/templates/christmas2/images/vote_rcap.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/voting_bar.gif b/phpBB2_old/templates/christmas2/images/voting_bar.gif deleted file mode 100644 index ced112d..0000000 Binary files a/phpBB2_old/templates/christmas2/images/voting_bar.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/images/whosonline.gif b/phpBB2_old/templates/christmas2/images/whosonline.gif deleted file mode 100644 index 3bea906..0000000 Binary files a/phpBB2_old/templates/christmas2/images/whosonline.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmas2/index.htm b/phpBB2_old/templates/christmas2/index.htm deleted file mode 100644 index 47b206d..0000000 --- a/phpBB2_old/templates/christmas2/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -christmas2 created by subBlue Design - - - - - - - - - -
    Created by subBlue Design
    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas2/index_body.tpl b/phpBB2_old/templates/christmas2/index_body.tpl deleted file mode 100644 index d8d5b89..0000000 --- a/phpBB2_old/templates/christmas2/index_body.tpl +++ /dev/null @@ -1,104 +0,0 @@ - - - - - -
    - - {LAST_VISIT_DATE}
    - - {CURRENT_TIME}
    {L_INDEX}
    - - - {L_SEARCH_NEW}
    {L_SEARCH_SELF}
    - - {L_SEARCH_UNANSWERED}
    - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FORUM}  {L_TOPICS}  {L_POSTS}  {L_LASTPOST} 
    {catrow.CAT_DESC}
    {catrow.forumrow.L_FORUM_FOLDER_ALT} {catrow.forumrow.FORUM_NAME}
    -
    {catrow.forumrow.FORUM_DESC}
    -
    {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
    {catrow.forumrow.TOPICS}{catrow.forumrow.POSTS} {catrow.forumrow.LAST_POST}
    - - - - - - -
    {L_MARK_FORUMS_READ}{S_TIMEZONE}
    - - - - - - - - - - - - -
    {L_WHO_IS_ONLINE}
    {L_WHO_IS_ONLINE}{TOTAL_POSTS}
    {TOTAL_USERS}
    {NEWEST_USER}
    -
    {TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
    {RECORD_USERS}
    {LOGGED_IN_USER_LIST}
    - - - - - -
    {L_ONLINE_EXPLAIN}
    - - -
    - - - - - - - -
    {L_LOGIN_LOGOUT}
    {L_USERNAME}: - -    {L_PASSWORD}: - -      {L_AUTO_LOGIN} - -     - -
    -
    - - -
    - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_FORUM_LOCKED}{L_FORUM_LOCKED}
    diff --git a/phpBB2_old/templates/christmas2/jumpbox.tpl b/phpBB2_old/templates/christmas2/jumpbox.tpl deleted file mode 100644 index 2000e92..0000000 --- a/phpBB2_old/templates/christmas2/jumpbox.tpl +++ /dev/null @@ -1,6 +0,0 @@ - -
    - - - -
    {L_JUMP_TO}: {S_JUMPBOX_SELECT} 
    diff --git a/phpBB2_old/templates/christmas2/login_body.tpl b/phpBB2_old/templates/christmas2/login_body.tpl deleted file mode 100644 index 50d7f71..0000000 --- a/phpBB2_old/templates/christmas2/login_body.tpl +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - -
    - - - - - - - - -
    {L_ENTER_PASSWORD}
    - - - - - - - - - - - - - - - - - - - - -
     
    {L_USERNAME}: - -
    {L_PASSWORD}: - -
    {L_AUTO_LOGIN}:
    {S_HIDDEN_FIELDS}
    {L_SEND_PASSWORD}
    - -
    diff --git a/phpBB2_old/templates/christmas2/memberlist_body.tpl b/phpBB2_old/templates/christmas2/memberlist_body.tpl deleted file mode 100644 index af1340d..0000000 --- a/phpBB2_old/templates/christmas2/memberlist_body.tpl +++ /dev/null @@ -1,55 +0,0 @@ - -
    - - - - - -
    {L_INDEX}{L_SELECT_SORT_METHOD}: {S_MODE_SELECT}  {L_ORDER} {S_ORDER_SELECT}   - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # {L_USERNAME}{L_EMAIL}{L_FROM}{L_JOINED}{L_POSTS}{L_WEBSITE}
     {memberrow.ROW_NUMBER}  {memberrow.PM_IMG} {memberrow.USERNAME} {memberrow.EMAIL_IMG} {memberrow.FROM}{memberrow.JOINED}{memberrow.POSTS} {memberrow.WWW_IMG} 
     
    - - - - -
    - - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas2/message_body.tpl b/phpBB2_old/templates/christmas2/message_body.tpl deleted file mode 100644 index 6be7f51..0000000 --- a/phpBB2_old/templates/christmas2/message_body.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - -
     
    {MESSAGE_TEXT}
     
    - -
    diff --git a/phpBB2_old/templates/christmas2/modcp_body.tpl b/phpBB2_old/templates/christmas2/modcp_body.tpl deleted file mode 100644 index fd0fe1b..0000000 --- a/phpBB2_old/templates/christmas2/modcp_body.tpl +++ /dev/null @@ -1,58 +0,0 @@ - -
    - - - - -
    {L_INDEX} -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_MOD_CP} -
    {L_MOD_CP_EXPLAIN}
      {L_TOPICS}  {L_REPLIES}  {L_LASTPOST}  {L_SELECT} 
    {topicrow.L_TOPIC_FOLDER_ALT} {topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}{topicrow.REPLIES}{topicrow.LAST_POST_TIME} - -
    {S_HIDDEN_FIELDS} - -   - -   - -   - -
    - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    -
    - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas2/modcp_move.tpl b/phpBB2_old/templates/christmas2/modcp_move.tpl deleted file mode 100644 index 730952c..0000000 --- a/phpBB2_old/templates/christmas2/modcp_move.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - - -
     
    {L_MOVE_TO_FORUM}   {S_FORUM_SELECT}

    - {L_LEAVESHADOW}
    -
    - {MESSAGE_TEXT}

    -
    - {S_HIDDEN_FIELDS} - -    - -
     
    -
    -
    diff --git a/phpBB2_old/templates/christmas2/modcp_split.tpl b/phpBB2_old/templates/christmas2/modcp_split.tpl deleted file mode 100644 index 3de4e2c..0000000 --- a/phpBB2_old/templates/christmas2/modcp_split.tpl +++ /dev/null @@ -1,85 +0,0 @@ - -
    - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SPLIT_TOPIC}
    {L_SPLIT_TOPIC_EXPLAIN}
    {L_SPLIT_SUBJECT}
    {L_SPLIT_FORUM}{S_FORUM_SELECT}
    - - - - - -
    - - - -
    -
    {L_AUTHOR}{L_MESSAGE}{L_SELECT}
    {postrow.POSTER_NAME} - - - - - - - -
    {L_POST}{L_POSTED}: - {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}
    -
    - {postrow.MESSAGE}
    -
    {postrow.S_SPLIT_CHECKBOX}
    .
    - - - - - -
    - - - - {S_HIDDEN_FIELDS}
    -
    - - - - -
    {S_TIMEZONE}
    -
    diff --git a/phpBB2_old/templates/christmas2/modcp_viewip.tpl b/phpBB2_old/templates/christmas2/modcp_viewip.tpl deleted file mode 100644 index d497d88..0000000 --- a/phpBB2_old/templates/christmas2/modcp_viewip.tpl +++ /dev/null @@ -1,58 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_IP_INFO}
    {L_THIS_POST_IP}
    - - - - - -
     {IP} [ {POSTS} ][ {L_LOOKUP_IP} - ] 
    -
    {L_OTHER_USERS}
    - - - - - -
     {userrow.USERNAME} [ {userrow.POSTS} ]{L_SEARCH} -  
    -
    {L_OTHER_IPS}
    - - - - -
     {iprow.IP} [ {iprow.POSTS} ][ {L_LOOKUP_IP} - ] 
    - -
    diff --git a/phpBB2_old/templates/christmas2/overall_footer.tpl b/phpBB2_old/templates/christmas2/overall_footer.tpl deleted file mode 100644 index dffcc72..0000000 --- a/phpBB2_old/templates/christmas2/overall_footer.tpl +++ /dev/null @@ -1,20 +0,0 @@ - -

    {ADMIN_LINK}
    - -Powered by phpBB {PHPBB_VERSION} © 2001, 2002 phpBB Group
    {TRANSLATION_INFO} -
    Original Template   Modify Template by   BremerJunge
    -
    - - - diff --git a/phpBB2_old/templates/christmas2/overall_header.tpl b/phpBB2_old/templates/christmas2/overall_header.tpl deleted file mode 100644 index cfe0d02..0000000 --- a/phpBB2_old/templates/christmas2/overall_header.tpl +++ /dev/null @@ -1,155 +0,0 @@ - - - - - -{META} -{NAV_LINKS} -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/phpBB2_old/templates/christmas2/posting_preview.tpl b/phpBB2_old/templates/christmas2/posting_preview.tpl deleted file mode 100644 index 18e2895..0000000 --- a/phpBB2_old/templates/christmas2/posting_preview.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -
    - - - - -
    {L_INDEX}{SITENAME}
    {SITE_DESCRIPTION}
     
    - - - - - -
     {L_FAQ}{L_FAQ}   {L_SEARCH}{L_SEARCH}   {L_MEMBERLIST}{L_MEMBERLIST}   {L_USERGROUPS}{L_USERGROUPS}  - -  {L_REGISTER}{L_REGISTER}  - -
     {L_PROFILE}{L_PROFILE}   {PRIVATE_MESSAGE_INFO}{PRIVATE_MESSAGE_INFO}   {L_LOGIN_LOGOUT}{L_LOGIN_LOGOUT} 
    -
    - -
    diff --git a/phpBB2_old/templates/christmas2/posting_body.tpl b/phpBB2_old/templates/christmas2/posting_body.tpl deleted file mode 100644 index c16b19c..0000000 --- a/phpBB2_old/templates/christmas2/posting_body.tpl +++ /dev/null @@ -1,481 +0,0 @@ - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX_LINK}  {SENTBOX_IMG}{SENTBOX_LINK}  {OUTBOX_IMG}{OUTBOX_LINK}  {SAVEBOX_IMG}{SAVEBOX_LINK}  
    -
    - -
    - - -
    - -{POST_PREVIEW_BOX} -{ERROR_BOX} - - - - - - -
    {L_INDEX} - - -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {POLLBOX} - - - -
    {L_POST_A}
    {L_USERNAME}
    {L_USERNAME} 
    {L_SUBJECT} - -
    - - - - - - - -
    {L_MESSAGE_BODY}

    - - - - - - - - - - - - - - - - -
    {L_EMOTICONS}
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}
    -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - - - -
    - - - - - -
     {L_FONT_COLOR}: -  {L_FONT_SIZE}: - {L_BBCODE_CLOSE_TAGS}
    -
    - -
    - -
    -
    {L_OPTIONS}
    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - {L_DISABLE_HTML}
    - - {L_DISABLE_BBCODE}
    - - {L_DISABLE_SMILIES}
    - - {L_ATTACH_SIGNATURE}
    - - {L_NOTIFY_ON_REPLY}
    - - {L_DELETE_POST}
    {S_TYPE_TOGGLE}
    -
    {S_HIDDEN_FORM_FIELDS} 
    - - - - - -
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    - -{TOPIC_REVIEW_BOX} diff --git a/phpBB2_old/templates/christmas2/posting_poll_body.tpl b/phpBB2_old/templates/christmas2/posting_poll_body.tpl deleted file mode 100644 index 4391393..0000000 --- a/phpBB2_old/templates/christmas2/posting_poll_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -
    {L_ADD_A_POLL}
    {L_ADD_POLL_EXPLAIN}
    {L_POLL_QUESTION}
    {L_POLL_OPTION}  
    {L_POLL_OPTION}  
    {L_POLL_LENGTH} {L_DAYS}   {L_POLL_LENGTH_EXPLAIN}
    {L_POLL_DELETE}
    - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_POST}{L_POSTED}: {POST_DATE}     {L_POST_SUBJECT}: {POST_SUBJECT}
    - - - -
    - {MESSAGE} -
    - -
    diff --git a/phpBB2_old/templates/christmas2/posting_smilies.tpl b/phpBB2_old/templates/christmas2/posting_smilies.tpl deleted file mode 100644 index 7028535..0000000 --- a/phpBB2_old/templates/christmas2/posting_smilies.tpl +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - -
    - - - - - - - - - -
    {L_EMOTICONS}
    - - - - - - - - - - - - -
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}

    {L_CLOSE_WINDOW}
    diff --git a/phpBB2_old/templates/christmas2/posting_topic_review.tpl b/phpBB2_old/templates/christmas2/posting_topic_review.tpl deleted file mode 100644 index cbef5f3..0000000 --- a/phpBB2_old/templates/christmas2/posting_topic_review.tpl +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - -
    {L_TOPIC_REVIEW}
    - diff --git a/phpBB2_old/templates/christmas2/privmsgs_body.tpl b/phpBB2_old/templates/christmas2/privmsgs_body.tpl deleted file mode 100644 index 41611c9..0000000 --- a/phpBB2_old/templates/christmas2/privmsgs_body.tpl +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}  
    -
    - - - - - - - - - - - - - -
    {BOX_SIZE_STATUS}
    - - - - -
    {INBOX_LIMIT_PERCENT}
    -
    0%50%100%
    - -
    - -
    - -
    - - - - - - -
    {POST_PM_IMG} {L_INDEX}{L_DISPLAY_MESSAGES}: - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FLAG}  {L_SUBJECT}  {L_FROM_OR_TO}  {L_DATE}  {L_MARK} 
    {listrow.L_PRIVMSG_FOLDER_ALT} {listrow.SUBJECT} {listrow.FROM}{listrow.DATE} - -
    {L_NO_MESSAGES}
    {S_HIDDEN_FIELDS} - -   - -   - -
    - - - - - - - -
    {POST_PM_IMG}{PAGE_NUMBER}{L_MARK_ALL} :: {L_UNMARK_ALL}
    {PAGINATION}
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas2/privmsgs_popup.tpl b/phpBB2_old/templates/christmas2/privmsgs_popup.tpl deleted file mode 100644 index e48205b..0000000 --- a/phpBB2_old/templates/christmas2/privmsgs_popup.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - -
    - - - - -

    {L_MESSAGE}

    {L_CLOSE_WINDOW}

    -
    diff --git a/phpBB2_old/templates/christmas2/privmsgs_preview.tpl b/phpBB2_old/templates/christmas2/privmsgs_preview.tpl deleted file mode 100644 index ba2ed93..0000000 --- a/phpBB2_old/templates/christmas2/privmsgs_preview.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT}
    {MESSAGE}
    - -
    diff --git a/phpBB2_old/templates/christmas2/privmsgs_read_body.tpl b/phpBB2_old/templates/christmas2/privmsgs_read_body.tpl deleted file mode 100644 index 3c85e6a..0000000 --- a/phpBB2_old/templates/christmas2/privmsgs_read_body.tpl +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}
    - -
    - -
    - - - - - -
    {REPLY_PM_IMG} {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {BOX_NAME} :: {L_MESSAGE}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT} {QUOTE_PM_IMG} {EDIT_PM_IMG}
    {MESSAGE}
    - - - - -
    {PROFILE_IMG} {PM_IMG} {EMAIL_IMG} - {WWW_IMG} {AIM_IMG} {YIM_IMG} {MSN_IMG} 
    -
    {S_HIDDEN_FIELDS} - -   - -
    - - - - - -
    {REPLY_PM_IMG}{S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas2/profile_add_body.tpl b/phpBB2_old/templates/christmas2/profile_add_body.tpl deleted file mode 100644 index ede3217..0000000 --- a/phpBB2_old/templates/christmas2/profile_add_body.tpl +++ /dev/null @@ -1,274 +0,0 @@ - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: *{USERNAME}
    {L_USERNAME}: *
    {L_EMAIL_ADDRESS}: *
    {L_CURRENT_PASSWORD}: *
    - {L_CONFIRM_PASSWORD_EXPLAIN}
    - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
    {L_CONFIRM_CODE_IMPAIRED}

    {CONFIRM_IMG}

    {L_CONFIRM_CODE}: *
    {L_CONFIRM_CODE_EXPLAIN}
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER}: - -
    {L_AIM}: - -
    {L_MESSENGER}: - -
    {L_YAHOO}: - -
    {L_WEBSITE}: - -
    {L_LOCATION}: - -
    {L_OCCUPATION}: - -
    {L_INTERESTS}: - -
    {L_SIGNATURE}:
    {L_SIGNATURE_EXPLAIN}

    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL}: - - {L_YES}   - - {L_NO}
    {L_HIDE_USER}: - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY}:
    - {L_NOTIFY_ON_REPLY_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG}: - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG}:
    {L_POPUP_ON_PRIVMSG_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES}: - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}:{LANGUAGE_SELECT}
    {L_BOARD_STYLE}:{STYLE_SELECT}
    {L_TIMEZONE}:{TIMEZONE_SELECT}
    {L_DATE_FORMAT}:
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    {AVATAR}
     {L_DELETE_AVATAR}
    {L_UPLOAD_AVATAR_FILE}:
    {L_UPLOAD_AVATAR_URL}:
    {L_UPLOAD_AVATAR_URL_EXPLAIN}
    {L_LINK_REMOTE_AVATAR}:
    {L_LINK_REMOTE_AVATAR_EXPLAIN}
    {L_AVATAR_GALLERY}:
    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2_old/templates/christmas2/profile_avatar_gallery.tpl b/phpBB2_old/templates/christmas2/profile_avatar_gallery.tpl deleted file mode 100644 index 9be5375..0000000 --- a/phpBB2_old/templates/christmas2/profile_avatar_gallery.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}: {S_CATEGORY_SELECT} 
    {avatar_row.avatar_column.AVATAR_NAME}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/christmas2/profile_send_email.tpl b/phpBB2_old/templates/christmas2/profile_send_email.tpl deleted file mode 100644 index 86c28cb..0000000 --- a/phpBB2_old/templates/christmas2/profile_send_email.tpl +++ /dev/null @@ -1,74 +0,0 @@ - - - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEND_EMAIL_MSG}
    {L_RECIPIENT}{USERNAME}
    {L_SUBJECT}
    {L_MESSAGE_BODY}
    {L_MESSAGE_BODY_DESC}
    {L_OPTIONS} - - - - -
    {L_CC_EMAIL}
    {S_HIDDEN_FIELDS}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas2/profile_send_pass.tpl b/phpBB2_old/templates/christmas2/profile_send_pass.tpl deleted file mode 100644 index 8d31aa4..0000000 --- a/phpBB2_old/templates/christmas2/profile_send_pass.tpl +++ /dev/null @@ -1,35 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - -
    {L_SEND_PASSWORD}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/christmas2/profile_view_body.tpl b/phpBB2_old/templates/christmas2/profile_view_body.tpl deleted file mode 100644 index a9c3c6f..0000000 --- a/phpBB2_old/templates/christmas2/profile_view_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - -
    {L_VIEWING_PROFILE}
    {L_AVATAR}{L_ABOUT_USER}
    {AVATAR_IMG}
    {POSTER_RANK}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_JOINED}: {JOINED}
    {L_TOTAL_POSTS}: {POSTS}
    [{POST_PERCENT_STATS} / {POST_DAY_STATS}]
    {L_SEARCH_USER_POSTS}
    {L_LOCATION}: {LOCATION}
    {L_WEBSITE}: {WWW}
    {L_OCCUPATION}: {OCCUPATION}
    {L_INTERESTS}: {INTERESTS}
    -
    {L_CONTACT} {USERNAME}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_EMAIL_ADDRESS}:{EMAIL_IMG}
    {L_PM}:{PM_IMG}
    {L_MESSENGER}:{MSN}
    {L_YAHOO}:{YIM_IMG}
    {L_AIM}:{AIM_IMG}
    {L_ICQ_NUMBER}:
    -
    - - - - - -

    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas2/search_body.tpl b/phpBB2_old/templates/christmas2/search_body.tpl deleted file mode 100644 index d1316df..0000000 --- a/phpBB2_old/templates/christmas2/search_body.tpl +++ /dev/null @@ -1,57 +0,0 @@ - -
    - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEARCH_QUERY}
    {L_SEARCH_KEYWORDS}:
    {L_SEARCH_KEYWORDS_EXPLAIN}

    {L_SEARCH_ANY_TERMS}
    {L_SEARCH_ALL_TERMS}
    {L_SEARCH_AUTHOR}:
    {L_SEARCH_AUTHOR_EXPLAIN}
    {L_SEARCH_OPTIONS}
    {L_FORUM}: {L_SEARCH_PREVIOUS}: 
    {L_SEARCH_MESSAGE_TITLE}
    {L_SEARCH_MESSAGE_ONLY}
    {L_CATEGORY}: {L_SORT_BY}: 
    {L_SORT_ASCENDING}
    {L_SORT_DESCENDING}
     
    {L_DISPLAY_RESULTS}: {L_POSTS}{L_TOPICS}{L_RETURN_FIRST} {L_CHARACTERS}
    {S_HIDDEN_FIELDS}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas2/search_results_posts.tpl b/phpBB2_old/templates/christmas2/search_results_posts.tpl deleted file mode 100644 index fc5f0b8..0000000 --- a/phpBB2_old/templates/christmas2/search_results_posts.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - -
    {L_AUTHOR}{L_MESSAGE}
      {L_TOPIC}: {searchresults.TOPIC_TITLE}
    {searchresults.POSTER_NAME}
    -
    - {L_REPLIES}: {searchresults.TOPIC_REPLIES}
    - {L_VIEWS}: {searchresults.TOPIC_VIEWS}

    -
    {searchresults.L_MINI_POST_ALT}{L_FORUM}: {searchresults.FORUM_NAME}   {L_POSTED}: {searchresults.POST_DATE}   {L_SUBJECT}: {searchresults.POST_SUBJECT}
    {searchresults.MESSAGE}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas2/search_results_topics.tpl b/phpBB2_old/templates/christmas2/search_results_topics.tpl deleted file mode 100644 index be0d424..0000000 --- a/phpBB2_old/templates/christmas2/search_results_topics.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - -
      {L_FORUM}  {L_TOPICS}  {L_AUTHOR}  {L_REPLIES}  {L_VIEWS}  {L_LASTPOST} 
    {searchresults.L_TOPIC_FOLDER_ALT}{searchresults.FORUM_NAME}{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}{searchresults.TOPIC_TITLE}
    {searchresults.GOTO_PAGE}
    {searchresults.TOPIC_AUTHOR}{searchresults.REPLIES}{searchresults.VIEWS}{searchresults.LAST_POST_TIME}
    {searchresults.LAST_POST_AUTHOR} {searchresults.LAST_POST_IMG}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmas2/search_username.tpl b/phpBB2_old/templates/christmas2/search_username.tpl deleted file mode 100644 index 611ec3f..0000000 --- a/phpBB2_old/templates/christmas2/search_username.tpl +++ /dev/null @@ -1,30 +0,0 @@ - - - -
    - - - - -
    - - - - - - -
    {L_SEARCH_USERNAME}

     

    {L_SEARCH_EXPLAIN}
    - - {L_UPDATE_USERNAME}
     

    - -
    {L_CLOSE_WINDOW}
    -
    diff --git a/phpBB2_old/templates/christmas2/simple_footer.tpl b/phpBB2_old/templates/christmas2/simple_footer.tpl deleted file mode 100644 index 68c2b00..0000000 --- a/phpBB2_old/templates/christmas2/simple_footer.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    - -Powered by phpBB {PHPBB_VERSION} © 2001,2002 phpBB Group
    - - - - - - diff --git a/phpBB2_old/templates/christmas2/simple_header.tpl b/phpBB2_old/templates/christmas2/simple_header.tpl deleted file mode 100644 index 6e2da20..0000000 --- a/phpBB2_old/templates/christmas2/simple_header.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - -{META} -{SITENAME} :: {PAGE_TITLE} - - - - - - diff --git a/phpBB2_old/templates/christmas2/theme_info.cfg b/phpBB2_old/templates/christmas2/theme_info.cfg deleted file mode 100644 index 433e876..0000000 --- a/phpBB2_old/templates/christmas2/theme_info.cfg +++ /dev/null @@ -1,51 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas2/viewforum_body.tpl b/phpBB2_old/templates/christmas2/viewforum_body.tpl deleted file mode 100644 index b1414f7..0000000 --- a/phpBB2_old/templates/christmas2/viewforum_body.tpl +++ /dev/null @@ -1,98 +0,0 @@ - -
    - - - - - - - - - - -
    {FORUM_NAME}
    {L_MODERATOR}: {MODERATORS}

    {LOGGED_IN_USER_LIST}
    {PAGINATION}
    {L_POST_NEW_TOPIC}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_TOPICS}  {L_REPLIES}  {L_AUTHOR}  {L_VIEWS}  {L_LASTPOST} 
    {topicrow.L_TOPIC_FOLDER_ALT}{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}
    - {topicrow.GOTO_PAGE}
    {topicrow.REPLIES}{topicrow.TOPIC_AUTHOR}{topicrow.VIEWS}{topicrow.LAST_POST_TIME}
    {topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}
    {L_NO_TOPICS}
    {L_DISPLAY_TOPICS}: {S_SELECT_TOPIC_DAYS}  - -
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_INDEX} -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    -
    - - - - - -
    {JUMPBOX}
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_ANNOUNCEMENT}{L_ANNOUNCEMENT}
    {L_NEW_POSTS_HOT}{L_NEW_POSTS_HOT}  {L_NO_NEW_POSTS_HOT}{L_NO_NEW_POSTS_HOT}  {L_STICKY}{L_STICKY}
    {L_NEW_POSTS_LOCKED}{L_NEW_POSTS_LOCKED}  {L_NO_NEW_POSTS_LOCKED}{L_NO_NEW_POSTS_LOCKED}
    {S_AUTH_LIST}
    diff --git a/phpBB2_old/templates/christmas2/viewonline_body.tpl b/phpBB2_old/templates/christmas2/viewonline_body.tpl deleted file mode 100644 index 5d0cacb..0000000 --- a/phpBB2_old/templates/christmas2/viewonline_body.tpl +++ /dev/null @@ -1,53 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_LAST_UPDATE}  {L_FORUM_LOCATION} 
    {TOTAL_REGISTERED_USERS_ONLINE}
     {reg_user_row.USERNAME}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION} 
    .
    {TOTAL_GUEST_USERS_ONLINE}
     {guest_user_row.USERNAME}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION} 
    - - - - - - -
    {L_ONLINE_EXPLAIN}{S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    - diff --git a/phpBB2_old/templates/christmas2/viewtopic_body.tpl b/phpBB2_old/templates/christmas2/viewtopic_body.tpl deleted file mode 100644 index 91c0894..0000000 --- a/phpBB2_old/templates/christmas2/viewtopic_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {TOPIC_TITLE}
    - {PAGINATION}
    -  
    - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}
    - - - - - - {POLL_DISPLAY} - - - - - - - - - - - - - - - - - - - - -
    {L_VIEW_PREVIOUS_TOPIC} :: {L_VIEW_NEXT_TOPIC}  
    {L_AUTHOR}{L_MESSAGE}
    {postrow.POSTER_NAME}
    {postrow.POSTER_RANK}
    {postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}

    {postrow.POSTER_JOINED}
    {postrow.POSTER_POSTS}
    {postrow.POSTER_FROM}

    - - - - - - - - - - -
    {postrow.L_MINI_POST_ALT}{L_POSTED}: {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}

    {postrow.MESSAGE}{postrow.SIGNATURE}{postrow.EDITED_MESSAGE}
    {L_BACK_TO_TOP} - - - -
    {postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}
    - - - -
    {L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} 
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    - - - - - - -
    {S_WATCH_TOPIC}
    -  
    - {S_TOPIC_ADMIN}
    {JUMPBOX}{S_AUTH_LIST}
    diff --git a/phpBB2_old/templates/christmas2/viewtopic_poll_ballot.tpl b/phpBB2_old/templates/christmas2/viewtopic_poll_ballot.tpl deleted file mode 100644 index 1e0cb21..0000000 --- a/phpBB2_old/templates/christmas2/viewtopic_poll_ballot.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -
    - - - - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - -
     {poll_option.POLL_OPTION_CAPTION}
    - -
    {L_VIEW_RESULTS}
    {S_HIDDEN_FIELDS}
    - \ No newline at end of file diff --git a/phpBB2_old/templates/christmas2/viewtopic_poll_result.tpl b/phpBB2_old/templates/christmas2/viewtopic_poll_result.tpl deleted file mode 100644 index d841400..0000000 --- a/phpBB2_old/templates/christmas2/viewtopic_poll_result.tpl +++ /dev/null @@ -1,36 +0,0 @@ - - -
    - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - - - - -
    {poll_option.POLL_OPTION_CAPTION} - - - - - - -
    {poll_option.POLL_OPTION_PERCENT}
    -
     {poll_option.POLL_OPTION_PERCENT} [ {poll_option.POLL_OPTION_RESULT} ]
    -
    {L_TOTAL_VOTES} : {TOTAL_VOTES}
    -
    - - diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/admin_message_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/admin_message_body.tpl deleted file mode 100644 index 68e69ca..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/admin_message_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    - - - - - - - - -
    {MESSAGE_TITLE}
    {MESSAGE_TEXT}
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/auth_forum_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/auth_forum_body.tpl deleted file mode 100644 index 7e58992..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/auth_forum_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - - - - - - - - -
    {forum_auth_titles.CELL_TITLE}
    {forum_auth_data.S_AUTH_LEVELS_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/auth_select_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/auth_select_body.tpl deleted file mode 100644 index b1fdd98..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/auth_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -
    - - - - - - -
    {L_AUTH_SELECT}
    {S_HIDDEN_FIELDS}{S_AUTH_SELECT}   
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/auth_ug_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/auth_ug_body.tpl deleted file mode 100644 index 78c8e60..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/auth_ug_body.tpl +++ /dev/null @@ -1,49 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_USER_OR_GROUPNAME}: {USERNAME}

    - -
    - - -

    {USER_LEVEL}

    -

    {USER_GROUP_MEMBERSHIPS}

    - - - -

    {GROUP_MEMBERSHIP}

    - - -

    {L_PERMISSIONS}

    - -

    {L_AUTH_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM}{acltype.L_UG_ACL_TYPE}{L_MODERATOR_STATUS}
    {forums.FORUM_NAME}{forums.aclvalues.S_ACL_SELECT}{forums.S_MOD_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/board_config_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/board_config_body.tpl deleted file mode 100644 index 26515ed..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/board_config_body.tpl +++ /dev/null @@ -1,248 +0,0 @@ - -

    {L_CONFIGURATION_TITLE}

    - -

    {L_CONFIGURATION_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GENERAL_SETTINGS}
    {L_SERVER_NAME}
    {L_SERVER_PORT}
    {L_SERVER_PORT_EXPLAIN}
    {L_SCRIPT_PATH}
    {L_SCRIPT_PATH_EXPLAIN}
    {L_SITE_NAME}
    {L_SITE_NAME_EXPLAIN}
    {L_SITE_DESCRIPTION}
    {L_DISABLE_BOARD}
    {L_DISABLE_BOARD_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ACCT_ACTIVATION}{L_NONE}   {L_USER}   {L_ADMIN}
    {L_BOARD_EMAIL_FORM}
    {L_BOARD_EMAIL_FORM_EXPLAIN}
    {L_ENABLED}   {L_DISABLED}
    {L_FLOOD_INTERVAL}
    {L_FLOOD_INTERVAL_EXPLAIN}
    {L_TOPICS_PER_PAGE}
    {L_POSTS_PER_PAGE}
    {L_HOT_THRESHOLD}
    {L_DEFAULT_STYLE}{STYLE_SELECT}
    {L_OVERRIDE_STYLE}
    {L_OVERRIDE_STYLE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_DEFAULT_LANGUAGE}{LANG_SELECT}
    {L_DATE_FORMAT}
    {L_DATE_FORMAT_EXPLAIN}
    {L_SYSTEM_TIMEZONE}{TIMEZONE_SELECT}
    {L_ENABLE_GZIP} {L_YES}   {L_NO}
    {L_ENABLE_PRUNE} {L_YES}   {L_NO}
    {L_COOKIE_SETTINGS}
    {L_COOKIE_SETTINGS_EXPLAIN}
    {L_COOKIE_DOMAIN}
    {L_COOKIE_NAME}
    {L_COOKIE_PATH}
    {L_COOKIE_SECURE}
    {L_COOKIE_SECURE_EXPLAIN}
    {L_DISABLED}   {L_ENABLED}
    {L_SESSION_LENGTH}
    {L_PRIVATE_MESSAGING}
    {L_DISABLE_PRIVATE_MESSAGING}{L_ENABLED}   {L_DISABLED}
    {L_INBOX_LIMIT}
    {L_SENTBOX_LIMIT}
    {L_SAVEBOX_LIMIT}
    {L_ABILITIES_SETTINGS}
    {L_MAX_POLL_OPTIONS}
    {L_ALLOW_HTML} {L_YES}   {L_NO}
    {L_ALLOWED_TAGS}
    {L_ALLOWED_TAGS_EXPLAIN}
    {L_ALLOW_BBCODE} {L_YES}   {L_NO}
    {L_ALLOW_SMILIES} {L_YES}   {L_NO}
    {L_SMILIES_PATH}
    {L_SMILIES_PATH_EXPLAIN}
    {L_ALLOW_SIG} {L_YES}   {L_NO}
    {L_MAX_SIG_LENGTH}
    {L_MAX_SIG_LENGTH_EXPLAIN}
    {L_ALLOW_NAME_CHANGE} {L_YES}   {L_NO}
    {L_AVATAR_SETTINGS}
    {L_ALLOW_LOCAL} {L_YES}   {L_NO}
    {L_ALLOW_REMOTE}
    {L_ALLOW_REMOTE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ALLOW_UPLOAD} {L_YES}   {L_NO}
    {L_MAX_FILESIZE}
    {L_MAX_FILESIZE_EXPLAIN}
    Bytes
    {L_MAX_AVATAR_SIZE}
    - {L_MAX_AVATAR_SIZE_EXPLAIN} -
    x
    {L_AVATAR_STORAGE_PATH}
    {L_AVATAR_STORAGE_PATH_EXPLAIN}
    {L_AVATAR_GALLERY_PATH}
    {L_AVATAR_GALLERY_PATH_EXPLAIN}
    {L_COPPA_SETTINGS}
    {L_COPPA_FAX}
    {L_COPPA_MAIL}
    {L_COPPA_MAIL_EXPLAIN}
    {L_EMAIL_SETTINGS}
    {L_ADMIN_EMAIL}
    {L_EMAIL_SIG}
    {L_EMAIL_SIG_EXPLAIN}
    {L_USE_SMTP}
    {L_USE_SMTP_EXPLAIN}
    {L_YES}   {L_NO}
    {L_SMTP_SERVER}
    {L_SMTP_USERNAME}
    {L_SMTP_USERNAME_EXPLAIN}
    {L_SMTP_PASSWORD}
    {L_SMTP_PASSWORD_EXPLAIN}
    {S_HIDDEN_FIELDS}   -
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/category_edit_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/category_edit_body.tpl deleted file mode 100644 index 8fed1c9..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/category_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_EDIT_CATEGORY}

    - -

    {L_EDIT_CATEGORY_EXPLAIN}

    - -
    - - - - - - - - - - - -
    {L_EDIT_CATEGORY}
    {L_CATEGORY}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/db_utils_backup_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/db_utils_backup_body.tpl deleted file mode 100644 index 8ee6ab9..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/db_utils_backup_body.tpl +++ /dev/null @@ -1,33 +0,0 @@ - -

    {L_DATABASE_BACKUP}

    - -

    {L_BACKUP_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BACKUP_OPTIONS}
    {L_FULL_BACKUP}
    {L_STRUCTURE_BACKUP}
    {L_DATA_BACKUP}
    {L_ADDITIONAL_TABLES}
    {L_GZIP_COMPRESS}{L_NO}  {L_YES}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/db_utils_restore_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/db_utils_restore_body.tpl deleted file mode 100644 index 13a74dd..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/db_utils_restore_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_DATABASE_RESTORE}

    - -

    {L_RESTORE_EXPLAIN}

    - -
    - - - - - - -
    {L_SELECT_FILE}
       {S_HIDDEN_FIELDS} 
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/disallow_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/disallow_body.tpl deleted file mode 100644 index ea269f6..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/disallow_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_DISALLOW_TITLE}

    - -

    {L_DISALLOW_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_ADD_DISALLOW}
    {L_USERNAME}
    {L_ADD_EXPLAIN}
     
    {L_DELETE_DISALLOW}
    {L_USERNAME}
    {L_DELETE_EXPLAIN}
    {S_DISALLOW_SELECT} 
     
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/forum_admin_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/forum_admin_body.tpl deleted file mode 100644 index c06388a..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/forum_admin_body.tpl +++ /dev/null @@ -1,39 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_TITLE}
    {catrow.CAT_DESC}{L_EDIT}{L_DELETE}{L_MOVE_UP} {L_MOVE_DOWN} 
    {catrow.forumrow.FORUM_NAME}
    {catrow.forumrow.FORUM_DESC}
    {catrow.forumrow.NUM_TOPICS}{catrow.forumrow.NUM_POSTS}{L_EDIT}{L_DELETE}{L_MOVE_UP}
    {L_MOVE_DOWN}
    {L_RESYNC}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/forum_delete_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/forum_delete_body.tpl deleted file mode 100644 index 4a26710..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/forum_delete_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_FORUM_DELETE}

    - -

    {L_FORUM_DELETE_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - -
    {L_FORUM_DELETE}
    {L_FORUM_NAME}{NAME}
    {L_MOVE_CONTENTS}{S_SELECT_TO}
    {S_HIDDEN_FIELDS}
    -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/forum_edit_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/forum_edit_body.tpl deleted file mode 100644 index 7f56bbe..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/forum_edit_body.tpl +++ /dev/null @@ -1,50 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_SETTINGS}
    {L_FORUM_NAME}
    {L_FORUM_DESCRIPTION}
    {L_CATEGORY}
    {L_FORUM_STATUS}
    {L_AUTO_PRUNE} - - - - - - - - - - - - -
    {L_ENABLED}
    {L_PRUNE_DAYS}  {L_DAYS}
    {L_PRUNE_FREQ}  {L_DAYS}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/forum_prune_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/forum_prune_body.tpl deleted file mode 100644 index 56a2e02..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/forum_prune_body.tpl +++ /dev/null @@ -1,22 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_FORUM_PRUNE_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - -
    {L_FORUM_PRUNE}
    {S_PRUNE_DATA}
    {S_HIDDEN_VARS} - -
    -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/forum_prune_result_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/forum_prune_result_body.tpl deleted file mode 100644 index 10e6d06..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/forum_prune_result_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_PRUNE_RESULT}

    - - - - - - - - - - - - - - -
    {L_FORUM}{L_TOPICS_PRUNED}{L_POSTS_PRUNED}
    {prune_results.FORUM_NAME}{prune_results.FORUM_TOPICS}{prune_results.FORUM_POSTS}
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/forum_prune_select_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/forum_prune_select_body.tpl deleted file mode 100644 index d59e7f7..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/forum_prune_select_body.tpl +++ /dev/null @@ -1,12 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -
    - - - - - - - -
    {L_SELECT_FORUM}
    {S_FORUMS_SELECT}   
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/group_edit_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/group_edit_body.tpl deleted file mode 100644 index ed96b17..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/group_edit_body.tpl +++ /dev/null @@ -1,56 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_EDIT_DELETE}
    {L_ITEMS_REQUIRED}
    {L_GROUP_NAME}: - -
    {L_GROUP_DESCRIPTION}: - -
    {L_GROUP_MODERATOR}:  
    {L_GROUP_STATUS}: - {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}
    {L_DELETE_MODERATOR} -
    - {L_DELETE_MODERATOR_EXPLAIN}
    - - {L_YES}
    {L_GROUP_DELETE}: - - {L_GROUP_DELETE_CHECK}
    - -    - -
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/group_select_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/group_select_body.tpl deleted file mode 100644 index 7428918..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/group_select_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -

    {L_GROUP_EXPLAIN}

    - -
    - - - - - - - - - - - - -
    {L_GROUP_SELECT}
    {S_GROUP_SELECT}   
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/index.htm b/phpBB2_old/templates/christmasWithoutSnow/admin/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/index_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/index_body.tpl deleted file mode 100644 index 5cb4277..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/index_body.tpl +++ /dev/null @@ -1,79 +0,0 @@ - -

    {L_WELCOME}

    - -

    {L_ADMIN_INTRO}

    - -

    {L_FORUM_STATS}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_STATISTIC}dddddd{L_VALUE}{L_STATISTIC}{L_VALUE}
    {L_NUMBER_POSTS}:{NUMBER_OF_POSTS}{L_POSTS_PER_DAY}:{POSTS_PER_DAY}
    {L_NUMBER_TOPICS}:{NUMBER_OF_TOPICS}{L_TOPICS_PER_DAY}:{TOPICS_PER_DAY}
    {L_NUMBER_USERS}:{NUMBER_OF_USERS}{L_USERS_PER_DAY}:{USERS_PER_DAY}
    {L_BOARD_STARTED}:{START_DATE}{L_AVATAR_DIR_SIZE}:{AVATAR_DIR_SIZE}
    {L_DB_SIZE}:{DB_SIZE}{L_GZIP_COMPRESSION}:{GZIP_COMPRESSION}
    -

    {L_WHO_IS_ONLINE}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_STARTED}  {L_LAST_UPDATE}  {L_FORUM_LOCATION}  {L_IP_ADDRESS} 
     {reg_user_row.USERNAME}  {reg_user_row.STARTED}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION}  {reg_user_row.IP_ADDRESS} 
    .
     {guest_user_row.USERNAME}  {guest_user_row.STARTED}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION}  {guest_user_row.IP_ADDRESS} 
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/index_frameset.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/index_frameset.tpl deleted file mode 100644 index fef79af..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/index_frameset.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - -phpBB Administration - - - - - - - - - - <body bgcolor="#FFFFFF" text="#000000"> - <p>Sorry, your browser doesn't seem to support frames</p> - </body> - - \ No newline at end of file diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/index_navigate.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/index_navigate.tpl deleted file mode 100644 index ac18bdd..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/index_navigate.tpl +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_ADMIN}
    {L_ADMIN_INDEX}
    {L_FORUM_INDEX}
    {L_PREVIEW_FORUM}
    {catrow.ADMIN_CATEGORY}
    {catrow.modulerow.ADMIN_MODULE} -
    -
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/page_footer.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/page_footer.tpl deleted file mode 100644 index 278b360..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/page_footer.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - -
    Powered by phpBB {PHPBB_VERSION} © 2001 phpBB Group
    {TRANSLATION_INFO}
    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/page_header.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/page_header.tpl deleted file mode 100644 index 6246e8f..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/page_header.tpl +++ /dev/null @@ -1,10 +0,0 @@ - - - -{META} - - -{SITENAME} - {L_PHPBB_ADMIN} - - - diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/ranks_edit_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/ranks_edit_body.tpl deleted file mode 100644 index b3974ea..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/ranks_edit_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - - - - -
    {L_RANKS_TITLE}
    {L_RANK_TITLE}:
    {L_RANK_SPECIAL}{L_YES}    {L_NO}
    {L_RANK_MINIMUM}:
    {L_RANK_IMAGE}:
    - {L_RANK_IMAGE_EXPLAIN}

    {IMAGE_DISPLAY}
      
    -{S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/ranks_list_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/ranks_list_body.tpl deleted file mode 100644 index 368326f..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/ranks_list_body.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - -
    {L_RANK}{L_RANK_MINIMUM}{L_SPECIAL_RANK}{L_EDIT}{L_DELETE}
    {ranks.RANK}{ranks.RANK_MIN}{ranks.SPECIAL_RANK}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/smile_edit_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/smile_edit_body.tpl deleted file mode 100644 index b453afc..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/smile_edit_body.tpl +++ /dev/null @@ -1,34 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - - - -
    - - - - - - - - - - - - - - - - - - -
    {L_SMILEY_CONFIG}
    {L_SMILEY_CODE}
    {L_SMILEY_URL}    
    {L_SMILEY_EMOTION}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/smile_import_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/smile_import_body.tpl deleted file mode 100644 index 9881cb1..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/smile_import_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_SMILEY_IMPORT}
    {L_SELECT_LBL}{S_SMILE_SELECT}
    {L_DEL_EXISTING}
    {L_CONFLICTS}
    {L_REPLACE_EXISTING}   {L_KEEP_EXISTING}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/smile_list_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/smile_list_body.tpl deleted file mode 100644 index ae85ad9..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/smile_list_body.tpl +++ /dev/null @@ -1,25 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - -
    {L_CODE}{L_SMILE}{L_EMOT}{L_ACTION}
    {smiles.CODE}{smiles.CODE}{smiles.EMOT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}    
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/styles_addnew_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/styles_addnew_body.tpl deleted file mode 100644 index 6240a79..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/styles_addnew_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_ADD_TEXT}

    - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_ACTION}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_INSTALL}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/styles_edit_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/styles_edit_body.tpl deleted file mode 100644 index 08cf721..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/styles_edit_body.tpl +++ /dev/null @@ -1,246 +0,0 @@ - -

    {L_THEMES_TITLE}

    - -

    {L_THEMES_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_THEME_SETTINGS}
    {L_THEME_NAME}:
    {L_TEMPLATE}:{S_TEMPLATE_SELECT}
    {L_THEME_ELEMENT}{L_VALUE}{L_SIMPLE_NAME}
    {L_STYLESHEET}:
    Filename for CSS stylesheet to use for this theme.
     
    {L_BACKGROUND_IMAGE}: 
    {L_BACKGROUND_COLOR}: 
    {L_BODY_TEXT_COLOR}: 
    {L_BODY_LINK_COLOR}: 
    {L_BODY_VLINK_COLOR}: 
    {L_BODY_ALINK_COLOR}: 
    {L_BODY_HLINK_COLOR}: 
    {L_TR_COLOR1}: -
    {L_TR_COLOR2}: -
    {L_TR_COLOR3}: -
    {L_TR_CLASS1}: -
    {L_TR_CLASS2}: -
    {L_TR_CLASS3}: -
    {L_TH_COLOR1}: -
    {L_TH_COLOR2}: -
    {L_TH_COLOR3}: -
    {L_TH_CLASS1}: -
    {L_TH_CLASS2}: -
    {L_TH_CLASS3}: -
    {L_TD_COLOR1}: -
    {L_TD_COLOR2}: -
    {L_TD_COLOR3}: -
    {L_TD_CLASS1}: -
    {L_TD_CLASS2}: -
    {L_TD_CLASS3}: -
    {L_FONTFACE_1}: -
    {L_FONTFACE_2}: -
    {L_FONTFACE_3}: -
    {L_FONTSIZE_1}: -
    {L_FONTSIZE_2}: -
    {L_FONTSIZE_3}: -
    {L_FONTCOLOR_1}: -
    {L_FONTCOLOR_2}: -
    {L_FONTCOLOR_3}: -
    {L_SPAN_CLASS_1}: -
    {L_SPAN_CLASS_2}: -
    {L_SPAN_CLASS_3}: -
    {S_HIDDEN_FIELDS} -
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/styles_exporter.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/styles_exporter.tpl deleted file mode 100644 index 2056260..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/styles_exporter.tpl +++ /dev/null @@ -1,14 +0,0 @@ - -

    {L_STYLE_EXPORTER}

    - -

    {L_EXPORTER_EXPLAIN}

    - -
    - - - - - - - -
    {L_TEMPLATE_SELECT}
    {S_TEMPLATE_SELECT}   
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/styles_list_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/styles_list_body.tpl deleted file mode 100644 index 915fe49..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/styles_list_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_TEXT}

    - - - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_EDIT}{L_DELETE}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/user_avatar_gallery.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/user_avatar_gallery.tpl deleted file mode 100644 index db861ee..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/user_avatar_gallery.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}:  
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/user_ban_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/user_ban_body.tpl deleted file mode 100644 index c805f7b..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/user_ban_body.tpl +++ /dev/null @@ -1,54 +0,0 @@ - -

    {L_BAN_TITLE}

    - -

    {L_BAN_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BAN_USER}
    {L_USERNAME}: {S_HIDDEN_FIELDS}
    {L_UNBAN_USER}
    {L_USERNAME}:
    {L_UNBAN_USER_EXPLAIN}
    {S_UNBAN_USERLIST_SELECT}
    {L_BAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_BAN_IP_EXPLAIN}
    {L_UNBAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_UNBAN_IP_EXPLAIN}
    {S_UNBAN_IPLIST_SELECT}
    {L_BAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_BAN_EMAIL_EXPLAIN}
    {L_UNBAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_UNBAN_EMAIL_EXPLAIN}
    {S_UNBAN_EMAILLIST_SELECT}
      
    - -

    {L_BAN_EXPLAIN_WARN}

    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/user_edit_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/user_edit_body.tpl deleted file mode 100644 index 359bdeb..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/user_edit_body.tpl +++ /dev/null @@ -1,310 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -{ERROR_BOX} - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER} - -
    {L_AIM} - -
    {L_MESSENGER} - -
    {L_YAHOO} - -
    {L_WEBSITE} - -
    {L_LOCATION} - -
    {L_OCCUPATION} - -
    {L_INTERESTS} - -
    {L_SIGNATURE}
    - {L_SIGNATURE_EXPLAIN}
    -
    - {HTML_STATUS}
    - {BBCODE_STATUS}
    - {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL} - - {L_YES}   - - {L_NO}
    {L_HIDE_USER} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES} - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}{LANGUAGE_SELECT}
    {L_BOARD_STYLE}{STYLE_SELECT}
    {L_TIMEZONE}{TIMEZONE_SELECT}
    {L_DATE_FORMAT}
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    - {AVATAR}
    - -  {L_DELETE_AVATAR}
    -
    {L_UPLOAD_AVATAR_FILE} - - -
    {L_UPLOAD_AVATAR_URL} - -
    {L_LINK_REMOTE_AVATAR} - -
    {L_AVATAR_GALLERY} - -
     
    {L_SPECIAL}
    {L_SPECIAL_EXPLAIN}
    {L_USER_ACTIVE} - - {L_YES}   - - {L_NO}
    {L_ALLOW_PM} - - {L_YES}   - - {L_NO}
    {L_ALLOW_AVATAR} - - {L_YES}   - - {L_NO}
    {L_SELECT_RANK}
    {L_DELETE_USER}? - - {L_DELETE_USER_EXPLAIN}
    {S_HIDDEN_FIELDS} - -    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/user_email_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/user_email_body.tpl deleted file mode 100644 index 5f52658..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/user_email_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_EMAIL_TITLE}

    - -

    {L_EMAIL_EXPLAIN}

    - -
    - -{ERROR_BOX} - - - - - - - - - - - - - - - - - - -
    {L_COMPOSE}
    {L_RECIPIENTS}{S_GROUP_SELECT}
    {L_EMAIL_SUBJECT}
    {L_EMAIL_MSG} - -
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/user_select_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/user_select_body.tpl deleted file mode 100644 index 5d7a31b..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/user_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - -
    {L_USER_SELECT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/words_edit_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/words_edit_body.tpl deleted file mode 100644 index 569a94f..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/words_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - -
    {L_WORD_CENSOR}
    {L_WORD}
    {L_REPLACEMENT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/admin/words_list_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/admin/words_list_body.tpl deleted file mode 100644 index 40acf81..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/admin/words_list_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - - - -
    {L_WORD}{L_REPLACEMENT}{L_ACTION}
    {words.WORD}{words.REPLACEMENT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/agreement.tpl b/phpBB2_old/templates/christmasWithoutSnow/agreement.tpl deleted file mode 100644 index 5635a35..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/agreement.tpl +++ /dev/null @@ -1,19 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - -
    {SITENAME} - {REGISTRATION}
    - - - -

    {AGREEMENT}



    diff --git a/phpBB2_old/templates/christmasWithoutSnow/bbcode.tpl b/phpBB2_old/templates/christmasWithoutSnow/bbcode.tpl deleted file mode 100644 index caef76b..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/bbcode.tpl +++ /dev/null @@ -1,60 +0,0 @@ -
      -
    - -
      -
    - -
  • - - - - - - - - - -
    {USERNAME} {L_WROTE}:
    - - - - - - - - -
    {L_QUOTE}:
    -
    - - - - - - - - - - -
    {L_CODE}:
    -
    - - - - - - - - - - - - - - - - - - - - -{DESCRIPTION} - -{EMAIL} diff --git a/phpBB2_old/templates/christmasWithoutSnow/christmasWithoutSnow.cfg b/phpBB2_old/templates/christmasWithoutSnow/christmasWithoutSnow.cfg deleted file mode 100644 index 51fa5e4..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/christmasWithoutSnow.cfg +++ /dev/null @@ -1,101 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2_old/templates/christmasWithoutSnow/christmasWithoutSnow.css b/phpBB2_old/templates/christmasWithoutSnow/christmasWithoutSnow.css deleted file mode 100644 index 6015a8c..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/christmasWithoutSnow.css +++ /dev/null @@ -1,196 +0,0 @@ -/* - The original subSilver Theme for phpBB version 2+ - Created by subBlue design - http://www.subBlue.com -*/ - - - /* General page style. The scroll bar colours only visible in IE5.5+ */ -body { - background-color: #800000; -scrollbar-3dlight-color:#006600; -scrollbar-arrow-color:#FFFF80; -scrollbar-darkshadow-color:#066000; -scrollbar-face-color:#066000; -scrollbar-highlight-color:#008000; -scrollbar-shadow-color:##008000; -scrollbar-track-color:#008000} -} - -/* General font families for common tags */ -font,th,td,p { font:11px;font-family: Verdana, Arial, Helvetica, sans-serif } -a:link,a:active,a:visited { color : #FFFFFF; text-decoration: none; font-weight: bold; } -a:hover { text-decoration: underline; color : #C0FFC0; } -hr { height: 0px; border: solid #FFFFFF 0px; border-top-width: 1px;} - - -/* This is the border line & background colour round the entire page */ -.bodyline{background:#066000;color:#008000;border:8px ridge #C0FFC0} - -/* This is the outline round the main forum tables */ -.forumline{background:#33CC00;color:#008000;border:3px ridge #C0FFC0} - - -/* Main table cell colours and backgrounds */ -td.row1{background:#008000; color:#ffffff} -td.row2{background:#066000; color:#ffffff} -td.row3{background:#008000; color:#ffffff} - - -/* - This is for the table cell above the Topics, Post & Last posts on the index.php page - By default this is the fading out gradiated silver background. - However, you could replace this with a bitmap specific for each forum -*/ -td.rowpic{background:#008000 repeat-y} - -/* Header cells - the blue and silver gradient backgrounds */ -th{background:url(images/cellpic3.gif) #066000;color:#FFFFFF;font-size:12px; -font-weight:bold;height:20px;white-space:nowrap} - -td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { - background-image: url(images/cellpic1.gif); background-color:#066000; - color:#FFFFFF; height: 25px; -} - - -/* - Setting additional nice inner borders for the main table cells. - The names indicate which sides the border will be on. - Don't worry if you don't understand this, just ignore it :-) -*/ -td.cat,td.catHead,td.catBottom { - height: 29px; - border-width: 0px 0px 0px 0px; -} -th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { - font-weight: bold; border: #FFFFFF; height: 28px; } -td.row3Right,td.spaceRow { - background-color: #008000; border: #008000; border-style: solid; } - -th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } -th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } -th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } -th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } -th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } -th.thTop { border-width: 1px 0px 0px 0px; } -th.thCornerL { border-width: 1px 0px 0px 1px; } -th.thCornerR { border-width: 1px 1px 0px 0px; } - - -/* The largest text used in the index page title and toptic title etc. */ -.maintitle,h1,h2 { - font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, - sans-serif;text-decoration: none; line-height : 120%; color : #FFFFFF; -} - - -/* General text */ -.gen { font-size : 11px; } -.genmed { font-size : 11px; } -.gensmall { font-size : 10px; } -.gen,.genmed,.gensmall { color : #FFFFFF; } -a.gen,a.genmed,a.gensmall { color: #FFFFFF; text-decoration: none; } -a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #C0FFC0; text-decoration: underline; } - - -/* The register, login, search etc links at the top of the page */ -.mainmenu { font-size : 11px; color : #FFFFFF } -a.mainmenu { text-decoration: none; color : #FFFFFF; } -a.mainmenu:hover{ text-decoration: none; color : #C0FFC0; } - - -/* Forum category titles */ -.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #FFFFFF} -a.cattitle { text-decoration: none; color : #FFFFFF; } -a.cattitle:hover{ text-decoration: none; color : #C0FFC0; } - - -/* Forum title: Text and link to the forums used in: index.php */ -.forumlink { font-weight: bold; font-size: 12px; color : #FFFFFF; } -a.forumlink { text-decoration: none; color : #FFFFFF; } -a.forumlink:hover{ text-decoration: none; color : #C0FFC0; } - - -/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ -.nav { font-weight: bold; font-size: 11px; color : #FFFFFF;} -a.nav { text-decoration: none; color : #FFFFFF; } -a.nav:hover { text-decoration: none; color : #C0FFC0; } - -.topnav{font-size:10px;background: #e5ebf3 url(images/cellpic1.gif) repeat-x;color:#dd6900; - -/* titles for the topics: could specify viewed link colour too */ -.topictitle { font-weight: bold; font-size: 11px; color : #FFFFFF; } -a.topictitle:link { text-decoration: none; color : #FFFFFF; } -a.topictitle:visited { text-decoration: none; color : #FFFFFF; } -a.topictitle:hover { text-decoration: none; color : #C0FFC0; } - - -/* Name of poster in viewmsg.php and viewtopic.php and other places */ -.name { font-size : 11px; color : #FFFFFF;} - -/* Location, number of posts, post date etc */ -.postdetails { font-size : 10px; color : #FFFFFF; } - - -/* The content of the posts (body of text) */ -.postbody { font-size : 12px;color : #FFFFFF} -a.postlink:link { text-decoration: none; color : #FFFFFF } -a.postlink:visited { text-decoration: none; color : #FFFFFF; } -a.postlink:hover { text-decoration: none; color : #C0FFC0} - - -/* Quote & Code blocks */ -.code{background:#C0FFC0;border:1px dashed #FFFFFF;color:#000000; -font:11px Courier,"Courier New",sans-serif;padding:5px} - -.quote{background:#C0FFC0;border:1px dashed #FFFFFF;color:#000000; -font:bold 11px/125% Verdana,Arial,Helvetica,sans-serif} - - -/* Copyright and bottom info */ -.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; letter-spacing: -1px;} -a.copyright { color: #FFFFFF; text-decoration: none;} -a.copyright:hover { color: #FFFFFF; text-decoration: none;} - - -/* Form elements */ -input,textarea, select { - color : #FFFFFF; - font: normal 11px Verdana, Arial, Helvetica, sans-serif; - border-color : #008000; -} - -/* The text input fields background colour */ -input.post, textarea.post, select {background-color : #066000;} - -input { text-indent : 2px; } - -/* The buttons used for bbCode styling in message post */ -input.button { - background-color : #008000; - color : #FFFFFF; - font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; -} - -/* The main submit button option */ -input.mainoption { - background-color : #008000; - font-weight : bold; -} - -/* None-bold submit button */ -input.liteoption { - background-color : #008000;border-color : #ffffff; - font-weight : normal; -} - -/* This is the line in the posting page which shows the rollover - help line. This is actually a text box, but if set to be the same - colour as the background no one will know ;) -*/ -.helpline { background-color: #008000; border-style: none; } - - -/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ -@import url("formIE.css"); diff --git a/phpBB2_old/templates/christmasWithoutSnow/confirm_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/confirm_body.tpl deleted file mode 100644 index f79a643..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/confirm_body.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}

    {MESSAGE_TEXT}

    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/error_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/error_body.tpl deleted file mode 100644 index f211ad0..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/error_body.tpl +++ /dev/null @@ -1,18 +0,0 @@ - - - - - -
    - - - - - - - - - -
     
    {ERROR_MESSAGE}
     
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/faq_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/faq_body.tpl deleted file mode 100644 index 321d945..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/faq_body.tpl +++ /dev/null @@ -1,52 +0,0 @@ - - - - - -
    - - - - - - - - - - - -
    {L_FAQ_TITLE}
    - - {faq_block_link.BLOCK_TITLE}
    - - {faq_block_link.faq_row_link.FAQ_LINK}
    - -
    - -
     
    - -
    - - - - - - - - - - - - - - -
    {faq_block.BLOCK_TITLE}
    {faq_block.faq_row.FAQ_QUESTION}
    {faq_block.faq_row.FAQ_ANSWER}
    {L_BACK_TO_TOP}
    - -
    - - - - - - -
    {S_TIMEZONE}

    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/formIE.css b/phpBB2_old/templates/christmasWithoutSnow/formIE.css deleted file mode 100644 index fde54cb..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/formIE.css +++ /dev/null @@ -1,19 +0,0 @@ -/* Fancy form styles for IE */ - -input, textarea, select { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -input { text-indent : 2px; } - -input.button { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -.postbody { line-height: 18px} diff --git a/phpBB2_old/templates/christmasWithoutSnow/groupcp_info_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/groupcp_info_body.tpl deleted file mode 100644 index 93875fa..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/groupcp_info_body.tpl +++ /dev/null @@ -1,128 +0,0 @@ - -
    - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_INFORMATION}
    {L_GROUP_NAME}:{GROUP_NAME}
    {L_GROUP_DESC}:{GROUP_DESC}
    {L_GROUP_MEMBERSHIP}:{GROUP_DETAILS}    - - - - - - -
    {L_GROUP_TYPE}: {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}   
    - -{S_HIDDEN_FIELDS} - -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_GROUP_MODERATOR}
    {MOD_PM_IMG} {MOD_USERNAME}{MOD_POSTS}{MOD_FROM}{MOD_EMAIL_IMG}{MOD_WWW_IMG}  
    {L_GROUP_MEMBERS}
    {member_row.PM_IMG} {member_row.USERNAME}{member_row.POSTS} {member_row.FROM} - {member_row.EMAIL_IMG} {member_row.WWW_IMG} - - - -
    {L_NO_MEMBERS}
    {L_HIDDEN_MEMBERS}
    - -
    - - - - - - -
    - -

    - - {PAGE_NUMBER}
    {S_TIMEZONE}
    {PAGINATION}
    - -{PENDING_USER_BOX} - -{S_HIDDEN_FIELDS}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/groupcp_pending_info.tpl b/phpBB2_old/templates/christmasWithoutSnow/groupcp_pending_info.tpl deleted file mode 100644 index 68f618c..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/groupcp_pending_info.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_PENDING_MEMBERS}
    {pending_members_row.PM_IMG} - {pending_members_row.USERNAME}{pending_members_row.POSTS}{pending_members_row.FROM}{pending_members_row.EMAIL_IMG}{pending_members_row.WWW_IMG}
    - -   - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/groupcp_user_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/groupcp_user_body.tpl deleted file mode 100644 index 8be36f6..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/groupcp_user_body.tpl +++ /dev/null @@ -1,76 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_MEMBERSHIP_DETAILS}
    {L_YOU_BELONG_GROUPS} - - - - - -
    {GROUP_MEMBER_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_PENDING_GROUPS} - - - - - -
    {GROUP_PENDING_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_JOIN_A_GROUP}
    {L_SELECT_A_GROUP} - - - - - -
    {GROUP_LIST_SELECT} - {S_HIDDEN_FIELDS} -
    -
    - - - - - -
    {S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/Thumbs.db b/phpBB2_old/templates/christmasWithoutSnow/images/Thumbs.db deleted file mode 100644 index 0b8d72c..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/Thumbs.db and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/banner.gif b/phpBB2_old/templates/christmasWithoutSnow/images/banner.gif deleted file mode 100644 index 9b3ab93..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/banner.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/cellpic.gif b/phpBB2_old/templates/christmasWithoutSnow/images/cellpic.gif deleted file mode 100644 index 58846d0..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/cellpic.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/cellpic1.gif b/phpBB2_old/templates/christmasWithoutSnow/images/cellpic1.gif deleted file mode 100644 index 44b3430..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/cellpic1.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/cellpic2.jpg b/phpBB2_old/templates/christmasWithoutSnow/images/cellpic2.jpg deleted file mode 100644 index 764c0e5..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/cellpic2.jpg and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/cellpic3.gif b/phpBB2_old/templates/christmasWithoutSnow/images/cellpic3.gif deleted file mode 100644 index e27cdfd..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/cellpic3.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/cellpic_bkg.gif b/phpBB2_old/templates/christmasWithoutSnow/images/cellpic_bkg.gif deleted file mode 100644 index c806b23..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/cellpic_bkg.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/folder.gif b/phpBB2_old/templates/christmasWithoutSnow/images/folder.gif deleted file mode 100644 index c2e74f5..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/folder.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/folder_announce.gif b/phpBB2_old/templates/christmasWithoutSnow/images/folder_announce.gif deleted file mode 100644 index b290827..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/folder_announce.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/folder_announce_new.gif b/phpBB2_old/templates/christmasWithoutSnow/images/folder_announce_new.gif deleted file mode 100644 index b290827..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/folder_announce_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/folder_big.gif b/phpBB2_old/templates/christmasWithoutSnow/images/folder_big.gif deleted file mode 100644 index c2e74f5..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/folder_big.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/folder_hot.gif b/phpBB2_old/templates/christmasWithoutSnow/images/folder_hot.gif deleted file mode 100644 index 30ed45d..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/folder_hot.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/folder_lock.gif b/phpBB2_old/templates/christmasWithoutSnow/images/folder_lock.gif deleted file mode 100644 index f782f79..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/folder_lock.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/folder_lock_new.gif b/phpBB2_old/templates/christmasWithoutSnow/images/folder_lock_new.gif deleted file mode 100644 index c1eb69c..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/folder_lock_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/folder_locked_big.gif b/phpBB2_old/templates/christmasWithoutSnow/images/folder_locked_big.gif deleted file mode 100644 index f782f79..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/folder_locked_big.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/folder_new.gif b/phpBB2_old/templates/christmasWithoutSnow/images/folder_new.gif deleted file mode 100644 index aea561b..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/folder_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/folder_new_big.gif b/phpBB2_old/templates/christmasWithoutSnow/images/folder_new_big.gif deleted file mode 100644 index aea561b..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/folder_new_big.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/folder_new_hot.gif b/phpBB2_old/templates/christmasWithoutSnow/images/folder_new_hot.gif deleted file mode 100644 index d326aef..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/folder_new_hot.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/folder_sticky.gif b/phpBB2_old/templates/christmasWithoutSnow/images/folder_sticky.gif deleted file mode 100644 index a5fadc9..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/folder_sticky.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/folder_sticky_new.gif b/phpBB2_old/templates/christmasWithoutSnow/images/folder_sticky_new.gif deleted file mode 100644 index a5fadc9..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/folder_sticky_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/icon_delete.gif b/phpBB2_old/templates/christmasWithoutSnow/images/icon_delete.gif deleted file mode 100644 index 4e3fc6c..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/icon_delete.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/icon_latest_reply.gif b/phpBB2_old/templates/christmasWithoutSnow/images/icon_latest_reply.gif deleted file mode 100644 index b45e57a..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/icon_latest_reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/icon_mini.gif b/phpBB2_old/templates/christmasWithoutSnow/images/icon_mini.gif deleted file mode 100644 index 0108cd3..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/icon_mini.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/icon_minipost.gif b/phpBB2_old/templates/christmasWithoutSnow/images/icon_minipost.gif deleted file mode 100644 index d172abb..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/icon_minipost.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/icon_minipost_new.gif b/phpBB2_old/templates/christmasWithoutSnow/images/icon_minipost_new.gif deleted file mode 100644 index 8ec44a1..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/icon_minipost_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/icon_newest_reply.gif b/phpBB2_old/templates/christmasWithoutSnow/images/icon_newest_reply.gif deleted file mode 100644 index eca2861..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/icon_newest_reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/index.htm b/phpBB2_old/templates/christmasWithoutSnow/images/index.htm deleted file mode 100644 index 73b375a..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/images/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -christmas created by subBlue Design - - - - - - - - - -
    Created by subBlue Design
    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_aim.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_aim.gif deleted file mode 100644 index a4a0dc5..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_aim.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_delete.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_delete.gif deleted file mode 100644 index 4e3fc6c..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_delete.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_edit.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_edit.gif deleted file mode 100644 index 813d24d..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_edit.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_email.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_email.gif deleted file mode 100644 index 37dbdeb..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_email.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_icq_add.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_icq_add.gif deleted file mode 100644 index b306aea..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_ip.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_ip.gif deleted file mode 100644 index 2645d3e..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_ip.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_msnm.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_msnm.gif deleted file mode 100644 index b6591f6..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_msnm.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_pm.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_pm.gif deleted file mode 100644 index ce2db4e..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_pm.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_profile.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_profile.gif deleted file mode 100644 index 769e6da..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_profile.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_quote.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_quote.gif deleted file mode 100644 index 0f8d473..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_quote.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_search.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_search.gif deleted file mode 100644 index 205c02b..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_search.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_www.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_www.gif deleted file mode 100644 index 6d94cc1..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_www.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_yim.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_yim.gif deleted file mode 100644 index 15d0702..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/icon_yim.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/msg_newpost.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/msg_newpost.gif deleted file mode 100644 index 30d5067..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/msg_newpost.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/post.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/post.gif deleted file mode 100644 index 5f60b0e..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/post.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/reply-locked.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/reply-locked.gif deleted file mode 100644 index 88bf4a5..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/reply-locked.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/reply.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/reply.gif deleted file mode 100644 index 226021e..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_english/reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_aim.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_aim.gif deleted file mode 100644 index a4a0dc5..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_aim.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_delete.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_delete.gif deleted file mode 100644 index 4e3fc6c..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_delete.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_edit.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_edit.gif deleted file mode 100644 index 813d24d..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_edit.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_email.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_email.gif deleted file mode 100644 index 37dbdeb..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_email.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_icq_add.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_icq_add.gif deleted file mode 100644 index b306aea..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_ip.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_ip.gif deleted file mode 100644 index 2645d3e..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_ip.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_msnm.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_msnm.gif deleted file mode 100644 index b6591f6..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_msnm.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_pm.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_pm.gif deleted file mode 100644 index ce2db4e..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_pm.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_profile.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_profile.gif deleted file mode 100644 index 769e6da..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_profile.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_quote.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_quote.gif deleted file mode 100644 index d86b74e..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_quote.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_search.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_search.gif deleted file mode 100644 index 1de9f57..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_search.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_www.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_www.gif deleted file mode 100644 index 6d94cc1..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_www.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_yim.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_yim.gif deleted file mode 100644 index 15d0702..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/icon_yim.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/index.html b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/index.html deleted file mode 100644 index ab14856..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/index.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - -Forum Images :: FI Subsilver Images - German - - - - - - - - - - - - - - -
    FI Subsilver Images - German

     

    - - - - - - - -
    icon_aim.gificon_edit.gificon_email.gificon_icq_add.gificon_msnm.gificon_pm.gificon_profile.gificon_quote.gificon_search.gificon_www.gificon_yim.gificon_ip.gif
    msg_newpost.gifpost.gifreply.gifreply-locked.gif
    -

     

    -

    Close - Window

    -
    - - \ No newline at end of file diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/msg_newpost.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/msg_newpost.gif deleted file mode 100644 index a620bdf..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/msg_newpost.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/post.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/post.gif deleted file mode 100644 index b4f86bc..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/post.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/reply-locked.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/reply-locked.gif deleted file mode 100644 index d23d849..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/reply-locked.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/reply.gif b/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/reply.gif deleted file mode 100644 index f1c8edd..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/lang_german/reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/logo_phpBB.gif b/phpBB2_old/templates/christmasWithoutSnow/images/logo_phpBB.gif deleted file mode 100644 index f6d87ac..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/logo_phpBB.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/logo_phpBB2.gif b/phpBB2_old/templates/christmasWithoutSnow/images/logo_phpBB2.gif deleted file mode 100644 index 221b50d..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/logo_phpBB2.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/logo_phpBB_med.gif b/phpBB2_old/templates/christmasWithoutSnow/images/logo_phpBB_med.gif deleted file mode 100644 index 5b4e6b3..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/logo_phpBB_med.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/msg_inbox.gif b/phpBB2_old/templates/christmasWithoutSnow/images/msg_inbox.gif deleted file mode 100644 index dc455b6..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/msg_inbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/msg_outbox.gif b/phpBB2_old/templates/christmasWithoutSnow/images/msg_outbox.gif deleted file mode 100644 index a7b19b8..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/msg_outbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/msg_savebox.gif b/phpBB2_old/templates/christmasWithoutSnow/images/msg_savebox.gif deleted file mode 100644 index 8a5d7d2..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/msg_savebox.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/msg_sentbox.gif b/phpBB2_old/templates/christmasWithoutSnow/images/msg_sentbox.gif deleted file mode 100644 index b157808..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/msg_sentbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/snow.gif b/phpBB2_old/templates/christmasWithoutSnow/images/snow.gif deleted file mode 100644 index c29c435..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/snow.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/spacer.gif b/phpBB2_old/templates/christmasWithoutSnow/images/spacer.gif deleted file mode 100644 index 5bfd67a..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/spacer.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/topic_delete.gif b/phpBB2_old/templates/christmasWithoutSnow/images/topic_delete.gif deleted file mode 100644 index d1d3a62..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/topic_delete.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/topic_lock.gif b/phpBB2_old/templates/christmasWithoutSnow/images/topic_lock.gif deleted file mode 100644 index 3aadda3..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/topic_lock.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/topic_move.gif b/phpBB2_old/templates/christmasWithoutSnow/images/topic_move.gif deleted file mode 100644 index af8b3c7..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/topic_move.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/topic_split.gif b/phpBB2_old/templates/christmasWithoutSnow/images/topic_split.gif deleted file mode 100644 index 977dedb..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/topic_split.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/topic_unlock.gif b/phpBB2_old/templates/christmasWithoutSnow/images/topic_unlock.gif deleted file mode 100644 index a088619..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/topic_unlock.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/vote_lcap.gif b/phpBB2_old/templates/christmasWithoutSnow/images/vote_lcap.gif deleted file mode 100644 index 22e1080..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/vote_lcap.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/vote_rcap.gif b/phpBB2_old/templates/christmasWithoutSnow/images/vote_rcap.gif deleted file mode 100644 index 28da06f..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/vote_rcap.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/voting_bar.gif b/phpBB2_old/templates/christmasWithoutSnow/images/voting_bar.gif deleted file mode 100644 index ced112d..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/voting_bar.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/images/whosonline.gif b/phpBB2_old/templates/christmasWithoutSnow/images/whosonline.gif deleted file mode 100644 index 3bea906..0000000 Binary files a/phpBB2_old/templates/christmasWithoutSnow/images/whosonline.gif and /dev/null differ diff --git a/phpBB2_old/templates/christmasWithoutSnow/index.htm b/phpBB2_old/templates/christmasWithoutSnow/index.htm deleted file mode 100644 index 47b206d..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -christmas2 created by subBlue Design - - - - - - - - - -
    Created by subBlue Design
    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/christmasWithoutSnow/index_body b/phpBB2_old/templates/christmasWithoutSnow/index_body deleted file mode 100644 index f714a0f..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/index_body +++ /dev/null @@ -1,104 +0,0 @@ - - - - - -
    - - {LAST_VISIT_DATE}
    - - {CURRENT_TIME}
    {L_INDEX}
    - - - {L_SEARCH_NEW}
    {L_SEARCH_SELF}
    - - {L_SEARCH_UNANSWERED}
    - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FORUM}  {L_TOPICS}  {L_POSTS}  {L_LASTPOST} 
    {catrow.CAT_DESC}
    {catrow.forumrow.L_FORUM_FOLDER_ALT} {catrow.forumrow.FORUM_NAME}
    -
    {catrow.forumrow.FORUM_DESC}
    -
    {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
    {catrow.forumrow.TOPICS}{catrow.forumrow.POSTS} {catrow.forumrow.LAST_POST}
    - - - - - - -
    {L_MARK_FORUMS_READ}{S_TIMEZONE}
    - - - - - - - - - - - - -
    {L_WHO_IS_ONLINE}
    {L_WHO_IS_ONLINE}{TOTAL_POSTS}
    {TOTAL_USERS}
    {NEWEST_USER}
    -
    {TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
    {RECORD_USERS}
    {LOGGED_IN_USER_LIST}
    - - - - - -
    {L_ONLINE_EXPLAIN}
    - - -
    - - - - - - - -
    {L_LOGIN_LOGOUT}
    {L_USERNAME}: - -    {L_PASSWORD}: - -      {L_AUTO_LOGIN} - -     - -
    -
    - - -
    - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_FORUM_LOCKED}{L_FORUM_LOCKED}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/index_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/index_body.tpl deleted file mode 100644 index f714a0f..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/index_body.tpl +++ /dev/null @@ -1,104 +0,0 @@ - - - - - -
    - - {LAST_VISIT_DATE}
    - - {CURRENT_TIME}
    {L_INDEX}
    - - - {L_SEARCH_NEW}
    {L_SEARCH_SELF}
    - - {L_SEARCH_UNANSWERED}
    - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FORUM}  {L_TOPICS}  {L_POSTS}  {L_LASTPOST} 
    {catrow.CAT_DESC}
    {catrow.forumrow.L_FORUM_FOLDER_ALT} {catrow.forumrow.FORUM_NAME}
    -
    {catrow.forumrow.FORUM_DESC}
    -
    {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
    {catrow.forumrow.TOPICS}{catrow.forumrow.POSTS} {catrow.forumrow.LAST_POST}
    - - - - - - -
    {L_MARK_FORUMS_READ}{S_TIMEZONE}
    - - - - - - - - - - - - -
    {L_WHO_IS_ONLINE}
    {L_WHO_IS_ONLINE}{TOTAL_POSTS}
    {TOTAL_USERS}
    {NEWEST_USER}
    -
    {TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
    {RECORD_USERS}
    {LOGGED_IN_USER_LIST}
    - - - - - -
    {L_ONLINE_EXPLAIN}
    - - -
    - - - - - - - -
    {L_LOGIN_LOGOUT}
    {L_USERNAME}: - -    {L_PASSWORD}: - -      {L_AUTO_LOGIN} - -     - -
    -
    - - -
    - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_FORUM_LOCKED}{L_FORUM_LOCKED}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/jumpbox.tpl b/phpBB2_old/templates/christmasWithoutSnow/jumpbox.tpl deleted file mode 100644 index 2000e92..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/jumpbox.tpl +++ /dev/null @@ -1,6 +0,0 @@ - -
    - - - -
    {L_JUMP_TO}: {S_JUMPBOX_SELECT} 
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/login_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/login_body.tpl deleted file mode 100644 index 50d7f71..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/login_body.tpl +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - -
    - - - - - - - - -
    {L_ENTER_PASSWORD}
    - - - - - - - - - - - - - - - - - - - - -
     
    {L_USERNAME}: - -
    {L_PASSWORD}: - -
    {L_AUTO_LOGIN}:
    {S_HIDDEN_FIELDS}
    {L_SEND_PASSWORD}
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/memberlist_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/memberlist_body.tpl deleted file mode 100644 index af1340d..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/memberlist_body.tpl +++ /dev/null @@ -1,55 +0,0 @@ - -
    - - - - - -
    {L_INDEX}{L_SELECT_SORT_METHOD}: {S_MODE_SELECT}  {L_ORDER} {S_ORDER_SELECT}   - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # {L_USERNAME}{L_EMAIL}{L_FROM}{L_JOINED}{L_POSTS}{L_WEBSITE}
     {memberrow.ROW_NUMBER}  {memberrow.PM_IMG} {memberrow.USERNAME} {memberrow.EMAIL_IMG} {memberrow.FROM}{memberrow.JOINED}{memberrow.POSTS} {memberrow.WWW_IMG} 
     
    - - - - -
    - - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/message_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/message_body.tpl deleted file mode 100644 index 6be7f51..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/message_body.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - -
     
    {MESSAGE_TEXT}
     
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/modcp_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/modcp_body.tpl deleted file mode 100644 index fd0fe1b..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/modcp_body.tpl +++ /dev/null @@ -1,58 +0,0 @@ - -
    - - - - -
    {L_INDEX} -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_MOD_CP} -
    {L_MOD_CP_EXPLAIN}
      {L_TOPICS}  {L_REPLIES}  {L_LASTPOST}  {L_SELECT} 
    {topicrow.L_TOPIC_FOLDER_ALT} {topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}{topicrow.REPLIES}{topicrow.LAST_POST_TIME} - -
    {S_HIDDEN_FIELDS} - -   - -   - -   - -
    - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    -
    - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/modcp_move.tpl b/phpBB2_old/templates/christmasWithoutSnow/modcp_move.tpl deleted file mode 100644 index 730952c..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/modcp_move.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - - -
     
    {L_MOVE_TO_FORUM}   {S_FORUM_SELECT}

    - {L_LEAVESHADOW}
    -
    - {MESSAGE_TEXT}

    -
    - {S_HIDDEN_FIELDS} - -    - -
     
    -
    -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/modcp_split.tpl b/phpBB2_old/templates/christmasWithoutSnow/modcp_split.tpl deleted file mode 100644 index 837544c..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/modcp_split.tpl +++ /dev/null @@ -1,85 +0,0 @@ - -
    - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SPLIT_TOPIC}
    {L_SPLIT_TOPIC_EXPLAIN}
    {L_SPLIT_SUBJECT}
    {L_SPLIT_FORUM}{S_FORUM_SELECT}
    - - - - - -
    - - - -
    -
    {L_AUTHOR}{L_MESSAGE}{L_SELECT}
    {postrow.POSTER_NAME} - - - - - - - -
    {L_POST}{L_POSTED}: - {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}
    -
    - {postrow.MESSAGE}
    -
    {postrow.S_SPLIT_CHECKBOX}
    .
    - - - - - -
    - - - - {S_HIDDEN_FIELDS}
    -
    - - - - -
    {S_TIMEZONE}
    -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/modcp_viewip.tpl b/phpBB2_old/templates/christmasWithoutSnow/modcp_viewip.tpl deleted file mode 100644 index d497d88..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/modcp_viewip.tpl +++ /dev/null @@ -1,58 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_IP_INFO}
    {L_THIS_POST_IP}
    - - - - - -
     {IP} [ {POSTS} ][ {L_LOOKUP_IP} - ] 
    -
    {L_OTHER_USERS}
    - - - - - -
     {userrow.USERNAME} [ {userrow.POSTS} ]{L_SEARCH} -  
    -
    {L_OTHER_IPS}
    - - - - -
     {iprow.IP} [ {iprow.POSTS} ][ {L_LOOKUP_IP} - ] 
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/overall_footer.tpl b/phpBB2_old/templates/christmasWithoutSnow/overall_footer.tpl deleted file mode 100644 index c0750a1..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/overall_footer.tpl +++ /dev/null @@ -1,20 +0,0 @@ - -

    {ADMIN_LINK}
    - -Powered by phpBB {PHPBB_VERSION} © 2001, 2002 phpBB Group
    {TRANSLATION_INFO} -
    Original Template   Modify Template by   BremerJunge
    -
    - - - diff --git a/phpBB2_old/templates/christmasWithoutSnow/overall_header b/phpBB2_old/templates/christmasWithoutSnow/overall_header deleted file mode 100644 index eae5c10..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/overall_header +++ /dev/null @@ -1,47 +0,0 @@ - - - - - -{META} -{NAV_LINKS} -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - -
    - - - - -
    {L_INDEX}{SITENAME}
    {SITE_DESCRIPTION}
     
    - - - - - -
     {L_FAQ}{L_FAQ}   {L_SEARCH}{L_SEARCH}   {L_MEMBERLIST}{L_MEMBERLIST}   {L_USERGROUPS}{L_USERGROUPS}  - -  {L_REGISTER}{L_REGISTER}  - -
     {L_PROFILE}{L_PROFILE}   {PRIVATE_MESSAGE_INFO}{PRIVATE_MESSAGE_INFO}   {L_LOGIN_LOGOUT}{L_LOGIN_LOGOUT} 
    -
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/overall_header.tpl b/phpBB2_old/templates/christmasWithoutSnow/overall_header.tpl deleted file mode 100644 index eae5c10..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/overall_header.tpl +++ /dev/null @@ -1,47 +0,0 @@ - - - - - -{META} -{NAV_LINKS} -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/phpBB2_old/templates/christmasWithoutSnow/posting_preview b/phpBB2_old/templates/christmasWithoutSnow/posting_preview deleted file mode 100644 index 6479929..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/posting_preview +++ /dev/null @@ -1,23 +0,0 @@ - -
    - - - - -
    {L_INDEX}{SITENAME}
    {SITE_DESCRIPTION}
     
    - - - - - -
     {L_FAQ}{L_FAQ}   {L_SEARCH}{L_SEARCH}   {L_MEMBERLIST}{L_MEMBERLIST}   {L_USERGROUPS}{L_USERGROUPS}  - -  {L_REGISTER}{L_REGISTER}  - -
     {L_PROFILE}{L_PROFILE}   {PRIVATE_MESSAGE_INFO}{PRIVATE_MESSAGE_INFO}   {L_LOGIN_LOGOUT}{L_LOGIN_LOGOUT} 
    -
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/posting_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/posting_body.tpl deleted file mode 100644 index c16b19c..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/posting_body.tpl +++ /dev/null @@ -1,481 +0,0 @@ - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX_LINK}  {SENTBOX_IMG}{SENTBOX_LINK}  {OUTBOX_IMG}{OUTBOX_LINK}  {SAVEBOX_IMG}{SAVEBOX_LINK}  
    -
    - -
    - - -
    - -{POST_PREVIEW_BOX} -{ERROR_BOX} - - - - - - -
    {L_INDEX} - - -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {POLLBOX} - - - -
    {L_POST_A}
    {L_USERNAME}
    {L_USERNAME} 
    {L_SUBJECT} - -
    - - - - - - - -
    {L_MESSAGE_BODY}

    - - - - - - - - - - - - - - - - -
    {L_EMOTICONS}
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}
    -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - - - -
    - - - - - -
     {L_FONT_COLOR}: -  {L_FONT_SIZE}: - {L_BBCODE_CLOSE_TAGS}
    -
    - -
    - -
    -
    {L_OPTIONS}
    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - {L_DISABLE_HTML}
    - - {L_DISABLE_BBCODE}
    - - {L_DISABLE_SMILIES}
    - - {L_ATTACH_SIGNATURE}
    - - {L_NOTIFY_ON_REPLY}
    - - {L_DELETE_POST}
    {S_TYPE_TOGGLE}
    -
    {S_HIDDEN_FORM_FIELDS} 
    - - - - - -
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    - -{TOPIC_REVIEW_BOX} diff --git a/phpBB2_old/templates/christmasWithoutSnow/posting_poll_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/posting_poll_body.tpl deleted file mode 100644 index 4391393..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/posting_poll_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -
    {L_ADD_A_POLL}
    {L_ADD_POLL_EXPLAIN}
    {L_POLL_QUESTION}
    {L_POLL_OPTION}  
    {L_POLL_OPTION}  
    {L_POLL_LENGTH} {L_DAYS}   {L_POLL_LENGTH_EXPLAIN}
    {L_POLL_DELETE}
    - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_POST}{L_POSTED}: {POST_DATE}     {L_POST_SUBJECT}: {POST_SUBJECT}
    - - - -
    - {MESSAGE} -
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/posting_preview.tpl b/phpBB2_old/templates/christmasWithoutSnow/posting_preview.tpl deleted file mode 100644 index 6479929..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/posting_preview.tpl +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_POST}{L_POSTED}: {POST_DATE}     {L_POST_SUBJECT}: {POST_SUBJECT}
    - - - -
    - {MESSAGE} -
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/posting_smilies.tpl b/phpBB2_old/templates/christmasWithoutSnow/posting_smilies.tpl deleted file mode 100644 index 7028535..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/posting_smilies.tpl +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - -
    - - - - - - - - - -
    {L_EMOTICONS}
    - - - - - - - - - - - - -
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}

    {L_CLOSE_WINDOW}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/posting_topic_review b/phpBB2_old/templates/christmasWithoutSnow/posting_topic_review deleted file mode 100644 index 9bc0bfa..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/posting_topic_review +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - -
    {L_TOPIC_REVIEW}
    - diff --git a/phpBB2_old/templates/christmasWithoutSnow/posting_topic_review.tpl b/phpBB2_old/templates/christmasWithoutSnow/posting_topic_review.tpl deleted file mode 100644 index 9bc0bfa..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/posting_topic_review.tpl +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - -
    {L_TOPIC_REVIEW}
    - diff --git a/phpBB2_old/templates/christmasWithoutSnow/privmsgs_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/privmsgs_body.tpl deleted file mode 100644 index 9422071..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/privmsgs_body.tpl +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}  
    -
    - - - - - - - - - - - - - -
    {BOX_SIZE_STATUS}
    - - - - -
    {INBOX_LIMIT_PERCENT}
    -
    0%50%100%
    - -
    - -
    - -
    - - - - - - -
    {POST_PM_IMG} {L_INDEX}{L_DISPLAY_MESSAGES}: - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FLAG}  {L_SUBJECT}  {L_FROM_OR_TO}  {L_DATE}  {L_MARK} 
    {listrow.L_PRIVMSG_FOLDER_ALT} {listrow.SUBJECT} {listrow.FROM}{listrow.DATE} - -
    {L_NO_MESSAGES}
    {S_HIDDEN_FIELDS} - -   - -   - -
    - - - - - - - -
    {POST_PM_IMG}{PAGE_NUMBER}{L_MARK_ALL} :: {L_UNMARK_ALL}
    {PAGINATION}
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/privmsgs_popup.tpl b/phpBB2_old/templates/christmasWithoutSnow/privmsgs_popup.tpl deleted file mode 100644 index e48205b..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/privmsgs_popup.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - -
    - - - - -

    {L_MESSAGE}

    {L_CLOSE_WINDOW}

    -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/privmsgs_preview.tpl b/phpBB2_old/templates/christmasWithoutSnow/privmsgs_preview.tpl deleted file mode 100644 index ba2ed93..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/privmsgs_preview.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT}
    {MESSAGE}
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/privmsgs_read_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/privmsgs_read_body.tpl deleted file mode 100644 index 3c85e6a..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/privmsgs_read_body.tpl +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}
    - -
    - -
    - - - - - -
    {REPLY_PM_IMG} {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {BOX_NAME} :: {L_MESSAGE}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT} {QUOTE_PM_IMG} {EDIT_PM_IMG}
    {MESSAGE}
    - - - - -
    {PROFILE_IMG} {PM_IMG} {EMAIL_IMG} - {WWW_IMG} {AIM_IMG} {YIM_IMG} {MSN_IMG} 
    -
    {S_HIDDEN_FIELDS} - -   - -
    - - - - - -
    {REPLY_PM_IMG}{S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/profile_add_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/profile_add_body.tpl deleted file mode 100644 index ede3217..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/profile_add_body.tpl +++ /dev/null @@ -1,274 +0,0 @@ - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: *{USERNAME}
    {L_USERNAME}: *
    {L_EMAIL_ADDRESS}: *
    {L_CURRENT_PASSWORD}: *
    - {L_CONFIRM_PASSWORD_EXPLAIN}
    - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
    {L_CONFIRM_CODE_IMPAIRED}

    {CONFIRM_IMG}

    {L_CONFIRM_CODE}: *
    {L_CONFIRM_CODE_EXPLAIN}
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER}: - -
    {L_AIM}: - -
    {L_MESSENGER}: - -
    {L_YAHOO}: - -
    {L_WEBSITE}: - -
    {L_LOCATION}: - -
    {L_OCCUPATION}: - -
    {L_INTERESTS}: - -
    {L_SIGNATURE}:
    {L_SIGNATURE_EXPLAIN}

    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL}: - - {L_YES}   - - {L_NO}
    {L_HIDE_USER}: - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY}:
    - {L_NOTIFY_ON_REPLY_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG}: - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG}:
    {L_POPUP_ON_PRIVMSG_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES}: - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}:{LANGUAGE_SELECT}
    {L_BOARD_STYLE}:{STYLE_SELECT}
    {L_TIMEZONE}:{TIMEZONE_SELECT}
    {L_DATE_FORMAT}:
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    {AVATAR}
     {L_DELETE_AVATAR}
    {L_UPLOAD_AVATAR_FILE}:
    {L_UPLOAD_AVATAR_URL}:
    {L_UPLOAD_AVATAR_URL_EXPLAIN}
    {L_LINK_REMOTE_AVATAR}:
    {L_LINK_REMOTE_AVATAR_EXPLAIN}
    {L_AVATAR_GALLERY}:
    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/profile_avatar_gallery.tpl b/phpBB2_old/templates/christmasWithoutSnow/profile_avatar_gallery.tpl deleted file mode 100644 index 9be5375..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/profile_avatar_gallery.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}: {S_CATEGORY_SELECT} 
    {avatar_row.avatar_column.AVATAR_NAME}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/profile_send_email.tpl b/phpBB2_old/templates/christmasWithoutSnow/profile_send_email.tpl deleted file mode 100644 index 86c28cb..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/profile_send_email.tpl +++ /dev/null @@ -1,74 +0,0 @@ - - - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEND_EMAIL_MSG}
    {L_RECIPIENT}{USERNAME}
    {L_SUBJECT}
    {L_MESSAGE_BODY}
    {L_MESSAGE_BODY_DESC}
    {L_OPTIONS} - - - - -
    {L_CC_EMAIL}
    {S_HIDDEN_FIELDS}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/profile_send_pass.tpl b/phpBB2_old/templates/christmasWithoutSnow/profile_send_pass.tpl deleted file mode 100644 index 8d31aa4..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/profile_send_pass.tpl +++ /dev/null @@ -1,35 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - -
    {L_SEND_PASSWORD}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/profile_view_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/profile_view_body.tpl deleted file mode 100644 index a9c3c6f..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/profile_view_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - -
    {L_VIEWING_PROFILE}
    {L_AVATAR}{L_ABOUT_USER}
    {AVATAR_IMG}
    {POSTER_RANK}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_JOINED}: {JOINED}
    {L_TOTAL_POSTS}: {POSTS}
    [{POST_PERCENT_STATS} / {POST_DAY_STATS}]
    {L_SEARCH_USER_POSTS}
    {L_LOCATION}: {LOCATION}
    {L_WEBSITE}: {WWW}
    {L_OCCUPATION}: {OCCUPATION}
    {L_INTERESTS}: {INTERESTS}
    -
    {L_CONTACT} {USERNAME}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_EMAIL_ADDRESS}:{EMAIL_IMG}
    {L_PM}:{PM_IMG}
    {L_MESSENGER}:{MSN}
    {L_YAHOO}:{YIM_IMG}
    {L_AIM}:{AIM_IMG}
    {L_ICQ_NUMBER}:
    -
    - - - - - -

    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/search_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/search_body.tpl deleted file mode 100644 index d1316df..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/search_body.tpl +++ /dev/null @@ -1,57 +0,0 @@ - -
    - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEARCH_QUERY}
    {L_SEARCH_KEYWORDS}:
    {L_SEARCH_KEYWORDS_EXPLAIN}

    {L_SEARCH_ANY_TERMS}
    {L_SEARCH_ALL_TERMS}
    {L_SEARCH_AUTHOR}:
    {L_SEARCH_AUTHOR_EXPLAIN}
    {L_SEARCH_OPTIONS}
    {L_FORUM}: {L_SEARCH_PREVIOUS}: 
    {L_SEARCH_MESSAGE_TITLE}
    {L_SEARCH_MESSAGE_ONLY}
    {L_CATEGORY}: {L_SORT_BY}: 
    {L_SORT_ASCENDING}
    {L_SORT_DESCENDING}
     
    {L_DISPLAY_RESULTS}: {L_POSTS}{L_TOPICS}{L_RETURN_FIRST} {L_CHARACTERS}
    {S_HIDDEN_FIELDS}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/search_results_posts.tpl b/phpBB2_old/templates/christmasWithoutSnow/search_results_posts.tpl deleted file mode 100644 index edb8e76..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/search_results_posts.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - -
    {L_AUTHOR}{L_MESSAGE}
      {L_TOPIC}: {searchresults.TOPIC_TITLE}
    {searchresults.POSTER_NAME}
    -
    - {L_REPLIES}: {searchresults.TOPIC_REPLIES}
    - {L_VIEWS}: {searchresults.TOPIC_VIEWS}

    -
    {searchresults.L_MINI_POST_ALT}{L_FORUM}: {searchresults.FORUM_NAME}   {L_POSTED}: {searchresults.POST_DATE}   {L_SUBJECT}: {searchresults.POST_SUBJECT}
    {searchresults.MESSAGE}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/search_results_topics.tpl b/phpBB2_old/templates/christmasWithoutSnow/search_results_topics.tpl deleted file mode 100644 index be0d424..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/search_results_topics.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - -
      {L_FORUM}  {L_TOPICS}  {L_AUTHOR}  {L_REPLIES}  {L_VIEWS}  {L_LASTPOST} 
    {searchresults.L_TOPIC_FOLDER_ALT}{searchresults.FORUM_NAME}{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}{searchresults.TOPIC_TITLE}
    {searchresults.GOTO_PAGE}
    {searchresults.TOPIC_AUTHOR}{searchresults.REPLIES}{searchresults.VIEWS}{searchresults.LAST_POST_TIME}
    {searchresults.LAST_POST_AUTHOR} {searchresults.LAST_POST_IMG}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/search_username.tpl b/phpBB2_old/templates/christmasWithoutSnow/search_username.tpl deleted file mode 100644 index 611ec3f..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/search_username.tpl +++ /dev/null @@ -1,30 +0,0 @@ - - - -
    - - - - -
    - - - - - - -
    {L_SEARCH_USERNAME}

     

    {L_SEARCH_EXPLAIN}
    - - {L_UPDATE_USERNAME}
     

    - -
    {L_CLOSE_WINDOW}
    -
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/simple_footer.tpl b/phpBB2_old/templates/christmasWithoutSnow/simple_footer.tpl deleted file mode 100644 index 68c2b00..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/simple_footer.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    - -Powered by phpBB {PHPBB_VERSION} © 2001,2002 phpBB Group
    -
    - - - diff --git a/phpBB2_old/templates/christmasWithoutSnow/simple_header.tpl b/phpBB2_old/templates/christmasWithoutSnow/simple_header.tpl deleted file mode 100644 index 90a4fb9..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/simple_header.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - -{META} -{SITENAME} :: {PAGE_TITLE} - - - - - - diff --git a/phpBB2_old/templates/christmasWithoutSnow/theme_info.cfg b/phpBB2_old/templates/christmasWithoutSnow/theme_info.cfg deleted file mode 100644 index bc48162..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/theme_info.cfg +++ /dev/null @@ -1,51 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2_old/templates/christmasWithoutSnow/viewforum_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/viewforum_body.tpl deleted file mode 100644 index b1414f7..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/viewforum_body.tpl +++ /dev/null @@ -1,98 +0,0 @@ - -
    - - - - - - - - - - -
    {FORUM_NAME}
    {L_MODERATOR}: {MODERATORS}

    {LOGGED_IN_USER_LIST}
    {PAGINATION}
    {L_POST_NEW_TOPIC}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_TOPICS}  {L_REPLIES}  {L_AUTHOR}  {L_VIEWS}  {L_LASTPOST} 
    {topicrow.L_TOPIC_FOLDER_ALT}{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}
    - {topicrow.GOTO_PAGE}
    {topicrow.REPLIES}{topicrow.TOPIC_AUTHOR}{topicrow.VIEWS}{topicrow.LAST_POST_TIME}
    {topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}
    {L_NO_TOPICS}
    {L_DISPLAY_TOPICS}: {S_SELECT_TOPIC_DAYS}  - -
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_INDEX} -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    -
    - - - - - -
    {JUMPBOX}
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_ANNOUNCEMENT}{L_ANNOUNCEMENT}
    {L_NEW_POSTS_HOT}{L_NEW_POSTS_HOT}  {L_NO_NEW_POSTS_HOT}{L_NO_NEW_POSTS_HOT}  {L_STICKY}{L_STICKY}
    {L_NEW_POSTS_LOCKED}{L_NEW_POSTS_LOCKED}  {L_NO_NEW_POSTS_LOCKED}{L_NO_NEW_POSTS_LOCKED}
    {S_AUTH_LIST}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/viewonline_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/viewonline_body.tpl deleted file mode 100644 index d68a180..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/viewonline_body.tpl +++ /dev/null @@ -1,53 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_LAST_UPDATE}  {L_FORUM_LOCATION} 
    {TOTAL_REGISTERED_USERS_ONLINE}
     {reg_user_row.USERNAME}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION} 
    .
    {TOTAL_GUEST_USERS_ONLINE}
     {guest_user_row.USERNAME}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION} 
    - - - - - - -
    {L_ONLINE_EXPLAIN}{S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    - diff --git a/phpBB2_old/templates/christmasWithoutSnow/viewtopic_body.tpl b/phpBB2_old/templates/christmasWithoutSnow/viewtopic_body.tpl deleted file mode 100644 index a699f7d..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/viewtopic_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {TOPIC_TITLE}
    - {PAGINATION}
    -  
    - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}
    - - - - - - {POLL_DISPLAY} - - - - - - - - - - - - - - - - - - - - -
    {L_VIEW_PREVIOUS_TOPIC} :: {L_VIEW_NEXT_TOPIC}  
    {L_AUTHOR}{L_MESSAGE}
    {postrow.POSTER_NAME}
    {postrow.POSTER_RANK}
    {postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}

    {postrow.POSTER_JOINED}
    {postrow.POSTER_POSTS}
    {postrow.POSTER_FROM}

    - - - - - - - - - - -
    {postrow.L_MINI_POST_ALT}{L_POSTED}: {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}

    {postrow.MESSAGE}{postrow.SIGNATURE}{postrow.EDITED_MESSAGE}
    {L_BACK_TO_TOP} - - - -
    {postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}
    - - - -
    {L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} 
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    - - - - - - -
    {S_WATCH_TOPIC}
    -  
    - {S_TOPIC_ADMIN}
    {JUMPBOX}{S_AUTH_LIST}
    diff --git a/phpBB2_old/templates/christmasWithoutSnow/viewtopic_poll_ballot.tpl b/phpBB2_old/templates/christmasWithoutSnow/viewtopic_poll_ballot.tpl deleted file mode 100644 index 1e0cb21..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/viewtopic_poll_ballot.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -
    - - - - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - -
     {poll_option.POLL_OPTION_CAPTION}
    - -
    {L_VIEW_RESULTS}
    {S_HIDDEN_FIELDS}
    - \ No newline at end of file diff --git a/phpBB2_old/templates/christmasWithoutSnow/viewtopic_poll_result.tpl b/phpBB2_old/templates/christmasWithoutSnow/viewtopic_poll_result.tpl deleted file mode 100644 index e0cc347..0000000 --- a/phpBB2_old/templates/christmasWithoutSnow/viewtopic_poll_result.tpl +++ /dev/null @@ -1,36 +0,0 @@ - - -
    - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - - - - -
    {poll_option.POLL_OPTION_CAPTION} - - - - - - -
    {poll_option.POLL_OPTION_PERCENT}
    -
     {poll_option.POLL_OPTION_PERCENT} [ {poll_option.POLL_OPTION_RESULT} ]
    -
    {L_TOTAL_VOTES} : {TOTAL_VOTES}
    -
    - - diff --git a/phpBB2_old/templates/helius_english.zip b/phpBB2_old/templates/helius_english.zip deleted file mode 100644 index f2343a6..0000000 Binary files a/phpBB2_old/templates/helius_english.zip and /dev/null differ diff --git a/phpBB2_old/templates/index.htm b/phpBB2_old/templates/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2_old/templates/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2_old/templates/subSilver/admin/admin_message_body.tpl b/phpBB2_old/templates/subSilver/admin/admin_message_body.tpl deleted file mode 100644 index 68e69ca..0000000 --- a/phpBB2_old/templates/subSilver/admin/admin_message_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    - - - - - - - - -
    {MESSAGE_TITLE}
    {MESSAGE_TEXT}
    - -
    diff --git a/phpBB2_old/templates/subSilver/admin/auth_forum_body.tpl b/phpBB2_old/templates/subSilver/admin/auth_forum_body.tpl deleted file mode 100644 index 7e58992..0000000 --- a/phpBB2_old/templates/subSilver/admin/auth_forum_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - - - - - - - - -
    {forum_auth_titles.CELL_TITLE}
    {forum_auth_data.S_AUTH_LEVELS_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/subSilver/admin/auth_select_body.tpl b/phpBB2_old/templates/subSilver/admin/auth_select_body.tpl deleted file mode 100644 index b1fdd98..0000000 --- a/phpBB2_old/templates/subSilver/admin/auth_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_AUTH_EXPLAIN}

    - -
    - - - - - - -
    {L_AUTH_SELECT}
    {S_HIDDEN_FIELDS}{S_AUTH_SELECT}   
    diff --git a/phpBB2_old/templates/subSilver/admin/auth_ug_body.tpl b/phpBB2_old/templates/subSilver/admin/auth_ug_body.tpl deleted file mode 100644 index 78c8e60..0000000 --- a/phpBB2_old/templates/subSilver/admin/auth_ug_body.tpl +++ /dev/null @@ -1,49 +0,0 @@ - -

    {L_AUTH_TITLE}

    - -

    {L_USER_OR_GROUPNAME}: {USERNAME}

    - -
    - - -

    {USER_LEVEL}

    -

    {USER_GROUP_MEMBERSHIPS}

    - - - -

    {GROUP_MEMBERSHIP}

    - - -

    {L_PERMISSIONS}

    - -

    {L_AUTH_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM}{acltype.L_UG_ACL_TYPE}{L_MODERATOR_STATUS}
    {forums.FORUM_NAME}{forums.aclvalues.S_ACL_SELECT}{forums.S_MOD_SELECT}
    {U_SWITCH_MODE}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/subSilver/admin/board_config_body.tpl b/phpBB2_old/templates/subSilver/admin/board_config_body.tpl deleted file mode 100644 index d82a0b0..0000000 --- a/phpBB2_old/templates/subSilver/admin/board_config_body.tpl +++ /dev/null @@ -1,252 +0,0 @@ - -

    {L_CONFIGURATION_TITLE}

    - -

    {L_CONFIGURATION_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GENERAL_SETTINGS}
    {L_SERVER_NAME}
    {L_SERVER_PORT}
    {L_SERVER_PORT_EXPLAIN}
    {L_SCRIPT_PATH}
    {L_SCRIPT_PATH_EXPLAIN}
    {L_SITE_NAME}
    {L_SITE_NAME_EXPLAIN}
    {L_SITE_DESCRIPTION}
    {L_DISABLE_BOARD}
    {L_DISABLE_BOARD_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ACCT_ACTIVATION}{L_NONE}   {L_USER}   {L_ADMIN}
    {L_VISUAL_CONFIRM}
    {L_VISUAL_CONFIRM_EXPLAIN}
    {L_YES}   {L_NO}
    {L_BOARD_EMAIL_FORM}
    {L_BOARD_EMAIL_FORM_EXPLAIN}
    {L_ENABLED}   {L_DISABLED}
    {L_FLOOD_INTERVAL}
    {L_FLOOD_INTERVAL_EXPLAIN}
    {L_TOPICS_PER_PAGE}
    {L_POSTS_PER_PAGE}
    {L_HOT_THRESHOLD}
    {L_DEFAULT_STYLE}{STYLE_SELECT}
    {L_OVERRIDE_STYLE}
    {L_OVERRIDE_STYLE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_DEFAULT_LANGUAGE}{LANG_SELECT}
    {L_DATE_FORMAT}
    {L_DATE_FORMAT_EXPLAIN}
    {L_SYSTEM_TIMEZONE}{TIMEZONE_SELECT}
    {L_ENABLE_GZIP} {L_YES}   {L_NO}
    {L_ENABLE_PRUNE} {L_YES}   {L_NO}
    {L_COOKIE_SETTINGS}
    {L_COOKIE_SETTINGS_EXPLAIN}
    {L_COOKIE_DOMAIN}
    {L_COOKIE_NAME}
    {L_COOKIE_PATH}
    {L_COOKIE_SECURE}
    {L_COOKIE_SECURE_EXPLAIN}
    {L_DISABLED}   {L_ENABLED}
    {L_SESSION_LENGTH}
    {L_PRIVATE_MESSAGING}
    {L_DISABLE_PRIVATE_MESSAGING}{L_ENABLED}   {L_DISABLED}
    {L_INBOX_LIMIT}
    {L_SENTBOX_LIMIT}
    {L_SAVEBOX_LIMIT}
    {L_ABILITIES_SETTINGS}
    {L_MAX_POLL_OPTIONS}
    {L_ALLOW_HTML} {L_YES}   {L_NO}
    {L_ALLOWED_TAGS}
    {L_ALLOWED_TAGS_EXPLAIN}
    {L_ALLOW_BBCODE} {L_YES}   {L_NO}
    {L_ALLOW_SMILIES} {L_YES}   {L_NO}
    {L_SMILIES_PATH}
    {L_SMILIES_PATH_EXPLAIN}
    {L_ALLOW_SIG} {L_YES}   {L_NO}
    {L_MAX_SIG_LENGTH}
    {L_MAX_SIG_LENGTH_EXPLAIN}
    {L_ALLOW_NAME_CHANGE} {L_YES}   {L_NO}
    {L_AVATAR_SETTINGS}
    {L_ALLOW_LOCAL} {L_YES}   {L_NO}
    {L_ALLOW_REMOTE}
    {L_ALLOW_REMOTE_EXPLAIN}
    {L_YES}   {L_NO}
    {L_ALLOW_UPLOAD} {L_YES}   {L_NO}
    {L_MAX_FILESIZE}
    {L_MAX_FILESIZE_EXPLAIN}
    Bytes
    {L_MAX_AVATAR_SIZE}
    - {L_MAX_AVATAR_SIZE_EXPLAIN} -
    x
    {L_AVATAR_STORAGE_PATH}
    {L_AVATAR_STORAGE_PATH_EXPLAIN}
    {L_AVATAR_GALLERY_PATH}
    {L_AVATAR_GALLERY_PATH_EXPLAIN}
    {L_COPPA_SETTINGS}
    {L_COPPA_FAX}
    {L_COPPA_MAIL}
    {L_COPPA_MAIL_EXPLAIN}
    {L_EMAIL_SETTINGS}
    {L_ADMIN_EMAIL}
    {L_EMAIL_SIG}
    {L_EMAIL_SIG_EXPLAIN}
    {L_USE_SMTP}
    {L_USE_SMTP_EXPLAIN}
    {L_YES}   {L_NO}
    {L_SMTP_SERVER}
    {L_SMTP_USERNAME}
    {L_SMTP_USERNAME_EXPLAIN}
    {L_SMTP_PASSWORD}
    {L_SMTP_PASSWORD_EXPLAIN}
    {S_HIDDEN_FIELDS}   -
    - -
    diff --git a/phpBB2_old/templates/subSilver/admin/category_edit_body.tpl b/phpBB2_old/templates/subSilver/admin/category_edit_body.tpl deleted file mode 100644 index 8fed1c9..0000000 --- a/phpBB2_old/templates/subSilver/admin/category_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_EDIT_CATEGORY}

    - -

    {L_EDIT_CATEGORY_EXPLAIN}

    - -
    - - - - - - - - - - - -
    {L_EDIT_CATEGORY}
    {L_CATEGORY}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2_old/templates/subSilver/admin/db_utils_backup_body.tpl b/phpBB2_old/templates/subSilver/admin/db_utils_backup_body.tpl deleted file mode 100644 index 8ee6ab9..0000000 --- a/phpBB2_old/templates/subSilver/admin/db_utils_backup_body.tpl +++ /dev/null @@ -1,33 +0,0 @@ - -

    {L_DATABASE_BACKUP}

    - -

    {L_BACKUP_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BACKUP_OPTIONS}
    {L_FULL_BACKUP}
    {L_STRUCTURE_BACKUP}
    {L_DATA_BACKUP}
    {L_ADDITIONAL_TABLES}
    {L_GZIP_COMPRESS}{L_NO}  {L_YES}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/subSilver/admin/db_utils_restore_body.tpl b/phpBB2_old/templates/subSilver/admin/db_utils_restore_body.tpl deleted file mode 100644 index 13a74dd..0000000 --- a/phpBB2_old/templates/subSilver/admin/db_utils_restore_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_DATABASE_RESTORE}

    - -

    {L_RESTORE_EXPLAIN}

    - -
    - - - - - - -
    {L_SELECT_FILE}
       {S_HIDDEN_FIELDS} 
    diff --git a/phpBB2_old/templates/subSilver/admin/disallow_body.tpl b/phpBB2_old/templates/subSilver/admin/disallow_body.tpl deleted file mode 100644 index ea269f6..0000000 --- a/phpBB2_old/templates/subSilver/admin/disallow_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_DISALLOW_TITLE}

    - -

    {L_DISALLOW_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_ADD_DISALLOW}
    {L_USERNAME}
    {L_ADD_EXPLAIN}
     
    {L_DELETE_DISALLOW}
    {L_USERNAME}
    {L_DELETE_EXPLAIN}
    {S_DISALLOW_SELECT} 
     
    diff --git a/phpBB2_old/templates/subSilver/admin/forum_admin_body.tpl b/phpBB2_old/templates/subSilver/admin/forum_admin_body.tpl deleted file mode 100644 index 4b69932..0000000 --- a/phpBB2_old/templates/subSilver/admin/forum_admin_body.tpl +++ /dev/null @@ -1,39 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_TITLE}
    {catrow.CAT_DESC}{L_EDIT}{L_DELETE}{L_MOVE_UP} {L_MOVE_DOWN} 
    {catrow.forumrow.FORUM_NAME}
    {catrow.forumrow.FORUM_DESC}
    {catrow.forumrow.NUM_TOPICS}{catrow.forumrow.NUM_POSTS}{L_EDIT}{L_DELETE}{L_MOVE_UP}
    {L_MOVE_DOWN}
    {L_RESYNC}
    diff --git a/phpBB2_old/templates/subSilver/admin/forum_delete_body.tpl b/phpBB2_old/templates/subSilver/admin/forum_delete_body.tpl deleted file mode 100644 index 4a26710..0000000 --- a/phpBB2_old/templates/subSilver/admin/forum_delete_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_FORUM_DELETE}

    - -

    {L_FORUM_DELETE_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - -
    {L_FORUM_DELETE}
    {L_FORUM_NAME}{NAME}
    {L_MOVE_CONTENTS}{S_SELECT_TO}
    {S_HIDDEN_FIELDS}
    -
    diff --git a/phpBB2_old/templates/subSilver/admin/forum_edit_body.tpl b/phpBB2_old/templates/subSilver/admin/forum_edit_body.tpl deleted file mode 100644 index 7f56bbe..0000000 --- a/phpBB2_old/templates/subSilver/admin/forum_edit_body.tpl +++ /dev/null @@ -1,50 +0,0 @@ - -

    {L_FORUM_TITLE}

    - -

    {L_FORUM_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_FORUM_SETTINGS}
    {L_FORUM_NAME}
    {L_FORUM_DESCRIPTION}
    {L_CATEGORY}
    {L_FORUM_STATUS}
    {L_AUTO_PRUNE} - - - - - - - - - - - - -
    {L_ENABLED}
    {L_PRUNE_DAYS}  {L_DAYS}
    {L_PRUNE_FREQ}  {L_DAYS}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2_old/templates/subSilver/admin/forum_prune_body.tpl b/phpBB2_old/templates/subSilver/admin/forum_prune_body.tpl deleted file mode 100644 index 56a2e02..0000000 --- a/phpBB2_old/templates/subSilver/admin/forum_prune_body.tpl +++ /dev/null @@ -1,22 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_FORUM_PRUNE_EXPLAIN}

    - -

    {L_FORUM}: {FORUM_NAME}

    - -
    - - - - - - - - - - -
    {L_FORUM_PRUNE}
    {S_PRUNE_DATA}
    {S_HIDDEN_VARS} - -
    -
    diff --git a/phpBB2_old/templates/subSilver/admin/forum_prune_result_body.tpl b/phpBB2_old/templates/subSilver/admin/forum_prune_result_body.tpl deleted file mode 100644 index 10e6d06..0000000 --- a/phpBB2_old/templates/subSilver/admin/forum_prune_result_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -

    {L_PRUNE_RESULT}

    - - - - - - - - - - - - - - -
    {L_FORUM}{L_TOPICS_PRUNED}{L_POSTS_PRUNED}
    {prune_results.FORUM_NAME}{prune_results.FORUM_TOPICS}{prune_results.FORUM_POSTS}
    - -
    diff --git a/phpBB2_old/templates/subSilver/admin/forum_prune_select_body.tpl b/phpBB2_old/templates/subSilver/admin/forum_prune_select_body.tpl deleted file mode 100644 index d59e7f7..0000000 --- a/phpBB2_old/templates/subSilver/admin/forum_prune_select_body.tpl +++ /dev/null @@ -1,12 +0,0 @@ - -

    {L_FORUM_PRUNE}

    - -
    - - - - - - - -
    {L_SELECT_FORUM}
    {S_FORUMS_SELECT}   
    diff --git a/phpBB2_old/templates/subSilver/admin/group_edit_body.tpl b/phpBB2_old/templates/subSilver/admin/group_edit_body.tpl deleted file mode 100644 index ed96b17..0000000 --- a/phpBB2_old/templates/subSilver/admin/group_edit_body.tpl +++ /dev/null @@ -1,56 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_EDIT_DELETE}
    {L_ITEMS_REQUIRED}
    {L_GROUP_NAME}: - -
    {L_GROUP_DESCRIPTION}: - -
    {L_GROUP_MODERATOR}:  
    {L_GROUP_STATUS}: - {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}
    {L_DELETE_MODERATOR} -
    - {L_DELETE_MODERATOR_EXPLAIN}
    - - {L_YES}
    {L_GROUP_DELETE}: - - {L_GROUP_DELETE_CHECK}
    - -    - -
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/subSilver/admin/group_select_body.tpl b/phpBB2_old/templates/subSilver/admin/group_select_body.tpl deleted file mode 100644 index 7428918..0000000 --- a/phpBB2_old/templates/subSilver/admin/group_select_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_GROUP_TITLE}

    - -

    {L_GROUP_EXPLAIN}

    - -
    - - - - - - - - - - - - -
    {L_GROUP_SELECT}
    {S_GROUP_SELECT}   
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/subSilver/admin/index.htm b/phpBB2_old/templates/subSilver/admin/index.htm deleted file mode 100644 index ee1f723..0000000 --- a/phpBB2_old/templates/subSilver/admin/index.htm +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/phpBB2_old/templates/subSilver/admin/index_body.tpl b/phpBB2_old/templates/subSilver/admin/index_body.tpl deleted file mode 100644 index ec1eab7..0000000 --- a/phpBB2_old/templates/subSilver/admin/index_body.tpl +++ /dev/null @@ -1,79 +0,0 @@ - -

    {L_WELCOME}

    - -

    {L_ADMIN_INTRO}

    - -

    {L_FORUM_STATS}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_STATISTIC}{L_VALUE}{L_STATISTIC}{L_VALUE}
    {L_NUMBER_POSTS}:{NUMBER_OF_POSTS}{L_POSTS_PER_DAY}:{POSTS_PER_DAY}
    {L_NUMBER_TOPICS}:{NUMBER_OF_TOPICS}{L_TOPICS_PER_DAY}:{TOPICS_PER_DAY}
    {L_NUMBER_USERS}:{NUMBER_OF_USERS}{L_USERS_PER_DAY}:{USERS_PER_DAY}
    {L_BOARD_STARTED}:{START_DATE}{L_AVATAR_DIR_SIZE}:{AVATAR_DIR_SIZE}
    {L_DB_SIZE}:{DB_SIZE}{L_GZIP_COMPRESSION}:{GZIP_COMPRESSION}
    -

    {L_WHO_IS_ONLINE}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_STARTED}  {L_LAST_UPDATE}  {L_FORUM_LOCATION}  {L_IP_ADDRESS} 
     {reg_user_row.USERNAME}  {reg_user_row.STARTED}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION}  {reg_user_row.IP_ADDRESS} 
    .
     {guest_user_row.USERNAME}  {guest_user_row.STARTED}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION}  {guest_user_row.IP_ADDRESS} 
    - -
    diff --git a/phpBB2_old/templates/subSilver/admin/index_frameset.tpl b/phpBB2_old/templates/subSilver/admin/index_frameset.tpl deleted file mode 100644 index fef79af..0000000 --- a/phpBB2_old/templates/subSilver/admin/index_frameset.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - -phpBB Administration - - - - - - - - - - <body bgcolor="#FFFFFF" text="#000000"> - <p>Sorry, your browser doesn't seem to support frames</p> - </body> - - \ No newline at end of file diff --git a/phpBB2_old/templates/subSilver/admin/index_navigate.tpl b/phpBB2_old/templates/subSilver/admin/index_navigate.tpl deleted file mode 100644 index 5977bdf..0000000 --- a/phpBB2_old/templates/subSilver/admin/index_navigate.tpl +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_ADMIN}
    {L_ADMIN_INDEX}
    {L_FORUM_INDEX}
    {L_PREVIEW_FORUM}
    {catrow.ADMIN_CATEGORY}
    {catrow.modulerow.ADMIN_MODULE} -
    -
    - -
    diff --git a/phpBB2_old/templates/subSilver/admin/page_footer.tpl b/phpBB2_old/templates/subSilver/admin/page_footer.tpl deleted file mode 100644 index 278b360..0000000 --- a/phpBB2_old/templates/subSilver/admin/page_footer.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - -
    Powered by phpBB {PHPBB_VERSION} © 2001 phpBB Group
    {TRANSLATION_INFO}
    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/subSilver/admin/page_header.tpl b/phpBB2_old/templates/subSilver/admin/page_header.tpl deleted file mode 100644 index d273fbd..0000000 --- a/phpBB2_old/templates/subSilver/admin/page_header.tpl +++ /dev/null @@ -1,226 +0,0 @@ - - - -{META} - - - -{SITENAME} - {L_PHPBB_ADMIN} - - - - diff --git a/phpBB2_old/templates/subSilver/admin/ranks_edit_body.tpl b/phpBB2_old/templates/subSilver/admin/ranks_edit_body.tpl deleted file mode 100644 index b3974ea..0000000 --- a/phpBB2_old/templates/subSilver/admin/ranks_edit_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - - - - -
    {L_RANKS_TITLE}
    {L_RANK_TITLE}:
    {L_RANK_SPECIAL}{L_YES}    {L_NO}
    {L_RANK_MINIMUM}:
    {L_RANK_IMAGE}:
    - {L_RANK_IMAGE_EXPLAIN}

    {IMAGE_DISPLAY}
      
    -{S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/subSilver/admin/ranks_list_body.tpl b/phpBB2_old/templates/subSilver/admin/ranks_list_body.tpl deleted file mode 100644 index 368326f..0000000 --- a/phpBB2_old/templates/subSilver/admin/ranks_list_body.tpl +++ /dev/null @@ -1,26 +0,0 @@ - -

    {L_RANKS_TITLE}

    - -

    {L_RANKS_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - - -
    {L_RANK}{L_RANK_MINIMUM}{L_SPECIAL_RANK}{L_EDIT}{L_DELETE}
    {ranks.RANK}{ranks.RANK_MIN}{ranks.SPECIAL_RANK}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2_old/templates/subSilver/admin/smile_edit_body.tpl b/phpBB2_old/templates/subSilver/admin/smile_edit_body.tpl deleted file mode 100644 index b453afc..0000000 --- a/phpBB2_old/templates/subSilver/admin/smile_edit_body.tpl +++ /dev/null @@ -1,34 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - - - -
    - - - - - - - - - - - - - - - - - - -
    {L_SMILEY_CONFIG}
    {L_SMILEY_CODE}
    {L_SMILEY_URL}    
    {L_SMILEY_EMOTION}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/subSilver/admin/smile_import_body.tpl b/phpBB2_old/templates/subSilver/admin/smile_import_body.tpl deleted file mode 100644 index 9881cb1..0000000 --- a/phpBB2_old/templates/subSilver/admin/smile_import_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - -
    {L_SMILEY_IMPORT}
    {L_SELECT_LBL}{S_SMILE_SELECT}
    {L_DEL_EXISTING}
    {L_CONFLICTS}
    {L_REPLACE_EXISTING}   {L_KEEP_EXISTING}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/subSilver/admin/smile_list_body.tpl b/phpBB2_old/templates/subSilver/admin/smile_list_body.tpl deleted file mode 100644 index ae85ad9..0000000 --- a/phpBB2_old/templates/subSilver/admin/smile_list_body.tpl +++ /dev/null @@ -1,25 +0,0 @@ - -

    {L_SMILEY_TITLE}

    - -

    {L_SMILEY_TEXT}

    - -
    - - - - - - - - - - - - - - - - - - -
    {L_CODE}{L_SMILE}{L_EMOT}{L_ACTION}
    {smiles.CODE}{smiles.CODE}{smiles.EMOT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}    
    diff --git a/phpBB2_old/templates/subSilver/admin/styles_addnew_body.tpl b/phpBB2_old/templates/subSilver/admin/styles_addnew_body.tpl deleted file mode 100644 index 6240a79..0000000 --- a/phpBB2_old/templates/subSilver/admin/styles_addnew_body.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_ADD_TEXT}

    - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_ACTION}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_INSTALL}
    diff --git a/phpBB2_old/templates/subSilver/admin/styles_edit_body.tpl b/phpBB2_old/templates/subSilver/admin/styles_edit_body.tpl deleted file mode 100644 index 08cf721..0000000 --- a/phpBB2_old/templates/subSilver/admin/styles_edit_body.tpl +++ /dev/null @@ -1,246 +0,0 @@ - -

    {L_THEMES_TITLE}

    - -

    {L_THEMES_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_THEME_SETTINGS}
    {L_THEME_NAME}:
    {L_TEMPLATE}:{S_TEMPLATE_SELECT}
    {L_THEME_ELEMENT}{L_VALUE}{L_SIMPLE_NAME}
    {L_STYLESHEET}:
    Filename for CSS stylesheet to use for this theme.
     
    {L_BACKGROUND_IMAGE}: 
    {L_BACKGROUND_COLOR}: 
    {L_BODY_TEXT_COLOR}: 
    {L_BODY_LINK_COLOR}: 
    {L_BODY_VLINK_COLOR}: 
    {L_BODY_ALINK_COLOR}: 
    {L_BODY_HLINK_COLOR}: 
    {L_TR_COLOR1}: -
    {L_TR_COLOR2}: -
    {L_TR_COLOR3}: -
    {L_TR_CLASS1}: -
    {L_TR_CLASS2}: -
    {L_TR_CLASS3}: -
    {L_TH_COLOR1}: -
    {L_TH_COLOR2}: -
    {L_TH_COLOR3}: -
    {L_TH_CLASS1}: -
    {L_TH_CLASS2}: -
    {L_TH_CLASS3}: -
    {L_TD_COLOR1}: -
    {L_TD_COLOR2}: -
    {L_TD_COLOR3}: -
    {L_TD_CLASS1}: -
    {L_TD_CLASS2}: -
    {L_TD_CLASS3}: -
    {L_FONTFACE_1}: -
    {L_FONTFACE_2}: -
    {L_FONTFACE_3}: -
    {L_FONTSIZE_1}: -
    {L_FONTSIZE_2}: -
    {L_FONTSIZE_3}: -
    {L_FONTCOLOR_1}: -
    {L_FONTCOLOR_2}: -
    {L_FONTCOLOR_3}: -
    {L_SPAN_CLASS_1}: -
    {L_SPAN_CLASS_2}: -
    {L_SPAN_CLASS_3}: -
    {S_HIDDEN_FIELDS} -
    - -
    diff --git a/phpBB2_old/templates/subSilver/admin/styles_exporter.tpl b/phpBB2_old/templates/subSilver/admin/styles_exporter.tpl deleted file mode 100644 index 2056260..0000000 --- a/phpBB2_old/templates/subSilver/admin/styles_exporter.tpl +++ /dev/null @@ -1,14 +0,0 @@ - -

    {L_STYLE_EXPORTER}

    - -

    {L_EXPORTER_EXPLAIN}

    - -
    - - - - - - - -
    {L_TEMPLATE_SELECT}
    {S_TEMPLATE_SELECT}   
    diff --git a/phpBB2_old/templates/subSilver/admin/styles_list_body.tpl b/phpBB2_old/templates/subSilver/admin/styles_list_body.tpl deleted file mode 100644 index 915fe49..0000000 --- a/phpBB2_old/templates/subSilver/admin/styles_list_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_STYLES_TITLE}

    - -

    {L_STYLES_TEXT}

    - - - - - - - - - - - - - - - - -
    {L_STYLE}{L_TEMPLATE}{L_EDIT}{L_DELETE}
    {styles.STYLE_NAME}{styles.TEMPLATE_NAME}{L_EDIT}{L_DELETE}
    diff --git a/phpBB2_old/templates/subSilver/admin/user_avatar_gallery.tpl b/phpBB2_old/templates/subSilver/admin/user_avatar_gallery.tpl deleted file mode 100644 index db861ee..0000000 --- a/phpBB2_old/templates/subSilver/admin/user_avatar_gallery.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}:  
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/subSilver/admin/user_ban_body.tpl b/phpBB2_old/templates/subSilver/admin/user_ban_body.tpl deleted file mode 100644 index c805f7b..0000000 --- a/phpBB2_old/templates/subSilver/admin/user_ban_body.tpl +++ /dev/null @@ -1,54 +0,0 @@ - -

    {L_BAN_TITLE}

    - -

    {L_BAN_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_BAN_USER}
    {L_USERNAME}: {S_HIDDEN_FIELDS}
    {L_UNBAN_USER}
    {L_USERNAME}:
    {L_UNBAN_USER_EXPLAIN}
    {S_UNBAN_USERLIST_SELECT}
    {L_BAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_BAN_IP_EXPLAIN}
    {L_UNBAN_IP}
    {L_IP_OR_HOSTNAME}:
    {L_UNBAN_IP_EXPLAIN}
    {S_UNBAN_IPLIST_SELECT}
    {L_BAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_BAN_EMAIL_EXPLAIN}
    {L_UNBAN_EMAIL}
    {L_EMAIL_ADDRESS}:
    {L_UNBAN_EMAIL_EXPLAIN}
    {S_UNBAN_EMAILLIST_SELECT}
      
    - -

    {L_BAN_EXPLAIN_WARN}

    diff --git a/phpBB2_old/templates/subSilver/admin/user_edit_body.tpl b/phpBB2_old/templates/subSilver/admin/user_edit_body.tpl deleted file mode 100644 index 359bdeb..0000000 --- a/phpBB2_old/templates/subSilver/admin/user_edit_body.tpl +++ /dev/null @@ -1,310 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -{ERROR_BOX} - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER} - -
    {L_AIM} - -
    {L_MESSENGER} - -
    {L_YAHOO} - -
    {L_WEBSITE} - -
    {L_LOCATION} - -
    {L_OCCUPATION} - -
    {L_INTERESTS} - -
    {L_SIGNATURE}
    - {L_SIGNATURE_EXPLAIN}
    -
    - {HTML_STATUS}
    - {BBCODE_STATUS}
    - {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL} - - {L_YES}   - - {L_NO}
    {L_HIDE_USER} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY} - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML} - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES} - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}{LANGUAGE_SELECT}
    {L_BOARD_STYLE}{STYLE_SELECT}
    {L_TIMEZONE}{TIMEZONE_SELECT}
    {L_DATE_FORMAT}
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    - {AVATAR}
    - -  {L_DELETE_AVATAR}
    -
    {L_UPLOAD_AVATAR_FILE} - - -
    {L_UPLOAD_AVATAR_URL} - -
    {L_LINK_REMOTE_AVATAR} - -
    {L_AVATAR_GALLERY} - -
     
    {L_SPECIAL}
    {L_SPECIAL_EXPLAIN}
    {L_USER_ACTIVE} - - {L_YES}   - - {L_NO}
    {L_ALLOW_PM} - - {L_YES}   - - {L_NO}
    {L_ALLOW_AVATAR} - - {L_YES}   - - {L_NO}
    {L_SELECT_RANK}
    {L_DELETE_USER}? - - {L_DELETE_USER_EXPLAIN}
    {S_HIDDEN_FIELDS} - -    - -
    diff --git a/phpBB2_old/templates/subSilver/admin/user_email_body.tpl b/phpBB2_old/templates/subSilver/admin/user_email_body.tpl deleted file mode 100644 index 5f52658..0000000 --- a/phpBB2_old/templates/subSilver/admin/user_email_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -

    {L_EMAIL_TITLE}

    - -

    {L_EMAIL_EXPLAIN}

    - -
    - -{ERROR_BOX} - - - - - - - - - - - - - - - - - - -
    {L_COMPOSE}
    {L_RECIPIENTS}{S_GROUP_SELECT}
    {L_EMAIL_SUBJECT}
    {L_EMAIL_MSG} - -
    - -
    diff --git a/phpBB2_old/templates/subSilver/admin/user_select_body.tpl b/phpBB2_old/templates/subSilver/admin/user_select_body.tpl deleted file mode 100644 index 5d7a31b..0000000 --- a/phpBB2_old/templates/subSilver/admin/user_select_body.tpl +++ /dev/null @@ -1,13 +0,0 @@ - -

    {L_USER_TITLE}

    - -

    {L_USER_EXPLAIN}

    - -
    - - - - - - -
    {L_USER_SELECT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/subSilver/admin/words_edit_body.tpl b/phpBB2_old/templates/subSilver/admin/words_edit_body.tpl deleted file mode 100644 index 569a94f..0000000 --- a/phpBB2_old/templates/subSilver/admin/words_edit_body.tpl +++ /dev/null @@ -1,21 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - -
    {L_WORD_CENSOR}
    {L_WORD}
    {L_REPLACEMENT}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/subSilver/admin/words_list_body.tpl b/phpBB2_old/templates/subSilver/admin/words_list_body.tpl deleted file mode 100644 index 40acf81..0000000 --- a/phpBB2_old/templates/subSilver/admin/words_list_body.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -

    {L_WORDS_TITLE}

    - -

    {L_WORDS_TEXT}

    - -
    - - - - - - - - - - - - - - - - -
    {L_WORD}{L_REPLACEMENT}{L_ACTION}
    {words.WORD}{words.REPLACEMENT}{L_EDIT}{L_DELETE}
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/templates/subSilver/agreement.tpl b/phpBB2_old/templates/subSilver/agreement.tpl deleted file mode 100644 index 5635a35..0000000 --- a/phpBB2_old/templates/subSilver/agreement.tpl +++ /dev/null @@ -1,19 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - -
    {SITENAME} - {REGISTRATION}
    - - - -

    {AGREEMENT}



    diff --git a/phpBB2_old/templates/subSilver/bbcode.tpl b/phpBB2_old/templates/subSilver/bbcode.tpl deleted file mode 100644 index caef76b..0000000 --- a/phpBB2_old/templates/subSilver/bbcode.tpl +++ /dev/null @@ -1,60 +0,0 @@ -
      -
    - -
      -
    - -
  • - - - - - - - - - -
    {USERNAME} {L_WROTE}:
    - - - - - - - - -
    {L_QUOTE}:
    -
    - - - - - - - - - - -
    {L_CODE}:
    -
    - - - - - - - - - - - - - - - - - - - - -{DESCRIPTION} - -{EMAIL} diff --git a/phpBB2_old/templates/subSilver/confirm_body.tpl b/phpBB2_old/templates/subSilver/confirm_body.tpl deleted file mode 100644 index f79a643..0000000 --- a/phpBB2_old/templates/subSilver/confirm_body.tpl +++ /dev/null @@ -1,17 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}

    {MESSAGE_TEXT}

    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2_old/templates/subSilver/error_body.tpl b/phpBB2_old/templates/subSilver/error_body.tpl deleted file mode 100644 index f211ad0..0000000 --- a/phpBB2_old/templates/subSilver/error_body.tpl +++ /dev/null @@ -1,18 +0,0 @@ - - - - - -
    - - - - - - - - - -
     
    {ERROR_MESSAGE}
     
    - -
    diff --git a/phpBB2_old/templates/subSilver/faq_body.tpl b/phpBB2_old/templates/subSilver/faq_body.tpl deleted file mode 100644 index 9c8a3a8..0000000 --- a/phpBB2_old/templates/subSilver/faq_body.tpl +++ /dev/null @@ -1,52 +0,0 @@ - - - - - -
    - - - - - - - - - - - -
    {L_FAQ_TITLE}
    - - {faq_block_link.BLOCK_TITLE}
    - - {faq_block_link.faq_row_link.FAQ_LINK}
    - -
    - -
     
    - -
    - - - - - - - - - - - - - - -
    {faq_block.BLOCK_TITLE}
    {faq_block.faq_row.FAQ_QUESTION}
    {faq_block.faq_row.FAQ_ANSWER}
    {L_BACK_TO_TOP}
    - -
    - - - - - - -
    {S_TIMEZONE}

    {JUMPBOX}
    diff --git a/phpBB2_old/templates/subSilver/formIE.css b/phpBB2_old/templates/subSilver/formIE.css deleted file mode 100644 index fde54cb..0000000 --- a/phpBB2_old/templates/subSilver/formIE.css +++ /dev/null @@ -1,19 +0,0 @@ -/* Fancy form styles for IE */ - -input, textarea, select { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -input { text-indent : 2px; } - -input.button { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -.postbody { line-height: 18px} diff --git a/phpBB2_old/templates/subSilver/groupcp_info_body.tpl b/phpBB2_old/templates/subSilver/groupcp_info_body.tpl deleted file mode 100644 index 93875fa..0000000 --- a/phpBB2_old/templates/subSilver/groupcp_info_body.tpl +++ /dev/null @@ -1,128 +0,0 @@ - -
    - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_INFORMATION}
    {L_GROUP_NAME}:{GROUP_NAME}
    {L_GROUP_DESC}:{GROUP_DESC}
    {L_GROUP_MEMBERSHIP}:{GROUP_DETAILS}    - - - - - - -
    {L_GROUP_TYPE}: {L_GROUP_OPEN}    {L_GROUP_CLOSED}    {L_GROUP_HIDDEN}   
    - -{S_HIDDEN_FIELDS} - -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_GROUP_MODERATOR}
    {MOD_PM_IMG} {MOD_USERNAME}{MOD_POSTS}{MOD_FROM}{MOD_EMAIL_IMG}{MOD_WWW_IMG}  
    {L_GROUP_MEMBERS}
    {member_row.PM_IMG} {member_row.USERNAME}{member_row.POSTS} {member_row.FROM} - {member_row.EMAIL_IMG} {member_row.WWW_IMG} - - - -
    {L_NO_MEMBERS}
    {L_HIDDEN_MEMBERS}
    - -
    - - - - - - -
    - -

    - - {PAGE_NUMBER}
    {S_TIMEZONE}
    {PAGINATION}
    - -{PENDING_USER_BOX} - -{S_HIDDEN_FIELDS}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/subSilver/groupcp_pending_info.tpl b/phpBB2_old/templates/subSilver/groupcp_pending_info.tpl deleted file mode 100644 index 68f618c..0000000 --- a/phpBB2_old/templates/subSilver/groupcp_pending_info.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PM}{L_USERNAME}{L_POSTS}{L_FROM}{L_EMAIL}{L_WEBSITE}{L_SELECT}
    {L_PENDING_MEMBERS}
    {pending_members_row.PM_IMG} - {pending_members_row.USERNAME}{pending_members_row.POSTS}{pending_members_row.FROM}{pending_members_row.EMAIL_IMG}{pending_members_row.WWW_IMG}
    - -   - -
    diff --git a/phpBB2_old/templates/subSilver/groupcp_user_body.tpl b/phpBB2_old/templates/subSilver/groupcp_user_body.tpl deleted file mode 100644 index 8be36f6..0000000 --- a/phpBB2_old/templates/subSilver/groupcp_user_body.tpl +++ /dev/null @@ -1,76 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_GROUP_MEMBERSHIP_DETAILS}
    {L_YOU_BELONG_GROUPS} - - - - - -
    {GROUP_MEMBER_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_PENDING_GROUPS} - - - - - -
    {GROUP_PENDING_SELECT} - {S_HIDDEN_FIELDS} -
    -
    {L_JOIN_A_GROUP}
    {L_SELECT_A_GROUP} - - - - - -
    {GROUP_LIST_SELECT} - {S_HIDDEN_FIELDS} -
    -
    - - - - - -
    {S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/subSilver/header.tpl b/phpBB2_old/templates/subSilver/header.tpl deleted file mode 100644 index c037df0..0000000 --- a/phpBB2_old/templates/subSilver/header.tpl +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - -
    - - -Home -About me -Forum -News -Pictures -Search - - -
    - - - -
    -
    - diff --git a/phpBB2_old/templates/subSilver/images/cellpic.gif b/phpBB2_old/templates/subSilver/images/cellpic.gif deleted file mode 100755 index 47457ef..0000000 Binary files a/phpBB2_old/templates/subSilver/images/cellpic.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/cellpic1.gif b/phpBB2_old/templates/subSilver/images/cellpic1.gif deleted file mode 100755 index 715b8d4..0000000 Binary files a/phpBB2_old/templates/subSilver/images/cellpic1.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/cellpic2.jpg b/phpBB2_old/templates/subSilver/images/cellpic2.jpg deleted file mode 100755 index a0ca7e8..0000000 Binary files a/phpBB2_old/templates/subSilver/images/cellpic2.jpg and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/cellpic3.gif b/phpBB2_old/templates/subSilver/images/cellpic3.gif deleted file mode 100755 index ecf70e1..0000000 Binary files a/phpBB2_old/templates/subSilver/images/cellpic3.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/created_by.jpg b/phpBB2_old/templates/subSilver/images/created_by.jpg deleted file mode 100755 index f274727..0000000 Binary files a/phpBB2_old/templates/subSilver/images/created_by.jpg and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/folder.gif b/phpBB2_old/templates/subSilver/images/folder.gif deleted file mode 100755 index c16bfa7..0000000 Binary files a/phpBB2_old/templates/subSilver/images/folder.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/folder_announce.gif b/phpBB2_old/templates/subSilver/images/folder_announce.gif deleted file mode 100755 index 0589feb..0000000 Binary files a/phpBB2_old/templates/subSilver/images/folder_announce.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/folder_announce_new.gif b/phpBB2_old/templates/subSilver/images/folder_announce_new.gif deleted file mode 100755 index 56b2702..0000000 Binary files a/phpBB2_old/templates/subSilver/images/folder_announce_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/folder_big.gif b/phpBB2_old/templates/subSilver/images/folder_big.gif deleted file mode 100755 index 9b2bc47..0000000 Binary files a/phpBB2_old/templates/subSilver/images/folder_big.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/folder_hot.gif b/phpBB2_old/templates/subSilver/images/folder_hot.gif deleted file mode 100755 index a7e8831..0000000 Binary files a/phpBB2_old/templates/subSilver/images/folder_hot.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/folder_lock.gif b/phpBB2_old/templates/subSilver/images/folder_lock.gif deleted file mode 100755 index 10eb776..0000000 Binary files a/phpBB2_old/templates/subSilver/images/folder_lock.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/folder_lock_new.gif b/phpBB2_old/templates/subSilver/images/folder_lock_new.gif deleted file mode 100755 index 720e210..0000000 Binary files a/phpBB2_old/templates/subSilver/images/folder_lock_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/folder_locked_big.gif b/phpBB2_old/templates/subSilver/images/folder_locked_big.gif deleted file mode 100755 index 436f3d2..0000000 Binary files a/phpBB2_old/templates/subSilver/images/folder_locked_big.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/folder_new.gif b/phpBB2_old/templates/subSilver/images/folder_new.gif deleted file mode 100755 index 4e56157..0000000 Binary files a/phpBB2_old/templates/subSilver/images/folder_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/folder_new_big.gif b/phpBB2_old/templates/subSilver/images/folder_new_big.gif deleted file mode 100755 index 5eec565..0000000 Binary files a/phpBB2_old/templates/subSilver/images/folder_new_big.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/folder_new_hot.gif b/phpBB2_old/templates/subSilver/images/folder_new_hot.gif deleted file mode 100755 index 25ced64..0000000 Binary files a/phpBB2_old/templates/subSilver/images/folder_new_hot.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/folder_sticky.gif b/phpBB2_old/templates/subSilver/images/folder_sticky.gif deleted file mode 100755 index 09861a9..0000000 Binary files a/phpBB2_old/templates/subSilver/images/folder_sticky.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/folder_sticky_new.gif b/phpBB2_old/templates/subSilver/images/folder_sticky_new.gif deleted file mode 100755 index dd2e366..0000000 Binary files a/phpBB2_old/templates/subSilver/images/folder_sticky_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/icon_delete.gif b/phpBB2_old/templates/subSilver/images/icon_delete.gif deleted file mode 100755 index 1153ba5..0000000 Binary files a/phpBB2_old/templates/subSilver/images/icon_delete.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/icon_latest_reply.gif b/phpBB2_old/templates/subSilver/images/icon_latest_reply.gif deleted file mode 100755 index b45e57a..0000000 Binary files a/phpBB2_old/templates/subSilver/images/icon_latest_reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/icon_mini_faq.gif b/phpBB2_old/templates/subSilver/images/icon_mini_faq.gif deleted file mode 100755 index b8b873d..0000000 Binary files a/phpBB2_old/templates/subSilver/images/icon_mini_faq.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/icon_mini_groups.gif b/phpBB2_old/templates/subSilver/images/icon_mini_groups.gif deleted file mode 100755 index be5c201..0000000 Binary files a/phpBB2_old/templates/subSilver/images/icon_mini_groups.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/icon_mini_login.gif b/phpBB2_old/templates/subSilver/images/icon_mini_login.gif deleted file mode 100755 index 30b309b..0000000 Binary files a/phpBB2_old/templates/subSilver/images/icon_mini_login.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/icon_mini_members.gif b/phpBB2_old/templates/subSilver/images/icon_mini_members.gif deleted file mode 100755 index a79a5a7..0000000 Binary files a/phpBB2_old/templates/subSilver/images/icon_mini_members.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/icon_mini_message.gif b/phpBB2_old/templates/subSilver/images/icon_mini_message.gif deleted file mode 100755 index 57071d6..0000000 Binary files a/phpBB2_old/templates/subSilver/images/icon_mini_message.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/icon_mini_profile.gif b/phpBB2_old/templates/subSilver/images/icon_mini_profile.gif deleted file mode 100755 index 3dc0871..0000000 Binary files a/phpBB2_old/templates/subSilver/images/icon_mini_profile.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/icon_mini_register.gif b/phpBB2_old/templates/subSilver/images/icon_mini_register.gif deleted file mode 100755 index 11b8f31..0000000 Binary files a/phpBB2_old/templates/subSilver/images/icon_mini_register.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/icon_mini_search.gif b/phpBB2_old/templates/subSilver/images/icon_mini_search.gif deleted file mode 100755 index 1295e9f..0000000 Binary files a/phpBB2_old/templates/subSilver/images/icon_mini_search.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/icon_minipost.gif b/phpBB2_old/templates/subSilver/images/icon_minipost.gif deleted file mode 100755 index d172abb..0000000 Binary files a/phpBB2_old/templates/subSilver/images/icon_minipost.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/icon_minipost_new.gif b/phpBB2_old/templates/subSilver/images/icon_minipost_new.gif deleted file mode 100755 index 8ec44a1..0000000 Binary files a/phpBB2_old/templates/subSilver/images/icon_minipost_new.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/icon_newest_reply.gif b/phpBB2_old/templates/subSilver/images/icon_newest_reply.gif deleted file mode 100755 index eca2861..0000000 Binary files a/phpBB2_old/templates/subSilver/images/icon_newest_reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/index.htm b/phpBB2_old/templates/subSilver/images/index.htm deleted file mode 100755 index 491b26d..0000000 --- a/phpBB2_old/templates/subSilver/images/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -subSilver created by subBlue Design - - - - - - - - - -
    Created by subBlue Design
    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/subSilver/images/lang_english/icon_aim.gif b/phpBB2_old/templates/subSilver/images/lang_english/icon_aim.gif deleted file mode 100755 index 4b6a858..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/icon_aim.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/lang_english/icon_edit.gif b/phpBB2_old/templates/subSilver/images/lang_english/icon_edit.gif deleted file mode 100755 index bb70004..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/icon_edit.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/lang_english/icon_email.gif b/phpBB2_old/templates/subSilver/images/lang_english/icon_email.gif deleted file mode 100755 index 3d359c2..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/icon_email.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/lang_english/icon_icq_add.gif b/phpBB2_old/templates/subSilver/images/lang_english/icon_icq_add.gif deleted file mode 100755 index 4bf276d..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/icon_icq_add.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/lang_english/icon_ip.gif b/phpBB2_old/templates/subSilver/images/lang_english/icon_ip.gif deleted file mode 100755 index bf17a51..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/icon_ip.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/lang_english/icon_msnm.gif b/phpBB2_old/templates/subSilver/images/lang_english/icon_msnm.gif deleted file mode 100755 index 6518415..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/icon_msnm.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/lang_english/icon_pm.gif b/phpBB2_old/templates/subSilver/images/lang_english/icon_pm.gif deleted file mode 100755 index f87b4f5..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/icon_pm.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/lang_english/icon_profile.gif b/phpBB2_old/templates/subSilver/images/lang_english/icon_profile.gif deleted file mode 100755 index 2bd32d2..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/icon_profile.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/lang_english/icon_quote.gif b/phpBB2_old/templates/subSilver/images/lang_english/icon_quote.gif deleted file mode 100755 index 3dec675..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/icon_quote.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/lang_english/icon_search.gif b/phpBB2_old/templates/subSilver/images/lang_english/icon_search.gif deleted file mode 100755 index 8dd38a3..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/icon_search.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/lang_english/icon_www.gif b/phpBB2_old/templates/subSilver/images/lang_english/icon_www.gif deleted file mode 100755 index 8c1731f..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/icon_www.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/lang_english/icon_yim.gif b/phpBB2_old/templates/subSilver/images/lang_english/icon_yim.gif deleted file mode 100755 index 57e75b3..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/icon_yim.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/lang_english/msg_newpost.gif b/phpBB2_old/templates/subSilver/images/lang_english/msg_newpost.gif deleted file mode 100755 index ce2c1a8..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/msg_newpost.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/lang_english/post.gif b/phpBB2_old/templates/subSilver/images/lang_english/post.gif deleted file mode 100755 index 4b7cb20..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/post.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/lang_english/reply-locked.gif b/phpBB2_old/templates/subSilver/images/lang_english/reply-locked.gif deleted file mode 100755 index 5ab1d7a..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/reply-locked.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/lang_english/reply.gif b/phpBB2_old/templates/subSilver/images/lang_english/reply.gif deleted file mode 100755 index cb385af..0000000 Binary files a/phpBB2_old/templates/subSilver/images/lang_english/reply.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/logo_phpBB.gif b/phpBB2_old/templates/subSilver/images/logo_phpBB.gif deleted file mode 100755 index 37aa0fd..0000000 Binary files a/phpBB2_old/templates/subSilver/images/logo_phpBB.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/logo_phpBB_med.gif b/phpBB2_old/templates/subSilver/images/logo_phpBB_med.gif deleted file mode 100755 index 3d84f94..0000000 Binary files a/phpBB2_old/templates/subSilver/images/logo_phpBB_med.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/msg_inbox.gif b/phpBB2_old/templates/subSilver/images/msg_inbox.gif deleted file mode 100755 index 011d0bd..0000000 Binary files a/phpBB2_old/templates/subSilver/images/msg_inbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/msg_outbox.gif b/phpBB2_old/templates/subSilver/images/msg_outbox.gif deleted file mode 100755 index 84fdce3..0000000 Binary files a/phpBB2_old/templates/subSilver/images/msg_outbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/msg_savebox.gif b/phpBB2_old/templates/subSilver/images/msg_savebox.gif deleted file mode 100755 index 86d1f2c..0000000 Binary files a/phpBB2_old/templates/subSilver/images/msg_savebox.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/msg_sentbox.gif b/phpBB2_old/templates/subSilver/images/msg_sentbox.gif deleted file mode 100755 index b95db75..0000000 Binary files a/phpBB2_old/templates/subSilver/images/msg_sentbox.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/spacer.gif b/phpBB2_old/templates/subSilver/images/spacer.gif deleted file mode 100755 index 5bfd67a..0000000 Binary files a/phpBB2_old/templates/subSilver/images/spacer.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/topic_delete.gif b/phpBB2_old/templates/subSilver/images/topic_delete.gif deleted file mode 100755 index 3b21b11..0000000 Binary files a/phpBB2_old/templates/subSilver/images/topic_delete.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/topic_lock.gif b/phpBB2_old/templates/subSilver/images/topic_lock.gif deleted file mode 100755 index fe32fea..0000000 Binary files a/phpBB2_old/templates/subSilver/images/topic_lock.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/topic_move.gif b/phpBB2_old/templates/subSilver/images/topic_move.gif deleted file mode 100755 index ab2fd23..0000000 Binary files a/phpBB2_old/templates/subSilver/images/topic_move.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/topic_split.gif b/phpBB2_old/templates/subSilver/images/topic_split.gif deleted file mode 100755 index bdbc884..0000000 Binary files a/phpBB2_old/templates/subSilver/images/topic_split.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/topic_unlock.gif b/phpBB2_old/templates/subSilver/images/topic_unlock.gif deleted file mode 100755 index dae3e4d..0000000 Binary files a/phpBB2_old/templates/subSilver/images/topic_unlock.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/vote_lcap.gif b/phpBB2_old/templates/subSilver/images/vote_lcap.gif deleted file mode 100755 index 269088b..0000000 Binary files a/phpBB2_old/templates/subSilver/images/vote_lcap.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/vote_rcap.gif b/phpBB2_old/templates/subSilver/images/vote_rcap.gif deleted file mode 100755 index f9584e2..0000000 Binary files a/phpBB2_old/templates/subSilver/images/vote_rcap.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/voting_bar.gif b/phpBB2_old/templates/subSilver/images/voting_bar.gif deleted file mode 100755 index 9947315..0000000 Binary files a/phpBB2_old/templates/subSilver/images/voting_bar.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/images/whosonline.gif b/phpBB2_old/templates/subSilver/images/whosonline.gif deleted file mode 100755 index b450927..0000000 Binary files a/phpBB2_old/templates/subSilver/images/whosonline.gif and /dev/null differ diff --git a/phpBB2_old/templates/subSilver/index.htm b/phpBB2_old/templates/subSilver/index.htm deleted file mode 100644 index 79908c5..0000000 --- a/phpBB2_old/templates/subSilver/index.htm +++ /dev/null @@ -1,16 +0,0 @@ - - -subSilver created by subBlue Design - - - - - - - - - -
    Created by subBlue Design
    - - - \ No newline at end of file diff --git a/phpBB2_old/templates/subSilver/index_body.tpl b/phpBB2_old/templates/subSilver/index_body.tpl deleted file mode 100644 index 86da30d..0000000 --- a/phpBB2_old/templates/subSilver/index_body.tpl +++ /dev/null @@ -1,103 +0,0 @@ - - - - - -
    - - {LAST_VISIT_DATE}
    - - {CURRENT_TIME}
    {L_INDEX}
    - - {L_SEARCH_NEW}
    {L_SEARCH_SELF}
    - - {L_SEARCH_UNANSWERED}
    - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FORUM}  {L_TOPICS}  {L_POSTS}  {L_LASTPOST} 
    {catrow.CAT_DESC} 
    {catrow.forumrow.L_FORUM_FOLDER_ALT} {catrow.forumrow.FORUM_NAME}
    -
    {catrow.forumrow.FORUM_DESC}
    -
    {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
    {catrow.forumrow.TOPICS}{catrow.forumrow.POSTS} {catrow.forumrow.LAST_POST}
    - - - - - - -
    {L_MARK_FORUMS_READ}{S_TIMEZONE}
    - - - - - - - - - - - - -
    {L_WHO_IS_ONLINE}
    {L_WHO_IS_ONLINE}{TOTAL_POSTS}
    {TOTAL_USERS}
    {NEWEST_USER}
    -
    {TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
    {RECORD_USERS}
    {LOGGED_IN_USER_LIST}
    - - - - - -
    {L_ONLINE_EXPLAIN}
    - - -
    - - - - - - - -
    {L_LOGIN_LOGOUT}
    {L_USERNAME}: - -    {L_PASSWORD}: - -      {L_AUTO_LOGIN} - -     - -
    -
    - - -
    - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_FORUM_LOCKED}{L_FORUM_LOCKED}
    diff --git a/phpBB2_old/templates/subSilver/jumpbox.tpl b/phpBB2_old/templates/subSilver/jumpbox.tpl deleted file mode 100644 index 2000e92..0000000 --- a/phpBB2_old/templates/subSilver/jumpbox.tpl +++ /dev/null @@ -1,6 +0,0 @@ - -
    - - - -
    {L_JUMP_TO}: {S_JUMPBOX_SELECT} 
    diff --git a/phpBB2_old/templates/subSilver/login_body.tpl b/phpBB2_old/templates/subSilver/login_body.tpl deleted file mode 100644 index a08e403..0000000 --- a/phpBB2_old/templates/subSilver/login_body.tpl +++ /dev/null @@ -1,44 +0,0 @@ - -
    - - - - - -
    - - - - - - - - -
    {L_ENTER_PASSWORD}
    - - - - - - - - - - - - - - - - - - - - -
     
    {L_USERNAME}: - -
    {L_PASSWORD}: - -
    {L_AUTO_LOGIN}:
    {S_HIDDEN_FIELDS}
    {L_SEND_PASSWORD}
    - -
    diff --git a/phpBB2_old/templates/subSilver/memberlist_body.tpl b/phpBB2_old/templates/subSilver/memberlist_body.tpl deleted file mode 100644 index af1340d..0000000 --- a/phpBB2_old/templates/subSilver/memberlist_body.tpl +++ /dev/null @@ -1,55 +0,0 @@ - -
    - - - - - -
    {L_INDEX}{L_SELECT_SORT_METHOD}: {S_MODE_SELECT}  {L_ORDER} {S_ORDER_SELECT}   - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    # {L_USERNAME}{L_EMAIL}{L_FROM}{L_JOINED}{L_POSTS}{L_WEBSITE}
     {memberrow.ROW_NUMBER}  {memberrow.PM_IMG} {memberrow.USERNAME} {memberrow.EMAIL_IMG} {memberrow.FROM}{memberrow.JOINED}{memberrow.POSTS} {memberrow.WWW_IMG} 
     
    - - - - -
    - - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/subSilver/message_body.tpl b/phpBB2_old/templates/subSilver/message_body.tpl deleted file mode 100644 index 6be7f51..0000000 --- a/phpBB2_old/templates/subSilver/message_body.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - -
    - - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - -
     
    {MESSAGE_TEXT}
     
    - -
    diff --git a/phpBB2_old/templates/subSilver/modcp_body.tpl b/phpBB2_old/templates/subSilver/modcp_body.tpl deleted file mode 100644 index fd0fe1b..0000000 --- a/phpBB2_old/templates/subSilver/modcp_body.tpl +++ /dev/null @@ -1,58 +0,0 @@ - -
    - - - - -
    {L_INDEX} -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_MOD_CP} -
    {L_MOD_CP_EXPLAIN}
      {L_TOPICS}  {L_REPLIES}  {L_LASTPOST}  {L_SELECT} 
    {topicrow.L_TOPIC_FOLDER_ALT} {topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}{topicrow.REPLIES}{topicrow.LAST_POST_TIME} - -
    {S_HIDDEN_FIELDS} - -   - -   - -   - -
    - - - - - -
    {PAGE_NUMBER}{S_TIMEZONE}
    {PAGINATION}
    -
    - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/subSilver/modcp_move.tpl b/phpBB2_old/templates/subSilver/modcp_move.tpl deleted file mode 100644 index 730952c..0000000 --- a/phpBB2_old/templates/subSilver/modcp_move.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - - -
     
    {L_MOVE_TO_FORUM}   {S_FORUM_SELECT}

    - {L_LEAVESHADOW}
    -
    - {MESSAGE_TEXT}

    -
    - {S_HIDDEN_FIELDS} - -    - -
     
    -
    -
    diff --git a/phpBB2_old/templates/subSilver/modcp_split.tpl b/phpBB2_old/templates/subSilver/modcp_split.tpl deleted file mode 100644 index c8be76a..0000000 --- a/phpBB2_old/templates/subSilver/modcp_split.tpl +++ /dev/null @@ -1,85 +0,0 @@ - -
    - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SPLIT_TOPIC}
    {L_SPLIT_TOPIC_EXPLAIN}
    {L_SPLIT_SUBJECT}
    {L_SPLIT_FORUM}{S_FORUM_SELECT}
    - - - - - -
    - - - -
    -
    {L_AUTHOR}{L_MESSAGE}{L_SELECT}
    {postrow.POSTER_NAME} - - - - - - - -
    {L_POST}{L_POSTED}: - {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}
    -
    - {postrow.MESSAGE}
    -
    {postrow.S_SPLIT_CHECKBOX}
    .
    - - - - - -
    - - - - {S_HIDDEN_FIELDS}
    -
    - - - - -
    {S_TIMEZONE}
    -
    diff --git a/phpBB2_old/templates/subSilver/modcp_viewip.tpl b/phpBB2_old/templates/subSilver/modcp_viewip.tpl deleted file mode 100644 index d497d88..0000000 --- a/phpBB2_old/templates/subSilver/modcp_viewip.tpl +++ /dev/null @@ -1,58 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_IP_INFO}
    {L_THIS_POST_IP}
    - - - - - -
     {IP} [ {POSTS} ][ {L_LOOKUP_IP} - ] 
    -
    {L_OTHER_USERS}
    - - - - - -
     {userrow.USERNAME} [ {userrow.POSTS} ]{L_SEARCH} -  
    -
    {L_OTHER_IPS}
    - - - - -
     {iprow.IP} [ {iprow.POSTS} ][ {L_LOOKUP_IP} - ] 
    - -
    diff --git a/phpBB2_old/templates/subSilver/overall_footer.tpl b/phpBB2_old/templates/subSilver/overall_footer.tpl deleted file mode 100644 index 91ad361..0000000 --- a/phpBB2_old/templates/subSilver/overall_footer.tpl +++ /dev/null @@ -1,20 +0,0 @@ - -

    {ADMIN_LINK}
    - -
    -Powered by phpBB {PHPBB_VERSION} © 2001, 2002 phpBB Group
    {TRANSLATION_INFO}
    -
    - - - diff --git a/phpBB2_old/templates/subSilver/overall_header.tpl b/phpBB2_old/templates/subSilver/overall_header.tpl deleted file mode 100644 index ac2c531..0000000 --- a/phpBB2_old/templates/subSilver/overall_header.tpl +++ /dev/null @@ -1,257 +0,0 @@ - - - - - -{META} -{NAV_LINKS} -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/phpBB2_old/templates/subSilver/posting_preview.tpl b/phpBB2_old/templates/subSilver/posting_preview.tpl deleted file mode 100644 index 8da3409..0000000 --- a/phpBB2_old/templates/subSilver/posting_preview.tpl +++ /dev/null @@ -1,23 +0,0 @@ - -
    - - - - -
    - - - - - - - - -
     {L_FAQ}{L_FAQ}   {L_SEARCH}{L_SEARCH}   {L_MEMBERLIST}{L_MEMBERLIST}   {L_USERGROUPS}{L_USERGROUPS}  - -  {L_REGISTER}{L_REGISTER}  - -
     {L_PROFILE}{L_PROFILE}   {PRIVATE_MESSAGE_INFO}{PRIVATE_MESSAGE_INFO}   {L_LOGIN_LOGOUT}{L_LOGIN_LOGOUT} 
    - -
    diff --git a/phpBB2_old/templates/subSilver/posting_body.tpl b/phpBB2_old/templates/subSilver/posting_body.tpl deleted file mode 100644 index e8700a5..0000000 --- a/phpBB2_old/templates/subSilver/posting_body.tpl +++ /dev/null @@ -1,481 +0,0 @@ - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX_LINK}  {SENTBOX_IMG}{SENTBOX_LINK}  {OUTBOX_IMG}{OUTBOX_LINK}  {SAVEBOX_IMG}{SAVEBOX_LINK}  
    -
    - -
    - - -
    - -{POST_PREVIEW_BOX} -{ERROR_BOX} - - - - - - -
    {L_INDEX} - - -> {FORUM_NAME}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {POLLBOX} - - - -
    {L_POST_A}
    {L_USERNAME}
    {L_USERNAME} 
    {L_SUBJECT} - -
    - - - - - - - -
    {L_MESSAGE_BODY}

    - - - - - - - - - - - - - - - - -
    {L_EMOTICONS}
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}
    -
    -
    - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - - - -
    - - - - - -
     {L_FONT_COLOR}: -  {L_FONT_SIZE}: - {L_BBCODE_CLOSE_TAGS}
    -
    - -
    - -
    -
    {L_OPTIONS}
    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - {L_DISABLE_HTML}
    - - {L_DISABLE_BBCODE}
    - - {L_DISABLE_SMILIES}
    - - {L_ATTACH_SIGNATURE}
    - - {L_NOTIFY_ON_REPLY}
    - - {L_DELETE_POST}
    {S_TYPE_TOGGLE}
    -
    {S_HIDDEN_FORM_FIELDS} 
    - - - - - -
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    - -{TOPIC_REVIEW_BOX} diff --git a/phpBB2_old/templates/subSilver/posting_poll_body.tpl b/phpBB2_old/templates/subSilver/posting_poll_body.tpl deleted file mode 100644 index 4391393..0000000 --- a/phpBB2_old/templates/subSilver/posting_poll_body.tpl +++ /dev/null @@ -1,31 +0,0 @@ - -
    {L_ADD_A_POLL}
    {L_ADD_POLL_EXPLAIN}
    {L_POLL_QUESTION}
    {L_POLL_OPTION}  
    {L_POLL_OPTION}  
    {L_POLL_LENGTH} {L_DAYS}   {L_POLL_LENGTH_EXPLAIN}
    {L_POLL_DELETE}
    - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_POST}{L_POSTED}: {POST_DATE}     {L_POST_SUBJECT}: {POST_SUBJECT}
    - - - -
    - {MESSAGE} -
    - -
    diff --git a/phpBB2_old/templates/subSilver/posting_smilies.tpl b/phpBB2_old/templates/subSilver/posting_smilies.tpl deleted file mode 100644 index 7028535..0000000 --- a/phpBB2_old/templates/subSilver/posting_smilies.tpl +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - -
    - - - - - - - - - -
    {L_EMOTICONS}
    - - - - - - - - - - - - -
    {smilies_row.smilies_col.SMILEY_DESC}
    {L_MORE_SMILIES}

    {L_CLOSE_WINDOW}
    diff --git a/phpBB2_old/templates/subSilver/posting_topic_review.tpl b/phpBB2_old/templates/subSilver/posting_topic_review.tpl deleted file mode 100644 index 7b8960c..0000000 --- a/phpBB2_old/templates/subSilver/posting_topic_review.tpl +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - -
    {L_TOPIC_REVIEW}
    - diff --git a/phpBB2_old/templates/subSilver/privmsgs_body.tpl b/phpBB2_old/templates/subSilver/privmsgs_body.tpl deleted file mode 100644 index 3c221c5..0000000 --- a/phpBB2_old/templates/subSilver/privmsgs_body.tpl +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - -
    - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}  
    -
    - - - - - - - - - - - - - -
    {BOX_SIZE_STATUS}
    - - - - -
    {INBOX_LIMIT_PERCENT}
    -
    0%50%100%
    - -
    - -
    - -
    - - - - - - -
    {POST_PM_IMG} {L_INDEX}{L_DISPLAY_MESSAGES}: - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FLAG}  {L_SUBJECT}  {L_FROM_OR_TO}  {L_DATE}  {L_MARK} 
    {listrow.L_PRIVMSG_FOLDER_ALT} {listrow.SUBJECT} {listrow.FROM}{listrow.DATE} - -
    {L_NO_MESSAGES}
    {S_HIDDEN_FIELDS} - -   - -   - -
    - - - - - - - -
    {POST_PM_IMG}{PAGE_NUMBER}{L_MARK_ALL} :: {L_UNMARK_ALL}
    {PAGINATION}
    {S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/subSilver/privmsgs_popup.tpl b/phpBB2_old/templates/subSilver/privmsgs_popup.tpl deleted file mode 100644 index e48205b..0000000 --- a/phpBB2_old/templates/subSilver/privmsgs_popup.tpl +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - -
    - - - - -

    {L_MESSAGE}

    {L_CLOSE_WINDOW}

    -
    diff --git a/phpBB2_old/templates/subSilver/privmsgs_preview.tpl b/phpBB2_old/templates/subSilver/privmsgs_preview.tpl deleted file mode 100644 index ba2ed93..0000000 --- a/phpBB2_old/templates/subSilver/privmsgs_preview.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_PREVIEW}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT}
    {MESSAGE}
    - -
    diff --git a/phpBB2_old/templates/subSilver/privmsgs_read_body.tpl b/phpBB2_old/templates/subSilver/privmsgs_read_body.tpl deleted file mode 100644 index 3c85e6a..0000000 --- a/phpBB2_old/templates/subSilver/privmsgs_read_body.tpl +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - -
    {INBOX_IMG}{INBOX}  {SENTBOX_IMG}{SENTBOX}  {OUTBOX_IMG}{OUTBOX}  {SAVEBOX_IMG}{SAVEBOX}
    - -
    - -
    - - - - - -
    {REPLY_PM_IMG} {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {BOX_NAME} :: {L_MESSAGE}
    {L_FROM}:{MESSAGE_FROM}
    {L_TO}:{MESSAGE_TO}
    {L_POSTED}:{POST_DATE}
    {L_SUBJECT}:{POST_SUBJECT} {QUOTE_PM_IMG} {EDIT_PM_IMG}
    {MESSAGE}
    - - - - -
    {PROFILE_IMG} {PM_IMG} {EMAIL_IMG} - {WWW_IMG} {AIM_IMG} {YIM_IMG} {MSN_IMG} 
    -
    {S_HIDDEN_FIELDS} - -   - -
    - - - - - -
    {REPLY_PM_IMG}{S_TIMEZONE}
    -
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/subSilver/profile_add_body.tpl b/phpBB2_old/templates/subSilver/profile_add_body.tpl deleted file mode 100644 index ede3217..0000000 --- a/phpBB2_old/templates/subSilver/profile_add_body.tpl +++ /dev/null @@ -1,274 +0,0 @@ - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: *{USERNAME}
    {L_USERNAME}: *
    {L_EMAIL_ADDRESS}: *
    {L_CURRENT_PASSWORD}: *
    - {L_CONFIRM_PASSWORD_EXPLAIN}
    - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
    {L_CONFIRM_CODE_IMPAIRED}

    {CONFIRM_IMG}

    {L_CONFIRM_CODE}: *
    {L_CONFIRM_CODE_EXPLAIN}
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER}: - -
    {L_AIM}: - -
    {L_MESSENGER}: - -
    {L_YAHOO}: - -
    {L_WEBSITE}: - -
    {L_LOCATION}: - -
    {L_OCCUPATION}: - -
    {L_INTERESTS}: - -
    {L_SIGNATURE}:
    {L_SIGNATURE_EXPLAIN}

    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL}: - - {L_YES}   - - {L_NO}
    {L_HIDE_USER}: - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY}:
    - {L_NOTIFY_ON_REPLY_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG}: - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG}:
    {L_POPUP_ON_PRIVMSG_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES}: - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}:{LANGUAGE_SELECT}
    {L_BOARD_STYLE}:{STYLE_SELECT}
    {L_TIMEZONE}:{TIMEZONE_SELECT}
    {L_DATE_FORMAT}:
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    {AVATAR}
     {L_DELETE_AVATAR}
    {L_UPLOAD_AVATAR_FILE}:
    {L_UPLOAD_AVATAR_URL}:
    {L_UPLOAD_AVATAR_URL_EXPLAIN}
    {L_LINK_REMOTE_AVATAR}:
    {L_LINK_REMOTE_AVATAR_EXPLAIN}
    {L_AVATAR_GALLERY}:
    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2_old/templates/subSilver/profile_avatar_gallery.tpl b/phpBB2_old/templates/subSilver/profile_avatar_gallery.tpl deleted file mode 100644 index 9be5375..0000000 --- a/phpBB2_old/templates/subSilver/profile_avatar_gallery.tpl +++ /dev/null @@ -1,37 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_AVATAR_GALLERY}
    {L_CATEGORY}: {S_CATEGORY_SELECT} 
    {avatar_row.avatar_column.AVATAR_NAME}
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/subSilver/profile_send_email.tpl b/phpBB2_old/templates/subSilver/profile_send_email.tpl deleted file mode 100644 index 86c28cb..0000000 --- a/phpBB2_old/templates/subSilver/profile_send_email.tpl +++ /dev/null @@ -1,74 +0,0 @@ - - - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEND_EMAIL_MSG}
    {L_RECIPIENT}{USERNAME}
    {L_SUBJECT}
    {L_MESSAGE_BODY}
    {L_MESSAGE_BODY_DESC}
    {L_OPTIONS} - - - - -
    {L_CC_EMAIL}
    {S_HIDDEN_FIELDS}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/subSilver/profile_send_pass.tpl b/phpBB2_old/templates/subSilver/profile_send_pass.tpl deleted file mode 100644 index 8d31aa4..0000000 --- a/phpBB2_old/templates/subSilver/profile_send_pass.tpl +++ /dev/null @@ -1,35 +0,0 @@ - -
    - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - -
    {L_SEND_PASSWORD}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: * - -
    {L_EMAIL_ADDRESS}: * - -
    {S_HIDDEN_FIELDS} - -    - -
    -
    diff --git a/phpBB2_old/templates/subSilver/profile_view_body.tpl b/phpBB2_old/templates/subSilver/profile_view_body.tpl deleted file mode 100644 index a9c3c6f..0000000 --- a/phpBB2_old/templates/subSilver/profile_view_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - -
    {L_VIEWING_PROFILE}
    {L_AVATAR}{L_ABOUT_USER}
    {AVATAR_IMG}
    {POSTER_RANK}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_JOINED}: {JOINED}
    {L_TOTAL_POSTS}: {POSTS}
    [{POST_PERCENT_STATS} / {POST_DAY_STATS}]
    {L_SEARCH_USER_POSTS}
    {L_LOCATION}: {LOCATION}
    {L_WEBSITE}: {WWW}
    {L_OCCUPATION}: {OCCUPATION}
    {L_INTERESTS}: {INTERESTS}
    -
    {L_CONTACT} {USERNAME}
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_EMAIL_ADDRESS}:{EMAIL_IMG}
    {L_PM}:{PM_IMG}
    {L_MESSENGER}:{MSN}
    {L_YAHOO}:{YIM_IMG}
    {L_AIM}:{AIM_IMG}
    {L_ICQ_NUMBER}:
    -
    - - - - - -

    {JUMPBOX}
    diff --git a/phpBB2_old/templates/subSilver/search_body.tpl b/phpBB2_old/templates/subSilver/search_body.tpl deleted file mode 100644 index d1316df..0000000 --- a/phpBB2_old/templates/subSilver/search_body.tpl +++ /dev/null @@ -1,57 +0,0 @@ - -
    - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_SEARCH_QUERY}
    {L_SEARCH_KEYWORDS}:
    {L_SEARCH_KEYWORDS_EXPLAIN}

    {L_SEARCH_ANY_TERMS}
    {L_SEARCH_ALL_TERMS}
    {L_SEARCH_AUTHOR}:
    {L_SEARCH_AUTHOR_EXPLAIN}
    {L_SEARCH_OPTIONS}
    {L_FORUM}: {L_SEARCH_PREVIOUS}: 
    {L_SEARCH_MESSAGE_TITLE}
    {L_SEARCH_MESSAGE_ONLY}
    {L_CATEGORY}: {L_SORT_BY}: 
    {L_SORT_ASCENDING}
    {L_SORT_DESCENDING}
     
    {L_DISPLAY_RESULTS}: {L_POSTS}{L_TOPICS}{L_RETURN_FIRST} {L_CHARACTERS}
    {S_HIDDEN_FIELDS}
    - - - - - -
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/subSilver/search_results_posts.tpl b/phpBB2_old/templates/subSilver/search_results_posts.tpl deleted file mode 100644 index d41d938..0000000 --- a/phpBB2_old/templates/subSilver/search_results_posts.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - -
    {L_AUTHOR}{L_MESSAGE}
      {L_TOPIC}: {searchresults.TOPIC_TITLE}
    {searchresults.POSTER_NAME}
    -
    - {L_REPLIES}: {searchresults.TOPIC_REPLIES}
    - {L_VIEWS}: {searchresults.TOPIC_VIEWS}

    -
    {searchresults.L_MINI_POST_ALT}{L_FORUM}: {searchresults.FORUM_NAME}   {L_POSTED}: {searchresults.POST_DATE}   {L_SUBJECT}: {searchresults.POST_SUBJECT}
    {searchresults.MESSAGE}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/subSilver/search_results_topics.tpl b/phpBB2_old/templates/subSilver/search_results_topics.tpl deleted file mode 100644 index d628e01..0000000 --- a/phpBB2_old/templates/subSilver/search_results_topics.tpl +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -
    {L_SEARCH_MATCHES}
    - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - -
      {L_FORUM}  {L_TOPICS}  {L_AUTHOR}  {L_REPLIES}  {L_VIEWS}  {L_LASTPOST} 
    {searchresults.L_TOPIC_FOLDER_ALT}{searchresults.FORUM_NAME}{searchresults.NEWEST_POST_IMG}{searchresults.TOPIC_TYPE}{searchresults.TOPIC_TITLE}
    {searchresults.GOTO_PAGE}
    {searchresults.TOPIC_AUTHOR}{searchresults.REPLIES}{searchresults.VIEWS}{searchresults.LAST_POST_TIME}
    {searchresults.LAST_POST_AUTHOR} {searchresults.LAST_POST_IMG}
     
    - - - - - - -
    {PAGE_NUMBER}{PAGINATION}
    {S_TIMEZONE}
    - - - - - -
    {JUMPBOX}
    diff --git a/phpBB2_old/templates/subSilver/search_username.tpl b/phpBB2_old/templates/subSilver/search_username.tpl deleted file mode 100644 index 611ec3f..0000000 --- a/phpBB2_old/templates/subSilver/search_username.tpl +++ /dev/null @@ -1,30 +0,0 @@ - - - -
    - - - - -
    - - - - - - -
    {L_SEARCH_USERNAME}

     

    {L_SEARCH_EXPLAIN}
    - - {L_UPDATE_USERNAME}
     

    - -
    {L_CLOSE_WINDOW}
    -
    diff --git a/phpBB2_old/templates/subSilver/simple_footer.tpl b/phpBB2_old/templates/subSilver/simple_footer.tpl deleted file mode 100644 index 68c2b00..0000000 --- a/phpBB2_old/templates/subSilver/simple_footer.tpl +++ /dev/null @@ -1,19 +0,0 @@ - -

    - -Powered by phpBB {PHPBB_VERSION} © 2001,2002 phpBB Group
    - - - - - - diff --git a/phpBB2_old/templates/subSilver/simple_header.tpl b/phpBB2_old/templates/subSilver/simple_header.tpl deleted file mode 100644 index 705cb67..0000000 --- a/phpBB2_old/templates/subSilver/simple_header.tpl +++ /dev/null @@ -1,237 +0,0 @@ - - - - - - - - -{META} -{SITENAME} :: {PAGE_TITLE} - - - - - - diff --git a/phpBB2_old/templates/subSilver/subSilver.cfg b/phpBB2_old/templates/subSilver/subSilver.cfg deleted file mode 100644 index 164817a..0000000 --- a/phpBB2_old/templates/subSilver/subSilver.cfg +++ /dev/null @@ -1,101 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2_old/templates/subSilver/subSilver.css b/phpBB2_old/templates/subSilver/subSilver.css deleted file mode 100644 index ba58268..0000000 --- a/phpBB2_old/templates/subSilver/subSilver.css +++ /dev/null @@ -1,210 +0,0 @@ -/* - The original subSilver Theme for phpBB version 2+ - Created by subBlue design - http://www.subBlue.com -*/ - - - /* General page style. The scroll bar colours only visible in IE5.5+ */ -body { - background-color: #E5E5E5; - scrollbar-face-color: #DEE3E7; - scrollbar-highlight-color: #FFFFFF; - scrollbar-shadow-color: #DEE3E7; - scrollbar-3dlight-color: #D1D7DC; - scrollbar-arrow-color: #006699; - scrollbar-track-color: #EFEFEF; - scrollbar-darkshadow-color: #98AAB1; -} - -/* General font families for common tags */ -font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } -a:link,a:active,a:visited { color : #006699; } -a:hover { text-decoration: underline; color : #DD6900; } -hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} - - -/* This is the border line & background colour round the entire page */ -.bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } - -/* This is the outline round the main forum tables */ -.forumline { background-color: #FFFFFF; border: 2px #006699 solid; } - - -/* Main table cell colours and backgrounds */ -td.row1 { background-color: #EFEFEF; } -td.row2 { background-color: #DEE3E7; } -td.row3 { background-color: #D1D7DC; } - - -/* - This is for the table cell above the Topics, Post & Last posts on the index.php page - By default this is the fading out gradiated silver background. - However, you could replace this with a bitmap specific for each forum -*/ -td.rowpic { - background-color: #FFFFFF; - background-image: url(images/cellpic2.jpg); - background-repeat: repeat-y; -} - -/* Header cells - the blue and silver gradient backgrounds */ -th { - color: #FFA34F; font-size: 11px; font-weight : bold; - background-color: #006699; height: 25px; - background-image: url(images/cellpic3.gif); -} - -td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { - background-image: url(images/cellpic1.gif); - background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; -} - - -/* - Setting additional nice inner borders for the main table cells. - The names indicate which sides the border will be on. - Don't worry if you don't understand this, just ignore it :-) -*/ -td.cat,td.catHead,td.catBottom { - height: 29px; - border-width: 0px 0px 0px 0px; -} -th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { - font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } -td.row3Right,td.spaceRow { - background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } - -th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } -th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } -th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } -th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } -th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } -th.thTop { border-width: 1px 0px 0px 0px; } -th.thCornerL { border-width: 1px 0px 0px 1px; } -th.thCornerR { border-width: 1px 1px 0px 0px; } - - -/* The largest text used in the index page title and toptic title etc. */ -.maintitle,h1,h2 { - font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; - text-decoration: none; line-height : 120%; color : #000000; -} - - -/* General text */ -.gen { font-size : 12px; } -.genmed { font-size : 11px; } -.gensmall { font-size : 10px; } -.gen,.genmed,.gensmall { color : #000000; } -a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } -a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } - - -/* The register, login, search etc links at the top of the page */ -.mainmenu { font-size : 11px; color : #000000 } -a.mainmenu { text-decoration: none; color : #006699; } -a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } - - -/* Forum category titles */ -.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} -a.cattitle { text-decoration: none; color : #006699; } -a.cattitle:hover{ text-decoration: underline; } - - -/* Forum title: Text and link to the forums used in: index.php */ -.forumlink { font-weight: bold; font-size: 12px; color : #006699; } -a.forumlink { text-decoration: none; color : #006699; } -a.forumlink:hover{ text-decoration: underline; color : #DD6900; } - - -/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ -.nav { font-weight: bold; font-size: 11px; color : #000000;} -a.nav { text-decoration: none; color : #006699; } -a.nav:hover { text-decoration: underline; } - - -/* titles for the topics: could specify viewed link colour too */ -.topictitle { font-weight: bold; font-size: 11px; color : #000000; } -a.topictitle:link { text-decoration: none; color : #006699; } -a.topictitle:visited { text-decoration: none; color : #5493B4; } -a.topictitle:hover { text-decoration: underline; color : #DD6900; } - - -/* Name of poster in viewmsg.php and viewtopic.php and other places */ -.name { font-size : 11px; color : #000000;} - -/* Location, number of posts, post date etc */ -.postdetails { font-size : 10px; color : #000000; } - - -/* The content of the posts (body of text) */ -.postbody { font-size : 12px;} -a.postlink:link { text-decoration: none; color : #006699 } -a.postlink:visited { text-decoration: none; color : #5493B4; } -a.postlink:hover { text-decoration: underline; color : #DD6900} - - -/* Quote & Code blocks */ -.code { - font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; - background-color: #FAFAFA; border: #D1D7DC; border-style: solid; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - -.quote { - font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; - background-color: #FAFAFA; border: #D1D7DC; border-style: solid; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - - -/* Copyright and bottom info */ -.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} -a.copyright { color: #444444; text-decoration: none;} -a.copyright:hover { color: #000000; text-decoration: underline;} - - -/* Form elements */ -input,textarea, select { - color : #000000; - font: normal 11px Verdana, Arial, Helvetica, sans-serif; - border-color : #000000; -} - -/* The text input fields background colour */ -input.post, textarea.post, select { - background-color : #FFFFFF; -} - -input { text-indent : 2px; } - -/* The buttons used for bbCode styling in message post */ -input.button { - background-color : #EFEFEF; - color : #000000; - font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; -} - -/* The main submit button option */ -input.mainoption { - background-color : #FAFAFA; - font-weight : bold; -} - -/* None-bold submit button */ -input.liteoption { - background-color : #FAFAFA; - font-weight : normal; -} - -/* This is the line in the posting page which shows the rollover - help line. This is actually a text box, but if set to be the same - colour as the background no one will know ;) -*/ -.helpline { background-color: #DEE3E7; border-style: none; } - - -/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ -@import url("formIE.css"); diff --git a/phpBB2_old/templates/subSilver/temp/header.tpl b/phpBB2_old/templates/subSilver/temp/header.tpl deleted file mode 100644 index c037df0..0000000 --- a/phpBB2_old/templates/subSilver/temp/header.tpl +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - -
    - - -Home -About me -Forum -News -Pictures -Search - - -
    - - - -
    -
    - diff --git a/phpBB2_old/templates/subSilver/temp/index_body.tpl b/phpBB2_old/templates/subSilver/temp/index_body.tpl deleted file mode 100644 index 86da30d..0000000 --- a/phpBB2_old/templates/subSilver/temp/index_body.tpl +++ /dev/null @@ -1,103 +0,0 @@ - - - - - -
    - - {LAST_VISIT_DATE}
    - - {CURRENT_TIME}
    {L_INDEX}
    - - {L_SEARCH_NEW}
    {L_SEARCH_SELF}
    - - {L_SEARCH_UNANSWERED}
    - - - - - - - - - - - - - - - - - - - - - - - -
     {L_FORUM}  {L_TOPICS}  {L_POSTS}  {L_LASTPOST} 
    {catrow.CAT_DESC} 
    {catrow.forumrow.L_FORUM_FOLDER_ALT} {catrow.forumrow.FORUM_NAME}
    -
    {catrow.forumrow.FORUM_DESC}
    -
    {catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}
    {catrow.forumrow.TOPICS}{catrow.forumrow.POSTS} {catrow.forumrow.LAST_POST}
    - - - - - - -
    {L_MARK_FORUMS_READ}{S_TIMEZONE}
    - - - - - - - - - - - - -
    {L_WHO_IS_ONLINE}
    {L_WHO_IS_ONLINE}{TOTAL_POSTS}
    {TOTAL_USERS}
    {NEWEST_USER}
    -
    {TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]
    {RECORD_USERS}
    {LOGGED_IN_USER_LIST}
    - - - - - -
    {L_ONLINE_EXPLAIN}
    - - -
    - - - - - - - -
    {L_LOGIN_LOGOUT}
    {L_USERNAME}: - -    {L_PASSWORD}: - -      {L_AUTO_LOGIN} - -     - -
    -
    - - -
    - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_FORUM_LOCKED}{L_FORUM_LOCKED}
    diff --git a/phpBB2_old/templates/subSilver/temp/overall_footer.tpl b/phpBB2_old/templates/subSilver/temp/overall_footer.tpl deleted file mode 100644 index 91ad361..0000000 --- a/phpBB2_old/templates/subSilver/temp/overall_footer.tpl +++ /dev/null @@ -1,20 +0,0 @@ - -

    {ADMIN_LINK}
    - -
    -Powered by phpBB {PHPBB_VERSION} © 2001, 2002 phpBB Group
    {TRANSLATION_INFO}
    - - - - - - diff --git a/phpBB2_old/templates/subSilver/temp/overall_header.tpl b/phpBB2_old/templates/subSilver/temp/overall_header.tpl deleted file mode 100644 index 5a57a97..0000000 --- a/phpBB2_old/templates/subSilver/temp/overall_header.tpl +++ /dev/null @@ -1,252 +0,0 @@ - - - - - -{META} -{NAV_LINKS} -{SITENAME} :: {PAGE_TITLE} - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/phpBB2_old/templates/subSilver/viewtopic_poll_result.tpl b/phpBB2_old/templates/subSilver/viewtopic_poll_result.tpl deleted file mode 100644 index 45d11ea..0000000 --- a/phpBB2_old/templates/subSilver/viewtopic_poll_result.tpl +++ /dev/null @@ -1,36 +0,0 @@ - - - - diff --git a/phpBB2_old/viewforum.php b/phpBB2_old/viewforum.php deleted file mode 100644 index 3c9af9b..0000000 --- a/phpBB2_old/viewforum.php +++ /dev/null @@ -1,695 +0,0 @@ -sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql); - } -} -else -{ - message_die(GENERAL_MESSAGE, 'Forum_not_exist'); -} - -// -// If the query doesn't return any rows this isn't a valid forum. Inform -// the user. -// -if ( !($forum_row = $db->sql_fetchrow($result)) ) -{ - message_die(GENERAL_MESSAGE, 'Forum_not_exist'); -} - -// -// Start session management -// -$userdata = session_pagestart($user_ip, $forum_id); -init_userprefs($userdata); -// -// End session management -// - -// -// Start auth check -// -$is_auth = array(); -$is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_row); - -if ( !$is_auth['auth_read'] || !$is_auth['auth_view'] ) -{ - if ( !$userdata['session_logged_in'] ) - { - $redirect = POST_FORUM_URL . "=$forum_id" . ( ( isset($start) ) ? "&start=$start" : '' ); - redirect(append_sid("login.$phpEx?redirect=viewforum.$phpEx&$redirect", true)); - } - // - // The user is not authed to read this forum ... - // - $message = ( !$is_auth['auth_view'] ) ? $lang['Forum_not_exist'] : sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']); - - message_die(GENERAL_MESSAGE, $message); -} -// -// End of auth check -// - -// -// Handle marking posts -// -if ( $mark_read == 'topics' ) -{ - if ( $userdata['session_logged_in'] ) - { - $sql = "SELECT MAX(post_time) AS last_post - FROM " . POSTS_TABLE . " - WHERE forum_id = $forum_id"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array(); - $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array(); - - if ( ( count($tracking_forums) + count($tracking_topics) ) >= 150 && empty($tracking_forums[$forum_id]) ) - { - asort($tracking_forums); - unset($tracking_forums[key($tracking_forums)]); - } - - if ( $row['last_post'] > $userdata['user_lastvisit'] ) - { - $tracking_forums[$forum_id] = time(); - - setcookie($board_config['cookie_name'] . '_f', serialize($tracking_forums), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']); - } - } - - $template->assign_vars(array( - 'META' => '') - ); - } - - $message = $lang['Topics_marked_read'] . '

    ' . sprintf($lang['Click_return_forum'], '', ' '); - message_die(GENERAL_MESSAGE, $message); -} -// -// End handle marking posts -// - -$tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : ''; -$tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : ''; - -// -// Do the forum Prune -// -if ( $is_auth['auth_mod'] && $board_config['prune_enable'] ) -{ - if ( $forum_row['prune_next'] < time() && $forum_row['prune_enable'] ) - { - include($phpbb_root_path . 'includes/prune.'.$phpEx); - require($phpbb_root_path . 'includes/functions_admin.'.$phpEx); - auto_prune($forum_id); - } -} -// -// End of forum prune -// - -// -// Obtain list of moderators of each forum -// First users, then groups ... broken into two queries -// -$sql = "SELECT u.user_id, u.username - FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g, " . USERS_TABLE . " u - WHERE aa.forum_id = $forum_id - AND aa.auth_mod = " . TRUE . " - AND g.group_single_user = 1 - AND ug.group_id = aa.group_id - AND g.group_id = aa.group_id - AND u.user_id = ug.user_id - GROUP BY u.user_id, u.username - ORDER BY u.user_id"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql); -} - -$moderators = array(); -while( $row = $db->sql_fetchrow($result) ) -{ - $moderators[] = '' . $row['username'] . ''; -} - -$sql = "SELECT g.group_id, g.group_name - FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g - WHERE aa.forum_id = $forum_id - AND aa.auth_mod = " . TRUE . " - AND g.group_single_user = 0 - AND g.group_type <> ". GROUP_HIDDEN ." - AND ug.group_id = aa.group_id - AND g.group_id = aa.group_id - GROUP BY g.group_id, g.group_name - ORDER BY g.group_id"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql); -} - -while( $row = $db->sql_fetchrow($result) ) -{ - $moderators[] = '' . $row['group_name'] . ''; -} - -$l_moderators = ( count($moderators) == 1 ) ? $lang['Moderator'] : $lang['Moderators']; -$forum_moderators = ( count($moderators) ) ? implode(', ', $moderators) : $lang['None']; -unset($moderators); - -// -// Generate a 'Show topics in previous x days' select box. If the topicsdays var is sent -// then get it's value, find the number of topics with dates newer than it (to properly -// handle pagination) and alter the main query -// -$previous_days = array(0, 1, 7, 14, 30, 90, 180, 364); -$previous_days_text = array($lang['All_Topics'], $lang['1_Day'], $lang['7_Days'], $lang['2_Weeks'], $lang['1_Month'], $lang['3_Months'], $lang['6_Months'], $lang['1_Year']); - -if ( !empty($HTTP_POST_VARS['topicdays']) || !empty($HTTP_GET_VARS['topicdays']) ) -{ - $topic_days = ( !empty($HTTP_POST_VARS['topicdays']) ) ? intval($HTTP_POST_VARS['topicdays']) : intval($HTTP_GET_VARS['topicdays']); - $min_topic_time = time() - ($topic_days * 86400); - - $sql = "SELECT COUNT(t.topic_id) AS forum_topics - FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p - WHERE t.forum_id = $forum_id - AND p.post_id = t.topic_last_post_id - AND p.post_time >= $min_topic_time"; - - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain limited topics count information', '', __LINE__, __FILE__, $sql); - } - $row = $db->sql_fetchrow($result); - - $topics_count = ( $row['forum_topics'] ) ? $row['forum_topics'] : 1; - $limit_topics_time = "AND p.post_time >= $min_topic_time"; - - if ( !empty($HTTP_POST_VARS['topicdays']) ) - { - $start = 0; - } -} -else -{ - $topics_count = ( $forum_row['forum_topics'] ) ? $forum_row['forum_topics'] : 1; - - $limit_topics_time = ''; - $topic_days = 0; -} - -$select_topic_days = ''; - - -// -// All announcement data, this keeps announcements -// on each viewforum page ... -// -$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_time, p.post_username - FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . USERS_TABLE . " u2 - WHERE t.forum_id = $forum_id - AND t.topic_poster = u.user_id - AND p.post_id = t.topic_last_post_id - AND p.poster_id = u2.user_id - AND t.topic_type = " . POST_ANNOUNCE . " - ORDER BY t.topic_last_post_id DESC "; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql); -} - -$topic_rowset = array(); -$total_announcements = 0; -while( $row = $db->sql_fetchrow($result) ) -{ - $topic_rowset[] = $row; - $total_announcements++; -} - -$db->sql_freeresult($result); - -// -// Grab all the basic data (all topics except announcements) -// for this forum -// -$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time - FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u2 - WHERE t.forum_id = $forum_id - AND t.topic_poster = u.user_id - AND p.post_id = t.topic_first_post_id - AND p2.post_id = t.topic_last_post_id - AND u2.user_id = p2.poster_id - AND t.topic_type <> " . POST_ANNOUNCE . " - $limit_topics_time - ORDER BY t.topic_type DESC, t.topic_last_post_id DESC - LIMIT $start, ".$board_config['topics_per_page']; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql); -} - -$total_topics = 0; -while( $row = $db->sql_fetchrow($result) ) -{ - $topic_rowset[] = $row; - $total_topics++; -} - -$db->sql_freeresult($result); - -// -// Total topics ... -// -$total_topics += $total_announcements; - -// -// Define censored word matches -// -$orig_word = array(); -$replacement_word = array(); -obtain_word_list($orig_word, $replacement_word); - -// -// Post URL generation for templating vars -// -$template->assign_vars(array( - 'L_DISPLAY_TOPICS' => $lang['Display_topics'], - - 'U_POST_NEW_TOPIC' => append_sid("posting.$phpEx?mode=newtopic&" . POST_FORUM_URL . "=$forum_id"), - - 'S_SELECT_TOPIC_DAYS' => $select_topic_days, - 'S_POST_DAYS_ACTION' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_id . "&start=$start")) -); - -// -// User authorisation levels output -// -$s_auth_can = ( ( $is_auth['auth_post'] ) ? $lang['Rules_post_can'] : $lang['Rules_post_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_reply'] ) ? $lang['Rules_reply_can'] : $lang['Rules_reply_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_edit'] ) ? $lang['Rules_edit_can'] : $lang['Rules_edit_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_delete'] ) ? $lang['Rules_delete_can'] : $lang['Rules_delete_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot'] ) . '
    '; - -if ( $is_auth['auth_mod'] ) -{ - $s_auth_can .= sprintf($lang['Rules_moderate'], "', ''); -} - -// -// Mozilla navigation bar -// -$nav_links['up'] = array( - 'url' => append_sid('index.'.$phpEx), - 'title' => sprintf($lang['Forum_Index'], $board_config['sitename']) -); - -// -// Dump out the page header and load viewforum template -// -define('SHOW_ONLINE', true); -$page_title = $lang['View_forum'] . ' - ' . $forum_row['forum_name']; -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -$template->set_filenames(array( - 'body' => 'viewforum_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$template->assign_vars(array( - 'FORUM_ID' => $forum_id, - 'FORUM_NAME' => $forum_row['forum_name'], - 'MODERATORS' => $forum_moderators, - 'POST_IMG' => ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new'], - - 'FOLDER_IMG' => $images['folder'], - 'FOLDER_NEW_IMG' => $images['folder_new'], - 'FOLDER_HOT_IMG' => $images['folder_hot'], - 'FOLDER_HOT_NEW_IMG' => $images['folder_hot_new'], - 'FOLDER_LOCKED_IMG' => $images['folder_locked'], - 'FOLDER_LOCKED_NEW_IMG' => $images['folder_locked_new'], - 'FOLDER_STICKY_IMG' => $images['folder_sticky'], - 'FOLDER_STICKY_NEW_IMG' => $images['folder_sticky_new'], - 'FOLDER_ANNOUNCE_IMG' => $images['folder_announce'], - 'FOLDER_ANNOUNCE_NEW_IMG' => $images['folder_announce_new'], - - 'L_TOPICS' => $lang['Topics'], - 'L_REPLIES' => $lang['Replies'], - 'L_VIEWS' => $lang['Views'], - 'L_POSTS' => $lang['Posts'], - 'L_LASTPOST' => $lang['Last_Post'], - 'L_MODERATOR' => $l_moderators, - 'L_MARK_TOPICS_READ' => $lang['Mark_all_topics'], - 'L_POST_NEW_TOPIC' => ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['Post_new_topic'], - 'L_NO_NEW_POSTS' => $lang['No_new_posts'], - 'L_NEW_POSTS' => $lang['New_posts'], - 'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'], - 'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'], - 'L_NO_NEW_POSTS_HOT' => $lang['No_new_posts_hot'], - 'L_NEW_POSTS_HOT' => $lang['New_posts_hot'], - 'L_ANNOUNCEMENT' => $lang['Post_Announcement'], - 'L_STICKY' => $lang['Post_Sticky'], - 'L_POSTED' => $lang['Posted'], - 'L_JOINED' => $lang['Joined'], - 'L_AUTHOR' => $lang['Author'], - - 'S_AUTH_LIST' => $s_auth_can, - - 'U_VIEW_FORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL ."=$forum_id"), - - 'U_MARK_READ' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id&mark=topics")) -); -// -// End header -// - -// -// Okay, lets dump out the page ... -// -if( $total_topics ) -{ - for($i = 0; $i < $total_topics; $i++) - { - $topic_id = $topic_rowset[$i]['topic_id']; - - $topic_title = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $topic_rowset[$i]['topic_title']) : $topic_rowset[$i]['topic_title']; - - $replies = $topic_rowset[$i]['topic_replies']; - - $topic_type = $topic_rowset[$i]['topic_type']; - - if( $topic_type == POST_ANNOUNCE ) - { - $topic_type = $lang['Topic_Announcement'] . ' '; - } - else if( $topic_type == POST_STICKY ) - { - $topic_type = $lang['Topic_Sticky'] . ' '; - } - else - { - $topic_type = ''; - } - - if( $topic_rowset[$i]['topic_vote'] ) - { - $topic_type .= $lang['Topic_Poll'] . ' '; - } - - if( $topic_rowset[$i]['topic_status'] == TOPIC_MOVED ) - { - $topic_type = $lang['Topic_Moved'] . ' '; - $topic_id = $topic_rowset[$i]['topic_moved_id']; - - $folder_image = $images['folder']; - $folder_alt = $lang['Topics_Moved']; - $newest_post_img = ''; - } - else - { - if( $topic_rowset[$i]['topic_type'] == POST_ANNOUNCE ) - { - $folder = $images['folder_announce']; - $folder_new = $images['folder_announce_new']; - } - else if( $topic_rowset[$i]['topic_type'] == POST_STICKY ) - { - $folder = $images['folder_sticky']; - $folder_new = $images['folder_sticky_new']; - } - else if( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) - { - $folder = $images['folder_locked']; - $folder_new = $images['folder_locked_new']; - } - else - { - if($replies >= $board_config['hot_threshold']) - { - $folder = $images['folder_hot']; - $folder_new = $images['folder_hot_new']; - } - else - { - $folder = $images['folder']; - $folder_new = $images['folder_new']; - } - } - - $newest_post_img = ''; - if( $userdata['session_logged_in'] ) - { - if( $topic_rowset[$i]['post_time'] > $userdata['user_lastvisit'] ) - { - if( !empty($tracking_topics) || !empty($tracking_forums) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) - { - $unread_topics = true; - - if( !empty($tracking_topics[$topic_id]) ) - { - if( $tracking_topics[$topic_id] >= $topic_rowset[$i]['post_time'] ) - { - $unread_topics = false; - } - } - - if( !empty($tracking_forums[$forum_id]) ) - { - if( $tracking_forums[$forum_id] >= $topic_rowset[$i]['post_time'] ) - { - $unread_topics = false; - } - } - - if( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) - { - if( $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all'] >= $topic_rowset[$i]['post_time'] ) - { - $unread_topics = false; - } - } - - if( $unread_topics ) - { - $folder_image = $folder_new; - $folder_alt = $lang['New_posts']; - - $newest_post_img = '' . $lang['View_newest_post'] . ' '; - } - else - { - $folder_image = $folder; - $folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; - - $newest_post_img = ''; - } - } - else - { - $folder_image = $folder_new; - $folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['New_posts']; - - $newest_post_img = '' . $lang['View_newest_post'] . ' '; - } - } - else - { - $folder_image = $folder; - $folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; - - $newest_post_img = ''; - } - } - else - { - $folder_image = $folder; - $folder_alt = ( $topic_rowset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; - - $newest_post_img = ''; - } - } - - if( ( $replies + 1 ) > $board_config['posts_per_page'] ) - { - $total_pages = ceil( ( $replies + 1 ) / $board_config['posts_per_page'] ); - $goto_page = ' [ ' . $lang['Goto_page'] . '' . $lang['Goto_page'] . ': '; - - $times = 1; - for($j = 0; $j < $replies + 1; $j += $board_config['posts_per_page']) - { - $goto_page .= '' . $times . ''; - if( $times == 1 && $total_pages > 4 ) - { - $goto_page .= ' ... '; - $times = $total_pages - 3; - $j += ( $total_pages - 4 ) * $board_config['posts_per_page']; - } - else if ( $times < $total_pages ) - { - $goto_page .= ', '; - } - $times++; - } - $goto_page .= ' ] '; - } - else - { - $goto_page = ''; - } - - $view_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id"); - - $topic_author = ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '' : ''; - $topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? $topic_rowset[$i]['username'] : ( ( $topic_rowset[$i]['post_username'] != '' ) ? $topic_rowset[$i]['post_username'] : $lang['Guest'] ); - - $topic_author .= ( $topic_rowset[$i]['user_id'] != ANONYMOUS ) ? '' : ''; - - $first_post_time = create_date($board_config['default_dateformat'], $topic_rowset[$i]['topic_time'], $board_config['board_timezone']); - - $last_post_time = create_date($board_config['default_dateformat'], $topic_rowset[$i]['post_time'], $board_config['board_timezone']); - - $last_post_author = ( $topic_rowset[$i]['id2'] == ANONYMOUS ) ? ( ($topic_rowset[$i]['post_username2'] != '' ) ? $topic_rowset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '' . $topic_rowset[$i]['user2'] . ''; - - $last_post_url = '' . $lang['View_latest_post'] . ''; - - $views = $topic_rowset[$i]['topic_views']; - - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('topicrow', array( - 'ROW_COLOR' => $row_color, - 'ROW_CLASS' => $row_class, - 'FORUM_ID' => $forum_id, - 'TOPIC_ID' => $topic_id, - 'TOPIC_FOLDER_IMG' => $folder_image, - 'TOPIC_AUTHOR' => $topic_author, - 'GOTO_PAGE' => $goto_page, - 'REPLIES' => $replies, - 'NEWEST_POST_IMG' => $newest_post_img, - 'TOPIC_TITLE' => $topic_title, - 'TOPIC_TYPE' => $topic_type, - 'VIEWS' => $views, - 'FIRST_POST_TIME' => $first_post_time, - 'LAST_POST_TIME' => $last_post_time, - 'LAST_POST_AUTHOR' => $last_post_author, - 'LAST_POST_IMG' => $last_post_url, - - 'L_TOPIC_FOLDER_ALT' => $folder_alt, - - 'U_VIEW_TOPIC' => $view_topic_url) - ); - } - - $topics_count -= $total_announcements; - - $template->assign_vars(array( - 'PAGINATION' => generate_pagination("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id&topicdays=$topic_days", $topics_count, $board_config['topics_per_page'], $start), - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( $topics_count / $board_config['topics_per_page'] )), - - 'L_GOTO_PAGE' => $lang['Goto_page']) - ); -} -else -{ - // - // No topics - // - $no_topics_msg = ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['No_topics_post_one']; - $template->assign_vars(array( - 'L_NO_TOPICS' => $no_topics_msg) - ); - - $template->assign_block_vars('switch_no_topics', array() ); - -} - -// -// Parse the page and print -// -$template->pparse('body'); - -// -// Page footer -// -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> \ No newline at end of file diff --git a/phpBB2_old/viewonline.php b/phpBB2_old/viewonline.php deleted file mode 100644 index e3c88a6..0000000 --- a/phpBB2_old/viewonline.php +++ /dev/null @@ -1,289 +0,0 @@ -set_filenames(array( - 'body' => 'viewonline_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx); - -$template->assign_vars(array( - 'L_WHOSONLINE' => $lang['Who_is_Online'], - 'L_ONLINE_EXPLAIN' => $lang['Online_explain'], - 'L_USERNAME' => $lang['Username'], - 'L_FORUM_LOCATION' => $lang['Forum_Location'], - 'L_LAST_UPDATE' => $lang['Last_updated']) -); - -// -// Forum info -// -$sql = "SELECT forum_name, forum_id - FROM " . FORUMS_TABLE; -if ( $result = $db->sql_query($sql) ) -{ - while( $row = $db->sql_fetchrow($result) ) - { - $forum_data[$row['forum_id']] = $row['forum_name']; - } -} -else -{ - message_die(GENERAL_ERROR, 'Could not obtain user/online forums information', '', __LINE__, __FILE__, $sql); -} - -// -// Get auth data -// -$is_auth_ary = array(); -$is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata); - -// -// Get user list -// -$sql = "SELECT u.user_id, u.username, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_time, s.session_page, s.session_ip - FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s - WHERE u.user_id = s.session_user_id - AND s.session_time >= ".( time() - 300 ) . " - ORDER BY u.username ASC, s.session_ip ASC"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, 'Could not obtain regd user/online information', '', __LINE__, __FILE__, $sql); -} - -$guest_users = 0; -$registered_users = 0; -$hidden_users = 0; - -$reg_counter = 0; -$guest_counter = 0; -$prev_user = 0; -$prev_ip = ''; - -while ( $row = $db->sql_fetchrow($result) ) -{ - $view_online = false; - - if ( $row['session_logged_in'] ) - { - $user_id = $row['user_id']; - - if ( $user_id != $prev_user ) - { - $username = $row['username']; - - $style_color = ''; - if ( $row['user_level'] == ADMIN ) - { - $username = '' . $username . ''; - } - else if ( $row['user_level'] == MOD ) - { - $username = '' . $username . ''; - } - - if ( !$row['user_allow_viewonline'] ) - { - $view_online = ( $userdata['user_level'] == ADMIN ) ? true : false; - $hidden_users++; - - $username = '' . $username . ''; - } - else - { - $view_online = true; - $registered_users++; - } - - $which_counter = 'reg_counter'; - $which_row = 'reg_user_row'; - $prev_user = $user_id; - } - } - else - { - if ( $row['session_ip'] != $prev_ip ) - { - $username = $lang['Guest']; - $view_online = true; - $guest_users++; - - $which_counter = 'guest_counter'; - $which_row = 'guest_user_row'; - } - } - - $prev_ip = $row['session_ip']; - - if ( $view_online ) - { - if ( $row['session_page'] < 1 || !$is_auth_ary[$row['session_page']]['auth_view'] ) - { - switch( $row['session_page'] ) - { - case PAGE_INDEX: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx"; - break; - case PAGE_POSTING: - $location = $lang['Posting_message']; - $location_url = "index.$phpEx"; - break; - case PAGE_LOGIN: - $location = $lang['Logging_on']; - $location_url = "index.$phpEx"; - break; - case PAGE_SEARCH: - $location = $lang['Searching_forums']; - $location_url = "search.$phpEx"; - break; - case PAGE_PROFILE: - $location = $lang['Viewing_profile']; - $location_url = "index.$phpEx"; - break; - case PAGE_VIEWONLINE: - $location = $lang['Viewing_online']; - $location_url = "viewonline.$phpEx"; - break; - case PAGE_VIEWMEMBERS: - $location = $lang['Viewing_member_list']; - $location_url = "memberlist.$phpEx"; - break; - case PAGE_PRIVMSGS: - $location = $lang['Viewing_priv_msgs']; - $location_url = "privmsg.$phpEx"; - break; - case PAGE_FAQ: - $location = $lang['Viewing_FAQ']; - $location_url = "faq.$phpEx"; - break; - default: - $location = $lang['Forum_index']; - $location_url = "index.$phpEx"; - } - } - else - { - $location_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $row['session_page']); - $location = $forum_data[$row['session_page']]; - } - - $row_color = ( $$which_counter % 2 ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( $$which_counter % 2 ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars("$which_row", array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'USERNAME' => $username, - 'LASTUPDATE' => create_date($board_config['default_dateformat'], $row['session_time'], $board_config['board_timezone']), - 'FORUM_LOCATION' => $location, - - 'U_USER_PROFILE' => append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $user_id), - 'U_FORUM_LOCATION' => append_sid($location_url)) - ); - - $$which_counter++; - } -} - -if( $registered_users == 0 ) -{ - $l_r_user_s = $lang['Reg_users_zero_online']; -} -else if( $registered_users == 1 ) -{ - $l_r_user_s = $lang['Reg_user_online']; -} -else -{ - $l_r_user_s = $lang['Reg_users_online']; -} - -if( $hidden_users == 0 ) -{ - $l_h_user_s = $lang['Hidden_users_zero_online']; -} -else if( $hidden_users == 1 ) -{ - $l_h_user_s = $lang['Hidden_user_online']; -} -else -{ - $l_h_user_s = $lang['Hidden_users_online']; -} - -if( $guest_users == 0 ) -{ - $l_g_user_s = $lang['Guest_users_zero_online']; -} -else if( $guest_users == 1 ) -{ - $l_g_user_s = $lang['Guest_user_online']; -} -else -{ - $l_g_user_s = $lang['Guest_users_online']; -} - -$template->assign_vars(array( - 'TOTAL_REGISTERED_USERS_ONLINE' => sprintf($l_r_user_s, $registered_users) . sprintf($l_h_user_s, $hidden_users), - 'TOTAL_GUEST_USERS_ONLINE' => sprintf($l_g_user_s, $guest_users)) -); - -if ( $registered_users + $hidden_users == 0 ) -{ - $template->assign_vars(array( - 'L_NO_REGISTERED_USERS_BROWSING' => $lang['No_users_browsing']) - ); -} - -if ( $guest_users == 0 ) -{ - $template->assign_vars(array( - 'L_NO_GUESTS_BROWSING' => $lang['No_users_browsing']) - ); -} - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> diff --git a/phpBB2_old/viewtopic.php b/phpBB2_old/viewtopic.php deleted file mode 100644 index 59be745..0000000 --- a/phpBB2_old/viewtopic.php +++ /dev/null @@ -1,1215 +0,0 @@ -= u.user_lastvisit - ORDER BY p.post_time ASC - LIMIT 1"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, 'Could not obtain newer/older topic information', '', __LINE__, __FILE__, $sql); - } - - if ( !($row = $db->sql_fetchrow($result)) ) - { - message_die(GENERAL_MESSAGE, 'No_new_posts_last_visit'); - } - - $post_id = $row['post_id']; - - if (isset($HTTP_GET_VARS['sid'])) - { - redirect("viewtopic.$phpEx?sid=$session_id&" . POST_POST_URL . "=$post_id#$post_id"); - } - else - { - redirect("viewtopic.$phpEx?" . POST_POST_URL . "=$post_id#$post_id"); - } - } - } - - redirect(append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id", true)); - } - else if ( $HTTP_GET_VARS['view'] == 'next' || $HTTP_GET_VARS['view'] == 'previous' ) - { - $sql_condition = ( $HTTP_GET_VARS['view'] == 'next' ) ? '>' : '<'; - $sql_ordering = ( $HTTP_GET_VARS['view'] == 'next' ) ? 'ASC' : 'DESC'; - - $sql = "SELECT t.topic_id - FROM " . TOPICS_TABLE . " t, " . TOPICS_TABLE . " t2 - WHERE - t2.topic_id = $topic_id - AND t.forum_id = t2.forum_id - AND t.topic_last_post_id $sql_condition t2.topic_last_post_id - ORDER BY t.topic_last_post_id $sql_ordering - LIMIT 1"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain newer/older topic information", '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - $topic_id = intval($row['topic_id']); - } - else - { - $message = ( $HTTP_GET_VARS['view'] == 'next' ) ? 'No_newer_topics' : 'No_older_topics'; - message_die(GENERAL_MESSAGE, $message); - } - } -} - -// -// This rather complex gaggle of code handles querying for topics but -// also allows for direct linking to a post (and the calculation of which -// page the post is on and the correct display of viewtopic) -// -$join_sql_table = ( empty($post_id) ) ? '' : ", " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2 "; -$join_sql = ( empty($post_id) ) ? "t.topic_id = $topic_id" : "p.post_id = $post_id AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= $post_id"; -$count_sql = ( empty($post_id) ) ? '' : ", COUNT(p2.post_id) AS prev_posts"; - -$order_sql = ( empty($post_id) ) ? '' : "GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments ORDER BY p.post_id ASC"; - -$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . " - FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . " - WHERE $join_sql - AND f.forum_id = t.forum_id - $order_sql"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, "Could not obtain topic information", '', __LINE__, __FILE__, $sql); -} - -if ( !($forum_topic_data = $db->sql_fetchrow($result)) ) -{ - message_die(GENERAL_MESSAGE, 'Topic_post_not_exist'); -} - -$forum_id = intval($forum_topic_data['forum_id']); - -// -// Start session management -// -$userdata = session_pagestart($user_ip, $forum_id); -init_userprefs($userdata); -// -// End session management -// - -// -// Start auth check -// -$is_auth = array(); -$is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_topic_data); - -if( !$is_auth['auth_view'] || !$is_auth['auth_read'] ) -{ - if ( !$userdata['session_logged_in'] ) - { - $redirect = ( isset($post_id) ) ? POST_POST_URL . "=$post_id" : POST_TOPIC_URL . "=$topic_id"; - $redirect .= ( isset($start) ) ? "&start=$start" : ''; - redirect(append_sid("login.$phpEx?redirect=viewtopic.$phpEx&$redirect", true)); - } - - $message = ( !$is_auth['auth_view'] ) ? $lang['Topic_post_not_exist'] : sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']); - - message_die(GENERAL_MESSAGE, $message); -} -// -// End auth check -// - -$forum_name = $forum_topic_data['forum_name']; -$topic_title = $forum_topic_data['topic_title']; -$topic_id = intval($forum_topic_data['topic_id']); -$topic_time = $forum_topic_data['topic_time']; - -if ( !empty($post_id) ) -{ - $start = floor(($forum_topic_data['prev_posts'] - 1) / intval($board_config['posts_per_page'])) * intval($board_config['posts_per_page']); -} - -// -// Is user watching this thread? -// -if( $userdata['session_logged_in'] ) -{ - $can_watch_topic = TRUE; - - $sql = "SELECT notify_status - FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain topic watch information", '', __LINE__, __FILE__, $sql); - } - - if ( $row = $db->sql_fetchrow($result) ) - { - if ( isset($HTTP_GET_VARS['unwatch']) ) - { - if ( $HTTP_GET_VARS['unwatch'] == 'topic' ) - { - $is_watching_topic = 0; - - $sql_priority = (SQL_LAYER == "mysql") ? "LOW_PRIORITY" : ''; - $sql = "DELETE $sql_priority FROM " . TOPICS_WATCH_TABLE . " - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not delete topic watch information", '', __LINE__, __FILE__, $sql); - } - } - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['No_longer_watching'] . '

    ' . sprintf($lang['Click_return_topic'], '', ''); - message_die(GENERAL_MESSAGE, $message); - } - else - { - $is_watching_topic = TRUE; - - if ( $row['notify_status'] ) - { - $sql_priority = (SQL_LAYER == "mysql") ? "LOW_PRIORITY" : ''; - $sql = "UPDATE $sql_priority " . TOPICS_WATCH_TABLE . " - SET notify_status = 0 - WHERE topic_id = $topic_id - AND user_id = " . $userdata['user_id']; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not update topic watch information", '', __LINE__, __FILE__, $sql); - } - } - } - } - else - { - if ( isset($HTTP_GET_VARS['watch']) ) - { - if ( $HTTP_GET_VARS['watch'] == 'topic' ) - { - $is_watching_topic = TRUE; - - $sql_priority = (SQL_LAYER == "mysql") ? "LOW_PRIORITY" : ''; - $sql = "INSERT $sql_priority INTO " . TOPICS_WATCH_TABLE . " (user_id, topic_id, notify_status) - VALUES (" . $userdata['user_id'] . ", $topic_id, 0)"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not insert topic watch information", '', __LINE__, __FILE__, $sql); - } - } - - $template->assign_vars(array( - 'META' => '') - ); - - $message = $lang['You_are_watching'] . '

    ' . sprintf($lang['Click_return_topic'], '', ''); - message_die(GENERAL_MESSAGE, $message); - } - else - { - $is_watching_topic = 0; - } - } -} -else -{ - if ( isset($HTTP_GET_VARS['unwatch']) ) - { - if ( $HTTP_GET_VARS['unwatch'] == 'topic' ) - { - redirect(append_sid("login.$phpEx?redirect=viewtopic.$phpEx&" . POST_TOPIC_URL . "=$topic_id&unwatch=topic", true)); - } - } - else - { - $can_watch_topic = 0; - $is_watching_topic = 0; - } -} - -// -// Generate a 'Show posts in previous x days' select box. If the postdays var is POSTed -// then get it's value, find the number of topics with dates newer than it (to properly -// handle pagination) and alter the main query -// -$previous_days = array(0, 1, 7, 14, 30, 90, 180, 364); -$previous_days_text = array($lang['All_Posts'], $lang['1_Day'], $lang['7_Days'], $lang['2_Weeks'], $lang['1_Month'], $lang['3_Months'], $lang['6_Months'], $lang['1_Year']); - -if( !empty($HTTP_POST_VARS['postdays']) || !empty($HTTP_GET_VARS['postdays']) ) -{ - $post_days = ( !empty($HTTP_POST_VARS['postdays']) ) ? intval($HTTP_POST_VARS['postdays']) : intval($HTTP_GET_VARS['postdays']); - $min_post_time = time() - (intval($post_days) * 86400); - - $sql = "SELECT COUNT(p.post_id) AS num_posts - FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p - WHERE t.topic_id = $topic_id - AND p.topic_id = t.topic_id - AND p.post_time >= $min_post_time"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain limited topics count information", '', __LINE__, __FILE__, $sql); - } - - $total_replies = ( $row = $db->sql_fetchrow($result) ) ? intval($row['num_posts']) : 0; - - $limit_posts_time = "AND p.post_time >= $min_post_time "; - - if ( !empty($HTTP_POST_VARS['postdays'])) - { - $start = 0; - } -} -else -{ - $total_replies = intval($forum_topic_data['topic_replies']) + 1; - - $limit_posts_time = ''; - $post_days = 0; -} - -$select_post_days = ''; - -// -// Decide how to order the post display -// -if ( !empty($HTTP_POST_VARS['postorder']) || !empty($HTTP_GET_VARS['postorder']) ) -{ - $post_order = (!empty($HTTP_POST_VARS['postorder'])) ? htmlspecialchars($HTTP_POST_VARS['postorder']) : htmlspecialchars($HTTP_GET_VARS['postorder']); - $post_time_order = ($post_order == "asc") ? "ASC" : "DESC"; -} -else -{ - $post_order = 'asc'; - $post_time_order = 'ASC'; -} - -$select_post_order = ''; - -// -// Go ahead and pull all data for this topic -// -$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid - FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt - WHERE p.topic_id = $topic_id - $limit_posts_time - AND pt.post_id = p.post_id - AND u.user_id = p.poster_id - ORDER BY p.post_time $post_time_order - LIMIT $start, ".$board_config['posts_per_page']; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, "Could not obtain post/user information.", '', __LINE__, __FILE__, $sql); -} - -$postrow = array(); -if ($row = $db->sql_fetchrow($result)) -{ - do - { - $postrow[] = $row; - } - while ($row = $db->sql_fetchrow($result)); - $db->sql_freeresult($result); - - $total_posts = count($postrow); -} -else -{ - include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); - sync('topic', $topic_id); - - message_die(GENERAL_MESSAGE, $lang['No_posts_topic']); -} - -$resync = FALSE; -if ($forum_topic_data['topic_replies'] + 1 < $start + count($postrow)) -{ - $resync = TRUE; -} -elseif ($start + $board_config['posts_per_page'] > $forum_topic_data['topic_replies']) -{ - $row_id = intval($forum_topic_data['topic_replies']) % intval($board_config['posts_per_page']); - if ($postrow[$row_id]['post_id'] != $forum_topic_data['topic_last_post_id'] || $start + count($postrow) < $forum_topic_data['topic_replies']) - { - $resync = TRUE; - } -} -elseif (count($postrow) < $board_config['posts_per_page']) -{ - $resync = TRUE; -} - -if ($resync) -{ - include($phpbb_root_path . 'includes/functions_admin.' . $phpEx); - sync('topic', $topic_id); - - $result = $db->sql_query('SELECT COUNT(post_id) AS total FROM ' . POSTS_TABLE . ' WHERE topic_id = ' . $topic_id); - $row = $db->sql_fetchrow($result); - $total_replies = $row['total']; -} - -$sql = "SELECT * - FROM " . RANKS_TABLE . " - ORDER BY rank_special, rank_min"; -if ( !($result = $db->sql_query($sql)) ) -{ - message_die(GENERAL_ERROR, "Could not obtain ranks information.", '', __LINE__, __FILE__, $sql); -} - -$ranksrow = array(); -while ( $row = $db->sql_fetchrow($result) ) -{ - $ranksrow[] = $row; -} -$db->sql_freeresult($result); - -// -// Define censored word matches -// -$orig_word = array(); -$replacement_word = array(); -obtain_word_list($orig_word, $replacement_word); - -// -// Censor topic title -// -if ( count($orig_word) ) -{ - $topic_title = preg_replace($orig_word, $replacement_word, $topic_title); -} - -// -// Was a highlight request part of the URI? -// -$highlight_match = $highlight = ''; -if (isset($HTTP_GET_VARS['highlight'])) -{ - // Split words and phrases - $words = explode(' ', trim(htmlspecialchars($HTTP_GET_VARS['highlight']))); - - for($i = 0; $i < sizeof($words); $i++) - { - if (trim($words[$i]) != '') - { - $highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('*', '\w*', phpbb_preg_quote($words[$i], '#')); - } - } - unset($words); - - $highlight = urlencode($HTTP_GET_VARS['highlight']); -} - -// -// Post, reply and other URL generation for -// templating vars -// -$new_topic_url = append_sid("posting.$phpEx?mode=newtopic&" . POST_FORUM_URL . "=$forum_id"); -$reply_topic_url = append_sid("posting.$phpEx?mode=reply&" . POST_TOPIC_URL . "=$topic_id"); -$view_forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"); -$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous"); -$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next"); - -// -// Mozilla navigation bar -// -$nav_links['prev'] = array( - 'url' => $view_prev_topic_url, - 'title' => $lang['View_previous_topic'] -); -$nav_links['next'] = array( - 'url' => $view_next_topic_url, - 'title' => $lang['View_next_topic'] -); -$nav_links['up'] = array( - 'url' => $view_forum_url, - 'title' => $forum_name -); - -$reply_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $images['reply_locked'] : $images['reply_new']; -$reply_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['Reply_to_topic']; -$post_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new']; -$post_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['Post_new_topic']; - -// -// Set a cookie for this topic -// -if ( $userdata['session_logged_in'] ) -{ - $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array(); - $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array(); - - if ( !empty($tracking_topics[$topic_id]) && !empty($tracking_forums[$forum_id]) ) - { - $topic_last_read = ( $tracking_topics[$topic_id] > $tracking_forums[$forum_id] ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id]; - } - else if ( !empty($tracking_topics[$topic_id]) || !empty($tracking_forums[$forum_id]) ) - { - $topic_last_read = ( !empty($tracking_topics[$topic_id]) ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id]; - } - else - { - $topic_last_read = $userdata['user_lastvisit']; - } - - if ( count($tracking_topics) >= 150 && empty($tracking_topics[$topic_id]) ) - { - asort($tracking_topics); - unset($tracking_topics[key($tracking_topics)]); - } - - $tracking_topics[$topic_id] = time(); - - setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']); -} - -// -// Load templates -// -$template->set_filenames(array( - 'body' => 'viewtopic_body.tpl') -); -make_jumpbox('viewforum.'.$phpEx, $forum_id); - -// -// Output page header -// -$page_title = $lang['View_topic'] .' - ' . $topic_title; -include($phpbb_root_path . 'includes/page_header.'.$phpEx); - -// -// User authorisation levels output -// -$s_auth_can = ( ( $is_auth['auth_post'] ) ? $lang['Rules_post_can'] : $lang['Rules_post_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_reply'] ) ? $lang['Rules_reply_can'] : $lang['Rules_reply_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_edit'] ) ? $lang['Rules_edit_can'] : $lang['Rules_edit_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_delete'] ) ? $lang['Rules_delete_can'] : $lang['Rules_delete_cannot'] ) . '
    '; -$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot'] ) . '
    '; - -$topic_mod = ''; - -if ( $is_auth['auth_mod'] ) -{ - $s_auth_can .= sprintf($lang['Rules_moderate'], "', ''); - - $topic_mod .= "' . $lang['Delete_topic'] . ' '; - - $topic_mod .= "' . $lang['Move_topic'] . ' '; - - $topic_mod .= ( $forum_topic_data['topic_status'] == TOPIC_UNLOCKED ) ? "' . $lang['Lock_topic'] . ' ' : "' . $lang['Unlock_topic'] . ' '; - - $topic_mod .= "' . $lang['Split_topic'] . ' '; -} - -// -// Topic watch information -// -$s_watching_topic = ''; -if ( $can_watch_topic ) -{ - if ( $is_watching_topic ) - { - $s_watching_topic = "' . $lang['Stop_watching_topic'] . ''; - $s_watching_topic_img = ( isset($images['topic_un_watch']) ) ? "' . $lang['Stop_watching_topic'] . '' : ''; - } - else - { - $s_watching_topic = "' . $lang['Start_watching_topic'] . ''; - $s_watching_topic_img = ( isset($images['Topic_watch']) ) ? "' . $lang['Start_watching_topic'] . '' : ''; - } -} - -// -// If we've got a hightlight set pass it on to pagination, -// I get annoyed when I lose my highlight after the first page. -// -$pagination = ( $highlight != '' ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&highlight=$highlight", $total_replies, $board_config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start); - -// -// Send vars to template -// -$template->assign_vars(array( - 'FORUM_ID' => $forum_id, - 'FORUM_NAME' => $forum_name, - 'TOPIC_ID' => $topic_id, - 'TOPIC_TITLE' => $topic_title, - 'PAGINATION' => $pagination, - 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / intval($board_config['posts_per_page']) ) + 1 ), ceil( $total_replies / intval($board_config['posts_per_page']) )), - - 'POST_IMG' => $post_img, - 'REPLY_IMG' => $reply_img, - - 'L_AUTHOR' => $lang['Author'], - 'L_MESSAGE' => $lang['Message'], - 'L_POSTED' => $lang['Posted'], - 'L_POST_SUBJECT' => $lang['Post_subject'], - 'L_VIEW_NEXT_TOPIC' => $lang['View_next_topic'], - 'L_VIEW_PREVIOUS_TOPIC' => $lang['View_previous_topic'], - 'L_POST_NEW_TOPIC' => $post_alt, - 'L_POST_REPLY_TOPIC' => $reply_alt, - 'L_BACK_TO_TOP' => $lang['Back_to_top'], - 'L_DISPLAY_POSTS' => $lang['Display_posts'], - 'L_LOCK_TOPIC' => $lang['Lock_topic'], - 'L_UNLOCK_TOPIC' => $lang['Unlock_topic'], - 'L_MOVE_TOPIC' => $lang['Move_topic'], - 'L_SPLIT_TOPIC' => $lang['Split_topic'], - 'L_DELETE_TOPIC' => $lang['Delete_topic'], - 'L_GOTO_PAGE' => $lang['Goto_page'], - - 'S_TOPIC_LINK' => POST_TOPIC_URL, - 'S_SELECT_POST_DAYS' => $select_post_days, - 'S_SELECT_POST_ORDER' => $select_post_order, - 'S_POST_DAYS_ACTION' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $topic_id . "&start=$start"), - 'S_AUTH_LIST' => $s_auth_can, - 'S_TOPIC_ADMIN' => $topic_mod, - 'S_WATCH_TOPIC' => $s_watching_topic, - 'S_WATCH_TOPIC_IMG' => $s_watching_topic_img, - - 'U_VIEW_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start&postdays=$post_days&postorder=$post_order&highlight=$highlight"), - 'U_VIEW_FORUM' => $view_forum_url, - 'U_VIEW_OLDER_TOPIC' => $view_prev_topic_url, - 'U_VIEW_NEWER_TOPIC' => $view_next_topic_url, - 'U_POST_NEW_TOPIC' => $new_topic_url, - 'U_POST_REPLY_TOPIC' => $reply_topic_url) -); - -// -// Does this topic contain a poll? -// -if ( !empty($forum_topic_data['topic_vote']) ) -{ - $s_hidden_fields = ''; - - $sql = "SELECT vd.vote_id, vd.vote_text, vd.vote_start, vd.vote_length, vr.vote_option_id, vr.vote_option_text, vr.vote_result - FROM " . VOTE_DESC_TABLE . " vd, " . VOTE_RESULTS_TABLE . " vr - WHERE vd.topic_id = $topic_id - AND vr.vote_id = vd.vote_id - ORDER BY vr.vote_option_id ASC"; - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain vote data for this topic", '', __LINE__, __FILE__, $sql); - } - - if ( $vote_info = $db->sql_fetchrowset($result) ) - { - $db->sql_freeresult($result); - $vote_options = count($vote_info); - - $vote_id = $vote_info[0]['vote_id']; - $vote_title = $vote_info[0]['vote_text']; - - $sql = "SELECT vote_id - FROM " . VOTE_USERS_TABLE . " - WHERE vote_id = $vote_id - AND vote_user_id = " . intval($userdata['user_id']); - if ( !($result = $db->sql_query($sql)) ) - { - message_die(GENERAL_ERROR, "Could not obtain user vote data for this topic", '', __LINE__, __FILE__, $sql); - } - - $user_voted = ( $row = $db->sql_fetchrow($result) ) ? TRUE : 0; - $db->sql_freeresult($result); - - if ( isset($HTTP_GET_VARS['vote']) || isset($HTTP_POST_VARS['vote']) ) - { - $view_result = ( ( ( isset($HTTP_GET_VARS['vote']) ) ? $HTTP_GET_VARS['vote'] : $HTTP_POST_VARS['vote'] ) == 'viewresult' ) ? TRUE : 0; - } - else - { - $view_result = 0; - } - - $poll_expired = ( $vote_info[0]['vote_length'] ) ? ( ( $vote_info[0]['vote_start'] + $vote_info[0]['vote_length'] < time() ) ? TRUE : 0 ) : 0; - - if ( $user_voted || $view_result || $poll_expired || !$is_auth['auth_vote'] || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) - { - $template->set_filenames(array( - 'pollbox' => 'viewtopic_poll_result.tpl') - ); - - $vote_results_sum = 0; - - for($i = 0; $i < $vote_options; $i++) - { - $vote_results_sum += $vote_info[$i]['vote_result']; - } - - $vote_graphic = 0; - $vote_graphic_max = count($images['voting_graphic']); - - for($i = 0; $i < $vote_options; $i++) - { - $vote_percent = ( $vote_results_sum > 0 ) ? $vote_info[$i]['vote_result'] / $vote_results_sum : 0; - $vote_graphic_length = round($vote_percent * $board_config['vote_graphic_length']); - - $vote_graphic_img = $images['voting_graphic'][$vote_graphic]; - $vote_graphic = ($vote_graphic < $vote_graphic_max - 1) ? $vote_graphic + 1 : 0; - - if ( count($orig_word) ) - { - $vote_info[$i]['vote_option_text'] = preg_replace($orig_word, $replacement_word, $vote_info[$i]['vote_option_text']); - } - - $template->assign_block_vars("poll_option", array( - 'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text'], - 'POLL_OPTION_RESULT' => $vote_info[$i]['vote_result'], - 'POLL_OPTION_PERCENT' => sprintf("%.1d%%", ($vote_percent * 100)), - - 'POLL_OPTION_IMG' => $vote_graphic_img, - 'POLL_OPTION_IMG_WIDTH' => $vote_graphic_length) - ); - } - - $template->assign_vars(array( - 'L_TOTAL_VOTES' => $lang['Total_votes'], - 'TOTAL_VOTES' => $vote_results_sum) - ); - - } - else - { - $template->set_filenames(array( - 'pollbox' => 'viewtopic_poll_ballot.tpl') - ); - - for($i = 0; $i < $vote_options; $i++) - { - if ( count($orig_word) ) - { - $vote_info[$i]['vote_option_text'] = preg_replace($orig_word, $replacement_word, $vote_info[$i]['vote_option_text']); - } - - $template->assign_block_vars("poll_option", array( - 'POLL_OPTION_ID' => $vote_info[$i]['vote_option_id'], - 'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text']) - ); - } - - $template->assign_vars(array( - 'L_SUBMIT_VOTE' => $lang['Submit_vote'], - 'L_VIEW_RESULTS' => $lang['View_results'], - - 'U_VIEW_RESULTS' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=$post_days&postorder=$post_order&vote=viewresult")) - ); - - $s_hidden_fields = ''; - } - - if ( count($orig_word) ) - { - $vote_title = preg_replace($orig_word, $replacement_word, $vote_title); - } - - $s_hidden_fields .= ''; - - $template->assign_vars(array( - 'POLL_QUESTION' => $vote_title, - - 'S_HIDDEN_FIELDS' => $s_hidden_fields, - 'S_POLL_ACTION' => append_sid("posting.$phpEx?mode=vote&" . POST_TOPIC_URL . "=$topic_id")) - ); - - $template->assign_var_from_handle('POLL_DISPLAY', 'pollbox'); - } -} - -// -// Update the topic view counter -// -$sql = "UPDATE " . TOPICS_TABLE . " - SET topic_views = topic_views + 1 - WHERE topic_id = $topic_id"; -if ( !$db->sql_query($sql) ) -{ - message_die(GENERAL_ERROR, "Could not update topic views.", '', __LINE__, __FILE__, $sql); -} - -// -// Okay, let's do the loop, yeah come on baby let's do the loop -// and it goes like this ... -// -for($i = 0; $i < $total_posts; $i++) -{ - $poster_id = $postrow[$i]['user_id']; - $poster = ( $poster_id == ANONYMOUS ) ? $lang['Guest'] : $postrow[$i]['username']; - - $post_date = create_date($board_config['default_dateformat'], $postrow[$i]['post_time'], $board_config['board_timezone']); - - $poster_posts = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Posts'] . ': ' . $postrow[$i]['user_posts'] : ''; - - $poster_from = ( $postrow[$i]['user_from'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Location'] . ': ' . $postrow[$i]['user_from'] : ''; - - $poster_joined = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Joined'] . ': ' . create_date($lang['DATE_FORMAT'], $postrow[$i]['user_regdate'], $board_config['board_timezone']) : ''; - - $poster_avatar = ''; - if ( $postrow[$i]['user_avatar_type'] && $poster_id != ANONYMOUS && $postrow[$i]['user_allowavatar'] ) - { - switch( $postrow[$i]['user_avatar_type'] ) - { - case USER_AVATAR_UPLOAD: - $poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '' : ''; - break; - case USER_AVATAR_REMOTE: - $poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '' : ''; - break; - case USER_AVATAR_GALLERY: - $poster_avatar = ( $board_config['allow_avatar_local'] ) ? '' : ''; - break; - } - } - - // - // Define the little post icon - // - if ( $userdata['session_logged_in'] && $postrow[$i]['post_time'] > $userdata['user_lastvisit'] && $postrow[$i]['post_time'] > $topic_last_read ) - { - $mini_post_img = $images['icon_minipost_new']; - $mini_post_alt = $lang['New_post']; - } - else - { - $mini_post_img = $images['icon_minipost']; - $mini_post_alt = $lang['Post']; - } - - $mini_post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$i]['post_id']) . '#' . $postrow[$i]['post_id']; - - // - // Generate ranks, set them to empty string initially. - // - $poster_rank = ''; - $rank_image = ''; - if ( $postrow[$i]['user_id'] == ANONYMOUS ) - { - } - else if ( $postrow[$i]['user_rank'] ) - { - for($j = 0; $j < count($ranksrow); $j++) - { - if ( $postrow[$i]['user_rank'] == $ranksrow[$j]['rank_id'] && $ranksrow[$j]['rank_special'] ) - { - $poster_rank = $ranksrow[$j]['rank_title']; - $rank_image = ( $ranksrow[$j]['rank_image'] ) ? '' . $poster_rank . '
    ' : ''; - } - } - } - else - { - for($j = 0; $j < count($ranksrow); $j++) - { - if ( $postrow[$i]['user_posts'] >= $ranksrow[$j]['rank_min'] && !$ranksrow[$j]['rank_special'] ) - { - $poster_rank = $ranksrow[$j]['rank_title']; - $rank_image = ( $ranksrow[$j]['rank_image'] ) ? '' . $poster_rank . '
    ' : ''; - } - } - } - - // - // Handle anon users posting with usernames - // - if ( $poster_id == ANONYMOUS && $postrow[$i]['post_username'] != '' ) - { - $poster = $postrow[$i]['post_username']; - $poster_rank = $lang['Guest']; - } - - $temp_url = ''; - - if ( $poster_id != ANONYMOUS ) - { - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id"); - $profile_img = '' . $lang['Read_profile'] . ''; - $profile = '' . $lang['Read_profile'] . ''; - - $temp_url = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$poster_id"); - $pm_img = '' . $lang['Send_private_message'] . ''; - $pm = '' . $lang['Send_private_message'] . ''; - - if ( !empty($postrow[$i]['user_viewemail']) || $is_auth['auth_mod'] ) - { - $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&" . POST_USERS_URL .'=' . $poster_id) : 'mailto:' . $postrow[$i]['user_email']; - - $email_img = '' . $lang['Send_email'] . ''; - $email = '' . $lang['Send_email'] . ''; - } - else - { - $email_img = ''; - $email = ''; - } - - $www_img = ( $postrow[$i]['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - $www = ( $postrow[$i]['user_website'] ) ? '' . $lang['Visit_website'] . '' : ''; - - if ( !empty($postrow[$i]['user_icq']) ) - { - $icq_status_img = ''; - $icq_img = '' . $lang['ICQ'] . ''; - $icq = '' . $lang['ICQ'] . ''; - } - else - { - $icq_status_img = ''; - $icq_img = ''; - $icq = ''; - } - - $aim_img = ( $postrow[$i]['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - $aim = ( $postrow[$i]['user_aim'] ) ? '' . $lang['AIM'] . '' : ''; - - $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id"); - $msn_img = ( $postrow[$i]['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - $msn = ( $postrow[$i]['user_msnm'] ) ? '' . $lang['MSNM'] . '' : ''; - - $yim_img = ( $postrow[$i]['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - $yim = ( $postrow[$i]['user_yim'] ) ? '' . $lang['YIM'] . '' : ''; - } - else - { - $profile_img = ''; - $profile = ''; - $pm_img = ''; - $pm = ''; - $email_img = ''; - $email = ''; - $www_img = ''; - $www = ''; - $icq_status_img = ''; - $icq_img = ''; - $icq = ''; - $aim_img = ''; - $aim = ''; - $msn_img = ''; - $msn = ''; - $yim_img = ''; - $yim = ''; - } - - $temp_url = append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); - $quote_img = '' . $lang['Reply_with_quote'] . ''; - $quote = '' . $lang['Reply_with_quote'] . ''; - - $temp_url = append_sid("search.$phpEx?search_author=" . urlencode($postrow[$i]['username']) . "&showresults=posts"); - $search_img = '' . $lang['Search_user_posts'] . ''; - $search = '' . $lang['Search_user_posts'] . ''; - - if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] ) || $is_auth['auth_mod'] ) - { - $temp_url = append_sid("posting.$phpEx?mode=editpost&" . POST_POST_URL . "=" . $postrow[$i]['post_id']); - $edit_img = '' . $lang['Edit_delete_post'] . ''; - $edit = '' . $lang['Edit_delete_post'] . ''; - } - else - { - $edit_img = ''; - $edit = ''; - } - - if ( $is_auth['auth_mod'] ) - { - $temp_url = "modcp.$phpEx?mode=ip&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=" . $topic_id . "&sid=" . $userdata['session_id']; - $ip_img = '' . $lang['View_IP'] . ''; - $ip = '' . $lang['View_IP'] . ''; - - $temp_url = "posting.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id']; - $delpost_img = '' . $lang['Delete_post'] . ''; - $delpost = '' . $lang['Delete_post'] . ''; - } - else - { - $ip_img = ''; - $ip = ''; - - if ( $userdata['user_id'] == $poster_id && $is_auth['auth_delete'] && $forum_topic_data['topic_last_post_id'] == $postrow[$i]['post_id'] ) - { - $temp_url = "posting.$phpEx?mode=delete&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&sid=" . $userdata['session_id']; - $delpost_img = '' . $lang['Delete_post'] . ''; - $delpost = '' . $lang['Delete_post'] . ''; - } - else - { - $delpost_img = ''; - $delpost = ''; - } - } - - $post_subject = ( $postrow[$i]['post_subject'] != '' ) ? $postrow[$i]['post_subject'] : ''; - - $message = $postrow[$i]['post_text']; - $bbcode_uid = $postrow[$i]['bbcode_uid']; - - $user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : ''; - $user_sig_bbcode_uid = $postrow[$i]['user_sig_bbcode_uid']; - - // - // Note! The order used for parsing the message _is_ important, moving things around could break any - // output - // - - // - // If the board has HTML off but the post has HTML - // on then we process it, else leave it alone - // - if ( !$board_config['allow_html'] ) - { - if ( $user_sig != '' && $userdata['user_allowhtml'] ) - { - $user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $user_sig); - } - - if ( $postrow[$i]['enable_html'] ) - { - $message = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $message); - } - } - - // - // Parse message and/or sig for BBCode if reqd - // - if ( $board_config['allow_bbcode'] ) - { - if ( $user_sig != '' && $user_sig_bbcode_uid != '' ) - { - $user_sig = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $user_sig); - } - - if ( $bbcode_uid != '' ) - { - $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $message); - } - } - - if ( $user_sig != '' ) - { - $user_sig = make_clickable($user_sig); - } - $message = make_clickable($message); - - // - // Parse smilies - // - if ( $board_config['allow_smilies'] ) - { - if ( $postrow[$i]['user_allowsmile'] && $user_sig != '' ) - { - $user_sig = smilies_pass($user_sig); - } - - if ( $postrow[$i]['enable_smilies'] ) - { - $message = smilies_pass($message); - } - } - - // - // Highlight active words (primarily for search) - // - if ($highlight_match) - { - // This was shamelessly 'borrowed' from volker at multiartstudio dot de - // via php.net's annotated manual - $message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace('#\b(" . $highlight_match . ")\b#i', '\\\\1', '\\0')", '>' . $message . '<'), 1, -1)); - } - - // - // Replace naughty words - // - if (count($orig_word)) - { - $post_subject = preg_replace($orig_word, $replacement_word, $post_subject); - - if ($user_sig != '') - { - $user_sig = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $user_sig . '<'), 1, -1)); - } - - $message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $message . '<'), 1, -1)); - } - - // - // Replace newlines (we use this rather than nl2br because - // till recently it wasn't XHTML compliant) - // - if ( $user_sig != '' ) - { - $user_sig = '
    _________________
    ' . str_replace("\n", "\n
    \n", $user_sig); - } - - $message = str_replace("\n", "\n
    \n", $message); - - // - // Editing information - // - if ( $postrow[$i]['post_edit_count'] ) - { - $l_edit_time_total = ( $postrow[$i]['post_edit_count'] == 1 ) ? $lang['Edited_time_total'] : $lang['Edited_times_total']; - - $l_edited_by = '

    ' . sprintf($l_edit_time_total, $poster, create_date($board_config['default_dateformat'], $postrow[$i]['post_edit_time'], $board_config['board_timezone']), $postrow[$i]['post_edit_count']); - } - else - { - $l_edited_by = ''; - } - - // - // Again this will be handled by the templating - // code at some point - // - $row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2']; - $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; - - $template->assign_block_vars('postrow', array( - 'ROW_COLOR' => '#' . $row_color, - 'ROW_CLASS' => $row_class, - 'POSTER_NAME' => $poster, - 'POSTER_RANK' => $poster_rank, - 'RANK_IMAGE' => $rank_image, - 'POSTER_JOINED' => $poster_joined, - 'POSTER_POSTS' => $poster_posts, - 'POSTER_FROM' => $poster_from, - 'POSTER_AVATAR' => $poster_avatar, - 'POST_DATE' => $post_date, - 'POST_SUBJECT' => $post_subject, - 'MESSAGE' => $message, - 'SIGNATURE' => $user_sig, - 'EDITED_MESSAGE' => $l_edited_by, - - 'MINI_POST_IMG' => $mini_post_img, - 'PROFILE_IMG' => $profile_img, - 'PROFILE' => $profile, - 'SEARCH_IMG' => $search_img, - 'SEARCH' => $search, - 'PM_IMG' => $pm_img, - 'PM' => $pm, - 'EMAIL_IMG' => $email_img, - 'EMAIL' => $email, - 'WWW_IMG' => $www_img, - 'WWW' => $www, - 'ICQ_STATUS_IMG' => $icq_status_img, - 'ICQ_IMG' => $icq_img, - 'ICQ' => $icq, - 'AIM_IMG' => $aim_img, - 'AIM' => $aim, - 'MSN_IMG' => $msn_img, - 'MSN' => $msn, - 'YIM_IMG' => $yim_img, - 'YIM' => $yim, - 'EDIT_IMG' => $edit_img, - 'EDIT' => $edit, - 'QUOTE_IMG' => $quote_img, - 'QUOTE' => $quote, - 'IP_IMG' => $ip_img, - 'IP' => $ip, - 'DELETE_IMG' => $delpost_img, - 'DELETE' => $delpost, - - 'L_MINI_POST_ALT' => $mini_post_alt, - - 'U_MINI_POST' => $mini_post_url, - 'U_POST_ID' => $postrow[$i]['post_id']) - ); -} - -$template->pparse('body'); - -include($phpbb_root_path . 'includes/page_tail.'.$phpEx); - -?> diff --git a/phpBB2_old/xs_mod/formIE.css b/phpBB2_old/xs_mod/formIE.css deleted file mode 100644 index b76fd40..0000000 --- a/phpBB2_old/xs_mod/formIE.css +++ /dev/null @@ -1,19 +0,0 @@ -/* Fancy form styles for IE */ - -input, textarea, select { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -input { text-indent : 2px; } - -input.button { -border-top-width : 1px; -border-right-width : 1px; -border-bottom-width : 1px; -border-left-width : 1px; -} - -.postbody { line-height: 18px} diff --git a/phpBB2_old/xs_mod/images/button.gif b/phpBB2_old/xs_mod/images/button.gif deleted file mode 100644 index 17660cd..0000000 Binary files a/phpBB2_old/xs_mod/images/button.gif and /dev/null differ diff --git a/phpBB2_old/xs_mod/images/cellpic1.gif b/phpBB2_old/xs_mod/images/cellpic1.gif deleted file mode 100644 index db90769..0000000 Binary files a/phpBB2_old/xs_mod/images/cellpic1.gif and /dev/null differ diff --git a/phpBB2_old/xs_mod/images/cellpic2.jpg b/phpBB2_old/xs_mod/images/cellpic2.jpg deleted file mode 100644 index d6e4687..0000000 Binary files a/phpBB2_old/xs_mod/images/cellpic2.jpg and /dev/null differ diff --git a/phpBB2_old/xs_mod/images/cellpic3.gif b/phpBB2_old/xs_mod/images/cellpic3.gif deleted file mode 100644 index 49b5b26..0000000 Binary files a/phpBB2_old/xs_mod/images/cellpic3.gif and /dev/null differ diff --git a/phpBB2_old/xs_mod/images/cellpic4.gif b/phpBB2_old/xs_mod/images/cellpic4.gif deleted file mode 100644 index 9041126..0000000 Binary files a/phpBB2_old/xs_mod/images/cellpic4.gif and /dev/null differ diff --git a/phpBB2_old/xs_mod/images/dot.gif b/phpBB2_old/xs_mod/images/dot.gif deleted file mode 100644 index 10db0b3..0000000 Binary files a/phpBB2_old/xs_mod/images/dot.gif and /dev/null differ diff --git a/phpBB2_old/xs_mod/images/spacer.gif b/phpBB2_old/xs_mod/images/spacer.gif deleted file mode 100644 index cd29009..0000000 Binary files a/phpBB2_old/xs_mod/images/spacer.gif and /dev/null differ diff --git a/phpBB2_old/xs_mod/images/top_bg.gif b/phpBB2_old/xs_mod/images/top_bg.gif deleted file mode 100644 index 8e5d7ca..0000000 Binary files a/phpBB2_old/xs_mod/images/top_bg.gif and /dev/null differ diff --git a/phpBB2_old/xs_mod/images/top_bg2.gif b/phpBB2_old/xs_mod/images/top_bg2.gif deleted file mode 100644 index 8e48cb3..0000000 Binary files a/phpBB2_old/xs_mod/images/top_bg2.gif and /dev/null differ diff --git a/phpBB2_old/xs_mod/images/top_logo.jpg b/phpBB2_old/xs_mod/images/top_logo.jpg deleted file mode 100644 index e030ee3..0000000 Binary files a/phpBB2_old/xs_mod/images/top_logo.jpg and /dev/null differ diff --git a/phpBB2_old/xs_mod/style.css b/phpBB2_old/xs_mod/style.css deleted file mode 100644 index 5c55db8..0000000 --- a/phpBB2_old/xs_mod/style.css +++ /dev/null @@ -1,253 +0,0 @@ -/*************************************************************************** - * style.css - * --------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - -body { - background-color: #E5E5E5; - margin: 0px; - scrollbar-face-color: #DEE3E7; - scrollbar-highlight-color: #FFFFFF; - scrollbar-shadow-color: #DEE3E7; - scrollbar-3dlight-color: #D1D7DC; - scrollbar-arrow-color: #006699; - scrollbar-track-color: #EFEFEF; - scrollbar-darkshadow-color: #98AAB1; -} - -/* General font families for common tags */ -font, th, td, p, div { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; } -a:link,a:active,a:visited { color: #005784; } -a:hover { text-decoration: underline; color: #D46400; } -hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} - -ul { list-style-image: url('images/dot.gif'); margin-left: 20px; margin-bottom: 0px; margin-top: 0px; } -h1 { margin-top: 0px; } - -label:hover { color: #D46400; } - -/* This is the border line & background colour round the entire page */ -table.bodyline { background-color: #F4F4F4; border: 1px #98AAB1 solid; } - -/* This is the outline round the main forum tables */ -table.forumline { background-color: #FFF; border: 2px #98AAB1 solid; } -td.forumline { background-color: #F8F8F8; border: 2px #98AAB1 solid; } - -img.screenshot { border: 2px #006699 solid; padding: 1px; background-color: #F8F8F8; } -img.screenshot { border: 2px #015884 solid; padding: 1px; background-color: #F8F8F8; } - -/* Main table cell colours and backgrounds */ -td.row1 { background-color: #F0F0F0; } -td.row2 { background-color: #E4E9ED; } -td.row3 { background-color: #D8DFE3; } - - -table.navbar { border: solid 1px #98AAB1; background-color: #DFE3E6; background-image: url('images/cellpic4.gif'); background-repeat: repeat-x; height: 22px; } -table.navbar td { color: #FFA34F; font-size: 11px; font-weight: bold; padding-left: 5px; } -table.navbar td a, table.navbar td a:visited { color: #3385AD; text-decoration: underline; } -table.navbar td a:hover, table.navbar td a:active { color: #FFA34F; text-decoration: underline; } -table.navbar td.nav_invert { color: #3385AD; font-size: 11px; font-weight: bold; padding-left: 5px; } -table.navbar td.nav_invert a, table.navbar td.nav_invert a:visited { color: #FFA34F; text-decoration: none; } -table.navbar td.nav_invert a:hover, table.navbar td.nav_invert a:active { color: #3385AD; text-decoration: underline; } - -.bottomnav { color: #444; font-size: 11px; font-weight: bold; } -.bottomnav a, .bottomnav a:visited { color: #3385AD; text-decoration: none; } -.bottomnav a:hover, .bottomnav a:active { color: #FFA34F; text-decoration: underline; } - -/* highlight text */ -.ast { color: #DD6900; font-weight: bold; } - -/* Header cells - the blue and silver gradient backgrounds */ -th { - color: #C8DCE6; font-size: 11px; font-weight: bold; - background-color: #328BB8; - background-image: url('images/cellpic3.gif'); - background-repeat: repeat-x; - height: 28px; -} - -td.explain { - background-color: #E7ECF0; - background-image: url('images/cellpic1.gif'); - background-repeat: repeat-x; - font-size: 10px; - color: #015884; - border: 0px #FFF solid; -} - -td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { - background-image: url('images/cellpic1.gif'); background-color: #BFC8CE; background-repeat: repeat-x; border: 0px #FFFFFF solid; height: 28px; -} - -td.cat,td.catHead,td.catBottom { - height: 29px; - border-width: 0px 0px 0px 0px; -} - - -/* - Setting additional nice inner borders for the main table cells. - The names indicate which sides the border will be on. - Don't worry if you don't understand this, just ignore it :-) -*/ -th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { - font-weight: bold; border: 0px #FFFFFF solid; height: 28px; } - -th.thHead,td.catHead { font-size: 12px; } -/*th.thHead,td.catHead { border-width: 1px 1px 0px 1px; } -th.thSides,td.catSides,td.spaceRow,td.explain { border-width: 0px 1px 0px 1px; } -th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } -th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } -th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } -th.thTop { border-width: 1px 0px 0px 0px; } -th.thCornerL { border-width: 1px 0px 0px 1px; } -th.thCornerR { border-width: 1px 1px 0px 0px; }*/ - - -/* The largest text used in the index page title and toptic title etc. */ -.maintitle,h1,h2 { - font-weight: bold; font-size: 20px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; - text-decoration: none; line-height : 120%; color : #000000; -} - - -/* General text */ -.gen { font-size : 12px; } -.genmed { font-size : 11px; } -.gensmall { font-size : 10px; } -.gen,.genmed,.gensmall { color : #000000; } -a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } -a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } - - -/* The register, login, search etc links at the top of the page */ -.mainmenu { font-size : 11px; color : #000000 } -a.mainmenu { text-decoration: none; color : #006699; } -a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } - - -/* Forum category titles */ -.cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} -a.cattitle { text-decoration: none; color : #006699; } -a.cattitle:hover{ text-decoration: underline; } - - -/* Forum title: Text and link to the forums used in: index.php */ -.forumlink { font-weight: bold; font-size: 12px; color : #006699; } -a.forumlink { text-decoration: none; color : #006699; } -a.forumlink:hover{ text-decoration: underline; color : #DD6900; } - - -/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ -.nav { font-weight: bold; font-size: 11px; color : #000000;} -a.nav { text-decoration: none; color : #006699; } -a.nav:hover { text-decoration: underline; } - - -/* titles for the topics: could specify viewed link colour too */ -.topictitle { font-weight: bold; font-size: 11px; color : #000000; } -a.topictitle:link { text-decoration: none; color : #006699; } -a.topictitle:visited { text-decoration: none; color : #5493B4; } -a.topictitle:hover { text-decoration: underline; color : #DD6900; } - - -/* Name of poster in viewmsg.php and viewtopic.php and other places */ -.name { font-size : 11px; color : #000000;} - -/* Location, number of posts, post date etc */ -.postdetails { font-size : 10px; color : #000000; } - - -/* The content of the posts (body of text) */ -.postbody { font-size : 12px;} -a.postlink:link { text-decoration: none; color : #006699 } -a.postlink:visited { text-decoration: none; color : #5493B4; } -a.postlink:hover { text-decoration: underline; color : #DD6900} - - -/* Quote & Code blocks */ -.code { - font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; - background-color: #FAFAFA; border: #D1D7DC; border-style: solid; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - -.quote { - font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; - background-color: #FAFAFA; border: #D1D7DC; border-style: solid; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px -} - - -/* Copyright and bottom info */ -.copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} -.copyright a { color: #006699; text-decoration: none;} -.copyright a:hover { color: #000000; text-decoration: underline;} - - -/* Form elements */ -input,textarea, select { - color : #000000; - font: normal 11px Verdana, Arial, Helvetica, sans-serif; - border-color : #000000; -} - -/* The text input fields background colour */ -input.post, textarea.post, select { - background-color: #FFFFFF; - border: solid 1px #000; - color: #000; -} - -input { text-indent : 2px; } - -/* The buttons used for bbCode styling in message post */ -input.button { - background-color : #EFEFEF; - color : #000000; - font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; -} - -/* The main submit button option */ -input.mainoption { - font-weight : bold; -} - -/* None-bold submit button */ -input.liteoption { - font-weight : normal; -} - -input.mainoption, input.liteoption { - height: 18px; - font-size: 11px; - color: #000; - padding: 0 5px; - margin: 0 5px; - border: solid 1px #000; - background: #F0F0F0 url('images/button.gif') repeat-x top left; -} - -input.mainoption:hover, input.liteoption:hover { - color: #FFA34F; - background: #F0F0F0 url('images/button.gif') repeat-x bottom left; -} - -/* This is the line in the posting page which shows the rollover - help line. This is actually a text box, but if set to be the same - colour as the background no one will know ;) -*/ -.helpline { background-color: #DEE3E7; border: solid 0px #FFF; } - -/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ -@import url("formIE.css"); - diff --git a/phpBB2_old/xs_mod/tpl/cache.tpl b/phpBB2_old/xs_mod/tpl/cache.tpl deleted file mode 100644 index a77396d..0000000 --- a/phpBB2_old/xs_mod/tpl/cache.tpl +++ /dev/null @@ -1,43 +0,0 @@ - -/*************************************************************************** - * cache.tpl - * --------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_MANAGE_CACHE}

    - -

    -{L_XS_MANAGE_CACHE_EXPLAIN2} -{RESULT} -

    - -
    - - - - -
    {L_INDEX} - - - - - - - - -
     {L_FAQ}{L_FAQ}   {L_SEARCH}{L_SEARCH}   {L_MEMBERLIST}{L_MEMBERLIST}   {L_USERGROUPS}{L_USERGROUPS}  - -  {L_REGISTER}{L_REGISTER}  - -
     {L_PROFILE}{L_PROFILE}   {PRIVATE_MESSAGE_INFO}{PRIVATE_MESSAGE_INFO}   {L_LOGIN_LOGOUT}{L_LOGIN_LOGOUT} 
    - -
    diff --git a/phpBB2_old/templates/subSilver/temp/profile_add_body.tpl b/phpBB2_old/templates/subSilver/temp/profile_add_body.tpl deleted file mode 100644 index 6ac7fa3..0000000 --- a/phpBB2_old/templates/subSilver/temp/profile_add_body.tpl +++ /dev/null @@ -1,278 +0,0 @@ - -
    - -{ERROR_BOX} - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_REGISTRATION_INFO}
    {L_ITEMS_REQUIRED}
    {L_USERNAME}: *{USERNAME}
    {L_USERNAME}: *
    {L_EMAIL_ADDRESS}: *
    {L_CURRENT_PASSWORD}: *
    - {L_CONFIRM_PASSWORD_EXPLAIN}
    - -
    {L_NEW_PASSWORD}: *
    - {L_PASSWORD_IF_CHANGED}
    - -
    {L_CONFIRM_PASSWORD}: *
    - {L_PASSWORD_CONFIRM_IF_CHANGED}
    - -
    {L_CONFIRM_CODE_IMPAIRED}

    {CONFIRM_IMG}

    {L_CONFIRM_CODE}: *
    {L_CONFIRM_CODE_EXPLAIN}
     
    {L_PROFILE_INFO}
    {L_PROFILE_INFO_NOTICE}
    {L_ICQ_NUMBER}: - -
    {L_AIM}: - -
    {L_MESSENGER}: - -
    {L_YAHOO}: - -
    {L_WEBSITE}: - -
    {L_LOCATION}: - -
    {L_OCCUPATION}: - -
    {L_INTERESTS}: - -
    {L_SIGNATURE}:
    {L_SIGNATURE_EXPLAIN}

    {HTML_STATUS}
    {BBCODE_STATUS}
    {SMILIES_STATUS}
    - -
     
    {L_PREFERENCES}
    {L_PUBLIC_VIEW_EMAIL}: - - {L_YES}   - - {L_NO}
    {L_HIDE_USER}: - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_REPLY}:
    - {L_NOTIFY_ON_REPLY_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_NOTIFY_ON_PRIVMSG}: - - {L_YES}   - - {L_NO}
    {L_POPUP_ON_PRIVMSG}:
    {L_POPUP_ON_PRIVMSG_EXPLAIN}
    - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ADD_SIGNATURE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_BBCODE}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_HTML}: - - {L_YES}   - - {L_NO}
    {L_ALWAYS_ALLOW_SMILIES}: - - {L_YES}   - - {L_NO}
    {L_BOARD_LANGUAGE}:{LANGUAGE_SELECT}
    {L_BOARD_STYLE}:{STYLE_SELECT}
    {L_TIMEZONE}:{TIMEZONE_SELECT}
    {L_DATE_FORMAT}:
    - {L_DATE_FORMAT_EXPLAIN}
    - -
     
    {L_AVATAR_PANEL}
    - - - - -
    {L_AVATAR_EXPLAIN}{L_CURRENT_IMAGE}
    {AVATAR}
     {L_DELETE_AVATAR}
    {L_UPLOAD_AVATAR_FILE}:
    {L_UPLOAD_AVATAR_URL}:
    {L_UPLOAD_AVATAR_URL_EXPLAIN}
    {L_LINK_REMOTE_AVATAR}:
    {L_LINK_REMOTE_AVATAR_EXPLAIN}
    {L_AVATAR_GALLERY}:
    {S_HIDDEN_FIELDS}  
    - -
    diff --git a/phpBB2_old/templates/subSilver/temp/viewtopic_body.tpl b/phpBB2_old/templates/subSilver/temp/viewtopic_body.tpl deleted file mode 100644 index 5342d30..0000000 --- a/phpBB2_old/templates/subSilver/temp/viewtopic_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {TOPIC_TITLE}
    - {PAGINATION}
    -  
    - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}
    - - - - - - {POLL_DISPLAY} - - - - - - - - - - - - - - - - - - - - -
    {L_VIEW_PREVIOUS_TOPIC} :: {L_VIEW_NEXT_TOPIC}  
    {L_AUTHOR}{L_MESSAGE}
    {postrow.POSTER_NAME}
    {postrow.POSTER_RANK}
    {postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}

    {postrow.POSTER_JOINED}
    {postrow.POSTER_POSTS}
    {postrow.POSTER_FROM}

    - - - - - - - - - - -
    {postrow.L_MINI_POST_ALT}{L_POSTED}: {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}

    {postrow.MESSAGE}{postrow.SIGNATURE}{postrow.EDITED_MESSAGE}
    {L_BACK_TO_TOP} - - - -
    {postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}
    - - - -
    {L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} 
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    - - - - - - -
    {S_WATCH_TOPIC}
    -  
    - {S_TOPIC_ADMIN}
    {JUMPBOX}{S_AUTH_LIST}
    diff --git a/phpBB2_old/templates/subSilver/theme_info.cfg b/phpBB2_old/templates/subSilver/theme_info.cfg deleted file mode 100644 index bd61eef..0000000 --- a/phpBB2_old/templates/subSilver/theme_info.cfg +++ /dev/null @@ -1,51 +0,0 @@ - \ No newline at end of file diff --git a/phpBB2_old/templates/subSilver/viewforum_body.tpl b/phpBB2_old/templates/subSilver/viewforum_body.tpl deleted file mode 100644 index 3c2a067..0000000 --- a/phpBB2_old/templates/subSilver/viewforum_body.tpl +++ /dev/null @@ -1,98 +0,0 @@ - -
    - - - - - - - - - - -
    {FORUM_NAME}
    {L_MODERATOR}: {MODERATORS}

    {LOGGED_IN_USER_LIST}
    {PAGINATION}
    {L_POST_NEW_TOPIC}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_TOPICS}  {L_REPLIES}  {L_AUTHOR}  {L_VIEWS}  {L_LASTPOST} 
    {topicrow.L_TOPIC_FOLDER_ALT}{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}{topicrow.TOPIC_TITLE}
    - {topicrow.GOTO_PAGE}
    {topicrow.REPLIES}{topicrow.TOPIC_AUTHOR}{topicrow.VIEWS}{topicrow.LAST_POST_TIME}
    {topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}
    {L_NO_TOPICS}
    {L_DISPLAY_TOPICS}: {S_SELECT_TOPIC_DAYS}  - -
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_INDEX} -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    -
    - - - - - -
    {JUMPBOX}
    - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_NEW_POSTS}{L_NEW_POSTS}  {L_NO_NEW_POSTS}{L_NO_NEW_POSTS}  {L_ANNOUNCEMENT}{L_ANNOUNCEMENT}
    {L_NEW_POSTS_HOT}{L_NEW_POSTS_HOT}  {L_NO_NEW_POSTS_HOT}{L_NO_NEW_POSTS_HOT}  {L_STICKY}{L_STICKY}
    {L_NEW_POSTS_LOCKED}{L_NEW_POSTS_LOCKED}  {L_NO_NEW_POSTS_LOCKED}{L_NO_NEW_POSTS_LOCKED}
    {S_AUTH_LIST}
    diff --git a/phpBB2_old/templates/subSilver/viewonline_body.tpl b/phpBB2_old/templates/subSilver/viewonline_body.tpl deleted file mode 100644 index e0813c0..0000000 --- a/phpBB2_old/templates/subSilver/viewonline_body.tpl +++ /dev/null @@ -1,53 +0,0 @@ - - - - - -
    {L_INDEX}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     {L_USERNAME}  {L_LAST_UPDATE}  {L_FORUM_LOCATION} 
    {TOTAL_REGISTERED_USERS_ONLINE}
     {reg_user_row.USERNAME}  {reg_user_row.LASTUPDATE}  {reg_user_row.FORUM_LOCATION} 
    .
    {TOTAL_GUEST_USERS_ONLINE}
     {guest_user_row.USERNAME}  {guest_user_row.LASTUPDATE}  {guest_user_row.FORUM_LOCATION} 
    - - - - - - -
    {L_ONLINE_EXPLAIN}{S_TIMEZONE}
    - -
    - - - - - -
    {JUMPBOX}
    - diff --git a/phpBB2_old/templates/subSilver/viewtopic_body.tpl b/phpBB2_old/templates/subSilver/viewtopic_body.tpl deleted file mode 100644 index 9fea16e..0000000 --- a/phpBB2_old/templates/subSilver/viewtopic_body.tpl +++ /dev/null @@ -1,91 +0,0 @@ - - - - - -
    {TOPIC_TITLE}
    - {PAGINATION}
    -  
    - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}
    - - - - - - {POLL_DISPLAY} - - - - - - - - - - - - - - - - - - - - -
    {L_VIEW_PREVIOUS_TOPIC} :: {L_VIEW_NEXT_TOPIC}  
    {L_AUTHOR}{L_MESSAGE}
    {postrow.POSTER_NAME}
    {postrow.POSTER_RANK}
    {postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}

    {postrow.POSTER_JOINED}
    {postrow.POSTER_POSTS}
    {postrow.POSTER_FROM}

    - - - - - - - - - - -
    {postrow.L_MINI_POST_ALT}{L_POSTED}: {postrow.POST_DATE}    {L_POST_SUBJECT}: {postrow.POST_SUBJECT}{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}

    {postrow.MESSAGE}{postrow.SIGNATURE}{postrow.EDITED_MESSAGE}
    {L_BACK_TO_TOP} - - - -
    {postrow.PROFILE_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}
    - - - -
    {L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER} 
    - - - - - - - - - - -
    {L_POST_NEW_TOPIC}   {L_POST_REPLY_TOPIC}   {L_INDEX} - -> {FORUM_NAME}{S_TIMEZONE}
    {PAGINATION} -
    {PAGE_NUMBER}
    - - - - - - -
    {S_WATCH_TOPIC}
    -  
    - {S_TOPIC_ADMIN}
    {JUMPBOX}{S_AUTH_LIST}
    diff --git a/phpBB2_old/templates/subSilver/viewtopic_poll_ballot.tpl b/phpBB2_old/templates/subSilver/viewtopic_poll_ballot.tpl deleted file mode 100644 index 1e0cb21..0000000 --- a/phpBB2_old/templates/subSilver/viewtopic_poll_ballot.tpl +++ /dev/null @@ -1,26 +0,0 @@ -

    - - - - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - -
     {poll_option.POLL_OPTION_CAPTION}
    - -
    {L_VIEW_RESULTS}
    {S_HIDDEN_FIELDS}

    - - - - - - - - - - -
    {POLL_QUESTION}
    - - - - - - - - - -
    {poll_option.POLL_OPTION_CAPTION} - - - - - - -
    {poll_option.POLL_OPTION_PERCENT}
    -
     {poll_option.POLL_OPTION_PERCENT} [ {poll_option.POLL_OPTION_RESULT} ]
    -
    {L_TOTAL_VOTES} : {TOTAL_VOTES}
    -
    -
    - - - - - - - - - - - - - - - - - -
    {L_XS_MANAGE_CACHE}
    {L_XS_TEMPLATE}{L_XS_STYLES}{L_XS_CLEAR_ALL_LC}{L_XS_COMPILE_ALL_LC}
    {styles.TPL}{styles.STYLES}{L_XS_CLEAR_CACHE_LC}{L_XS_COMPILE_CACHE_LC}
    -
    \ No newline at end of file diff --git a/phpBB2_old/xs_mod/tpl/clone.tpl b/phpBB2_old/xs_mod/tpl/clone.tpl deleted file mode 100644 index c1fe88d..0000000 --- a/phpBB2_old/xs_mod/tpl/clone.tpl +++ /dev/null @@ -1,39 +0,0 @@ - -/*************************************************************************** - * clone.tpl - * --------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_CLONE_STYLES}

    - -

    {L_XS_CLONE_STYLE_EXPLAIN}

    - - - - - - - - - - - - - - - - - - -
    {L_XS_CLONE_STYLES}
    {L_XS_TEMPLATE}{L_XS_STYLES} 
    {styles.TPL}{styles.STYLES}{L_XS_CLONE_STYLE_LC}
    -
    \ No newline at end of file diff --git a/phpBB2_old/xs_mod/tpl/clone2.tpl b/phpBB2_old/xs_mod/tpl/clone2.tpl deleted file mode 100644 index 613dd36..0000000 --- a/phpBB2_old/xs_mod/tpl/clone2.tpl +++ /dev/null @@ -1,73 +0,0 @@ - -/*************************************************************************** - * clone2.tpl - * ---------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_CLONE_STYLE}

    - -

    {L_XS_CLONE_STYLE_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - - - - {S_HIDDEN_FIELDS} - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_CLONE_STYLE}
    {L_XS_CLONE_STYLE_EXPLAIN2}
    {styles.L_CLONE}
    {L_XS_CLONE_STYLE_EXPLAIN3}
    {S_HIDDEN_FIELDS}
    {L_CLONE_STYLE3}
    {L_XS_CLONE_STYLE_EXPLAIN4}
    {L_XS_CLONE_NEWDIR_NAME} onkeyup="document.clone.clone_style_name_0.value=document.clone.clone_style_name.value" />
    {L_XS_CLONE_SELECT}
    {L_XS_CLONE_SELECT_EXPLAIN}
    - - - -
    - -
    {L_XS_CLONE_NEWNAME} - - - -
    diff --git a/phpBB2_old/xs_mod/tpl/config.tpl b/phpBB2_old/xs_mod/tpl/config.tpl deleted file mode 100644 index 8564001..0000000 --- a/phpBB2_old/xs_mod/tpl/config.tpl +++ /dev/null @@ -1,217 +0,0 @@ - -/*************************************************************************** - * confir.tpl - * ---------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_CONFIG_MAINTITLE}

    - -

    {L_XS_CONFIG_SUBTITLE}

    - - - - - - - - - - - - -
    {L_XS_CONFIG_UPDATED}
    - - - - - - - - - -
     
    {L_XS_CONFIG_UPDATED_EXPLAIN}
     
    -
    - - - - - - - - - - -
    {L_XS_CONFIG_WARNING}
    - - - - - - - - - -
     
    {L_XS_CONFIG_WARNING_EXPLAIN}
     
    -
    - - - - - - - - - - -
    {L_Error}
    - - - - - - - - - -
     
    {L_XS_FTP_COMMENT3}
     
    -
    - - - - - - - - - - -
    {L_Error}
    - - - - - - - - - -
     
    {ftperror.ERROR}
     
    -
    - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_CONFIG_TITLE}
    {L_XS_CONFIG_NAVBAR}
    {L_XS_CONFIG_NAVBAR_EXPLAIN}
    - -
    - -
    {L_XS_CONFIG_DEF_TEMPLATE}
    {L_XS_CONFIG_DEF_TEMPLATE_EXPLAIN}
    {L_XS_CONFIG_CHECK_SWITCHES}
    {L_XS_CONFIG_CHECK_SWITCHES_EXPLAIN}
    -
    -
    -
    -
    - -
    {L_XS_CONFIG_SHOW_ERRORS}
    {L_XS_CONFIG_SHOW_ERROR_EXPLAIN}
      
    {L_XS_CONFIG_TPL_COMMENTS}
    {L_XS_CONFIG_TPL_COMMENTS_EXPLAIN}
      
    {L_XS_CONFIG_CACHE}
    {L_XS_CONFIG_USE_CACHE}
    {L_XS_CONFIG_USE_CACHE_EXPLAIN}
      
    {L_XS_CONFIG_AUTO_COMPILE}
    {L_XS_CONFIG_AUTO_COMPILE_EXPLAIN}
      
    {L_XS_CONFIG_AUTO_RECOMPILE}
    {L_XS_CONFIG_AUTO_RECOMPILE_EXPLAIN}
      
    {L_XS_CONFIG_PHP}
    {L_XS_CONFIG_PHP_EXPLAIN}
    {L_XS_FTP_CONFIG}
    {L_XS_FTP_EXPLAIN}
    {L_XS_FTP_HOST}{HOST_GUESS}:
    {L_XS_FTP_LOGIN}{LOGIN_GUESS}:
    {L_XS_FTP_PATH}{PATH_GUESS}:
    {S_HIDDEN_FIELDS}
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_DEBUG_HEADER}
    {L_XS_DEBUG_EXPLAIN}
    {XS_DEBUG_HDR1}
    {L_XS_DEBUG_TPL_NAME}{XS_DEBUG_FILENAME1}
    {L_XS_DEBUG_CACHE_FILENAME}{XS_DEBUG_FILENAME2}
    {L_XS_DEBUG_DATA}{XS_DEBUG_DATA}
    diff --git a/phpBB2_old/xs_mod/tpl/downloads.tpl b/phpBB2_old/xs_mod/tpl/downloads.tpl deleted file mode 100644 index ca5ee1f..0000000 --- a/phpBB2_old/xs_mod/tpl/downloads.tpl +++ /dev/null @@ -1,66 +0,0 @@ - -/*************************************************************************** - * downloads.tpl - * ------------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_DOWNLOAD_STYLES}

    - -

    {L_XS_DOWNLOAD_EXPLAIN2}

    - - - - - - - - - - - - - - - -{S_HIDDEN_FIELDS} - - - - - - - - - - - - - - - - - -{S_HIDDEN_FIELDS} - - - - - - - - - - -
    {L_XS_DOWNLOAD_LOCATIONS}
    {url.NUM1}. {url.TITLE} [{L_XS_CLICK_HERE_LC}]{url.URL} [{L_XS_EDIT_LC}]
    {L_XS_EDIT_LINK}
    {L_XS_LINK_TITLE}:
    {L_XS_LINK_URL}:
    {L_XS_DELETE}:
    {L_XS_ADD_LINK}
    {L_XS_LINK_TITLE}:
    {L_XS_LINK_URL}:
    -
    - diff --git a/phpBB2_old/xs_mod/tpl/edit.tpl b/phpBB2_old/xs_mod/tpl/edit.tpl deleted file mode 100644 index 7119035..0000000 --- a/phpBB2_old/xs_mod/tpl/edit.tpl +++ /dev/null @@ -1,82 +0,0 @@ - -/*************************************************************************** - * edit.tpl - * -------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_EDIT_TEMPLATES}

    - -

    {L_XS_EDIT_TEMPLATE_COMMENT1}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_FILEMAN_BROWSER}
    - {L_XS_FILEMAN_DIRECTORY} - - {tree.SEPARATOR} - {tree.ITEM} - -
    - {begin_dirs.L_COUNT}
    - - » {begin_dirs.dir.NAME}
    - -
    {L_XS_FILEMAN_FILTER}
    {S_HIDDEN_FIELDS} - - - - - - - - - - - - - -
    {L_XS_FILEMAN_FILTER_EXT}
    {L_XS_FILEMAN_FILTER_CONTENT}
    -
    {L_XS_FILEMAN_FILENAME}{L_XS_FILEMAN_FILESIZE}{L_XS_FILEMAN_FILETIME}{L_XS_FILEMAN_OPTIONS}
    {begin_files.file.NAME}{begin_files.file.SIZE}{begin_files.file.TIME} {L_XS_FILEMAN_TIME_TODAY}{L_XS_FILEMAN_EDIT_LC}
    - diff --git a/phpBB2_old/xs_mod/tpl/edit_data.tpl b/phpBB2_old/xs_mod/tpl/edit_data.tpl deleted file mode 100644 index 1457a35..0000000 --- a/phpBB2_old/xs_mod/tpl/edit_data.tpl +++ /dev/null @@ -1,48 +0,0 @@ - -/*************************************************************************** - * edit_data.tpl - * ------------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 49 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_EDIT_STYLES_DATA}

    - -

    {L_XS_EDITDATA_EXPLAIN}

    - -
    {S_HIDDEN_FIELDS} - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_EDIT_STYLES_DATA}
    {L_XS_EDITDATA_VAR}{L_XS_EDITDATA_VALUE}{L_XS_EDITDATA_COMMENT}
    {row.TEXT}: 
    -
    -
    \ No newline at end of file diff --git a/phpBB2_old/xs_mod/tpl/edit_data_list.tpl b/phpBB2_old/xs_mod/tpl/edit_data_list.tpl deleted file mode 100644 index e09cd78..0000000 --- a/phpBB2_old/xs_mod/tpl/edit_data_list.tpl +++ /dev/null @@ -1,38 +0,0 @@ - -/*************************************************************************** - * edit_data_list.tpl - * ------------------ - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_EDIT_STYLES_DATA}

    - -

    {L_XS_EDITDATA_EXPLAIN}

    - - - - - - - - - - - - - - - - - -
    {L_XS_EDIT_STYLES_DATA}
    {L_XS_TEMPLATE}{L_XS_STYLES} 
    {styles.TPL}{styles.STYLE}{L_XS_EDIT_LC}
    -
    \ No newline at end of file diff --git a/phpBB2_old/xs_mod/tpl/edit_file.tpl b/phpBB2_old/xs_mod/tpl/edit_file.tpl deleted file mode 100644 index 2bc5d9e..0000000 --- a/phpBB2_old/xs_mod/tpl/edit_file.tpl +++ /dev/null @@ -1,149 +0,0 @@ - -/*************************************************************************** - * edit_file.tpl - * ------------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - - - -

    {L_XS_EDIT_TEMPLATES}

    - -

    {L_XS_EDIT_TEMPLATE_COMMENT2}

    - -
    {S_HIDDEN_FIELDS}{S_FILTER} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_FILEEDIT_EDIT_NAME} {FULLFILE}
    - {L_XS_FILEEDIT_LOCATION} - - {tree.SEPARATOR} - {tree.ITEM} - - / {FILE} -   - | -   - [{L_XS_FILEEDIT_RELOAD_LC}] - [{L_XS_FILEEDIT_DOWNLOAD_LC}] -
    {L_XS_FILEEDIT_FUNCTIONS}
    - {L_XS_FILEEDIT_REPLACE1}{L_XS_FILEEDIT_REPLACE2} [{L_XS_FILEEDIT_REPLACE_FIRST_LC}] [{L_XS_FILEEDIT_REPLACE_ALL_LC}] [{L_XS_FILEEDIT_REPLACE_UNDO_LC}]
    -
    {L_XS_FILEEDIT_BACKUPS}
    - [{L_XS_FILEEDIT_BACKUPS_SAVE_LC}]
    - - {backup.TIME} [{L_XS_FILEEDIT_BACKUPS_SHOW_LC}] [{L_XS_FILEEDIT_BACKUPS_RESTORE_LC}] [{L_XS_FILEEDIT_BACKUPS_DOWNLOAD_LC}] [{L_XS_FILEEDIT_BACKUPS_DELETE_LC}]
    - -
    {L_XS_FILEEDIT_UPLOAD}
    - {L_XS_FILEEDIT_UPLOAD_FILE} -
    -
    -
    diff --git a/phpBB2_old/xs_mod/tpl/export.tpl b/phpBB2_old/xs_mod/tpl/export.tpl deleted file mode 100644 index 28c6c71..0000000 --- a/phpBB2_old/xs_mod/tpl/export.tpl +++ /dev/null @@ -1,40 +0,0 @@ - -/*************************************************************************** - * export.tpl - * ---------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_EXPORT_STYLE}

    - -

    {L_XS_EXPORT_STYLE_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - -
    {L_XS_EXPORT_STYLE}
    {L_XS_TEMPLATE}{L_XS_STYLES} 
    {styles.TPL}{styles.STYLES}{L_XS_EXPORT_STYLE_LC}
    -
    \ No newline at end of file diff --git a/phpBB2_old/xs_mod/tpl/export2.tpl b/phpBB2_old/xs_mod/tpl/export2.tpl deleted file mode 100644 index 6315645..0000000 --- a/phpBB2_old/xs_mod/tpl/export2.tpl +++ /dev/null @@ -1,99 +0,0 @@ - -/*************************************************************************** - * export2.tpl - * ----------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_EXPORT_STYLE}

    - -

    {L_XS_EXPORT_STYLE_EXPLAIN}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_TITLE}
    {L_XS_EXPORT_TPL_NAME}:
    {L_XS_EXPORT_STYLE_NAMES}: - - - -
    - -
    {L_XS_EXPORT_STYLE_NAME}: - - - -
    {L_XS_EXPORT_STYLE_COMMENT}:
    {L_XS_EXPORT_WHERE}: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_EXPORT_WHERE_DOWNLOAD}

    {L_XS_EXPORT_WHERE_STORE}
      {L_XS_EXPORT_WHERE_STORE_DIR}:

    {L_XS_EXPORT_WHERE_FTP}
      {L_XS_FTP_HOST}:
      {L_XS_FTP_LOGIN}:
      {L_XS_FTP_PASS}:
      {L_XS_FTP_REMOTEDIR}:
    {L_XS_EXPORT_FILENAME}:
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/xs_mod/tpl/export_data.tpl b/phpBB2_old/xs_mod/tpl/export_data.tpl deleted file mode 100644 index 3c1aab1..0000000 --- a/phpBB2_old/xs_mod/tpl/export_data.tpl +++ /dev/null @@ -1,40 +0,0 @@ - -/*************************************************************************** - * export_data.tpl - * --------------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_EXPORT_STYLES_DATA}

    - -

    {L_XS_EXPORT_STYLES_DATA_EXPLAIN2}

    - - - - - - - - - - - - - - - - - - - -
    {L_XS_EXPORT_STYLES_DATA}
    {L_XS_TEMPLATE}{L_XS_STYLES} 
    {styles.TPL}{styles.STYLES}{L_XS_EXPORT_STYLE_DATA_LC}
    -
    \ No newline at end of file diff --git a/phpBB2_old/xs_mod/tpl/export_data2.tpl b/phpBB2_old/xs_mod/tpl/export_data2.tpl deleted file mode 100644 index 5223ff6..0000000 --- a/phpBB2_old/xs_mod/tpl/export_data2.tpl +++ /dev/null @@ -1,42 +0,0 @@ - -/*************************************************************************** - * export_data2.tpl - * ---------------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_EXPORT_STYLES_DATA}

    - -

    {L_XS_EXPORT_STYLES_DATA_EXPLAIN2}

    {L_XS_EXPORT_STYLES_DATA_EXPLAIN3}

    - - -
    {S_HIDDEN_FIELDS} - - - - - - - - - - - - - - - - - -
    {L_XS_EXPORT_STYLES_DATA}
    {L_XS_STYLES}{L_XS_SELECT}
    {styles.STYLE}
    -
    -
    \ No newline at end of file diff --git a/phpBB2_old/xs_mod/tpl/frame_top.tpl b/phpBB2_old/xs_mod/tpl/frame_top.tpl deleted file mode 100644 index c23875d..0000000 --- a/phpBB2_old/xs_mod/tpl/frame_top.tpl +++ /dev/null @@ -1,57 +0,0 @@ - -/*************************************************************************** - * frame_top.tpl - * ------------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - - - - - - - - - - - - - -
    - - - -
    - -[{left_nav.TEXT}] - -
    - -
    - - \ No newline at end of file diff --git a/phpBB2_old/xs_mod/tpl/frameset.tpl b/phpBB2_old/xs_mod/tpl/frameset.tpl deleted file mode 100644 index 9fb2bea..0000000 --- a/phpBB2_old/xs_mod/tpl/frameset.tpl +++ /dev/null @@ -1,22 +0,0 @@ - -/*************************************************************************** - * frameset.tpl - * ------------ - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - - - - - - - \ No newline at end of file diff --git a/phpBB2_old/xs_mod/tpl/ftp.tpl b/phpBB2_old/xs_mod/tpl/ftp.tpl deleted file mode 100644 index 3e16a38..0000000 --- a/phpBB2_old/xs_mod/tpl/ftp.tpl +++ /dev/null @@ -1,89 +0,0 @@ - -/*************************************************************************** - * ftp.tpl - * ------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_FTP_TITLE}

    - - -

    {L_XS_FTP_COMMENT1}

    - - -

    {L_XS_FTP_COMMENT2}

    - - - - - - - - - - - -
    {L_ERROR}
    - - - - - - - - - -
     
    {error.MSG}
     
    - - -
    {S_HIDDEN_FIELDS}{S_EXTRA_FIELDS} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_FTP_CONFIG} -
    {L_XS_FTP_SELECT_METHOD}: - {L_XS_FTP_SELECT_LOCAL}
    - {L_XS_FTP_SELECT_FTP}
    -
    {L_XS_FTP_SETTINGS}
    {L_XS_FTP_SETTINGS}
    {L_XS_FTP_HOST}{HOST_GUESS}:
    {L_XS_FTP_LOGIN}{LOGIN_GUESS}:
    {L_XS_FTP_PATH}{PATH_GUESS}:
    {L_XS_FTP_PASS}:
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/xs_mod/tpl/import.tpl b/phpBB2_old/xs_mod/tpl/import.tpl deleted file mode 100644 index 7ad6d83..0000000 --- a/phpBB2_old/xs_mod/tpl/import.tpl +++ /dev/null @@ -1,90 +0,0 @@ - -/*************************************************************************** - * import.tpl - * ---------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_IMPORT_STYLES}

    - -

    {L_XS_IMPORT_EXPLAIN}

    - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_FILE}{L_XS_TEMPLATE}{L_XS_STYLES}{L_XS_UPLOAD_TIME}{L_XS_COMMENT}{L_XS_OPTIONS}
    {styles.FILE2}{styles.TEMPLATE}-{list.STYLE}
    {styles.DATE}-{styles.COMMENT}{styles.error.ERROR} - - [{L_XS_IMPORT_LC}] - [{L_XS_LIST_FILES_LC}] - - [{L_XS_DELETE_FILE_LC}] -
    {L_XS_IMPORT_NO_CACHED}
    - -
    - - - -
    - - - - - - - - - - - - - - - -
    {L_XS_ADD_STYLES}
    {L_XS_ADD_STYLES_WEB}: -
    {S_HIDDEN_FIELDS} - - -
    -
    {L_XS_ADD_STYLES_COPY}: -
    {S_HIDDEN_FIELDS} - - -
    -
    {L_XS_ADD_STYLES_UPLOAD}: -
    {S_HIDDEN_FIELDS} - - -
    -
    - -
    \ No newline at end of file diff --git a/phpBB2_old/xs_mod/tpl/import2.tpl b/phpBB2_old/xs_mod/tpl/import2.tpl deleted file mode 100644 index a921d6c..0000000 --- a/phpBB2_old/xs_mod/tpl/import2.tpl +++ /dev/null @@ -1,47 +0,0 @@ - -/*************************************************************************** - * import2.tpl - * ----------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -
    {S_RETURN} - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_IMPORT_TPL}
    {L_XS_IMPORT_TPL_COMMENT}

    {L_XS_IMPORT_TPL_FILENAME} {STYLE_FILENAME}
    {L_XS_IMPORT_TPL_TPLNAME} {STYLE_TEMPLATE}
    {L_XS_IMPORT_TPL_COMMENT2} {STYLE_COMMENT}
    {L_XS_IMPORT_SELECT_STYLES} - - - - - - -
        ()
    {L_XS_IMPORT_INSTALL_STYLE}     ()
    {S_HIDDEN_FIELDS}
    diff --git a/phpBB2_old/xs_mod/tpl/index.tpl b/phpBB2_old/xs_mod/tpl/index.tpl deleted file mode 100644 index 268df46..0000000 --- a/phpBB2_old/xs_mod/tpl/index.tpl +++ /dev/null @@ -1,98 +0,0 @@ - -/*************************************************************************** - * index.tpl - * --------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_TITLE}

    - -

    {L_XS_MAIN_COMMENT1}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_MAIN_TITLE}
    {L_XS_CONFIGURATION}:
    {L_XS_CONFIGURATION_EXPLAIN}
    [{L_XS_SET_CONFIGURATION_LC}]
    {L_XS_INSTALL_UNINSTALL_STYLES}
    {L_XS_INSTALL_STYLES}:
    {L_XS_INSTALL_STYLES_EXPLAIN}
    [{L_XS_INSTALL_STYLES_LC}]
    {L_XS_UNINSTALL_STYLES}:
    {L_XS_UNINSTALL_STYLES_EXPLAIN}
    [{L_XS_UNINSTALL_STYLES_LC}]
    {L_XS_MANAGE_STYLES}
    {L_XS_DEFAULT_STYLE}:
    {L_XS_DEFAULT_STYLE_EXPLAIN}
    [{L_XS_SET_DEFAULT_STYLE_LC}]
    {L_XS_MANAGE_CACHE}:
    {L_XS_MANAGE_CACHE_EXPLAIN}
    [{L_XS_MANAGE_CACHE_LC}]
    {L_XS_IMPORT_EXPORT_STYLES}
    {L_XS_MAIN_COMMENT2}
    {L_XS_IMPORT_STYLES}:
    {L_XS_IMPORT_STYLES_EXPLAIN}
    [{L_XS_IMPORT_STYLES_LC}]
    {L_XS_EXPORT_STYLES}:
    {L_XS_EXPORT_STYLES_EXPLAIN}
    [{L_XS_EXPORT_STYLES_LC}]
    {L_XS_CLONE_STYLES}:
    {L_XS_CLONE_STYLES_EXPLAIN}
    [{L_XS_CLONE_STYLES_LC}]
    {L_XS_EDIT_TEMPLATES}
    {L_XS_EDIT_TEMPLATES}:
    {L_XS_EDIT_TEMPLATES_EXPLAIN}
    [{L_XS_EDIT_TEMPLATES_LC}]
    {L_XS_EDIT_STYLES_DATA}:
    {L_XS_EDIT_STYLES_DATA_EXPLAIN}
    [{L_XS_EDIT_STYLES_DATA_LC}]
    {L_XS_EXPORT_STYLES_DATA}:
    {L_XS_EXPORT_STYLES_DATA_EXPLAIN}
    [{L_XS_EXPORT_STYLES_DATA_LC}]
    {L_XS_OTHER_FUNCTIONS}
    {L_XS_CHECK_FOR_UPDATES}:
    {L_XS_CHECK_FOR_UPDATES_EXPLAIN}
    [{L_XS_CHECK_FOR_UPDATES_LC}]
    - -
    - diff --git a/phpBB2_old/xs_mod/tpl/install.tpl b/phpBB2_old/xs_mod/tpl/install.tpl deleted file mode 100644 index 857a874..0000000 --- a/phpBB2_old/xs_mod/tpl/install.tpl +++ /dev/null @@ -1,45 +0,0 @@ - -/*************************************************************************** - * install.tpl - * ----------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_INSTALL_STYLES}

    - -

    {L_XS_INSTALL_STYLES_EXPLAIN2}

    - -
    {S_HIDDEN_FIELDS} - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_INSTALL_STYLES}
    {L_XS_TEMPLATE}{L_XS_STYLE}{L_XS_INSTALL}{L_XS_SELECT}
    {styles.STYLE}{styles.THEME}{L_XS_INSTALL_LC}
    -
    -
    \ No newline at end of file diff --git a/phpBB2_old/xs_mod/tpl/message.tpl b/phpBB2_old/xs_mod/tpl/message.tpl deleted file mode 100644 index c059e97..0000000 --- a/phpBB2_old/xs_mod/tpl/message.tpl +++ /dev/null @@ -1,35 +0,0 @@ - -/*************************************************************************** - * message.tpl - * ----------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - - - - - - - - -
    {MESSAGE_TITLE}
    - - - - - - - - - -
     
    {MESSAGE_TEXT}
     
    - diff --git a/phpBB2_old/xs_mod/tpl/styles.tpl b/phpBB2_old/xs_mod/tpl/styles.tpl deleted file mode 100644 index dc93343..0000000 --- a/phpBB2_old/xs_mod/tpl/styles.tpl +++ /dev/null @@ -1,108 +0,0 @@ - -/*************************************************************************** - * styles.tpl - * ---------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_DEF_TITLE}

    - -

    {L_XS_DEF_EXPLAIN}

    - - - - - - - - - -
    {L_XS_STYLES_USERS}
    - - - - - - - - - - -
    {user.NUM}: [{user.ID}] {user.NAME}
    -
    -
    - - - - - - - - - - - - - - - - - - - - -
    {L_XS_ID}{L_XS_STYLE}{L_XS_TEMPLATE}{L_XS_USERS}{L_XS_OPTIONS}
    {styles.ID}{styles.STYLE}{styles.TEMPLATE}{styles.TOTAL} - - - - [{L_XS_STYLES_NO_OVERRIDE}] - - - [{L_XS_STYLES_DO_OVERRIDE}] - - - - [{L_XS_STYLES_SET_DEFAULT}] - - [{L_XS_STYLES_MAKE_PUBLIC}] - - - [{L_XS_STYLES_MAKE_ADMIN}] - - -
    - [{L_XS_STYLES_SWITCH_ALL}] -
    - -
    {S_HIDDEN_FIELDS} - -
    - - -   - -
    - -
    diff --git a/phpBB2_old/xs_mod/tpl/uninstall.tpl b/phpBB2_old/xs_mod/tpl/uninstall.tpl deleted file mode 100644 index 739fdf9..0000000 --- a/phpBB2_old/xs_mod/tpl/uninstall.tpl +++ /dev/null @@ -1,69 +0,0 @@ - -/*************************************************************************** - * uninstall.tpl - * ------------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_UNINSTALL_STYLES}

    - -

    {L_XS_UNINSTALL_STYLES_EXPLAIN2}

    - - - - - - - - - -
    {L_Information}
    - - - - - - - - - -
     
    {L_XS_STYLE_REMOVED}
     
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_UNINSTALL_STYLES}
    {L_XS_TEMPLATE}{L_XS_STYLE}{L_XS_UNINSTALL}{L_XS_REMOVE_FILES}
    {styles.TPL}{styles.item.THEME}{L_XS_UNINSTALL_LC}{L_XS_UNINSTALL2_LC} 
    -
    \ No newline at end of file diff --git a/phpBB2_old/xs_mod/tpl/update.tpl b/phpBB2_old/xs_mod/tpl/update.tpl deleted file mode 100644 index c4673c0..0000000 --- a/phpBB2_old/xs_mod/tpl/update.tpl +++ /dev/null @@ -1,52 +0,0 @@ - -/*************************************************************************** - * update.tpl - * ---------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_UPDATES}

    - -

    {L_XS_UPDATES_COMMENT}

    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_UPDATES}
    {L_XS_UPDATE_INFO1}
    {L_XS_UPDATE_NAME}{L_XS_UPDATE_TYPE}{L_XS_UPDATE_CURRENT_VERSION}
    {row.NAME}{row.TYPE}{row.VERSION}
    {L_XS_UPDATE_TIMEOUT}
    {S_HIDDEN_FIELDS}
    -
    - -
    diff --git a/phpBB2_old/xs_mod/tpl/update2.tpl b/phpBB2_old/xs_mod/tpl/update2.tpl deleted file mode 100644 index 4e50b39..0000000 --- a/phpBB2_old/xs_mod/tpl/update2.tpl +++ /dev/null @@ -1,60 +0,0 @@ - -/*************************************************************************** - * update2.tpl - * ----------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - -

    {L_XS_UPDATES}

    - -

    {L_XS_UPDATES_COMMENT2}

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    {L_XS_UPDATE_NAME}{L_XS_UPDATE_TYPE}{L_XS_UPDATE_CURRENT_VERSION}{L_XS_UPDATE_LATEST_VERSION}{L_XS_UPDATE_DOWNLOADINFO}{L_XS_UPDATE_FILEINFO}
    {row.ITEM}{row.TYPE}{row.VERSION}{row.update.VERSION} - [{L_XS_DOWNLOAD_LC}] -   - [{L_XS_IMPORT_LC}] - [{L_XS_INFO_LC}] {row.noupdate.MESSAGE}[{L_XS_INFO_LC}] {row.error.ERROR} 
    {COUNT_TOTAL}, {COUNT_ERROR}, {COUNT_UPDATE}
    - -
    diff --git a/phpBB2_old/xs_mod/tpl/xs_footer.tpl b/phpBB2_old/xs_mod/tpl/xs_footer.tpl deleted file mode 100644 index 3d11ecc..0000000 --- a/phpBB2_old/xs_mod/tpl/xs_footer.tpl +++ /dev/null @@ -1,36 +0,0 @@ - -/*************************************************************************** - * xs_footer.tpl - * ------------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - - - - - -
    Powered by phpBB © phpBB Group and by eXtreme Styles mod © Vjacheslav Trushkin.
    - - - \ No newline at end of file diff --git a/phpBB2_old/xs_mod/tpl/xs_header.tpl b/phpBB2_old/xs_mod/tpl/xs_header.tpl deleted file mode 100644 index 3062ffc..0000000 --- a/phpBB2_old/xs_mod/tpl/xs_header.tpl +++ /dev/null @@ -1,45 +0,0 @@ - -/*************************************************************************** - * xs_header.tpl - * ------------- - * copyright : (C) 2003, 2004 CyberAlien - * support : http://www.phpbbstyles.com - * - * version : 2.0.1 - * - * file revision : 45 - * project revision : 51 - * last modified : 25 Aug 2004 11:51:48 - * - ***************************************************************************/ - - - - - - - - - - - -
    - - - - - - -
    diff --git a/phppages/class.myRSS.php b/phppages/class.myRSS.php deleted file mode 100644 index 96ace0d..0000000 --- a/phppages/class.myRSS.php +++ /dev/null @@ -1,118 +0,0 @@ -channelTitle == "") -die("Please specify a channel title"); - -if(ereg("$http://", $this->channelLink) == false) -die("Please specify a channel link"); - -if($this->channelDesc == "") -die("Please specify a channel description"); - -if($this->imageTitle == "") -die("Please specify an image title"); - -if(ereg("$http://", $this->imageLink) == false) -die("Please specify an image link"); - -if(ereg("$http://", $this->imageURL) == false) -die("Please specify an image URL"); -} - -// Connect to the database, generate the RSS XML and return it -function GetRSS($dbServer, $dbUser, $dbPass, $dbName, $tableName, -$titleFieldName, $descFieldName, $linkFieldName, $linkTemplate) -{ -// Make sure all channel/image values have been set -$this->checkValues(); - -$rssValue = " \r \n"; -$rssValue .= "\r\n"; -$rssValue .= "\r\n"; - -// Build the channel tag -$rssValue .= "\r\n"; -$rssValue .= "" . $this->channelTitle . "\r\n"; -$rssValue .= "" . $this->channelLink . "\r\n"; -$rssValue .= "" . $this->channelDesc . "\r\n"; -$rssValue .= "en-us\r\n"; -$rssValue .= "\r\n"; - -// Build the image tag -$rssValue .= "\r\n"; -$rssValue .= "" . $this->imageTitle . "\r\n"; -$rssValue .= "" . $this->imageURL . "\r\n"; -$rssValue .= "" . $this->imageLink . "\r\n"; -$rssValue .= "\r\n"; - -// -- Table structure for table 'newsContent' -// -- -// -// CREATE TABLE newsContent ( -// title varchar(40) default NULL, -// date date default NULL, -// body text -// ) - - -// Connect to the database and build the tags -$svrConn = @mysql_connect($dbServer, $dbUser, $dbPass) or die("Couldn't -connect to database"); -$dbConn = @mysql_select_db($dbName, $svrConn) or die("Couldn't select -database"); - -// Make sure the table exists -$tableExists = false; -$tResult = mysql_list_tables($dbName); - -while($tRow = mysql_fetch_row($tResult)) -{ -if(strtolower($tableName) == strtolower($tRow[0])) -{ -$tableExists = true; -break; -} -} - -if(!$tableExists) -die("Table $tableName doesn't exist in the database!"); - -$rResult = mysql_query("select $titleFieldName, $descFieldName, -$linkFieldName from $tableName order by $linkFieldName desc limit 10") or -die ('An error occured while retrieving data from the database. Please contact the webmaster if this problem -persists.'); - -// The records were retrieved OK, let's start building the item tags -while($rRow = mysql_fetch_array($rResult)) -{ -$rssValue .= "\r\n"; -$rssValue .= "" . $rRow[$titleFieldName] . "\r\n"; -$rssValue .= "" . $rRow[$descFieldName] . "\r\n"; -$rssValue .= "" . str_replace("{linkId}", $rRow[$linkFieldName], -$linkTemplate) . "\r\n"; -$rssValue .= "\r\n"; -} - -// Add the closing rss tag and return the value -$rssValue .= "\r\n"; -return $rssValue; -// end tag of GetRSS function -} -// end tag of the class -} -?> \ No newline at end of file diff --git a/phppages/class.myRSS.php~ b/phppages/class.myRSS.php~ deleted file mode 100644 index 9a9a394..0000000 --- a/phppages/class.myRSS.php~ +++ /dev/null @@ -1,118 +0,0 @@ -channelTitle == "") -die("Please specify a channel title"); - -if(ereg("$http://", $this->channelLink) == false) -die("Please specify a channel link"); - -if($this->channelDesc == "") -die("Please specify a channel description"); - -if($this->imageTitle == "") -die("Please specify an image title"); - -if(ereg("$http://", $this->imageLink) == false) -die("Please specify an image link"); - -if(ereg("$http://", $this->imageURL) == false) -die("Please specify an image URL"); -} - -// Connect to the database, generate the RSS XML and return it -function GetRSS($dbServer, $dbUser, $dbPass, $dbName, $tableName, -$titleFieldName, $descFieldName, $linkFieldName, $linkTemplate) -{ -// Make sure all channel/image values have been set -$this->checkValues(); - -$rssValue = " \r \n"; -$rssValue .= "\r\n"; -$rssValue .= "\r\n"; - -// Build the channel tag -$rssValue .= "\r\n"; -$rssValue .= "" . $this->channelTitle . "\r\n"; -$rssValue .= "" . $this->channelLink . "\r\n"; -$rssValue .= "" . $this->channelDesc . "\r\n"; -$rssValue .= "en-us\r\n"; -$rssValue .= "\r\n"; - -// Build the image tag -$rssValue .= "\r\n"; -$rssValue .= "" . $this->imageTitle . "\r\n"; -$rssValue .= "" . $this->imageURL . "\r\n"; -$rssValue .= "" . $this->imageLink . "\r\n"; -$rssValue .= "\r\n"; - -// -- Table structure for table 'newsContent' -// -- -// -// CREATE TABLE newsContent ( -// title varchar(40) default NULL, -// date date default NULL, -// body text -// ) - - -// Connect to the database and build the tags -$svrConn = @mysql_connect($dbServer, $dbUser, $dbPass) or die("Couldn't -connect to database"); -$dbConn = @mysql_select_db($dbName, $svrConn) or die("Couldn't select -database"); - -// Make sure the table exists -$tableExists = false; -$tResult = mysql_list_tables($dbName); - -while($tRow = mysql_fetch_row($tResult)) -{ -if(strtolower($tableName) == strtolower($tRow[0])) -{ -$tableExists = true; -break; -} -} - -if(!$tableExists) -die("Table $tableName doesn't exist in the database!"); - -$rResult = mysql_query("select $titleFieldName, $descFieldName, -$linkFieldName from $tableName order by $linkFieldName desc limit 10") or -die ('An error occured while retrieving data from the database. Please contact the webmaster if this problem -persists.'); - -// The records were retrieved OK, let's start building the item tags -while($rRow = mysql_fetch_array($rResult)) -{ -$rssValue .= "\r\n"; -$rssValue .= "" . $rRow[$titleFieldName] . "\r\n"; -$rssValue .= "" . $rRow[$descFieldName] . "\r\n"; -$rssValue .= "" . str_replace("{linkId}", $rRow[$linkFieldName], -$linkTemplate) . "\r\n"; -$rssValue .= "\r\n"; -} - -// Add the closing rss tag and return the value -$rssValue .= "\r\n"; -return $rssValue; -// end tag of GetRSS function -} -// end tag of the class -} -?> \ No newline at end of file diff --git a/phppages/foto.php b/phppages/foto.php deleted file mode 100755 index 0ad6a1b..0000000 --- a/phppages/foto.php +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - http://frederik.gotdns.org:1976 - Picture - - - - -\n"); -include $ROOT."/header.shtml"; - -// Print the page title -printf("


    \n"); -printf("\n\n"); -printf("

    Back to index page."); - -// Print the footer -printf("\n"); -include $ROOT."/footer.php"; -?> - - - diff --git a/phppages/foto.php~ b/phppages/foto.php~ deleted file mode 100644 index 2008a5b..0000000 --- a/phppages/foto.php~ +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - http://frederik.gotdns.org:1976 - Picture - - -\n"); -include $ROOT."/header.shtml"; - -// Print the page title -printf("


    \n"); -printf("\n\n"); -printf("

    Back to index page."); - -// Print the footer -printf("\n"); -include $ROOT."/footer.php"; -?> - - - \ No newline at end of file diff --git a/phppages/fotobiz.php b/phppages/fotobiz.php deleted file mode 100755 index 075b619..0000000 --- a/phppages/fotobiz.php +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - http://frederik.gotdns.org:1976 - Picture - - - - -\n"); -include $ROOT."/header.shtml"; - -// Print the page title -printf("


    \n"); -printf("\n\n"); -printf("

    Back to index page."); - -// Print the footer -printf("\n"); -include $ROOT."/footer.php"; -?> - - - diff --git a/phppages/mail.php b/phppages/mail.php deleted file mode 100644 index ee7783f..0000000 --- a/phppages/mail.php +++ /dev/null @@ -1,29 +0,0 @@ - -PHP Mail Sender - -Invalid email address"; - echo "Back"; - } elseif ($subject == "") { - echo "

    No subject

    "; - echo "Back"; - } - - /* Sends the mail and outputs the "Thank you" string if the mail is successfully sent, or the error string otherwise. */ - elseif (mail($email,$subject,$message)) { - echo "

    Thank you for sending email

    "; - } else { - echo "

    Can't send email to $email

    "; - } - ?> - - - \ No newline at end of file diff --git a/phppages/mail.shtml b/phppages/mail.shtml deleted file mode 100644 index 9dbd93d..0000000 --- a/phppages/mail.shtml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - Send an email - http://vanrenterghem.biz/ - - - - - -
    -Email
    - -

    Subject
    - -

    Message
    - -

    -

    - - - diff --git a/phppages/mail.shtml~ b/phppages/mail.shtml~ deleted file mode 100644 index b445323..0000000 --- a/phppages/mail.shtml~ +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - Send an email - http://vanrenterghem.biz/ - - - - -
    -Email
    - -

    Subject
    - -

    Message
    - -

    -

    - - diff --git a/phppages/photoblog.php b/phppages/photoblog.php deleted file mode 100755 index bbd570a..0000000 --- a/phppages/photoblog.php +++ /dev/null @@ -1,212 +0,0 @@ -$width_scale) { - $ratio = $width/$width_scale; - $width = $width_scale; - $height = round($height/$ratio); - } - $images = array_keys($imagearray); - -foreach ($images as $image) { - if (!isset($last)) { - $first = $image; - } - if ($now) { - $next = $image; - $now = false; - } - if ($image == $imagename) { - $prev = $last; - $now = true; - } - $last = $image; - } - -if (!isset($prev)){ - $prev = $last; - } -if (!isset($next)){ - $next = $first; - } -print "
    -
    - -
    -<-- previous -back -next --> -
    -
    -
    -\"".$img_data['file']."\" -
    ".$img_data['date']."
    -".$img_data['subject']." -
    -

    \n"; -print $img_data['description']; -print "


    \n\n"; - -// $notify = show_comments($img_data['file'], $table); -// comment_form($img_data['file'], $table, $notify); -} - -function show_all($imagearray, $page) { -global $HTTP_SERVER_VARS, $home, $serverroot, $table, $picsperpage; - -// given page number and number of pics per page, find starting and -// ending indexes -$start = 0; -if ($page == 0) { -$end = $start+$picsperpage; -} -else { -$start = $page*$picsperpage; -if ($start > count($imagearray)) { -$start = 0; -$end = $start+$picsperpage; -} -else { -$end = $start+$picsperpage; -} -} -// find out how many pages there are -$numpages = ceil(count($imagearray)/$picsperpage); -print "
    - -
    - -

    These pictures were taken with my mobile phone.

    - - -
    \n\n"; - -print "
    -

    photo tekniklog

    -

    ".count($imagearray)." images; $picsperpage images/page; page "; -print $page+1; -print "/".$numpages."

    -
    \n\n"; - -print "
    "; -if ($page>0) { -$last = $page-1; -print "<<"; -} -print "
    \n
    "; -if ($page<$numpages-1) { -$next = $page+1; -print ">>"; -} -print "
    \n
    "; - -print "
    -
    \n\n"; - -$curr = 0; -foreach ($imagearray as $image) { -if (($curr>=$start)&&($curr<$end)) { -$thumbname = "/Pictures/camblog/tiny".$image['file']; - -// $comments = num_comments($image['file'], $table); -//if ($comments==0) { -//$nocomments = "No comments"; -//} -//else if ($comments==1) { -//$nocomments = "One comment"; -//} -//else { -//$nocomments = "$comments comments"; -//} - -print "
    -\"".$image['date']."\"
    \n"; -if ($comments>0) { -print "$nocomments
    "; -} else { -print "$nocomments
    "; -} -print $image['date']."
    "; -print $image['subject']; -print "
    \n"; -} -$curr++; -} - -print "
    \n\n"; -print "
    \n"; - -if ($numpages>1) { -print "
    "; -print "~ Page ~
    \n"; -for ($i = 0; $i < $numpages; $i++) { -if ($page==$i) { -print " $i "; -} -else { -print " $i "; -} -} -print "
    \n\n"; -} -} - -function sanitize($input) { -$output = str_replace("
    ", "[br]", $input); -$output = htmlspecialchars($output, ENT_QUOTES); -$output = str_replace("[br]", "
    \n", $input); -return $output; -} - -$workincludefile = $serverroot.$home."/camblog/index.txt"; -$worklinearray = file($workincludefile); -$worklines = array_keys($worklinearray); -foreach ($worklines as $line) { -$element = explode("::", $worklinearray[$line]); -$thisfile = $element[0]; -$thissubject = sanitize($element[1]); -$thisdesc = sanitize($element[2]); -$thisdate = date("M j Y H:i", substr($thisfile, 0, -4)); -$images[$thisfile] = array("file"=>$thisfile, "subject"=>$thissubject, "description"=>$thisdesc, "date"=>$thisdate); -} -$images = array_reverse($images, TRUE); -$image = $HTTP_GET_VARS['image']; -$page = $HTTP_GET_VARS['page']; -if (empty($page)) { $page = 0; } -if (array_key_exists($image, $images)) { -show_image($image, $images); -} else { -show_all($images, $page); -} - -include('../footer.php'); - -?> - diff --git a/phppages/rss.php b/phppages/rss.php deleted file mode 100644 index 2bb3b83..0000000 --- a/phppages/rss.php +++ /dev/null @@ -1,36 +0,0 @@ -channelTitle = "My personal news"; -$myRSS->channelLink = "http://frederik.gotdns.org:1976/"; -$myRSS->channelDesc = "frederik.gotdns.org personal news"; - -$myRSS->imageTitle = "My personal news"; -$myRSS->imageLink = "http://www.mysite.com/mylogo.gif"; -$myRSS->imageURL = "http://www.mysite.com"; - -// vanrenterghem.biz database variables -// $dbServer="localhost"; -// $dbUser="frederik_fred"; -// $dbPass="fred"; -// $dbName="frederik_News"; -// $tableName="newsContent"; - -// frederik.gotdns.org:1976 database variables -$dbServer="localhost"; -$dbUser="webnews"; -$dbPass="BlaBla123"; -$dbName="website"; -$tableName="newsContent"; - -// Get the RSS data -$rssData = $myRSS->GetRSS($dbServer, $dbUser, $dbPass, $dbName, -$tableName, "title", "body", "date", "http://vanrenterghem.biz/News/"); - -// Output the generated RSS XML -header("Content-type: text/xml"); -echo $rssData; -?> diff --git a/phppages/rss.php~ b/phppages/rss.php~ deleted file mode 100644 index d8a4b5c..0000000 --- a/phppages/rss.php~ +++ /dev/null @@ -1,36 +0,0 @@ -channelTitle = "My sample channel"; -$myRSS->channelLink = "http://www.mysite.com"; -$myRSS->channelDesc = "My sample RSS XML channel"; - -$myRSS->imageTitle = "My sample channel"; -$myRSS->imageLink = "http://www.mysite.com/mylogo.gif"; -$myRSS->imageURL = "http://www.mysite.com"; - -// vanrenterghem.biz database variables -// $dbServer="localhost"; -// $dbUser="frederik_fred"; -// $dbPass="fred"; -// $dbName="frederik_News"; -// $tableName="newsContent"; - -// frederik.gotdns.org:1976 database variables -$dbServer="localhost"; -$dbUser="frederik"; -$dbPass="Fred1210"; -$dbName="website"; -$tableName="newsContent"; - -// Get the RSS data -$rssData = $myRSS->GetRSS($dbServer, $dbUser, $dbPass, $dbName, -$tableName, "title", "body", "date", "http://www.mysite.com/articles/{linkId}/"); - -// Output the generated RSS XML -header("Content-type: text/xml"); -echo $rssData; -?> \ No newline at end of file diff --git a/phppages/test.php b/phppages/test.php deleted file mode 100644 index c46f286..0000000 --- a/phppages/test.php +++ /dev/null @@ -1,21 +0,0 @@ -include("class.myRSS.php"); - -// Instantiate the myRSS class -$myRSS = new myRSS; - -$myRSS->channelTitle = "My sample channel"; -$myRSS->channelLink = "http://www.mysite.com"; -$myRSS->channelDesc = "My sample RSS XML channel"; - -$myRSS->imageTitle = "My sample channel"; -$myRSS->imageLink = "http://www.mysite.com/mylogo.gif"; -$myRSS->imageURL = "http://www.mysite.com"; - -// Get the RSS data -$rssData = $myRSS->GetRSS("localhost", "admin", "password", "rssDB", -"myArticles", "title", "summary", "articleId", -"http://www.mysite.com/articles/{linkId}/"); - -// Output the generated RSS XML -header("Content-type: text/xml"); -echo $rssData; diff --git a/styles/header.css.backup b/styles/header.css.backup deleted file mode 100644 index ec35113..0000000 --- a/styles/header.css.backup +++ /dev/null @@ -1,110 +0,0 @@ -body, html -{ -margin: 0; -padding: 0; -} - -#logo -{ -position: absolute; -top: 10px; -left: 10px; -border: 0px; -z-index: 10; -background: url(/Pics/logo-100.png) no-repeat; -width: 99px; -height: 78px; -} - -#logo a -{ -width: 99px; -height: 78px; -} - -#header -{ -background: #BBDDFF; -position: absolute; -z-index: 5; -top: 0px; -left: 0px; -right: 0px; -width: 100%; -height: 50px; -} - -#header h1 -{ -float: right; -display: inline; -padding: 5px 10px 5px 5px; -margin-top: 10px; -margin-left: 184px; -font-size: 1.5em; -font-weight: bold; -text-align: left; -vertical-align: top; -font-family: Verdana, Helvetica; -} - -#header h1 a -{ -text-decoration: none; -color: black;} - -#header ul -{ -position: absolute; -top: 55px; -left: 119px; -margin-left: 0px; -margin-top: 0px; -padding: 0; -text-align: left; -vertical-align: middle; -font-size: 11px; -font-weight: bold; -font-family: Verdana, Helvetica; -} - -#header li -{display: inline; -} - -#header li a -{ -padding: 2px 5px 0px 5px; -text-decoration: none; -border-right: 2px solid #BBDDFF; -} - -/* the last link in the nav can have different settings */ -li#last a -{ -border-right: 0px; -} - -#header li a:link -{ -color: black; -} - -#header li a:visited -{ -color: black; -} - -#header li a:hover -{ -text-decoration: underline; -} - -#pagefooter -{ -font-size: x-small; -} - -hr{ - border:1px solid gray; -} diff --git a/styles/header.css~ b/styles/header.css~ deleted file mode 100644 index 57190a8..0000000 --- a/styles/header.css~ +++ /dev/null @@ -1,110 +0,0 @@ -body, html -{ -margin: 0; -padding: 0; -} - -#logo -{ -position: absolute; -top: 10px; -left: 10px; -border: 0px; -z-index: 10; -background: url(/Pics/logo-100.png) no-repeat; -width: 99px; -height: 78px; -} - -#logo a -{ -width: 99px; -height: 78px; -} - -#header -{ -background: #BBDDFF; -position: absolute; -z-index: 5; -top: 0px; -left: 0px; -right: 0px; -width: 100%; -height: 50px; -} - -#header h1 -{ -float: right; -display: inline; -padding: 5px 10px 5px 5px; -margin-top: 10px; -margin-left: 184px; -font-size: 1.5em; -font-weight: bold; -text-align: left; -vertical-align: top; -font-family: Verdana, Helvetica; -} - -#header h1 a -{ -text-decoration: none; -color: black;} - -#header ul -{ -position: absolute; -top: 55px; -left: 119px; -margin-left: 0px; -margin-top: 0px; -padding: 0; -text-align: left; -vertical-align: middle; -font-size: 11px; -font-weight: bold; -font-family: Verdana, Helvetica; -} - -#header li -{display: inline; -} - -#header li a -{ -padding: 2px 5px 0px 5px; -text-decoration: none; -border-right: 2px solid #BBDDFF; -} - -/* the last link in the nav can have different settings */ -li#last a -{ -border-right: 0px; -} - -#header li a:link -{ -color: black; -} - -#header li a:visited -{ -color: black; -} - -#header li a:hover -{ -text-decoration: underline; -} - -#pagefooter -{ -font-size: x-small; -} - -hr{ - border:1px solid #000; -} diff --git a/styles/header.green.css b/styles/header.green.css deleted file mode 100644 index 1d890b2..0000000 --- a/styles/header.green.css +++ /dev/null @@ -1,110 +0,0 @@ -body, html -{ -margin: 0; -padding: 0; -} - -#logo -{ -position: absolute; -top: 10px; -left: 10px; -border: 0px; -z-index: 10; -background: url(/Pics/logo-100.png) no-repeat; -width: 99px; -height: 78px; -} - -#logo a -{ -width: 99px; -height: 78px; -} - -#header -{ -background: #066000; -position: absolute; -z-index: 5; -top: 0px; -left: 0px; -right: 0px; -width: 100%; -height: 50px; -} - -#header h1 -{ -float: right; -display: inline; -padding: 5px 10px 5px 5px; -margin-top: 10px; -margin-left: 184px; -font-size: 1.5em; -font-weight: bold; -text-align: left; -vertical-align: top; -font-family: Verdana, Helvetica; -} - -#header h1 a -{ -text-decoration: none; -color: #FFFFFF;} - -#header ul -{ -position: absolute; -top: 55px; -left: 119px; -margin-left: 0px; -margin-top: 0px; -padding: 0; -text-align: left; -vertical-align: middle; -font-size: 11px; -font-weight: bold; -font-family: Verdana, Helvetica; -} - -#header li -{display: inline; -} - -#header li a -{ -padding: 2px 5px 0px 5px; -text-decoration: none; -border-right: 2px solid #066000; -} - -/* the last link in the nav can have different settings */ -li#last a -{ -border-right: 0px; -} - -#header li a:link -{ -color: #066000; -} - -#header li a:visited -{ -color: #066000; -} - -#header li a:hover -{ -text-decoration: underline; -} - -#pagefooter -{ -font-size: x-small; -} - -hr{ - border:1px solid #066000; -} diff --git a/styles/main.css~ b/styles/main.css~ deleted file mode 100644 index ab0c055..0000000 --- a/styles/main.css~ +++ /dev/null @@ -1,16 +0,0 @@ -#pagemiddle -{ -clear: both; -margin: 98px 6px 0 6px; -} - -#pagefooter -{ -margin: 0 6px 0 6px; -clear: both; -} - -.centered -{ -align: center; -} \ No newline at end of file diff --git a/styles/newspage.blue.css b/styles/newspage.blue.css deleted file mode 100644 index 91ee956..0000000 --- a/styles/newspage.blue.css +++ /dev/null @@ -1,56 +0,0 @@ -div.newsitem -{ -padding: 0; -margin: 0; -} - -div.newsitem h1 -{ -background: #000084 url('../Pics/newsitem_ul.png') top left no-repeat; -color: #FFFFFF; -float:left; -width: 60%; -margin: 0 -10px 0 0 ; -font-size: 1.1em; -padding-left: 10px; -} - -div.newsitem h2 -{ -background: #000084 url('../Pics/newsitem_ur.png') top right no-repeat; -text-align: right; -color: #FFFFFF; -float: right; -width: 40%; -margin: 0 0 0 -10px; -font-size: 1.1em; -padding-right: 10px; -} - -div.newsitem h2 a -{ -text-decoration: none; -color: #ffffff; -} - -div.newsitem p -{ -margin: 0; -padding: 5px 0 5px 0; -clear: both; -} - -#newsNav h1 -{ -float: left; -width: 50%; -font-size: 1em; -} - -#newsNav h2 -{ -float: right; -text-align: right; -width: 50%; -font-size: 1em; -} diff --git a/styles/newspage.css b/styles/newspage.css deleted file mode 100644 index 91ee956..0000000 --- a/styles/newspage.css +++ /dev/null @@ -1,56 +0,0 @@ -div.newsitem -{ -padding: 0; -margin: 0; -} - -div.newsitem h1 -{ -background: #000084 url('../Pics/newsitem_ul.png') top left no-repeat; -color: #FFFFFF; -float:left; -width: 60%; -margin: 0 -10px 0 0 ; -font-size: 1.1em; -padding-left: 10px; -} - -div.newsitem h2 -{ -background: #000084 url('../Pics/newsitem_ur.png') top right no-repeat; -text-align: right; -color: #FFFFFF; -float: right; -width: 40%; -margin: 0 0 0 -10px; -font-size: 1.1em; -padding-right: 10px; -} - -div.newsitem h2 a -{ -text-decoration: none; -color: #ffffff; -} - -div.newsitem p -{ -margin: 0; -padding: 5px 0 5px 0; -clear: both; -} - -#newsNav h1 -{ -float: left; -width: 50%; -font-size: 1em; -} - -#newsNav h2 -{ -float: right; -text-align: right; -width: 50%; -font-size: 1em; -} diff --git a/styles/newspage.green.css b/styles/newspage.green.css deleted file mode 100644 index 66b4aeb..0000000 --- a/styles/newspage.green.css +++ /dev/null @@ -1,56 +0,0 @@ -div.newsitem -{ -padding: 0; -margin: 0; -} - -div.newsitem h1 -{ -background: #066000 url('../Pics/newsitem_green_ul.png') top left no-repeat; -color: #FFFFFF; -float:left; -width: 60%; -margin: 0 -10px 0 0 ; -font-size: 1.1em; -padding-left: 10px; -} - -div.newsitem h2 -{ -background: #066000 url('../Pics/newsitem_green_ur.png') top right no-repeat; -text-align: right; -color: #FFFFFF; -float: right; -width: 40%; -margin: 0 0 0 -10px; -font-size: 1.1em; -padding-right: 10px; -} - -div.newsitem h2 a -{ -text-decoration: none; -color: #ffffff; -} - -div.newsitem p -{ -margin: 0; -padding: 5px 0 5px 0; -clear: both; -} - -#newsNav h1 -{ -float: left; -width: 50%; -font-size: 1em; -} - -#newsNav h2 -{ -float: right; -text-align: right; -width: 50%; -font-size: 1em; -} diff --git a/styles/pictures.css b/styles/pictures.css deleted file mode 100644 index ca85560..0000000 --- a/styles/pictures.css +++ /dev/null @@ -1,51 +0,0 @@ -div.caption:hover -{ -background: #BBDDFF; -} - -div.thumbnail:hover -{ -} - -.thumbnail -{ -float: left; -width: 30%; -padding: 5px; -text-align: center; -} - -.thumbnail H1 -{ -display: inline; -} - - -.caption -{ -margin: 0 auto 0 auto; -vertical-align: bottom; -height: 8.8em; -width: 256px; -overflow: hidden; -text-align: left; -} - -.caption h2 -{ -display: inline; -padding: 0; -margin: 0; -font-size: 1em; -font-weight: bold; -} - -.caption p -{ -margin: 0; -padding: 0; -} - -.caption h2:hover, p:hover -{ -} diff --git a/styles/pictures.css~ b/styles/pictures.css~ deleted file mode 100644 index 98f7035..0000000 --- a/styles/pictures.css~ +++ /dev/null @@ -1,50 +0,0 @@ -div.caption:hover -{ -background: #BBDDFF; -} - -div.thumbnail:hover -{ -max-height: 800px; -} - -.thumbnail -{ -float: left; -width: 30%; -padding: 5px; -text-align: center; -} - -.thumbnail H1 -{ -display: inline; -} - - -.caption -{ -vertical-align: bottom; -height: 8.8em; -overflow: hidden; -text-align: left; -} - -.caption h2 -{ -display: inline; -padding: 0; -margin: 0; -font-size: 1em; -font-weight: bold; -} - -.caption p -{ -margin: 0; -padding: 0; -} - -.caption h2:hover, p:hover -{ -}