PHP ile veri ayıklama

Başlatan kaansef, 27 Aralık 2010 - 18:49:20

« önceki - sonraki »

0 Üyeler ve 1 Ziyaretçi konuyu incelemekte.

kaansef

Arkadaşlar bu konunun aynısını python bölümünde yazdım.Ama python ile olmadı.Bende php ile yapmaya başladım ama çalışmıyor.İstediğim şey bir css dosyasındaki tüm resimlerin link halinde yazdırılması.Explode kullanarak oluyo ama ilk bulduğunu yazıyo sadece.Bende preg_match_all ile denedim.Ama hata veriyo.Boş beyaz sayfanın en üstünde "Array" yazıyo sadece.Ben yazdıklarımı versem nasıl düzelteceğimi gösterirmisiniz?

CSS:

128 x 128
ul.quickbar {
    background-color: #F1EBDD;
    border: 1px solid black;
    border-spacing: 1px;
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
}
ul.quickbar li {
    background-color: #F8F4E8;
    background-image: url("/graphic/background/grey.jpg");
    display: inline;
    padding: 0 4px;
    white-space: nowrap;
}
a:link, a:visited {
    color: #603000;
    font-weight: bold;
    text-decoration: none;
}
a:link:active, a:visited:active {
    color: #603000;
    font-weight: bold;
    text-decoration: none;
}
a:link:hover, a:visited:hover {
    color: #E01F0F;
    font-weight: bold;
    text-decoration: none;
}
.selected a:link, .selected a:visited {
    color: #803000;
    font-weight: bold;
    text-decoration: none;
}
.selected a:link:active, .selected a:visited:active {
    color: #803000;
    font-weight: bold;
    text-decoration: none;
}
.selected a:link:hover, .selected a:visited:hover {
    color: #E01F0F;
    font-weight: bold;
    text-decoration: none;
}
td {
    font-size: 9pt;
}
.hidden {
    color: #B19661;
}
.oldStyleOnly {
    display: none;
}
.content-border > tr > td:first-child, .content-border > tbody > tr > td:first-child {
    background: url("/graphic/background/content.jpg") repeat scroll 0 0 transparent;
    padding: 0;
}
table.main {
    background: url("/graphic/index/main_bg.jpg") repeat scroll right top #E3D5B3;
    border: medium none;
    width: 100%;
}
table.news {
    background-color: #F3EBD7;
}
.in_border {
    background-color: #F3EBD7;
    text-align: left;
}
span.timer_replace span {
    display: none;
}
form {
    margin: 0;
}
p:first-child, h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child, h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
    margin-top: 0;
}
td {
    padding: 2px;
}
table.blind {
    border-spacing: 0;
}
table.blind td {
    padding: 0;
}
table.blind table td {
    padding: 2px;
}
table.left {
    float: left;
}
table.vis {
    border-collapse: separate;
}
table.vis td {
    background: none repeat scroll 0 0 #F4E4BC;
}
table.vis td.selected {
    background: none repeat scroll 0 0 #FFE0A2;
}
table.vis td.selected a {
    color: #803000;
}
table.vis td.no_bg {
    background: none repeat scroll 0 0 transparent;
}
table.vis td.align_right {
    text-align: right;
}
table.vis tr.nowrap td {
    white-space: nowrap;
}
table.vis tr.units_home td {
    background: none repeat scroll 0 0 #F6EBCA;
}
table.vis tr.units_there td {
    background: none repeat scroll 0 0 #FBF4DD;
}
table.vis tr.units_away td {
    background: none repeat scroll 0 0 #F7EED3;
}
table.vis tr.units_moving td {
    background: none repeat scroll 0 0 #FBF4DD;
}
table.vis tr.row_a td, table.vis tbody.row_a td {
    background: none repeat scroll 0 0 #F0E2BE;
}
table.vis tr.row_b td, table.vis tbody.row_b td {
    background: none repeat scroll 0 0 #FFF5DA;
}
table.vis tr.subheader td {
    background: none repeat scroll 0 0 #E5D7B2;
}
table.vis tr.edit_player_colors td {
    background: none repeat scroll 0 0 transparent;
}
table.vis tr td img {
    vertical-align: middle;
}
table.overview_table tbody.row_marker.selected td {
    background: none repeat scroll 0 0 #FFE0A2;
}
table.overview_table tr.selected td {
    background: none repeat scroll 0 0 #FFE0A2;
}
table.overview_table tbody.row_marker:hover td {
    background: none repeat scroll 0 0 #E1C68C;
}
table.overview_table tr:hover td {
    background: none repeat scroll 0 0 #E1C68C;
}
table.overview_table tr.nohover, table.overview_table tr.nohover td {
    background: none repeat scroll 0 0 #F8ECCC;
}
th {
    background-color: #C1A264 !important;
    background-image: url("/graphic/screen/tableheader_bg3.png");
    background-repeat: repeat-x;
    font-size: 9pt;
    font-weight: bold;
    text-align: left;
}
div.outerBorder {
    position: relative;
    z-index: 0;
}
div.innerBorder {
    background: none repeat scroll 0 0 #85550D;
    bottom: 1px;
    left: 1px;
    position: absolute;
    right: 1px;
    top: 1px;
    z-index: 0;
}
div.innerBG {
    background: url("/graphic/index/main_bg.jpg") repeat scroll left top transparent;
    bottom: 1px;
    left: 1px;
    position: absolute;
    right: 1px;
    top: 1px;
    z-index: 1;
}
div.outerBorder table, div.outerBorder form {
    position: relative;
    z-index: 2;
}
table#techs_table img {
    vertical-align: middle;
}
table.main_layout {
    background: none repeat scroll 0 0 transparent;
    border-spacing: 0;
    cursor: default;
    margin: 0 auto;
    padding: 0;
    z-index: 3;
}
table.main_layout a {
    cursor: pointer;
}
table.main_layout table.modemenu a {
    display: block;
    white-space: normal;
}
table.main_layout tr.shadedBG {
    background: url("/graphic/index/bg-shaded.png") repeat-x scroll left top #F2E4C1;
}
.main_layout td {
    margin: 0;
    padding: 0;
}
.main_layout td td {
    margin: 0;
    padding: 0;
}
.main_layout td.topbar {
    background: none repeat scroll 0 0 transparent;
    height: 48px;
    margin: 0;
    padding: 0;
    position: absolute;
    text-align: center;
    z-index: 123456;
}
.main_layout td.topbar td {
    background: none repeat scroll 0 0 transparent;
}
.main_layout td.left {
    background: none repeat scroll 0 0 transparent;
    width: 25px;
}
.main_layout td.right {
    background: none repeat scroll 0 0 transparent;
    width: 25px;
}
.main_layout td.bg_left {
    background: url("/graphic/index/mainborder-left.png") repeat-y scroll left top transparent;
    overflow: hidden;
    vertical-align: top;
    width: 25px;
}
.main_layout td.bg_right {
    background: url("/graphic/index/mainborder-right.png") repeat-y scroll right top transparent;
    overflow: hidden;
    vertical-align: top;
    width: 25px;
}
.main_layout td.bg_left div.bg_left {
    background: url("/graphic/index/mainborder-left-top.png") no-repeat scroll left top transparent;
    height: 200px;
    width: 25px;
}
.main_layout td.bg_right div.bg_right {
    background: url("/graphic/index/mainborder-right-top.png") no-repeat scroll right top transparent;
    height: 200px;
    width: 25px;
}
.main_layout td.bg_leftborder {
    background: url("/graphic/index/mainborder-left.png") repeat-y scroll left top #F2E4C1;
}
.main_layout td.bg_rightborder {
    background: url("/graphic/index/mainborder-right.png") repeat-y scroll right top #F2E4C1;
}
.main_layout td.bg_bottomleft {
    background: url("/graphic/index/mainborder-corner-left.png") no-repeat scroll left top transparent;
    width: 25px;
}
.main_layout td.bg_bottomright {
    background: url("/graphic/index/mainborder-corner-right.png") no-repeat scroll right top transparent;
    width: 25px;
}
.main_layout td.bg_bottomcenter {
    background: url("/graphic/index/mainborder-bottom.png") repeat-x scroll right top transparent;
    height: 25px;
}
td.maincell {
    padding: 0 0 5px;
    vertical-align: top;
}
td.maincell table {
    border-collapse: collapse;
    border-spacing: 0;
}
#SkyScraperAd {
    height: 600px;
    margin-left: 30px;
    overflow: hidden;
    position: fixed;
    top: 60px;
    z-index: 1;
}
#SkyScraperAd * {
    z-index: 2;
}
#ContentAd {
    margin: 10px auto;
    text-align: center;
}
tr.nowrap td {
    white-space: nowrap;
}
table.intro td {
    background-color: #F8F4E8;
    font-size: 8pt;
    line-height: 1.5em;
    padding: 6px;
}
ul.quickbar {
    border-spacing: 1px;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
table.menu {
    background: none no-repeat scroll left top transparent;
    border: medium none;
}
td.topbar table.menu tr td {
    background: url("/graphic/index/topbutton-right.png") no-repeat scroll right top transparent;
    border-collapse: collapse;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: bold;
    height: 43px;
    margin: 0;
    padding: 0;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}
td.topbar table.menu tr#menu_row > td:hover {
    background: url("/graphic/index/topbutton-right.png") no-repeat scroll right bottom transparent;
}
td.topbar table.menu tr td.lpad, td.topbar table.menu tr td.lpad:hover {
    background: none repeat scroll 0 0 transparent !important;
    min-width: 1px;
    width: 1px;
}
td.topbar table.menu tr td.rpad, td.topbar table.menu tr td.rpad:hover {
    background: none repeat scroll 0 0 transparent !important;
    min-width: 3px;
    width: 3px;
}
#topTable {
    border-spacing: 0;
    margin: 0 auto;
}
#topTable table {
    margin: 0 auto;
    min-width: 900px;
}
#topTable table table {
    min-width: 1px;
    white-space: nowrap;
}
#topTable table table td, #topTable table table td a {
    white-space: nowrap;
    width: auto;
}
td.topbar div#topContainer {
    left: 0;
    margin-top: 0;
    position: fixed;
    text-align: center;
    top: 2px;
    width: 100%;
}
td.topbar table.menu tr td#topdisplay {
    background: url("/graphic/index/topdisplay-left.png") no-repeat scroll left -4px transparent;
    height: 43px;
    line-height: 18px;
    margin: 0 6px 0 2px;
    padding: 0 0 0 5px;
    width: auto;
    z-index: 1;
}
td.topbar table.menu tr td#topdisplay:hover {
    background: url("/graphic/index/topdisplay-left.png") no-repeat scroll left -4px transparent;
}
td.topbar table.menu tr td#topdisplay div.bg {
    background: url("/graphic/index/topdisplay-right.png") no-repeat scroll right -4px transparent;
    height: 43px;
    margin: 0;
    padding: 0 11px 0 5px;
    position: static;
    width: auto;
}
td.topbar table.menu tr td#topdisplay div.bg div.rank {
    background: none repeat scroll 0 0 transparent;
    text-align: center;
}
td.topbar table.menu tr td#topdisplay a {
    height: 16px;
    padding: 5px 0 0;
}
td.topbar table.menu tr td#topdisplay div.bg a:hover {
    color: #F0D49A;
}
table.menu table.menu_column tr, table.menu table.menu_column td {
    background-image: none;
}
td.topbar table.menu a {
    background: none repeat scroll 0 0 transparent;
    color: #FFFFFF;
    display: block;
    font-size: 10px;
    font-weight: bold;
    height: 28px;
    padding: 15px 15px 0 13px;
    text-align: center;
}
td.topbar table.menu tr#menu_row > td > a {
    background: url("/graphic/index/topbutton-left.png") no-repeat scroll left top transparent;
    font-size: 10px;
    left: -2px;
    padding: 15px 15px 0;
    position: relative;
}
td.topbar table.menu tr#menu_row > td:hover > a {
    background: url("/graphic/index/topbutton-left.png") no-repeat scroll left bottom transparent;
}
td.topbar table.menu tr td#topdisplay div.bg a {
    font-size: 10px;
    width: auto;
}
td.topbar div.buttonicon {
    height: 12px;
    left: 14px;
    margin-bottom: -12px;
    position: relative;
    top: -28px;
    width: 12px;
}
td.topbar div.buttonicon a {
    margin: 0;
    padding: 0;
}
#quickbar_outer {
    margin: 0 auto;
    padding: 0;
}
#quickbar_inner {
    margin: 0;
    padding: 0;
    width: 100%;
}
#quickbar_inner td.left {
    background: url("/graphic/index/iconbar-ml.png") repeat-y scroll left top transparent;
    width: 15px;
}
#quickbar_inner td.main {
    background: url("/graphic/index/iconbar-mc.png") repeat scroll left top transparent;
    text-align: center;
}
#quickbar_inner td.right {
    background: url("/graphic/index/iconbar-mr.png") repeat-y scroll right top transparent;
    position: static;
    width: 15px;
}
#quickbar_inner .topborder td.left {
    background: url("/graphic/index/iconbar-tl.png") no-repeat scroll left top transparent;
    height: 4px;
}
#quickbar_inner .topborder td.main {
    background: url("/graphic/index/iconbar-tc.png") repeat-x scroll left top transparent;
    height: 4px;
}
#quickbar_inner .topborder td.right {
    background: url("/graphic/index/iconbar-tr.png") no-repeat scroll right top transparent;
    height: 4px;
}
#quickbar_inner .bottomborder td.left {
    background: url("/graphic/index/iconbar-bl.png") no-repeat scroll left top transparent;
    height: 4px;
}
#quickbar_inner .bottomborder td.main {
    background: url("/graphic/index/iconbar-bc.png") repeat-x scroll left top transparent;
    height: 4px;
}
#quickbar_inner .bottomborder td.right {
    background: url("/graphic/index/iconbar-br.png") no-repeat scroll right top transparent;
    height: 4px;
}
#quickbar_inner ul.quickbar {
    background: none repeat scroll 0 0 transparent;
    border: medium none;
    margin: 0 auto;
    padding: 1px 0;
}
#quickbar_inner li {
    display: inline-table;
    margin: 0 5px 0 4px;
    padding: 0;
}
#quickbar_inner li.separator {
    border-right: 1px dotted #302E27;
    overflow: hidden;
    width: 1px;
}
#quickbar_inner ul.quickbar img {
    margin-right: 2px;
    vertical-align: -3px;
}
ul.quickbar li {
    background: none repeat scroll 0 0 transparent;
}
.main_layout table#header_info td table {
    margin-left: 5px;
}
.main_layout table#header_info td:first-child table {
    margin-left: 0;
}
.main_layout table#header_info td table td.icon-box {
    background: url("/graphic/index/statusbar-separator1.png") no-repeat scroll left top transparent;
    padding-left: 3px;
}
.main_layout table#header_info td table td.icon-box:first-child {
    background: url("/graphic/index/statusbar-left.png") no-repeat scroll left top transparent;
}
.main_layout table#header_info td table td.icon-box.separate {
    background: url("/graphic/index/statusbar-separator2.png") no-repeat scroll left top transparent;
    padding-left: 5px;
}
table#header_info {
    -moz-background-clip: border;
    -moz-background-origin: padding;
    -moz-background-size: auto auto;
    background-attachment: scroll;
    background-color: transparent;
    background-image: none !important;
    background-position: 0 0;
    background-repeat: repeat;
    margin: 0 auto 2px;
    padding: 0;
}
#header_info .header-border {
    background: url("/graphic/index/statusbar-center.png") repeat-x scroll left top transparent;
    height: 26px;
    margin: 0;
    padding: 0;
    width: 1px;
}
#header_info table {
    background: none repeat scroll 0 0 transparent;
    border: medium none;
}
#header_info .header-border table {
    background: url("/graphic/index/statusbar-center.png") repeat-x scroll left top transparent;
}
#header_info .header-border table:first-child {
    background: url("/graphic/index/statusbar-right.png") no-repeat scroll right top transparent;
    height: 26px;
}
#header_info .header-border table:first-child td:first-child {
    background: url("/graphic/index/statusbar-left.png") no-repeat scroll left top transparent;
    height: 26px;
}
#header_info .header-border table td {
    padding: 0 3px;
}
#header_info .header-border table.smallPadding td {
    padding: 0 3px 0 0;
}
#header_info .header-border table.smallPadding td.icon-box, #header_info .header-border table.smallPadding td.icon-box.separate {
    padding: 0 1px 0 4px;
}
#header_info .header-border table.smallPadding td#storage {
    padding: 0 4px 0 1px;
}
#header_info .header-border table.no-gap td {
    padding: 0 3px 0 0;
}
#header_info .header-border table.no-gap td:first-child {
    padding: 0 0 0 2px;
}
#header_info .header-border table td.icon-box a, #header_info .header-border table.no-gap td a {
    height: 20px;
    padding: 2px 0 0 0;
}
#header_info .header-border table.no-gap td.icon-box a {
    height: 19px;
    padding: 3px 2px 0;
}
#header_info #menu_row2 td {
    height: 26px;
}
.main_layout table#header_info .header-border table td .village_switch_link, .main_layout table#header_info .header-border table td .jump_link {
    display: block;
    height: 22px;
    padding: 0;
    width: 16px;
}
.main_layout table#header_info td table td.arrowCell {
    padding: 0 2px 0 3px !important;
}
.main_layout table#header_info td table td #pop_max_label {
    padding-right: 5px;
}
.main_layout table#header_info td table td #storage_label {
    padding-right: 3px;
}
.main_layout table#header_info td table td span.icon {
    margin: 0 1px 0 0;
}
td.arrowCell span {
    display: block;
    height: 22px;
    width: 16px;
}
span.arrowLeft {
    background: url("/graphic/index/arrow-left.png") no-repeat scroll left top transparent;
}
span.arrowLeft:hover {
    background: url("/graphic/index/arrow-left.png") no-repeat scroll left bottom transparent;
}
span.arrowRight {
    background: url("/graphic/index/arrow-right.png") no-repeat scroll left top transparent;
}
span.arrowRight:hover {
    background: url("/graphic/index/arrow-right.png") no-repeat scroll left bottom transparent;
}
span.groupLeft {
    background: url("/graphic/index/group-left.png") no-repeat scroll left top transparent;
}
span.groupLeft:hover {
    background: url("/graphic/index/group-left.png") no-repeat scroll left bottom transparent;
}
span.groupRight {
    background: url("/graphic/index/group-right.png") no-repeat scroll left top transparent;
}
span.groupRight:hover {
    background: url("/graphic/index/group-right.png") no-repeat scroll left bottom transparent;
}
span.groupJump {
    background: url("/graphic/index/group-jump.png") no-repeat scroll left top transparent;
}
span.groupJump:hover {
    background: url("/graphic/index/group-jump.png") no-repeat scroll left bottom transparent;
}
td.shadow {
    text-align: left;
}
td.shadow div.leftshadow {
    background: url("/graphic/index/shadow-left.png") no-repeat scroll left top transparent;
    height: 8px;
    margin-bottom: -8px;
    width: 15px;
    z-index: 0;
}
td.shadow div.rightshadow {
    background: url("/graphic/index/shadow-right.png") no-repeat scroll right top transparent;
    height: 8px;
    margin-left: 15px;
    width: auto;
    z-index: 0;
}
#footer {
    background: url("/graphic/index/footer-bg.png") repeat-x scroll center top transparent;
    bottom: 0;
    cursor: default;
    height: 25px;
    left: 0;
    position: fixed;
    width: 100%;
    z-index: 9999;
}
#footer * {
    position: relative;
    z-index: 3;
}
#footer_logo {
    background: url("/graphic/index/footer-seal.png") repeat-x scroll left top transparent;
    bottom: 0;
    height: 25px;
    left: 50%;
    margin-left: -59px;
    position: absolute;
    width: 118px;
    z-index: 1;
}
#footer #linkContainer {
    height: 21px;
    margin: 0 auto;
    max-width: 830px;
    top: 3px;
    width: 60%;
}
#footer #footer_left {
    float: left;
    margin-top: 3px;
}
#footer #footer_right {
    float: right;
    margin-top: 3px;
}
#footer, #footer a {
    color: #603000;
}
#footer a {
    cursor: pointer;
}
#footer a:hover {
    color: #E01F0F;
}
#footer {
    height: 25px;
}
#footer_logo {
    display: none;
}
#contentContainer {
}
#contentContainer table table table {
    border-collapse: separate;
    border-spacing: 2px;
}
#contentContainer table table table td, #contentContainer table table table th {
    padding: 2px 3px;
}
td#content_value {
    padding: 10px;
}
.content-border {
    background: url("/graphic/index/main_bg.jpg") repeat scroll right top #E3D5B3;
    border: 1px solid #7D510F;
    border-collapse: separate !important;
    border-spacing: 1px;
    direction: ltr;
    margin: 0;
    padding: 0;
}
.content-border td:first-child {
    border: 1px solid #F9E1A8;
    padding: 2px 0;
}
.content-border td:first-child td {
    border: medium none;
    padding: 0;
}
.content-border td:first-child table td {
    padding: 0 2px 5px;
}
.content-border table table {
    empty-cells: show !important;
}
.navi-border {
    border: 1px solid #7D510F;
    margin: 0;
    padding: 0;
}
.navi-border > tbody > tr > td:first-child > table:first-child, .navi-border > tr > td:first-child > table:first-child {
    border: 1px solid #FFE0A2;
}
.navi-border > tbody > tr > td:first-child > table:first-child > tbody > tr:first-child > td, .navi-border > tr > td:first-child > table:first-child > tr:first-child > td {
    background: url("/graphic/index/main_bg.jpg") repeat scroll left top transparent;
}
.navi-border table:first-child td {
    font-weight: normal;
    padding: 3px;
}
.navi-border td, .main-border td, .content-border td {
    margin: 0;
    padding: 0;
}
.main td {
    padding: 2px;
}
.main {
    overflow: hidden;
}
.report_image {
    height: 290px;
    margin-bottom: 8px;
    padding: 0 !important;
    position: relative;
    width: 428px;
}
.spoiler div.image_attack_won, .image_attack_won {
    background: url("/graphic/reports/battle_attacker_won.jpg") repeat scroll center center transparent;
}
.spoiler div.image_attack_lost, .image_attack_lost {
    background: url("/graphic/reports/battle_attacker_lost.jpg") repeat scroll right bottom transparent;
}
.spoiler div.image_defense_won, .image_defense_won {
    background: url("/graphic/reports/battle_defender_won.jpg") repeat scroll right bottom transparent;
}
.spoiler div.image_defense_lost, .image_defense_lost {
    background: url("/graphic/reports/battle_defender_lost.jpg") repeat scroll center center transparent;
}
.spoiler div.image_scouting_enemy, .image_scouting_enemy {
    background: url("/graphic/reports/battle_scouting_enemy.jpg") repeat scroll right center transparent;
}
.spoiler div.image_scouting_own, .image_scouting_own {
    background: url("/graphic/reports/battle_scouting_own.jpg") repeat scroll right center transparent;
}
.spoiler div.image_village_won, .image_village_won {
    background: url("/graphic/reports/battle_village_won.jpg") repeat scroll left bottom transparent;
}
.spoiler div.image_village_lost, .image_village_lost {
    background: url("/graphic/reports/battle_village_lost.jpg") repeat scroll right bottom transparent;
}
.spoiler div.image_support, .image_support {
    background: url("/graphic/reports/support_arrives.jpg") repeat scroll center bottom transparent;
}
.spoiler div {
    background: none repeat scroll 0 0 #EFE6C9;
    border: 1px inset;
    margin: 3px 0;
    overflow: auto;
    padding: 6px;
}
.report_transparent_overlay {
    background: url("/graphic/reports/transparent_overlay.png") repeat scroll 0 0 transparent !important;
    bottom: 0;
    padding: 4px 0;
    position: absolute;
    width: 100%;
}
.spoiler .report_transparent_overlay {
    border-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.report_transparent_overlay tr td {
    background-color: transparent;
}
.report_transparent_overlay table tr th {
    background: none repeat scroll 0 0 transparent !important;
    line-height: 12px;
    margin: 0;
    padding: 0;
}
.report_transparent_overlay h4 {
    margin: 2px 4px;
    padding: 0;
}
.report_transparent_overlay table.vis td {
}
table#attack_luck table.luck {
    border: 1px solid black;
}
table#attack_luck table.luck td {
    padding: 0;
}
ul.quickbar li {
    display: inline;
    padding-bottom: 0;
    padding-top: 0;
}
#topTable table.menu tr td table.menu_column {
    background: url("/graphic/index/dropdown-bottomright.png") no-repeat scroll right bottom transparent;
    display: table;
    height: auto;
    margin-left: 20px;
    margin-top: -4px;
    max-width: 250px;
    min-width: 92px;
    padding: 0;
    position: absolute;
    visibility: hidden;
    z-index: 100;
}
table.menu tr td table.menu_column tr {
    background: none repeat scroll 0 0 transparent;
}
table.menu tr td#topdisplay table.menu_column {
    margin-left: 5px;
    margin-top: 0;
}
#topTable table.menu tr td:hover table.menu_column, #topTable table.menu tr td.hover table.menu_column {
    visibility: visible;
    z-index: 999;
}
table.menu tr td table.menu_column tr td {
    background: url("/graphic/index/dropdown-itemright.png") repeat-y scroll right top transparent;
    display: table-cell;
    float: none;
    height: auto;
    line-height: 12px;
    padding: 0;
    text-align: left;
    white-space: normal;
    width: auto;
    z-index: 999;
}
table.menu tr td table.menu_column tr:first-child td {
    background: url("/graphic/index/dropdown-topright.png") no-repeat scroll right top transparent;
}
table.menu tr td table.menu_column tr td a {
    background: url("/graphic/index/dropdown-itemleft.png") no-repeat scroll left top transparent;
    color: #FFFFFF;
    display: block;
    float: none;
    height: auto;
    left: -20px;
    margin: 0 -10px 0 0;
    padding: 3px 12px 3px 20px;
    position: relative;
    text-align: left;
}
table.menu tr td table.menu_column tr td a:hover {
    color: #F0D49A;
}
table.menu tr td table.menu_column tr:first-child td a {
    background: url("/graphic/index/dropdown-topleft.png") no-repeat scroll left top transparent;
    padding: 6px 12px 3px 20px;
}
table.menu tr td table.menu_column tr:first-child td a:hover {
}
table.menu tr td#topdisplay table.menu_column tr td a {
    height: auto;
    padding: 3px 12px 3px 20px;
}
table.menu tr td#topdisplay table.menu_column tr td a:hover {
    color: #F0D49A;
}
table.menu tr td#topdisplay table.menu_column tr:first-child td a {
    padding: 6px 12px 3px 20px;
}
table.menu tr td#topdisplay table.menu_column tr:first-child td a:hover {
}
table.menu tr td table.menu_column tr td.bottom {
    background: none repeat scroll 0 0 transparent;
}
td.topbar div.corner {
    background: url("/graphic/index/dropdown-bottomleft.png") no-repeat scroll left top transparent;
    height: 25px;
    left: -20px;
    margin: 0;
    position: relative;
    top: 0;
    width: 20px;
}
td.topbar div.decoration {
    background: url("/graphic/index/dropdown-decoration.png") no-repeat scroll left 12px transparent;
    height: 25px;
    left: 50%;
    margin: -25px 0 0 -25px;
    position: relative;
    top: 0;
    width: 23px;
}
table.layout, table.layout tr td {
    border-collapse: collapse;
    margin: 0;
    padding: 0;
}
table.menu span.icon {
    margin: 0;
    vertical-align: -2px;
}
.menu_block_right {
    border-collapse: collapse;
    margin: 0 0 0 auto;
    text-align: right;
}
.forum {
    background-color: #F1EBDD;
    border: 1px solid #000000;
    display: inline-block;
    line-height: 150%;
    margin-bottom: 4px;
    padding: 1px;
    white-space: nowrap;
}
.selected {
    background-color: #FADC9B;
}
.shared_forum {
    background-color: #DDDDDD;
    border: 1px solid #000000;
    display: inline-block;
    line-height: 150%;
    margin-bottom: 4px;
    padding: 1px;
    white-space: nowrap;
}
.shared_selected {
    background-color: #B7C3C9;
}
input.answer {
    margin-bottom: 4px;
}
.thread_button {
    display: inline;
}
.igmline input {
    height: 8px;
    width: 8px;
}
.thread_button span {
    display: block;
    float: left;
    font-size: 7pt;
    height: 23px;
    min-width: 80px;
    padding-right: 5px;
    padding-top: 6px;
}
.thread_new {
    background: url("/graphic/button_mid.png") repeat-x scroll 0 0 transparent;
}
.thread_new_close {
    background: url("/graphic/button_close.png") no-repeat scroll 0 0 transparent;
    min-width: 10px !important;
    padding-left: 0 !important;
    width: 10px !important;
}
.thread_new_open {
    background: url("/graphic/thread_new_open.png") no-repeat scroll 0 0 transparent;
    min-width: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 25px !important;
}
.thread_poll {
    background: url("/graphic/button_mid.png") repeat-x scroll 0 0 transparent;
}
.thread_poll_close {
    background: url("/graphic/button_close.png") no-repeat scroll 0 0 transparent;
    min-width: 10px !important;
    padding-left: 0 !important;
    width: 10px !important;
}
.thread_poll_open {
    background: url("/graphic/poll_open.png") no-repeat scroll 0 0 transparent;
    min-width: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 25px !important;
}
.thread_answer {
    background: url("/graphic/button_mid.png") repeat-x scroll 0 0 transparent;
}
.thread_answer_open {
    background: url("/graphic/thread_answer_open.png") no-repeat scroll 0 0 transparent;
    min-width: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 25px !important;
}
.thread_answer_close {
    background: url("/graphic/button_close.png") no-repeat scroll 0 0 transparent;
    min-width: 10px !important;
    padding-left: 0 !important;
    width: 10px !important;
}
.thread_edit {
    background: url("/graphic/button_mid.png") repeat-x scroll 0 0 transparent;
}
.thread_edit_open {
    background: url("/graphic/thread_edit_open.png") no-repeat scroll 0 0 transparent;
    min-width: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 25px !important;
}
.thread_edit_close {
    background: url("/graphic/button_close.png") no-repeat scroll 0 0 transparent;
    min-width: 10px !important;
    padding-left: 0 !important;
    width: 10px !important;
}
#map_canvas {
    position: absolute;
}
div.containerBorder {
}
div.containerBorder.narrow {
    border-spacing: 0;
    display: table;
    width: 1px;
}
div.containerBorder > table {
    border: 1px solid #8C5F0D;
}
.bgContainer {
    background: url("/graphic/index/main_bg.jpg") repeat scroll left top transparent;
}
table.map_container {
    background-color: #F4E4BC !important;
    border: 1px solid #8C5F0D;
    direction: ltr;
}
table.map td {
    font-size: 8pt;
    padding: 0;
    text-align: center;
    vertical-align: middle;
}
table.map div.lay1 {
    position: relative;
    text-align: right;
    z-index: 1;
}
table.map div.lay2 {
    overflow: hidden;
    padding-left: 0;
    padding-top: 18px;
    position: relative;
    text-align: left;
    z-index: 1;
}
table.map div.army_camp_overlay {
    position: absolute;
    z-index: 1;
}
table.minimap_container .dir_arrow {
    cursor: pointer;
}
#info_bonus_image {
    background-image: url("/graphic/background/content.jpg");
}
td.space-left {
    border-left: 1px solid #175E36;
}
td.space-bottom {
    border-bottom: 1px solid #175E36;
}
td.border-left {
    border-left: 1px solid #103530;
}
td.border-bottom {
    border-bottom: 1px solid #103530;
}
td.sector-left {
    border-left: 1px solid #DED3B9;
}
td.sector-bottom {
    border-bottom: 1px solid #DED3B9;
}
td.space-left-new {
}
td.space-bottom-new {
}
td.border-left-new {
    border-left: 1px solid #214B18;
}
td.border-bottom-new {
    border-bottom: 1px solid #214B18;
}
td.sector-left-new {
    border-left: 1px solid #DED3B9;
}
td.sector-bottom-new {
    border-bottom: 1px solid #DED3B9;
}
td.con-left-new {
    border-left: 1px solid #000000;
}
td.con-bottom-new {
    border-bottom: 1px solid #000000;
}
tr.center td {
    text-align: center;
}
tr.lit td {
    background-color: #FFF3D3 !important;
    background-image: none;
    font-weight: bold;
}
tr.lit2 td {
    background-color: #F8EED8;
    background-image: none;
    font-weight: bold;
}
tr.admin td {
    background-color: #F8EED8;
}
tr.mini td {
    font-size: x-small;
    font-style: italic;
}
th.nopad, td.nopad {
    padding: 0 !important;
}
div.top_background {
    background-image: url("/graphic/index/bg-top.jpg");
    background-repeat: repeat-x;
    display: none;
    height: 27px;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}
div.top_bar {
    background-image: url("/graphic/index/topbar-main.png");
    background-position: center 0;
    background-repeat: repeat-x;
    height: 57px;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}
div.top_bar .bg_left {
    background-image: url("/graphic/index/topbar-left.png");
    background-repeat: no-repeat;
    height: 57px;
    left: 0;
    position: absolute;
    top: 0;
    width: 70px;
    z-index: -1;
}
div.top_bar .bg_right {
    background-image: url("/graphic/index/topbar-right.png");
    background-repeat: no-repeat;
    height: 57px;
    position: absolute;
    right: 0;
    top: 0;
    width: 70px;
    z-index: -1;
}
div.top_shadow {
    background: url("/graphic/index/topbar-shadow.png") repeat-x scroll left top transparent;
    height: 6px;
    left: 0;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 50px;
    width: 100%;
    z-index: 9999;
}
.main_layout tr.shadedBG div.top_shadow {
    left: 0;
    margin-bottom: -6px;
    position: static;
    right: 0;
    width: auto;
}
body {
    background: url("/graphic/background/bg-tile.jpg") repeat fixed center center #D2C09E;
    font-family: Verdana,Arial;
    font-size: 9pt;
    margin: 0;
    padding: 0 0 35px;
    width: 100%;
}
table.head table.main {
    border-spacing: 0;
}
.noBorderForFirstItem li:first-child {
    border: medium none;
}
h1 {
    font-size: 16pt;
}
h2 {
    font-size: 14pt;
}
h3 {
    font-size: 12pt;
    font-weight: bold;
}
h4 {
    font-size: 10pt;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 4pt;
}
h5 {
    font-size: 10pt;
    font-weight: bold;
    margin-bottom: 2pt;
}
img {
    border: medium none;
}
img.middle {
    vertical-align: middle;
}
.grey {
    color: gray;
}
.warn {
    color: #DC0000;
}
.error {
    color: #B40000;
    font-weight: bold;
}
.nowrap {
    white-space: nowrap;
}
.wrap {
    white-space: normal;
}
.small {
    font-size: xx-small;
}
.inactive, .inactive:hover {
    color: #C5A76B;
}
a.inactive {
    font-weight: bold;
}
hr {
    border-color: #C89D58 transparent #85550D;
    border-style: solid;
    border-width: 1px 0;
    height: 0;
}
table.box {
    background-color: #F7EED3;
    background-repeat: repeat-x;
    border-color: #997733 #FFDD99 #FFEECC #BB9955;
    border-style: solid;
    border-width: 1px;
}
table.box tr td {
    padding-left: 1px;
    padding-right: 1px;
    vertical-align: middle;
    white-space: nowrap;
}
table.padded tr td {
    padding: 0 4px;
}
input, select {
    font-size: 8pt;
}
input.attack {
    background-color: #FAD2D2;
}
input.support {
    background-color: #D2FAD2;
}
input.check {
    margin: 0 5px 0 0;
}
table.quote td.quote_author {
    font-size: 8pt;
    font-weight: bold;
}
table.quote td.quote_message {
    background-color: #FFFFFF;
    font-size: 8pt;
}
textarea {
    border: 1px solid #7D510F;
    padding: 4px;
}
.post {
    background-color: #FFF8E6;
    border: 2px solid #804000;
    margin-bottom: 5px;
    padding: 0;
}
.igmline {
    background-color: #EFE6C9;
    border-bottom: 1px solid #804000;
    padding-left: 4px;
    position: relative;
}
.text {
    padding: 6px;
}
.date {
    font-size: x-small;
    position: absolute;
    right: 5px;
}
.right {
    position: absolute;
    right: 5px;
}
#igm_groups {
    background-color: #EFE6C9;
    border: 2px solid #804000;
    position: absolute;
    z-index: 100;
}
#igm_groups td {
    padding: 2px;
}
#bb_sizes {
    background-color: #EFE6C9;
    border: 2px solid #804000;
    left: 0;
    position: absolute;
    top: 0;
    z-index: 100;
}
#bb_sizes td {
    padding: 2px;
}
#bb_color_picker {
    background-color: #EFE6C9;
    border: 2px solid #804000;
    left: 0;
    position: absolute;
    top: 0;
    z-index: 100;
}
#bb_color_picker_tones {
    border-bottom: 2px solid #804000;
    height: 86px;
    padding: 4px;
}
#bb_color_picker_colors {
    border-bottom: 2px solid #804000;
    height: 18px;
    padding: 4px;
    white-space: nowrap;
}
#bb_color_picker_colors div {
    border-left: 1px solid black;
    border-top: 1px solid black;
    cursor: pointer;
    float: left;
    height: 16px;
    width: 16px;
}
#bb_color_picker_tones div {
    border-left: 1px solid black;
    border-top: 1px solid black;
    cursor: pointer;
    float: left;
    height: 16px;
    width: 16px;
}
#bb_color_picker_50, #bb_color_picker_51, #bb_color_picker_52, #bb_color_picker_53, #bb_color_picker_54, #bb_color_picker_55 {
    border-bottom: 1px solid black;
}
#bb_color_picker_55, #bb_color_picker_45, #bb_color_picker_35, #bb_color_picker_25, #bb_color_picker_15, #bb_color_picker_05 {
    border-right: 1px solid black;
}
#bb_color_picker_c0, #bb_color_picker_c1, #bb_color_picker_c2, #bb_color_picker_c3, #bb_color_picker_c4, #bb_color_picker_c5 {
    border-bottom: 1px solid black;
}
#bb_color_picker_c5 {
    border-right: 1px solid black;
}
#bb_color_picker_preview {
    background: none repeat scroll 0 0 #F7EED3;
    border: 1px solid black;
    height: 16px;
    margin: 2px;
    text-align: center;
    width: 104px;
}
#bb_color_picker_tx {
    width: 64px;
}
#bb_color_picker_ok {
}
#igm_to {
    background-color: #DED3B9;
    border: 2px solid #804000;
    position: absolute;
    z-index: 1;
}
#igm_to_content {
    background-color: #EFE6C9;
    height: 250px;
    overflow: auto;
    width: 200px;
}
#igm_to td {
    padding: 2px;
}
#box {
    background-color: #F8F4E8;
    color: black;
    max-height: 200px;
    overflow: auto;
    padding: 0;
    position: relative;
    text-align: left;
    width: 100%;
}
#inline_popup {
    background-image: url("/graphic/index/main_bg.jpg");
    border-color: #804000 #603000 #402000 #804000;
    border-style: solid;
    border-width: 2px;
    display: none;
    position: absolute;
    width: 298px;
    z-index: 5;
}
#inline_popup_menu {
    background-color: #C1A264;
    background-image: url("/graphic/screen/tableheader_bg3.png");
    background-repeat: repeat-x;
    cursor: move;
    padding: 2px 5px;
    text-align: right;
    width: auto;
}
#inline_popup_main {
    background-image: url("/graphic/index/main_bg.jpg");
    height: 300px;
    overflow: auto;
    padding: 3px;
}
ul.help {
    margin-left: 0;
    padding-left: 1px;
}
li.help {
    background-color: #F4E4BC;
    list-style-type: none;
    margin: 2px;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-top: 4px;
}
ul.help li.help ul.help li.help {
    background-color: #F1EBDD;
}
ul.help li.help ul.help li.help ul.help li.help {
    background-color: #F8F4E8;
}
ul.submenu {
    margin-left: 0;
    padding-left: 1px;
}
li.submenu {
    list-style-type: none;
    margin: 2px;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-top: 4px;
}
a.sel {
    color: #0082BE;
    text-decoration: underline;
}
.bonus_icon {
    background-image: url("/graphic/overview/bonus_icons.png?1");
    display: inline-block;
    height: 14px;
    margin-left: 2px;
    width: 14px;
}
.bonus_icon_1 {
    background-position: 0 0;
}
.bonus_icon_2 {
    background-position: 0 112px;
}
.bonus_icon_3 {
    background-position: 0 98px;
}
.bonus_icon_4 {
    background-position: 0 28px;
}
.bonus_icon_5 {
    background-position: 0 70px;
}
.bonus_icon_6 {
    background-position: 0 56px;
}
.bonus_icon_7 {
    background-position: 0 42px;
}
.bonus_icon_8 {
    background-position: 0 84px;
}
.bonus_icon_9 {
    background-position: 0 14px;
}
p.server_info {
    color: #514D41;
    font-size: 7pt;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0 2px;
    text-align: right;
}
td.server_info {
    background: url("/graphic/index/contentbg.png") repeat scroll left top transparent;
}
.hide_toggle {
    display: none;
    margin-left: -1px;
}
.show_toggle {
    display: inline;
}
.premium_left_button_passive {
    background-image: url("/graphic/premium/pa_button_left_passive.png");
    background-repeat: no-repeat;
    height: 55px;
    width: 32px;
}
.premium_right_button_passive {
    background-image: url("/graphic/premium/pa_button_right_passive.png");
    background-repeat: no-repeat;
    height: 55px;
    width: 32px;
}
.premium_button {
    background-image: url("/graphic/premium/pa_button.png");
    background-repeat: no-repeat;
    cursor: pointer;
    height: 55px;
    width: 32px;
}
.premium_left_button {
    background-position: 0 0;
}
.premium_left_button_hover {
    background-position: 0 -55px;
}
.premium_right_button {
    background-position: -32px 0;
}
.premium_right_button_hover {
    background-position: -32px -55px;
}
#premium_buy_button {
    background-image: url("/graphic/premium/buynow.jpg");
    color: white;
    float: left;
    font-size: 20px;
    height: 75px;
    line-height: 75px;
    text-align: center;
    width: 140px;
}
#premium_buy_button:hover {
    background-position: 0 -75px;
}
.map_container * {
    direction: ltr;
}
#info .spoiler {
    display: none;
}
#reservations {
    clear: both;
    width: 100%;
}
#settings {
    float: left;
    padding-bottom: 3px;
    padding-left: 10px;
}
#edit_reservation {
    display: block;
}
#reservation_settings {
    display: block;
}
#reservation_info {
    padding-left: 10px;
}
#reservation_info #partners {
    float: left;
    padding: 0 10px 3px 15px;
}
#change_settings {
    display: none;
}
div.award {
    border: 1px solid #AF8E36;
    width: 60px;
}
td.award {
    width: 60px;
}
div.award.level0 {
    background-image: url("/graphic/awards/frame0.png");
}
div.award.level1 {
    background-image: url("/graphic/awards/frame1.png");
}
div.award.level2 {
    background-image: url("/graphic/awards/frame2.png");
}
div.award.level3 {
    background-image: url("/graphic/awards/frame3.png");
}
div.award.level4 {
    background-image: url("/graphic/awards/frame4.png");
}
div.award img {
    margin: 7px;
}
div.awardmini {
    border: 1px solid #AF8E36;
    float: left;
    margin: 2px;
    width: 16px;
}
div.awardmini.level1 {
    background-image: url("/graphic/awards/frame1_mini.png");
}
div.awardmini.level2 {
    background-image: url("/graphic/awards/frame2_mini.png");
}
div.awardmini.level3 {
    background-image: url("/graphic/awards/frame3_mini.png");
}
div.awardmini.level4 {
    background-image: url("/graphic/awards/frame4_mini.png");
}
div.awardmini img {
    margin: 2px;
}
.group_config {
    border: 1px solid #804000;
    margin: 10px auto;
    padding: 5px;
    position: relative;
    width: 97%;
}
.vis tr .group_edit {
    background-color: transparent;
}
.vis tr .group_label {
    height: 25px;
    width: 170px;
}
.vis #group_list tr td {
    height: 20px;
}
.vis tr {
    width: 100%;
}
.vis tr .group_assigment {
    width: 100%;
}
.vis tr td .p_groups {
    display: inline;
    margin: 0;
}
.popup_style {
    background-image: url("/graphic/index/main_bg.jpg");
    border-color: #804000 #603000 #402000 #804000;
    border-style: solid;
    border-width: 2px;
    display: none;
    position: absolute;
    z-index: 99999;
}
.popup_menu {
    background-color: #C1A264;
    background-image: url("/graphic/screen/tableheader_bg3.png");
    background-repeat: repeat-x;
    border: medium none;
    cursor: move;
    padding: 2px 5px;
    text-align: right;
    width: auto;
}
.popup_content {
    background-image: url("/graphic/index/main_bg.jpg");
    padding: 10px 5px 0;
    width: auto;
}
.confirm_dialog {
    background-image: url("/graphic/background/content.jpg");
    border: 1px solid #804000;
    font-weight: bold;
    height: 100px;
    left: 25px;
    padding-top: 40px;
    position: absolute;
    text-align: center;
    top: 25px;
    width: 300px;
}
#tut.ui-draggable #tut_menu {
    cursor: move;
}
#combined_table th {
    text-align: center;
}
#ajax_loader {
    display: table-cell;
    left: 375px;
    position: absolute;
    top: 100px;
    z-index: 100;
}
#worldmap {
    background-color: #F1EBDD;
    background-image: url("/graphic/background/content.jpg");
    border: 2px solid #804000;
}
#worldmap fieldset {
    border: medium none;
    display: inline;
    margin: 0;
}
#worldmap_body, #worldmap_footer {
    text-align: center;
}
#intro_igm_preview {
    background-color: white;
    border: 1px solid black;
    margin: 10px;
    width: 99%;
}
.edit {
    display: none;
}
select.address_group {
    width: 200px;
}
.green {
    color: green;
}
.orange {
    color: orange;
}
.red {
    color: red;
}
* + html .main_layout td.topbar {
    position: relative;
}
* + html table.main_layout tr.shadedBG {
    background: url("/graphic/index/bg-shaded.png") repeat-x scroll left top #F2E4C1;
}
* + html .main_layout td.bg_left div.bg_left {
    background: url("/graphic/index/mainborder-left-top.png") no-repeat scroll left top transparent;
}
* + html .main_layout td.bg_right div.bg_right {
    background: url("/graphic/index/mainborder-right-top.png") no-repeat scroll right top transparent;
}
* + html table.main_layout td.center {
    position: static;
}
* + html div#topContainer {
    margin-top: 0 !important;
    position: absolute !important;
    width: 100% !important;
    z-index: 123456;
}
* + html div.top_bar {
    position: absolute;
}
* + html div.top_shadow {
    position: absolute;
}
* + html td.topbar table.menu tr#menu_row > td.lpad {
    width: 1px;
}
* + html td.topbar table.menu tr#menu_row > td.rpad {
    width: 3px;
}
* + html td.topbar table.menu tr#menu_row > td a {
    padding-left: 20px;
    padding-right: 20px;
    white-space: nowrap;
}
* + html hr {
    height: 2px;
}
* + html #SkyScraperAd {
    position: absolute;
}
* + html td.topbar div.buttonicon {
    top: -29px;
}
#buildings {
}
.icon {
    background-repeat: no-repeat;
    display: inline-block;
    height: 18px;
    margin: auto 2px auto 0;
    overflow: hidden;
    vertical-align: -4px;
    width: 18px;
}
body:empty .icon {
    display: block;
}
td .icon-box {
    height: 20px;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    width: 20px;
}
.icon.header {
    background-image: url("/graphic/icons/header.png");
}
.header.wood {
    background-position: -17px 0;
}
.header.stone {
    background-position: -36px 0;
}
.header.iron {
    background-position: -55px 0;
}
.header.ressources {
    background-position: 0 0;
}
.header.population {
    background-position: -72px 0;
}
.header.new_post {
    background-position: -93px -3px;
    height: 12px;
    width: 12px;
}
.header.new_report {
    background-position: -149px -3px;
    height: 12px;
    width: 17px;
}
.header.new_mail {
    background-position: -132px -3px;
    height: 12px;
    width: 17px;
}
.header.knight {
    background-position: -179px 0;
}
.header.incomings {
    background-position: -198px 1px;
}
.header.arr_right {
    background-position: -118px -0.4px;
    height: 15px;
    width: 15px;
}
.header.arr_left {
    background-position: -105px -0.4px;
    height: 15px;
    width: 15px;
}
.header.arr_down {
    background-position: -166px -1px;
    height: 15px;
    width: 14px;
}
.header.arr_up {
    background-position: -218px -1px;
    height: 15px;
    width: 14px;
}
.icon.ally {
    background-image: url("/graphic/icons/ally_rights.png");
}
.ally.founder {
    background-position: -75px 0;
}
.ally.lead {
    background-position: -132px 0;
}
.ally.invite {
    background-position: -113px 0;
}
.ally.diplomacy {
    background-position: -37px 0;
}
.ally.mass_mail {
    background-position: 0 0;
}
.ally.forum_mod {
    background-position: -56px 0;
}
.ally.internal_forum {
    background-position: -94px 0;
}
.ally.trusted_member {
    background-position: -18px 0;
}
#tooltip {
    background-color: #F1EBDD;
    background-image: url("/graphic/background/content.jpg");
    border: 2px solid #804000;
    max-width: 300px;
    min-width: 75px;
    opacity: 1;
    padding: 7px;
    position: absolute;
    z-index: 30000;
}
#tooltip h3, #tooltip div {
    margin: 0;
}
#tooltip h3 {
    font-size: 12px;
    padding-bottom: 2px;
}


İstediğim yer.

background-image: url("[color=red]/graphic/background/grey.jpg[/color]");

Benim yaptığım:

<?php
$site 
file_get_contents("http://benimsitem/dnm.html");
preg_match_all('#background-image: url("(.*?)");#si',$site,$link);
echo 
$link[0]
?>


dnm.html'nin içinde parçalamak istediğim css kodu var.Ama olmuyor işte.Acaba kaçış karakterimi kullanmak gerekiyor?




Şimdiden teşekkürler...
# 28065

risperdal


<?php
$src 
file_get_contents('/home/h4ckinger/Desktop/css.css');
$pattern '#url\("(.*?)"\)#si';
preg_match_all($pattern,$src,$linkler);
foreach(
$linkler[1] as $link)
echo 
$link.'<br />';
?>


kaansef

Çok teşekkür ederim @risperdal.Oldu valla :D.Çok teşekkür ederim.İyi akşamlar dilerim.Konu kilitlenebilir bu arada.
# 28065

kaansef

Arkadaşlar şimdide başka bir sorun ortaya çıktı :D.Hangi karakterleri kaçış karakterleyile birlikte kullanmak gerekir?Birde bu regex parametrelerini nasıl kullanırız?
# 28065

risperdal

Regex aslında programlamadan ziyade apayrı bir kategoriye konacak kadar geniş bir konudur.

Kısaca kaçış karakterlerini düzenli ifade'de özel anlam içeren karakterlerden önce kullanırız.

İnternet üzerinde regex ile ilgili oldukça fazla makale mevcut. Biraz araştırırsanız mutlaka aradığınız şeye ulaşacağınızdan eminim.

kaansef

Çok araştırdım.Fakat çoğu birbirinden alıntı yapmış.Biraz bilgim var.Fakat bazı şeyler kafamı karıştırıyor.Boşluk olunca sorun çıkarmı?Boşluk yerine ne yazmalıyız?Bug gibi sorular kafamı karıştırıyor.Yardımcı olursanız sevinirim.Mesela birisi [[:space]] boşluk anlamına gelir demiş.Fakat bunu nereye yazıyoruz ki?Boşluk yerine bu kodu mu kullanmamız gerekiyor?



Şimdiden teşekkürler...
# 28065

utdmr

Regex öğrenmek için(ben de dün başladım öğrenmeye :) ), şu kaynağı kullanabilirsiniz İngilizce'niz varsa: http://www.regular-expressions.info/quickstart.html

Orada yazana göre:
Alıntı YapEleven characters with special meanings: the opening square bracket [, the backslash \, the caret ^, the dollar sign $, the period or dot ., the vertical bar or pipe symbol |, the question mark ?, the asterisk or star *, the plus sign +, the opening round bracket ( and the closing round bracket ). These special characters are often called "metacharacters".

If you want to use any of these characters as a literal in a regex, you need to escape them with a backslash.
Yani sanırım boşluk karakterinin bir işlevi olmadığı için doğrudan kullanabiliyoruz.
Kişisel Blogum: Çoğunlukla Zararsız - cogunluklazararsiz.org
--
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -and a lot of courage- to move in the opposite direction.

kaansef

Özür dilerim.Konuyu hortlatıyorum ama aşağıda verdiğim kodlardan ilki neden doğru değil peki?Sonuçta aynı gibiler.Biri bana açıklayabilirmi?


$pattern = '#url\("(.*?)"\)#si';


Yukarıda vermiş olduğum çalışır durumda olan,@risperdal'ın verdiği koddur.


$pattern = '#background-image: url("(.*?)");#si';


Yukarıda vermiş olduğum ise çalışmayan,benim yazdığım koddur.


Peki benim yazdığım kod neden çalışmıyor?Neye göre url'den başlıyoruz?Örneğin bir site var.orada <p><a href=http://site.com/<a>buraya tıkla<a><p>

yukarıdaki ifadede p tag'ından başlasak olmazmı?





Şimdiden teşekkürler...
# 28065

utdmr

Alıntı yapılan: kaansef - 26 Ocak 2011 - 09:55:08

$pattern = '#background-image: url("(.*?)");#si';


Yukarıda vermiş olduğum ise çalışmayan,benim yazdığım koddur.
Pek inceleyemedim, ve #'in ne işe yaradığını bilmiyorum ama, sanırım sorun, url'den sonra açtığın ilk parantezler. Regex bunları da yorumluyor. Bu yüzden "url\("(.*?)"\);" şeklinde escape etmelisin.
Kişisel Blogum: Çoğunlukla Zararsız - cogunluklazararsiz.org
--
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -and a lot of courage- to move in the opposite direction.

kaansef

Hepinize çok teşekkür ederim yardımlarınız için.Regex konusunda kendimi çok geliştirdim.Fakat size tavsiyem regex ile ilgili program kullanmanız.Tavsiye edebileceğim iki tane program şunlardır;
1-)Regex Buddy - Regex Magic (İkiside aynı yapımcının fakat ben regex buddy'i kullanıyorum.)
2-)Regexr (Online versiyonunu adresi:http://gskinner.com/RegExr/ indirme adresini isterseniz bu konu altından yazabilirsiniz.)
# 28065